/* ============================================================
   SAC AERO DESIGN — style.css  (complete rewrite)
   Aesthetic: Industrial-Precision / Avionics Dark
   Fonts: Orbitron (display) + Barlow (body)
   --bg-dark   #0a0c0f   near-black cockpit
   --bg-mid    #111519   section alternates
   --bg-card   #161b22   card surfaces
   --accent    #00c8ff   electric blue
   --gold      #f0a500   veteran / military gold
============================================================ */

/* ---- VARIABLES ---- */
:root {
  --bg-dark:      #0a0c0f;
  --bg-mid:       #111519;
  --bg-card:      #161b22;
  --accent:       #00c8ff;
  --accent-dim:   #007fa6;
  --gold:         #ffffff;
  --danger:       #ff4b4b;
  --success:      #2ecc71;
  --text:         #e2ecf4;
  --text-muted:   #94a8bc;
  --border:       #1f2d3d;
  --radius:       6px;
  --radius-lg:    12px;
  --shadow:       0 4px 24px rgba(0,0,0,0.5);
  --transition:   0.25s ease;
  --font-display: 'Orbitron', sans-serif;
  --font-body:    'Barlow', sans-serif;
  --nav-height:   70px;
}

/* ---- RESET ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 17px; } /* 100% — base size restored from 110% zoom */
body { font-family: var(--font-body); background: var(--bg-dark); color: var(--text); line-height: 1.65; overflow-x: hidden; }
a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: #fff; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ---- LAYOUT ---- */
.container { width: 92%; max-width: 1200px; margin-inline: auto; }
.section { padding: 6rem 0; }
.section-header { margin-bottom: 3.5rem; }
.section-header.center { text-align: center; }
.section-eyebrow { font-family: var(--font-display); font-size: 0.82rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.6rem; }
.section-title { font-family: var(--font-display); font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 700; color: #fff; line-height: 1.15; margin-bottom: 1rem; }
.section-intro { max-width: 600px; color: var(--text-muted); font-size: 1.05rem; margin-inline: auto; }
.center { text-align: center; }

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1.75rem; border-radius: var(--radius);
  font-family: var(--font-display); font-size: 0.82rem;
  font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  cursor: pointer; border: 2px solid transparent; transition: all var(--transition);
}
.btn-primary { background: var(--accent); color: #000; border-color: var(--accent); }
.btn-primary:hover { background: #fff; color: #000; border-color: #fff; }
.btn-ghost { background: #7c7b7b; color:  #ffffff; border-color: #8c8c8c; }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-full { width: 100%; justify-content: center; }

/* ---- BADGES ---- */
.badge { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.3rem 0.75rem; border-radius: 100px; font-family: var(--font-display); font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; background: rgba(240,165,0,0.15); color: var(--gold); border: 1px solid rgba(240,165,0,0.3); }
.badge-sm { font-size: 0.78rem; padding: 0.2rem 0.5rem; vertical-align: middle; margin-left: 0.4rem; background: rgba(0,200,255,0.12); color: var(--accent); border: 1px solid rgba(0,200,255,0.25); border-radius: 100px; font-family: var(--font-display); }

/* ---- PLACEHOLDER (generic) ---- */
.img-placeholder { background: var(--bg-card); border: 2px dashed var(--border); border-radius: var(--radius-lg); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.5rem; color: var(--text-muted); text-align: center; padding: 2rem; min-height: 200px; }
.img-placeholder i { font-size: 2.5rem; color: var(--accent-dim); }
.img-placeholder span { font-size: 0.9rem; font-weight: 500; }

/* ============================================================
   NAVIGATION
   Flat — no dropdowns. Each important page is a top-level link.
   .nav-configurator-link = visually accented (bordered pill).
   .nav-cta = filled primary button.
============================================================ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-height); z-index: 1000;
  background: rgba(10,12,15,0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}
.site-header.scrolled { background: rgba(10,12,15,0.97); }

.navbar {
  height: 100%; display: flex; align-items: center;
  justify-content: space-between;
  width: 92%; max-width: 1200px; margin-inline: auto;
  gap: 3rem; /* pushes nav links away from the logo */
}

.nav-logo { display: flex; flex-direction: column; line-height: 1.1; text-decoration: none; align-items: flex-start; }

/* PNG logo image — shown when images/logo.png exists */
.nav-logo-img {
  height: 80px;          /* controls logo height; width scales automatically */
  width: auto;
  max-width: 2200px;
  object-fit: contain;
  display: block;
}

/* Text fallback — shown via onerror JS when logo.png is missing */
.nav-logo-fallback { display: flex; flex-direction: column; line-height: 1.1; }

/* These span styles still power the text fallback */
.logo-primary { font-family: var(--font-display); font-size: 1.4rem; font-weight: 900; color: var(--accent); letter-spacing: 0.08em; }
.logo-secondary { font-family: var(--font-display); font-size: 0.8rem; letter-spacing: 0.3em; color: var(--text-muted); text-transform: uppercase; }

.nav-links { display: flex; align-items: center; gap: clamp(0.5rem, 1.2vw, 1.6rem); }
.nav-links a {
  font-family: var(--font-display);
  /* Fluid font: shrinks gracefully on mid-width viewports so all items (incl. "Get a Quote") stay visible */
  font-size: clamp(0.62rem, 0.9vw, 0.76rem);
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-muted); transition: color var(--transition); white-space: nowrap;
}
.nav-links a:hover { color: var(--accent); }
.nav-links a.active { color: var(--accent); }

/* Configurator — pill-outlined to stand out from regular text links */
.nav-configurator-link {
  display: inline-flex !important; align-items: center; gap: 0.35rem;
  padding: 0.38rem 0.85rem !important;
  background: rgba(0,200,255,0.1);
  border: 1px solid rgba(0,200,255,0.35);
  border-radius: var(--radius);
  color: var(--accent) !important; font-weight: 700;
}
.nav-configurator-link:hover {
  background: rgba(0,200,255,0.22) !important;
  border-color: var(--accent) !important; color: #fff !important;
}

/* Get a Quote — filled button */
.nav-cta { background: var(--accent) !important; color: #000 !important; padding: 0.42rem 1rem !important; border-radius: var(--radius); font-weight: 700 !important; }
.nav-cta:hover { background: #fff !important; color: #000 !important; }

/* Hamburger */
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: all var(--transition); }

/* ============================================================
   HERO — split: text left, slideshow right
   5fr / 7fr gives the slideshow noticeably more width than the
   text column so it feels like a proper showcase, not a thumbnail.
============================================================ */
.hero {
  /* Use min-height instead of height so the hero GROWS to fit its content
     at any viewport size — prevents trust bar / tool CTAs from overlapping
     the headline and slideshow when the window is resized or on smaller screens. */
  min-height: calc(100vh - var(--nav-height) - 210px);
  max-height: 980px;   /* slightly taller cap to accommodate testimonials below slideshow */
  padding-top: var(--nav-height);
  padding-bottom: 2rem;
  display: grid;
  grid-template-columns: 5fr 7fr;   /* slideshow gets ~58% of width */
  align-items: center;
  gap: 3rem;
  width: 92%; max-width: 1580px; margin-inline: auto;
  position: relative;
}

/* Decorative grid overlay */
.hero-bg-grid {
  position: fixed; inset: 0; z-index: -1;
  background-image:
    linear-gradient(rgba(0,200,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,200,255,0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

/* Left column */
/* Reduce hero vertical breathing room so the trust bar + tool CTA strip
   are visible at the bottom of the initial viewport without scrolling */
.hero-eyebrow { margin-bottom: 0.9rem; }
.hero-title { font-family: var(--font-display); font-size: clamp(1.75rem, 3.8vw, 3rem); font-weight: 900; line-height: 1.05; color: #fff; margin-bottom: 0.9rem; }
.hero-title-accent { color: var(--accent); display: block; }
.hero-subtitle { font-size: 1rem; color: var(--text-muted); max-width: 420px; margin-bottom: 1.5rem; font-weight: 300; line-height: 1.65; }

/* Hero action buttons */
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.75rem; }

/* Quick trust stats */
.hero-stats { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
.hero-stat { display: flex; flex-direction: column; }
.hero-stat-num { font-family: var(--font-display); font-size: 1.15rem; font-weight: 900; color: var(--accent); line-height: 1; }
.hero-stat-label { font-size: 0.7rem; color: var(--text-muted); margin-top: 0.2rem; line-height: 1.3; }
.hero-stat-divider { width: 1px; height: 28px; background: var(--border); flex-shrink: 0; }

/* ============================================================
   HERO SLIDESHOW
   The right column of the hero. 5 slides, each an <a> that
   links to the relevant page. Auto-advances every 4s.
   16/9 aspect ratio matches widescreen proportions and shows
   the image at a larger, more impactful size.
============================================================ */
.hero-slideshow {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;      /* wide cinematic ratio — feels much bigger */
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(0,200,255,0.15);
  box-shadow: 0 24px 64px rgba(0,0,0,0.6), 0 0 0 1px rgba(0,200,255,0.08);
  background: var(--bg-card);
  cursor: default;
}

/* Each individual slide — absolutely stacked, fades in/out */
.hero-slide {
  position: absolute; inset: 0;
  display: block;
  opacity: 0;
  transition: opacity 0.7s ease;
  pointer-events: none;
  text-decoration: none;
}
.hero-slide.active {
  opacity: 1;
  pointer-events: auto;   /* only the visible slide is clickable */
  z-index: 1;
}

/* The photo fills the slide box */
.hero-slide-img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  /* Slight darkening so text/badges are readable */
  filter: brightness(0.82);
  transition: filter 0.3s ease, transform 0.6s ease;
}
.hero-slide.active:hover .hero-slide-img {
  filter: brightness(0.72);
  transform: scale(1.02);
}

/* Badge overlay — top-left corner, shows what this slide is */
.slide-badge {
  position: absolute;
  top: 1rem; left: 1rem;
  display: flex; align-items: center; gap: 0.45rem;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(0,200,255,0.3);
  border-radius: var(--radius);
  padding: 0.4rem 0.85rem;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  pointer-events: none;  /* don't block clicks on the slide */
  z-index: 3;
}
.slide-badge i { font-size: 0.7rem; }

/* "Click to visit" hint that appears on hover */
.hero-slide.active::after {
  content: 'Click to visit →';
  position: absolute;
  top: 1rem; right: 1rem;
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 3;
  pointer-events: none;
}
.hero-slide.active:hover::after { opacity: 1; }

/* Bottom label bar — shows the slide title and sub-description */
.slideshow-label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 4;
  padding: 2rem 1.25rem 0.9rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.82));
  pointer-events: none;
}
.slideshow-label-title {
  display: block;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.08em;
  margin-bottom: 0.15rem;
}
.slideshow-label-sub {
  display: block;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.65);
}

/* Dot navigation — bottom-center of the slideshow */
.slideshow-dots {
  position: absolute;
  bottom: 0.85rem;
  left: 50%; transform: translateX(-50%);
  z-index: 5;
  display: flex; gap: 0.45rem;
  pointer-events: auto;
}
.dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  border: none; cursor: pointer;
  padding: 0;
  transition: background 0.3s ease, transform 0.3s ease;
}
.dot.active { background: var(--accent); transform: scale(1.3); }
.dot:hover { background: rgba(255,255,255,0.7); }

