/* index.html intentionally self-contained — duplicate CSS kept inline for fallback if styles.css fails to load.
   Inner pages reference styles.css only. */
/* =========================================================
   NATIVEWAY — REDESIGN PROTOTYPE
   Design system: navy + amber, serif heads + inter body
   ========================================================= */

:root {
  --navy:        #0E2A47;
  --navy-deep:   #081A2D;
  --navy-tint:   #1B3A5E;
  --steel:       #475569;
  --slate:       #64748B;
  --slate-light: #94A3B8;

  /* Earth-tone palette — warm, natural backgrounds replacing pure white */
  --paper:       #F7EFDE;   /* primary background — warm cream/sand */
  --paper-2:     #EFE4CC;   /* deeper sand for alt sections */
  --cream:       #EADBB8;   /* warm wheat */
  --earth-tan:   #D9C396;   /* tan accent */
  --earth-clay:  #B8895A;   /* terracotta clay */
  --earth-deep:  #6B4E2E;   /* dark earth / bronze */
  --card:        #FCF7EA;   /* card surface — slightly warmer than paper */

  --amber:       #F26B1F;
  --amber-dark:  #D9501A;
  --amber-bright:#FF7A2A;
  --amber-light: #FBE3CD;
  --bronze:      #C8995E;
  --green:       #0F766E;
  --green-light: #DCF2EE;
  --border:      #E0D3B5;
  --shadow-sm:   0 1px 2px rgba(8, 26, 45, 0.05), 0 1px 3px rgba(8, 26, 45, 0.05);
  --shadow-md:   0 4px 12px rgba(8, 26, 45, 0.08), 0 2px 4px rgba(8, 26, 45, 0.04);
  --shadow-lg:   0 12px 32px rgba(8, 26, 45, 0.12), 0 4px 8px rgba(8, 26, 45, 0.06);
  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   16px;
  --max-width:   1240px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--steel);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Fraunces', Georgia, serif;
  color: var(--navy);
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.25rem, 4.5vw, 3.75rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); margin-bottom: 0.75rem; }
h3 { font-size: 1.35rem; margin-bottom: 0.5rem; }
h4 { font-size: 1.1rem; }
p  { margin-bottom: 1rem; }

/* Justified body-copy utility — applied to long-form prose paragraphs across pages */
.prose-justify p,
p.justify,
.justify > p {
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  -webkit-hyphens: auto;
  text-wrap: pretty;
}
/* Don't justify ledes / single-line intros — they read better ragged-right */
.prose-justify .lede,
.prose-justify p.lede {
  text-align: left;
  hyphens: manual;
}

/* ---- Site-wide paragraph justification for long-form copy ----
   Targets multi-line body paragraphs inside content sections, while
   leaving short labels, ledes, captions and UI copy ragged-right. */
.section p,
.section-header p,
.heritage p,
.partners p,
.product-spec-table p,
.feature-card p,
.tier-card p,
.service-card p,
.mtu-card p,
.proj-modal-prose p,
.proj-featured-text p:not(.lede),
.footer-about p {
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  -webkit-hyphens: auto;
  text-wrap: pretty;
}
/* Always keep these ragged-right — they're intros, labels or short fragments */
.hero-sub,
.page-hero p,
.section-header p,
p.lede,
.proj-card-scope,
.cta-banner p,
.cta-inner p,
.section-header p {
  text-align: left !important;
  hyphens: manual !important;
}
a  { color: var(--navy); text-decoration: none; }

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

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 0.75rem;
  display: inline-block;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 14px 28px;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  border: 2px solid transparent;
  white-space: nowrap;
}
.btn-primary {
  background: var(--amber);
  color: var(--navy);
  border-color: var(--amber);
}
.btn-primary:hover {
  background: var(--amber-dark);
  border-color: var(--amber-dark);
  color: var(--paper);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-secondary {
  background: transparent;
  color: var(--paper);
  border-color: var(--paper);
}
.btn-secondary:hover {
  background: var(--paper);
  color: var(--navy);
}
.btn-ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-ghost:hover { background: var(--navy); color: var(--paper); }
.btn-link {
  padding: 0;
  background: none;
  color: var(--amber-dark);
  font-weight: 600;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.btn-link:hover { color: var(--navy); gap: 0.6rem; }

/* =========================================================
   ANNOUNCEMENT BAR
   ========================================================= */
.topbar {
  background: var(--navy-deep);
  color: #CADCFC;
  font-size: 0.82rem;
  padding: 8px 0;
  border-bottom: 1px solid var(--navy-tint);
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.topbar-badges {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  flex-wrap: wrap;
}
.topbar-badges span { display: inline-flex; align-items: center; gap: 6px; }
.topbar-contact { display: flex; gap: 1.5rem; }
.topbar-contact a { color: #CADCFC; }
.topbar-contact a:hover { color: var(--amber); }

@media (max-width: 720px) {
  .topbar-contact { display: none; }
}

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  background: var(--paper);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  transition: box-shadow 0.2s;
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  gap: 24px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: 'Fraunces', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.02em;
  text-decoration: none;
}
.logo img {
  height: 56px;
  width: auto;
  display: block;
}
.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  border-left: 1px solid var(--border);
  padding-left: 14px;
}
.logo-text strong {
  font-family: 'Fraunces', serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.02em;
}
.logo-text small {
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--slate);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-top: 3px;
}
.nav { display: flex; gap: 2px; align-items: center; }
.nav > a, .nav .nav-dropdown > a {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--steel);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: all 0.15s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}
.nav > a:hover, .nav .nav-dropdown > a:hover { color: var(--navy); background: var(--cream); }
.nav > a.active, .nav .nav-dropdown > a.active { color: var(--navy); }
.nav-cta { margin-left: 10px; }
.nav-cta.btn { color: #fff !important; background: var(--amber) !important; }
.nav-cta.btn:hover { background: var(--amber-dark) !important; }

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown .caret { transition: transform 0.18s ease; opacity: 0.7; }
.nav-dropdown:hover .caret, .nav-dropdown:focus-within .caret { transform: rotate(180deg); }
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 220px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  z-index: 200;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-dropdown-menu a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.nav-dropdown-menu a:hover { background: var(--cream); color: var(--amber-dark); }
.nav-dropdown-menu .submenu {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 2px 0 6px 14px;
  margin-left: 14px;
  border-left: 1px solid var(--border);
}
.nav-dropdown-menu .submenu a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--slate);
  padding: 6px 12px;
}
.nav-dropdown-menu .submenu a:hover { color: var(--amber-dark); background: var(--cream); }
.nav-dropdown-menu .submenu a .badge {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--amber-dark);
  background: var(--amber-light);
  padding: 1px 6px;
  border-radius: 3px;
  margin-left: 6px;
  vertical-align: 2px;
}

