/* ==========================================================================
   J. Coble Companies — Shared Brand Design System
   Master copy lives here. When updated, re-copy into:
   jcoblecompanies/css/brand.css, jcobleconstruction/css/brand.css, jcoblematerials/css/brand.css
   ========================================================================== */

:root {
  /* Brand colors — sourced from the actual logo files (Logo's 2026 / Finale-05) */
  --navy-900: #102134;
  --navy-700: #153253;
  --navy-600: #1c3f68;
  --orange-500: #eb6126;
  --orange-600: #d9541c;
  --white: #ffffff;

  /* Neutrals */
  --slate-50: #f7f8f9;
  --slate-100: #eef0f2;
  --slate-200: #dde1e5;
  --slate-400: #97a1ab;
  --slate-600: #414b56;
  --slate-900: #1a2128;

  /* Type */
  --font-display: "Archivo", "Arial Narrow", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing scale (4/8pt rhythm) */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-6: 3rem;
  --space-8: 4rem;
  --space-12: 6rem;
  --space-16: 8rem;

  --radius-sm: 6px;
  --radius-md: 14px;
  --shadow-card: 0 1px 2px rgba(16,33,52,0.04), 0 8px 28px rgba(16, 33, 52, 0.10);
  --shadow-lift: 0 4px 8px rgba(16,33,52,0.08), 0 20px 48px rgba(16, 33, 52, 0.20);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--slate-900);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0 0 var(--space-2);
  color: var(--navy-900);
}

h1 { font-size: clamp(2.75rem, 5.5vw, 4.75rem); }
h2 { font-size: clamp(1.875rem, 3.2vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); letter-spacing: -0.015em; }

p { margin: 0 0 var(--space-2); color: var(--slate-600); }
a { color: inherit; text-decoration: none; }

.eyebrow {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange-500);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: var(--space-2);
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 22px;
  height: 2px;
  background: var(--orange-500);
  border-radius: 1px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: var(--space-3);
  padding-right: var(--space-3);
}

@media (min-width: 768px) {
  .container { padding-left: var(--space-4); padding-right: var(--space-4); }
}

section { padding: var(--space-12) 0; }
@media (max-width: 640px) {
  section { padding: var(--space-8) 0; }
}

.section-alt { background: var(--slate-50); }
.section-dark { background: var(--navy-900); color: var(--white); }
.section-dark h1, .section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark p { color: rgba(255,255,255,0.72); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9375rem;
  letter-spacing: 0.02em;
  padding: 0.95rem 1.85rem;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 220ms cubic-bezier(.2,.8,.2,1), box-shadow 220ms cubic-bezier(.2,.8,.2,1), background-color 200ms ease, border-color 200ms ease, color 200ms ease;
  min-height: 44px;
}
.btn:active { transform: translateY(1px) scale(0.98); }

.btn-primary {
  background: linear-gradient(135deg, var(--orange-500), var(--orange-600));
  color: var(--white);
  box-shadow: 0 2px 4px rgba(217,84,28,0.15), 0 8px 20px rgba(217,84,28,0.28);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 4px 8px rgba(217,84,28,0.2), 0 16px 32px rgba(217,84,28,0.34); }

.btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,0.4);
  color: var(--white);
}
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,0.08); transform: translateY(-2px); }

.btn-outline-dark {
  background: transparent;
  border-color: var(--navy-900);
  color: var(--navy-900);
}
.btn-outline-dark:hover { background: var(--navy-900); color: var(--white); transform: translateY(-2px); box-shadow: var(--shadow-lift); }

/* Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(16, 33, 52, 0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06), 0 8px 30px rgba(0,0,0,0.25);
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 116px;
}
.nav-logo img { height: 104px; width: auto; }
@media (max-width: 480px) { .nav-logo img { height: 76px; } }
.nav-links {
  display: none;
  gap: var(--space-4);
  align-items: center;
}
.nav-links a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.85);
  padding: 0.5rem 0;
  border-bottom: 2px solid transparent;
  transition: color 150ms ease, border-color 150ms ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--white); border-color: var(--orange-500); }
@media (min-width: 900px) {
  .nav-links { display: flex; }
  .nav-toggle { display: none; }
}
.nav-toggle {
  background: none;
  border: none;
  color: var(--white);
  min-width: 44px;
  min-height: 44px;
  cursor: pointer;
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.nav-phone {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--orange-500);
  color: var(--white);
  padding: 0.6rem 0.85rem;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9375rem;
  white-space: nowrap;
  min-height: 44px;
  box-sizing: border-box;
  transition: background 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}
.nav-phone:hover { background: var(--orange-600); transform: translateY(-1px); box-shadow: 0 6px 16px rgba(235,97,38,0.35); }
.nav-phone svg { width: 18px; height: 18px; flex-shrink: 0; }
.nav-phone-text { display: none; }
@media (min-width: 420px) { .nav-phone-text { display: inline; } }
@media (max-width: 419px) { .nav-phone { padding: 0.6rem; } }
.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 0;
  background: var(--navy-700);
  padding: var(--space-2) var(--space-3) var(--space-3);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--white);
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  min-height: 44px;
  display: flex;
  align-items: center;
}
@media (min-width: 900px) { .mobile-menu { display: none !important; } }

/* Footer */
.site-footer {
  background: linear-gradient(180deg, var(--navy-900) 0%, #0b1826 100%);
  color: rgba(255,255,255,0.65);
  padding: var(--space-8) 0 var(--space-4);
}
.site-footer h4 {
  color: var(--white);
  font-size: 0.9375rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: var(--space-2);
}
.site-footer a { color: rgba(255,255,255,0.65); transition: color 150ms ease; }
.site-footer a:hover { color: var(--orange-500); }
.footer-grid {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--space-4); }
}
.footer-bottom {
  margin-top: var(--space-6);
  padding-top: var(--space-3);
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.8125rem;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  justify-content: space-between;
}
.footer-areas {
  margin-top: var(--space-6);
  padding-top: var(--space-4);
  border-top: 1px solid rgba(255,255,255,0.1);
}
.footer-areas h4 {
  color: var(--white);
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: var(--space-2);
  opacity: 0.7;
}
.footer-areas .links { display: flex; flex-wrap: wrap; gap: 0.4rem 1.25rem; }
.footer-areas .links a { font-size: 0.875rem; color: rgba(255,255,255,0.65); }
.footer-areas .links a:hover { color: var(--orange-500); }

/* Ecosystem cross-link banner */
.ecosystem-banner {
  background: var(--navy-700);
  color: var(--white);
  padding: var(--space-3) 0;
}
.ecosystem-banner .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
}
.ecosystem-banner p { color: rgba(255,255,255,0.85); margin: 0; font-size: 0.9375rem; }

/* Cards */
.card {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform 280ms cubic-bezier(.2,.8,.2,1), box-shadow 280ms cubic-bezier(.2,.8,.2,1);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }

.grid { display: grid; gap: var(--space-3); }
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

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

/* Focus visibility */
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--orange-500);
  outline-offset: 2px;
}

/* Marquee ticker */
.ticker {
  background: var(--navy-900);
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  overflow: hidden;
  padding: 0.85rem 0;
}
.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker-scroll 32s linear infinite;
}
.ticker-track span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9375rem;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.55);
  white-space: nowrap;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.ticker-track span::after { content: "\2022"; color: var(--orange-500); }
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
}

