/* Service page-specific layout and components.
   Builds on _shared.css tokens (--teal, --navy, --serif, etc.) */

/* Force nav to be opaque on subpages (no hero video behind it).
   _shared.css already handles position:fixed + z-index. We override the
   transparent default and white link colors that were designed for
   overlaying the dark hero video on index.html. */
body #nav { background: #fff !important; border-bottom: 1px solid var(--border); }
body #nav.scrolled { background: #fff !important; box-shadow: 0 2px 12px rgba(11,34,64,.08); }
body #nav .nav-links > li > a { color: var(--navy); }
body #nav .nav-links > li > a:hover { color: var(--teal); background: var(--teal-lt); }
body #nav .nav-hamburger span { background: var(--navy); }
/* emergency bar stays visible always on subpages since nav never turns dark */
body #nav.scrolled .emergency-bar { display: block; }
/* Offset hero so pinned nav doesn't cover the breadcrumb */
.service-hero { padding-top: 220px; }

/* ═══ SERVICE HERO ═══ */
.service-hero {
  padding: 140px 0 80px;
  background:
    radial-gradient(ellipse at 80% 20%, rgba(13,158,143,.08) 0%, transparent 50%),
    radial-gradient(ellipse at 10% 80%, rgba(11,34,64,.04) 0%, transparent 50%),
    linear-gradient(180deg, #f9fafb 0%, #ffffff 100%);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.service-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(11,34,64,.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(11,34,64,.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at top right, #000 0%, transparent 60%);
  -webkit-mask-image: radial-gradient(ellipse at top right, #000 0%, transparent 60%);
  pointer-events: none;
}
.service-hero .container {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 80px;
  align-items: center;
}
.service-hero-text .breadcrumb {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 24px;
}
.service-hero-text .breadcrumb a { color: var(--muted); }
.service-hero-text .breadcrumb a:hover { color: var(--teal); }
.service-hero-text .breadcrumb .sep { margin: 0 10px; opacity: .5; }
.service-hero-text .service-code-large {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 18px;
  display: inline-flex; align-items: center; gap: 10px;
}
.service-hero-text .service-code-large::before {
  content: '';
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--teal);
}
.service-hero-text h1 {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 5vw, 3.5rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -.015em;
  color: var(--navy);
  margin-bottom: 20px;
}
.service-hero-text .lead {
  font-size: 1.15rem;
  line-height: 1.6;
  color: #3e5a73;
  margin-bottom: 32px;
  max-width: 540px;
}
.service-hero-ctas {
  display: flex; gap: 14px; flex-wrap: wrap;
  margin-bottom: 32px;
}
.service-hero-meta {
  display: flex; gap: 36px; flex-wrap: wrap;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}
.service-hero-meta div {
  font-family: var(--sans);
}
.service-hero-meta .meta-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.service-hero-meta .meta-value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
}
.service-hero-visual {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: 20px;
  background:
    radial-gradient(ellipse at 30% 25%, rgba(13,158,143,.15) 0%, transparent 55%),
    linear-gradient(180deg, #f1f5f4 0%, #ffffff 100%);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.service-hero-visual::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(11,34,64,.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(11,34,64,.04) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
}
.service-hero-visual svg {
  width: 55%;
  color: var(--teal);
  position: relative; z-index: 1;
  stroke-width: 1;
}
.service-hero-visual .hv-corner {
  position: absolute;
  font-family: var(--sans);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--muted);
}
.service-hero-visual .hv-corner.tl { top: 20px; left: 20px; }
.service-hero-visual .hv-corner.tr { top: 20px; right: 20px; color: var(--teal); }
.service-hero-visual .hv-corner.bl { bottom: 20px; left: 20px; }
.service-hero-visual .hv-corner.br { bottom: 20px; right: 20px; }

@media(max-width: 900px) {
  .service-hero { padding: 100px 0 60px; }
  .service-hero .container { grid-template-columns: 1fr; gap: 48px; }
  .service-hero-visual { max-width: 400px; margin: 0 auto; width: 100%; }
}

/* ═══ BODY SECTIONS ═══ */
.service-body-section { padding: 90px 0; border-bottom: 1px solid var(--border); }
.service-body-section:last-of-type { border-bottom: 0; }
.service-body-section .container { max-width: 1100px; }

.service-body-section h2 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -.01em;
  color: var(--navy);
  margin-bottom: 20px;
}
.service-body-section .section-label {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 14px;
  display: inline-flex; align-items: center; gap: 10px;
}
.service-body-section .section-label::before {
  content: '';
  width: 24px; height: 1px; background: var(--teal);
}
.service-body-section p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: #3e5a73;
  margin-bottom: 1.2em;
}
.service-body-section p:last-child { margin-bottom: 0; }

/* Two-column text layout */
.service-cols {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 60px;
}
.service-cols .col-side {
  position: sticky; top: 120px;
  align-self: start;
}
@media(max-width: 900px) {
  .service-body-section { padding: 60px 0; }
  .service-cols { grid-template-columns: 1fr; gap: 28px; }
  .service-cols .col-side { position: static; }
}

