/* ==========================================================================
   EAST COAST IGNITE — GLOBAL STYLESHEET
   Modern industrial design system: navy / steel grey / white with a
   controlled red accent. Built mobile-first, enhanced upward.
   Fonts: Barlow Condensed (headings) + Inter (body) via Google Fonts.
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  /* Brand colour system */
  --navy-950: #070f1e;
  --navy-900: #0c1a2e;
  --navy-800: #11243d;
  --navy-700: #16304f;
  --steel-700: #3b4652;
  --steel-500: #64707c;
  --steel-300: #a3adb6;
  --steel-200: #c7cdd3;
  --steel-100: #e3e7ea;
  --grey-50: #f7f8f9;
  --grey-100: #eef0f2;
  --white: #ffffff;
  --red-600: #c31f2a;
  --red-700: #9e1620;
  --red-050: #fbe9ea;

  /* Semantic */
  --bg-body: var(--white);
  --text-primary: var(--navy-900);
  --text-muted: var(--steel-500);
  --text-on-dark: #eef1f4;
  --text-on-dark-muted: #a9b4bf;
  --border-light: var(--steel-100);

  /* Type */
  --font-head: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Layout */
  --container-max: 1280px;
  --radius-sm: 2px;
  --radius-md: 4px;
  --header-h: 84px;
  --header-h-mobile: 68px;

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Icon system ----------
   Defensive baseline: every inline functional icon carries a fallback
   width/height="20" HTML attribute (see markup), and this rule caps any
   icon at 48px even if a more specific class/context rule is ever
   missing — so a missing selector can never blow an icon up to fill the
   page. Context-specific rules further down the file size icons more
   precisely (18–26px) and take priority once loaded. Reusable size
   utilities are available for any new icon markup. */
svg { max-width: 3rem; max-height: 3rem; flex-shrink: 0; vertical-align: middle; }
.icon, .icon-sm, .icon-md, .icon-lg { display: inline-block; vertical-align: middle; flex-shrink: 0; }
.icon, .icon-sm { width: 1.125rem; height: 1.125rem; } /* ~18px */
.icon-md { width: 1.5rem; height: 1.5rem; } /* ~24px */
.icon-lg { width: 2rem; height: 2rem; } /* ~32px */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg-body);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 1rem; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.08; margin: 0 0 0.5em; letter-spacing: 0.01em; text-transform: uppercase; color: var(--navy-900); }
p { margin: 0 0 1em; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
:focus-visible { outline: 3px solid var(--red-600); outline-offset: 2px; }

/* Skip link */
.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--red-600); color: #fff;
  padding: 12px 20px; z-index: 10000; font-weight: 600;
}
.skip-link:focus { left: 0; }

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}
@media (min-width: 768px) { .container { padding: 0 40px; } }

section { position: relative; }
.section { padding: 72px 0; }
.section-tight { padding: 48px 0; }
@media (min-width: 900px) {
  .section { padding: 108px 0; }
  .section-tight { padding: 64px 0; }
}

.section-head { max-width: 760px; margin-bottom: 40px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
@media (min-width: 900px) { .section-head { margin-bottom: 56px; } }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.82rem;
  color: var(--red-600);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 28px; height: 2px;
  background: var(--red-600);
  display: inline-block;
}

h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 4.4vw, 2.9rem); }
h3 { font-size: clamp(1.3rem, 2.6vw, 1.6rem); }
h4 { font-size: 1.1rem; letter-spacing: 0.06em; }
.lede { font-size: clamp(1.02rem, 1.6vw, 1.2rem); color: var(--text-muted); max-width: 640px; }