/* Numbered list (services / differentiators) */
.numbered-list { display: grid; gap: 0; }
.numbered-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-2);
  margin: 0 calc(var(--space-2) * -1);
  border-bottom: 1px solid var(--slate-200);
  border-radius: var(--radius-sm);
  transition: background-color 220ms ease, padding-left 220ms ease;
}
.numbered-item:first-child { border-top: none; }
.numbered-item:hover { background-color: var(--slate-50); }
.numbered-item.with-media {
  grid-template-columns: auto 88px 1fr;
  align-items: center;
}
.numbered-item.with-media .thumb {
  width: 88px;
  height: 88px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  flex-shrink: 0;
}
.numbered-item.with-media .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 300ms ease;
}
.numbered-item.with-media:hover .thumb img { transform: scale(1.08); }
@media (max-width: 560px) {
  .numbered-item.with-media { grid-template-columns: auto 56px 1fr; gap: var(--space-2); }
  .numbered-item.with-media .thumb { width: 56px; height: 56px; }
}
.numbered-item .num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--orange-500);
  line-height: 1;
  min-width: 3ch;
}
.numbered-item h3 { margin-bottom: 0.4rem; }
.numbered-item p { margin-bottom: 0; }
.numbered-item-link {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--navy-900);
  display: inline-flex;
  gap: 0.4rem;
  margin-top: 0.6rem;
}
.numbered-item-link:hover { color: var(--orange-500); }
.numbered-list.on-dark .numbered-item { border-bottom-color: rgba(255,255,255,0.12); }
.numbered-list.on-dark .numbered-item h3 { color: var(--white); }
.numbered-list.on-dark .numbered-item p { color: rgba(255,255,255,0.7); }
.numbered-list.on-dark .numbered-item-link { color: var(--white); }

/* CTA banner */
.cta-banner {
  background: linear-gradient(115deg, var(--orange-600) 0%, var(--orange-500) 45%, #f0713a 100%);
  color: var(--white);
  padding: var(--space-6) 0;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 85% 20%, rgba(255,255,255,0.16), transparent 55%);
  pointer-events: none;
}
.cta-banner .container {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}
.cta-banner h2 { color: var(--white); margin: 0; font-size: clamp(1.5rem, 3vw, 2.25rem); }
.cta-banner .phone {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--white);
  transition: opacity 200ms ease;
}
.cta-banner .phone:hover { opacity: 0.85; }
.cta-banner .btn-primary { background: var(--navy-900); box-shadow: 0 8px 24px rgba(16,33,52,0.35); }
.cta-banner .btn-primary:hover { background: var(--navy-700); }

/* Animated stat counter (JS toggles .counted) */
.stat-num[data-count] { font-variant-numeric: tabular-nums; }

/* FAQ accordion (native details/summary) */
.faq-item {
  border-bottom: 1px solid var(--slate-200);
}
.faq-item:first-child { border-top: 1px solid var(--slate-200); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.25rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--navy-900);
  min-height: 44px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .faq-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--slate-200);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 200ms ease, background 200ms ease;
}
.faq-item[open] summary .faq-icon { background: var(--orange-500); border-color: var(--orange-500); transform: rotate(45deg); }
.faq-item[open] summary .faq-icon svg { stroke: var(--white); }
.faq-item .faq-answer { padding: 0 0 1.5rem; color: var(--slate-600); max-width: 720px; }

/* Hero */
.hero {
  position: relative;
  background: var(--navy-900);
  color: var(--white);
  min-height: 82vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(16,33,52,0.5) 0%, rgba(16,33,52,0.25) 38%, rgba(10,20,32,0.96) 100%),
    linear-gradient(90deg, rgba(16,33,52,0.55) 0%, rgba(16,33,52,0.05) 55%);
}
.hero-content {
  position: relative;
  z-index: 1;
  padding-bottom: var(--space-8);
  padding-top: var(--space-12);
  max-width: 760px;
}
.hero-content h1 { color: var(--white); }
.hero-content p.lead {
  font-size: 1.125rem;
  color: rgba(255,255,255,0.85);
  max-width: 560px;
}
.hero-actions {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-top: var(--space-3);
}
@media (max-width: 640px) {
  .hero { min-height: 72vh; }
}

/* Stat band */
.stat-band {
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 100%);
  color: var(--white);
  padding: var(--space-8) 0;
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3) 0;
}
@media (min-width: 768px) { .stat-grid { grid-template-columns: repeat(4, 1fr); gap: 0; } }
.stat-item {
  padding: 0 var(--space-3);
  border-left: 1px solid rgba(255,255,255,0.12);
}
.stat-item:first-child { border-left: none; padding-left: 0; }
@media (max-width: 767px) {
  .stat-item { border-left: none; padding: 0; text-align: center; }
  .stat-item:nth-child(3), .stat-item:nth-child(4) {
    padding-top: var(--space-3);
    border-top: 1px solid rgba(255,255,255,0.14);
  }
  .stat-item .stat-label { max-width: 220px; margin: 0 auto; }
}
.stat-item .stat-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  color: var(--orange-500);
  line-height: 1;
  margin-bottom: 0.5rem;
  white-space: nowrap;
}
.stat-item .stat-label {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.02em;
  line-height: 1.4;
}

