@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@500;600;700;800&display=swap');

:root {
  --navy: #0b2545;
  --deep: #071a32;
  --blue: #174a7c;
  --pale: #eaf2fa;
  --gold: #d5a94f;
  --ink: #17283b;
  --muted: #64748b;
  --line: #dce5ee;
  --white: #fff;
  --shadow: 0 18px 45px rgba(7, 26, 50, .11);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "DM Sans", Arial, sans-serif;
  background: #f8fafc;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

/* HEADER AND NAVIGATION */

.site-header {
  height: 82px;
  padding: 0 clamp(18px, 5vw, 76px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 20;
  box-shadow: 0 3px 18px #071a3210;
}

.brand {
  display: flex;
  gap: 11px;
  align-items: center;
  font: 800 15px Manrope, sans-serif;
  letter-spacing: .07em;
  color: var(--navy);
}

.brand small {
  display: block;
  font: 600 9px "DM Sans", sans-serif;
  letter-spacing: .22em;
  color: var(--muted);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  background: var(--navy);
  color: #fff;
  border-radius: 12px;
  font: 800 15px Manrope;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.5vw, 34px);
  font-size: 14px;
  font-weight: 600;
  color: #526174;
}

.main-nav a {
  padding: 9px 0;
  transition: color .2s;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--blue);
}

.main-nav a.active {
  border-bottom: 2px solid var(--gold);
}

.menu-toggle {
  display: none;
  border: 0;
  background: var(--navy);
  color: #fff;
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 20px;
}

/* HERO */

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: center;
  padding: 70px clamp(20px, 7vw, 110px);
  background: linear-gradient(120deg, #f3f7fb, #e8f1f9);
}

.hero-copy {
  max-width: 610px;
}

.eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .18em;
  color: #9a7126;
  margin: 0 0 12px;
}

.hero h1,
.section-heading h2,
.quote-banner h2 {
  font-family: Manrope, sans-serif;
  color: var(--navy);
  line-height: 1.12;
  margin: 0;
}

.hero h1 {
  font-size: clamp(36px, 4.7vw, 61px);
  letter-spacing: -.045em;
}

.hero h1 span {
  color: var(--blue);
}

.hero-copy > p:not(.eyebrow):not(.hero-note) {
  color: #566a7e;
  max-width: 530px;
  margin: 22px 0 26px;
}

/* BUTTONS */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  border: 0;
  border-radius: 9px;
  padding: 13px 20px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s, background .2s;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 9px 20px #071a3225;
}

.button-gold {
  background: var(--gold);
  color: #17283b;
}

.button-light {
  background: #fff;
  color: var(--navy);
}

.button-outline {
  border: 1px solid #ffffffa8;
  color: #fff;
  background: transparent;
}

.hero-note {
  font-size: 12px;
  color: #738397;
  margin-top: 16px;
}

.hero-image {
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 8px solid #ffffffa8;
  transform: rotate(1deg);
}

.hero-image img {
  display: block;
  width: 100%;
  height: auto;
  min-height: 250px;
  object-fit: cover;
}

/* CATALOG */

.section-wrap {
  padding: 72px clamp(18px, 6vw, 92px);
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 25px;
  align-items: flex-end;
  margin-bottom: 28px;
}

.section-heading h2,
.quote-banner h2 {
  font-size: clamp(29px, 3vw, 40px);
  letter-spacing: -.035em;
}

.section-heading p:not(.eyebrow) {
  margin: 10px 0 0;
  color: var(--muted);
}

.contact-chip {
  display: grid;
  gap: 2px;
  padding: 13px 18px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  min-width: 270px;
  font-size: 13px;
}

.contact-chip span {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted);
  font-weight: 700;
}

.contact-chip a {
  font-weight: 700;
  color: var(--blue);
}

/* SEARCH AND FILTERS */

.filters {
  display: grid;
  grid-template-columns: minmax(200px, 1.6fr) repeat(3, minmax(145px, 1fr));
  gap: 12px;
  padding: 15px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 7px 22px #071a3207;
}

.filters input,
.filters select {
  width: 100%;
  min-width: 0;
  height: 46px;
  border: 1px solid #d8e1eb;
  border-radius: 8px;
  background: #fff;
  padding: 0 13px;
  color: #35485b;
  outline: none;
}

.filters input:focus,
.filters select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px #174a7c15;
}

.catalog-status {
  font-size: 13px;
  color: var(--muted);
  margin: 19px 2px 14px;
}

/* TRACTOR CARDS */

.tractor-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 23px;
}

