@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  /* Brand greens (logo-matched) */
  --g1: #2ecc87;   /* vivid gear green  */
  --g2: #0fa865;   /* brand mid         */
  --g3: #0a7a49;   /* forest mid        */
  --g4: #065233;   /* deep authority    */
  --g5: #031f13;   /* near-black green  */

  /* Charcoal (logo dark surround) */
  --c1: #0d1612;   /* deepest dark      */
  --c2: #141e1a;   /* page dark bg      */
  --c3: #1c2b26;   /* card dark         */
  --c4: #253530;   /* card dark lighter */

  /* Semantic */
  --ink:    #111a16;
  --muted:  #5a6b62;
  --panel:  #ffffff;
  --paper:  #f1f7f3;
  --line:   rgba(17,30,22,.1);

  /* Legacy aliases kept so inner-pages don't break */
  --green:      #065233;
  --green-2:    #0a7a49;
  --paper-strong: #e6f0ea;

  /* Accents */
  --gold:       #c8991e;
  --gold-light: #f0cc5a;
  --orange:     #e0601a;
  --blue:       #3d63d8;

  /* Gradients */
  --grad-green:    linear-gradient(135deg,#2ecc87 0%,#0a7a49 100%);
  --grad-green-h:  linear-gradient(135deg,#40e29a 0%,#0fa865 100%);
  --grad-dark:     linear-gradient(160deg,#031f13 0%,#065233 100%);
  --grad-card:     linear-gradient(150deg,#0d1a13 0%,#162a1e 100%);
  --grad-gold:     linear-gradient(135deg,#f0cc5a 0%,#c8991e 100%);

  /* Shadows (green-tinted) */
  --sh-xs:  0 2px 8px  rgba(3,30,14,.15);
  --sh-sm:  0 4px 20px rgba(3,30,14,.20);
  --sh-md:  0 12px 48px rgba(3,30,14,.28);
  --sh-lg:  0 24px 80px rgba(3,30,14,.38);
  --glow:   0 0 0 3px rgba(46,204,135,.22);

  /* Shape */
  --r-xs:   6px;
  --r-sm:   10px;
  --r:      16px;
  --r-lg:   24px;
  --r-pill: 9999px;

  --header-h: 84px;
}

/* ============================================================
   BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--panel);
  color: var(--ink);
  font-family: 'Plus Jakarta Sans', ui-sans-serif, system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.nav-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
strong { font-weight: 700; }

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  transform: translateY(-160%);
  padding: 10px 14px;
  border-radius: var(--r-xs);
  background: #fff;
  box-shadow: var(--sh-md);
  color: var(--g4);
  font-size: .86rem;
  font-weight: 800;
  transition: transform 160ms ease;
}

.skip-link:focus { transform: none; }

:focus-visible {
  outline: 3px solid rgba(46,204,135,.8);
  outline-offset: 3px;
}

.section-inner {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
}

/* ============================================================
   SITE HEADER & NAV
   ============================================================ */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  padding: 14px 36px;
  color: #fff;
  transition: background 220ms ease, color 220ms ease, box-shadow 220ms ease;
}

.site-header.is-scrolled,
.site-header:focus-within {
  background: rgba(255,255,255,.96);
  color: var(--ink);
  box-shadow: 0 1px 0 rgba(17,30,22,.08), 0 6px 32px rgba(3,30,14,.10);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

/* Brand */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  min-width: 180px;
}

.brand-logo {
  width: 46px;
  height: 46px;
  border-radius: var(--r-sm);
  background: #fff;
  object-fit: contain;
  padding: 3px;
  box-shadow: var(--sh-xs);
}

.brand strong, .brand small { display: block; line-height: 1.15; }
.brand strong { font-size: 1.05rem; font-weight: 800; letter-spacing: -.01em; }
.brand small  { font-size: .72rem; font-weight: 500; opacity: .7; margin-top: 1px; }

/* Nav */
.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--r-sm);
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.site-header.is-scrolled .site-nav,
.site-header:focus-within .site-nav {
  border-color: var(--line);
  background: rgba(241,247,243,.7);
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 13px;
  border-radius: var(--r-xs);
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: .01em;
  transition: background 160ms, color 160ms;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: rgba(255,255,255,.18);
}

.site-header.is-scrolled .site-nav a:hover,
.site-header.is-scrolled .site-nav a[aria-current="page"],
.site-header:focus-within .site-nav a:hover,
.site-header:focus-within .site-nav a[aria-current="page"] {
  background: #fff;
  box-shadow: var(--sh-xs);
}

.site-nav .nav-cta {
  background: var(--grad-green);
  color: #fff;
  box-shadow: 0 4px 16px rgba(10,122,73,.38);
}

.site-nav .nav-cta:hover,
.site-nav .nav-cta[aria-current="page"] {
  background: var(--grad-green-h);
  box-shadow: 0 6px 22px rgba(10,122,73,.50);
  transform: translateY(-1px);
  background-size: 100% 100%;
}

@media (max-width: 1180px) {
  .site-header { min-height: 70px; padding: 12px 22px; }
  .nav-toggle { display: inline-flex; }

  .site-nav {
    position: fixed;
    inset: 78px 18px auto;
    display: grid;
    gap: 6px;
    padding: 14px;
    background: rgba(255,255,255,.97);
    color: var(--ink);
    box-shadow: var(--sh-lg);
    border-radius: var(--r);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity 200ms ease, transform 200ms ease;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
  }

  .site-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .site-nav a { min-height: 48px; justify-content: flex-start; }
}

/* Hamburger */
.nav-toggle {
  position: relative;
  display: none;
  width: 46px; height: 46px;
  align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,.26);
  border-radius: var(--r-sm);
  background: rgba(255,255,255,.1);
  color: currentColor;
  cursor: pointer;
}

.nav-toggle span {
  position: absolute;
  width: 20px; height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 200ms ease;
}

.nav-toggle span:first-child  { transform: translateY(-5px); }
.nav-toggle span:last-child   { transform: translateY(5px); }
.nav-toggle[aria-expanded="true"] span:first-child { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child  { transform: rotate(-45deg); }

@media (min-width: 981px) and (max-width: 1180px) {
  .nav-toggle { display: inline-flex; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 82svh;
  overflow: hidden;
  color: #fff;
}

.home-hero {
  display: grid;
  align-items: end;
  padding: 140px 0 68px;
}

.hero-media, .hero-scrim { position: absolute; inset: 0; }

.hero-media {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  transition: transform 10s ease;
}
.hero:hover .hero-media { transform: scale(1); }

.hero-scrim {
  background:
    linear-gradient(108deg, rgba(1,10,6,.94) 0%, rgba(5,40,22,.75) 46%, rgba(1,10,6,.28) 100%),
    linear-gradient(0deg, rgba(1,10,6,.80) 0%, rgba(1,10,6,.02) 58%);
}

/* Ambient green glow behind text */
.hero-grid::before {
  content: "";
  position: absolute;
  top: -80px; left: -80px;
  width: 640px; height: 640px;
  background: radial-gradient(ellipse at 30% 50%, rgba(46,204,135,.12) 0%, transparent 65%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 660px) minmax(260px,360px);
  gap: 56px;
  align-items: end;
}

/* Eyebrow */
.eyebrow, .breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--g1);
  font-size: .73rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.eyebrow::before, .breadcrumb::before {
  content: "";
  display: inline-block;
  width: 20px; height: 2px;
  background: var(--g1);
  border-radius: 2px;
  flex-shrink: 0;
}

.hero h1, .page-hero h1 {
  margin: 0;
  max-width: 780px;
  font-size: 5.4rem;
  font-weight: 800;
  line-height: .93;
  letter-spacing: -.03em;
}

.hero-lede {
  max-width: 600px;
  margin: 28px 0 0;
  color: rgba(255,255,255,.76);
  font-size: 1.13rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 38px;
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 28px;
  border: 1.5px solid transparent;
  border-radius: var(--r-sm);
  font-size: .9rem;
  font-weight: 800;
  letter-spacing: .01em;
  cursor: pointer;
  transition: transform 200ms ease, box-shadow 200ms ease, background 200ms ease, border-color 200ms ease;
}

.button:hover  { transform: translateY(-2px); }
.button:active { transform: translateY(0); }

.button-primary {
  background: var(--grad-green);
  color: #fff;
  box-shadow: 0 6px 22px rgba(10,122,73,.42);
}

.button-primary:hover {
  background: var(--grad-green-h);
  box-shadow: 0 10px 32px rgba(10,122,73,.56);
}

.button-ghost {
  border-color: rgba(255,255,255,.34);
  color: #fff;
  background: rgba(255,255,255,.07);
  backdrop-filter: blur(8px);
}

.button-ghost:hover {
  background: rgba(255,255,255,.15);
  border-color: rgba(255,255,255,.54);
}

/* Hero stat boxes */
.hero-metrics { display: grid; gap: 10px; }

.hero-metrics div {
  position: relative;
  overflow: hidden;
  min-height: 92px;
  padding: 20px 22px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--r-sm);
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  transition: background 220ms, border-color 220ms;
}

.hero-metrics div::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--grad-green);
}

