/* ============================================================
   MULTI-PAGE COMPONENTS — used by pages built in scripts/build.js
   Relies on the tokens defined in style.css
   ============================================================ */
.main-nav a[aria-current="page"] { color: var(--near-black); box-shadow: inset 0 -2px 0 var(--near-black); }
a.btn-service-more { text-decoration: none; }

/* Page hero */
.page-hero {
  position: relative; color: var(--white); overflow: hidden;
  background: var(--dark-section) var(--hero-img) center / cover no-repeat;
  padding: clamp(4rem, 10vw, 7.5rem) 16px clamp(3.5rem, 8vw, 6rem);
}
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(10,10,10,.88) 0%, rgba(10,10,10,.65) 55%, rgba(10,10,10,.45) 100%);
}
.page-hero-inner { position: relative; max-width: 1180px; margin: 0 auto; }
.page-hero h1 { color: var(--white); font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.12; max-width: 20ch; margin: .6rem 0 1rem; }
.page-hero .section-label { color: rgba(255,255,255,.6); border-left-color: rgba(255,255,255,.35); }
.page-hero-sub { max-width: 60ch; color: rgba(255,255,255,.78); font-size: 1.08rem; margin-bottom: 1.8rem; }
.page-hero .hero-ctas { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: flex-start; }
.breadcrumb { font-size: .8rem; color: rgba(255,255,255,.6); margin-bottom: 1.2rem; }
.breadcrumb a { color: rgba(255,255,255,.85); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span[aria-hidden] { margin: 0 .35rem; opacity: .5; }

/* Content sections */
.content-section { padding: clamp(3.5rem, 8vw, 6rem) 16px; background: var(--cream); }
.content-section.alt { background: var(--white); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.content-inner { max-width: 1180px; margin: 0 auto; }
.content-inner.narrow { max-width: 820px; }
.content-inner.split { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.split-img { margin: 0; position: sticky; top: calc(var(--nav-height) + 24px); }
.split-img img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; box-shadow: var(--shadow-md); }
.prose h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 1rem; }
.prose h3, .sub-heading { font-size: 1.25rem; margin: 2.2rem 0 1rem; }
.prose p { margin-bottom: 1rem; color: var(--gray-warm); }
.prose p.lead, .lead { font-size: 1.15rem; color: var(--near-black); line-height: 1.7; }
.content-section .section-heading { font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: 1.6rem; }

.check-list { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .6rem 1.4rem; }
.check-list li { position: relative; padding-left: 1.8rem; font-weight: 600; }
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: .3rem;
  width: 1.15rem; height: 1.15rem; border-radius: 50%;
  display: grid; place-items: center; font-size: .7rem;
  color: var(--white); background: var(--near-black);
}

/* Process steps */
.process { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.process li { counter-increment: step; background: var(--cream); border: 1px solid var(--border); padding: 1.6rem 1.4rem; display: flex; flex-direction: column; gap: .5rem; }
.content-section:not(.alt) .process li { background: var(--white); }
.process li::before { content: counter(step, decimal-leading-zero); font-family: var(--font-heading); font-size: 1.8rem; color: var(--gray-light); line-height: 1; }
.process strong { font-size: 1.05rem; }
.process span { color: var(--gray-warm); font-size: .95rem; }

/* FAQ */
.faq { border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary { cursor: pointer; list-style: none; padding: 1.15rem 2.5rem 1.15rem 0; font-weight: 700; font-size: 1.05rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .4rem; top: 50%; transform: translateY(-50%); font-size: 1.5rem; font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 0 1.2rem; color: var(--gray-warm); max-width: 70ch; }

/* Cards */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.4rem; }
.link-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--border); text-decoration: none; color: inherit; transition: transform var(--transition), box-shadow var(--transition); }
.link-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.link-card-img { aspect-ratio: 16 / 10; background: var(--sand) center / cover; }
.link-card-body { padding: 1.3rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.link-card-body strong { font-family: var(--font-heading); font-size: 1.25rem; }
.link-card-body span { color: var(--gray-warm); font-size: .95rem; flex: 1; }
.link-card-body em { font-style: normal; font-weight: 700; font-size: .85rem; letter-spacing: .04em; }

.area-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1rem; margin-top: 2rem; }
.area-card { display: flex; flex-direction: column; gap: .3rem; padding: 1.3rem 1.4rem; background: var(--white); border: 1px solid var(--border); text-decoration: none; color: inherit; transition: border-color var(--transition), transform var(--transition); }
.area-card:hover { border-color: var(--near-black); transform: translateY(-2px); }
.area-card strong { font-family: var(--font-heading); font-size: 1.2rem; }
.area-card span { color: var(--gray-warm); font-size: .85rem; }

