/* ==========================================================
   Charles E. Chaltron Memorial Website
   Phase 1 - style.css (Part 1)
   Elegance Through Simplicity
========================================================== */

/* ---------- COLOR PALETTE ---------- */

:root{

    --background:#F8F7F3;
    --white:#FFFFFF;

    --charcoal:#2B2B2B;

    --forest:#31513B;

    --forest-light:#456D53;

    --gold:#C8A24A;

    --wood:#8A6A44;

    --bridge:#5B7C99;

    --cream:#F8F7F3;

    --soft-gray:#E9E6DF;

}

/* ---------- RESET ---------- */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{

    scroll-behavior:smooth;

}

body{

    font-family:'Source Sans 3',sans-serif;

    background:var(--cream);

    color:var(--charcoal);

    line-height:1.7;

    overflow-x:hidden;

}

/* ---------- TYPOGRAPHY ---------- */

h1,h2,h3{

    font-family:'Cormorant Garamond',serif;

    font-weight:600;

    letter-spacing:.5px;

}

h1{

    font-size:4rem;

    margin-bottom:15px;

}

h2{

    font-size:2.7rem;

    margin-bottom:25px;

    color:var(--charcoal);

}

p{

    font-size:1.1rem;

    color:#555;

}

a{

    text-decoration:none;

    color:white;

}

/* ---------- CONTAINER ---------- */

.container{

    width:90%;

    max-width:1200px;

    margin:auto;

}

section{

    padding:110px 0;

}

/* ---------- NAVIGATION ---------- */

#navbar{

    position:fixed;

    top:0;

    left:0;

    width:100%;

    height:75px;

    display:flex;

    justify-content:space-between;

    align-items:center;

    padding:0 60px;

    background:rgba(49,81,59,.82);

    backdrop-filter:blur(12px);

    z-index:999;

    transition:.4s;

}

#navbar.scrolled{

    background:rgba(49,81,59,.95);

}

.logo{

    color:white;

    font-size:1.9rem;

    font-family:'Cormorant Garamond',serif;

    letter-spacing:2px;

}

.nav-links{

    list-style:none;

    display:flex;

    gap:38px;

}

.nav-links a{

    font-size:1rem;

    text-transform:uppercase;

    letter-spacing:1px;

    transition:.3s;

}

.nav-links a:hover{

    color:var(--gold);

}

#mobile-button{

    display:none;

    color:white;

    font-size:2rem;

    cursor:pointer;

}

/* ---------- HERO ---------- */

#hero{

    position:relative;

    min-height:100vh;

    display:flex;

    align-items:center;

    justify-content:center;

    text-align:center;

    overflow:hidden;

    background-image:url("../images/mackinac-hero.jpg");

    background-size:cover;

    background-position:center;

    background-repeat:no-repeat;

}

#hero::before{

    content:"";

    position:absolute;

    inset:0;

    background:rgba(15,20,20,.55);

    z-index:1;

}

.hero-overlay{

    position:relative;

    z-index:2;

    max-width:900px;

    padding:20px;

}

.hero-overlay h1{

    color:white;
    text-shadow:0 3px 12px rgba(0,0,0,.65);

}

.hero-overlay h2{

    color:#ddd;

    font-size:1.8rem;

    margin-bottom:35px;

}

.hero-overlay p{

    color:white;

    font-size:1.3rem;

    margin-bottom:45px;

    line-height:2;

}

.hero-button{

    padding:16px 36px;

    border:2px solid white;

    border-radius:50px;

    transition:.35s;

    font-size:1rem;

}

.hero-button:hover{

    background:white;

    color:#222;

}

.scroll-indicator{

    position:absolute;

    bottom:40px;

    font-size:2rem;

    animation:bounce 2.5s infinite;

}

/* ---------- STORY ---------- */

.two-column{

    display:grid;

    grid-template-columns:420px 1fr;

    gap:70px;

    align-items:center;

}

.photo img{

    width:100%;

    border-radius:10px;

    box-shadow:0 20px 50px rgba(0,0,0,.18);

}

.gold-line{

    width:80px;

    height:3px;

    background:var(--gold);

    margin-bottom:30px;

}

.gold-line.center{

    margin:0 auto 30px;

}

.section-intro{

    max-width:700px;

    margin:auto;

    text-align:center;

}

/* ---------- DARK SECTION ---------- */

.dark{

    background:#222;

    color:white;

}

.dark h2{

    color:white;

}

.dark p{

    color:#d9d9d9;

}

/* ---------- GALLERY PREVIEW ---------- */

.gallery-preview{

    margin-top:60px;

    display:grid;

    grid-template-columns:repeat(3,1fr);

    gap:30px;

}