.bg-navy { background: var(--navy-900); color: var(--text-on-dark); }
.bg-navy h1, .bg-navy h2, .bg-navy h3, .bg-navy h4 { color: #fff; }
.bg-navy .lede { color: var(--text-on-dark-muted); }
.bg-steel { background: var(--grey-50); }
.bg-white { background: var(--white); }

.text-center { text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.95rem;
  padding: 16px 30px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  transition: transform 0.18s var(--ease), background-color 0.18s var(--ease), color 0.18s var(--ease), border-color 0.18s var(--ease);
  min-height: 48px;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--red-600); color: #fff; border-color: var(--red-600); }
.btn-primary:hover { background: var(--red-700); border-color: var(--red-700); }
.btn-secondary { background: transparent; color: var(--navy-900); border-color: var(--navy-900); }
.btn-secondary:hover { background: var(--navy-900); color: #fff; }
.btn-on-dark { background: transparent; color: #fff; border-color: rgba(255,255,255,0.55); }
.btn-on-dark:hover { background: #fff; color: var(--navy-900); border-color: #fff; }
.btn-white { background: #fff; color: var(--navy-900); border-color: #fff; }
.btn-white:hover { background: transparent; color: #fff; border-color: #fff; }
.btn-block { width: 100%; }
.btn-sm { padding: 11px 20px; font-size: 0.85rem; min-height: 40px; }
.cta-group { display: flex; flex-wrap: wrap; gap: 14px; }
@media (max-width: 420px) {
  /* Longer button labels (e.g. "Discuss Your Fabrication Job") can exceed the
     smallest phone widths under the default nowrap — let them wrap onto a
     second line here instead of overflowing the viewport horizontally. */
  .cta-group .btn { white-space: normal; text-align: center; }
}

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-weight: 700; letter-spacing: 0.05em;
  text-transform: uppercase; font-size: 0.88rem; color: var(--navy-900);
  border-bottom: 2px solid var(--red-600); padding-bottom: 3px;
  transition: gap 0.18s var(--ease), color .18s var(--ease);
}
.link-arrow:hover { gap: 13px; color: var(--red-600); }
.link-arrow svg { width: 16px; height: 16px; flex-shrink: 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(255,255,255,0.97);
  border-bottom: 1px solid var(--border-light);
  backdrop-filter: saturate(180%) blur(6px);
  transition: box-shadow 0.25s var(--ease);
}
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(7,15,30,0.10); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: var(--header-h-mobile);
}
@media (min-width: 1080px) { .header-inner { height: var(--header-h); } }

.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand img { height: 36px; width: auto; }
@media (min-width: 1080px) { .brand img { height: 44px; } }

.main-nav { display: none; }
@media (min-width: 1080px) {
  .main-nav { display: flex; align-items: center; gap: 2px; }
  .main-nav a {
    font-family: var(--font-head);
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 0.95rem;
    white-space: nowrap;
    padding: 10px 12px;
    color: var(--navy-800);
    border-bottom: 2px solid transparent;
    transition: color .18s var(--ease), border-color .18s var(--ease);
  }
  .main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--red-600); border-color: var(--red-600); }
}

.header-actions { display: flex; align-items: center; gap: 10px; }
.header-cta { display: none; }
@media (min-width: 1080px) { .header-cta { display: inline-flex; } }
.header-call {
  display: none;
  align-items: center; gap: 8px;
  font-family: var(--font-head); font-weight: 700; letter-spacing: 0.04em;
  color: var(--navy-900); font-size: 0.95rem;
  white-space: nowrap;
}
@media (min-width: 1300px) { .header-call { display: inline-flex; } }
.header-call svg { width: 18px; height: 18px; color: var(--red-600); }

.nav-toggle {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 46px; height: 46px;
  background: var(--navy-900);
  border: none; border-radius: var(--radius-sm);
  flex-shrink: 0;
}
@media (min-width: 1080px) { .nav-toggle { display: none; } }
.nav-toggle svg { width: 22px; height: 22px; color: #fff; }

/* Mobile nav drawer */
.mobile-nav {
  position: fixed; inset: 0; z-index: 1000;
  background: var(--navy-950);
  transform: translateX(100%);
  transition: transform 0.32s var(--ease);
  display: flex; flex-direction: column;
  overflow-y: auto;
}
.mobile-nav.is-open { transform: translateX(0); }
.mobile-nav-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px; border-bottom: 1px solid rgba(255,255,255,0.1);
  height: var(--header-h-mobile);
}
.mobile-nav-top img { height: 36px; width: auto; }
.mobile-nav-close {
  width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.08); border: none; border-radius: var(--radius-sm);
}
.mobile-nav-close svg { width: 20px; height: 20px; color: #fff; }
.mobile-nav-links { padding: 20px 24px; display: flex; flex-direction: column; }
.mobile-nav-links a {
  font-family: var(--font-head); font-size: 1.6rem; font-weight: 700;
  color: #fff; padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,0.09);
  text-transform: uppercase; letter-spacing: 0.02em;
}
.mobile-nav-links a[aria-current="page"] { color: var(--red-600); }
.mobile-nav-cta { padding: 8px 24px 32px; display: flex; flex-direction: column; gap: 12px; margin-top: auto; }
.mobile-nav-cta .btn { width: 100%; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 78vh;
  background-color: var(--navy-950);
}
.hero.hero-tall { min-height: 88vh; }
.hero-media {
  position: absolute; inset: 0; z-index: 0;
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
/* On very narrow mobile viewports, .hero's wide aspect ratio crops the image
   horizontally to a centered strip. hero-about.webp's technician sits left-of-
   centre in the source photo, so keep him in frame on phones. Has no visible
   effect at desktop widths, where the wide banner already shows full width. */
.hero-media img.obj-pos-left { object-position: 23% center; }
.hero-media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(7,15,30,0.55) 0%, rgba(7,15,30,0.68) 45%, rgba(7,15,30,0.94) 100%),
              linear-gradient(90deg, rgba(7,15,30,0.85) 0%, rgba(7,15,30,0.25) 60%);
}
/* Quieter banner treatment for supporting pages (Thank You, Privacy Policy) —
   same reused imagery, but a heavier overlay keeps these pages calmer and
   more understated than the main service pages. */
.hero-quiet .hero-media::after {
  background: linear-gradient(180deg, rgba(7,15,30,0.72) 0%, rgba(7,15,30,0.82) 45%, rgba(7,15,30,0.96) 100%),
              linear-gradient(90deg, rgba(7,15,30,0.92) 0%, rgba(7,15,30,0.55) 60%);
}
.hero-content {
  position: relative; z-index: 1;
  padding: 64px 0 56px;
  width: 100%;
}
@media (min-width: 900px) { .hero-content { padding: 90px 0 76px; } }
.hero-content .container { max-width: var(--container-max); }
.hero-body { max-width: 760px; }
.hero-body h1 { color: #fff; }
.hero-body p.lede { color: var(--text-on-dark-muted); }
.hero .eyebrow { color: #ffffff; }
.hero .eyebrow::before { background: var(--red-600); }

.hero-strip {
  position: relative; z-index: 1;
  background: rgba(7,15,30,0.92);
  border-top: 1px solid rgba(255,255,255,0.12);
}
.hero-strip .container { display: flex; flex-wrap: wrap; gap: 4px 0; }
.hero-strip-item {
  flex: 1 1 25%;
  min-width: 140px;
  padding: 16px 18px;
  border-right: 1px solid rgba(255,255,255,0.1);
  font-family: var(--font-head); font-weight: 700; letter-spacing: 0.08em;
  font-size: 0.95rem; color: #fff; text-transform: uppercase;
  display: flex; align-items: center; gap: 10px;
}
.hero-strip-item:last-child { border-right: none; }
.hero-strip-item .dot { width: 7px; height: 7px; background: var(--red-600); border-radius: 50%; flex-shrink: 0; }

/* Secondary page hero (shorter) */
.page-hero { min-height: 52vh; }
.page-hero .hero-content { padding: 72px 0 60px; }

/* ---------- Breadcrumb-style page kicker on inner pages ---------- */
.page-crumb { font-size: 0.85rem; color: var(--text-on-dark-muted); margin-bottom: 18px; }
.page-crumb a { border-bottom: 1px solid rgba(255,255,255,0.4); }
.page-crumb a:hover { color: #fff; }

/* ---------- Intro / split section ---------- */
.split {
  display: grid;
  gap: 40px;
  align-items: center;
}
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; gap: 64px; }
  .split.reverse .split-media { order: 2; }
}
.split-media { position: relative; }
.split-media img { border-radius: var(--radius-md); width: 100%; }
.split-media .frame-mark {
  position: absolute; bottom: -14px; left: -14px;
  width: 64px; height: 64px;
  border-left: 3px solid var(--red-600);
  border-bottom: 3px solid var(--red-600);
  display: none;
}
@media (min-width: 700px) { .split-media .frame-mark { display: block; } }

/* ---------- Value / feature grid ---------- */
.grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }

.feature {
  background: #fff;
  border: 1px solid var(--border-light);
  padding: 30px 26px;
  border-radius: var(--radius-md);
}
.feature .num {
  font-family: var(--font-head); font-weight: 700; font-size: 1rem;
  color: var(--red-600); letter-spacing: 0.08em; margin-bottom: 10px; display: block;
}
.feature h3 { margin-bottom: 10px; text-transform: none; font-size: 1.15rem; }
.feature p { color: var(--text-muted); margin: 0; font-size: 0.96rem; }

/* ---------- Service cards ---------- */
.service-card {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color .25s var(--ease);
}
.service-card:hover { transform: translateY(-5px); box-shadow: 0 20px 40px rgba(7,15,30,0.12); border-color: transparent; }
.service-card-media { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--navy-900); }
.service-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.service-card:hover .service-card-media img { transform: scale(1.06); }
.service-card-number {
  position: absolute; top: 14px; left: 14px;
  background: var(--red-600); color: #fff;
  font-family: var(--font-head); font-weight: 700; font-size: 0.9rem;
  padding: 4px 11px; letter-spacing: 0.05em;
}
.service-card-body { padding: 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.service-card-body h3 { font-size: 1.2rem; margin-bottom: 0; text-transform: none; }
.service-card-body p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 4px; flex: 1; }

