/* ============================================================
   NORBURN DESIGN - info-pages.css
   Shared styles for sitemap.html, faq.html, terms.html,
   location.html.
   Requires: css/style.css
   ============================================================ */


/* ── Compact info hero (shorter than gallery pages) ────────── */
.info-hero {
    min-height: 34vh;
    background-color: var(--bg-dark);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    text-align: center;
    padding: calc(var(--nav-height) + 50px) 32px 48px;
    position: relative;
    overflow: hidden;
}

.info-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 65% 50% at 10% 120%, rgba(199,50,0,0.16) 0%, transparent 58%),
        radial-gradient(ellipse 50% 40% at 92% -5%,  rgba(199,50,0,0.08) 0%, transparent 55%);
    pointer-events: none;
}

.info-hero__inner {
    position: relative;
    z-index: 1;
    max-width: 700px;
}

.info-hero__title {
    color: var(--white);
    margin-bottom: 14px;
}

.info-hero__sub {
    font-size: 1rem;
    color: rgba(255,255,255,0.65);
    line-height: 1.7;
    max-width: 560px;
    margin: 0 auto;
}


/* ── Main content wrapper ──────────────────────────────────── */
.info-main {
    padding: 72px 40px 100px;
}

.info-main__inner {
    max-width: 900px;
    margin: 0 auto;
}


/* ── Prose sections (used by terms.html) ───────────────────── */
.info-section {
    margin-bottom: 64px;
    padding-bottom: 64px;
    border-bottom: 1px dotted #ccc;
    scroll-margin-top: calc(var(--nav-height) + 24px); /* offset for fixed nav */
}

.info-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.info-section h2 {
    font-size: clamp(1.3rem, 2.5vw, 1.9rem);
    margin-bottom: 24px;
    color: var(--ink);
}

.info-section p {
    font-size: 1rem;
    color: var(--ink-soft);
    line-height: 1.82;
    margin-bottom: 16px;
    max-width: 720px;
}

.info-section p:last-child {
    margin-bottom: 0;
}

/* Definition list - used in company info */
.info-dl {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 0;
    margin: 20px 0;
    border-top: 1px solid #e8e8e8;
}

.info-dl dt {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--ink-soft);
    padding: 14px 0;
    border-bottom: 1px solid #e8e8e8;
    grid-column: 1;
}

.info-dl dd {
    font-size: 0.95rem;
    color: var(--ink);
    padding: 14px 0 14px 20px;
    border-bottom: 1px solid #e8e8e8;
    grid-column: 2;
    margin: 0;
}

.info-dl a {
    color: var(--brand);
    text-decoration: underline;
    text-decoration-color: rgba(199,50,0,0.35);
    text-underline-offset: 3px;
}

.info-dl a:hover {
    text-decoration-color: var(--brand);
}

/* ── In-page section nav (terms.html) ─────────────────────────
   Sticky below the fixed site nav so it stays visible while
   scrolling through sections. z-index sits between the page
   content (0) and the site nav (11).
   ─────────────────────────────────────────────────────────── */
.info-nav {
    position: sticky;
    top: var(--nav-height);          /* sits flush under the fixed nav bar */
    z-index: 8;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 14px 0 14px;
    margin-bottom: 52px;
    background-color: var(--bg);     /* matches page background - hides content scrolling behind */
    border-bottom: 1px solid #e8e8e8;

    /* Bleed the background colour to the page edges so no
       content peeks through at the sides on narrow viewports */
    margin-left:  calc(-1 * clamp(20px, 4vw, 40px));
    margin-right: calc(-1 * clamp(20px, 4vw, 40px));
    padding-left:  clamp(20px, 4vw, 40px);
    padding-right: clamp(20px, 4vw, 40px);
}

.info-nav a {
    display: inline-flex;
    align-items: center;
    height: 34px;
    padding: 0 14px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--ink);
    background-color: transparent;
    border: 1.5px solid #ddd;
    border-radius: 3px;
    white-space: nowrap;
    transition: border-color 0.2s ease, color 0.2s ease,
                background-color 0.2s ease;
}

.info-nav a:hover {
    border-color: var(--brand);
    color: var(--brand);
}

/* Highlight whichever section is currently in view
   (toggled by the JS scroll-spy below) */
.info-nav a.active {
    border-color: var(--brand);
    background-color: var(--brand);
    color: var(--white);
}


/* ── Terms subheadings (h3 within info-section) ────────────── */
.terms-subheading {
    font-family: "Castoro Titling", Georgia, "Times New Roman", serif;
    font-size: 1rem;
    font-weight: 400;
    color: var(--ink);
    margin: 32px 0 12px;
    padding-left: 12px;
    border-left: 3px solid var(--brand);
}

.terms-updated {
    margin-top: 28px !important;
    font-size: 0.82rem !important;
    color: #aaa !important;
    letter-spacing: 0.5px;
}


/* ── Sitemap ───────────────────────────────────────────────── */
.sitemap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 48px 40px;
}

.sitemap-col__heading {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--brand);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(199,50,0,0.18);
}

.sitemap-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
    list-style: none;
}

.sitemap-list li {
    border-bottom: 1px solid #eee;
}

.sitemap-list a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 0;
    font-size: 0.95rem;
    color: var(--ink-soft);
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.sitemap-list a::before {
    content: '→';
    font-size: 0.7rem;
    color: var(--brand);
    opacity: 0.5;
    flex-shrink: 0;
    transition: opacity 0.2s ease;
}

