/* ================================================================
   TUBULAR SERVICES LLC — v2 (logo-led, conservative)
   Navy primary palette · Open Sans · clean professional B2B
   ================================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Open Sans', system-ui, -apple-system, Segoe UI, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul, ol { list-style: none; }

:root {
  /* Color — navy from the existing logo */
  --navy: #1a3a5c;
  --navy-deep: #0e2742;
  --navy-soft: #2c5277;
  --steel: #4a6783;
  --steel-light: #8a9bad;
  --bg: #ffffff;
  --bg-alt: #f5f7fa;
  --bg-soft: #eef2f7;
  --line: #d8dfe7;
  --text: #2a3441;
  --text-soft: #5a6878;
  --accent: #c0392b;
  --accent-deep: #962d23;
  
  --serif: Georgia, 'Times New Roman', serif;
  --sans: 'Open Sans', system-ui, -apple-system, Segoe UI, sans-serif;
  
  --container: 1200px;
  --container-wide: 1320px;
  --gutter: clamp(20px, 4vw, 40px);
  --section-y: clamp(60px, 8vw, 100px);
  
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

h1, h2, h3, h4, h5 {
  font-family: var(--sans);
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
  letter-spacing: -0.005em;
}
h1 { font-size: clamp(32px, 4.5vw, 48px); }
h2 { font-size: clamp(26px, 3.5vw, 36px); margin-bottom: 16px; }
h3 { font-size: clamp(20px, 2.2vw, 24px); margin-bottom: 12px; }
h4 { font-size: 17px; margin-bottom: 8px; }