/* ---------- Service feature tile (fabrication promo artwork) ---------- */
.service-feature {
  display: block;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--navy-950);
  border: 1px solid var(--navy-950);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.service-feature:hover { transform: translateY(-5px); box-shadow: 0 20px 40px rgba(7,15,30,0.12); }
.service-feature img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.5s var(--ease);
}
.service-feature:hover img { transform: scale(1.03); }
@media (min-width: 900px) {
  .service-feature { height: 100%; }
  .service-feature img { height: 100%; object-fit: contain; }
}

/* ---------- Fabrication feature artwork (full display on the Fabrication page) ---------- */
.fabrication-feature-wrap {
  max-width: 460px;
  margin: 0 auto;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 24px 48px rgba(7,15,30,0.16);
}
.fabrication-feature-wrap img { display: block; width: 100%; height: auto; }

/* ---------- Project cards ---------- */
.project-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--navy-900);
}
.project-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.project-card:hover img { transform: scale(1.07); }
.project-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(7,15,30,0) 40%, rgba(7,15,30,0.92) 100%);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 22px;
}
.project-card-tag {
  align-self: flex-start;
  background: var(--red-600); color: #fff; font-family: var(--font-head);
  font-weight: 700; font-size: 0.78rem; letter-spacing: 0.06em;
  padding: 4px 10px; margin-bottom: 10px; text-transform: uppercase;
}
.project-card h3 { color: #fff; font-size: 1.15rem; margin-bottom: 0; text-transform: none; }

/* Detailed project block (Projects & Capabilities page) */
.project-detail {
  background: #fff; border: 1px solid var(--border-light); border-radius: var(--radius-md);
  overflow: hidden; display: grid; gap: 0;
}
@media (min-width: 900px) { .project-detail { grid-template-columns: 1fr 1fr; } }
.project-detail-media { position: relative; }
.project-detail-media img { width: 100%; height: 100%; object-fit: cover; min-height: 260px; }
.project-detail-body { padding: 32px; }
.project-detail-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.chip {
  font-family: var(--font-head); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.05em;
  text-transform: uppercase; background: var(--grey-100); color: var(--navy-800);
  padding: 5px 12px; border-radius: 2px;
}
.project-detail-row { margin-bottom: 14px; }
.project-detail-row h4 { font-size: 0.82rem; letter-spacing: 0.1em; color: var(--red-600); margin-bottom: 6px; text-transform: uppercase; }
.project-detail-row p { color: var(--text-muted); margin: 0; }
.placeholder-note {
  font-size: 0.88rem; color: var(--steel-500); background: var(--grey-100);
  border-left: 3px solid var(--red-600); padding: 10px 14px; margin: 0;
}

/* ---------- Capability strip / grid ---------- */
.capability-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 1px; background: var(--border-light); border: 1px solid var(--border-light); }
@media (min-width: 700px) { .capability-grid { grid-template-columns: repeat(3,1fr); } }
@media (min-width: 1000px) { .capability-grid { grid-template-columns: repeat(6,1fr); } }
.capability-item {
  background: #fff; padding: 26px 16px; text-align: center;
  font-family: var(--font-head); font-weight: 700; letter-spacing: 0.04em;
  font-size: 0.95rem; text-transform: uppercase; color: var(--navy-800);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.capability-item:hover { background: var(--navy-900); color: #fff; }
.capability-item svg { width: 26px; height: 26px; color: var(--red-600); }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: var(--navy-950);
  color: #fff;
  padding: 64px 0;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.7), transparent);
}
@media (min-width: 900px) { .cta-banner { padding: 92px 0; } }
.cta-banner .container { position: relative; z-index: 1; }
.cta-banner-inner { max-width: 780px; }
.cta-banner h2 { color: #fff; }
.cta-banner p.lede { color: var(--text-on-dark-muted); }

/* ---------- Forms ---------- */
.form-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 620px) { .form-grid.cols-2 { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label {
  font-family: var(--font-head); font-weight: 700; font-size: 0.85rem;
  letter-spacing: 0.04em; text-transform: uppercase; color: var(--navy-800);
}
.field .required { color: var(--red-600); }
.field input[type="text"],
.field input[type="tel"],
.field input[type="email"],
.field select,
.field textarea,
.field input[type="file"] {
  border: 1.5px solid var(--steel-200);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 1rem;
  background: #fff;
  color: var(--text-primary);
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
  min-height: 50px;
  width: 100%;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--navy-800); box-shadow: 0 0 0 3px rgba(17,36,61,0.12);
}
.field-hint { font-size: 0.84rem; color: var(--text-muted); }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%2364707c'%3E%3Cpath d='M5.23 7.21a.75.75 0 011.06.02L10 10.94l3.71-3.71a.75.75 0 111.06 1.06l-4.24 4.25a.75.75 0 01-1.06 0L5.21 8.29a.75.75 0 01.02-1.08z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; background-size: 16px; padding-right: 44px; }