.hero-metrics div:hover {
  background: rgba(46,204,135,.10);
  border-color: rgba(46,204,135,.28);
}

.hero-metrics strong, .hero-metrics span { display: block; }
.hero-metrics strong { font-size: 1.16rem; font-weight: 800; letter-spacing: -.02em; }
.hero-metrics span   { margin-top: 3px; color: rgba(255,255,255,.62); font-size: .8rem; }

.hero-contact-link {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 18px;
  border-radius: var(--r-sm);
  background: var(--grad-green);
  box-shadow: 0 10px 26px rgba(10,122,73,.34);
  color: #fff;
  font-size: .86rem;
  font-weight: 800;
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.hero-contact-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(10,122,73,.48);
}

.hero-contact-link span { color: #fff; font-size: 1.15rem; }

.service-strip {
  position: relative;
  z-index: 2;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.service-strip-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
}

.service-strip-item {
  display: flex;
  min-height: 148px;
  align-items: center;
  gap: 16px;
  padding: 28px 30px;
  border-left: 1px solid var(--line);
}

.service-strip-item:first-child { border-left: 0; }

.service-strip-item > span {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: var(--r-xs);
  background: rgba(46,204,135,.14);
  color: var(--g3);
  font-size: .71rem;
  font-weight: 800;
}

.service-strip-item strong {
  display: block;
  font-size: .94rem;
}

.service-strip-item p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.55;
}

