/* ==========================================================================
   Legacy Manufacturers Ltd — Stylesheet
   ==========================================================================
   Organised top-to-bottom so you can find things easily:
     1.  Design tokens (colours, spacing) — change the brand look here
     2.  Base / reset
     3.  Typography
     4.  Layout helpers (.container, .section, etc.)
     5.  Buttons
     6.  Header (floating)
     7.  Footer
     8.  Scroll-reveal animation
     9.  Home page
     10. About page
     11. Careers page
     12. Contact page
     13. Products page
     14. Responsive (mobile) tweaks
   ========================================================================== */

/* 1. DESIGN TOKENS ========================================================
   All colours and key sizes live here as CSS variables. Change a value once
   and it updates across the whole site. This is our colour palette:
     - Green  = primary brand colour
     - Blue   = secondary
     - White  = backgrounds
     - Amber & Orange = warm accents (used sparingly for contrast)          */
:root {
  /* Greens */
  --green-900: #0b3d2e;
  --green-700: #12724c;
  --green-600: #158a5a;
  --green-500: #1da167;
  --green-100: #e6f4ec;
  --logo-green: #8bb23f;  /* sampled from the Legacy logo badge */

  /* Blues */
  --blue-700: #143c6b;
  --blue-500: #1d4e89;

  /* Warm accents */
  --amber: #f6b01e;
  --orange: #ec7a1c;
  --orange-cta: #f2882e;   /* Contact accent: button + header "Contact Us" link */

  /* Neutrals */
  --ink: #1f2a24;      /* main text */
  --muted: #5c6b63;    /* secondary text */
  --line: #e3e8e4;     /* borders */
  --bg: #ffffff;
  --bg-soft: #f5f8f5;  /* subtle section background */

  /* Dark theme (used by the header everywhere + the whole home page) */
  --dark-bg: #0d1411;        /* near-black, faint green tint */
  --dark-surface: #16211c;   /* cards on dark backgrounds */
  --dark-line: rgba(255, 255, 255, 0.10);
  --on-dark: #eef3ef;        /* main text on dark */
  --on-dark-muted: #a7bcae;  /* secondary text on dark */
  --green-400: #35c07f;      /* brighter green that pops on dark */

  /* Layout */
  --header-h: 72px;          /* height of the fixed header */
  --container: 1140px;       /* max content width */
  --radius: 14px;            /* rounded corners */
  --shadow: 0 10px 30px rgba(11, 61, 46, 0.08);
  --shadow-lg: 0 20px 50px rgba(11, 61, 46, 0.14);

  /* Fonts (with safe system fallbacks if Google Fonts don't load) */
  --font-head: "Poppins", system-ui, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, "Segoe UI", Arial, sans-serif;
}

/* 2. BASE / RESET =========================================================*/
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;        /* smooth jump for on-page anchor links */
  scroll-padding-top: var(--header-h); /* stop anchors hiding behind header */
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  /* Push all content down so it isn't hidden behind the fixed header. */
  padding-top: var(--header-h);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--green-700);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* 3. TYPOGRAPHY ===========================================================*/
h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.2;
  color: var(--green-900);
  font-weight: 600;
}
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: 1.2rem; }

p { margin-bottom: 1rem; }

/* Small green label above headings (e.g. "About Us") */
.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-600);
  margin-bottom: 0.5rem;
}

/* 4. LAYOUT HELPERS =======================================================*/
/* .container centres content and caps its width. */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* .narrow is for text-heavy pages (About, Careers, Products). */
.narrow {
  max-width: 820px;
}

/* Vertical rhythm: every major block is a .section. */
.section {
  padding: 72px 0;
}
.section-alt {
  background: var(--bg-soft);
}

.center {
  text-align: center;
}

.section-title {
  text-align: center;
  margin-bottom: 0.5rem;
}
.section-subtitle {
  text-align: center;
  color: var(--muted);
  margin-bottom: 2.5rem;
}

/* 5. BUTTONS ==============================================================*/
.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 26px;
  border-radius: 999px;      /* pill shape */
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  text-decoration: none;
}
.btn:hover {
  text-decoration: none;
  transform: translateY(-2px);
}

/* Primary = solid green */
.btn-primary {
  background: var(--green-600);
  color: #fff;
  box-shadow: 0 8px 20px rgba(21, 138, 90, 0.3);
}
.btn-primary:hover {
  background: var(--green-700);
}

