/* ==========================================================================
   RELENTLESS TRACTORS — OFFICIAL DESIGN SYSTEM & STYLESHEET
   Brand Colors:
     Primary Green: #007000
     Deep Green:    #003300
     Golden Brown:  #8E5B08
     White:         #FFFFFF
     Light Surface: #F7F9F6
     Main Text:     #1F2937
   ========================================================================== */

:root {
  --primary-green: #007000;
  --primary-green-light: #008f00;
  --primary-green-dark: #005500;
  --deep-green: #003300;
  --deep-green-ultra: #021a02;
  --gold: #8E5B08;
  --gold-light: #b07412;
  --gold-glow: rgba(142, 91, 8, 0.25);
  --white: #FFFFFF;
  --surface-light: #F7F9F6;
  --surface-card: #FFFFFF;
  --surface-alt: #EEF4EB;
  --border-light: #E1E8DD;
  --border-subtle: #D0DCDB;
  --text-main: #1F2937;
  --text-muted: #52616B;
  --text-subtle: #7A8B95;
  --text-inverse: #FFFFFF;
  --shadow-sm: 0 2px 6px rgba(0, 51, 0, 0.05);
  --shadow-md: 0 8px 24px -4px rgba(0, 51, 0, 0.08), 0 2px 8px -2px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 20px 40px -10px rgba(0, 51, 0, 0.15), 0 6px 16px -4px rgba(0, 0, 0, 0.06);
  --shadow-card-hover: 0 24px 48px -12px rgba(0, 112, 0, 0.2), 0 8px 24px -6px rgba(142, 91, 8, 0.12);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  --max-w: 1240px;
  --header-height: 80px;
}

/* Dark mode overrides (respects preference or manual toggle) */
[data-theme="dark"] {
  --surface-light: #0B120B;
  --surface-card: #121C13;
  --surface-alt: #182419;
  --border-light: #203322;
  --border-subtle: #2C422F;
  --text-main: #F1F5F0;
  --text-muted: #9BB09F;
  --text-subtle: #6F8474;
  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.7);
}

/* Baseline Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text-main);
  background-color: var(--surface-light);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

button, input, select, textarea {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

/* Typography Utility */
.font-display {
  font-family: 'Fraunces', Georgia, serif;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--text-main);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.5rem, 5.5vw, 4.25rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.85rem, 3.8vw, 2.75rem);
  font-weight: 700;
}

h3 {
  font-size: clamp(1.25rem, 2.2vw, 1.65rem);
  font-weight: 700;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* Section Spacing */
.section {
  padding: 96px 0;
  position: relative;
}

@media (max-width: 768px) {
  .section {
    padding: 64px 0;
  }
}

.section-head {
  text-align: center;
  max-width: 740px;
  margin: 0 auto 56px;
}

.section-head.text-left {
  text-align: left;
  margin-left: 0;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.825rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold);
  margin-bottom: 12px;
}

.kicker::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 2px;
  background-color: var(--gold);
}

.section-title {
  margin-bottom: 16px;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto;
}

.section-head.text-left .section-desc {
  margin-left: 0;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.775rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.badge-green {
  background: rgba(0, 112, 0, 0.12);
  color: var(--primary-green);
  border: 1px solid rgba(0, 112, 0, 0.25);
}

.badge-gold {
  background: rgba(142, 91, 8, 0.12);
  color: var(--gold);
  border: 1px solid rgba(142, 91, 8, 0.3);
}

.badge-stock {
  background: #E8F5E9;
  color: #1B5E20;
  border: 1px solid #A5D6A7;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  font-size: 0.975rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  border: 1.5px solid transparent;
  white-space: nowrap;
  line-height: 1;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--primary-green);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(0, 112, 0, 0.35);
}

.btn-primary:hover {
  background: var(--primary-green-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 112, 0, 0.45);
}

.btn-gold {
  background: var(--gold);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(142, 91, 8, 0.35);
}

.btn-gold:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(142, 91, 8, 0.45);
}

.btn-secondary {
  background: transparent;
  color: var(--primary-green);
  border-color: var(--primary-green);
}

.btn-secondary:hover {
  background: rgba(0, 112, 0, 0.06);
  border-color: var(--primary-green-light);
}

.btn-ghost-white {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(8px);
}

.btn-ghost-white:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: var(--white);
  transform: translateY(-2px);
}

.btn-whatsapp {
  background: #25D366;
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
}

.btn-whatsapp:hover {
  background: #20BA5A;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.45);
}

.btn-sm {
  padding: 9px 16px;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 18px 34px;
  font-size: 1.05rem;
}

/* ==========================================================================
   NAVIGATION BAR
   ========================================================================== */

/* Entry animation: header slides down from above */
@keyframes headerSlideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Staggered nav-link fade-in */
@keyframes navLinkFadeIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Glowing pulse on active pill */
@keyframes activeGlow {
  0%, 100% { box-shadow: 0 0 0 1px rgba(142, 91, 8, 0.45), 0 0 8px rgba(142, 91, 8, 0.25); }
  50%       { box-shadow: 0 0 0 1px rgba(142, 91, 8, 0.7),  0 0 16px rgba(142, 91, 8, 0.45); }
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 12px 0;
  background: rgba(0, 40, 0, 0.6);
  backdrop-filter: blur(20px) saturate(1.8);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  /* Entry animation */
  animation: headerSlideDown 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
  /* Smooth property transitions after load */
  transition: padding 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              background 0.35s ease,
              box-shadow 0.35s ease,
              border-color 0.35s ease;
}

.site-header.scrolled {
  padding: 8px 0;
  background: rgba(0, 25, 0, 0.97);
  box-shadow: 0 6px 32px rgba(0, 0, 0, 0.5), 0 1px 0 rgba(142, 91, 8, 0.3);
  border-bottom: 1px solid rgba(142, 91, 8, 0.28);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  /* Brand gets its own space; nav takes remaining and centers itself */
}