/* ============================================================
   SECTION SPACING
   ============================================================ */
.intro-band,
.solutions-section,
.feature-band,
.newsletter-section,
.story-section,
.why-section,
.product-section,
.contact-section,
.benefit-section,
.application-section {
  padding: 108px 0;
}

.intro-band          { background: var(--panel); }
.newsletter-section  { background: var(--panel); }
.why-section         { background: var(--paper); }
.benefit-section     { background: var(--paper); }

/* ============================================================
   GRIDS & LAYOUTS
   ============================================================ */
.split-layout, .newsletter-grid, .cta-grid,
.page-hero-grid, .story-grid, .feature-grid, .contact-grid {
  display: grid;
  grid-template-columns: minmax(0,.95fr) minmax(0,1.05fr);
  gap: 68px;
  align-items: center;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h2, h3, p { overflow-wrap: anywhere; }

h2 {
  margin: 0;
  font-size: 2.85rem;
  font-weight: 800;
  line-height: 1.03;
  letter-spacing: -.035em;
}

h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -.01em;
}

.rich-copy p, .feature-copy p, .story-copy p,
.page-hero p, .contact-details h2 {
  margin: 0;
  color: var(--muted);
  font-size: 1.07rem;
  line-height: 1.74;
}

.section-heading { max-width: 680px; margin-bottom: 48px; }
.section-heading p:not(.eyebrow) {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.07rem;
}

/* ============================================================
   INTRO BAND
   ============================================================ */
.intro-band .split-layout { align-items: start; gap: 80px; }
.intro-band h2 { font-size: 2.5rem; }

/* ============================================================
   SOLUTION CARDS  — dark, cinematic
   ============================================================ */
.solutions-section { background: var(--c1); }

.solutions-section .section-heading h2 { color: #fff; }
.solutions-section .section-heading .eyebrow { color: var(--g1); }
.solutions-section .section-heading .eyebrow::before { background: var(--g1); }

.solution-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 16px;
  counter-reset: sol;
}

.solution-card {
  position: relative;
  display: flex;
  min-height: 340px;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  padding: 28px;
  border: 1px solid rgba(46,204,135,.10);
  border-radius: var(--r);
  background: var(--grad-card);
  color: #fff;
  box-shadow: 0 8px 40px rgba(0,0,0,.40);
  opacity: 0;
  transform: translateY(22px);
  counter-increment: sol;
  transition:
    opacity 520ms ease,
    transform 520ms ease,
    border-color 240ms ease,
    box-shadow 240ms ease;
}

.solution-card:nth-child(1) {
  background:
    linear-gradient(0deg, rgba(3,20,12,.96) 0%, rgba(3,20,12,.62) 64%, rgba(3,20,12,.38) 100%),
    url("sliding-gates-cover.avif") center / cover;
}

.solution-card:nth-child(2) {
  background:
    linear-gradient(0deg, rgba(31,17,7,.96) 0%, rgba(31,17,7,.66) 64%, rgba(31,17,7,.30) 100%),
    url("swing-gates-cover.avif") center / cover;
}

.solution-card:nth-child(3) {
  background:
    linear-gradient(0deg, rgba(8,13,28,.97) 0%, rgba(8,13,28,.68) 64%, rgba(8,13,28,.38) 100%),
    url("gate.avif") center / cover;
}

.solution-card:nth-child(4) {
  background:
    linear-gradient(0deg, rgba(32,24,5,.97) 0%, rgba(32,24,5,.70) 64%, rgba(32,24,5,.38) 100%),
    url("gate.avif") 73% center / cover;
}

/* Decorative ghost number (CSS counter — no HTML change needed) */
.solution-card::after {
  content: counter(sol, decimal-leading-zero);
  position: absolute;
  top: -10px;
  right: -4px;
  font-size: 9rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.05em;
  color: rgba(46,204,135,.06);
  pointer-events: none;
  user-select: none;
  transition: color 300ms, transform 300ms;
}

