/* ===== SUBPAGE STYLES =====
   Loaded only on service, industry and location pages.
   Reuses the variables and components declared in styles.css. */

.subpage { padding-top: var(--nav-height); }

/* Subpages have no dark hero behind the bar, so the nav is always solid. */
.navbar-solid {
    background: var(--white);
    border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}
.navbar-solid .nav-links a { color: var(--dark); }
.navbar-solid .nav-links a.nav-cta { color: var(--white); }
.navbar-solid .nav-toggle span { background: var(--dark); }

/* ===== PAGE HERO ===== */
.page-hero {
    background: linear-gradient(180deg, var(--gray-100) 0%, var(--white) 100%);
    padding: 64px 0 56px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.page-hero h1 {
    font-size: clamp(2rem, 5vw, 3.4rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--black);
    max-width: 18ch;
    margin-bottom: 20px;
}
.page-lead {
    font-size: clamp(1.05rem, 2vw, 1.3rem);
    color: var(--gray-700);
    max-width: 62ch;
    margin-bottom: 32px;
}

/* ===== BREADCRUMBS ===== */
.crumbs {
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--gray-500);
    margin-bottom: 24px;
}
.crumbs a { color: var(--gray-500); border-bottom: 1px solid transparent; }
.crumbs a:hover { color: var(--red); border-bottom-color: var(--red); }
.crumbs span { color: var(--dark); }

/* ===== ARTICLE BODY ===== */
.page-body { padding: 72px 0; }

/* The article column keeps a readable measure but stays left-aligned with the
   page hero above it, rather than centring into a different vertical axis. */
.container.narrow { max-width: var(--container); }
.container.narrow > * { max-width: 820px; }

.page-body h2 {
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--black);
    margin: 56px 0 20px;
}
.page-body h2:first-child { margin-top: 0; }
.page-body p { color: var(--gray-700); margin-bottom: 20px; font-size: 1.05rem; }

/* Bullet lists get a red tick rather than a default disc. */
.ticks { margin: 0 0 24px; }
.ticks li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 12px;
    color: var(--gray-700);
    font-size: 1.02rem;
}
.ticks li::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 0.72em;
    width: 9px;
    height: 9px;
    border-radius: 2px;
    background: var(--red);
}

/* ===== FAQ ===== */
.faq { margin-bottom: 16px; }
.faq-item {
    border-top: 1px solid rgba(0, 0, 0, 0.09);
    padding: 24px 0;
}
.faq-item:last-child { border-bottom: 1px solid rgba(0, 0, 0, 0.09); }
.faq-item h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 10px;
}
.faq-item p { margin-bottom: 0; }

/* ===== RELATED LINKS ===== */
.rel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 16px;
    margin-bottom: 8px;
}
.rel-card {
    display: block;
    padding: 22px;
    border: 1px solid rgba(0, 0, 0, 0.09);
    border-radius: 10px;
    transition: border-color 0.25s var(--ease-out), transform 0.25s var(--ease-out);
}
.rel-card:hover { border-color: var(--red); transform: translateY(-3px); }
.rel-card span { display: block; font-weight: 700; color: var(--black); margin-bottom: 6px; }
.rel-card small { display: block; color: var(--gray-500); font-size: 0.88rem; line-height: 1.5; }

/* ===== HUB PAGES ===== */
.hub-intro {
    max-width: 70ch;
    color: var(--gray-700);
    font-size: 1.08rem;
    margin-bottom: 48px;
}
.hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}
.hub-card {
    display: flex;
    flex-direction: column;
    padding: 32px;
    border: 1px solid rgba(0, 0, 0, 0.09);
    border-radius: 12px;
    background: var(--white);
    transition: border-color 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), transform 0.25s var(--ease-out);
}
.hub-card:hover { border-color: var(--red); box-shadow: var(--shadow-md); transform: translateY(-4px); }
.hub-card h2 { font-size: 1.35rem; font-weight: 700; color: var(--black); margin: 0 0 12px; }
.hub-card p { color: var(--gray-700); font-size: 0.98rem; margin-bottom: 20px; flex: 1; }
.hub-more { color: var(--red); font-weight: 600; font-size: 0.92rem; }

/* ===== BOTTOM CTA ===== */
.page-cta {
    background: var(--black);
    color: var(--white);
    padding: 88px 0;
    text-align: center;
}
.page-cta h2 {
    font-size: clamp(1.7rem, 4vw, 2.6rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}
.page-cta p { color: var(--gray-300); max-width: 58ch; margin: 0 auto 32px; }
.page-cta .btn-primary { display: inline-block; }
.cta-meta { margin-top: 28px; font-size: 0.95rem; }
.cta-meta a { border-bottom: 1px solid rgba(255, 255, 255, 0.3); }
.cta-meta a:hover { border-bottom-color: var(--red-light); }

/* Footer column headings are h2 for hierarchy; keep the original h4 appearance. */
.footer-h {
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 18px;
}

@media (max-width: 768px) {
    .page-hero { padding: 40px 0 40px; }
    .page-body { padding: 48px 0; }
    .page-body h2 { margin: 40px 0 16px; }
    .page-cta { padding: 64px 0; }
}

/* Screen-reader-only text: gives the hero H1 a readable, keyword-bearing string
   without changing the visual design. */
.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Card links on the homepage: the internal path from the one-pager into the
   service and industry pages. */
.card-link {
    display: inline-block;
    margin-top: 18px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--red);
    border-bottom: 1px solid transparent;
}
.card-link:hover { border-bottom-color: var(--red); }
.spec-card .card-link { display: block; margin-top: 12px; }