/* ═══ FEATURE GRID ═══ */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.feature-card {
  padding: 28px 24px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--white);
  transition: border-color .3s, transform .3s;
}
.feature-card:hover { border-color: var(--teal); transform: translateY(-2px); }
.feature-card .f-num {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: .14em;
  color: var(--teal);
  margin-bottom: 14px;
}
.feature-card h4 {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 10px;
}
.feature-card p { font-size: 0.92rem; line-height: 1.6; color: #4a6278; margin: 0; }
@media(max-width: 900px) { .feature-grid { grid-template-columns: 1fr; } }

/* ═══ PROCESS STEPS ═══ */
.process-list {
  margin-top: 36px;
  display: grid;
  gap: 0;
}
.process-step {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 28px;
  padding: 28px 0;
  border-top: 1px solid var(--border);
}
.process-step:last-child { border-bottom: 1px solid var(--border); }
.process-step .step-num {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 400;
  color: var(--teal);
  line-height: 1;
  padding-top: 4px;
}
.process-step h4 {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 8px;
}
.process-step p { font-size: 0.98rem; line-height: 1.65; color: #4a6278; margin: 0; }
.process-step .step-meta {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 10px;
}

/* ═══ PRICING CARD ═══ */
.pricing-section { background: var(--offwhite, #f9fafb); }
.pricing-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px;
  max-width: 700px;
  margin: 40px 0 0;
}
.pricing-card .pricing-eyebrow {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 12px;
}
.pricing-card h3 {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 18px;
}
.pricing-table {
  display: grid;
  gap: 0;
  margin-bottom: 20px;
}
.pricing-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  align-items: baseline;
}
.pricing-row:last-child { border-bottom: 1px solid var(--border); }
.pricing-label {
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--navy);
}
.pricing-sub {
  font-size: 0.82rem;
  color: var(--muted);
  display: block;
  margin-top: 3px;
  font-family: var(--sans);
}
.pricing-amount {
  font-family: var(--sans);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--navy);
  white-space: nowrap;
}
.pricing-note {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.6;
  padding-top: 16px;
  border-top: 1px dashed var(--border);
}

/* ═══ FAQ ACCORDION ═══ */
.faq-list {
  margin-top: 40px;
  max-width: 820px;
}
.faq-item {
  border-top: 1px solid var(--border);
  padding: 24px 0;
  cursor: pointer;
  transition: padding .2s;
}
.faq-item:last-child { border-bottom: 1px solid var(--border); }
.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--navy);
  line-height: 1.35;
}
.faq-q::after {
  content: '+';
  font-family: var(--sans);
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--teal);
  line-height: 1;
  flex-shrink: 0;
  transition: transform .3s;
}
.faq-item.open .faq-q::after { content: '–'; }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s var(--ease-out), margin-top .3s;
  font-size: 1rem;
  line-height: 1.7;
  color: #4a6278;
}
.faq-item.open .faq-a {
  max-height: 600px;
  margin-top: 14px;
}

/* ═══ RELATED SERVICES ═══ */
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}
.related-card {
  display: block;
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: border-color .3s, transform .3s;
}
.related-card:hover { border-color: var(--teal); transform: translateY(-2px); }
.related-card .r-code {
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 10px;
}
.related-card h4 {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 8px;
}
.related-card p { font-size: 0.9rem; color: #4a6278; line-height: 1.55; margin: 0 0 14px; }
.related-card .r-arrow {
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--teal);
}
@media(max-width: 900px) { .related-grid { grid-template-columns: 1fr; } }

/* ═══ FINAL CTA BAND ═══ */
.final-cta {
  background: var(--navy);
  color: #fff;
  padding: 100px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.final-cta::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(13,158,143,.25) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 70%, rgba(13,158,143,.15) 0%, transparent 50%);
}
.final-cta > * { position: relative; z-index: 1; }
.final-cta .label {
  color: rgba(255,255,255,.6);
  margin-bottom: 20px;
}
.final-cta h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 500;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 20px;
  max-width: 780px;
  margin-left: auto; margin-right: auto;
}
.final-cta p {
  font-size: 1.1rem;
  color: rgba(255,255,255,.75);
  max-width: 600px;
  margin: 0 auto 36px;
  line-height: 1.65;
}
.final-cta-buttons {
  display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
}
.final-cta .btn-outline-light {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,.3);
}
.final-cta .btn-outline-light:hover {
  border-color: #fff;
  background: rgba(255,255,255,.08);
}

/* ═══ BULLET LIST ═══ */
.svc-bullets {
  list-style: none;
  padding: 0;
  margin: 24px 0;
  display: grid;
  gap: 14px;
}
.svc-bullets li {
  padding-left: 28px;
  position: relative;
  font-size: 1rem;
  line-height: 1.65;
  color: #3e5a73;
}
.svc-bullets li::before {
  content: '';
  position: absolute;
  left: 0; top: 10px;
  width: 14px; height: 1px;
  background: var(--teal);
}

/* ═══ PULL QUOTE ═══ */
.pull-quote {
  margin: 40px 0;
  padding: 32px 40px;
  border-left: 3px solid var(--teal);
  background: var(--offwhite, #f9fafb);
}
.pull-quote p {
  font-family: var(--serif);
  font-size: 1.25rem;
  line-height: 1.5;
  color: var(--navy);
  margin: 0 0 12px;
  font-style: italic;
}
.pull-quote cite {
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  font-style: normal;
}