/* Bottom accent bar */
.solution-card::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 4px;
  background: var(--grad-green);
  transition: height 280ms ease;
}

.solution-card:hover {
  border-color: rgba(46,204,135,.28);
  box-shadow: 0 16px 64px rgba(0,0,0,.55), 0 0 0 1px rgba(46,204,135,.16);
  transform: translateY(-6px) !important;
}

.solution-card:hover::after {
  color: rgba(46,204,135,.10);
  transform: scale(1.06) translateY(-4px);
}

.solution-card:hover::before { height: 6px; }

/* Accent colour overrides */
.solution-card.accent-orange {
  background: linear-gradient(150deg,#150c07 0%,#221409 100%);
}
.solution-card.accent-orange::before {
  background: linear-gradient(90deg,#e0601a,#f5973b);
}
.solution-card.accent-orange::after { color: rgba(224,96,26,.08); }

.solution-card.accent-blue {
  background: linear-gradient(150deg,#080d1c 0%,#0e1530 100%);
}
.solution-card.accent-blue::before {
  background: linear-gradient(90deg,#3d63d8,#6589e8);
}
.solution-card.accent-blue::after { color: rgba(61,99,216,.08); }

.solution-card.accent-gold {
  background: linear-gradient(150deg,#130f04 0%,#211a08 100%);
}
.solution-card.accent-gold::before { background: var(--grad-gold); }
.solution-card.accent-gold::after  { color: rgba(200,153,30,.08); }

/* Number badge (the small span in HTML) */
.solution-number {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: var(--r-xs);
  background: rgba(46,204,135,.12);
  border: 1px solid rgba(46,204,135,.22);
  color: var(--g1);
  font-size: .73rem;
  font-weight: 800;
  margin-bottom: auto;
}

.solution-card h3 {
  position: relative;
  z-index: 1;
  margin-top: 52px;
  font-size: 1.4rem;
  color: #fff;
  letter-spacing: -.02em;
}

.solution-card p {
  position: relative;
  z-index: 1;
  margin: 10px 0 0;
  color: rgba(255,255,255,.58);
  font-size: .92rem;
  line-height: 1.58;
}

.solution-card a, .text-link {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  color: var(--g1);
  font-size: .85rem;
  font-weight: 800;
  letter-spacing: .01em;
  transition: gap 200ms, color 200ms;
}

.solution-card a:hover, .text-link:hover {
  color: #fff;
  gap: 13px;
}

.solution-card a::after, .text-link::after {
  content: "→";
  transition: transform 200ms;
}

.solution-card a:hover::after, .text-link:hover::after {
  transform: translateX(4px);
}

/* text-link on light backgrounds */
.intro-band .text-link,
.why-section .text-link,
.benefit-section .text-link,
.newsletter-section .text-link,
.contact-section .text-link,
.product-section .text-link {
  color: var(--g3);
}
.intro-band .text-link:hover,
.why-section .text-link:hover,
.benefit-section .text-link:hover,
.newsletter-section .text-link:hover,
.contact-section .text-link:hover,
.product-section .text-link:hover {
  color: var(--g2);
}

/* Animate-in state */
.solution-card.is-visible { opacity: 1; transform: none; }

/* ============================================================
   FEATURE BAND
   ============================================================ */
.feature-band {
  position: relative;
  overflow: hidden;
  background: var(--grad-dark);
  color: #fff;
}

/* Radial glow */
.feature-band::before {
  content: "";
  position: absolute;
  inset: -30% -8% -30% auto;
  width: 54%;
  background: radial-gradient(ellipse at center, rgba(46,204,135,.14) 0%, transparent 68%);
  pointer-events: none;
}

/* Subtle mesh lines */
.feature-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(90deg, rgba(46,204,135,.025) 0px, rgba(46,204,135,.025) 1px, transparent 1px, transparent 60px),
    repeating-linear-gradient(0deg,  rgba(46,204,135,.025) 0px, rgba(46,204,135,.025) 1px, transparent 1px, transparent 60px);
  pointer-events: none;
}

.feature-grid {
  position: relative;
  z-index: 1;
  grid-template-columns: minmax(0,1.12fr) minmax(0,.88fr);
}

.feature-visual {
  position: relative;
  min-height: 530px;
  overflow: hidden;
  border-radius: var(--r-lg);
  box-shadow: var(--sh-lg);
}

.feature-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
  pointer-events: none;
}

.feature-visual img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.feature-copy .eyebrow        { color: var(--g1); }
.feature-copy .eyebrow::before{ background: var(--g1); }

.feature-copy p {
  margin-top: 24px;
  color: rgba(255,255,255,.68);
  font-size: 1.07rem;
  line-height: 1.74;
}

.feature-copy .text-link { color: #fff; margin-top: 30px; }
.feature-copy .text-link:hover { color: var(--g1); }
.feature-copy .text-link::after { color: var(--g1); }

/* ============================================================
   NEWSLETTER
   ============================================================ */
.newsletter-section { position: relative; overflow: hidden; }

.newsletter-section::before {
  content: "";
  position: absolute;
  inset: -40% auto -40% -8%;
  width: 44%;
  background: radial-gradient(ellipse at center, rgba(46,204,135,.06) 0%, transparent 68%);
  pointer-events: none;
}

.newsletter-grid { position: relative; z-index: 1; }
.newsletter-grid h2 { font-size: 2.15rem; }
.newsletter-note {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: .96rem;
}

.newsletter-section .text-link { margin-top: 16px; }

.inline-form, .contact-form { display: grid; gap: 14px; }
.inline-form {
  grid-template-columns: 1fr 1fr auto;
  align-items: end;
  gap: 12px;
}

label span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: .76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
}

input, select, textarea {
  width: 100%;
  min-height: 52px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  background: #fff;
  color: var(--ink);
  padding: 0 16px;
  outline: none;
  font-weight: 500;
  transition: border-color 200ms, box-shadow 200ms;
}

textarea { min-height: 160px; padding-top: 14px; resize: vertical; }

input:focus, select:focus, textarea:focus {
  border-color: var(--g2);
  box-shadow: 0 0 0 4px rgba(15,168,101,.14);
}

input::placeholder, textarea::placeholder { color: #b0bab4; }

/* ============================================================
   APPLICATION SECTION — dark, cinematic
   ============================================================ */
.application-section {
  background: var(--c2);
  position: relative;
  overflow: hidden;
}

.application-section::before {
  content: "";
  position: absolute;
  inset: -30% auto -30% -5%;
  width: 50%;
  background: radial-gradient(ellipse at center, rgba(46,204,135,.08) 0%, transparent 65%);
  pointer-events: none;
}

.application-section .section-heading h2 { color: #fff; }
.application-section .section-heading .eyebrow { color: var(--g1); }
.application-section .section-heading .eyebrow::before { background: var(--g1); }
.application-section .section-heading p { color: rgba(255,255,255,.55); }

.application-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 16px;
}

.application-card {
  position: relative;
  overflow: hidden;
  padding: 32px 30px 30px;
  border: 1px solid rgba(46,204,135,.10);
  border-radius: var(--r);
  background: rgba(255,255,255,.04);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #fff;
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 520ms ease,
    transform 520ms ease,
    border-color 240ms,
    background 240ms,
    box-shadow 240ms;
}

.application-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--grad-green);
  border-radius: 0 2px 2px 0;
  transition: width 240ms;
}

.application-card:hover {
  border-color: rgba(46,204,135,.26);
  background: rgba(46,204,135,.06);
  box-shadow: 0 12px 48px rgba(0,0,0,.40);
  transform: translateY(-5px) !important;
}

.application-card:hover::before { width: 4px; }

.application-card h3 { margin-bottom: 14px; color: #fff; }

.application-card p {
  margin: 0;
  color: rgba(255,255,255,.55);
  font-size: .94rem;
  line-height: 1.65;
}

.application-card .text-link {
  margin-top: 24px;
  color: var(--g1);
}

.application-card .text-link:hover { color: #fff; }
.application-card .text-link::after { color: var(--g1); }
.application-card.is-visible { opacity: 1; transform: none; }

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.page-hero {
  padding: 165px 0 96px;
  background: var(--c1);
  color: #fff;
  position: relative;
  overflow: hidden;
}

/* When a real cover photo is provided */
.page-hero.has-media .page-hero-media,
.page-hero.has-media .page-hero-scrim {
  position: absolute;
  inset: 0;
}

.page-hero.has-media .page-hero-media {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: .35;
  filter: saturate(.8);
}

.page-hero.has-media .page-hero-scrim {
  background:
    linear-gradient(108deg, rgba(1,10,6,.92) 0%, rgba(5,40,22,.78) 48%, rgba(1,10,6,.40) 100%),
    linear-gradient(0deg, rgba(1,10,6,.85) 0%, rgba(1,10,6,.05) 52%);
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 70% at 82% 50%, rgba(46,204,135,.12) 0%, transparent 65%),
    radial-gradient(ellipse 40% 50% at 18% 80%, rgba(10,122,73,.16) 0%, transparent 60%),
    repeating-linear-gradient(90deg, rgba(46,204,135,.02) 0px, rgba(46,204,135,.02) 1px, transparent 1px, transparent 64px),
    repeating-linear-gradient(0deg,  rgba(46,204,135,.02) 0px, rgba(46,204,135,.02) 1px, transparent 1px, transparent 64px);
  pointer-events: none;
}

.page-hero-grid { position: relative; z-index: 1; }
.page-hero p { color: rgba(255,255,255,.70); line-height: 1.74; }
.page-hero .breadcrumb { color: var(--gold-light); }
.page-hero .breadcrumb::before { background: var(--gold-light); }

/* ============================================================
   STORY / ABOUT
   ============================================================ */
.story-grid { align-items: stretch; }

.portrait-panel {
  position: relative;
  min-height: 540px;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--c2);
  box-shadow: var(--sh-lg);
}

.portrait-panel img { width: 100%; height: 100%; object-fit: cover; }

.portrait-caption {
  position: absolute;
  right: 18px; bottom: 18px; left: 18px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 22px;
  border-radius: var(--r-sm);
  background: rgba(255,255,255,.93);
  color: var(--ink);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 8px 32px rgba(0,0,0,.16);
}

.portrait-caption strong, .portrait-caption span { overflow-wrap: anywhere; }

.story-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 520ms ease, transform 520ms ease;
}

.story-copy p:last-child { margin-top: 22px; }
.story-copy.is-visible { opacity: 1; transform: none; }

/* ============================================================
   WHY GRID
   ============================================================ */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 16px;
}