/* Ghost = outlined, for secondary actions */
.btn-ghost {
  background: transparent;
  color: var(--green-700);
  border-color: var(--green-600);
}
.btn-ghost:hover {
  background: var(--green-100);
}

.btn-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

/* 6. HEADER (floating) ====================================================
   position: fixed keeps it pinned to the top of the viewport, so it stays
   visible while scrolling — this is the "floating, always visible" header.  */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  /* Slightly transparent black, frosted. Sits over both dark and light pages. */
  background: rgba(13, 20, 17, 0.55);
  backdrop-filter: blur(10px);          /* frosted-glass effect */
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 1000;                        /* sit above page content */
  transition: background 0.25s ease;
}
/* JS adds .scrolled once you scroll down — becomes more solid + a shadow. */
.site-header.scrolled {
  background: rgba(13, 20, 17, 0.82);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo:hover { text-decoration: none; }
.logo-img {
  height: 48px;
  width: auto;
  border-radius: 6px;   /* softens the badge logo's corners on the dark header */
}
.logo-text {
  font-family: var(--font-head);
  font-weight: 700;
  color: #fff;                 /* light, for the dark header */
  font-size: 1.05rem;
  white-space: nowrap;
}

/* Navigation */
.main-nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
}
.main-nav a {
  font-family: var(--font-head);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);   /* light text on the dark header */
  font-size: 0.95rem;
  padding: 6px 0;
  position: relative;
}
.main-nav a:hover { text-decoration: none; color: #fff; }
/* Active link + hover get a bright-green underline that grows from the left. */
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background: var(--logo-green);   /* matches the Legacy logo green */
  transition: width 0.2s ease;
}
.main-nav a:hover::after,
.main-nav a.is-active::after {
  width: 100%;
}
.main-nav a.is-active {
  color: #fff;
}
/* "Contact Us" link stands out in orange (matches the Contact CTA button). */
.main-nav a.nav-cta { color: var(--orange-cta); }
.main-nav a.nav-cta::after { background: var(--orange-cta); }
.main-nav a.nav-cta:hover { color: #ffa04d; }

/* Hamburger toggle — hidden on desktop, shown on mobile (see media query). */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 26px;
  height: 3px;
  background: #fff;            /* light bars on the dark header */
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* 7. FOOTER ===============================================================
   A normal footer at the end of the page, so it only comes into view when
   you scroll all the way to the bottom.                                     */
.site-footer {
  /* Darker, slightly transparent dark green with a frosted blur — echoes the
     header's look but in green. */
  background: rgba(6, 32, 23, 0.86);
  backdrop-filter: blur(10px);
  color: #d7e7de;
  margin-top: 40px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  padding-top: 56px;
  padding-bottom: 40px;
}
.site-footer h3 {
  color: #fff;
  margin-bottom: 0.5rem;
}
.site-footer h4 {
  color: #fff;
  font-family: var(--font-head);
  margin-bottom: 1rem;
  font-size: 1rem;
}
.footer-brand p {
  color: #a9c6b5;
  max-width: 320px;
}
.footer-links {
  list-style: none;
}
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a {
  color: #d7e7de;
}
.footer-links a:hover { color: var(--amber); text-decoration: none; }

.social-links {
  display: flex;
  gap: 12px;
}
.social-links a {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: background 0.2s ease, transform 0.2s ease;
}
.social-links a:hover {
  background: var(--green-600);
  transform: translateY(-2px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 18px 0;
}
.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-bottom p {
  margin: 0;
  font-size: 0.85rem;
  color: #a9c6b5;
}
.powered-by strong { color: var(--amber); }

/* 8. SCROLL-REVEAL ANIMATION =============================================
   Elements with [data-reveal] start invisible and slightly lower, then slide
   up + fade in when JS adds .is-visible (triggered as they enter the screen).
   This creates the "next section appears after a scroll" effect.            */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
/* Respect users who prefer reduced motion — show everything instantly. */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* 9. HOME PAGE (dark theme) ==============================================*/
/* The whole home page uses the dark palette. The <body> carries .page-home. */
body.page-home {
  padding-top: 0;            /* hero fills the screen behind the fixed header */
  background: var(--dark-bg);
  color: var(--on-dark);
}
body.page-home h1,
body.page-home h2,
body.page-home h3 { color: #fff; }

/* Home content is 15% wider than the site default (1140 -> 1311). */
.page-home main .container { max-width: 1311px; }

/* Stats + products still each fill the viewport (the "one at a time" feel). */
.section-stats,
.section-products {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
/* Section 3 (products): plain black background. */
.page-home .section-products {
  position: relative;
  overflow: hidden;
  background: #000;
}
.products-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(13, 53, 18, 0.86);   /* green tint over the moving images */
}
/* Keep the real content above the slideshow (z:0) and the overlay (z:1). */
.section-products > .container,
.section-products > .marquee {
  position: relative;
  z-index: 2;
}

/* --- Section 1: full-bleed hero with cross-fading background --- */
.section-welcome {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: var(--header-h);  /* keep text clear of the fixed header */
  color: var(--on-dark);
}

/* Slideshow layers sit behind everything, covering the whole hero. */
.hero-slideshow {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.08);
  /* Fade handled here; the slow zoom comes from the .is-active rule below. */
  transition: opacity 1.6s ease;
}
/* JS gives exactly one slide .is-active at a time. */
.hero-slide.is-active {
  opacity: 1;
  animation: kenburns 7s ease forwards;  /* the "moving picture" zoom */
}
@keyframes kenburns {
  from { transform: scale(1.08); }
  to   { transform: scale(1.18) translate(-1.5%, -1%); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-slide.is-active { animation: none; transform: scale(1); }
}

/* Dark tint so overlaid text is always readable. Stronger on the left,
   where the text sits. */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(13,20,17,0.92) 0%, rgba(13,20,17,0.62) 45%, rgba(13,20,17,0.35) 100%),
    linear-gradient(0deg, rgba(13,20,17,0.75) 0%, rgba(13,20,17,0) 40%);
}

.hero-content {
  position: relative;
  z-index: 2;                 /* above slides + overlay */
  width: 100%;
  display: grid;
  /* Photo window ~30% wider than before (was 1.05 / 0.95). */
  grid-template-columns: 1fr 1.6fr;
  gap: 48px;
  align-items: center;
}
.hero-text { max-width: 640px; }
.hero-text .eyebrow { color: var(--green-400); margin-bottom: 1rem; }
.hero-text h1 { line-height: 1.1; margin-bottom: 1.2rem; }
.hero-text p { color: var(--on-dark-muted); }
/* The hero photo window is a wide landscape frame. */
.hero-figure .photo-slideshow { aspect-ratio: 1.3 / 1; }

/* --- Framed photo slideshow (home hero square + gallery sections) --- */
.photo-slideshow {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;              /* default (gallery sections) */
  border-radius: 20px;
  overflow: hidden;
  border: 4px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-lg);
  background: var(--green-100);
}
.photo-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;                 /* fill the frame, no distortion */
  object-position: top center;       /* anchor the TOP; overflow spills off the
                                        bottom and is clipped by the frame */
  opacity: 0;
  transition: opacity 0.8s ease;     /* cross-fade between photos */
}
.photo-slide.is-active { opacity: 1; }