.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-block;
  margin-bottom: 12px;
}
.lead {
  font-size: clamp(17px, 1.6vw, 19px);
  line-height: 1.55;
  color: var(--text);
  max-width: 720px;
}
p { color: var(--text); margin-bottom: 16px; }
.muted { color: var(--text-soft); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container-wide { max-width: var(--container-wide); margin: 0 auto; padding: 0 var(--gutter); }
section { position: relative; }
.section { padding: var(--section-y) 0; }
.section-tight { padding: clamp(40px, 6vw, 64px) 0; }
.section-alt { background: var(--bg-alt); }

/* Utility bar */
.utility-bar {
  background: var(--navy-deep);
  color: #ffffff;
  font-size: 13px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.utility-bar-inner {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 8px var(--gutter);
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 24px;
}
.utility-bar a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #ffffff;
  opacity: 0.9;
  transition: opacity 200ms var(--ease);
}
.utility-bar a:hover { opacity: 1; color: #ffffff; }
.utility-bar svg { width: 13px; height: 13px; flex-shrink: 0; opacity: 0.8; }
@media (max-width: 720px) { .utility-bar { display: none; } }

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.header-inner {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 16px var(--gutter);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-logo {
  width: 48px;
  height: 48px;
  display: block;
  flex-shrink: 0;
  border-radius: 4px;
}
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text strong {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 18px;
  color: var(--navy);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.brand-text span {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--steel);
  margin-top: 4px;
  text-transform: uppercase;
}

.nav { display: flex; justify-content: center; gap: 4px; }
.nav a {
  font-size: 14px;
  font-weight: 600;
  padding: 12px 14px;
  color: var(--navy);
  position: relative;
  transition: color 200ms var(--ease);
}
.nav a::after {
  content: '';
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 8px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 250ms var(--ease);
}
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); }
.nav a:hover { color: var(--navy-deep); }

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: var(--accent);
  color: #ffffff;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-radius: 3px;
  transition: background 200ms var(--ease);
  text-transform: uppercase;
}
.header-cta:hover { background: var(--accent-deep); color: #ffffff; }
.header-cta svg { width: 14px; height: 14px; }

.burger { display: none; width: 40px; height: 40px; align-items: center; justify-content: center; }
.burger span { display: block; width: 24px; height: 2px; background: var(--navy); position: relative; }
.burger span::before, .burger span::after {
  content: '';
  position: absolute;
  left: 0;
  width: 24px;
  height: 2px;
  background: var(--navy);
}
.burger span::before { top: -7px; }
.burger span::after { top: 7px; }

@media (max-width: 1024px) {
  .nav { display: none; }
  .burger { display: flex; }
  .header-inner { grid-template-columns: auto 1fr auto auto; }
}
@media (max-width: 600px) {
  .header-cta span { display: none; }
  .header-cta { padding: 10px 12px; }
  /* brand-text span removed — LLC line no longer in header */
}

/* Mobile drawer */
.mobile-drawer {
  position: fixed; inset: 0;
  background: var(--navy-deep);
  color: #ffffff;
  z-index: 200;
  padding: 80px var(--gutter) 40px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 300ms var(--ease);
}
.mobile-drawer.is-open { transform: translateX(0); }
.mobile-drawer .close {
  position: absolute; top: 20px; right: var(--gutter);
  width: 40px; height: 40px;
  color: #ffffff;
  font-size: 28px;
  display: grid; place-items: center;
}
.mobile-drawer ul { display: flex; flex-direction: column; gap: 0; }
.mobile-drawer ul a {
  display: block;
  padding: 18px 0;
  font-size: 18px;
  font-weight: 600;
  color: #ffffff;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.mobile-drawer .util-section {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.mobile-drawer .util-section a {
  font-size: 14px;
  border: 0;
  padding: 12px 0;
  color: rgba(255,255,255,0.85);
}

/* Hero */
.hero {
  position: relative;
  min-height: clamp(520px, 75vh, 720px);
  background: var(--navy-deep);
  color: #ffffff;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.hero-video { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-video::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(14,39,66,0.7) 0%, rgba(14,39,66,0.65) 100%);
  z-index: 2;
  pointer-events: none;
}
.hero-video video, .hero-video .hero-poster {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 1;
}
.hero-poster {
  background: linear-gradient(135deg, #0e2742 0%, #1a3a5c 50%, #2c5277 100%);
}
.hero-poster::after {
  content: '';
  position: absolute; inset: 0;
  background-image:
    radial-gradient(ellipse at 70% 50%, rgba(192, 57, 43, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse at 30% 70%, rgba(44, 82, 119, 0.4) 0%, transparent 60%);
}

/* Animated facility slideshow — Ken Burns crossfade, no JS */
.hero-slideshow {
  position: absolute; inset: 0;
  z-index: 1;
  overflow: hidden;
}
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  animation: heroSlideCycle 30s infinite;
  will-change: opacity, transform;
}
/* 5 slides × 6s each = 30s cycle. Each slide fades in, holds, fades out, crossfading 1s with the next. */
.hero-slide:nth-child(1) { animation-delay:  0s; }
.hero-slide:nth-child(2) { animation-delay:  6s; }
.hero-slide:nth-child(3) { animation-delay: 12s; }
.hero-slide:nth-child(4) { animation-delay: 18s; }
.hero-slide:nth-child(5) { animation-delay: 24s; }

@keyframes heroSlideCycle {
  0%   { opacity: 0; transform: scale(1.06); }
  3%   { opacity: 1; }
  20%  { opacity: 1; transform: scale(1.00); }
  23%  { opacity: 0; }
  100% { opacity: 0; transform: scale(1.00); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide { animation: none; opacity: 1; transform: none; }
  .hero-slide:not(:first-child) { display: none; }
}

/* Real <video> backdrop layered on top of the slideshow.
   Hidden by default — JS reveals it only after the `playing` event fires,
   so a missing source file leaves the animated slideshow visible. */
.hero-bg-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 2;            /* above slideshow */
  background: transparent;
  pointer-events: none;  /* never steal clicks from the hero CTAs */
  opacity: 0;
  transition: opacity 600ms var(--ease);
}
.hero-bg-video.is-playing { opacity: 1; }
/* Push the dark overlay above the video too */
.hero-video::before { z-index: 3 !important; }
.hero-inner          { z-index: 4 !important; }
.hero-inner {
  position: relative;
  z-index: 3;
  max-width: var(--container);
  margin: 0 auto;
  padding: 60px var(--gutter);
  width: 100%;
}
.hero-eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 20px;
  opacity: 0.9;
  display: inline-block;
}
.hero h1 {
  font-family: var(--sans);
  font-size: clamp(36px, 5.5vw, 56px);
  line-height: 1.1;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 24px;
  max-width: 22ch;
  letter-spacing: -0.01em;
}
.hero p.lead {
  color: rgba(255,255,255,0.92);
  max-width: 640px;
  margin-bottom: 32px;
  font-size: clamp(16px, 1.5vw, 18px);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Page banner */
.banner {
  background: var(--navy-deep);
  color: #ffffff;
  padding: clamp(48px, 7vw, 80px) 0;
  border-bottom: 4px solid var(--accent);
}
.banner-inner { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.banner .eyebrow { color: #ffffff; opacity: 0.85; margin-bottom: 12px; }
.banner h1 {
  font-family: var(--sans);
  font-size: clamp(32px, 4.5vw, 48px);
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 16px;
  max-width: 24ch;
  letter-spacing: -0.005em;
}
.banner p.lead { color: rgba(255,255,255,0.92); max-width: 720px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 3px;
  transition: all 200ms var(--ease);
  white-space: nowrap;
  text-decoration: none;
}
.btn-primary { background: var(--accent); color: #ffffff; }
.btn-primary:hover { background: var(--accent-deep); color: #ffffff; }
.btn-primary svg { width: 14px; height: 14px; }
.btn-navy { background: var(--navy); color: #ffffff; }
.btn-navy:hover { background: var(--navy-deep); color: #ffffff; }
.btn-ghost {
  background: transparent;
  color: #ffffff;
  border: 2px solid rgba(255,255,255,0.7);
}
.btn-ghost:hover {
  border-color: #ffffff;
  background: rgba(255,255,255,0.1);
  color: #ffffff;
}
.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
}
.btn-outline:hover { background: var(--navy); color: #ffffff; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
  transition: border-color 200ms var(--ease), color 200ms var(--ease);
}
.text-link:hover { border-bottom-color: var(--accent); color: var(--accent-deep); }

/* External partner link — clearly clickable inline link */
.partner-link {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.partner-link::after {
  content: ' ↗';
  font-size: 0.8em;
  font-weight: 400;
  opacity: 0.75;
}
.partner-link:hover {
  color: var(--accent-deep);
}

/* Stat strip */
.stat-strip {
  background: var(--navy);
  color: #ffffff;
  padding: 48px 0;
}
.stat-grid {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.stat {
  text-align: center;
  padding: 0 16px;
  border-left: 1px solid rgba(255,255,255,0.15);
}
.stat:first-child { border-left: 0; }
.stat-num {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(36px, 4vw, 48px);
  line-height: 1;
  color: #ffffff;
  margin-bottom: 8px;
}
.stat-label {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  line-height: 1.4;
}
@media (max-width: 760px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); gap: 32px 0; }
  .stat { padding: 0; }
  .stat:nth-child(odd) { border-left: 0; }
  .stat:nth-child(3) { border-left: 1px solid rgba(255,255,255,0.15); }
}

/* Section header */
.section-head {
  margin-bottom: 40px;
  text-align: center;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.section-head .eyebrow { display: block; }
.section-head h2 { margin-bottom: 12px; }
.section-head p { color: var(--text-soft); font-size: 17px; }

/* Capability cards */
.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.capability-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--navy);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: box-shadow 250ms var(--ease), transform 250ms var(--ease), border-top-color 250ms var(--ease);
  text-decoration: none;
  color: var(--text);
}
.capability-card:hover {
  box-shadow: 0 8px 24px rgba(14, 39, 66, 0.1);
  transform: translateY(-2px);
  border-top-color: var(--accent);
}
.capability-card h3 { margin-bottom: 8px; color: var(--navy); }
.capability-card p { color: var(--text-soft); margin-bottom: 16px; flex-grow: 1; font-size: 15px; }
.capability-card .specs {
  font-size: 13px;
  color: var(--steel);
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.capability-card .specs strong { color: var(--navy); font-weight: 700; }
.capability-card .arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 8px;
}
@media (max-width: 760px) {
  .capabilities-grid { grid-template-columns: 1fr; }
}

/* Capability matrix */
.matrix-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 4px;
}
.matrix { width: 100%; border-collapse: collapse; }
.matrix thead th {
  text-align: left;
  background: var(--navy);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 14px 20px;
  text-transform: uppercase;
}
.matrix tbody td {
  padding: 16px 20px;
  font-size: 14px;
  color: var(--text);
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.matrix tbody tr:last-child td { border-bottom: 0; }
.matrix tbody tr:nth-child(even) td { background: var(--bg-alt); }
.matrix tbody tr:hover td { background: var(--bg-soft); }
.matrix .service { font-weight: 700; color: var(--navy); }

/* Community band */
.community-band {
  background: var(--bg-alt);
  padding: var(--section-y) 0;
}
.community-band-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.community-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0;
}
.community-pill {
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--navy);
}
.community-band .image-placeholder {
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
  display: grid;
  place-items: center;
  color: rgba(255,255,255,0.7);
  text-align: center;
  padding: 24px;
}
.community-band .image-placeholder .ph-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-bottom: 12px;
}
.community-band .image-placeholder .ph-text {
  font-size: 18px;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
}
@media (max-width: 900px) {
  .community-band-inner { grid-template-columns: 1fr; gap: 32px; }
}
/* Community band image (home page) */
.community-band .page-image {
  aspect-ratio: 4/3;
}


/* Closing band */
.closing-band {
  background: var(--navy);
  color: #ffffff;
  padding: var(--section-y) 0;
  text-align: center;
}
.closing-band h2 { color: #ffffff; margin-bottom: 16px; }
.closing-band p {
  max-width: 600px;
  margin: 0 auto 32px;
  color: rgba(255,255,255,0.92);
  font-size: 17px;
}
.closing-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Prose */
.prose { max-width: 760px; }
.prose-wide { max-width: 880px; }
.prose h2, .prose-wide h2 {
  margin-top: 48px;
  margin-bottom: 16px;
  font-size: clamp(22px, 2.6vw, 28px);
}
.prose h2:first-child, .prose-wide h2:first-child { margin-top: 0; }
.prose h3, .prose-wide h3 {
  font-size: 17px;
  font-weight: 700;
  margin-top: 32px;
  margin-bottom: 10px;
  color: var(--navy);
}
.prose p, .prose-wide p {
  margin-bottom: 16px;
  font-size: 16px;
  line-height: 1.65;
}
.prose ul, .prose-wide ul { margin-bottom: 20px; padding-left: 0; }
.prose ul li, .prose-wide ul li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
  font-size: 16px;
  line-height: 1.6;
}
.prose ul li::before, .prose-wide ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 11px;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
}
.prose strong, .prose-wide strong { font-weight: 700; color: var(--navy); }
.prose .pullquote, .prose-wide .pullquote {
  margin: 36px 0;
  padding: 24px 0 24px 28px;
  border-left: 4px solid var(--accent);
  font-size: 19px;
  line-height: 1.5;
  color: var(--navy);
  font-weight: 600;
  font-style: italic;
}

.spec-card {
  background: var(--bg-alt);
  padding: 28px;
  margin: 32px 0;
  border-left: 4px solid var(--accent);
  border-radius: 0 4px 4px 0;
}
.spec-card .spec-title {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  font-weight: 700;
}
.spec-card .spec-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 32px;
}
.spec-card .spec-list dt {
  font-size: 12px;
  color: var(--text-soft);
  margin-bottom: 4px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.spec-card .spec-list dd {
  font-size: 17px;
  color: var(--navy);
  font-weight: 700;
  margin: 0;
}
@media (max-width: 600px) {
  .spec-card .spec-list { grid-template-columns: 1fr; }
}

/* Two-column content layout */
.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 60px;
}
.content-aside {
  border-left: 1px solid var(--line);
  padding-left: 32px;
  position: sticky;
  top: 100px;
  align-self: start;
}
.content-aside h4 {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-soft);
  font-weight: 700;
  margin-bottom: 16px;
}
.content-aside ul li a {
  display: block;
  padding: 10px 0;
  font-size: 14px;
  color: var(--text);
  border-bottom: 1px solid var(--line);
  transition: color 200ms var(--ease);
}
.content-aside ul li:last-child a { border-bottom: 0; }
.content-aside ul li a:hover { color: var(--accent); }
@media (max-width: 1024px) {
  .content-grid { grid-template-columns: 1fr; gap: 40px; }
  .content-aside {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-left: 0;
    padding-top: 24px;
    position: static;
  }
}