.tractor-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 6px 20px #071a3208;
  transition: transform .25s, box-shadow .25s, border-color .25s;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.tractor-card:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow);
  border-color: #b8cbdc;
}

.card-image {
  height: 200px;
  position: relative;
  overflow: hidden;
  background: #eaf2fa;
}

.card-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform .45s;
}

.tractor-card:hover .card-image img {
  transform: scale(1.06);
}

.condition {
  position: absolute;
  top: 13px;
  left: 13px;
  background: #fff;
  border-radius: 30px;
  padding: 5px 11px;
  font-size: 11px;
  font-weight: 800;
  color: var(--blue);
  box-shadow: 0 3px 10px #071a3218;
}

.card-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-brand {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: #8a9aac;
  margin-bottom: 5px;
}

.card-content h3 {
  font: 800 19px Manrope, sans-serif;
  color: var(--navy);
  margin: 0 0 10px;
}

.specs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 17px;
}

.specs span {
  background: #f0f5f9;
  color: #566a7e;
  border-radius: 5px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 600;
}

.price-label {
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
}

.price {
  font: 800 26px Manrope, sans-serif;
  color: var(--navy);
  letter-spacing: -.03em;
  margin: 0 0 17px;
}

.price small {
  font: 500 11px "DM Sans", sans-serif;
  letter-spacing: 0;
  color: var(--muted);
}

.card-actions {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 9px;
  margin-top: auto;
}

.card-actions button {
  width: 100%;
  padding: 11px 8px;
  font-size: 12px;
}

.details-button {
  border: 1px solid #cad7e3;
  background: #fff;
  color: var(--navy);
}

.quote-button {
  background: var(--navy);
  color: #fff;
}

.quote-button:hover {
  background: var(--blue);
}

.price-disclaimer {
  margin: 27px 0 0;
  padding: 15px 18px;
  border-left: 4px solid var(--gold);
  background: #fff7e6;
  color: #6e5b34;
  font-size: 12px;
  border-radius: 0 8px 8px 0;
}

/* PROCUREMENT BANNER */

.quote-banner {
  padding: 50px clamp(20px, 6vw, 92px);
  background: var(--navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.quote-banner h2 {
  color: #fff;
}

.quote-banner p:not(.eyebrow) {
  color: #c5d2df;
  max-width: 590px;
}

.quote-banner .eyebrow {
  color: #e5bf6a;
}

.banner-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* FOOTER */

.site-footer {
  background: #06162b;
  color: #c2cfdd;
  padding: 32px clamp(20px, 6vw, 92px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  flex-wrap: wrap;
  font-size: 12px;
}

.brand-footer {
  color: #fff;
}

.site-footer > div {
  display: grid;
  gap: 3px;
}

.site-footer > div strong {
  color: #fff;
}

.site-footer a:hover {
  color: #e5bf6a;
}

.site-footer > p {
  margin: 0;
}

/* NOTIFICATION */

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  background: #102c4b;
  color: #fff;
  padding: 12px 18px;
  border-radius: 9px;
  box-shadow: var(--shadow);
  z-index: 50;
  transition: .25s;
  font-size: 13px;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* TABLET */

@media (max-width: 1000px) {
  .tractor-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero {
    gap: 25px;
    padding-top: 55px;
    padding-bottom: 55px;
  }

  .filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .contact-chip {
    min-width: 0;
  }
}

/* MOBILE */

@media (max-width: 700px) {
  .site-header {
    height: 70px;
  }

  .menu-toggle {
    display: block;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    padding: 12px 22px 20px;
    background: #fff;
    box-shadow: 0 12px 15px #071a3212;
    flex-direction: column;
    align-items: stretch;
    gap: 3px;
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav a {
    padding: 11px 5px;
    border-bottom: 1px solid #eef2f6;
  }

  .main-nav a.active {
    border-bottom: 1px solid var(--line);
  }

  .hero {
    grid-template-columns: 1fr;
    padding: 45px 20px;
    gap: 27px;
  }

  .hero h1 {
    font-size: 39px;
  }

  .hero-image {
    transform: none;
    border-width: 5px;
  }

  .section-wrap {
    padding: 49px 17px;
  }

  .filters {
    grid-template-columns: 1fr;
    padding: 12px;
  }

  .tractor-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .card-image {
    height: 220px;
  }

  .quote-banner {
    align-items: flex-start;
    flex-direction: column;
    padding: 40px 20px;
  }

  .banner-actions {
    width: 100%;
  }

  .banner-actions .button {
    flex: 1;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .section-heading h2 {
    font-size: 32px;
  }
}

/* ACCESSIBILITY: REDUCE ANIMATIONS WHEN REQUESTED */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}