/* ============================================================
   ELLEN LOUDON — SHARED SITE STYLES
   Used by: index.html, kindness.html, project.html (and any
   future book/project page duplicated from the template).

   This file holds everything that should look and behave the
   same on every page: colour palette, base typography, buttons,
   nav chrome, scroll-reveal animation, and the footer.

   Page-specific styling (hero, about, gallery, testimonials,
   forms, etc.) stays in each page's own <style> block.
   ============================================================ */

:root {
    /* Everton Blue Palette */
    --everton-blue: #003399;
    --everton-deep: #002266;
    --everton-mid: #1a4ab3;
    --everton-light: #e8edf7;
    --everton-wash: #f4f6fb;

    /* Warm Neutrals to balance */
    --warm-white: #faf9f7;
    --warm-cream: #f5f0eb;
    --warm-stone: #e8e2da;
    --text-dark: #1a1a2e;
    --text-body: #3d3d56;
    --text-muted: #7a7a8e;

    /* Accent */
    --accent-gold: #c9a84c;
    --accent-gold-light: #f0e6c8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Public Sans', sans-serif;
    font-weight: 300;
    color: var(--text-body);
    background-color: var(--warm-white);
    overflow-x: hidden;
}

/* ============================================
   TYPOGRAPHY
============================================ */
h1, h2, h3, h4, h5 {
    font-family: 'Newsreader', serif;
    color: var(--text-dark);
    font-weight: 400;
}

.section-label {
    font-family: 'Public Sans', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--everton-blue);
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.section-divider {
    width: 60px;
    height: 2px;
    background: var(--everton-blue);
    margin-bottom: 2rem;
}

.section-divider.center {
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   BUTTONS
============================================ */
.btn-everton {
    font-family: 'Public Sans', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.9rem 2.25rem;
    border-radius: 0;
    background: var(--everton-blue);
    color: #fff;
    border: 2px solid var(--everton-blue);
    transition: all 0.3s ease;
}

.btn-everton:hover {
    background: var(--everton-deep);
    border-color: var(--everton-deep);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 51, 153, 0.2);
}

.btn-everton-outline {
    font-family: 'Public Sans', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.9rem 2.25rem;
    border-radius: 0;
    background: transparent;
    color: var(--everton-blue);
    border: 2px solid var(--everton-blue);
    transition: all 0.3s ease;
}

.btn-everton-outline:hover {
    background: var(--everton-blue);
    color: #fff;
    transform: translateY(-2px);
}

/* ============================================
   NAVIGATION (shared chrome)
   NOTE: .navbar / .navbar.scrolled background rules are
   NOT here — index.html's nav starts transparent over a
   full-bleed hero, kindness/project's nav is always on a
   white surface. Each page sets that part itself.
============================================ */
.navbar {
    padding: 1.25rem 0;
    transition: all 0.4s ease;
}

.navbar.scrolled {
    padding: 0.75rem 0;
}

.navbar-brand {
    font-family: 'Newsreader', serif;
    font-size: 1.75rem;
    font-weight: 600;
/*    color: var(--everton-blue) !important;*/
    color: #000 !important;
    letter-spacing: -0.02em;
}

.navbar-nav .nav-link {
    font-family: 'Public Sans', sans-serif;
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-dark) !important;
    padding: 0.5rem 1.25rem !important;
    position: relative;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 1.5px;
    background: var(--everton-blue);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 20px;
}

.navbar-nav .nav-link:hover {
    color: var(--everton-blue) !important;
}