/* Gallery section (just above the footer on About & Products): square window. */
.gallery .photo-slideshow {
  aspect-ratio: 1 / 1;
  max-width: 520px;
  margin: 0 auto;
}

/* Animated "scroll down" cue at the bottom of the hero. */
.scroll-cue {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 14px;
  z-index: 2;
}
.scroll-cue span {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  background: #fff;
  border-radius: 2px;
  animation: scrollcue 1.8s ease infinite;
}
@keyframes scrollcue {
  0%   { opacity: 0; transform: translateY(0); }
  30%  { opacity: 1; }
  60%  { opacity: 1; transform: translateY(14px); }
  100% { opacity: 0; transform: translateY(16px); }
}

/* --- "Alive" text effects (for key phrases) ---------------------------
   Reusable classes you can add to any phrase to make it stand out.        */

/* .text-shimmer: a soft gradient of colour that slides across the text. */
.text-shimmer {
  background: linear-gradient(100deg, #ffffff 0%, var(--green-400) 25%, var(--amber) 50%, var(--green-400) 75%, #ffffff 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: shimmer 6s linear infinite;
}
@keyframes shimmer { to { background-position: 200% center; } }

/* .text-draw: an amber underline that draws itself in under the phrase. */
.text-draw {
  position: relative;
  display: inline-block;
}
.text-draw::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  height: 4px;
  width: 0;
  background: var(--amber);
  border-radius: 2px;
  animation: draw 0.9s ease forwards;
  animation-delay: 0.9s;      /* draw after the page settles */
}
@keyframes draw { to { width: 100%; } }