.chip-list { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0 .5rem; }
.chip-list a, .chip-list span { padding: .45rem .95rem; border: 1px solid var(--border); background: var(--white); font-size: .88rem; font-weight: 600; color: var(--near-black); text-decoration: none; }
.chip-list a:hover { background: var(--near-black); color: var(--white); border-color: var(--near-black); }

/* CTA band */
.cta-band { background: var(--near-black); color: var(--white); padding: clamp(3rem, 7vw, 4.5rem) 16px; }
.cta-band-inner { max-width: 1180px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.cta-band h2 { color: var(--white); font-size: clamp(1.5rem, 3vw, 2.2rem); margin-bottom: .4rem; }
.cta-band p { color: rgba(255,255,255,.65); max-width: 55ch; }
.cta-band-actions { display: flex; gap: .8rem; flex-wrap: wrap; }
.cta-band .btn-primary { background: var(--white); color: var(--near-black); }

.section-more { text-align: center; margin-top: 2.5rem; padding: 0 16px; }
.btn-outline-dark { display: inline-flex; padding: .9rem 1.8rem; border: 1px solid var(--near-black); color: var(--near-black); font-weight: 700; font-size: .88rem; text-decoration: none; letter-spacing: .03em; transition: background var(--transition), color var(--transition); }
.btn-outline-dark:hover { background: var(--near-black); color: var(--white); }

@media (max-width: 900px) {
  .content-inner.split { grid-template-columns: 1fr; }
  .split-img { position: static; order: -1; }
  .split-img img { aspect-ratio: 16 / 10; }
  .process { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .process { grid-template-columns: 1fr; }
  .cta-band-actions, .page-hero .hero-ctas { width: 100%; }
  .cta-band-actions > *, .page-hero .hero-ctas > * { flex: 1 1 100%; justify-content: center; }
}

/* Areas */
.region-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1rem; }
.region-card { background: var(--white); border: 1px solid var(--border); padding: 1.3rem 1.4rem; }
.content-section:not(.alt) .region-card { background: var(--white); }
.region-card-title { display: block; font-family: var(--font-heading); font-size: 1.2rem; font-weight: 700; color: var(--near-black); text-decoration: none; margin-bottom: .6rem; }
.region-card-title:hover { text-decoration: underline; }
.region-card-links { display: flex; flex-wrap: wrap; gap: .25rem .9rem; }
.region-card-links a { font-size: .88rem; color: var(--gray-warm); text-decoration: none; }
.region-card-links a:hover { color: var(--near-black); text-decoration: underline; }
.region-block { margin-bottom: 2.2rem; }
.region-block .sub-heading { margin: 0 0 .4rem; }
.region-block .sub-heading a { color: var(--near-black); text-decoration: none; }
.region-block .sub-heading a:hover { text-decoration: underline; }
.contact-areas { font-size: .88rem; color: var(--near-black); }
.contact-areas a, .about-text p a, .feature-card p a, .prose p a { color: var(--near-black); text-decoration: underline; text-underline-offset: 2px; }
.hero-sub a { color: inherit; text-decoration: underline; text-decoration-color: rgba(255,255,255,.45); text-underline-offset: 3px; }
.hero-sub a:hover { text-decoration-color: currentColor; }
.service-card h3 a, .service-card-img-link { color: inherit; text-decoration: none; display: block; }
.service-card h3 a:hover { text-decoration: underline; }
