/**
 * Off-Season Teaser Stylesheet ("2027 Coming Soon")
 *
 * Self-contained visual design for coming-soon.html. It intentionally mirrors
 * the main landing page hero (index.html #home / css/main.css .hero-section):
 * a full-bleed background image, a dark overlay, and centered white content
 * stacked above it. Because the landing page relies on Bootstrap for typography
 * (display-4, lead), the equivalent sizing/weight is replicated directly here
 * so the teaser needs no CDN.
 *
 * Self-containment: NO @import, NO @font-face, NO CDN/web-font URL, and no
 * url() to any external origin. Typography uses the same font stack as the
 * landing page (with a system fallback) so the page renders using only
 * same-origin assets (this CSS, the HTML, the JS, and bundled images).
 */

/* Brand palette (mirrors css/main.css :root so the teaser stays on-brand) */
:root {
    --primary-color: #007c89;
    --secondary-color: #5d2650;
    --dark-color: #2d2d2d;
    --light-color: #f8f9fa;
    --transition: all 0.3s ease;

    /* Same font stack as the landing page (system fallback; no web fonts) */
    --teaser-font: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;

    --teaser-text: #ffffff;
    --teaser-text-muted: rgba(255, 255, 255, 0.85);
}

/* Reset just enough for a predictable, self-contained layout */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body.coming-soon {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

body.coming-soon {
    font-family: var(--teaser-font);
    line-height: 1.6;
    color: #333;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* ---- Full-viewport hero (mirrors .hero-section) ---- */

.teaser-hero {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1.25rem;
    /*
     * Solid fallback background so the page still looks intentional if the
     * cover image fails to load (works with handleHeroBgError() hiding the
     * broken <img>, and reads correctly under the dark overlay).
     */
    background-color: var(--primary-color);
}

/* Full-bleed background image (mirrors .hero-bg-image) */
.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
}

/* Dark overlay for text legibility (mirrors .hero-overlay) */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

/* Centered white content, stacked above the overlay */
.teaser-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
    color: var(--teaser-text);
}

/* ---- Foresters brand logo ---- */

.brand-logo-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 280px;
    margin-bottom: 2rem;
}

.brand-logo {
    display: block;
    width: auto;
    max-height: 280px;
    height: auto;
    /* The bundled logo is white; it sits on the darkened hero background */
}

.brand-logo-fallback {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--teaser-text);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* ---- Coming-soon messaging ---- */

.teaser-message {
    margin-bottom: 3rem;
}

.teaser-eyebrow {
    margin: 0 0 1rem;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--teaser-text-muted);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Sized like the landing hero's Bootstrap display-4 (bold), with a shadow
   matching .hero-title */
.teaser-title {
    margin: 0 0 1.25rem;
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    font-weight: 700;
    line-height: 1.1;
    color: var(--teaser-text);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Sized like Bootstrap .lead (~1.25rem), with a shadow matching .hero-subtitle */
.teaser-lead {
    margin: 0 auto 1rem;
    max-width: 42ch;
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--teaser-text);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.teaser-subtext {
    margin: 0 auto;
    max-width: 48ch;
    font-size: 1rem;
    color: var(--teaser-text-muted);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* ---- Charity Partner Branding ---- */

.charity-branding {
    padding-top: 2.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.charity-logo-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 90px;
    margin-bottom: 1.25rem;
}

.charity-logo {
    display: block;
    width: auto;
    max-width: 240px;
    height: auto;
    /* The bundled logo is white; it sits on the darkened hero background */
}

/*
 * Text fallback for a failed logo load. It carries the `hidden` attribute by
 * default in the markup; coming-soon.js removes that attribute on img error.
 * The [hidden] rule below guarantees it stays hidden until then.
 */
.charity-logo-fallback {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--teaser-text);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}


/* Honor the HTML `hidden` attribute regardless of display rules above */
[hidden] {
    display: none !important;
}

/* Screen-reader-only heading ("Charity Partner") kept out of 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;
}

/* ---- Responsive tightening for small screens ---- */

@media (max-width: 480px) {
    .teaser-hero {
        padding: 2rem 1rem;
    }

    .brand-logo-wrap {
        margin-bottom: 1.5rem;
    }

    .teaser-message {
        margin-bottom: 2.25rem;
    }

    .charity-branding {
        padding-top: 1.75rem;
    }
}

/* Respect reduced-motion preferences without external assets */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}