/* Brand — fixed-width anchor so nav never overlaps it */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;          /* never compress */
  min-width: 0;
  /* Animate brand in slightly after header */
  animation: navLinkFadeIn 0.55s 0.2s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.brand:hover .brand-logo-img {
  transform: scale(1.06) rotate(-3deg);
}

.brand-logo-img {
  height: 40px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.55));
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.brand-text-wrap {
  display: flex;
  flex-direction: column;
}

.brand-name {
  color: var(--white);
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  font-family: 'Fraunces', serif;
  line-height: 1.1;
  white-space: nowrap;
}

.brand-name span {
  color: #E2A638;
}

.brand-tagline {
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(209, 231, 208, 0.7);
  font-weight: 600;
  white-space: nowrap;
}

/* ── Desktop Nav ── */
.desktop-nav {
  flex: 1;                   /* takes all remaining space */
  display: flex;
  justify-content: center;   /* pill sits in the centre */
  min-width: 0;
  overflow: visible;
  /* Slide in after header */
  animation: navLinkFadeIn 0.55s 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-full);
  padding: 4px 6px;
  backdrop-filter: blur(10px);
  white-space: nowrap;
  /* subtle inner glow line at top */
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.1);
}

/* Stagger each link's entry */
.nav-links li:nth-child(1) .nav-link { animation: navLinkFadeIn 0.4s 0.45s both; }
.nav-links li:nth-child(2) .nav-link { animation: navLinkFadeIn 0.4s 0.52s both; }
.nav-links li:nth-child(3) .nav-link { animation: navLinkFadeIn 0.4s 0.59s both; }
.nav-links li:nth-child(4) .nav-link { animation: navLinkFadeIn 0.4s 0.66s both; }
.nav-links li:nth-child(5) .nav-link { animation: navLinkFadeIn 0.4s 0.73s both; }
.nav-links li:nth-child(6) .nav-link { animation: navLinkFadeIn 0.4s 0.80s both; }
.nav-links li:nth-child(7) .nav-link { animation: navLinkFadeIn 0.4s 0.87s both; }
.nav-links li:nth-child(8) .nav-link { animation: navLinkFadeIn 0.4s 0.94s both; }

.nav-link {
  color: rgba(224, 234, 222, 0.85);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.015em;
  padding: 6px 11px;
  border-radius: var(--radius-full);
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
  display: block;
}

.nav-link:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.11);
  transform: translateY(-1px);
}

.nav-link.active {
  color: var(--white);
  background: rgba(142, 91, 8, 0.28);
  animation: activeGlow 2.8s ease-in-out infinite;
}

/* No old underline */
.nav-link::after {
  display: none;
}

/* Nav Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* Make the CTA button pill-shaped in the header */
.header-actions .btn-primary.btn-sm {
  border-radius: var(--radius-full);
  padding: 8px 18px;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
  box-shadow: 0 2px 10px rgba(0, 112, 0, 0.4);
}

.wa-round-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: var(--transition);
  box-shadow: 0 3px 10px rgba(37, 211, 102, 0.4);
  flex-shrink: 0;
}

.wa-round-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.55);
}

/* Mobile Toggle */
.menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--white);
  border-radius: var(--radius-sm);
}

.menu-btn svg {
  display: block;
}

/* Mobile Drawer */
.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 380px;
  height: 100vh;
  background: var(--deep-green);
  z-index: 1050;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.6);
  transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
}

.mobile-nav-drawer.open {
  right: 0;
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.drawer-close-btn {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
}

.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 36px;
}

.mobile-nav-links a {
  color: #E2ECE0;
  font-size: 1.15rem;
  font-weight: 600;
  display: block;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.mobile-nav-links a:hover {
  color: #FFD278;
  padding-left: 6px;
}

.mobile-drawer-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: auto;
}

.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1040;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.drawer-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* ==========================================================================
   HERO SECTION (CINEMATIC)
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-height) + 50px);
  padding-bottom: 90px;
  color: var(--white);
  overflow: hidden;
  background-color: var(--deep-green);
}

.hero-bg-media {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-bg-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
  transform: scale(1.03);
  animation: heroKenBurns 28s alternate infinite ease-in-out;
}

@keyframes heroKenBurns {
  0% { transform: scale(1.02) translate(0, 0); }
  100% { transform: scale(1.08) translate(-1%, -1%); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    135deg,
    rgba(0, 32, 0, 0.88) 0%,
    rgba(0, 51, 0, 0.78) 45%,
    rgba(2, 26, 2, 0.88) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 780px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(142, 91, 8, 0.28);
  border: 1px solid rgba(226, 166, 56, 0.45);
  color: #FFDE8A;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.825rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 24px;
  backdrop-filter: blur(8px);
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #25D366;
  box-shadow: 0 0 10px #25D366;
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.2); }
}

.hero-headline {
  color: var(--white);
  margin-bottom: 24px;
  font-family: 'Fraunces', serif;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  line-height: 1.08;
}

.hero-headline em {
  font-style: normal;
  color: #FFD278;
  position: relative;
}

.hero-subtext {
  font-size: clamp(1.05rem, 1.9vw, 1.25rem);
  color: #DFEADF;
  line-height: 1.65;
  margin-bottom: 38px;
  max-width: 650px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin-bottom: 38px;
}

.hero-whatsapp-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #E2F3E3;
  font-size: 0.9rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.08);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: var(--transition);
}

.hero-whatsapp-inline:hover {
  background: rgba(37, 211, 102, 0.18);
  border-color: #25D366;
  color: #FFFFFF;
}

