@font-face {
  font-family: 'BlackEditorialScript';
  src: url('./assets/fonts/gr-alternate.otf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap; 
}

.new-font {
    font-family: 'BlackEditorialScript', sans-serif !important;
    color: black;
}

/* --- Core Base Styles & Custom Variables --- */
:root {
    --color-white: #fAF6EC;
    --color-white-rgb: 250, 246, 236; 
    --color-bg: #FAF6EC;         /* Soft warm cream canvas */
    --color-primary: #546030;    /* Elegant muted olive green */
    --color-text: #2C2C28;       /* Sophisticated deep slate charcoal */
    --color-accent: #5C2A4D;     /* Earthy taupe/gold accent */
    --font-serif: 'Cormorant Garamond', serif;
    --font-sans: 'Raleway', Arial, sans-serif;
    --font-title: "IM Fell English", Georgia, serif;
    --transition-speed: 0.3s;
}

* {
    margin: 0;
    padding: 0;
}

html, body {
    width: 100%;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

h1 {
    font-family: var(--font-serif);
    text-transform: uppercase;
    font-size: 2.5rem;
    font-weight: 500;
    color: var(--color-text);
}

h3 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--color-text);
    font-style: italic;
}

p {
    font-size: 1rem;
    font-weight: 500;
    color: #3b3931;
    font-family: var(--font-sans);
}

#wedding-timeline,
#count-down,
#bridal-party,
#faq {
    padding: 64px 24px 64px 24px;
}

@media (max-width: 768px) {
    h1 {
        font-size: 3rem;
        padding-top: 16px;
    }

    #wedding-timeline,
    #count-down,
    #bridal-party,
    #faq {
        padding: 32px 24px 48px 24px;
    }
}

/* --- Navbar -- */
/* Navbar Wrapper */
.navbar {
    font-family: var(--font-sans);
    text-transform: uppercase;
    letter-spacing: 22%;
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    /* Transparent background with a modern glass blur effect */
    background-color: rgba(166, 159, 149, 0.1); 
    backdrop-filter: blur(1.5px);
    -webkit-backdrop-filter: blur(1.5px);
   
    transition: background-color 0.3s ease;
}

/* Navbar Content Container */
.nav-container {
    display: flex;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 70px;
    align-items: center;
}

/* Typography & Links */
.nav-links a {
    color: rgba(var(--color-white-rgb), 0.9);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s ease;
    padding: 0px 8px;
}
.nav-links a:hover {
    color: white;
}

/* Alignment within the grid columns */
.left-links {
    display: flex;
    gap: 2rem;
    justify-content: flex-start;
}
.right-links {
    display: flex;
    gap: 2rem;
    justify-content: flex-end;
}

.nav-logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-logo a {
    display: inline-flex;
    height: 100%;
}

.nav-logo a img {
    height: 32px;
    display: block;
}

/* Hide Mobile Elements by Default */
.mobile-menu-toggle, .mobile-menu {
    display: none;
}

/* ==========================================================================
   Responsive Mobile Styles (Screens smaller than 768px)
   ========================================================================== */
@media (max-width: 768px) {
    .nav-container {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        align-items: center;
    }
    
    .nav-logo {
        grid-column: 2;
        justify-self: center;
    }

    /* Hide desktop link columns */
    .nav-links {
        display: none;
    }

    /* Hamburger Menu Button */
    .mobile-menu-toggle {
        grid-column: 3;
        justify-self: end;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 24px;
        height: 18px;
        background: transparent;
        border: none;
        cursor: pointer;
    }
    .mobile-menu-toggle .bar {
        width: 100%;
        height: 2px;
        background-color: #fff;
        transition: all 0.3s ease;
    }

    /* Transform burger bars into an 'X' when active */
    .mobile-menu-toggle.is-active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .mobile-menu-toggle.is-active .bar:nth-child(2) {
        opacity: 0;
    }
    .mobile-menu-toggle.is-active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* Fullscreen/Dropdown Mobile Menu Drawer */
    .mobile-menu {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        position: fixed;
        top: 70px; /* Aligns right under the navbar header */
        left: 0;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: rgba(17, 17, 17, 0.95);
        backdrop-filter: blur(15px);
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
    }
    .mobile-menu.is-open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }
    .mobile-menu a {
        color: #fff;
        font-size: 1.5rem;
        text-decoration: none;
        font-weight: 600;
    }
}