.sitemap-list a:hover {
    color: var(--brand);
    padding-left: 4px;
}

.sitemap-list a:hover::before {
    opacity: 1;
}


/* ── FAQ ───────────────────────────────────────────────────── */
.faq-intro {
    font-size: 1.05rem;
    color: var(--ink-soft);
    line-height: 1.78;
    max-width: 680px;
    margin-bottom: 52px;
}

.faq-group {
    margin-bottom: 56px;
}

.faq-group__heading {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--brand);
    margin-bottom: 24px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(199,50,0,0.18);
}

/* Accordion item */
.faq-item {
    border-bottom: 1px solid #e4e4e4;
}

.faq-item summary {
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 18px 0;
    font-family: "Castoro Titling", Georgia, "Times New Roman", serif;
    font-size: 1rem;
    color: var(--ink);
    cursor: pointer;
    user-select: none;
    transition: color 0.2s ease;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary:hover {
    color: var(--brand);
}

.faq-item summary .faq-icon {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border: 1.5px solid rgba(199,50,0,0.35);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--brand);
    font-family: "IBM Plex Sans Condensed", "Arial Narrow", Arial, sans-serif;
    transition: background-color 0.2s ease, color 0.2s ease;
    line-height: 1;
}

.faq-item[open] summary .faq-icon {
    background-color: var(--brand);
    color: var(--white);
}

.faq-item[open] summary {
    color: var(--brand);
}

.faq-answer {
    padding: 4px 0 22px;
    font-size: 0.97rem;
    color: var(--ink-soft);
    line-height: 1.82;
    max-width: 680px;
}

.faq-answer p { margin-bottom: 12px; }
.faq-answer p:last-child { margin-bottom: 0; }

.faq-answer a {
    color: var(--brand);
    text-decoration: underline;
    text-decoration-color: rgba(199,50,0,0.35);
    text-underline-offset: 3px;
}

.faq-answer a:hover {
    text-decoration-color: var(--brand);
}


/* ── FAQ footer note ───────────────────────────────────────── */
.faq-footer-note {
    margin-top: 24px;
    padding: 48px 40px;
    background-color: var(--bg-dark);
    border-left: 3px solid var(--brand);
    border-radius: 0 4px 4px 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.faq-footer-note p {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.70);
    line-height: 1.75;
    max-width: 560px;
    margin: 0;
}

.faq-footer-note .section-label {
    color: var(--brand);
}

.faq-footer-note .headerbutton {
    margin-top: 8px;
}

@media (max-width: 720px) {
    .faq-footer-note {
        padding: 36px 24px;
    }
}


/* ── Location page ─────────────────────────────────────────── */
.location-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px 80px;
    margin-bottom: 60px;
}

.location-block h2 {
    font-size: clamp(1.2rem, 2vw, 1.6rem);
    margin-bottom: 16px;
}

.location-block p {
    font-size: 1rem;
    color: var(--ink-soft);
    line-height: 1.8;
    margin-bottom: 14px;
}

.location-block p:last-child { margin-bottom: 0; }

.location-address {
    font-style: normal;
    display: block;
    background-color: var(--white);
    border: 1px solid rgba(199,50,0,0.20);
    border-left: 3px solid var(--brand);
    border-radius: 3px;
    padding: 20px 22px;
    margin-top: 20px;
    line-height: 2;
    font-size: 0.97rem;
    color: var(--ink);
}

.location-region-note {
    background-color: var(--bg-dark);
    border-left: 3px solid var(--brand);
    border-radius: 0 3px 3px 0;
    padding: 24px 28px;
    margin-top: 48px;
}

.location-region-note p {
    font-size: 1rem;
    color: rgba(255,255,255,0.70);
    line-height: 1.75;
    margin-bottom: 12px;
}

.location-region-note p:last-child { margin-bottom: 0; }

.location-region-note strong {
    color: var(--white);
}


.prefooter_black {
    background-color: var(--bg-dark);
    width: 100%;
    height: 50px;
}
.prefooter_red {
    background-color: var(--brand);
    width: 100%;
    height: 100px;
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 720px) {

    .info-main { padding: 52px 20px 72px; }

    .info-hero { min-height: 28vh; padding-bottom: 36px; }

    .info-hero__title { font-size: 2rem; }

    /* On mobile the sticky nav wraps - allow buttons to grow
       so they fill the row cleanly rather than leaving orphans */
    .info-nav {
        gap: 6px;
        padding-top: 12px;
        padding-bottom: 12px;
        margin-bottom: 40px;
    }

    .info-nav a {
        flex: 1 1 auto;          /* grow to fill available space */
        justify-content: center;
        font-size: 0.68rem;
        letter-spacing: 1px;
        padding: 0 10px;
        height: 38px;            /* slightly taller for touch targets */
    }

    .info-dl {
        grid-template-columns: 1fr;
    }

    .info-dl dt {
        border-bottom: none;
        padding-bottom: 2px;
        margin-top: 14px;
    }

    .info-dl dd {
        padding-left: 0;
        padding-top: 2px;
        border-bottom: 1px solid #e8e8e8;
    }

    .location-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .sitemap-grid {
        grid-template-columns: 1fr 1fr;
        gap: 36px 24px;
    }
}

@media (max-width: 480px) {
    .sitemap-grid { grid-template-columns: 1fr; }
}