/* Hero Stats / Trust Strip */
.hero-trust-bar {
  position: relative;
  z-index: 3;
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.trust-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.trust-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(0, 112, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFD278;
  flex-shrink: 0;
}

.trust-info h4 {
  color: var(--white);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.trust-info p {
  color: #B5CEB3;
  font-size: 0.85rem;
  line-height: 1.4;
}

@media (max-width: 992px) {
  .hero-trust-bar {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .hero-trust-bar {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

/* ==========================================================================
   FEATURED MACHINERY SECTION
   ========================================================================== */
.featured-section {
  background-color: var(--surface-light);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
}

@media (max-width: 480px) {
  .products-grid {
    grid-template-columns: 1fr;
  }
}

/* Product Card */
.machinery-card {
  background: var(--surface-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  position: relative;
}

.machinery-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(0, 112, 0, 0.35);
}

.card-image-box {
  position: relative;
  width: 100%;
  height: 250px;
  background: #EBF2E8;
  overflow: hidden;
  cursor: pointer;
}

.card-image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.machinery-card:hover .card-image-box img {
  transform: scale(1.06);
}

.card-badge-layer {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 2;
  pointer-events: none;
}

.card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.card-category {
  font-size: 0.825rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--gold);
  letter-spacing: 0.05em;
}

.card-model-year {
  font-size: 0.8rem;
  color: var(--text-subtle);
  font-weight: 600;
}

.card-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-main);
  transition: color 0.2s ease;
}

.machinery-card:hover .card-title {
  color: var(--primary-green);
}

.card-desc-brief {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Specs Matrix in Card */
.specs-pills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 20px;
  padding: 12px;
  background: var(--surface-alt);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
}

.spec-pill {
  display: flex;
  flex-direction: column;
}

.spec-pill-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-subtle);
  letter-spacing: 0.03em;
}

.spec-pill-val {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
}

/* Card Price Row */
.card-price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border-light);
  margin-bottom: 18px;
}

.price-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-subtle);
  text-transform: uppercase;
}

.price-val {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary-green);
}

/* Card Button Actions */
.card-actions-row {
  display: flex;
  gap: 10px;
}

.card-actions-row .btn {
  flex: 1;
}

/* ==========================================================================
   DIGITAL SHOWROOM & CATALOGUE (FILTERS & SEARCH)
   ========================================================================== */
.catalogue-section {
  background-color: var(--surface-card);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.catalogue-controls-bar {
  background: var(--surface-light);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-bottom: 40px;
  box-shadow: var(--shadow-sm);
}

.search-and-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}

.search-box-wrap {
  position: relative;
  flex: 1;
  min-width: 260px;
}

.search-box-wrap input {
  width: 100%;
  padding: 12px 16px 12px 44px;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: var(--surface-card);
  color: var(--text-main);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition);
}

.search-box-wrap input:focus {
  border-color: var(--primary-green);
  box-shadow: 0 0 0 3px rgba(0, 112, 0, 0.12);
}

.search-box-wrap svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-subtle);
  pointer-events: none;
}

.filter-dropdowns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.filter-select {
  padding: 11px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-light);
  background: var(--surface-card);
  color: var(--text-main);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  transition: var(--transition);
}

.filter-select:focus {
  border-color: var(--primary-green);
}

/* Category Pills Bar */
.category-pills-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px dashed var(--border-light);
}

.cat-pill-btn {
  background: var(--surface-card);
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.cat-pill-btn:hover {
  border-color: var(--primary-green);
  color: var(--primary-green);
}

.cat-pill-btn.active {
  background: var(--primary-green);
  border-color: var(--primary-green);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(0, 112, 0, 0.25);
}

.catalogue-results-counter {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ==========================================================================
   WHY RELENTLESS TRACTORS SECTION
   ========================================================================== */
.why-section {
  background-color: var(--surface-light);
}

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

@media (max-width: 1024px) {
  .features-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .features-grid-4 {
    grid-template-columns: 1fr;
  }
}

.feature-box {
  background: var(--surface-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 36px 28px;
  transition: var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
}

.feature-box:hover {
  transform: translateY(-4px);
  border-color: rgba(142, 91, 8, 0.4);
  box-shadow: var(--shadow-md);
}

.feature-number {
  font-family: 'Fraunces', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.feature-number::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border-light);
}

.feature-icon-box {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  background: rgba(0, 112, 0, 0.08);
  border: 1px solid rgba(0, 112, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-green);
  margin-bottom: 22px;
}

.feature-box h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: var(--text-main);
}

.feature-box p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ==========================================================================
   IMAGE-LED CATEGORIES SECTION
   ========================================================================== */
.categories-showcase-section {
  background: var(--surface-alt);
}

.category-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 900px) {
  .category-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .category-cards-grid {
    grid-template-columns: 1fr;
  }
}

.category-banner-card {
  position: relative;
  height: 280px;
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 30px;
  text-decoration: none;
  color: var(--white);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.category-banner-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.cat-banner-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.cat-banner-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.category-banner-card:hover .cat-banner-bg img {
  transform: scale(1.08);
}

.cat-banner-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(to top, rgba(0, 40, 0, 0.92) 0%, rgba(0, 40, 0, 0.4) 60%, rgba(0, 40, 0, 0.1) 100%);
  transition: var(--transition);
}

.category-banner-card:hover .cat-banner-overlay {
  background: linear-gradient(to top, rgba(0, 30, 0, 0.96) 0%, rgba(0, 60, 0, 0.5) 60%, rgba(0, 30, 0, 0.2) 100%);
}

.cat-banner-content {
  position: relative;
  z-index: 3;
}

.cat-banner-gold-line {
  width: 36px;
  height: 3px;
  background: var(--gold);
  margin-bottom: 12px;
  transition: width 0.3s ease;
}