.why-grid article {
  position: relative;
  min-height: 316px;
  padding: 30px 26px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--panel);
  overflow: hidden;
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 520ms ease, transform 520ms ease, border-color 240ms, box-shadow 240ms;
}

.why-grid article::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 3px;
  background: var(--grad-green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 300ms ease;
}

.why-grid article:hover {
  border-color: rgba(10,122,73,.22);
  box-shadow: var(--sh-sm);
}

.why-grid article:hover::after { transform: scaleX(1); }
.why-grid article.is-visible { opacity: 1; transform: none; }

.why-grid span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  margin-bottom: 38px;
  border-radius: var(--r-xs);
  background: linear-gradient(135deg, rgba(46,204,135,.18), rgba(10,122,73,.10));
  color: var(--g2);
  font-size: .73rem;
  font-weight: 800;
  border: 1px solid rgba(46,204,135,.20);
}

.why-grid p, .product-card p {
  color: var(--muted);
  line-height: 1.65;
}

/* ============================================================
   CTA BAND
   ============================================================ */
.cta-band {
  padding: 96px 0;
  background: var(--c1);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: -50% -8% -50% auto;
  width: 50%;
  background: radial-gradient(ellipse at center, rgba(46,204,135,.10) 0%, transparent 65%);
  pointer-events: none;
}