/* Prev / Next arrow buttons */
.slide-arrow {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  z-index: 5;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.8);
  width: 38px; height: 38px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 0.85rem;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  opacity: 0;                 /* hidden by default, shown on slideshow hover */
  transition: opacity 0.3s ease, background 0.25s ease;
}
.hero-slideshow:hover .slide-arrow { opacity: 1; }
.slide-arrow:hover { background: rgba(0,200,255,0.35); border-color: var(--accent); color: #fff; }
.slide-prev { left: 0.6rem; }
.slide-next { right: 0.6rem; }
/* ============================================================
   HERO RIGHT COLUMN — wraps slideshow + testimonials
============================================================ */
.hero-right-col {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-width: 0;   /* prevent grid blowout */
}
/* ============================================================
   HERO TESTIMONIALS — compact review cards under slideshow
   Styled to visually match the OW Reviews section
============================================================ */

.hero-testimonials {
  grid-column: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 1rem;
}

/* Individual testimonial card */
.hero-testimonial {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  text-decoration: none;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
}

.hero-testimonial:hover {
  border-color: rgba(0,200,255,0.3);
  background: rgba(0,0,0,0.55);
  color: #fff;
  transform: translateY(-2px);
}

/* Star row — matches OW review stars */
.hero-testimonial-stars {
  display: flex;
  gap: 0.18rem;
}

.hero-testimonial-stars i {
  color: #f5a623; /* same gold as OW stars */
  font-size: 0.78rem;
}

/* Quote icon — subtle, like OW styling */
.hero-testimonial-icon {
  font-size: 0.7rem;
  opacity: 0.55;
  margin-top: 0.1rem;
}

/* Testimonial text */
.hero-testimonial p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.45;
  font-style: italic;
  color: var(--text-muted);
}