.category-banner-card:hover .cat-banner-gold-line {
  width: 60px;
}

.cat-banner-content h3 {
  color: var(--white);
  font-size: 1.4rem;
  margin-bottom: 6px;
}

.cat-banner-content p {
  color: #D3E6D0;
  font-size: 0.9rem;
  margin-bottom: 14px;
}

.cat-explore-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #FFD278;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ==========================================================================
   CALL TO ACTION BANNER (DEEP GREEN)
   ========================================================================== */
.cta-banner-section {
  background: linear-gradient(135deg, var(--deep-green-ultra) 0%, var(--deep-green) 50%, #052f05 100%);
  color: var(--white);
  padding: 84px 0;
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(142, 91, 8, 0.3);
  border-bottom: 1px solid rgba(142, 91, 8, 0.3);
}

.cta-banner-inner {
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.cta-banner-title {
  color: var(--white);
  font-family: 'Fraunces', serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.15;
  margin-bottom: 20px;
}

.cta-banner-title span {
  color: #FFD278;
}

.cta-banner-desc {
  font-size: 1.15rem;
  color: #CFE3CC;
  line-height: 1.6;
  margin-bottom: 38px;
}

.cta-banner-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

/* ==========================================================================
   SERVICES SECTION
   ========================================================================== */
.services-section {
  background: var(--surface-light);
}

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

@media (max-width: 992px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

.service-card {
  background: var(--surface-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary-green);
  box-shadow: var(--shadow-md);
}

.service-icon-wrap {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-sm);
  background: rgba(0, 112, 0, 0.1);
  color: var(--primary-green);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}

.service-card h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.925rem;
  line-height: 1.6;
  margin-bottom: 20px;
  flex: 1;
}

.service-bullets {
  list-style: none;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.service-bullets li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-main);
  font-weight: 600;
}

.service-bullets li svg {
  color: var(--primary-green);
  flex-shrink: 0;
}

/* ==========================================================================
   ABOUT US SECTION
   ========================================================================== */
.about-section {
  background: var(--surface-card);
}

.about-split {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
}

@media (max-width: 900px) {
  .about-split {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.about-visual {
  position: relative;
}

.about-main-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
}

.about-main-image img {
  width: 100%;
  height: 480px;
  object-fit: cover;
}

.about-floating-card {
  position: absolute;
  bottom: -24px;
  right: -24px;
  background: var(--deep-green);
  color: var(--white);
  padding: 24px 28px;
  border-radius: var(--radius-md);
  border: 2px solid var(--gold);
  box-shadow: var(--shadow-lg);
  max-width: 260px;
}

@media (max-width: 600px) {
  .about-floating-card {
    position: static;
    margin-top: 16px;
    max-width: 100%;
  }
}

.about-floating-card h4 {
  color: #FFD278;
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 6px;
}

.about-floating-card p {
  font-size: 0.85rem;
  color: #D3EAD1;
  line-height: 1.4;
}

.about-text .section-title {
  margin-bottom: 22px;
}

.about-text p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 18px;
}

.about-pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 28px 0;
}

.pillar-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.pillar-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
  margin-top: 7px;
  flex-shrink: 0;
}

.pillar-item h5 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.pillar-item p {
  font-size: 0.85rem;
  margin-bottom: 0;
}

/* ==========================================================================
   GALLERY SECTION (WITH LIGHTBOX)
   ========================================================================== */
.gallery-section {
  background: var(--surface-light);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 240px;
  gap: 18px;
}

@media (max-width: 992px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 500px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 220px;
  }
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}

.gallery-item.span-2-col {
  grid-column: span 2;
}

.gallery-item.span-2-row {
  grid-row: span 2;
}

@media (max-width: 768px) {
  .gallery-item.span-2-col,
  .gallery-item.span-2-row {
    grid-column: span 1;
    grid-row: span 1;
  }
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 40, 0, 0.85) 0%, rgba(0, 40, 0, 0.2) 60%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  color: var(--white);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-caption-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
}

.gallery-caption-sub {
  font-size: 0.8rem;
  color: #D2E4D0;
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 20, 0, 0.94);
  backdrop-filter: blur(10px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-content-wrap {
  position: relative;
  max-width: 980px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-img-box {
  width: 100%;
  max-height: 75vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: var(--radius-sm);
  box-shadow: 0 20px 60px rgba(0,0,0,0.8);
}

.lightbox-img-box img {
  max-height: 75vh;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.lightbox-caption-box {
  width: 100%;
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: white;
}

.lightbox-close-btn {
  position: absolute;
  top: -46px;
  right: 0;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   BLOG & BUYER GUIDES SECTION
   ========================================================================== */
.blog-section {
  background: var(--surface-card);
}

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

@media (max-width: 992px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
}

.blog-card {
  background: var(--surface-light);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-green);
}

.blog-card-media {
  height: 200px;
  overflow: hidden;
  position: relative;
}

.blog-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-card:hover .blog-card-media img {
  transform: scale(1.06);
}

.blog-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-meta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--text-subtle);
  margin-bottom: 12px;
}

.blog-tag {
  color: var(--gold);
  font-weight: 700;
  text-transform: uppercase;
}

.blog-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  line-height: 1.35;
  color: var(--text-main);
}

.blog-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 20px;
  flex: 1;
}

.read-guide-btn {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary-green);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

.read-guide-btn:hover {
  color: var(--primary-green-light);
  gap: 10px;
}

/* ==========================================================================
   QUOTATION ENQUIRY FORM & MODAL
   ========================================================================== */
.quote-section {
  background: linear-gradient(to bottom, var(--surface-light) 0%, var(--surface-alt) 100%);
}