.cta-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(90deg, rgba(46,204,135,.022) 0px, rgba(46,204,135,.022) 1px, transparent 1px, transparent 64px),
    repeating-linear-gradient(0deg,  rgba(46,204,135,.022) 0px, rgba(46,204,135,.022) 1px, transparent 1px, transparent 64px);
  pointer-events: none;
}

.cta-grid {
  position: relative;
  z-index: 1;
  grid-template-columns: minmax(0,1fr) auto;
}

.cta-grid h2 { max-width: 820px; font-size: 2.25rem; }

.cta-band .eyebrow { color: var(--g1); }
.cta-band .eyebrow::before { background: var(--g1); }

/* ============================================================
   PRODUCT SECTION
   ============================================================ */
.product-section { background: var(--paper); }

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 20px;
}

.product-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: #fff;
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 520ms ease,
    transform 520ms ease,
    border-color 240ms,
    box-shadow 240ms;
}

.product-card.is-visible { opacity: 1; transform: none; }

.product-card:hover {
  border-color: rgba(10,122,73,.22);
  box-shadow: var(--sh-md);
  transform: translateY(-5px) !important;
}

.product-card.product-dark {
  background: var(--c3);
  color: #fff;
  border-color: rgba(255,255,255,.05);
}

.product-card.product-dark p  { color: rgba(255,255,255,.62); }
.product-card.product-dark .text-link { color: var(--g1); }

.product-media {
  display: grid;
  min-height: 260px;
  place-items: center;
  padding: 28px;
  background: linear-gradient(145deg, rgba(5,60,30,.10), rgba(200,153,30,.10));
  transition: background 300ms;
}

.product-card:hover .product-media {
  background: linear-gradient(145deg, rgba(5,60,30,.16), rgba(200,153,30,.14));
}

.product-media img {
  width: min(100%,250px);
  height: 218px;
  object-fit: contain;
  filter: drop-shadow(0 16px 24px rgba(3,30,14,.22));
  transition: transform 320ms ease;
}

.product-card:hover .product-media img { transform: scale(1.05) translateY(-5px); }

.product-image {
  min-height: 260px;
  background:
    linear-gradient(145deg, rgba(5,60,30,.22), rgba(224,96,26,.08)),
    url("gate.avif") center / cover;
}