/* Tighter responsive: hide some items on smaller desktops */
@media (max-width: 1180px) {
  .nav > a, .nav .nav-dropdown > a { padding: 6px 9px; font-size: 0.9rem; }
  .nav-cta { margin-left: 6px; }
}
@media (max-width: 1024px) {
  .nav > a, .nav .nav-dropdown > a { font-size: 0.875rem; padding: 6px 8px; }
}
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.menu-toggle svg { width: 28px; height: 28px; stroke: var(--navy); }

@media (max-width: 980px) {
  .nav { display: none; }
  .menu-toggle { display: block; }
  .nav.open {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--paper);
    flex-direction: column;
    padding: 16px;
    box-shadow: var(--shadow-lg);
    border-top: 1px solid var(--border);
    gap: 4px;
  }
  .nav.open a { width: 100%; padding: 14px 16px; }
  .nav-cta { margin-left: 0; margin-top: 8px; }
}

/* =========================================================
   HERO — cinematic photographic banner
   Deep-navy + vermillion + bronze. Photographic plate of a
   real diesel genset room sits behind a layered overlay
   (vignette + warm rim light + film grain) for drama.
   ========================================================= */
.hero {
  position: relative;
  background: #050E1C;
  color: #FFFFFF;
  overflow: hidden;
  padding: 132px 0 148px;
  min-height: 760px;
  display: flex;
  align-items: center;
  isolation: isolate;
}
/* Photo plate — the real engineering image, desaturated and pushed back */
.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
  z-index: 0;
  filter: brightness(0.55) contrast(1.05) saturate(0.85);
  transform: scale(1.04);
}
/* Layered overlay: navy wash on the left for text legibility, warm rim on the right */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg,
      rgba(5, 14, 28, 0.96) 0%,
      rgba(8, 26, 45, 0.90) 30%,
      rgba(8, 26, 45, 0.55) 60%,
      rgba(8, 26, 45, 0.30) 100%),
    radial-gradient(900px circle at 88% 30%, rgba(255, 122, 42, 0.32), transparent 55%),
    radial-gradient(700px circle at 92% 80%, rgba(216, 80, 26, 0.22), transparent 60%);
  z-index: 1;
  pointer-events: none;
}
/* Engineering blueprint — subtle technical grid + film grain texture */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(200, 153, 94, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200, 153, 94, 0.045) 1px, transparent 1px);
  background-size: 80px 80px;
  /* Vignette to focus the eye centre-stage */
  -webkit-mask-image: radial-gradient(ellipse at 50% 50%, black 30%, transparent 90%);
          mask-image: radial-gradient(ellipse at 50% 50%, black 30%, transparent 90%);
  z-index: 2;
  pointer-events: none;
}
/* Decorative engineering corner brackets — adds editorial framing */
.hero-frame {
  position: absolute;
  inset: 28px;
  pointer-events: none;
  z-index: 3;
}
.hero-frame span {
  position: absolute;
  width: 32px;
  height: 32px;
  border: 1.5px solid var(--amber);
  opacity: 0.7;
}
.hero-frame .tl { top: 0; left: 0; border-right: none; border-bottom: none; }
.hero-frame .tr { top: 0; right: 0; border-left: none; border-bottom: none; }
.hero-frame .bl { bottom: 0; left: 0; border-right: none; border-top: none; }
.hero-frame .br { bottom: 0; right: 0; border-left: none; border-top: none; }
.hero-inner {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: 1.25fr 0.85fr;
  gap: 72px;
  align-items: center;
  width: 100%;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(242, 107, 31, 0.12);
  border: 1px solid rgba(242, 107, 31, 0.45);
  color: var(--amber);
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 28px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.hero-eyebrow .pulse {
  width: 8px; height: 8px;
  background: var(--amber);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%     { opacity: 0.6; transform: scale(1.2); }
}
.hero h1 {
  color: #FFFFFF;
  font-size: clamp(2.6rem, 5.2vw, 4.5rem);
  margin-bottom: 28px;
  letter-spacing: -0.025em;
  font-weight: 500;
  line-height: 1.05;
  text-wrap: balance;
  text-shadow: 0 2px 30px rgba(0,0,0,0.4);
}
.hero h1 .accent {
  color: var(--amber);
  font-style: italic;
  font-weight: 400;
}
.hero h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--bronze);
}
.hero-sub {
  color: #DCE6F5;
  font-size: 1.18rem;
  line-height: 1.6;
  margin-bottom: 40px;
  max-width: 560px;
  font-weight: 400;
}
.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  padding-top: 36px;
  border-top: 1px solid rgba(200, 153, 94, 0.3);
  max-width: 560px;
}
.hero-stat .num {
  font-family: 'Fraunces', serif;
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--amber);
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}
.hero-stat .lbl {
  font-size: 0.82rem;
  color: rgba(220, 230, 245, 0.7);
  line-height: 1.4;
  letter-spacing: 0.02em;
}

