/* ==========================================================================
   Princeton City Schools: Settle the Strike
   ========================================================================== */

:root {
    /* Palette */
    --red: #AB2317;
    --yellow: #EEBF51;
    --grey: #595655;
    --dark: #272626;
    --white: #FFFFFF;

    /* Type */
    --font: "Figtree", sans-serif;
    --weight-body: 400;
    --weight-bold: 700;
    --weight-heading: 700;
    --weight-heavy: 900;

    /* Layout */
    --gutter: 1.25rem;
    --section-pad: clamp(2.5rem, 6vw, 4.5rem);
    --radius-pill: 999px;
}

/* --------------------------------------------------------------------------
   Base / reset
   -------------------------------------------------------------------------- */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--font);
    font-weight: var(--weight-body);
    font-size: clamp(1rem, 0.95rem + 0.3vw, 1.2rem);
    line-height: 1.5;
    color: var(--dark);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

h1,
h2,
h3 {
    margin: 0 0 0.5em;
    font-family: var(--font);
    font-weight: var(--weight-heading);
    line-height: 1.1;
}

h2 {
    font-size: clamp(1.75rem, 1.2rem + 2.5vw, 3rem);
}

h3 {
    font-size: clamp(1.6rem, 1rem + 2.6vw, 3rem);
    font-weight: var(--weight-heavy);
    text-transform: uppercase;
    letter-spacing: 0.01em;
}

p {
    margin: 0 0 1em;
}

a {
    color: inherit;
}

.wrap {
    width: 90%;
    margin: 0 auto;
    padding: 0 var(--gutter);
}

/* --------------------------------------------------------------------------
   Utilities
   -------------------------------------------------------------------------- */

.yellow { color: var(--yellow); }
.red    { color: var(--red); }
.bold   { font-weight: var(--weight-bold); }

hr.red {
    width: min(100%, 600px);
    height: 5px;
    margin: 2.5rem auto;
    border: 0;
    border-radius: 3px;
    background: var(--red);
}

/* Yellow pill button */
.btn {
    display: inline-block;
    padding: 0.7em 1.6em;
    border: 0;
    border-radius: var(--radius-pill);
    background: var(--yellow);
    color: var(--dark);
    font: inherit;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.15s ease, filter 0.15s ease;
}

.btn:hover,
.btn:focus-visible {
    filter: brightness(0.95);
    transform: translateY(-1px);
}

/* --------------------------------------------------------------------------
   Banner (top red bar)
   -------------------------------------------------------------------------- */

.banner {
    background: var(--red);
    color: var(--white);
    text-align: center;
    padding: 1rem 0;
}

.banner h1 {
    margin: 0;
    font-size: 2rem;
    font-weight: var(--weight-heavy);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
    position: relative;
    isolation: isolate;
    width: 100%;
    padding: 6rem 0 0;
    background: var(--grey);
}

/* Background photo lives on its own layer so scripts.js can parallax it.
   The extra height on top gives the image room to move as you scroll. */
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
}

.hero-bg::before {
    content: "";
    position: absolute;
    inset: -25% 0 0;
    background: url("images/hero-background.jpg") center / cover no-repeat;
    transform: translate3d(0, var(--parallax-y, 0px), 0);
    will-change: transform;
}

.hero img {
    position: relative;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto -50px;
}

/* --------------------------------------------------------------------------
   Tagline (dark band)
   -------------------------------------------------------------------------- */

.tagline {
    background: var(--dark);
    color: var(--white);
    text-align: center;
    /* extra bottom padding leaves room for the overlapping red box */
    padding: calc(var(--section-pad) + 50px) 0 calc(var(--section-pad) + 3rem);
}

.tagline p {
    font-size: 2.2rem;
    text-wrap: pretty;
}

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

/* --------------------------------------------------------------------------
   Actions
   -------------------------------------------------------------------------- */

.actions {
    text-align: center;
    padding-bottom: var(--section-pad);
}

.actions p {
    font-size: 2rem;
    text-wrap: pretty;
}

/* Red "Attention Princeton Families" box straddling dark band + white */
.attn-overlay {
    position: relative;
    width: calc(100% - 2 * var(--gutter));
    max-width: 960px;
    margin: -4rem auto var(--section-pad);
    padding: 1.25rem var(--gutter) 1.5rem;
    background: var(--red);
    color: var(--white);
}

.attn-overlay p {
    margin: 0 0 0.15em;
    font-weight: var(--weight-heavy);
    text-transform: uppercase;
    font-size: 1.6rem;
}

.attn-overlay h2 {
    margin: 0;
    font-weight: var(--weight-heavy);
    font-size: 3.2rem;
}

/* Email link (excludes buttons) */
.actions a:not(.btn) {
    color: var(--red);
    font-weight: var(--weight-bold);
    overflow-wrap: anywhere;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
    background: var(--grey);
    color: var(--white);
    text-align: center;
    padding-bottom: 2rem;
}

.site-footer > img {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.disclaimer {
    font-size: 0.9rem;
    opacity: 0.85;
}

.disclaimer p {
    margin: 0;
    display: inline-block;
    padding: .5rem;
    border: solid white 1px;
}

/* --------------------------------------------------------------------------
   Animations (classes added by scripts.js)
   -------------------------------------------------------------------------- */

/* Fade in on scroll: headlines + paragraphs */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s ease, transform 0.7s ease;
    transition-delay: var(--reveal-delay, 0s);
}

/* Footer logo: slide up from the bottom */
.reveal-up {
    opacity: 0;
    transform: translateY(80px);
    transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.reveal.is-visible,
.reveal-up.is-visible {
    opacity: 1;
    transform: none;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

/* Tablet */
@media (max-width: 1024px) {
    .banner h1 {
        font-size: 1.5rem;
    }

    .hero {
        padding-top: 4rem;
    }

    .tagline p {
        font-size: 1.75rem;
    }

    .actions p {
        font-size: 1.6rem;
    }

    .attn-overlay p {
        font-size: 1.3rem;
    }

    .attn-overlay h2 {
        font-size: 2.6rem;
    }
}

/* Phone */
@media (max-width: 600px) {
    .wrap {
        width: 100%;
    }

    .banner {
        padding: 0.75rem 0;
    }

    .banner h1 {
        font-size: 0.85rem;
        letter-spacing: 0.02em;
    }

    .hero {
        padding-top: 2.5rem;
    }

    .hero img {
        margin-bottom: -25px;
    }

    .tagline {
        padding-top: calc(var(--section-pad) + 25px);
    }

    .tagline p {
        font-size: 1.25rem;
    }

    .actions p {
        font-size: 1.15rem;
    }

    .attn-overlay {
        margin-top: -3rem;
    }

    .attn-overlay p {
        font-size: 1rem;
    }

    .attn-overlay h2 {
        font-size: 1.75rem;
    }
}