/* Facility cards */
.facility {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-bottom: 64px;
  padding-bottom: 64px;
  border-bottom: 1px solid var(--line);
  align-items: center;
}
.facility:last-child { border-bottom: 0; padding-bottom: 0; }
.facility:nth-child(even) .facility-img { order: 2; }
.facility-img {
  position: relative;
  aspect-ratio: 4/3;
  background: var(--bg-alt);
  overflow: hidden;
  border: 1px solid var(--line);
}
.facility-img .placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--steel-light);
}
.facility-img .placeholder .ph-mark {
  font-size: 64px;
  font-weight: 700;
  color: var(--navy);
  opacity: 0.2;
}
.facility-img .img-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--navy);
  color: #ffffff;
  padding: 6px 10px;
  border-radius: 2px;
}
.facility-content .label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.facility-content h2 { margin-bottom: 6px; color: var(--navy); }
.facility-content .city {
  font-size: 14px;
  color: var(--text-soft);
  margin-bottom: 16px;
  font-weight: 600;
}
.facility-content p { font-size: 15px; }
.facility-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: 20px 0;
}
.facility-meta dt {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 4px;
  font-weight: 700;
}
.facility-meta dd {
  font-size: 14px;
  color: var(--text);
  line-height: 1.4;
  font-weight: 600;
}
@media (max-width: 900px) {
  .facility { grid-template-columns: 1fr; gap: 24px; }
  .facility:nth-child(even) .facility-img { order: 0; }
}