/* =========================================================
   HERO SIDE — credential card replacing the 4 product tiles
   A single elegant glass plate: stamp + capability list +
   partner marquee. Quieter, more premium.
   ========================================================= */
.hero-side {
  position: relative;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.credential-card {
  position: relative;
  background: linear-gradient(180deg, rgba(14, 30, 50, 0.72) 0%, rgba(8, 20, 36, 0.82) 100%);
  border: 1px solid rgba(200, 153, 94, 0.28);
  border-radius: var(--radius-lg);
  padding: 36px 32px 32px;
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  box-shadow:
    0 30px 60px -20px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: hidden;
}
.credential-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--amber) 30%, var(--amber-bright) 50%, var(--amber) 70%, transparent);
}
.credential-stamp {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 22px;
  margin-bottom: 22px;
  border-bottom: 1px dashed rgba(200, 153, 94, 0.25);
}
.credential-seal {
  width: 68px; height: 68px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 2px solid var(--amber);
  display: grid; place-items: center;
  position: relative;
  background: radial-gradient(circle at 30% 30%, rgba(242, 107, 31, 0.25), rgba(8, 20, 36, 0.6));
}
.credential-seal::before {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  border: 1px dashed rgba(200, 153, 94, 0.6);
}
.credential-seal .yr {
  font-family: 'Fraunces', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--amber);
  line-height: 1;
  letter-spacing: -0.02em;
}
.credential-stamp-text .top {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bronze);
  margin-bottom: 4px;
}
.credential-stamp-text .mid {
  font-family: 'Fraunces', serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: #FFFFFF;
  line-height: 1.2;
  margin-bottom: 2px;
}
.credential-stamp-text .sub {
  font-size: 0.78rem;
  color: rgba(220, 230, 245, 0.65);
}
.credential-list {
  list-style: none;
  display: grid;
  gap: 14px;
  padding: 0;
  margin: 0;
}
.credential-list li {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  gap: 14px;
  align-items: center;
  font-size: 0.92rem;
  color: #DCE6F5;
  font-weight: 500;
}
.credential-list .check {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(242, 107, 31, 0.18);
  border: 1px solid rgba(242, 107, 31, 0.5);
  display: grid; place-items: center;
  color: var(--amber);
}
.credential-list .check svg { width: 12px; height: 12px; }
.credential-list .meta {
  font-family: 'Fraunces', serif;
  font-size: 0.85rem;
  color: var(--bronze);
  font-style: italic;
}

/* Partner marquee */
.partner-strip {
  background: rgba(5, 14, 28, 0.6);
  border: 1px solid rgba(200, 153, 94, 0.18);
  border-radius: 12px;
  padding: 14px 20px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  gap: 18px;
}
.partner-strip .lbl {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bronze);
  flex-shrink: 0;
  border-right: 1px solid rgba(200, 153, 94, 0.25);
  padding-right: 18px;
  line-height: 1.3;
}
.partner-strip .names {
  display: flex;
  gap: 22px;
  font-family: 'Fraunces', serif;
  font-size: 1rem;
  font-weight: 600;
  color: #F5F1E8;
  letter-spacing: 0.04em;
  flex: 1;
  flex-wrap: wrap;
}
.partner-strip .names span { white-space: nowrap; }
.partner-strip .names span + span::before {
  content: '·';
  color: var(--amber);
  margin-right: 22px;
  margin-left: -16px;
}