/* --- Hero Section & Custom Components --- */
.hero-section {
    margin-top: -70px;

    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;

    /* Extra top padding keeps the greeting clear of the transparent floating header elements */
    /*padding: 180px 20px 100px 20px; */
    /*background: radial-gradient(circle, rgba(247,243,235,1) 0%, rgba(253,251,247,1) 100%);*/
    /* Forces the element to match the exact viewport dimensions */
    width: 100vw;
    height: 100dvw; 
    height: 100dvh;
    
    /* Background image properties */
    background-image: linear-gradient(rgba(0,0,0,0.10), rgba(0,0,0,0.10)), url('./assets/castle-water-colour.png');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.hero-section .title {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 24px;
}

.hero-section .title .subtitle {
    font-family: var(--font-serif);
    font-weight: 500;
    letter-spacing: 10%;
    font-size: 2rem;
    text-transform: uppercase;
    color: var(--color-white);
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
}

.hero-section .title .header {
    font-family: var(--font-title);
    font-weight: 400;
    font-size: 4rem;
    font-style: italic;
    color: var(--color-white);
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
}

.hero-section-blurr {
    width: 100%;
    height: 75px;
    margin-top: -75px;
    align-self: flex-end;
    background: linear-gradient(to top, var(--color-white), transparent);
    border-bottom: 10px solid rgba(250, 246, 236, 0.5); /* using your #FAF6EC at 50% */
}

@media (max-width: 768px) {
    .hero-section .title {
        gap: 12px;
    }

    .hero-section .title .subtitle {
        font-size: 1.75rem;
        width: 80%;
    }

    .hero-section .title .header {
        font-size: 2.5rem;
    }
}


/* --- Countdown Timer --- */
#count-down {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background-color: var(--color-primary);
    color: var(--color-white);
    gap: 24px;
}

#count-down h1 {
    color: var(--color-white);
}

.timer-display {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.time-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 86px;
}

.number, .separator {
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: 4rem;
    line-height: 1;
}

.separator {
    padding: 0px 4px;
}

.label {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 22%;
    text-transform: uppercase;
    margin-top: 0.8rem;
}

@media (max-width: 768px) {
    #count-down {
        height: 100dvh;
        box-sizing: border-box; /* This keeps padding inside the lines */
    }

    #count-down h1 {
        width: 90%;
        font-size: 3rem;
        text-align: center;
    }

    .number, .separator {
        font-size: 2.5rem;
    }

    .time-block {
        min-width: 16%;
    }
}


/* --- TIMELINE --- */
#wedding-timeline {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
    gap: 32px;
    box-sizing: border-box; /* This keeps padding inside the lines */
}

.timeline-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    overflow: visible;
    position: relative;
    box-sizing: border-box; /* This keeps padding inside the lines */
}

.timeline-event {
    width: 100%;
    display: flex;
}

.timeline-event div {
    position: relative;
    min-width: 50%;
    max-width: 50%;
    height: 135px;
    padding: 12px 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box; /* This keeps padding inside the lines */
}

.timeline-event div.right {
    text-align: right;
    align-items: end;
}

.timeline-event div.left {
    text-align: left;
    border-left: 1px solid var(--color-text);
    align-items: start;
}

/* 2. The Circle (The Dot) */
.timeline-event div.left::before {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    background-color: var(--color-text);
    border-radius: 50%;
    
    /* Pins it precisely in the center of the vertical line */
    left: -0.5px;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: -1; /* Ensures it sits on top of the line */
}

.timeline-event div img {
    height: 75px;
}

#timeline-camera {
    height: 65px;
}

#timeline-hair-and-makeup {
    height: 80px;
}

#timeline-plate {
    height: 90px;
}

#timeline-castle, #timeline-car {
    height: 120px;
}

#timeline-champagne, #timeline-pub {
    height: 135px;
}

@media (max-width: 768px) {


    .timeline-event div {
        height: 175px;
        padding: 0px;
    }

    .timeline-event div.left {
        padding-left: 32px;
    }

    .timeline-event div.right {
        padding-right: 32px;
    }

    #wedding-timeline h1 {
        width: 80%;
    }
}


/* --- BRIDAL PARTY --- */
#bridal-party {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
    gap: 32px;
    box-sizing: border-box; /* This keeps padding inside the lines */
}

#bridal-party #bridesmaids,  #bridal-party #groomsmen {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 32px;
}

#bridal-party #bridesmaids p,  #bridal-party #groomsmen p {
    text-transform: uppercase;
    letter-spacing: 1px;
}

#bridal-party #bridesmaids img,  #bridal-party #groomsmen img {
    width: 200px;
    filter: grayscale(100%);
}

@media (min-width: 769px) {
    #bridal-party {
        height: 100dvh;
    }
}

@media (max-width: 768px) {
    #bridal-party #bridesmaids,  #bridal-party #groomsmen {
        flex-wrap: wrap;
    }

    #bridal-party #bridesmaids img,  #bridal-party #groomsmen img {
        width: 90%;
    }
}

/* --- FAQ --- */
section#faq {
    background-color: var(--color-primary);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
    gap: 32px;
}

#faq h1 {
    color: var(--color-white);
}

#faq .question-block {
    width: 60%;
}

#faq p {
    color: var(--color-white);
    text-align: left;
}

#faq p.question {
    font-family: var(--font-serif);
    font-size: 24px;
}

#faq p.answer {
    padding-top: 12px;
}

#faq ul {
    padding-left: 16px;
    padding-top: 12px;
    color: var(--color-white);
}

#faq li {
    padding-top: 12px;
}

#faq a {
    text-decoration: none;
}

#faq a:hover {
    color: rgba(var(--color-white-rgb), 1);
    text-decoration: none;
    transition: color 0.2s ease;
}


/* --- FOOTER --- */
footer {
    text-align: center;
}