/* Author line */
.hero-testimonial-author {
  font-size: 0.68rem;
  opacity: 0.75;
  letter-spacing: 0.03em;
  display: block;
}

/* Mobile: stack vertically */
@media (max-width: 980px) {
  .hero-testimonials {
    grid-template-columns: 1fr;
  }
}


/* ============================================================
   TRUST BAR
   Brand logos shown as PNG images. Text fallback activates via #7c7b7b
   onerror if the image file hasn't been added yet.
============================================================ */
.trust-bar { background: #7c7b7b; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 0.75rem 0; }
.trust-bar-inner { display: flex; align-items:  center;  justify-content: center; gap: 1.5rem; flex-wrap: wrap; }
.trust-label { font-family: var(--font-display); font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: #fff; white-space: nowrap; flex-shrink: 0; }
.trust-logos { display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem; }

/* Each brand slot — fixed height forces any size PNG to scale down to fit */
.trust-logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 50px;       /* all slots same height regardless of image size */
  min-width: 80px;
}

/* The PNG logo */
.trust-logo-img {
  height: 100%;       /* fills the fixed-height slot */
  width: auto;
  max-width: 130px;   /* caps very wide wordmark logos */
  max-height: 44px;   /* hard cap — forces oversized PNGs to shrink */
  object-fit: contain;
  object-position: center;
  display: block;
  /* Tints logos to muted white for a consistent dark-bg look.
     DELETE this filter line if your logos are already white/transparent
     or if you want them to show in their original brand colors. */
  transition: filter var(--transition);
}

/* Text fallback — same style as old .trust-item */
.trust-logo-fallback { font-family: var(--font-display); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); }