@media (max-width: 980px) {
  .hero { padding: 80px 0 96px; min-height: auto; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .credential-card { padding: 28px 24px; }
  .hero-frame { inset: 16px; }
}
@media (max-width: 540px) {
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .hero-stats .hero-stat:last-child { grid-column: 1/-1; }
  .credential-stamp { flex-direction: column; align-items: flex-start; gap: 14px; }
  .partner-strip { flex-direction: column; align-items: flex-start; gap: 10px; }
  .partner-strip .lbl { border-right: none; padding-right: 0; }
}

/* =========================================================
   TRUST STRIP
   ========================================================= */
.trust {
  background: var(--paper-2);
  padding: 48px 0;
  border-bottom: 1px solid var(--border);
  border-top: 3px solid var(--earth-clay);
}
.trust-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
}
.trust-label {
  font-size: 0.85rem;
  color: var(--slate);
  letter-spacing: 0.05em;
  flex-shrink: 0;
}
.trust-label strong { color: var(--navy); display: block; font-size: 0.95rem; margin-bottom: 4px; }
.trust-logos {
  display: flex;
  gap: 32px;
  align-items: center;
  flex-wrap: wrap;
  flex: 1;
  justify-content: flex-end;
}
.trust-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  color: var(--steel);
  font-weight: 600;
}
.trust-badge svg { width: 22px; height: 22px; flex-shrink: 0; }
.trust-divider { width: 1px; height: 32px; background: var(--border); }

/* =========================================================
   SECTION SHARED
   ========================================================= */
.section { padding: 96px 0; }
.section.alt { background: var(--cream); }
.section.dark { background: var(--navy); color: #CADCFC; }
.section.dark h2, .section.dark h3 { color: var(--paper); }

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 64px;
}
.section-header.left { text-align: left; margin-left: 0; }
.section-header p {
  font-size: 1.1rem;
  color: var(--slate);
}
.section.dark .section-header p { color: #CADCFC; }

@media (max-width: 720px) {
  .section { padding: 64px 0; }
  .section-header { margin-bottom: 40px; }
}

/* =========================================================
   SERVICES
   ========================================================= */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.service-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 4px;
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
  width: 56px; height: 56px;
  background: var(--cream);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 24px;
  color: var(--navy);
  transition: all 0.25s;
}
.service-card:hover .service-icon { background: var(--navy); color: var(--amber); }
.service-icon svg { width: 28px; height: 28px; }
.service-card h3 { margin-bottom: 12px; }
.service-card p {
  font-size: 0.95rem;
  margin-bottom: 16px;
}
.service-card .tags {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-bottom: 20px;
}
.service-card .tag {
  font-size: 0.75rem;
  padding: 3px 10px;
  background: var(--paper-2);
  color: var(--slate);
  border-radius: 12px;
}

/* =========================================================
   SECTORS
   ========================================================= */
.sectors-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.sector-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 20px;
  text-align: center;
  transition: all 0.25s ease;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}
.sector-card:hover {
  background: var(--navy);
  border-color: var(--navy);
  transform: translateY(-4px);
}
.sector-card:hover h4, .sector-card:hover .count { color: var(--paper); }
.sector-card:hover .sector-icon { color: var(--amber); }
.sector-icon {
  width: 48px; height: 48px;
  margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center;
  color: var(--navy);
  transition: color 0.25s;
}
.sector-icon svg { width: 36px; height: 36px; }
.sector-card h4 { margin-bottom: 4px; transition: color 0.25s; }
.sector-card .count {
  font-size: 0.8rem;
  color: var(--slate);
  transition: color 0.25s;
}

@media (max-width: 980px) {
  .sectors-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 540px) {
  .sectors-grid { grid-template-columns: 1fr 1fr; }
}

/* =========================================================
   PROJECTS SPOTLIGHT
   ========================================================= */
