:root {
	--color-lightblue: #6E8FA5;
	--color-darkblue: #3D5570;
	--color-sagegreen: #84A578;
	--color-darkgreen: #344E3B;
	--color-grey: #CCCCCC;
	--color-white: #FFFFFF;
	--color-darkgrey: #737373;
	
	--font-display: 'Cormorant Garamond', Georgia, serif;
	--font-body: 'Lato', -apple-system, sans-serif;
	--font-script: 'Parisienne', cursive;
}


/* Navigation */

.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1.25rem 0;
    background: transparent;
    transition: background 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
}

/* Solid state — applied via JS after scrolling past hero */
.site-nav.scrolled {
    background: var(--color-white);
    padding: 0.75rem 0;
    box-shadow: 0 2px 12px rgba(61, 85, 112, 0.08);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}


/* Desktop menu */
.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2.5rem;
}

.nav-link {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-white);
    text-decoration: none;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.2s ease;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

/* Underline hover effect */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 1px;
    background: currentColor;
    transition: width 0.3s ease, left 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
    left: 0;
}

/* When scrolled, links flip to dark on white background */
.site-nav.scrolled .nav-link {
    color: var(--color-darkblue);
    text-shadow: none;
}

/* Hamburger button — hidden on desktop */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    width: 44px;
    height: 44px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    z-index: 101;
}

.hamburger-line {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-white);
    transition: transform 0.3s ease, opacity 0.3s ease, background 0.3s ease;
}

.site-nav.scrolled .hamburger-line {
    background: var(--color-darkblue);
}

/* Animated X when menu is open */
.nav-toggle.active .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ============ MOBILE NAV ============ */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: 75%;
        max-width: 320px;
        background: var(--color-white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        padding: 2rem;
        transform: translateX(100%);
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -4px 0 20px rgba(61, 85, 112, 0.1);
    }

    .nav-menu.active {
        transform: translateX(0);
    }

    .nav-menu .nav-link {
        font-family: var(--font-display);
        font-size: 1.5rem;
        font-weight: 400;
        letter-spacing: 0.15em;
        color: var(--color-darkblue);
        text-shadow: none;
    }

    .nav-container {
        padding: 0 1.5rem;
    }
}

/** Hero Section **/
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    background-image: url('../images/hero.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-white);
	
	--fade-amount: 0;  /* 0 = no fade at rest, 1 = full fade */

    -webkit-mask-image: linear-gradient(
        to bottom,
        black 0%,
        black calc(100% - (40% * var(--fade-amount))),
        rgba(0, 0, 0, 0.85) calc(100% - (28% * var(--fade-amount))),
        rgba(0, 0, 0, 0.55) calc(100% - (16% * var(--fade-amount))),
        rgba(0, 0, 0, 0.2) calc(100% - (5% * var(--fade-amount))),
        transparent 100%
    );
    mask-image: linear-gradient(
        to bottom,
        black 0%,
        black calc(100% - (40% * var(--fade-amount))),
        rgba(0, 0, 0, 0.85) calc(100% - (28% * var(--fade-amount))),
        rgba(0, 0, 0, 0.55) calc(100% - (16% * var(--fade-amount))),
        rgba(0, 0, 0, 0.2) calc(100% - (5% * var(--fade-amount))),
        transparent 100%
    );
    transition: --fade-amount 0.1s linear;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 2rem;
}

.hero-names {
    font-family: var(--font-script);
    font-weight: 400;
    font-size: clamp(2rem, 11vw, 7rem);
    line-height: 1;
    margin-top: 0;
    margin-bottom: 0.25rem;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
}

.hero-names .initial-sage {
    color: var(--color-sagegreen);
}

.hero-names .initial-blue {
    color: var(--color-lightblue);
}


.hero-date {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: clamp(1rem, 2vw, 1.25rem);
    letter-spacing: 0.15em;
}

.countdown {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    max-width: 640px;
    margin: 0.5rem auto 0;
}

.countdown-unit {
    position: relative;
    padding: 0.5rem 1rem;
    text-align: center;
}

/* Hairline dividers between units */
.countdown-unit:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 20%;
    bottom: 20%;
    width: 1px;
    background: var(--color-white, #FFFFFF);
    opacity: 0.3;
}

