/* ============================================================
   "spotlight" — the hero photo IS the page background.

   Loads _base.css first; this file only adds personality:
   a full-viewport fixed hero image, a nav that starts transparent
   over it and turns solid once you scroll past, and oversized
   centred display type.
   ============================================================ */

:root {
    --green:       var(--brand-primary, #C8963E);
    --green-dark:  var(--brand-secondary, #A2762C);
    --green-light: color-mix(in srgb, var(--green) 10%, white);
    --dark:        #0E0F12;
    --text:        #1B1E23;
    --text-light:  #5E6670;
    --page-bg:     #FFFFFF;
    --radius:      6px;
    --shadow:      0 14px 40px -18px rgba(0,0,0,0.35);
}

/* ── Full-viewport hero ─────────────────────────────────── */
.sl-hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex; align-items: center; justify-content: center;
    text-align: center;
    background-size: cover;
    background-position: center;
    /* Parallax on desktop only — `fixed` is ignored/janky on iOS. */
    background-attachment: fixed;
    color: #fff;
    overflow: hidden;
}
.sl-hero::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(8,9,12,0.62) 0%, rgba(8,9,12,0.48) 45%, rgba(8,9,12,0.88) 100%);
}
.sl-hero-inner { position: relative; z-index: 2; padding: 0 1.5rem; max-width: 900px; }
/* Over the darkened photo the accent must be light, NOT var(--green):
   a tenant's brand colour is frequently a dark navy/green, which becomes
   unreadable here. Brand colour is expressed through the buttons instead. */
.sl-hero-sub {
    text-transform: uppercase; letter-spacing: 6px; font-size: 0.75rem;
    color: rgba(255,255,255,0.92); font-weight: 700; margin-bottom: 1.25rem;
}
/* The note texture sits on top of a photo here, so it needs to be far
   subtler than over the flat-colour heroes the other themes use. */
.sl-hero .hero-texture { opacity: 0.06; }
.sl-hero-title {
    font-family: var(--serif); font-weight: 800; color: #fff;
    font-size: clamp(2.6rem, 8vw, 6rem); line-height: 1.02; letter-spacing: -0.02em;
    text-shadow: 0 4px 40px rgba(0,0,0,0.4);
}
.sl-hero-tagline { margin-top: 1.25rem; font-size: 1.15rem; color: rgba(255,255,255,0.85); }
.sl-hero-cta { margin-top: 2.25rem; display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.sl-scroll-cue {
    position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
    z-index: 2; color: rgba(255,255,255,0.75); font-size: 1.6rem;
    animation: slBounce 2s infinite;
}
@keyframes slBounce { 0%,100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 10px); } }

/* Content sits on an opaque sheet so the fixed photo only shows in the hero. */
.sl-body { position: relative; z-index: 3; background: var(--page-bg); }

/* ── Nav: transparent over the hero, solid after scrolling ── */
.sl-nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    display: flex; align-items: center; justify-content: space-between;
    padding: 1.1rem 2rem;
    transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}
.sl-nav.scrolled { background: rgba(14,15,18,0.94); backdrop-filter: blur(10px); padding: 0.7rem 2rem; box-shadow: 0 6px 24px -12px rgba(0,0,0,0.5); }
.sl-nav-logo { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; color: #fff; }
.sl-nav-logo img { height: 42px; width: auto; object-fit: contain; }
.sl-nav-logo-badge {
    width: 42px; height: 42px; border-radius: 99px; flex-shrink: 0;
    background: var(--green); color: var(--on-primary, #fff);
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 1.1rem;
}
.sl-nav-name { font-family: var(--serif); font-weight: 800; font-size: 1.05rem; letter-spacing: 0.5px; }
.sl-nav-sub { display: block; font-size: 0.6rem; text-transform: uppercase; letter-spacing: 2.5px; color: rgba(255,255,255,0.6); }
.sl-nav-links { display: flex; align-items: center; gap: 1.6rem; list-style: none; }
/* :not(.sl-nav-backstage) on the whole rule — not just the hover/active
   colour — because the underline treatment's `border-bottom` AND
   `padding-bottom` both applied to every link here, backstage pill
   included. Both have equal-or-higher specificity than the pill's own
   shorthand `border`/`padding`, so they silently won piecemeal: the
   border fix alone left `padding-bottom: 2px` still overriding just the
   bottom of the pill's `padding: 0.45rem 1rem`, pushing its text
   noticeably off-centre toward the bottom edge. Excluding the pill here
   entirely removes the need for any !important on its own rule below. */
.sl-nav-links a:not(.sl-nav-backstage) {
    color: rgba(255,255,255,0.88); text-decoration: none; font-size: 0.86rem;
    font-weight: 600; letter-spacing: 0.4px; text-transform: uppercase;
    transition: color 0.2s, border-color 0.2s;
    border-bottom: 2px solid transparent; padding-bottom: 2px;
}
/* White + underline rather than the brand colour: this nav floats over a
   photo, where a dark brand colour disappears. */
.sl-nav-links a:not(.sl-nav-backstage):hover { color: #fff; border-bottom-color: rgba(255,255,255,0.5); }
.sl-nav-links a:not(.sl-nav-backstage).active { color: #fff; border-bottom-color: #fff; }
.sl-nav-backstage {
    color: rgba(255,255,255,0.88); text-decoration: none; font-size: 0.86rem;
    font-weight: 600; letter-spacing: 0.4px; text-transform: uppercase;
    border: 1.5px solid rgba(255,255,255,0.5); padding: 0.45rem 1rem; border-radius: 99px;
    line-height: 1; transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.sl-nav-backstage:hover { background: var(--green); border-color: var(--green); color: #fff; }
.sl-nav-toggle { display: none; background: none; border: none; color: #fff; font-size: 1.6rem; cursor: pointer; }

/* Only when the site truly has no hero photo anywhere does the nav fall
   back to a solid bar from the start (nothing to float over). */
.sl-nav.solid { background: rgba(14,15,18,0.96); }

/* ── Inner-page header: same photo, compact height, continuous with the
   transparent nav above it (see the layout's "no .sl-page-offset" note) ── */
.sl-inner-hero {
    position: relative; overflow: hidden;
    background-size: cover; background-position: center;
    background-color: var(--dark);
    padding: 9rem 0 3.5rem;
    text-align: center;
    color: #fff;
}
.sl-inner-hero::after { content: ""; position: absolute; inset: 0; background: var(--hero-overlay-rgba, rgba(11,11,13,0.6)); }
.sl-inner-hero .hero-texture { opacity: calc(var(--hero-pattern-opacity, 0.14) * 0.5); }
.sl-inner-hero > * { position: relative; z-index: 2; }
.sl-inner-hero .section-label { color: rgba(255,255,255,0.8); }
.sl-inner-hero .section-title { color: #fff; }
@media (max-width: 900px) { .sl-inner-hero { padding: 7.5rem 0 3rem; } }

@media (max-width: 900px) {
    .sl-hero { background-attachment: scroll; }
    .sl-nav-toggle { display: block; }
    .sl-nav-links {
        position: fixed; inset: 0; background: rgba(14,15,18,0.98);
        flex-direction: column; justify-content: center; gap: 1.6rem;
        transform: translateX(100%); transition: transform 0.3s ease;
    }
    .sl-nav-links.open { transform: none; }
    .sl-nav-links a { font-size: 1.1rem; }
}