.projects-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 20px;
  height: 620px;
}
.project-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  background: var(--navy-tint);
  transition: transform 0.3s;
}
.project-card:hover { transform: translateY(-4px); }
.project-card:nth-child(1) { grid-row: 1 / 3; }
.project-img-placeholder {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.project-img-placeholder.p1 { background: linear-gradient(135deg, #1B3A5E, #0E2A47); }
.project-img-placeholder.p2 { background: linear-gradient(135deg, #475569, #1E293B); }
.project-img-placeholder.p3 { background: linear-gradient(135deg, #B85F0E, #7A3F0A); }
.project-img-placeholder.p4 { background: linear-gradient(135deg, #0F766E, #042F2E); }
.project-img-placeholder.p5 { background: linear-gradient(135deg, #1E40AF, #1E3A8A); }
.project-card .img-label {
  position: absolute;
  top: 16px; left: 16px;
  font-size: 0.7rem;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.project-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px 28px;
  background: linear-gradient(to top, rgba(8, 26, 45, 0.95) 0%, rgba(8, 26, 45, 0.4) 60%, transparent 100%);
  color: var(--paper);
}
.project-overlay .sector {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 8px;
}
.project-overlay h3 {
  color: var(--paper);
  margin-bottom: 8px;
  font-size: 1.25rem;
}
.project-card:nth-child(1) .project-overlay h3 { font-size: 1.75rem; }
.project-overlay .meta {
  display: flex;
  gap: 16px;
  font-size: 0.85rem;
  color: #CADCFC;
}
.project-overlay .meta span { display: inline-flex; align-items: center; gap: 6px; }

@media (max-width: 980px) {
  .projects-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    height: auto;
  }
  .projects-grid .project-card:nth-child(1) { grid-row: auto; grid-column: 1 / -1; height: 320px; }
  .project-card:not(:first-child) { height: 240px; }
}
@media (max-width: 540px) {
  .projects-grid { grid-template-columns: 1fr; }
  .projects-grid .project-card:nth-child(1) { grid-column: 1; }
}

.section-cta-row {
  display: flex;
  justify-content: center;
  margin-top: 48px;
}

/* =========================================================
   HERITAGE / WHY US
   ========================================================= */
.heritage {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: center;
}
.heritage-visual {
  position: relative;
  height: 540px;
  border-radius: var(--radius-lg);
  background: var(--navy);
  overflow: hidden;
}
.heritage-visual::before {
  content: 'Heritage / team photo placeholder';
  position: absolute;
  bottom: 16px; left: 20px;
  font-size: 0.7rem;
  color: var(--slate-light);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.5;
}
.heritage-visual svg { width: 100%; height: 100%; }

.timeline {
  margin-top: 32px;
  border-left: 2px solid var(--border);
  padding-left: 24px;
}
.timeline-item {
  position: relative;
  padding-bottom: 24px;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: -30px;
  top: 6px;
  width: 12px; height: 12px;
  background: var(--paper);
  border: 2px solid var(--amber);
  border-radius: 50%;
}
.timeline-year {
  font-family: 'Fraunces', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--amber-dark);
  margin-bottom: 2px;
}
.timeline-text { font-size: 0.95rem; }

@media (max-width: 980px) {
  .heritage { grid-template-columns: 1fr; gap: 48px; }
  .heritage-visual { height: 360px; order: -1; }
}

/* =========================================================
   PARTNERS / DISTRIBUTION
   ========================================================= */
.partners {
  background: var(--cream);
  padding: 80px 0;
}
.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}
.partner-card {
  background: var(--card);
  padding: 32px;
  border-radius: var(--radius-md);
  text-align: center;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.partner-name {
  font-family: 'Fraunces', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.partner-card .role {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 16px;
}
.partner-card p {
  font-size: 0.9rem;
  color: var(--steel);
  margin-bottom: 18px;
}
.partner-card { display: flex; flex-direction: column; transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s; text-decoration: none; }
.partner-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md, 0 8px 24px rgba(11,28,52,0.10)); border-color: var(--earth-clay); }
.partner-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--amber-dark, #C8651B);
  letter-spacing: 0.01em;
}
.partner-card:hover .partner-link { color: var(--navy); }
.partner-link svg { transition: transform 0.15s; }
.partner-card:hover .partner-link svg { transform: translate(2px, -2px); }

/* =========================================================
   CTA BANNER
   ========================================================= */
.cta-banner {
  background: var(--navy-deep);
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(202, 220, 252, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(202, 220, 252, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}
.cta-banner::after {
  content: '';
  position: absolute;
  left: -10%;
  top: 50%;
  transform: translateY(-50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(224, 122, 31, 0.2), transparent 70%);
  pointer-events: none;
}
.cta-inner {
  position: relative;
  text-align: center;
  padding: 96px 0;
}
.cta-banner h2 {
  color: var(--paper);
  font-size: clamp(2rem, 4vw, 3rem);
  max-width: 720px;
  margin: 0 auto 16px;
}
.cta-banner p {
  color: #CADCFC;
  font-size: 1.15rem;
  max-width: 560px;
  margin: 0 auto 32px;
}
.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  background: var(--navy-deep);
  color: #CADCFC;
  padding: 80px 0 28px;
  padding: 64px 0 32px;
  border-top: 1px solid var(--navy-tint);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr 1.4fr;
  gap: 56px 36px;
  gap: 48px;
  margin-bottom: 48px;
}
.footer h5 {
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 20px;
}
.footer-about .logo img { height: 88px !important; padding: 10px 14px !important; }
.footer-about p {
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 22px;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  color: #CADCFC;
}
.footer-social { display: flex; gap: 14px; align-items: center; }
.footer-social a {
  width: 52px; height: 52px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  transition: all 0.22s ease;
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
}
.footer-social a svg { width: 22px; height: 22px; }
.footer-social a.s-fb { background: #1877F2; }
.footer-social a.s-li { background: #0A66C2; }
.footer-social a.s-ig {
  background: radial-gradient(circle at 30% 110%, #FFD27A 0%, #FF6B6B 30%, #C13584 55%, #833AB4 75%, #5851DB 100%);
}
.footer-social a:hover { transform: translateY(-3px) scale(1.05); box-shadow: 0 8px 20px rgba(0,0,0,0.35); }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 10px; }
.footer ul a {
  color: #CADCFC;
  font-size: 0.92rem;
  transition: color 0.2s;
}
.footer ul a:hover { color: var(--amber); }

.footer-contact-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 18px 18px 14px;
}
.footer-contact-card a { color: #fff !important; font-weight: 600; text-decoration: none; }
.footer-contact-card a:hover { color: var(--amber) !important; }
.footer-contact-item {
  display: flex; gap: 12px; align-items: flex-start;
  margin-bottom: 14px;
  font-size: 0.9rem;
  line-height: 1.5;
}
.footer-contact-item svg {
  width: 18px; height: 18px;
  flex-shrink: 0;
  color: var(--amber);
  margin-top: 2px;
}
.footer-bottom {
  border-top: 1px solid var(--navy-tint);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
  color: var(--slate-light);
}
.footer-bottom a { color: var(--slate-light); }
.footer-bottom a:hover { color: var(--amber); }

@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px 24px; }
}
@media (max-width: 540px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* =========================================================
   PROTOTYPE BANNER (remove for production)
   ========================================================= */
.prototype-banner {
  position: fixed;
  bottom: 16px;
  right: 16px;
  background: var(--navy);
  color: var(--amber);
  padding: 10px 16px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 8px;
}
.prototype-banner .pulse {
  width: 8px; height: 8px;
  background: var(--amber);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}


/* =========================================================
   INNER PAGE — PAGE HERO (cinematic photo banner)
   ========================================================= */
.page-hero {
  position: relative;
  min-height: 620px;
  padding: 96px 0 110px;
  color: #FFFFFF;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  align-items: center;
}
.page-hero-photo {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 55%;
  z-index: 0;
  filter: brightness(0.55) contrast(1.05) saturate(0.9);
  transform: scale(1.04);
}
/* Slideshow: when multiple photos sit inside .page-hero-slides, fade between them */
.page-hero-slides { position: absolute; inset: 0; z-index: 0; }
.page-hero-slides .page-hero-photo {
  opacity: 0;
  transition: opacity 1.6s ease;
}
.page-hero-slides .page-hero-photo.is-active { opacity: 1; }
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(100deg,
      rgba(5, 14, 28, 0.95) 0%,
      rgba(8, 26, 45, 0.85) 35%,
      rgba(8, 26, 45, 0.45) 75%,
      rgba(8, 26, 45, 0.25) 100%),
    radial-gradient(900px circle at 90% 30%, rgba(255, 122, 42, 0.30), transparent 55%);
  z-index: 1;
  pointer-events: none;
}
.page-hero::after {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(200, 153, 94, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200, 153, 94, 0.045) 1px, transparent 1px);
  background-size: 80px 80px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 50%, black 30%, transparent 90%);
          mask-image: radial-gradient(ellipse at 50% 50%, black 30%, transparent 90%);
  z-index: 2;
}
.page-hero-frame {
  position: absolute; inset: 28px;
  pointer-events: none; z-index: 3;
}
.page-hero-frame span {
  position: absolute; width: 28px; height: 28px;
  border: 1.5px solid var(--amber); opacity: 0.65;
}
.page-hero-frame .tl { top: 0; left: 0; border-right: none; border-bottom: none; }
.page-hero-frame .tr { top: 0; right: 0; border-left: none; border-bottom: none; }
.page-hero-frame .bl { bottom: 0; left: 0; border-right: none; border-top: none; }
.page-hero-frame .br { bottom: 0; right: 0; border-left: none; border-top: none; }

.page-hero-inner {
  position: relative; z-index: 4;
  max-width: 920px;
}
.breadcrumb {
  display: inline-flex; align-items: center; gap: 8px;
  margin-bottom: 24px;
  font-size: 0.82rem;
  color: rgba(220, 230, 245, 0.7);
  letter-spacing: 0.02em;
}
.breadcrumb a {
  color: rgba(220, 230, 245, 0.85);
  border-bottom: 1px solid rgba(200, 153, 94, 0.3);
  padding-bottom: 1px;
  transition: color 0.2s;
}
.breadcrumb a:hover { color: var(--amber); border-color: var(--amber); }
.breadcrumb svg { width: 14px; height: 14px; color: var(--bronze); }
.breadcrumb span { color: var(--amber); font-weight: 500; }

.page-hero .eyebrow {
  color: var(--amber);
  margin-bottom: 18px;
}
.page-hero h1 {
  color: #FFFFFF;
  font-size: clamp(2.5rem, 5.2vw, 4.25rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin-bottom: 24px;
  text-wrap: balance;
  text-shadow: 0 2px 30px rgba(0,0,0,0.4);
}
.page-hero p {
  font-size: 1.18rem;
  color: #DCE6F5;
  line-height: 1.6;
  max-width: 720px;
  margin-bottom: 32px;
}
.meta-row {
  display: flex; flex-wrap: wrap; gap: 14px;
  padding-top: 28px;
  border-top: 1px solid rgba(200, 153, 94, 0.25);
}
.meta-item {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.88rem;
  color: #DCE6F5;
  background: rgba(8, 20, 36, 0.55);
  border: 1px solid rgba(200, 153, 94, 0.25);
  padding: 8px 14px;
  border-radius: 999px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.meta-item svg { width: 16px; height: 16px; color: var(--amber); flex-shrink: 0; }

@media (max-width: 720px) {
  .page-hero { padding: 70px 0 60px; min-height: auto; }
  .page-hero-frame { inset: 14px; }
}

/* =========================================================
   TIER CARDS — power range cards
   ========================================================= */
.tier-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.tier-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px 32px;
  display: flex; flex-direction: column;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}
.tier-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--amber), var(--amber-bright));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.tier-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(242, 107, 31, 0.3);
}
.tier-card:hover::before { transform: scaleX(1); }
.tier-card.featured {
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
  border-color: var(--amber);
  color: #DCE6F5;
  box-shadow: 0 20px 50px -15px rgba(8, 26, 45, 0.4);
}
.tier-card.featured::before {
  transform: scaleX(1);
  height: 4px;
  background: linear-gradient(90deg, var(--amber), var(--amber-bright), var(--amber));
}
.tier-card.featured h3 { color: #FFFFFF; }
.tier-card.featured p { color: rgba(220, 230, 245, 0.85); }
.tier-card.featured .tier-range { color: var(--amber); border-color: rgba(242, 107, 31, 0.3); }
.tier-card.featured ul li { color: #DCE6F5; }
.tier-card.featured ul svg { color: var(--amber); }
.tier-range {
  font-family: 'Fraunces', serif;
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--amber-dark);
  letter-spacing: -0.02em;
  margin-bottom: 6px;
  padding-bottom: 14px;
  border-bottom: 1px dashed var(--border);
}
.tier-card h3 { margin-bottom: 12px; font-size: 1.4rem; }
.tier-card p { font-size: 0.92rem; margin-bottom: 20px; }
.tier-card ul {
  list-style: none; padding: 0; margin: 0 0 24px;
  display: flex; flex-direction: column; gap: 10px;
  flex-grow: 1;
}
.tier-card ul li {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--steel);
}
.tier-card ul svg {
  width: 18px; height: 18px;
  flex-shrink: 0; margin-top: 2px;
  color: var(--amber);
}

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

/* =========================================================
   PRODUCT SPEC — split visual + spec table
   ========================================================= */
.product-spec-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  align-items: center;
}
.product-spec-visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow-lg);
  isolation: isolate;
}
.product-spec-visual img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  filter: contrast(1.05) saturate(1.05);
}
.product-spec-visual::before {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, transparent 50%, rgba(8, 20, 36, 0.65)),
    linear-gradient(45deg, rgba(242, 107, 31, 0.08), transparent 40%);
  z-index: 1;
}
.product-spec-visual .badge {
  position: absolute;
  top: 24px; left: 24px;
  background: rgba(8, 20, 36, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--amber);
  border-radius: 999px;
  padding: 8px 16px;
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.05em;
  color: var(--amber);
  z-index: 2;
}
.product-spec-visual .caption {
  position: absolute;
  bottom: 24px; left: 24px; right: 24px;
  z-index: 2;
  color: #FFFFFF;
}
.product-spec-visual .caption .top {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 4px;
}
.product-spec-visual .caption .mid {
  font-family: 'Fraunces', serif;
  font-size: 1.1rem;
  font-weight: 600;
}