/* Community sections */
.community-section {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 32px;
  padding: 40px 0;
  border-top: 1px solid var(--line);
}
.community-section:first-of-type { border-top: 0; }
.community-section .num {
  font-size: 36px;
  line-height: 1;
  color: var(--accent);
  font-weight: 700;
}
.community-section h2 { margin-bottom: 12px; }
.community-section .placeholder-block {
  margin-top: 16px;
  padding: 16px 20px;
  background: var(--bg-alt);
  border-left: 3px solid var(--steel-light);
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.5;
}
.community-section .placeholder-block::before {
  content: 'Programs to feature here';
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 8px;
}
@media (max-width: 760px) {
  .community-section { grid-template-columns: 1fr; gap: 12px; padding: 32px 0; }
  .community-section .num { font-size: 28px; }
}

/* Sponsor / community-feature card with embedded video */
.sponsor-card {
  margin-top: 24px;
  display: grid;
  grid-template-columns: 1fr 267px;
  gap: 28px;
  align-items: start;
  padding: 24px;
  background: var(--bg-alt);
  border-left: 3px solid var(--accent);
  border-radius: 2px;
}
.sponsor-card-text .sponsor-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.sponsor-card-text h3 {
  font-size: 20px;
  margin: 0 0 12px;
  color: var(--navy);
}
.sponsor-card-text p { font-size: 15px; line-height: 1.6; }
.sponsor-card-text p.sponsor-meta {
  margin-top: 16px;
  margin-bottom: 0;
  font-size: 14px;
  color: var(--text-soft);
}
.sponsor-card-video {
  width: 267px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.sponsor-card-video iframe {
  display: block;
  width: 267px;
  height: 476px;
  background: #000;
  border-radius: 4px;
  box-shadow: 0 6px 18px rgba(14,39,66,0.18);
}
.sponsor-card-caption {
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-soft);
  text-align: center;
}
@media (max-width: 720px) {
  .sponsor-card {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 20px;
  }
  .sponsor-card-video { width: 100%; }
  .sponsor-card-video iframe { margin: 0 auto; }
}