.quote-wrapper-card {
  background: var(--surface-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  max-width: 980px;
  margin: 0 auto;
}

.quote-card-header {
  background: var(--deep-green);
  color: var(--white);
  padding: 36px 40px;
  border-bottom: 3px solid var(--gold);
}

.quote-card-header h2 {
  color: var(--white);
  font-family: 'Fraunces', serif;
  font-size: 1.85rem;
  margin-bottom: 8px;
}

.quote-card-header p {
  color: #CFE3CD;
  font-size: 0.95rem;
}

.quote-card-body {
  padding: 40px;
}

@media (max-width: 600px) {
  .quote-card-header,
  .quote-card-body {
    padding: 24px;
  }
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

@media (max-width: 768px) {
  .form-grid-2 {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.form-label .required {
  color: #C53030;
}

.form-control {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: var(--surface-card);
  color: var(--text-main);
  font-size: 0.95rem;
  transition: var(--transition);
  outline: none;
}

.form-control:focus {
  border-color: var(--primary-green);
  box-shadow: 0 0 0 3px rgba(0, 112, 0, 0.12);
}

.form-control.error {
  border-color: #E53E3E;
  background-color: #FFF5F5;
}

.error-hint {
  font-size: 0.775rem;
  color: #E53E3E;
  margin-top: 3px;
  display: none;
}

.form-control.error + .error-hint {
  display: block;
}

.checkbox-wrap {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 18px 0 28px;
  cursor: pointer;
}

.checkbox-wrap input {
  margin-top: 4px;
  accent-color: var(--primary-green);
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.checkbox-wrap span {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ==========================================================================
   CONTACT PAGE & MAP
   ========================================================================== */
.contact-section {
  background: var(--surface-card);
}

.contact-split-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
}

@media (max-width: 900px) {
  .contact-split-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

.contact-info-panel {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.contact-card-box {
  background: var(--surface-light);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 32px 28px;
}

.contact-card-box h3 {
  font-size: 1.35rem;
  margin-bottom: 20px;
  color: var(--text-main);
}

.contact-details-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-item-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(0, 112, 0, 0.1);
  color: var(--primary-green);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-item-text h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--text-subtle);
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 3px;
}

.contact-item-text a,
.contact-item-text p {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-main);
}

.contact-item-text a:hover {
  color: var(--primary-green);
}

/* Map Simulation Box */
.map-embed-box {
  background: #E4ECE3;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  height: 240px;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
}

.map-embed-box::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(#007000 0.75px, transparent 0.75px),
    radial-gradient(#8E5B08 0.75px, #E4ECE3 0.75px);
  background-size: 24px 24px;
  background-position: 0 0, 12px 12px;
  opacity: 0.45;
}

.map-badge-card {
  position: relative;
  z-index: 2;
  background: var(--white);
  padding: 18px 24px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  border: 1.5px solid var(--primary-green);
}

.map-badge-card h4 {
  font-size: 1.05rem;
  color: var(--deep-green);
  margin-bottom: 4px;
}

.map-badge-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: var(--deep-green-ultra);
  color: #BDCEBA;
  padding-top: 80px;
  padding-bottom: 32px;
  border-top: 2px solid var(--gold);
}

.footer-main-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 48px;
  margin-bottom: 56px;
}

@media (max-width: 1024px) {
  .footer-main-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}

@media (max-width: 600px) {
  .footer-main-grid {
    grid-template-columns: 1fr;
  }
}

.footer-col-brand .brand {
  margin-bottom: 18px;
}

.footer-desc {
  font-size: 0.925rem;
  line-height: 1.65;
  color: #A3BCA0;
  margin-bottom: 24px;
  max-width: 320px;
}

.footer-title {
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 8px;
}

.footer-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 24px;
  height: 2px;
  background: var(--gold);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: #A3BCA0;
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--white);
  padding-left: 4px;
}

.footer-bottom-bar {
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.85rem;
  color: #799475;
}

/* ==========================================================================
   PRODUCT DETAILS MODAL
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 20, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-window {
  background: var(--surface-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-backdrop.active .modal-window {
  transform: translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.08);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  z-index: 10;
  transition: var(--transition);
}

.modal-close-btn:hover {
  background: var(--primary-green);
  color: white;
}

.modal-inner-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 32px;
  padding: 36px;
}

@media (max-width: 800px) {
  .modal-inner-grid {
    grid-template-columns: 1fr;
    padding: 24px;
    gap: 24px;
  }
}

.modal-media-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.modal-main-img-box {
  width: 100%;
  height: 320px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #E8EFE6;
  border: 1px solid var(--border-light);
}

.modal-main-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
  font-size: 0.88rem;
}

.specs-table tr {
  border-bottom: 1px solid var(--border-light);
}

.specs-table td {
  padding: 10px 8px;
}

.specs-table td:first-child {
  color: var(--text-muted);
  font-weight: 600;
  width: 42%;
}

.specs-table td:last-child {
  color: var(--text-main);
  font-weight: 700;
}

/* ==========================================================================
   FLOATING ACTION BUTTONS & STICKY MOBILE BAR
   ========================================================================== */
.floating-whatsapp-widget {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 990;
  display: flex;
  align-items: center;
  gap: 10px;
}

.wa-fab {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
}

.wa-fab:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.6);
}

.wa-fab-pulse {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid #25D366;
  animation: pulseRipple 2.2s infinite;
  pointer-events: none;
}

@keyframes pulseRipple {
  0% { transform: scale(1); opacity: 0.9; }
  100% { transform: scale(1.45); opacity: 0; }
}

.wa-tooltip-bubble {
  background: var(--surface-card);
  color: var(--text-main);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  white-space: nowrap;
  animation: floatTooltip 3s infinite ease-in-out;
}

