/* Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body,
h1,
h2,
p,
ul {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button {
  font: inherit;
}

/* Variables */
:root {
  --primary-blue: #084da3;
  --footer-blue: #0d3869;
  --white: #ffffff;
  --container-width: 1176px;
  --font-main: Helvetica, Arial, sans-serif;
  --font-display: "Barlow", Arial, sans-serif;
}

body {
  min-width: 320px;
  color: var(--primary-blue);
  background: var(--white);
  font-family: var(--font-main);
}

.container {
  width: min(calc(100% - 48px), var(--container-width));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: relative;
  z-index: 20;
  height: 82px;
  background: var(--white);
  border-bottom: 1px solid rgba(8, 77, 163, 0.08);
  box-shadow: 0 4px 18px rgba(13, 56, 105, 0.06);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding-inline: 18px;
}

.brand {
  flex: 0 0 auto;
  width: 158px;
}

.brand img {
  width: 100%;
  height: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  transform: translateX(34px);
}

.main-nav a {
  position: relative;
  display: inline-flex;
  color: var(--primary-blue);
  padding: 12px 0;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.main-nav a::after {
  position: absolute;
  right: 0;
  bottom: 4px;
  left: 0;
  height: 2px;
  background: var(--primary-blue);
  content: "";
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.24s ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--primary-blue);
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 9px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 3px;
  margin: 4px 0;
  border-radius: 2px;
  background: var(--primary-blue);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Hero */

/* Cards */

.card-content a:hover,
.card-content a:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 2px 7px rgba(0, 0, 0, 0.2);
}

/* WhatsApp */
.whatsapp {
  position: fixed;
  right: 26px;
  bottom: 28px;
  z-index: 30;
  display: grid;
  width: 76px;
  height: 76px;
  place-items: center;
  border: 5px solid var(--white);
  border-radius: 50%;
  background: #31c968;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.18);
  transition: transform 0.2s ease;
}

.whatsapp:hover,
.whatsapp:focus-visible {
  transform: scale(1.06);
}

.whatsapp svg {
  width: 42px;
  height: 42px;
  fill: var(--white);
}

@media (max-width: 720px) {
  .whatsapp {
    right: 16px;
    bottom: 18px;
    width: 58px;
    height: 58px;
    border-width: 4px;
  }

  .whatsapp svg {
    width: 32px;
    height: 32px;
  }
}

/* Footer */
.site-footer {
  min-height: 379px;
  padding: 68px 0 45px;
  background: var(--footer-blue);
  color: rgba(255, 255, 255, 0.54);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.contact-column {
  max-width: 350px;
}

.footer-column h2 {
  margin-bottom: 20px;
  color: var(--white);
  font-size: 17px;
  font-weight: 700;
}

.footer-column p,
.footer-column li {
  margin-bottom: 9px;
  font-size: 13px;
  line-height: 1.35;
}

.footer-column strong {
  font-weight: 700;
}

.footer-column a {
  transition: color 0.2s ease;
}

.footer-column a:hover,
.footer-column a:focus-visible {
  color: var(--white);
}

.social-links {
  display: flex;
  gap: 7px;
}

.social-links a {
  display: grid;
  width: 35px;
  height: 35px;
  place-items: center;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.52);
  color: var(--footer-blue);
  font-size: 17px;
  font-weight: 700;
}

.footer-notice {
  margin-top: 73px;
}

.footer-notice p {
  font-size: 10px;
  font-style: italic;
  line-height: 1.45;
}

.footer-notice strong {
  font-style: normal;
}

/* Agriculture page: hero */

.agro-hero {
  position: relative;
  width: 100%;
  height: 668px;
  overflow: hidden;
}

.agro-hero > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.agro-hero-title {
  position: absolute;
  bottom: 99px;
  left: 0;
  display: flex;
  width: 685px;
  min-height: 134px;
  align-items: center;
  padding: 15px 38px 13px 62px;
  background: #1cca0d;
  color: var(--white);
}

.agro-hero-title h1 {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.8px;
  word-spacing: .12em;
  white-space: nowrap;
  text-transform: uppercase;
  transform: translateY(-1.5px) scaleX(0.99) scaleY(1.27);
  transform-origin: left center;
}

/* Agriculture page: intro and content */
.agro-overview {
  min-height: 1068px;
  padding: 110px 0 100px;
  background: var(--white);
}

.agro-intro {
  color: var(--primary-blue);
  font-size: 32.6px;
  font-style: italic;
  line-height: 1.38;
  text-align: center;
  transform: translateX(-2px) scaleX(1.0025);
}

.agro-explanation {
  display: grid;
  grid-template-columns: 509px 509px;
  align-items: start;
  justify-content: center;
  gap: 76px;
  margin-top: 127px;
}

