/* Hunt Consulting Services — site styles, layered over missing.css */

:root {
    --site-accent: #1e4d6b;        /* deep slate blue — swap once brand colors are finalized */
    --site-accent-dark: #163a52;
    --site-ink: #1d2530;
    --site-muted: #5b6472;
    --site-surface: #ffffff;
    --site-tint: #eef3f7;          /* pale accent tint for alternating bands */
    --site-dark-bg: #12202c;
    --site-max: 72rem;
}

body {
    margin: 0;
    color: var(--site-ink);
    background: var(--site-surface);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ---------- header ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--site-surface);
    border-bottom: 1px solid #e3e7ec;
    /* missing.css pads `body > header` in to its --eff-line-length (40rem),
       which shrinks the inner flex row below --site-max and pushes the nav
       out of line with .band-inner */
    padding-inline: 0;
    /* hidden until the hero buttons scroll off-screen (see JS); slides down */
    transform: translateY(-100%);
    transition: transform 0.25s ease;
}
body.header-visible .site-header { transform: translateY(0); }

.site-header-inner {
    max-width: var(--site-max);
    margin: 0 auto;
    padding: 0.6rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.site-brand {
    flex-shrink: 0;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: var(--site-ink);
    text-decoration: none;
}

.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;
}

.site-nav {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 1.4rem;
}

/* .site-header prefix outranks missing.css's nested `nav :is(a...)` rule,
   which otherwise recolors nav links blue */
.site-header .site-nav a {
    color: var(--site-ink);
    text-decoration: none;
    font-weight: 500;
    white-space: nowrap;
}

.site-header .site-nav a:hover { color: var(--site-accent); }

.site-header .site-nav a.cta {
    background: var(--site-accent);
    color: #fff;
    padding: 0.4rem 0.95rem;
    border-radius: 6px;
}

.site-header .site-nav a.cta:hover { background: var(--site-accent-dark); color: #fff; }

.site-nav-toggle {
    display: none;
    margin-left: auto;
    background: none;
    border: 1px solid #d4dae1;
    border-radius: 6px;
    font-size: 1.2rem;
    padding: 0.2rem 0.6rem;
    cursor: pointer;
}

@media (max-width: 46rem) {
    .site-nav-toggle { display: block; }
    .site-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: var(--site-surface);
        border-bottom: 1px solid #e3e7ec;
        padding: 0.5rem 0;
    }
    .site-nav a { padding: 0.7rem 1.25rem; }
    body.nav-open .site-nav { display: flex; }
}

/* ---------- page bands & layout ---------- */

.site-main {
    min-height: 60vh;
    /* missing.css clamps <main> to its --eff-line-length; lift that so
       .band-inner / --site-max control the content width instead */
    max-inline-size: none;
}

.band { padding: 3.5rem 1.25rem; }

/* keep anchor-jump targets clear of the sticky header */
section[id] { scroll-margin-top: 4.5rem; }
.band-inner { max-width: var(--site-max); margin: 0 auto; }
.band.tint { background: var(--site-tint); }

.band h2 {
    font-size: 1.9rem;
    margin: 0 0 1.5rem 0;
}

/* ---------- hero ---------- */

.hero { padding: 2rem 1.25rem 0.25rem; text-align: center; }
/* missing.css's h1 line-height is calc(2 * rhythm) — quite tall on a big
   display heading like this, and was adding invisible space around it */
.hero h1 { font-size: clamp(2.2rem, 6vw, 3.4rem); line-height: 1.1; margin: 0.3rem 0; }

.hero .tagline {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--site-ink);
    max-width: 46rem;
    margin: 0.6rem auto 0;
}

.hero .subtitle {
    font-size: 1rem;
    color: var(--site-muted);
    max-width: 40rem;
    margin: 0.5rem auto 0;
}

.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-top: 1.75rem; }

.btn {
    display: inline-block;
    padding: 0.7rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
}