@keyframes floatTooltip {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

/* Mobile Sticky Bottom CTA Bar */
.mobile-bottom-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--surface-card);
  border-top: 1px solid var(--border-light);
  padding: 10px 16px;
  z-index: 980;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.1);
  gap: 10px;
}

@media (max-width: 768px) {
  .mobile-bottom-bar {
    display: flex;
  }
  .floating-whatsapp-widget {
    bottom: 80px;
    right: 18px;
  }
  .wa-tooltip-bubble {
    display: none;
  }
}

.mobile-bottom-bar .btn {
  flex: 1;
  padding: 12px 14px;
  font-size: 0.88rem;
}

/* ==========================================================================
   TOAST NOTIFICATION
   ========================================================================== */
.toast-notice {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--deep-green);
  color: var(--white);
  padding: 14px 24px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-lg);
  border: 1.5px solid var(--gold);
  z-index: 3000;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.925rem;
  font-weight: 600;
  opacity: 0;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.toast-notice.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* ==========================================================================
   PREMIUM MOTION & LAZY-LOAD ENHANCEMENTS
   ========================================================================== */
body::before,
body::after {
  content: "";
  position: fixed;
  z-index: 0;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.18;
  pointer-events: none;
}

body::before {
  top: -130px;
  left: -80px;
  background: rgba(142, 91, 8, 0.45);
}

body::after {
  right: -100px;
  bottom: -130px;
  background: rgba(0, 112, 0, 0.45);
}

main,
header,
footer,
section,
article,
aside {
  position: relative;
  z-index: 1;
}

.reveal {
  opacity: 0;
  transform: translateY(30px) scale(0.985);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.lazy-image {
  opacity: 0.4;
  filter: saturate(0.8) blur(4px);
  transform: scale(1.02);
  transition: opacity 0.7s ease, filter 0.8s ease, transform 0.8s ease;
}

.lazy-image.is-loaded {
  opacity: 1;
  filter: saturate(1) blur(0);
  transform: scale(1);
}

.machinery-card,
.service-card,
.gallery-card,
.blog-card,
.contact-card,
.quote-card,
.feature-panel,
.about-visual,
.stat-card {
  overflow: hidden;
}

.machinery-card::before,
.service-card::before,
.gallery-card::before,
.blog-card::before,
.quote-card::before,
.contact-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.18), transparent 45%, transparent 100%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.machinery-card:hover::before,
.service-card:hover::before,
.gallery-card:hover::before,
.blog-card:hover::before,
.quote-card:hover::before,
.contact-card:hover::before {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }

  .reveal,
  .lazy-image {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

/* Mobile layout, navigation, and touch-target refinements */
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 2000;
  padding: 12px 16px;
  color: var(--white);
  background: var(--deep-green);
  border: 2px solid var(--gold-light);
  border-radius: var(--radius-sm);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

@media (max-width: 1100px) {
  .desktop-nav {
    display: none;
  }

  .menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 68px;
  }

  .container {
    padding-left: 20px;
    padding-right: 20px;
  }

  .site-header {
    padding: 8px 0;
  }

  .header-inner {
    gap: 10px;
  }

  .header-actions {
    gap: 4px;
  }

  .header-actions .btn-primary.btn-sm,
  .header-actions .wa-round-btn {
    display: none;
  }

  .hero-section {
    min-height: auto;
    padding-top: calc(var(--header-height) + 48px);
    padding-bottom: 52px;
  }

  .hero-headline {
    font-size: clamp(2.35rem, 10vw, 3.65rem);
  }

  .hero-subtext {
    font-size: 1rem;
    margin-bottom: 26px;
  }

  .hero-actions {
    gap: 12px;
    margin-bottom: 28px;
  }

  .hero-actions > .btn {
    width: 100%;
    white-space: normal;
    text-align: center;
  }

  .hero-whatsapp-inline {
    justify-content: center;
    width: 100%;
    min-height: 44px;
  }

  .hero-trust-bar {
    margin-top: 32px;
    padding-top: 24px;
  }

  .section-head {
    margin-bottom: 36px;
  }

  .products-grid,
  .blog-grid,
  .services-grid,
  .features-grid-4,
  .category-cards-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .machinery-card,
  .service-card,
  .blog-card,
  .feature-box {
    min-width: 0;
  }

  .about-main-image img {
    height: min(72vw, 360px);
  }

  .gallery-grid {
    grid-auto-rows: 200px;
  }

  .form-control,
  select.form-control,
  textarea.form-control {
    min-height: 48px;
    font-size: 16px;
  }

  textarea.form-control {
    min-height: 120px;
  }

  .site-footer {
    padding-top: 56px;
    padding-bottom: 28px;
  }

  .footer-bottom-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .mobile-bottom-bar {
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  }

  .mobile-bottom-bar .btn {
    min-height: 48px;
  }

  main {
    padding-bottom: 72px;
  }

  .floating-whatsapp-widget {
    bottom: calc(84px + env(safe-area-inset-bottom));
  }
}

@media (max-width: 480px) {
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .brand {
    gap: 8px;
  }

  .brand-logo-img {
    height: 36px;
  }

  .brand-name {
    font-size: 0.96rem;
    letter-spacing: 0.025em;
  }

  .brand-tagline {
    display: none;
  }

  .hero-section {
    padding-top: calc(var(--header-height) + 36px);
  }

  .hero-trust-bar {
    gap: 14px;
  }

  .card-image-box {
    height: 210px;
  }

  .card-body,
  .blog-card-body {
    padding: 20px;
  }

  .quote-card-header,
  .quote-card-body {
    padding: 20px;
  }

  .modal-backdrop {
    align-items: flex-end;
    padding: 0;
  }

  .modal-window {
    max-height: 92dvh;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  }

  .modal-inner-grid {
    padding: 22px 18px calc(22px + env(safe-area-inset-bottom));
  }

  .modal-main-img-box {
    height: 230px;
  }
}