.product-spec-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 24px;
}
.product-spec-table tr { border-bottom: 1px solid var(--border); }
.product-spec-table tr:last-child { border-bottom: none; }
.product-spec-table th, .product-spec-table td {
  padding: 14px 0;
  text-align: left;
  font-size: 0.92rem;
  vertical-align: top;
}
.product-spec-table th {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  color: var(--navy);
  width: 38%;
  letter-spacing: 0.01em;
}
.product-spec-table td { color: var(--steel); }

@media (max-width: 980px) {
  .product-spec-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* =========================================================
   FEATURE GRID — service & support
   ========================================================= */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 26px;
  transition: all 0.25s ease;
  box-shadow: var(--shadow-sm);
}
.feature-card:hover {
  transform: translateY(-3px);
  border-color: rgba(242, 107, 31, 0.3);
  box-shadow: var(--shadow-md);
}
.feature-icon {
  width: 48px; height: 48px;
  background: linear-gradient(135deg, rgba(242, 107, 31, 0.12), rgba(200, 153, 94, 0.08));
  border: 1px solid rgba(242, 107, 31, 0.22);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--amber);
  margin-bottom: 18px;
}
.feature-icon svg { width: 22px; height: 22px; }
.feature-card h4 {
  margin-bottom: 8px;
  font-size: 1.1rem;
  color: var(--navy);
}
.feature-card p {
  font-size: 0.92rem;
  color: var(--steel);
  margin: 0;
  line-height: 1.55;
}