.trust-divider { color: var(--border); padding: 0 0.25rem; }

/* ============================================================
   TOOL CTA STRIP
   Two equal-weight cards — Configurator + Explore Options.
   Compact padding so both cards are visible without scrolling.
============================================================ */
.tool-cta-strip {
  background: var(--bg-mid);
  border-bottom: 1px solid var(--border);
  padding: 0;
}

.tool-cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

/* Each tool card is a full clickable <a> */
.tool-cta-card {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1.75rem 2rem;   /* reduced from 2.5rem — tighter for above-fold visibility */
  color: var(--text);
  text-decoration: none;
  border-right: 1px solid var(--border);
  transition: background var(--transition);
  position: relative;
  overflow: hidden;
}
.tool-cta-card:last-child { border-right: none; }
.tool-cta-card:hover { background: rgba(0,200,255,0.05); }

/* Accent glow on hover */
.tool-cta-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,200,255,0.07) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--transition);
}
.tool-cta-card:hover::before { opacity: 1; }

.tool-cta-icon {
  flex-shrink: 0;
  width: 52px; height: 52px;
  background: rgba(0,200,255,0.1);
  border: 1px solid rgba(0,200,255,0.2);
  border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  color: var(--accent);
  transition: background var(--transition);
}
.tool-cta-card:hover .tool-cta-icon { background: rgba(0,200,255,0.2); }