.countdown-number {
    display: block;
    font-family: var(--font-display);
    font-weight: 300;
    font-size: clamp(2.5rem, 5.5vw, 4rem);
    line-height: 1;
    margin-bottom: 0.65rem;
    font-variant-numeric: tabular-nums;
    color: var(--color-white, #FFFFFF);
}

.countdown-label {
    display: block;
    font-weight: 300;
    font-size: clamp(0.65rem, 1vw, 0.78rem);
    letter-spacing: 0.35em;
    text-transform: uppercase;
    opacity: 0.85;
    color: var(--color-white, #FFFFFF);
}

@media (max-width: 600px) {
    .countdown { max-width: 340px; }
    .countdown-unit { padding: 0.5rem 0.4rem; }
}

/* ============ DETAILS SECTION ============ */
.details {
    background: var(--color-white);
    padding: 6rem 2rem 5rem;
    position: relative;
}

.details-container {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

.section-eyebrow {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--color-sagegreen);
    margin: 0 0 1rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400;
    color: var(--color-darkblue);
    margin: 0 0 4rem;
    line-height: 1.2;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-top: 3rem;
}

.detail-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 1rem;
}

.detail-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 1.5rem;
    color: var(--color-lightblue);
}

.detail-icon svg {
    width: 100%;
    height: 100%;
}

.detail-label {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--color-darkblue);
    margin: 0 0 1rem;
    opacity: 0.7;
}

.detail-value {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--color-darkblue);
    margin: 0;
}

/* Mobile */
@media (max-width: 768px) {
    .details {
        padding: 4rem 1.5rem 3.5rem;
    }

    .section-title {
        margin-bottom: 3rem;
    }

    .details-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .detail-card:not(:last-child)::after {
        content: '';
        display: block;
        width: 40px;
        height: 1px;
        background: var(--color-lightblue);
        opacity: 0.4;
        margin-top: 2.5rem;
    }
}


.section-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    width: 60%;
    max-width: 500px;
    margin: 0 auto;
    padding: 4rem 0;
}

.section-divider .divider-line {
    flex: 1;
    height: 1px;
    background: var(--color-lightblue);
    opacity: 0.5;
    max-width: 180px;
}

.section-divider .divider-ornament {
    font-size: 0.7rem;
    color: var(--color-lightblue);
    opacity: 0.7;
    flex-shrink: 0;
    line-height: 1;
}

/* ============ SCHEDULE SECTION ============ */
.schedule {
    background: var(--color-white);
    padding: 6rem 2rem 5rem;
    position: relative;
}

.schedule-container {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.timeline {
    position: relative;
    margin-top: 4rem;
    padding: 2rem 0;
}

/* Center vertical line */
.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    background: var(--color-lightblue);
    opacity: 0.4;
}

.timeline-event {
    position: relative;
    width: 50%;
    padding: 1.5rem 3rem;
    box-sizing: border-box;
}

.timeline-event-left {
    margin-right: auto;
    text-align: right;
}

.timeline-event-right {
    margin-left: auto;
    text-align: left;
}

/* Dot marker on the center line */
.timeline-marker {
    position: absolute;
    top: 50%;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--color-white);
    border: 2px solid var(--color-lightblue);
    transform: translateY(-50%);
    z-index: 2;
}

.timeline-event-left .timeline-marker {
    right: -5px;
}

.timeline-event-right .timeline-marker {
    left: -5px;
}

.timeline-time {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--color-darkblue);
    margin: 0 0 0.4rem;
    line-height: 1.2;
}

.timeline-label {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--color-darkblue);
    opacity: 0.75;
    margin: 0;
}

/* Mobile: collapse to single column with line on the left */
@media (max-width: 768px) {
    .schedule {
        padding: 4rem 1.5rem 3.5rem;
    }

    .timeline::before {
        left: 1rem;
        transform: none;
    }

    .timeline-event {
        width: 100%;
        padding: 1.25rem 0 1.25rem 3rem;
        text-align: left;
    }

    .timeline-event-left,
    .timeline-event-right {
        margin: 0;
        text-align: left;
    }

    .timeline-event-left .timeline-marker,
    .timeline-event-right .timeline-marker {
        left: calc(1rem - 5px);
        right: auto;
    }

    .timeline-time {
        font-size: 1.25rem;
    }
}