/* --- RESET & VARIABLES --- */

:root {
    --bg-white: #ffffff; /* Slightly off-white for paper feel */
    --bg-black: #252121; /* Softer black */
    --text-black: #000000;
    --text-white: #ffffff;
    
    --font-heading: 'PP Editorial New', serif;
    --font-body: 'PP Editorial New', serif;
}


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

html {
  scroll-behavior: smooth
}

body {
    background-color: var(--bg-white);
    color: var(--text-black);
    font-family: var(--font-body);
    font-size: 20px;
    font-weight: 300;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- LOADING SCREEN STYLES (CORRECTED) --- */

#intro-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-white);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 1s ease-in-out, visibility 1s;
}

.loader-names {
    /* CRITICAL FIX: This allows the transform/scale to work */
    display: block; 
    
    font-family: var(--font-heading);
    font-size: 2rem;
    letter-spacing: -1px;
    text-transform: uppercase;
    color: var(--text-black);
    will-change: transform, opacity;
    
    /* Animation: Zoom and Fade In */
    animation: continuousZoom 4s ease-out forwards;
}

@keyframes continuousZoom {
    0% {
        opacity: 0;
        transform: scale(0.85); /* Start slightly smaller */
    }
    15% {
        opacity: 1; /* Fade in quickly */
    }
    100% {
        opacity: 1;
        transform: scale(1); /* End larger (Zoom In) */
    }
}

.fade-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

@media (min-width: 900px) {
    .loader-names {
        font-size: 64px;
    }
}


/* --- UTILITY CLASSES --- */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.italic { font-style: italic }

.section-dark {
    background-color: var(--bg-black);
    color: var(--text-white);
    padding: 120px 0;
}

.section-light {
    background-color: var(--bg-white);
    color: var(--text-black);
    padding: 120px 0;
}

#gifts {
    padding: 120px 0 30px;   
}
/* --- TYPOGRAPHY --- */
h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: 400; /* Regular weight for elegant look */
    letter-spacing: -1px;
    text-transform: uppercase;
}

span {
     font-family: var(--font-heading);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.section-subtitle {
    font-size: 1rem;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 60px;
    max-width: 400px;
    opacity: 0.9;
}

/* --- HEADER & NAV --- */
.site-header {
    padding: 40px 20px 60px;
    text-align: center;
}

.top-nav {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto 80px;
    font-family: var(--font-body);
    font-size: 1rem;
}

.brand-name {
    font-size: 1.5rem;
    letter-spacing: -1px;
}

.nav-left, .nav-right {
    display: none; /* Hidden on mobile initially */
}

.top-nav a {
    text-decoration: none;
    color: var(--text-black);
    margin: 0 15px;
}

.hero-content .main-title {
    font-size: 2.5rem; /* Mobile Size */
    margin-bottom: 30px;
    letter-spacing: -1px;
}

.hero-details p {
    margin: 5px 0;
}

/* --- ITINERARY SECTION (Timeline) --- */
.timeline-wrapper {
    margin-top: 90px;
}

/* Mobile Vertical Timeline */
.timeline-events {
    display: flex;
    flex-direction: column;
    gap: 30px;
    position: relative;
    padding-left: 20px;
    border-left: 1px solid rgba(255,255,255, 1);
    text-align: left;
    margin-left: 20px;
}

.event-title {
    display: block;
    font-family: var(--font-heading);
    font-size: 1em;
    margin-bottom: 5px;
}

.event-details {
    font-size: 1rem;
    line-height: 1.4;
}


/* --- ACCOMMODATION --- */
.accommodation-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    position: relative;
}

.accommodation-grid .section-title {
    margin-bottom: 30px;
}

.narrow-text {
    max-width: 800px;
    margin: 0 auto;
}

/* --- THREE COLUMN GRIDS (Plan & Footer) --- */
.three-col-grid {
    display: grid;
    grid-template-columns: 1fr;
/*    gap: 40px;*/
}

.column-header {
    font-size: 1.25rem;
    margin-bottom: 5px;
}

.column-header-large {
    font-size: 2.25rem;
    margin-bottom: 20px;
}

.event-meta,
.event-desc {
    font-size: 1rem;
}

.event-meta {
  font-style: italic
}

/* --- FOOTER ELEMENTS --- */
.monogram-container {
    position: relative;
}


.bottom-bar {
    border-top: 1px solid #000000;
    padding: 60px 0 20px; 
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 1.25rem;
    font-style: italic;
    
}