.navbar-toggler {
    border: none;
    padding: 0;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* Custom hamburger icon (replaces Bootstrap's default SVG).
   Built as three bars via ::before / ::after so it actually
   renders as a hamburger — the version this was copied from
   only styled the middle bar and left the other two out. */
.navbar-toggler-icon {
    width: 24px;
    height: 2px;
    background: var(--text-dark);
    position: relative;
    display: block;
    transition: 0.3s;
}

.navbar-toggler-icon::before,
.navbar-toggler-icon::after {
    content: '';
    position: absolute;
    left: 0;
    width: 24px;
    height: 2px;
    background: var(--text-dark);
    transition: 0.3s;
}

.navbar-toggler-icon::before { top: -8px; }
.navbar-toggler-icon::after  { top: 8px; }

@media (max-width: 991px) {
    .navbar-collapse {
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        padding: 1.5rem;
        margin-top: 0.75rem;
        box-shadow: 0 10px 30px rgba(0, 51, 153, 0.08);
    }

    .navbar-nav .nav-link {
        padding: 0.6rem 0 !important;
    }
}

/* ============================================
   SCROLL-REVEAL ANIMATION
   (driven by the IntersectionObserver in each page's
   own script block — see reveal / reveal-left / reveal-right)
============================================ */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }

/* ============================================
   REUSABLE DECORATIVE DEVICES
   (background numerals, corner washes, offset photo
   frames, lead lines — available to any page/section
   that wants the more editorial, "designed" treatment)
============================================ */
.section-decor-wrap {
    position: relative;
}

.section-bg-numeral {
    position: absolute;
    font-family: 'Newsreader', serif;
    font-style: italic;
    font-weight: 500;
    font-size: clamp(9rem, 18vw, 16rem);
    line-height: 1;
    color: var(--everton-blue);
    opacity: 0.05;
    z-index: 0;
    pointer-events: none;
    user-select: none;
}

.section-corner-wash {
    position: absolute;
    width: 55%;
    height: 120%;
    background: var(--everton-light);
    z-index: 0;
    pointer-events: none;
}

.section-corner-wash.left {
    top: -10%;
    left: -12%;
    border-radius: 0 0 40% 0;
}

.section-corner-wash.right {
    top: -10%;
    right: -12%;
    border-radius: 0 0 0 40%;
}

.image-frame {
    position: relative;
}

.image-frame::before {
    content: '';
    position: absolute;
    top: -18px;
    left: -18px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--everton-blue);
    opacity: 0.2;
    z-index: -1;
}

.image-frame.frame-right::before {
    left: auto;
    right: -18px;
}

.image-caption {
    font-family: 'Public Sans', sans-serif;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-top: 1rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.image-caption::before {
    content: '';
    width: 22px;
    height: 1px;
    background: var(--accent-gold);
    display: inline-block;
}

.lead-line {
    font-family: 'Newsreader', serif;
    font-style: italic;
    font-size: 1.3rem;
    color: var(--text-dark);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

@media (max-width: 991px) {
    .section-bg-numeral {
        font-size: 6rem;
        opacity: 0.04;
    }

    .section-corner-wash {
        width: 80%;
    }

    .image-frame::before {
        display: none;
    }
}

/* ============================================
   IMAGE PLACEHOLDERS
   (used by any page while an image slot is still
   waiting to be populated with a real photo)
============================================ */
.img-placeholder {
    background: var(--warm-stone);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Public Sans', sans-serif;
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--text-muted);
    text-align: center;
    padding: 1.5rem;
    line-height: 1.5;
    position: relative;
}

.img-placeholder::before {
    content: '';
    position: absolute;
    inset: 8px;
    border: 1px dashed rgba(0, 0, 0, 0.1);
}

/* ============================================
   FOOTER
============================================ */
footer {
    background: var(--text-dark);
    color: rgba(255, 255, 255, 0.5);
    padding: 4rem 0 2rem;
}

.footer-brand {
    font-family: 'Newsreader', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 1rem;
}

.footer-tagline {
    font-size: 0.9rem;
    max-width: 300px;
    line-height: 1.6;
}

.footer-links h6 {
    font-family: 'Public Sans', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.25rem;
}

.footer-links a {
    display: block;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 0.3rem 0;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #fff;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s ease;
    margin-right: 0.5rem;
}

.footer-social a:hover {
    background: var(--everton-blue);
    border-color: var(--everton-blue);
    color: #fff;
}

.footer-bottom {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.8rem;
}