.tool-cta-body h3 {
  font-family: var(--font-display);
  font-size: 0.9rem; font-weight: 700;
  color: #fff; margin-bottom: 0.5rem; letter-spacing: 0.05em;
}
.tool-cta-body p { font-size: 0.92rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 0.85rem; }
.tool-cta-link {
  font-family: var(--font-display);
  font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent); display: flex; align-items: center; gap: 0.4rem;
}
.tool-cta-card:hover .tool-cta-link { color: #fff; }

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

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex; flex-direction: column;
  /* Cards start VISIBLE — JS adds .will-animate before hiding them */
  transition: border-color 0.25s ease;
}
/* JS sets will-animate first, then in-view triggers the reveal */
.service-card.will-animate {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease, border-color 0.25s ease;
}
.service-card.in-view { opacity: 1; transform: translateY(0); }
.service-card:hover { border-color: var(--accent-dim); }

/* Featured card gets an accent ribbon + elevated styling */
.featured-service {
  border-color: var(--accent-dim);
  background: linear-gradient(160deg, rgba(0,200,255,0.07), var(--bg-card));
  position: relative;
}
.featured-service::before {
  content: 'Most Popular';
  position: absolute; top: -1px; right: 1.5rem;
  background: var(--accent); color: #000;
  font-family: var(--font-display); font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.2rem 0.65rem;
  border-radius: 0 0 var(--radius) var(--radius);
}

.service-icon { width: 48px; height: 48px; background: rgba(0,200,255,0.1); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; margin-bottom: 1.2rem; }
.service-icon i { color: var(--accent); font-size: 1.2rem; }
.service-card h3 { font-family: var(--font-display); font-size: 0.93rem; font-weight: 700; color: #fff; margin-bottom: 0.75rem; letter-spacing: 0.05em; }
.service-card > p { color: var(--text-muted); font-size: 0.93rem; margin-bottom: 1.2rem; flex-grow: 1; }

.service-features { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1.5rem; }
.service-features li { font-size: 0.87rem; color: var(--text-muted); padding-left: 1rem; position: relative; }
.service-features li::before { content: '›'; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

.service-btn { margin-top: auto; align-self: flex-start; }

/* ============================================================
   GALLERY SECTION
============================================================ */
.gallery-section { background: var(--bg-mid); }

.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }

/* Styled figure wrapper */
.gallery-item {
  position: relative;
  border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: border-color var(--transition), transform var(--transition);
  background: var(--bg-card);
}
.gallery-item:hover { border-color: var(--accent); transform: scale(1.025); z-index: 1; }
.gallery-item img { width: 100%; height: 220px; object-fit: cover; display: block; }

/* Caption revealed on hover */
.gallery-item figcaption {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.82));
  color: #fff;
  font-family: var(--font-display); font-size: 0.7rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 2rem 1rem 0.75rem;
  opacity: 0; transition: opacity var(--transition);
}
.gallery-item:hover figcaption { opacity: 1; }

/* CTA row below the gallery grid */
.gallery-cta-row {
  display: flex; gap: 1rem; justify-content: center;
  flex-wrap: wrap; margin-top: 2.5rem;
}

/* ============================================================
   PROCESS SECTION
============================================================ */
.process-section { background: var(--bg-dark); }

.process-steps { display: flex; align-items: flex-start; justify-content: center; gap: 0; flex-wrap: wrap; }
.process-step { flex: 1; min-width: 175px; max-width: 225px; text-align: center; padding: 0 1rem; }
.step-number { font-family: var(--font-display); font-size: 2.5rem; font-weight: 900; color: rgba(0,200,255,0.14); line-height: 1; margin-bottom: 0.75rem; }
.step-body h4 { font-family: var(--font-display); font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.5rem; }
.step-body p { font-size: 0.92rem; color: var(--text-muted); }
.process-connector { flex: 0 0 40px; height: 2px; background: linear-gradient(90deg, var(--accent-dim), var(--border)); margin-top: 1.25rem; }