@media (prefers-reduced-motion: reduce) {
  .text-shimmer { animation: none; }
  .text-draw::after { animation: none; width: 100%; }
}

/* Light outline button, for use on the dark hero. */
.btn-ghost-light {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
}
.btn-ghost-light:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
}

/* Section 2: stat cards */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.stat-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-top: 4px solid var(--green-500);
  border-radius: var(--radius);
  padding: 32px 20px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease;
}
.stat-card:hover { transform: translateY(-6px); }
.stat-value {
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 2.6rem;
  color: var(--green-600);
  line-height: 1;
}
.stat-label {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-weight: 500;
}

/* Section 3: product marquee (auto-scrolling strip) */
.marquee {
  overflow: hidden;         /* hide the part of the track outside the strip */
  padding: 10px 0 30px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.marquee-track {
  display: flex;
  width: max-content;                 /* as wide as its contents */
  --groups: 6;                        /* overridden inline to match the markup */
  animation: marquee-scroll 26s linear infinite;
}
/* Each group is one full copy of the product list. The trailing padding is the
   same as the gap, so the two groups tile perfectly and the -50% shift lands
   the second group exactly where the first was -> a seamless, endless loop. */
.marquee-group {
  display: flex;
  gap: 24px;
  padding-right: 24px;
}
/* Pause the animation when the user hovers, so they can read/click a card. */
.marquee:hover .marquee-track {
  animation-play-state: paused;
}
/* Move left by exactly ONE group (100% / number-of-groups) and repeat. Because
   all groups are identical, the reset frame is visually identical -> seamless. */
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(calc(-100% / var(--groups))); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  .marquee { overflow-x: auto; }   /* let them scroll by hand instead */
}