.bottom-bar > .flex-col {
    flex: 1 0 30%;
}

.bottom-bar .date,
.bottom-bar .location {
    line-height: 1.1;
    display: inline-block;
}


/* --- PLACEHOLDERS FOR SKETCHES --- */
.sketch-box {
    padding: 20px;
    color: #666;
    font-size: 1rem;
    display: inline-block;
}

.landscape-sketch {
    padding: 4rem 1rem;
}

.estate-sketch {
    padding: 4rem 1rem 6rem;
}


.max-w-1200 {
    max-width: 1200px;
}


.event,
.plan {
    position: relative;
    flex: 1;
}

/* The "Tick" Mark */
.event::before {
    content: '';
    position: absolute;
    top: 5px; /* Pulls it up to the line */
    left: -14px;
    transform: rotate(90deg);
    height: 15px;
    width: 1px;
    background-color: white;
}

.relative-container { position: relative; }

@media (max-width: 768px) {
    h1,h2,h3 {
        line-height: 1.25;
    }
    .estate-sketch {
        padding: 4rem 1rem;
    }
    .estate-sketch img {
        width: 100%;
        height: auto;
    }
    .bottom-bar {
        flex-direction: column;
        gap: 3rem;
    }



    #itinerary {
        padding: 360px 0;
    }

    #accommodation {
        padding: 70px 0;
    }
    #gifts {
        padding: 90px 0 60px;
    }
    .three-col-grid {
      gap: 40px;
      padding: 2rem 3rem;
    }

    .timeline-events {
        border-left: transparent
    }

    .timeline-events::before {
        content:'';
        display: block;
        background: #ffffff;
        position: absolute;
        height: 524px;
        width: 1px;
        left: -1px;
        top: 13px;
    }


}

@media (max-width: 899px) {
    .sketch-absolute {
        position: absolute;
    }
    .left-sketch { 
        left: 50%; top: -42.5%; transform:translateX(-50%)
    }
    .right-sketch { 
        left: 50%; bottom: -47.5%; transform:translateX(-50%)
    }
}

/* =========================================
   DESKTOP / TABLET RESPONSIVENESS
   ========================================= */

@media (min-width: 900px) {
    
    /* NAV */
    .nav-left, .nav-right { display: block; }
    .top-nav { width: 100%; justify-content: space-evenly; }
    .brand-name { font-size: 2rem}
    .main-title { padding: 3rem 1rem 1rem }

    /* HERO */
    .hero-content .main-title { font-size: 3rem; }


    .timeline-line {
        width: 82.1%;
        height: 1px;
        background-color: white;
        margin: 0 auto;
        margin-bottom: 30px;
    }

    .timeline-events {
        flex-direction: row;
        border-left: none;
        padding-left: 0;
        margin-left: 0;
        justify-content: space-between;
        text-align: center;
    }

    /* The "Tick" Mark */
    .event::before {
        content: '';
        position: absolute;
        top: -30px; /* Pulls it up to the line */
        left: 50%;
        transform: translateX(-50%);
        height: 15px;
        width: 1px;
        background-color: white;
    }

    /* Sketches positioning */
    .sketch-absolute {
        display: block;
        position: absolute;
        top: -25%;
    }

    .left-sketch { left: 14%; }
    .right-sketch { right: 11%; }


    /* ACCOMMODATION */
    .accommodation-grid {
        flex-direction: row;
        justify-content: center;
    }
    .col-text { flex: 2; margin: 0 40px; }
    .col-sketch { position: absolute;  }
    .col-sketch-left {
        left: 2.5%;
        top: -25%;
    }
    .col-sketch-right {
        right: -5%;
        top: 75%;
    }
    .col-sketch-left img,  
    .col-sketch-right img{
        max-width: 75%;
        height: auto;
    }

    /* GRIDS */
    .three-col-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }

    /* FOOTER */
    .three-col-grid.no-border .grid-item { border-right: none; }

    #itinerary .section-title {
        margin-bottom: 20px
    }

    #plan h2 {
        line-height: 1.35;
        margin-bottom: 50px;
    }
}

@media (min-width: 1440px) {
   .col-sketch-left {
        left: -10%;
        top: -2.5%;
    }
    .col-sketch-right {
        right: -12.5%;
        top: 30%;
    }
    .col-sketch-left img,  
    .col-sketch-right img{
        max-width: 100%;
        height: auto;
    }
}