/* Split panel (image + text) */
.split {
  display: grid;
  gap: var(--space-6);
  align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; gap: var(--space-8); }
  .split.reverse > *:first-child { order: 2; }
}
.split img {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  width: 100%;
  height: auto;
  aspect-ratio: 4/3;
  object-fit: cover;
}

/* Split panel with floating stat badge */
.split-media { position: relative; }

/* Embedded map */
.map-embed {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  aspect-ratio: 4/3;
  border: none;
}
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; filter: grayscale(15%) contrast(1.05); }
.stat-badge {
  position: absolute;
  bottom: -1.5rem;
  right: -1rem;
  background: var(--navy-900);
  color: var(--white);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-lift);
  border: 3px solid var(--white);
  text-align: center;
  min-width: 130px;
}
.stat-badge .stat-badge-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2rem;
  color: var(--orange-500);
  line-height: 1;
  margin-bottom: 0.3rem;
}
.stat-badge .stat-badge-label {
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.8);
  line-height: 1.3;
}
@media (max-width: 480px) {
  .stat-badge { bottom: -1rem; right: -0.5rem; padding: 1rem 1.1rem; min-width: 104px; }
  .stat-badge .stat-badge-num { font-size: 1.5rem; }
}

/* Division / teaser cards */
.division-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  min-height: 420px;
  display: flex;
  align-items: flex-end;
  color: var(--white);
  box-shadow: var(--shadow-card);
}
.division-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms ease;
}
.division-card:hover img { transform: scale(1.04); }
.division-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(16,33,52,0.1) 0%, rgba(16,33,52,0.92) 100%);
}
.division-card-body {
  position: relative;
  z-index: 1;
  padding: var(--space-4);
}
.division-card-body .eyebrow { color: var(--orange-500); }
.division-card-body h3 { color: var(--white); margin-bottom: var(--space-1); }
.division-card-body p { color: rgba(255,255,255,0.82); margin-bottom: var(--space-2); }

/* Service / info cards with icon */
.icon-badge {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: var(--navy-900);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-2);
}
.icon-badge svg { width: 26px; height: 26px; stroke: var(--orange-500); }

/* Service card with full media */
.service-card-media {
  display: block;
  cursor: pointer;
}
.service-media {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}
.service-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms ease;
}
.service-card-media:hover .service-media img { transform: scale(1.06); }
.service-num {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 1;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--white);
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.service-body { padding: 1.5rem; }
.service-body h3 { font-size: 1.125rem; margin-bottom: 0.5rem; }
.service-body p { font-size: 0.9375rem; margin-bottom: 0.75rem; }
.service-body .numbered-item-link { margin-top: 0; color: var(--orange-500); }

/* Photo gallery (masonry via CSS columns) */
.gallery-masonry {
  column-count: 1;
  column-gap: var(--space-3);
}
@media (min-width: 640px) { .gallery-masonry { column-count: 2; } }
@media (min-width: 1000px) { .gallery-masonry { column-count: 3; } }
.gallery-item {
  display: block;
  break-inside: avoid;
  margin-bottom: var(--space-3);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 280ms cubic-bezier(.2,.8,.2,1), box-shadow 280ms cubic-bezier(.2,.8,.2,1);
}
.gallery-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 400ms ease;
}
.gallery-item:hover img { transform: scale(1.04); }

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(10,18,28,0.94);
  align-items: center;
  justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox-figure { position: relative; z-index: 1; max-width: 92vw; max-height: 88vh; display: flex; flex-direction: column; align-items: center; }