/* ============================================================
   CONTACT SECTION
============================================================ */
.contact-section { background: var(--bg-mid); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 5rem; align-items: start; }
.contact-info p { color: var(--text-muted); margin-bottom: 1.5rem; }
.contact-details { display: flex; flex-direction: column; gap: 0.85rem; margin-bottom: 2rem; }
.contact-details li { display: flex; align-items: center; gap: 0.75rem; font-size: 1rem; }
.contact-details i { color: var(--accent); width: 18px; }

.vet-badge { display: inline-flex; align-items: center; gap: 0.6rem; border: 1px solid rgba(240,165,0,0.3); background: rgba(240,165,0,0.08); color: var(--gold); padding: 0.6rem 1.1rem; border-radius: 100px; font-size: 0.8rem; font-weight: 500; }
.vet-badge i { font-size: 1rem; }

.contact-form { display: flex; flex-direction: column; gap: 1.2rem; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 2.5rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group label { font-size: 0.8rem; font-family: var(--font-display); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); }
.form-group input, .form-group select, .form-group textarea { background: var(--bg-mid); border: 1px solid var(--border); border-radius: var(--radius); padding: 0.65rem 0.9rem; color: var(--text); font-family: var(--font-body); font-size: 0.95rem; transition: border-color var(--transition); outline: none; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--accent); }
.form-group select { cursor: pointer; }
.form-group textarea { resize: vertical; }
.form-group input.error, .form-group textarea.error { border-color: var(--danger); }
.form-note { font-size: 0.82rem; color: var(--text-muted); text-align: center; }
.form-success { text-align: center; color: var(--success); font-weight: 500; font-size: 0.9rem; }