.agro-explanation img {
  width: 509px;
  aspect-ratio: 500 / 385;
  object-fit: cover;
}

.agro-explanation p {
  margin-top: 9px;
  color: #202020;
  font-size: 24px;
  line-height: 1.38;
  text-align: justify;
}

/* Agriculture page: brand logos */

/* Agriculture page: benefits */
.agro-benefits {
  min-height: 769px;
  padding: 116px 0 130px;
  background: var(--primary-blue);
  color: var(--white);
}

.benefits-content,
.filters-content {
  width: min(calc(100% - 48px), 1092px);
}

.agro-benefits h2,
.agro-filters > .filters-content > h2 {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -0.7px;
  word-spacing: .12em;
  text-transform: uppercase;
}

.agro-benefits h2 {
  transform: translate(-1px, -3px) scaleX(0.952) scaleY(1.18);
  transform-origin: left top;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 37px 62px;
  margin-top: 79px;
}

.benefits-grid article {
  display: grid;
  min-height: 155px;
  place-items: center;
  padding: 18px;
  border: 1.5px solid var(--white);
  border-radius: 9px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.28;
  text-align: center;
}

/* Agriculture page: filters */
.agro-filters {
  min-height: 1968px;
  padding: 148px 0 106px;
  background: var(--white);
}

.agro-filters h2 {
  color: var(--footer-blue);
  transform: translateY(-1px) scaleY(1.04);
  transform-origin: left top;
}

.filter-categories {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  margin-top: 59px;
}





/* Agriculture page: products */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 65px 33px;
  margin-top: 55px;
}

.product-card {
  display: grid;
  height: 278px;
  grid-template-rows: 1fr 39px;
  overflow: hidden;
  border: 1.5px solid var(--primary-blue);
  border-radius: 10px;
  background: var(--white);
}

.product-card img {
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 11px;
  object-fit: contain;
}

.product-card h3 {
  display: grid;
  place-items: center;
  margin: 0;
  background: var(--primary-blue);
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}

/* Agriculture page: CTA */
.agro-cta {
  display: flex;
  justify-content: center;
  gap: 68px;
  margin-top: 123px;
}