.lightbox-figure img { max-width: 92vw; max-height: 80vh; width: auto; height: auto; border-radius: var(--radius-md); box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
.lightbox-counter { color: rgba(255,255,255,0.7); font-size: 0.875rem; margin-top: 0.85rem; font-family: var(--font-display); letter-spacing: 0.04em; }
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: fixed;
  z-index: 2;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  color: #fff;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 150ms ease;
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: rgba(235,97,38,0.85); border-color: transparent; }
.lightbox-close { top: 1.25rem; right: 1.25rem; width: 44px; height: 44px; }
.lightbox-close svg { width: 20px; height: 20px; }
.lightbox-prev, .lightbox-next { top: 50%; transform: translateY(-50%); width: 52px; height: 52px; }
.lightbox-prev { left: 1.25rem; }
.lightbox-next { right: 1.25rem; }
.lightbox-prev svg, .lightbox-next svg { width: 24px; height: 24px; }
@media (max-width: 640px) {
  .lightbox-prev, .lightbox-next { width: 44px; height: 44px; }
  .lightbox-prev { left: 0.5rem; }
  .lightbox-next { right: 0.5rem; }
  .lightbox-close { top: 0.75rem; right: 0.75rem; }
}

/* Simple page hero (no big image, for inner pages) */
.page-hero {
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 130%);
  color: var(--white);
  padding: var(--space-12) 0 var(--space-8);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 90% 0%, rgba(235,97,38,0.14), transparent 50%);
  pointer-events: none;
  z-index: 1;
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { color: var(--white); }
.page-hero p.lead { color: rgba(255,255,255,0.78); max-width: 640px; font-size: 1.0625rem; }

/* Optional darkened background photo behind a page-hero */
.page-hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.page-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.28;
  filter: grayscale(15%);
}
.page-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(16,33,52,0.94) 0%, rgba(21,50,83,0.88) 130%);
}

/* Breadcrumb-ish back link */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--orange-500);
  margin-bottom: var(--space-2);
}

/* Form */
.field { margin-bottom: var(--space-3); }
.field label {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 0.4rem;
  color: var(--navy-900);
}
.field input, .field textarea, .field select {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--slate-200);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  min-height: 44px;
  background: var(--white);
  color: var(--slate-900);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--orange-500);
  box-shadow: 0 0 0 3px rgba(235,97,38,0.15);
}
.field .hint { font-size: 0.8125rem; color: var(--slate-400); margin-top: 0.3rem; }

/* Scroll-reveal (progressive enhancement: reveal-init only ever applied via JS) */
.reveal-init { opacity: 0; transform: translateY(16px); transition: opacity 550ms ease, transform 550ms ease; }
.reveal-in { opacity: 1; transform: translateY(0); }
.grid .reveal-init:nth-child(2) { transition-delay: 90ms; }
.grid .reveal-init:nth-child(3) { transition-delay: 180ms; }
.grid .reveal-init:nth-child(4) { transition-delay: 270ms; }
.numbered-list .reveal-init:nth-child(2) { transition-delay: 90ms; }
.numbered-list .reveal-init:nth-child(3) { transition-delay: 180ms; }
.numbered-list .reveal-init:nth-child(4) { transition-delay: 270ms; }

/* Gallery hover "expand" affordance */
.gallery-item { position: relative; }
.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(16,33,52,0);
  background-image: url('data:image/svg+xml,%3Csvg%20xmlns="http://www.w3.org/2000/svg"%20viewBox="0%200%2024%2024"%20fill="none"%20stroke="white"%20stroke-width="2"%20stroke-linecap="round"%20stroke-linejoin="round"%3E%3Cpolyline%20points="15%203%2021%203%2021%209"/%3E%3Cpolyline%20points="9%2021%203%2021%203%2015"/%3E%3Cline%20x1="21"%20y1="3"%20x2="14"%20y2="10"/%3E%3Cline%20x1="3"%20y1="21"%20x2="10"%20y2="14"/%3E%3C/svg%3E');
  background-repeat: no-repeat;
  background-position: center;
  background-size: 30px;
  opacity: 0;
  transition: opacity 250ms ease, background-color 250ms ease;
  pointer-events: none;
}
.gallery-item:hover::after { opacity: 1; background-color: rgba(16,33,52,0.28); }

/* Reviewer initials badge (avoids restructuring markup: pseudo-element reads data-initials) */
.review-name { display: flex; align-items: center; gap: 0.6rem; }
.review-name[data-initials]::before {
  content: attr(data-initials);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--orange-500);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 800;
}