.product-image.receiver { background-position: 56% center; }
.product-image.micro    { background-position: 74% center; }

.product-copy { padding: 26px 28px 30px; }
.product-copy h2 { font-size: 1.3rem; margin-bottom: 6px; }

.product-card.featured-product {
  background: var(--c2);
  color: #fff;
  border-color: rgba(255,255,255,.04);
}

.product-card.featured-product p { color: rgba(255,255,255,.62); }
.product-card.featured-product .text-link { color: var(--g1); }

/* ============================================================
   BENEFIT CARDS
   ============================================================ */
.benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 16px;
}

.benefit-card {
  padding: 30px 26px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--panel);
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 520ms ease, transform 520ms ease, border-color 240ms, box-shadow 240ms;
}

.benefit-card.is-visible { opacity: 1; transform: none; }

.benefit-card:hover {
  border-color: rgba(10,122,73,.22);
  box-shadow: var(--sh-sm);
}

.benefit-card h3 { margin-bottom: 12px; }
.benefit-card p  { margin: 0; color: var(--muted); font-size: .94rem; line-height: 1.65; }

/* ============================================================
   FORMS — panels, contact, application forms
   ============================================================ */
.form-panel {
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: var(--sh-sm);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 16px;
}

.form-grid .full-span,
.form-panel fieldset { grid-column: 1 / -1; }

.form-panel fieldset {
  margin: 0;
  padding: 18px 20px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
}

.form-panel legend {
  padding: 0 8px;
  color: var(--g3);
  font-weight: 800;
  font-size: .88rem;
}

.option-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 10px;
}

.check-option {
  display: flex;
  min-height: 46px;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--paper);
  color: var(--ink);
  font-weight: 600;
  font-size: .88rem;
  cursor: pointer;
  transition: border-color 180ms, background 180ms;
}

.check-option:hover {
  border-color: var(--g2);
  background: rgba(15,168,101,.06);
}

.check-option input {
  width: 18px; min-height: 18px;
  accent-color: var(--g2);
}

.step-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.step-list span {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  border: 1.5px solid var(--line);
  border-radius: var(--r-pill);
  padding: 0 14px;
  background: var(--paper);
  color: var(--muted);
  font-weight: 700;
  font-size: .8rem;
}

.form-panel h2 { margin: 36px 0 18px; font-size: 1.55rem; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-section { background: var(--panel); }
.contact-grid    { align-items: start; }

.contact-form {
  grid-template-columns: 1fr 1fr;
  padding: 30px;
  border: 1.5px solid var(--line);
  border-radius: var(--r);
  background: var(--paper);
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 520ms ease, transform 520ms ease;
}

.contact-form.is-visible { opacity: 1; transform: none; }

.contact-form label:first-child,
.contact-form .full-span { grid-column: 1 / -1; }

.contact-form button { width: fit-content; }

.contact-details {
  display: grid;
  gap: 28px;
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 520ms ease, transform 520ms ease;
}

.contact-details.is-visible { opacity: 1; transform: none; }

.contact-image {
  width: 100%;
  max-height: 310px;
  object-fit: cover;
  border-radius: var(--r-lg);
  box-shadow: var(--sh-sm);
}

.contact-whatsapp {
  display: flex;
  min-height: 88px;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 18px 22px;
  border-radius: var(--r);
  background: var(--grad-green);
  box-shadow: 0 10px 30px rgba(10,122,73,.24);
  color: #fff;
  font-size: .98rem;
  font-weight: 800;
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.contact-whatsapp:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 38px rgba(10,122,73,.36);
}

.contact-whatsapp span {
  color: rgba(255,255,255,.74);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.contact-whatsapp b { margin-left: 5px; }

.detail-list { display: grid; gap: 14px; }

.detail-list article {
  display: grid;
  gap: 8px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--paper);
  transition: border-color 220ms, box-shadow 220ms;
}

.detail-list article:hover {
  border-color: rgba(10,122,73,.22);
  box-shadow: var(--sh-xs);
}

.detail-list span {
  color: var(--g2);
  font-weight: 800;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.detail-list a { color: var(--muted); font-size: .94rem; }
.detail-list a:hover { color: var(--g3); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  padding: 88px 0 0;
  background: var(--c1);
  color: #fff;
  position: relative;
  overflow: hidden;
}

/* Large decorative FENAC text watermark */
.site-footer::before {
  content: "FENAC";
  position: absolute;
  bottom: 40px;
  right: -20px;
  font-size: 14rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.06em;
  color: rgba(46,204,135,.03);
  pointer-events: none;
  user-select: none;
}

/* Ambient glow */
.site-footer::after {
  content: "";
  position: absolute;
  inset: -30% -5% -20% auto;
  width: 40%;
  background: radial-gradient(ellipse at center, rgba(46,204,135,.06) 0%, transparent 65%);
  pointer-events: none;
}

.footer-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0,1.5fr) minmax(160px,.55fr) minmax(160px,.55fr);
  gap: 52px;
}