/* Layered field-inspired surfaces */
body {
  background-image:
    radial-gradient(ellipse at 8% 12%, rgba(204, 173, 105, 0.08), transparent 32rem),
    radial-gradient(ellipse at 92% 46%, rgba(50, 118, 69, 0.06), transparent 36rem);
  background-attachment: fixed;
}

.hero-section {
  isolation: isolate;
  background:
    radial-gradient(ellipse at 78% 16%, rgba(213, 169, 75, 0.18), transparent 35%),
    linear-gradient(145deg, #052607 0%, #003300 54%, #071e0a 100%);
}

.hero-overlay {
  background:
    radial-gradient(ellipse at 76% 20%, rgba(223, 174, 75, 0.16), transparent 34%),
    linear-gradient(105deg, rgba(0, 29, 0, 0.9) 0%, rgba(0, 46, 0, 0.72) 48%, rgba(2, 22, 3, 0.75) 100%);
}

.hero-overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-radial-gradient(
      ellipse at 88% 46%,
      transparent 0 36px,
      rgba(233, 203, 138, 0.13) 37px 38px,
      transparent 39px 68px
    );
  opacity: 0.62;
  mask-image: linear-gradient(100deg, transparent 8%, rgba(0, 0, 0, 0.9) 75%);
  pointer-events: none;
}

.featured-section,
.services-section,
.gallery-section {
  background-color: var(--surface-light);
  background-image:
    radial-gradient(ellipse at 100% 0%, rgba(190, 162, 99, 0.09), transparent 32rem),
    repeating-radial-gradient(
      ellipse at 100% 0%,
      transparent 0 54px,
      rgba(0, 80, 29, 0.025) 55px 56px,
      transparent 57px 92px
    );
}

.catalogue-section,
.about-section,
.blog-section,
.contact-section {
  background-color: var(--surface-card);
  background-image:
    radial-gradient(ellipse at 0% 100%, rgba(0, 91, 31, 0.045), transparent 34rem),
    radial-gradient(ellipse at 100% 0%, rgba(207, 169, 92, 0.06), transparent 30rem);
}

.why-section,
.categories-showcase-section {
  background-color: var(--surface-alt);
  background-image:
    radial-gradient(ellipse at 12% 10%, rgba(255, 255, 255, 0.66), transparent 32rem),
    repeating-radial-gradient(
      ellipse at 100% 100%,
      transparent 0 58px,
      rgba(0, 82, 29, 0.035) 59px 60px,
      transparent 61px 98px
    );
}

.quote-section {
  background-color: var(--surface-alt);
  background-image:
    radial-gradient(ellipse at 8% 0%, rgba(194, 157, 73, 0.13), transparent 28rem),
    radial-gradient(ellipse at 92% 100%, rgba(0, 92, 32, 0.09), transparent 32rem),
    linear-gradient(145deg, var(--surface-light), var(--surface-alt));
}

.cta-banner-section {
  background:
    radial-gradient(ellipse at 82% 0%, rgba(215, 169, 70, 0.18), transparent 38%),
    repeating-radial-gradient(
      ellipse at 100% 100%,
      transparent 0 46px,
      rgba(228, 209, 157, 0.08) 47px 48px,
      transparent 49px 80px
    ),
    linear-gradient(135deg, #021a02 0%, #003300 54%, #052a08 100%);
}

.section:not(.hero-section)::after {
  content: "";
  position: absolute;
  top: 0;
  left: max(24px, calc((100% - var(--max-w)) / 2 + 24px));
  width: clamp(44px, 8vw, 92px);
  height: 2px;
  background: linear-gradient(90deg, var(--gold), rgba(142, 91, 8, 0));
  opacity: 0.55;
  pointer-events: none;
}

@media (max-width: 768px) {
  body {
    background-attachment: scroll;
  }

  .btn {
    max-width: 100%;
    white-space: normal;
    text-align: center;
  }

  .hero-overlay::after {
    background:
      repeating-radial-gradient(
        ellipse at 100% 54%,
        transparent 0 34px,
        rgba(233, 203, 138, 0.11) 35px 36px,
        transparent 37px 64px
      );
    opacity: 0.45;
    mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.85) 100%);
  }

  .section:not(.hero-section)::after {
    left: 20px;
  }
}

@media (max-width: 480px) {
  .section:not(.hero-section)::after {
    left: 16px;
  }
}

/* Premium navigation treatment */
.site-header {
  padding: 10px 0;
  background: linear-gradient(110deg, rgba(3, 31, 8, 0.88), rgba(0, 48, 10, 0.78));
  border-bottom-color: rgba(226, 166, 56, 0.22);
  box-shadow: 0 8px 28px rgba(0, 18, 4, 0.16);
}

.site-header.scrolled {
  padding: 7px 0;
  background: linear-gradient(110deg, rgba(2, 24, 6, 0.97), rgba(0, 42, 8, 0.96));
  border-bottom-color: rgba(226, 166, 56, 0.34);
  box-shadow: 0 10px 32px rgba(0, 18, 4, 0.3);
}

.header-inner {
  gap: clamp(10px, 1.2vw, 18px);
}

.brand {
  gap: 9px;
}

.brand-logo-img {
  height: 42px;
}

.desktop-nav {
  flex: 1 1 auto;
  justify-content: flex-end;
  min-width: 0;
}

.nav-links {
  gap: 2px;
  max-width: 100%;
  padding: 5px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(240, 230, 203, 0.16);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 5px 18px rgba(0, 18, 4, 0.16);
}