.placeholder{

    height:240px;

    background:#333;

    border:2px dashed rgba(255,255,255,.25);

    display:flex;

    justify-content:center;

    align-items:center;

    color:#bbb;

    font-size:1.1rem;

    border-radius:8px;

}

/* ---------- SIMPLE FADE ---------- */

.fade{

    opacity:0;

    transform:translateY(40px);

    transition:all .8s ease;

}

.fade.show{

    opacity:1;

    transform:translateY(0);

}

/* ---------- BOUNCE ---------- */

@keyframes bounce{

0%,100%{

transform:translateY(0);

}

50%{

transform:translateY(10px);

}

}

/* ==========================================================
   Phase 1 - style.css (Part 2)
========================================================== */

/* ---------- TIMELINE ---------- */

.light{
    background:#f2f2ef;
}

.timeline{
    margin-top:70px;
    display:flex;
    justify-content:space-between;
    gap:25px;
    flex-wrap:wrap;
}

.event{
    flex:1;
    min-width:180px;
    background:white;
    border-radius:10px;
    padding:30px;
    text-align:center;
    box-shadow:0 10px 30px rgba(0,0,0,.08);
    transition:.3s;
    border-top:4px solid var(--gold);
}

.event:hover{
    transform:translateY(-8px);
    box-shadow:0 18px 40px rgba(0,0,0,.12);
}

.event span{
    display:block;
    font-family:'Cormorant Garamond',serif;
    font-size:1.7rem;
    color:var(--blue-dark);
    margin-bottom:12px;
}

.event p{
    color:#666;
}

/* ---------- FAMILY ---------- */

.family-grid{
    margin-top:60px;
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:30px;
}

.family-card{
    background:white;
    border-radius:10px;
    min-height:220px;
    display:flex;
    justify-content:center;
    align-items:center;
    font-size:1.4rem;
    color:var(--gray);
    box-shadow:0 12px 35px rgba(0,0,0,.08);
    transition:.3s;
}

.family-card:hover{
    transform:translateY(-8px);
    box-shadow:0 18px 40px rgba(0,0,0,.12);
}

/* ---------- FOOTER ---------- */

footer{
    background:#1e1e1e;
    color:white;
    text-align:center;
    padding:90px 20px;
}

footer h2{
    color:white;
    margin-bottom:20px;
}

footer p{
    color:#d7d7d7;
    max-width:750px;
    margin:0 auto 40px;
}

.signature{
    font-family:'Cormorant Garamond',serif;
    font-size:2rem;
    color:var(--gold);
    letter-spacing:1px;
}

/* ---------- BUTTONS ---------- */

button,
.hero-button{
    cursor:pointer;
}

/* ---------- IMAGE RULES ---------- */

img{
    display:block;
    max-width:100%;
    height:auto;
}

/* ---------- MOBILE ---------- */

@media (max-width:1000px){

    h1{
        font-size:3rem;
    }

    h2{
        font-size:2.2rem;
    }

    .two-column{
        grid-template-columns:1fr;
        text-align:center;
    }

    .photo{
        max-width:450px;
        margin:auto;
    }

    .gallery-preview{
        grid-template-columns:1fr;
    }

    .family-grid{
        grid-template-columns:1fr;
    }

    .timeline{
        flex-direction:column;
    }

}

@media (max-width:768px){

    #navbar{
        padding:0 25px;
        height:70px;
    }

    .nav-links{
        position:absolute;
        top:70px;
        left:0;
        width:100%;
        background:rgba(20,20,20,.96);
        display:none;
        flex-direction:column;
        text-align:center;
        padding:30px 0;
        gap:25px;
    }

    .nav-links.active{
        display:flex;
    }

    #mobile-button{
        display:block;
    }

    h1{
        font-size:2.5rem;
    }

    .hero-overlay h2{
        font-size:1.4rem;
    }

    .hero-overlay p{
        font-size:1.1rem;
    }

    .hero-button{
        padding:14px 28px;
    }

    section{
        padding:80px 0;
    }

}

@media (max-width:480px){

    h1{
        font-size:2rem;
    }

    h2{
        font-size:1.8rem;
    }

    p{
        font-size:1rem;
    }

    #hero{
        background-attachment:scroll;
    }

    .container{
        width:92%;
    }

}

/* ---------- ACCESSIBILITY ---------- */

@media (prefers-reduced-motion:reduce){

    *{
        animation:none !important;
        transition:none !important;
        scroll-behavior:auto !important;
    }

}

.nav-links a.current{

    color:var(--gold);

}

.hero-placeholder{
    min-height:300px;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:1.3rem;
}