/* Gallery */
.gallery-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 40px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--line);
}
.gallery-nav a {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 10px 16px;
  border: 1px solid var(--line);
  color: var(--navy);
  border-radius: 3px;
  transition: all 200ms var(--ease);
  text-transform: uppercase;
}
.gallery-nav a:hover, .gallery-nav a.is-active {
  background: var(--navy);
  color: #ffffff;
  border-color: var(--navy);
}

.gallery-section { margin-bottom: 64px; }
.gallery-section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.gallery-section-head h2 { color: var(--navy); margin-bottom: 0; }
.gallery-section-head .count { font-size: 13px; color: var(--text-soft); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}
.gallery-item {
  aspect-ratio: 4/3;
  background: var(--bg-alt);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--line);
  padding: 0;
  display: block;
  width: 100%;
  transition: transform 250ms var(--ease), box-shadow 250ms var(--ease);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 400ms var(--ease);
}
.gallery-item:hover {
  box-shadow: 0 8px 24px rgba(14,39,66,0.18);
  z-index: 1;
}
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 2px;
}
.gallery-item .placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 12px;
  color: var(--text-soft);
  text-align: center;
  padding: 12px;
  font-weight: 600;
}
.gallery-item .img-num {
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: 11px;
  font-weight: 700;
  background: var(--navy);
  color: #ffffff;
  padding: 4px 8px;
  z-index: 2;
}
.gallery-item .caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(0deg, rgba(14,39,66,0.9) 0%, rgba(14,39,66,0) 100%);
  color: #ffffff;
  padding: 24px 12px 10px;
  font-size: 12px;
  opacity: 0;
  transition: opacity 200ms var(--ease);
  font-weight: 600;
}
.gallery-item:hover .caption { opacity: 1; }
.gallery-item.empty {
  border: 2px dashed var(--line);
  background: transparent;
}
.gallery-item.empty .placeholder {
  color: var(--steel-light);
  font-style: italic;
}
.gallery-cta-block {
  text-align: center;
  padding: 40px 24px;
  background: var(--bg-alt);
  margin-top: 16px;
  border: 2px dashed var(--line);
}
.gallery-cta-block p {
  font-size: 17px;
  color: var(--navy);
  font-weight: 600;
  margin-bottom: 8px;
}