.nav-link {
  position: relative;
  padding: 8px clamp(6px, 0.65vw, 10px);
  font-size: clamp(0.68rem, 0.72vw, 0.78rem);
  color: rgba(239, 244, 235, 0.82);
  transition:
    color 220ms ease,
    background-color 220ms ease,
    transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.nav-link::after {
  display: block;
  position: absolute;
  right: 11px;
  bottom: 4px;
  left: 11px;
  height: 2px;
  border-radius: 99px;
  background: linear-gradient(90deg, #f2cc78, #c68b31);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.nav-link:hover,
.nav-link:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.085);
  transform: translateY(-1px);
}

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

.nav-link.active {
  color: #ffe0a0;
  background: rgba(177, 125, 37, 0.15);
  animation: none;
}

.nav-link:focus-visible,
.menu-btn:focus-visible,
.drawer-close-btn:focus-visible,
.mobile-nav-links a:focus-visible {
  outline: 2px solid #f2cc78;
  outline-offset: 3px;
}

.header-actions {
  gap: 9px;
}

.header-actions .btn-primary.btn-sm {
  padding: 10px 15px;
  border: 1px solid rgba(255, 225, 164, 0.34);
  background: linear-gradient(135deg, #138126, #00651b);
  box-shadow:
    0 5px 16px rgba(0, 20, 2, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.header-actions .btn-primary.btn-sm:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 225, 164, 0.72);
  box-shadow: 0 9px 22px rgba(0, 18, 2, 0.34), 0 0 20px rgba(226, 166, 56, 0.13);
}

.wa-round-btn {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 5px 16px rgba(0, 18, 4, 0.28);
}

.menu-btn {
  border: 1px solid rgba(240, 230, 203, 0.2);
  background: rgba(255, 255, 255, 0.07);
  transition: background-color 200ms ease, border-color 200ms ease, transform 200ms ease;
}

.menu-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(242, 204, 120, 0.65);
  background: rgba(255, 255, 255, 0.13);
}

.mobile-nav-drawer {
  right: 0;
  width: min(100vw, 400px);
  max-width: min(100vw, 400px);
  height: 100vh;
  height: 100dvh;
  padding:
    max(26px, env(safe-area-inset-top))
    26px
    max(26px, env(safe-area-inset-bottom));
  background:
    radial-gradient(ellipse at 100% 0%, rgba(199, 151, 62, 0.16), transparent 38%),
    linear-gradient(155deg, #06310e, #021d08 72%);
  border-left: 1px solid rgba(238, 213, 161, 0.18);
  transform: translateX(102%);
  transition: transform 360ms cubic-bezier(0.2, 0.8, 0.2, 1);
  right: 0;
}

.mobile-nav-drawer.open {
  transform: translateX(0);
}

.mobile-nav-links {
  gap: 7px;
  margin-bottom: 26px;
}

.mobile-nav-links a {
  position: relative;
  padding: 11px 13px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
  font-size: 1rem;
  transition:
    color 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
}

.mobile-nav-links a:hover,
.mobile-nav-links a:focus-visible {
  padding-left: 17px;
  color: #ffe0a0;
  border-color: rgba(242, 204, 120, 0.32);
  background: rgba(255, 255, 255, 0.085);
  transform: translateX(2px);
}

.mobile-nav-links li {
  opacity: 0;
  transform: translateX(12px);
  transition: opacity 240ms ease, transform 300ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.mobile-nav-drawer.open .mobile-nav-links li {
  opacity: 1;
  transform: translateX(0);
}

.mobile-nav-drawer.open .mobile-nav-links li:nth-child(1) { transition-delay: 45ms; }
.mobile-nav-drawer.open .mobile-nav-links li:nth-child(2) { transition-delay: 75ms; }
.mobile-nav-drawer.open .mobile-nav-links li:nth-child(3) { transition-delay: 105ms; }
.mobile-nav-drawer.open .mobile-nav-links li:nth-child(4) { transition-delay: 135ms; }
.mobile-nav-drawer.open .mobile-nav-links li:nth-child(5) { transition-delay: 165ms; }
.mobile-nav-drawer.open .mobile-nav-links li:nth-child(6) { transition-delay: 195ms; }
.mobile-nav-drawer.open .mobile-nav-links li:nth-child(7) { transition-delay: 225ms; }
.mobile-nav-drawer.open .mobile-nav-links li:nth-child(8) { transition-delay: 255ms; }
.mobile-nav-drawer.open .mobile-nav-links li:nth-child(9) { transition-delay: 285ms; }

.mobile-drawer-header {
  margin-bottom: 24px;
}

.drawer-close-btn {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: transform 180ms ease, background-color 180ms ease;
}

.drawer-close-btn:hover {
  transform: rotate(90deg);
  background: rgba(255, 255, 255, 0.17);
}

.drawer-overlay {
  background: rgba(1, 12, 4, 0.62);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

@media (max-width: 1180px) {
  .desktop-nav {
    display: none;
  }

  .menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
  }
}

@media (max-width: 768px) {
  .site-header {
    padding: 8px 0;
  }

  .site-header.scrolled {
    padding: 6px 0;
  }

  .header-inner {
    gap: 10px;
  }

  .brand-logo-img {
    height: 38px;
  }
}

@media (max-width: 480px) {
  .mobile-nav-drawer {
    width: min(100vw, 400px);
    max-width: min(100vw, 400px);
    padding-right: 20px;
    padding-left: 20px;
  }
}

@media (max-width: 360px) {
  .header-inner {
    gap: 6px;
  }

  .brand {
    gap: 6px;
    flex: 1 1 auto;
  }

  .brand-logo-img {
    height: 30px;
  }

  .brand-name {
    font-size: 0.78rem;
    letter-spacing: 0;
  }

  .header-actions {
    flex: 0 0 auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mobile-nav-links li {
    opacity: 1;
    transform: none;
  }
}