.field-other { display: none; }
.field-other.is-visible { display: flex; }

.checkbox-field { display: flex; align-items: flex-start; gap: 12px; }
.checkbox-field input[type="checkbox"] {
  width: 22px; height: 22px; flex-shrink: 0; margin-top: 2px;
  accent-color: var(--red-600);
}
.checkbox-field label { font-family: var(--font-body); text-transform: none; font-weight: 400; font-size: 0.92rem; letter-spacing: normal; color: var(--text-muted); }
.checkbox-field a { color: var(--navy-900); border-bottom: 1px solid var(--navy-900); font-weight: 600; }

/* Honeypot - hidden from real users, present for bots */
.hp-field { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-status {
  display: none;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  margin-bottom: 20px;
}
.form-status.is-visible { display: block; }
.form-status.error { background: var(--red-050); color: var(--red-700); border: 1px solid #f0b7bb; }
.form-status.success { background: #e8f3ec; color: #205c37; border: 1px solid #b8ddc4; }

.form-card {
  background: #fff; border: 1px solid var(--border-light); border-radius: var(--radius-md);
  padding: 28px 22px;
}
@media (min-width: 700px) { .form-card { padding: 40px; } }

/* Contact info card */
.contact-info-list { display: flex; flex-direction: column; gap: 22px; margin: 28px 0; }
.contact-info-item { display: flex; gap: 16px; align-items: flex-start; }
.contact-info-item .icon {
  width: 46px; height: 46px; flex-shrink: 0; border-radius: var(--radius-sm);
  background: var(--navy-900); display: flex; align-items: center; justify-content: center;
}
.contact-info-item .icon svg { width: 21px; height: 21px; color: #fff; }
.contact-info-item h4 { font-size: 0.82rem; letter-spacing: 0.09em; margin-bottom: 4px; text-transform: uppercase; color: var(--text-muted); }
.contact-info-item p { margin: 0; font-weight: 600; color: var(--navy-900); }
.contact-info-item .tbc { font-weight: 500; color: var(--text-muted); font-style: italic; }

/* ---------- To-confirm placeholder tag (content, not images) ---------- */
.tbc-box {
  background: var(--grey-100);
  border: 1px dashed var(--steel-300);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  font-size: 0.92rem;
  color: var(--steel-700);
}
.tbc-box strong { color: var(--navy-900); }
.tbc-list { display: grid; gap: 8px; margin-top: 10px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .tbc-list { grid-template-columns: 1fr 1fr; } }
.tbc-list li { font-size: 0.9rem; padding-left: 18px; position: relative; }
.tbc-list li::before { content: "—"; position: absolute; left: 0; color: var(--red-600); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: var(--text-on-dark-muted); }
.footer-main { padding: 64px 0 40px; }
.footer-grid { display: grid; gap: 40px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; } }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer-col h4 {
  color: #fff; font-size: 0.85rem; letter-spacing: 0.1em; margin-bottom: 18px;
}
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand-name { font-family: var(--font-head); font-weight: 700; font-size: 1.3rem; color: #fff; letter-spacing: 0.03em; }
/* Footer logo panel — supplied artwork has an opaque white background, so it
   sits on a small white card rather than directly on the navy footer. Kept
   compact (v1.9) per client feedback that the earlier size was too large. */
.footer-logo-panel {
  display: inline-block; background: #fff; padding: 12px 14px;
  border-radius: var(--radius-sm); line-height: 0; transition: opacity .18s var(--ease);
}
.footer-logo-panel:hover { opacity: 0.88; }
.footer-logo-panel img { display: block; width: 175px; max-width: 100%; height: auto; }
@media (max-width: 999px) { .footer-logo-panel img { width: 160px; } }
@media (max-width: 699px) { .footer-logo-panel img { width: 150px; } }
.footer-col p { font-size: 0.92rem; line-height: 1.7; }
.footer-links a { display: block; padding: 6px 0; font-size: 0.92rem; transition: color .18s var(--ease); }
.footer-links a:hover { color: #fff; }
.footer-contact li { padding: 6px 0; font-size: 0.92rem; }
.footer-contact .label { display: block; font-size: 0.76rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--steel-500); margin-top: 10px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 22px 0;
}
.footer-bottom .container {
  display: flex; flex-direction: column; gap: 10px; align-items: center; text-align: center;
  font-size: 0.85rem;
}
@media (min-width: 700px) { .footer-bottom .container { flex-direction: row; justify-content: space-between; text-align: left; } }
.footer-bottom a { color: var(--text-on-dark-muted); border-bottom: 1px solid transparent; }
.footer-bottom a:hover { color: #fff; border-color: #fff; }
.powered-by { display: inline-flex; align-items: center; gap: 6px; }
.powered-by strong { color: #d7dce1; font-weight: 600; }
.powered-by a { color: #ff8890; font-weight: 700; }

/* ---------- Mobile sticky action bar ---------- */
.mobile-action-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 800;
  display: grid; grid-template-columns: 1fr 1fr;
  background: var(--navy-950);
  border-top: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 -6px 20px rgba(0,0,0,0.25);
}
@media (min-width: 900px) { .mobile-action-bar { display: none; } }
.mobile-action-bar a {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px 10px;
  font-family: var(--font-head); font-weight: 700; letter-spacing: 0.05em;
  text-transform: uppercase; font-size: 0.9rem; color: #fff;
}
.mobile-action-bar a svg { width: 18px; height: 18px; }
.mobile-action-bar a.bar-quote { background: var(--red-600); }
body.has-sticky-bar { padding-bottom: 60px; }
@media (min-width: 900px) { body.has-sticky-bar { padding-bottom: 0; } }

/* ---------- 404 ---------- */
.error-page {
  min-height: 70vh; display: flex; align-items: center;
  background: var(--navy-950); color: #fff;
  background-image: linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 44px 44px;
}
.error-page .eyebrow { color: #ffffff; }
.error-page .eyebrow::before { background: var(--red-600); }
.error-code { font-family: var(--font-head); font-weight: 700; font-size: clamp(4rem, 14vw, 8rem); color: var(--red-600); line-height: 1; margin-bottom: 0.1em; }

/* ---------- Reveal-on-scroll animation ----------
   Progressive enhancement: content is fully visible by default so it
   never depends on JavaScript to be seen (no-JS visitors, slow/blocked
   scripts, crawlers). The fade-up animation only applies once main.js
   has confirmed it is running and added "js" to <html>. */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Misc page content (privacy policy etc) ---------- */
.prose { max-width: 820px; }
.prose h2 { margin-top: 2em; font-size: 1.5rem; text-transform: none; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--text-muted); }
.prose ul { margin: 0 0 1.2em; padding-left: 1.2em; list-style: disc; }
.prose li { margin-bottom: 0.4em; }