@media (max-width: 980px) {
  .feature-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  .feature-grid { grid-template-columns: 1fr; }
}

/* MTU split section */
.mtu-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.mtu-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 40px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.mtu-card h3 { color: var(--navy); margin-bottom: 20px; }
.mtu-card ul { list-style: none; padding: 0; }
.mtu-card li {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 12px 0; border-bottom: 1px solid var(--border);
}
.mtu-card li:last-child { border-bottom: none; }
.mtu-card li svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--amber); margin-top: 2px; }

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

/* ============================================================
   SKIP-TO-CONTENT LINK (accessibility — WCAG 2.4.1)
   ============================================================ */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--navy);
  color: var(--paper);
  padding: 8px 16px;
  text-decoration: none;
  z-index: 1000;
  font-weight: 600;
}
.skip-link:focus {
  top: 0;
}

/* =========================================================
   RESPONSIVE POLISH PASS — web dev audit
   Adds responsive media queries for iPad / tablet / phone.
   Desktop layout intentionally left UNCHANGED — only smaller
   viewports get tightened spacing & stacked grids.
   Loaded LAST so these rules cascade over earlier defaults.
   ========================================================= */

/* ---- iPad / Small laptop (1024px and below) ---- */
@media (max-width: 1024px) {
  .container { padding-left: 24px; padding-right: 24px; }
  h1 { font-size: clamp(2rem, 5vw, 3rem); }
}