/* Quality */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 24px 0;
}
.cert-tile {
  background: #ffffff;
  border: 1px solid var(--line);
  padding: 24px 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transition: border-color 200ms var(--ease);
}
.cert-tile:hover { border-color: var(--navy); }
.cert-tile .badge {
  width: 56px;
  height: 56px;
  border: 2px solid var(--navy);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 16px;
  color: var(--navy);
  background: var(--bg-alt);
}
.cert-tile h4 { font-size: 14px; color: var(--navy); margin-bottom: 4px; }
.cert-tile p { font-size: 12px; color: var(--text-soft); line-height: 1.4; margin-bottom: 0; }
@media (max-width: 760px) {
  .cert-grid { grid-template-columns: repeat(2, 1fr); }
}

.qc-method {
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 20px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
}
.qc-method:last-child { border-bottom: 1px solid var(--line); }
.qc-method .num {
  font-size: 28px;
  color: var(--accent);
  font-weight: 700;
  line-height: 1;
}
.qc-method h3 { margin-bottom: 12px; }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}
.contact-locations { display: grid; gap: 24px; }
.contact-loc {
  padding: 24px 0;
  border-top: 2px solid var(--navy);
}
.contact-loc:last-child { border-bottom: 1px solid var(--line); }
.contact-loc .label {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
  font-weight: 700;
}
.contact-loc h3 { font-size: 22px; color: var(--navy); margin-bottom: 10px; }
.contact-loc address {
  font-style: normal;
  font-size: 14px;
  color: var(--text-soft);
  margin-bottom: 12px;
  line-height: 1.5;
}
.contact-loc .nums { display: grid; gap: 4px; font-size: 14px; }
.contact-loc .nums dt {
  display: inline-block;
  width: 70px;
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.contact-loc .nums dd {
  display: inline-block;
  margin-left: 0;
  color: var(--navy);
  font-weight: 600;
}
.contact-loc .nums div { margin-bottom: 4px; }
.contact-loc .nums a:hover { color: var(--accent); }

.contact-form {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  padding: 36px;
  border-top: 4px solid var(--accent);
  scroll-margin-top: 90px;
}
.contact-form h2 { color: var(--navy); margin-bottom: 8px; font-size: 26px; }
.contact-form p { color: var(--text-soft); margin-bottom: 24px; font-size: 14px; }
.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 6px;
  font-weight: 700;
}
.field input, .field select, .field textarea {
  width: 100%;
  background: #ffffff;
  border: 1px solid var(--line);
  color: var(--text);
  padding: 10px 12px;
  font-family: var(--sans);
  font-size: 14px;
  outline: none;
  transition: border-color 200ms var(--ease);
  border-radius: 3px;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(26, 58, 92, 0.1);
}
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%231a3a5c'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  padding-right: 32px;
}
.field textarea { min-height: 100px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) {
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .contact-form { padding: 24px; }
}
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* Video tour */
.video-frame {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--navy-deep);
  position: relative;
  margin: 32px 0;
  overflow: hidden;
  border: 1px solid var(--navy);
}
.video-frame .play-poster {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #ffffff;
}
.video-frame .play-btn {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--accent);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 200ms var(--ease), background 200ms var(--ease);
}
.video-frame .play-btn:hover { transform: scale(1.05); background: var(--accent-deep); }
.video-frame .play-btn::after {
  content: '';
  width: 0;
  height: 0;
  border-left: 20px solid #ffffff;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  margin-left: 5px;
}