.product-card {
  flex: 0 0 260px;          /* fixed card width, don't shrink */
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  color: var(--ink);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.product-card:hover {
  text-decoration: none;
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.product-image {
  aspect-ratio: 16 / 10;
  background: var(--green-100);
}
.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-info { padding: 16px 18px; }
.product-info h3 { color: var(--green-800, var(--green-900)); margin-bottom: 8px; }
.product-sizes {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.product-sizes li {
  font-size: 0.75rem;
  background: var(--green-100);
  color: var(--green-700);
  padding: 3px 10px;
  border-radius: 999px;
}

/* Zoom the product image slightly on hover (more life on the images). */
.product-image { overflow: hidden; }
.product-image img { transition: transform 0.5s ease; }
.product-card:hover .product-image img { transform: scale(1.08); }

/* --- Home page: alternating contrast (dark hero / LIGHT stats / dark products) ---
   The subtitle appears in the dark products section, so keep it light. */
.page-home .section-subtitle { color: var(--on-dark-muted); }

/* Section 2 (Legacy by the Numbers) is the LIGHT band: mostly white with a
   faint grey at the bottom. Its heading + cards switch back to the light look. */
.page-home .section-stats {
  background: linear-gradient(180deg, #ffffff 0%, #eef1ee 100%);
  color: var(--ink);
}
.page-home .section-stats h2 { color: var(--green-900); }
.page-home .section-stats .section-subtitle { color: var(--muted); }

.page-home .stat-card {
  background: #ffffff;
  border-color: var(--line);
  border-top-color: var(--green-500);
  box-shadow: var(--shadow);
}
.page-home .stat-value { color: var(--green-600); }
.page-home .stat-label { color: var(--muted); }

/* Product cards stay WHITE on the dark products section for strong contrast. */
.page-home .product-card {
  background: #ffffff;
  border-color: var(--line);
  color: var(--ink);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}
.page-home .product-card:hover { box-shadow: 0 22px 50px rgba(0, 0, 0, 0.5); }
.page-home .product-info h3 { color: var(--green-900); }
.page-home .product-image { background: var(--green-100); }
/* Size pills use a soft grey with a grey font. */
.page-home .product-sizes li {
  background: #eef1ee;
  color: var(--muted);
}

/* 10. ABOUT PAGE =========================================================*/
/* Shared page banner (About, Careers, Contact, Products).
   Now a taller "mini-hero": the same cross-fading images as the home hero,
   with a green tint over them to keep the brand look and readable text.
   `has-banner` on <body> lets it bleed up behind the fixed header. */
body.has-banner { padding-top: 0; }

.page-banner {
  position: relative;
  overflow: hidden;
  background: var(--green-900);                     /* fallback behind images */
  color: #fff;
  text-align: center;
  /* Compact height (like the original banner). The top padding also clears
     the fixed header, since the banner bleeds up beneath it. */
  padding: calc(var(--header-h) + 28px) 0 40px;
}
/* Green tint layer over the moving images. */
.page-banner-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(135deg, rgba(18, 114, 76, 0.85), rgba(11, 61, 46, 0.9));
}
/* Text sits above the slideshow (z-index:0) and the overlay (z-index:1),
   inside a frosted translucent "glass" card (like the Pacific Ventures hero).
   It's a centred inline-block that hugs its content, with a soft blur so the
   moving images behind it stay faintly visible through the panel. */
.page-banner-content {
  position: relative;
  z-index: 2;
  display: inline-block;
  max-width: 780px;
  padding: clamp(28px, 4vw, 44px) clamp(28px, 6vw, 64px);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
}
.page-banner-content .banner-lead { margin-bottom: 0; }
.page-banner h1 { color: #fff; }
.page-banner .eyebrow { color: var(--amber); }
.banner-lead {
  color: #eaf3ee;
  max-width: 620px;
  margin: 0.5rem auto 0;
}

.story-para {
  font-size: 1.05rem;
  color: var(--ink);
}

/* Mission & Vision cards */
.mv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.mv-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
  border-left: 5px solid var(--green-500);
}
.mv-card:nth-child(2) { border-left-color: var(--blue-500); }
.mv-icon {
  font-size: 2rem;
  color: var(--green-600);
  margin-bottom: 8px;
}
.mv-card:nth-child(2) .mv-icon { color: var(--blue-500); }

/* Call-to-action band (About + Products pages) — dark themed for alternating
   contrast, with an orange "Contact Us" button. */
.cta-band {
  background: #142a1e;                 /* dark green (from the snip) */
}
.cta-band h2 { color: #fff; margin-bottom: 0.25rem; }
.cta-band p { color: rgba(255, 255, 255, 0.82); margin-bottom: 1.5rem; }
.cta-band .btn-primary {
  background: var(--orange-cta);
  color: #fff;
  box-shadow: 0 8px 20px rgba(242, 136, 46, 0.35);
}
.cta-band .btn-primary:hover { background: #e0761f; }

/* 11. CAREERS PAGE =======================================================
   Uses native <details>/<summary> for accessible expand/collapse.           */
.position {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.position[open] {
  border-color: var(--green-500);
}

/* The clickable collapsed row */
.position-summary {
  list-style: none;             /* hide default triangle marker */
  cursor: pointer;
  padding: 22px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.position-summary::-webkit-details-marker { display: none; }
.position-summary:hover { background: var(--bg-soft); }

.position-heading h2 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}
.position-meta { display: flex; gap: 8px; flex-wrap: wrap; }
.tag {
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--green-100);
  color: var(--green-700);
  padding: 4px 12px;
  border-radius: 999px;
}
.tag-location { background: #e7eef8; color: var(--blue-700); }

.position-closing {
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: right;
}
.closing-label {
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.closing-date {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--orange);
}
.chevron {
  font-size: 1.4rem;
  color: var(--green-600);
  transition: transform 0.25s ease;
  line-height: 1;
}
/* Rotate the chevron when the card is open. */
.position[open] .chevron { transform: rotate(180deg); }

/* Expanded content */
.position-body {
  padding: 0 26px 26px;
  border-top: 1px solid var(--line);
}
/* The "nav boxes" — auto-fitting grid so any number of boxes stays tidy. */
/* Wider positions container (~60% wider than the old narrow column) so the
   detail boxes get room to sit side-by-side and long lists can wrap into
   multiple columns — which keeps tall boxes (e.g. the QC Manager duties) short. */
.container.careers-wide { max-width: 1312px; }

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);   /* two wide boxes per row */
  gap: 18px;
  margin-top: 22px;
}
.detail-box {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px 20px;
}
.detail-box h3 {
  font-size: 0.95rem;
  color: var(--green-700);
  margin-bottom: 10px;
}
.detail-box ul {
  padding-left: 18px;
  color: var(--muted);
  /* Long lists flow into as many ~200px columns as the (now wide) box allows,
     which roughly halves the height of long boxes like "Duties". */
  columns: 200px;
  column-gap: 28px;
}
.detail-box li {
  margin-bottom: 6px;
  break-inside: avoid;   /* keep each bullet within a single column */
}

.empty-state {
  text-align: center;
  padding: 40px 0;
}

/* 12. CONTACT PAGE =======================================================*/
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 48px;
  align-items: start;
}

.contact-info { padding-top: 8px; }
/* Uniform, generous vertical rhythm: the "Reach Us" heading and each contact
   item are separated by the same larger gap. */
.contact-info h2 { margin-bottom: 40px; }
.info-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 40px;
}
.info-item:last-child { margin-bottom: 0; }
.info-icon {
  flex: 0 0 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--green-100);
  color: var(--green-600);
  display: grid;
  place-items: center;
  font-size: 1.2rem;
}
.info-label {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

/* Form card */
.contact-form-wrap {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
}
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-weight: 500;
  margin-bottom: 6px;
  font-size: 0.9rem;
}
.field input,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--green-500);
  box-shadow: 0 0 0 3px var(--green-100);
}
.field textarea { resize: vertical; }
/* Turn the border orange ONLY after the user has interacted with a field and
   left it invalid (:user-invalid). This avoids empty, untouched required
   fields looking like errors the moment the page loads. */