/* ---- Tablet portrait / phone landscape (820px and below) ---- */
@media (max-width: 820px) {
  .page-hero h1 { font-size: clamp(1.85rem, 5.5vw, 2.5rem); }
  .page-hero p { font-size: 1.02rem; max-width: 100%; }
  .about-intro { grid-template-columns: 1fr !important; gap: 28px; }
  .about-intro-left { position: static !important; }
  .stats-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 24px 16px !important; }
  .stat-cell { border-left: none !important; padding-left: 0 !important; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}

/* ---- Phone (640px and below) ---- */
@media (max-width: 640px) {
  .container { padding-left: 18px; padding-right: 18px; }
  .page-hero h1 { font-size: clamp(1.6rem, 7vw, 2.05rem); line-height: 1.18; }
  .page-hero p { font-size: 0.96rem; line-height: 1.5; }
  .breadcrumb { margin-bottom: 16px; font-size: 0.76rem; }
  .meta-row { gap: 8px; }
  .meta-item { font-size: 0.78rem; padding: 6px 10px; }
  /* Stack only the standard grid layouts on phone */
  .services-grid, .range-grid, .footer-grid { grid-template-columns: 1fr !important; gap: 14px !important; }
  .stats-grid { grid-template-columns: 1fr 1fr !important; gap: 20px 12px !important; }
  .stat-cell { padding: 0 !important; }
  /* Touch targets */
  .btn, button, .nav-cta, .nav a { min-height: 44px; }
  .menu-toggle { padding: 10px; }
  .header { padding: 14px 0; }
  /* Heritage stamp on hero — shrink for small viewports */
  .heritage-stamp { width: 96px !important; height: 96px !important; right: 16px !important; bottom: 16px !important; }
  .heritage-stamp .year { font-size: 1.6rem !important; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

/* ---- Tiny phones (380px and below) ---- */
@media (max-width: 380px) {
  .container { padding-left: 14px; padding-right: 14px; }
  .stats-grid { grid-template-columns: 1fr !important; }
  h1 { font-size: 1.5rem; }
  body { font-size: 14px; }
}

/* ---- Touch devices — disable hover transforms ---- */
@media (hover: none) and (pointer: coarse) {
  [class*="-card"]:hover, .card:hover { transform: none; }
}

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

/* ---- Universal image sizing & overflow guard ---- */
img, picture, picture img { max-width: 100%; height: auto; }
html, body { overflow-x: hidden; }

/* =============================================================
   Cookie consent banner — slide-up bar at bottom-left
   ============================================================= */
#nw-cookie-bar {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  max-width: 640px;
  background: var(--paper, #fff);
  color: var(--steel, #2c3e50);
  border: 1px solid var(--border, #e3e6ea);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(11, 28, 52, 0.18);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.92rem;
  line-height: 1.55;
  padding: 18px 22px;
  z-index: 9999;
  transform: translateY(140%);
  opacity: 0;
  transition: transform 0.32s cubic-bezier(0.2, 0.8, 0.2, 1),
              opacity 0.32s ease;
}
#nw-cookie-bar.is-shown {
  transform: translateY(0);
  opacity: 1;
}
#nw-cookie-bar.is-leaving {
  transform: translateY(140%);
  opacity: 0;
}
#nw-cookie-bar .nw-cb-inner {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
#nw-cookie-bar .nw-cb-text {
  font-size: 0.9rem;
  color: var(--steel, #2c3e50);
}
#nw-cookie-bar .nw-cb-text strong {
  color: var(--navy, #0b1c34);
  font-weight: 600;
}
#nw-cookie-bar .nw-cb-text a {
  color: var(--amber-dark, #b48400);
  text-decoration: underline;
}
#nw-cookie-bar .nw-cb-buttons {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
}
#nw-cookie-bar button {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.86rem;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s ease;
}
#nw-cookie-bar .nw-cb-decline {
  background: transparent;
  color: var(--steel, #2c3e50);
  border-color: var(--border, #cdd2d8);
}
#nw-cookie-bar .nw-cb-decline:hover {
  background: var(--cream, #f6f3ee);
  border-color: var(--steel, #2c3e50);
}
#nw-cookie-bar .nw-cb-accept {
  background: var(--navy, #0b1c34);
  color: var(--paper, #fff);
  border-color: var(--navy, #0b1c34);
}
#nw-cookie-bar .nw-cb-accept:hover {
  background: var(--amber-dark, #b48400);
  border-color: var(--amber-dark, #b48400);
}
@media (min-width: 720px) {
  #nw-cookie-bar .nw-cb-inner {
    flex-direction: row;
    align-items: center;
    gap: 22px;
  }
  #nw-cookie-bar .nw-cb-text { flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
  #nw-cookie-bar { transition: none; }
}