.btn-primary { background: var(--site-accent); color: #fff; }
.btn-primary:hover { background: var(--site-accent-dark); color: #fff; }
.btn-secondary { border: 2px solid var(--site-accent); color: var(--site-accent); }
.btn-secondary:hover { background: var(--site-tint); }

/* ---------- intro band ---------- */

/* tighter than the standard .band padding on both sides — this section reads
   as a continuation of the hero, not a new one, so it shouldn't be spaced
   like one, and Services right after it is a real new section that can own
   its own top padding rather than stacking on top of this bottom padding */
.intro-band { padding-top: 0.75rem; padding-bottom: 1.5rem; }

.intro-band p {
    /* missing.css's bare p{margin-block:var(--gap)} was adding uncontrolled
       space above the first paragraph (and below the last) on top of the
       band's own padding — reset it and space paragraphs explicitly below.
       Width now matches .band-inner (no more separate narrower column) so
       it lines up with the sections below instead of looking inconsistent. */
    margin: 0;
    font-size: 1.05rem;
}
.intro-band p + p { margin-top: 1rem; }
.intro-band .lead { font-size: 1.15rem; }
.intro-band .closing { font-weight: 700; font-size: 1.15rem; margin-top: 1.5rem; }

/* ---------- services ---------- */

.service { padding: 1.75rem 0; border-top: 1px solid #dde3ea; }
.service:first-of-type { border-top: none; padding-top: 0.5rem; }
.service h3 { font-size: 1.3rem; margin: 0 0 0.5rem 0; }
.service p { max-width: 52rem; }

.service ul {
    columns: 2;
    column-gap: 2.5rem;
    max-width: 52rem;
    margin: 0.75rem 0 0 0;
    padding-left: 1.1rem;
}
.service li { break-inside: avoid; padding: 0.15rem 0; }

@media (max-width: 40rem) {
    .service ul { columns: 1; }
}

.services-footnote { margin-top: 2.5rem; padding-top: 1.75rem; border-top: 1px solid #dde3ea; }
.services-footnote p { margin: 0.3rem 0; color: var(--site-muted); }

.link-cta {
    display: inline-block;
    margin-top: 1rem;
    font-weight: 700;
    color: var(--site-accent);
    text-decoration: none;
}
.link-cta:hover { color: var(--site-accent-dark); }

/* ---------- checklist (experience / about) ---------- */

.check-list { list-style: none; padding: 0; margin: 1rem 0 0 0; max-width: 52rem; }
.check-list li {
    position: relative;
    padding: 0.4rem 0 0.4rem 1.65rem;
    line-height: 1.5;
}
.check-list li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    top: 0.4rem;
    color: var(--site-accent);
    font-weight: 700;
}

/* ---------- contact ---------- */

.contact-card {
    background: var(--site-dark-bg);
    color: #c3ccd6;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 1.5rem 1.75rem;
    margin-top: 1.5rem;
    max-width: 26rem;
    line-height: 1.7;
}
.contact-card strong { color: #fff; }
.contact-card a { color: #8fc1e0; text-decoration: none; font-weight: 600; }
.contact-card a:hover { text-decoration: underline; color: #bfe0f2; }

/* ---------- service cards (each is its own <details>; expands in place) ---------- */

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr));
    gap: 1rem;
    margin: 1rem 0 2.5rem 0;
    align-items: start;
}

.service-card {
    background: var(--site-surface);
    border: 1px solid #dde3ea;
    border-radius: 10px;
    /* !important: missing.css styles bare <details> elements too, and by this
       point it's clearly not safe to assume a plain class selector outranks
       whatever selector it's using — force all four sides explicitly. */
    padding: 1.2rem 1.3rem !important;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    scroll-margin-top: 4.5rem;
}
.service-card:hover { border-color: var(--site-accent); box-shadow: 0 4px 14px rgba(29, 37, 48, 0.08); }
/* open card takes the full row so its expanded detail has room to breathe */
.service-card[open] { grid-column: 1 / -1; border-color: var(--site-accent); }

.service-card summary {
    cursor: pointer;
    margin: 0;
    list-style: none;
    /* missing.css's details>summary:first-of-type{display:list-item} rule
       outranks a plain class selector on specificity, so display:flex here
       was silently losing — the marker/text was falling to a wrapped line
       instead of sitting inline. !important forces the flex layout to win. */
    display: flex !important;
    align-items: start;
    gap: 0.75rem;
}
.service-card summary::-webkit-details-marker { display: none; }
.service-card summary::before {
    content: "+";
    color: var(--site-accent);
    font-weight: 700;
    font-size: 1.3rem;
    line-height: 1.5;
    flex-shrink: 0;
}
.service-card[open] summary::before { content: "\2212"; }

.service-card .card-heading { min-width: 0; }
.service-card h3 { margin: 0 0 0.4rem 0; font-size: 1.05rem; color: var(--site-accent); }
.service-card:hover h3 { color: var(--site-accent-dark); }
.service-card .card-teaser { margin: 0; color: var(--site-muted); font-size: 0.92rem; line-height: 1.5; }

.card-detail { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid #dde3ea; }
.card-detail ul {
    columns: 2;
    column-gap: 2.5rem;
    padding-left: 1.1rem;
    margin: 0.75rem 0 0 0;
}
.card-detail li { break-inside: avoid; padding: 0.15rem 0; }

@media (max-width: 40rem) {
    .card-detail ul { columns: 1; }
}

/* ---------- dark band ---------- */

.band.dark { background: var(--site-dark-bg); color: #e8edf3; }
.band.dark h2 { color: #fff; }
.band.dark p { color: #c3ccd6; }
.band.dark .check-list li::before { color: #7ec1e8; }
.band.dark .link-cta { color: #7ec1e8; }
.band.dark .link-cta:hover { color: #a9d8f0; }

/* ---------- about split ---------- */

.about-split {
    display: grid;
    grid-template-columns: 17rem 1fr;
    gap: 2.5rem;
    align-items: start;
}

@media (max-width: 46rem) {
    .about-split { grid-template-columns: 1fr; }
}

.about-split h2 { margin-top: 0; }

.about-photo {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(29, 37, 48, 0.12);
}

/* placed AFTER the base .about-photo rule so equal-specificity cascade lets
   it win — single-column on mobile, so cap the photo instead of full-width */
@media (max-width: 46rem) {
    .about-photo { width: 50%; }
}

/* ---------- contact band ---------- */

.contact-band { text-align: center; }
.contact-band .contact-card { margin-left: auto; margin-right: auto; text-align: left; }