.field input:user-invalid,
.field textarea:user-invalid {
  border-color: var(--orange);
}

/* Error banner above the form (validation / send failure) */
.form-error {
  background: #fdecea;
  border: 1px solid var(--orange);
  color: #9c4a12;
  padding: 12px 16px;
  border-radius: 10px;
  margin-bottom: 18px;
  font-size: 0.9rem;
}

/* Honeypot: kept in the DOM (so bots fill it) but hidden from real users.
   We move it off-screen rather than display:none, which naive bots skip. */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-success {
  text-align: center;
  padding: 20px 0;
}
.success-check {
  display: inline-grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--green-100);
  color: var(--green-600);
  font-size: 2rem;
  margin-bottom: 12px;
}

/* 13. PRODUCTS PAGE ======================================================*/
.product-row {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 32px;
  align-items: center;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: calc(var(--header-h) + 20px); /* anchor offset */
}
.product-row:last-child { border-bottom: none; }
.product-row-head {
  display: flex;
  gap: 20px;
  align-items: center;
}
.product-row-image {
  flex: 0 0 120px;
  height: 120px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--green-100);
}
.product-row-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-tagline { color: var(--muted); margin: 4px 0 0; }

.product-row-sizes h3 {
  font-size: 0.9rem;
  color: var(--green-700);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}
.sizes-table {
  width: 100%;
  border-collapse: collapse;
}
.sizes-table td {
  padding: 10px 14px;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  border-radius: 6px;
  font-size: 0.9rem;
}
.sizes-table tr:nth-child(even) td { background: #fff; }

.error-page { padding: 120px 0; }

/* 14. RESPONSIVE (MOBILE) ================================================
   Below 860px we stack columns and switch the nav to a slide-down menu.     */
@media (max-width: 860px) {
  /* Stack all two-column grids into one column */
  .hero-content,
  .mv-grid,
  .contact-grid,
  .product-row {
    grid-template-columns: 1fr;
  }
  .hero-text { max-width: none; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }

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

  /* --- Mobile navigation --- */
  .nav-toggle { display: flex; }   /* show hamburger */
  .main-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: rgba(13, 20, 17, 0.95);   /* dark, matching the header */
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--dark-line);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
    /* Hidden by default; JS toggles the .open class. */
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .main-nav.open { max-height: 400px; }
  .main-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 8px 24px;
  }
  .main-nav li { border-bottom: 1px solid var(--dark-line); }
  .main-nav li:last-child { border-bottom: none; }
  .main-nav a { display: block; padding: 14px 0; }
  .main-nav a::after { display: none; }

  /* Hamburger -> X animation when open */
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  .position-summary { flex-direction: column; align-items: flex-start; }
  .position-closing { text-align: left; }
  .detail-grid { grid-template-columns: 1fr; }   /* stack boxes on mobile */
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .logo-text { display: none; }   /* logo image only on very small screens */
}