.agro-cta a {
  display: grid;
  width: 350px;
  height: 63px;
  place-items: center;
  border-radius: 7px;
  background: var(--primary-blue);
  color: var(--white);
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.agro-cta a:hover,
.agro-cta a:focus-visible {
  opacity: 0.88;
  transform: translateY(-2px);
}

/* Construction page: header and hero */

/* Construction page: intro, content and brands */

/* Construction page: filters and footer */

/* Heavy machinery page */

/* Road page */

/* Industrial page */

/* Hydraulic page */

/* Energy page */
.energy-page .brand {
  width: 175px;
  transform: translate(3px, 3px);
}

.energy-hero .agro-hero-title {
  width: 719px;
  background: #e71616;
}

.energy-hero h1 {
  transform: translate(1px, -2px) scaleX(.962) scaleY(1.218);
}

.energy-overview {
  min-height: 880px;
  padding-top: 93px;
  padding-bottom: 163px;
}

.energy-overview .agro-intro {
  transform: translate(-2px, -14px) scaleX(.99);
}

.energy-explanation {
  grid-template-columns: 507px 507px;
  gap: 77px;
  margin-top: 88px;
}

.energy-explanation img {
  width: 507px;
  height: 446px;
  aspect-ratio: 385 / 339;
  object-fit: cover;
}

.energy-explanation p {
  width: 530px;
  margin-top: 8px;
  line-height: 1.376;
  transform: translate(-2px, 1px) scale(.964, .995);
  transform-origin: left top;
}

.energy-page .agro-benefits h2 {
  transform: translate(-1px, -3px) scaleX(.937) scaleY(1.18);
}

.energy-filters h2 {
  transform: translate(-1px, -1px) scaleX(.933) scaleY(1.04);
}

.energy-page .agro-benefits {
  border-top: 1px solid #fefefe;
}

.energy-filters {
  min-height: 1955px;
  padding-bottom: 105px;
  border-top: 1px solid #fefefe;
}

.energy-page .site-footer {
  min-height: 378px;
}

/* Pneumatic page */

/* Offshore page */

/* Refrigerated trucks page */

/* Special heavy-duty filters page */

/* Header refinement across landing pages */

.energy-page .brand {
  width: 158px;
  transform: none;
}

/* Responsive */
@media (max-width: 1100px) {
  .main-nav {
    gap: 13px;
    transform: none;
  }

  .main-nav a {
    font-size: 11px;
  }
}

@media (max-width: 720px) {
  .container {
    width: min(calc(100% - 36px), var(--container-width));
  }

  .site-header {
    height: 72px;
  }

  .brand {
    width: 140px;
  }

  .menu-toggle {
    display: block;
  }

  .menu-toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .menu-toggle.is-open span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .main-nav {
    position: absolute;
    top: 72px;
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 18px 18px;
    background: var(--white);
    box-shadow: 0 8px 16px rgba(8, 77, 163, 0.12);
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a {
    padding: 12px 0;
    border-bottom: 1px solid rgba(8, 77, 163, 0.12);
    font-size: 12px;
    text-align: center;
  }

  .main-nav a::after {
    right: 42%;
    bottom: 7px;
    left: 42%;
  }

  .site-footer {
    padding: 45px 0 35px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .footer-column h2 {
    margin-bottom: 15px;
  }

  .footer-notice {
    margin-top: 38px;
  }
}

/* Agriculture page: responsive */
@media (max-width: 1100px) {

  .agro-hero {
    height: auto;
    aspect-ratio: 500 / 245;
  }

  .agro-hero-title {
    bottom: 7vw;
    width: min(55%, 620px);
    min-height: 112px;
    padding-left: max(32px, 5vw);
  }

  .energy-hero .agro-hero-title {
    width: min(55%, 620px);
    padding-left: max(32px, 5vw);
  }

  .agro-hero-title h1 {
    font-size: clamp(27px, 3.1vw, 37px);
    transform: none;
  }

  .agro-overview {
    min-height: auto;
    padding-block: 90px;
  }

  .agro-explanation {
    grid-template-columns: minmax(0, 46%) minmax(0, 46%);
    gap: 7%;
  }

  .agro-explanation img {
    width: 100%;
  }

  .energy-explanation img {
    height: auto;
  }

  .energy-explanation p {
    width: 100%;
    transform: none;
  }

  .agro-benefits h2,
  .agro-filters h2 {
    transform: none;
  }

  .benefits-grid {
    gap: 32px;
  }

  .agro-benefits,
  .agro-filters {
    min-height: auto;
  }

  .filter-categories {
    display: flex;
    overflow-x: auto;
    padding-bottom: 7px;
    scrollbar-width: thin;
  }

  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .product-card {
    height: auto;
    aspect-ratio: 248 / 278;
  }
}

@media (max-width: 900px) {
  .agro-intro br {
    display: none;
  }

  .agro-explanation {
    grid-template-columns: 1fr;
    gap: 45px;
    width: min(100%, 600px);
    margin-inline: auto;
  }

  .agro-explanation p {
    text-align: left;
  }

  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .agro-cta {
    gap: 28px;
  }
}

@media (max-width: 720px) {

  .energy-page .brand {
    width: 145px;
  }

  .agro-hero {
    height: 360px;
    aspect-ratio: auto;
  }

  .agro-hero > img {
    object-position: 56% center;
  }

  .agro-hero-title {
    bottom: 30px;
    width: min(90%, 430px);
    min-height: 98px;
    padding: 15px 20px 14px;
  }

  .energy-hero .agro-hero-title {
    width: min(90%, 430px);
    padding: 15px 20px 14px;
  }

  .agro-hero-title h1 {
    font-size: 24px;
    letter-spacing: -0.3px;
    white-space: normal;
  }

  .agro-overview {
    padding: 65px 0 70px;
  }

  .agro-intro {
    font-size: 19px;
  }

  .agro-explanation {
    gap: 34px;
    margin-top: 70px;
  }

  .agro-explanation p {
    font-size: 16px;
  }

  .benefits-content,
  .filters-content {
    width: min(calc(100% - 36px), 1092px);
  }

  .agro-benefits {
    padding: 72px 0 78px;
  }

  .agro-benefits h2,
  .agro-filters > .filters-content > h2 {
    font-size: 30px;
  }

  .benefits-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 45px;
  }

  .benefits-grid article {
    min-height: 122px;
    font-size: 16px;
  }

  .agro-filters {
    padding: 78px 0 80px;
  }

  .filter-categories {
    margin-top: 38px;
  }

  .products-grid {
    gap: 28px 16px;
    margin-top: 42px;
  }

  .product-card {
    grid-template-rows: 1fr 34px;
  }

  .product-card img {
    padding: 7px;
  }

  .product-card h3 {
    font-size: 12px;
  }

  .agro-cta {
    flex-direction: column;
    align-items: center;
    gap: 18px;
    margin-top: 70px;
  }

  .agro-cta a {
    width: min(100%, 350px);
    height: 58px;
    font-size: 14px;
  }
}

@media (max-width: 390px) {
  .products-grid {
    grid-template-columns: 1fr;
    width: min(100%, 250px);
    margin-inline: auto;
  }
}