.footer-brand { margin-bottom: 22px; }

.site-footer p {
  max-width: 460px;
  color: rgba(255,255,255,.50);
  font-size: .94rem;
  line-height: 1.72;
}

.site-footer h2 {
  margin: 0 0 18px;
  color: var(--g1);
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .14em;
}

.site-footer a:not(.brand) {
  display: block;
  margin-top: 11px;
  color: rgba(255,255,255,.56);
  font-size: .91rem;
  transition: color 160ms, padding-left 160ms;
}

.site-footer a:not(.brand):hover {
  color: #fff;
  padding-left: 4px;
}

.footer-bottom {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1200px, calc(100% - 48px));
  margin: 56px auto 0;
  padding: 20px 0;
  border-top: 1px solid rgba(255,255,255,.08);
  color: rgba(255,255,255,.38);
  font-size: .83rem;
}

.mobile-contact-bar { display: none; }

/* ============================================================
   RESPONSIVE — TABLET ≤ 980px
   ============================================================ */
@media (max-width: 980px) {
  .site-header { min-height: 70px; padding: 12px 22px; }

  .nav-toggle { display: inline-flex; }

  .site-nav {
    position: fixed;
    inset: 78px 18px auto;
    display: grid;
    gap: 6px;
    padding: 14px;
    background: rgba(255,255,255,.97);
    color: var(--ink);
    box-shadow: var(--sh-lg);
    border-radius: var(--r);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity 200ms ease, transform 200ms ease;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
  }

  .site-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .site-nav a { min-height: 48px; justify-content: flex-start; }

  .hero-grid, .split-layout, .newsletter-grid,
  .page-hero-grid, .story-grid, .feature-grid,
  .contact-grid, .footer-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .hero h1, .page-hero h1 { font-size: 3.6rem; }

  .home-hero { min-height: 88svh; padding-top: 122px; }

  .hero-metrics { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .hero-contact-link { grid-column: 1 / -1; }

  .service-strip-grid { grid-template-columns: 1fr; }
  .service-strip-item,
  .service-strip-item:first-child {
    min-height: 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .service-strip-item:first-child { border-top: 0; }

  .solution-grid, .why-grid, .product-grid,
  .benefit-grid, .application-grid {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }

  .inline-form { grid-template-columns: 1fr; }
  .feature-visual, .portrait-panel { min-height: 400px; }
  .cta-grid { grid-template-columns: 1fr; gap: 30px; }
  .cta-grid .button { width: fit-content; }
}

/* ============================================================
   RESPONSIVE — MOBILE ≤ 640px
   ============================================================ */
@media (max-width: 640px) {
  .section-inner { width: min(100% - 32px, 1200px); }

  .brand { min-width: 0; }
  .brand small { display: none; }

  .hero { min-height: 90svh; }

  .hero h1, .page-hero h1 {
    font-size: 2.9rem;
    line-height: .96;
  }

  h2 { font-size: 2.1rem; }

  .hero-lede, .rich-copy p, .feature-copy p,
  .story-copy p, .page-hero p, .contact-details h2 { font-size: 1rem; }

  .hero-actions, .hero-metrics, .solution-grid, .why-grid,
  .product-grid, .benefit-grid, .application-grid,
  .contact-form, .form-grid, .option-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions { display: grid; }
  .button { width: 100%; }

  .hero-metrics { gap: 8px; }
  .hero-metrics div { min-height: 72px; padding: 16px; }
  .hero-metrics strong { font-size: 1rem; }
  .hero-contact-link { min-height: 50px; }

  .service-strip-item { padding: 20px 0; }

  .intro-band, .solutions-section, .feature-band,
  .newsletter-section, .story-section, .why-section,
  .product-section, .contact-section, .benefit-section,
  .application-section { padding: 76px 0; }

  .page-hero { padding: 140px 0 70px; }

  .solution-card, .why-grid article { min-height: 270px; }

  .feature-visual, .portrait-panel { min-height: 320px; }
  .portrait-caption { display: grid; }
  .contact-form button, .cta-grid .button { width: 100%; }

  .mobile-contact-bar {
    position: fixed;
    right: 14px;
    bottom: 14px;
    left: 14px;
    z-index: 40;
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.22);
    border-radius: var(--r-sm);
    background: rgba(3,31,19,.94);
    box-shadow: var(--sh-lg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }

  .mobile-contact-bar a {
    display: grid;
    min-height: 52px;
    place-items: center;
    color: #fff;
    font-size: .84rem;
    font-weight: 800;
  }

  .mobile-contact-bar a + a {
    border-left: 1px solid rgba(255,255,255,.14);
    background: var(--grad-green);
  }

  .site-footer { padding-bottom: 76px; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