/* ============================================================
   ABOUT SECTION (homepage usage)
============================================================ */
.about-section { background: var(--bg-mid); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.about-image { position: relative; }
.about-team-img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.about-accent-box { position: absolute; bottom: -1.5rem; right: -1.5rem; background: var(--accent); color: #000; padding: 1.2rem 1.5rem; border-radius: var(--radius-lg); text-align: center; box-shadow: var(--shadow); }
.accent-stat { display: block; font-family: var(--font-display); font-size: 2rem; font-weight: 900; }
.accent-label { display: block; font-size: 0.84rem; font-weight: 600; line-height: 1.3; margin-top: 0.2rem; }
.about-text p { color: var(--text-muted); margin-bottom: 1rem; }
.about-text p strong { color: var(--text); }
.about-badges { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.about-badge { display: flex; align-items: center; gap: 0.5rem; background: var(--bg-card); border: 1px solid var(--border); padding: 0.5rem 1rem; border-radius: 100px; font-size: 0.8rem; font-weight: 500; }
.about-badge i { color: var(--accent); }

/* ============================================================
   PAGE HERO (sub-pages: about, shop, faq, configurator, customize)
============================================================ */
.page-hero { padding: calc(var(--nav-height) + 4rem) 0 4rem; position: relative; background: var(--bg-dark); border-bottom: 1px solid var(--border); }
.page-hero-bg-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(0,200,255,0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(0,200,255,0.03) 1px, transparent 1px); background-size: 48px 48px; pointer-events: none; }

/* ============================================================
   FOOTER
============================================================ */
.site-footer { background: #060809; border-top: 1px solid var(--border); }

.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; padding: 4rem 0 3rem; }

/* Footer logo image (same file as nav logo) */
.footer-logo-link { display: inline-block; margin-bottom: 0.85rem; text-decoration: none; }
.footer-logo-img { height: 150px; width: auto; max-width: 220px; object-fit: contain; display: block; }
.footer-logo-fallback { display: flex; flex-direction: column; line-height: 1.1; }
.footer-brand .logo-primary { font-family: var(--font-display); font-size: 1.6rem; font-weight: 900; color: var(--accent); display: block; }
.footer-brand .logo-secondary { font-family: var(--font-display); font-size: 0.8rem; letter-spacing: 0.3em; color: var(--text-muted); display: block; margin-bottom: 1rem; }
.footer-brand p { font-size: 0.92rem; color: var(--text-muted); max-width: 280px; line-height: 1.6; }

.footer-links h5 { font-family: var(--font-display); font-size: 0.82rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 1rem; }
.footer-links ul { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-links li a { font-size: 0.93rem; color: var(--text-muted); transition: color var(--transition); display: flex; align-items: center; gap: 0.4rem; }
.footer-links li a i { font-size: 0.7rem; color: var(--accent); }
.footer-links li a:hover { color: var(--accent); }

.footer-social h5 { font-family: var(--font-display); font-size: 0.8rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 1rem; }
.social-links { display: flex; gap: 0.75rem; margin-bottom: 1.5rem; }
.social-links a { width: 38px; height: 38px; border: 1px solid var(--border); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; color: var(--text-muted); transition: all var(--transition); }
.social-links a:hover { border-color: var(--accent); color: var(--accent); }
.footer-vet { font-size: 0.84rem; color: var(--gold); display: flex; align-items: center; gap: 0.4rem; }
.footer-bottom { border-top: 1px solid var(--border); padding: 1.5rem 0; text-align: center; }
.footer-bottom p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; }

/* ============================================================
   RESPONSIVE — 1080p SCREENS (height ≤ 1140px, desktop width)
   Scales down the hero section and slideshow to feel comfortable
   at 1920×1080. Uses font-size on html to scale rem units, while
   keeping the fixed nav at its pixel-exact size so it never shifts.
============================================================ */
@media (max-height: 1140px) and (min-width: 901px) {

  /* Drop the root font size to ~82% — this scales every rem value
     across the hero (titles, subtitles, buttons, stats) automatically */
  html { font-size: 14px; }

  /* Pin nav-height in px so the fixed bar is completely unaffected */
  :root { --nav-height: 70px; }

  /* Hero grid — tighter vertical footprint */
  .hero {
    min-height: calc(100vh - var(--nav-height) - 80px);
    max-height: 780px;
    gap: 2rem;
    padding-bottom: 1rem;
  }

  /* Slideshow — slightly squatter so it doesn't push past the fold */
  .hero-slideshow {
    aspect-ratio: 16 / 8;
  }

  /* Title clamp ceiling brought down to match smaller viewport height */
  .hero-title {
    font-size: clamp(1.5rem, 2.6vw, 2.2rem);
    margin-bottom: 0.6rem;
  }

  .hero-subtitle  { font-size: 0.88rem; margin-bottom: 1rem; }
  .hero-actions   { margin-bottom: 1.1rem; gap: 0.65rem; }
  .hero-actions .btn { padding: 0.6rem 1.2rem; }

  /* Testimonials under slideshow */
  .hero-testimonials { gap: 0.5rem; margin-top: 0.5rem; }
  .hero-testimonial  { padding: 0.7rem 0.9rem; }

  /* Nav logo — a touch smaller so it doesn't crowd the bar */
  .nav-logo-img { height: 60px; }
}

/* ============================================================
   RESPONSIVE — TABLET ≤900px
============================================================ */
@media (max-width: 900px) {
  /* Hero: stack vertically, slideshow below text */
  .hero { grid-template-columns: 1fr; min-height: 0; max-height: none; padding: calc(var(--nav-height) + 2.5rem) 0 3.5rem; text-align: center; gap: 2.5rem; }
  .hero-subtitle { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  /* Slideshow becomes full-width below the text */
  .hero-slideshow { aspect-ratio: 16 / 9; }
  /* Testimonials stay side-by-side at tablet */
  .hero-testimonials { grid-template-columns: 1fr 1fr; }

  .tool-cta-grid { grid-template-columns: 1fr; }
  .tool-cta-card { border-right: none; border-bottom: 1px solid var(--border); }
  .tool-cta-card:last-child { border-bottom: none; }

  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   RESPONSIVE — MOBILE ≤600px
============================================================ */
@media (max-width: 600px) {
  .section { padding: 4rem 0; }

  /* Hamburger nav */
  .nav-toggle { display: flex; }
  .nav-links {
    display: none; position: fixed; /* fixed instead of absolute so it clears all page content */
    top: var(--nav-height); left: 0; right: 0;
    background: rgba(10,12,15,0.98); border-bottom: 1px solid var(--border);
    flex-direction: column; gap: 0; padding: 0.75rem 0;
    z-index: 999; /* sit below header (1000) but above ALL page content */
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 0.85rem 1.5rem; font-size: 0.78rem; }
  .nav-configurator-link { margin: 0.35rem 1.25rem !important; padding: 0.65rem 1rem !important; justify-content: center; display: flex !important; }
  .nav-cta { margin: 0.35rem 1.25rem; display: block; text-align: center; }

  .hero-slideshow { aspect-ratio: 4 / 3; }
  /* Stack testimonials vertically on mobile */
  .hero-testimonials { grid-template-columns: 1fr; gap: 0.5rem; }
  .hero-testimonial { padding: 0.75rem; }
  .hero-testimonial p { font-size: 0.78rem; }
  .gallery-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }

  .process-steps { flex-direction: column; align-items: center; }
  .process-connector { width: 2px; height: 32px; flex: 0 0 32px; background: linear-gradient(180deg, var(--accent-dim), var(--border)); margin: 0; }

  .tool-cta-card { padding: 1.75rem 1.25rem; }
  .gallery-cta-row { flex-direction: column; align-items: center; }
    /* Trust bar: scroll horizontally on mobile instead of wrapping to multiple lines */
  .trust-bar { padding: 0; }
  .trust-bar-inner {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    gap: 1rem;
    padding: 0.6rem 1rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .trust-bar-inner::-webkit-scrollbar { display: none; }
  .trust-label { font-size: 0.65rem; }
  .trust-logos { flex-wrap: nowrap; gap: 0.35rem; }
  .trust-logo-item { height: 34px; min-width: 60px; flex-shrink: 0; }
  .trust-logo-img { max-height: 30px; max-width: 90px; }
  .trust-divider { display: none; }
}

/* ============================================================
   FOOTER MOBILE FIX (CLEANED + CONSISTENT)
============================================================ */
@media (max-width: 768px) {

  /* ---- GRID LAYOUT ---- */
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;               /* reduced from 2–3rem */
    padding: 2.5rem 0 1.5rem;  /* tighter vertical spacing */
  }

  /* ---- FULL WIDTH SECTIONS ---- */
  .footer-brand,
  .footer-social {
    grid-column: 1 / -1;
  }

  /* ---- LOGO SPACING FIX ---- */
  .footer-logo-link {
    display: inline-block;
    margin-bottom: 0.15rem;  /* tight but not cramped */
  }

  .footer-logo-img {
    height: 90px;            /* consistent mobile size */
    max-width: 160px;
    width: auto;
    display: block;
  }

  /* ---- REMOVE EXTRA PARAGRAPH GAP ---- */
  .footer-brand p {
    margin-top: 0;      /* FIX: removes big gap under logo */
    margin-bottom: 0;
    max-width: 100%;
    line-height: 1.5;
    font-size: 0.9rem;
  }

  /* ---- LINKS TIGHTER ---- */
  .footer-links ul {
    gap: 0.35rem;
  }

  .footer-links li a {
    font-size: 0.85rem;
  }

  /* ---- SOCIAL CLEANUP ---- */
  .social-links {
    gap: 0.6rem;
    margin-bottom: 1rem;
  }

  .footer-vet {
    margin-top: 0.5rem;
  }

  /* ---- BOTTOM SECTION ---- */
  .footer-bottom {
    padding: 1rem 0;
  }

  .footer-bottom p {
    font-size: 0.8rem;
    line-height: 1.4;
  }
}
@media (max-width: 600px) {
  .trust-bar-inner {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .trust-logos {
    flex-direction: column;
    gap: 0.75rem;
  }

  .trust-divider {
    display: none;
  }

  .trust-logo-item {
    min-width: auto;
    height: 40px;
  }

  .trust-logo-img {
    max-width: 120px;
    max-height: 36px;
  }
}
@media (max-width: 600px) {
  .trust-label {
    white-space: normal;
    text-align: center;
    line-height: 1.4;
    max-width: 90%;
    margin: 0 auto;
  }
}