/* Footer */
.footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.85);
  padding: 60px 0 24px;
}
.footer-inner {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-brand h3 { color: #ffffff; font-size: 22px; margin-bottom: 12px; }
.footer-brand p {
  color: rgba(255,255,255,0.8);
  font-size: 14px;
  max-width: 360px;
  margin-bottom: 20px;
  line-height: 1.5;
}
.footer-cert-strip { display: flex; flex-wrap: wrap; gap: 8px; }
.footer-cert {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 10px;
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.85);
  font-weight: 700;
  border-radius: 2px;
  text-decoration: none;
  display: inline-block;
}
a.footer-cert:hover {
  background: rgba(255,255,255,0.12);
  color: #ffffff;
  border-color: rgba(255,255,255,0.4);
}
.footer-col h4 {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 16px;
  font-weight: 700;
}
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul a {
  font-size: 14px;
  color: rgba(255,255,255,0.8);
  transition: color 200ms var(--ease);
}
.footer-col ul a:hover { color: #ffffff; }

.footer-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: rgba(255,255,255,0.6);
}
.footer-bottom a:hover { color: #ffffff; }

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ================================================================
   PAGE IMAGES (compact, side-by-side preferred)
   ================================================================ */

/* Base image figure — small, neat */
.page-image {
  position: relative;
  overflow: hidden;
  background: var(--navy-deep);
  border: 1px solid var(--line);
  border-radius: 4px;
  margin: 0;
}
.page-image img,
.page-image svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.page-image .caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 8px 12px;
  background: linear-gradient(0deg, rgba(14,39,66,0.92) 0%, rgba(14,39,66,0) 100%);
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
  pointer-events: none;
}

/* Side-by-side: image right, content left (default).
   This is the PREFERRED pattern — heading + first paragraph visible immediately,
   image alongside provides context without pushing content down. */
.intro-with-image {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 40px;
  align-items: start;
  margin-bottom: 32px;
}
.intro-with-image .page-image {
  aspect-ratio: 4/3;
  position: sticky;
  top: 100px;
}
.intro-with-image.reverse {
  grid-template-columns: 360px minmax(0, 1fr);
}
.intro-with-image .intro-content > *:first-child {
  margin-top: 0;
}

/* Section-level intro: heading + lead paragraph next to image */
.section-intro {
  margin-bottom: 24px;
}
.section-intro h2 { margin-top: 0; }

@media (max-width: 900px) {
  .intro-with-image,
  .intro-with-image.reverse {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .intro-with-image .page-image {
    aspect-ratio: 16/9;
    position: static;
    max-width: 480px;
  }
}

/* Compact inline image — for use within prose, sized small */
.image-inline-small {
  max-width: 320px;
  aspect-ratio: 4/3;
  margin: 12px 0 24px;
  float: right;
  margin-left: 24px;
}
@media (max-width: 600px) {
  .image-inline-small {
    float: none;
    margin: 16px 0;
    max-width: 100%;
  }
}

/* Thumbnail row — for facility/service overview rows */
.image-thumb {
  aspect-ratio: 4/3;
  max-width: 100%;
}



.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ================================================================
   LIGHTBOX — full-screen image viewer with prev/next navigation
   ================================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(8, 18, 32, 0.94);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px 80px;
  opacity: 0;
  transition: opacity 200ms var(--ease);
}
.lightbox.is-open {
  display: flex;
  opacity: 1;
}
.lightbox-figure {
  max-width: 100%;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
}
.lightbox-img {
  max-width: 100%;
  max-height: calc(100vh - 140px);
  width: auto;
  height: auto;
  display: block;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  background: #111;
  user-select: none;
  -webkit-user-drag: none;
}
.lightbox-img.is-loading { opacity: 0.35; }
.lightbox-caption {
  margin-top: 16px;
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  max-width: 800px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.6);
}
.lightbox-counter {
  position: absolute;
  top: 20px;
  left: 24px;
  color: rgba(255,255,255,0.75);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: #ffffff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 180ms var(--ease), transform 180ms var(--ease);
  z-index: 2;
}
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255,255,255,0.18);
  transform: scale(1.05);
}
.lightbox-close:focus-visible,
.lightbox-prev:focus-visible,
.lightbox-next:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}
.lightbox-close {
  top: 16px;
  right: 16px;
  font-size: 28px;
  line-height: 1;
}
.lightbox-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 16px; top: 50%; transform: translateY(-50%); }
.lightbox-prev:hover { transform: translateY(-50%) scale(1.05); }
.lightbox-next:hover { transform: translateY(-50%) scale(1.05); }
.lightbox-prev svg,
.lightbox-next svg { width: 22px; height: 22px; }
.lightbox.at-start .lightbox-prev,
.lightbox.at-end .lightbox-next {
  opacity: 0.3;
  pointer-events: none;
}
body.lb-locked { overflow: hidden; }

@media (max-width: 700px) {
  .lightbox { padding: 20px 8px; }
  .lightbox-prev, .lightbox-next { width: 40px; height: 40px; }
  .lightbox-prev { left: 6px; }
  .lightbox-next { right: 6px; }
  .lightbox-close { top: 8px; right: 8px; width: 40px; height: 40px; font-size: 24px; }
  .lightbox-counter { top: 14px; left: 14px; font-size: 11px; }
  .lightbox-img { max-height: calc(100vh - 110px); }
  .lightbox-caption { font-size: 13px; }
}
