/*
Theme Name: Wedding Theme
Description: Custom wedding website theme
Version: 1.0
*/

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Playfair Display', serif;
    background-color: #fff;
    color: #000;
    overflow-x: hidden;
}

.container {
    height: 100vh;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: transparent;
    z-index: 1000;
    padding: 1rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.nav-logo {
    display: none;
}

/* Hamburger */
.hamburger {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    z-index: 1100;
    /* FIX */
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: #000;
    margin: 3px 0;
    transition: 0.3s;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 2rem;

    a {
        text-decoration: none;
        color: black;
        font-size: 25px;
    }
}

/* Mobile menu */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background-color: rgba(255, 255, 255, 0.95);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: left 0.3s;
        z-index: 1050;
        display: none;
    }

    .nav-menu.active {
        left: 0;
        display: flex;
    }
}

.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

.section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    scroll-snap-align: start;
    padding: 20px;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease, transform 1s ease;
}

.section.fade-in {
    opacity: 1;
    transform: translateY(0);
}

.content {
    max-width: 600px;
    width: 100%;
}

#opener .content {
    
}

h1 {
    font-size: 3rem;
    font-weight: 200;
    letter-spacing: 2px;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 300;
}

p {
    font-size: 1.2rem;
    line-height: 1.6;
    font-weight: 300;
}

/* Timeline styles */
/* === Timeline styles (enhanced) === */

.timeline {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    position: relative;
    padding-left: 10px;
    margin-top: 50px;
}

.event-text {
    margin-left: 9px;
    font-size: 12px;
    line-height: unset;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: black;
    border-radius: 2px;
}

/* Timeline icons — Font Awesome */

.timeline-icon {
    font-size: 2.6rem;
    line-height: 1;
    margin-left: 30px;
}

.timeline-icon i {
    color: #000;
}


/* Timeline events */
.event {
    display: flex;
    position: relative;
    align-items: center;
    padding: 1.2rem 1.2rem 1.2rem 60px;
    border-radius: 12px;
    text-align: left;

    /* animation base state */
    opacity: 0;
    transform: translateY(40px) scale(0.97);
    transition:
        opacity 0.8s ease,
        transform 0.8s ease;

    img {
        margin-top: -30px;
    }
}

/* Visible state */
.event.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Timeline dot */
.event::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 22px;
    width: 26px;
    height: 26px;
    background-color: white;
    background-size: 22px 22px;
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 50%;
    border: 4px solid #fff;
    box-shadow:
        0 0 0 2px #000,
        0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.timeline .event:nth-child(1)::before {
    background-image: url("img/icons8-eheringe-100.png");
}

/* Event 2 */
.timeline .event:nth-child(2)::before {
    background-image: url("img/icons8-champagner-100.png");
}

/* Event 3 */
.timeline .event:nth-child(3)::before {
    background-image: url("img/icons8-pizza-100.png");
}

/* Event 4 */
.timeline .event:nth-child(4)::before {
    background-image: url("img/icons8-party-100.png");
}

.timeline-icon {
    position: absolute;
    left: 10px;
    top: 28px;
    z-index: 2;
}

.timeline-icon img {
    width: 16px;
    height: 16px;
}

/* Time label */
.event time {
    font-weight: 400;
    display: block;
    font-size: 1.5rem;
    margin-bottom: 0.4rem;
    color: #222;
}

/* Form styles */
form {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

label {
    font-weight: 400;
    margin-top: 10px;
}

input,
select,
textarea {
    padding: 0.75rem;
    border: 2px solid #000;
    background-color: #fff;
    color: #000;
    border-radius: 5px;
    font-family: inherit;
    font-weight: 300;
}

button {
    padding: 0.75rem;
    background-color: #000;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 400;
    font-family: inherit;
    transition: background-color 0.3s, transform 0.2s;
    margin-top: 20px;
}

button:hover {
    background-color: #333;
    transform: translateY(-2px);
}

/* === Opening invitation card === */

#opener {
    background-image: url('img/WhatsApp Image 2026-01-13 at 18.36.01.jpeg');
    background-size: cover;
    background-position: 39% center;
    background-repeat: no-repeat;
}

#opener::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.7);
    z-index: 1;
}

.invite-card {
    width: 100%;
    max-width: 900px;
    height: 90%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    position: relative;
    z-index: 2;
}

.invite-inner {
    width: 100%;
    max-width: 700px;
    text-align: center;
}

/* Names */
.names {
    margin-bottom: 3rem;
}

.name-top,
.name-bottom {
    display: block;
    font-family: 'Cormorant Garamond', serif;
    font-size: 5.2rem;
    font-weight: 600;
    letter-spacing: 0.18rem;
}

/* "und" stays delicate */
.and {
    display: block;
    font-size: 2.4rem;
    font-weight: 300;
    font-style: italic;
    margin: 0.6rem 0 1.2rem;
    letter-spacing: 0.12rem;
}

/* Thin divider line */
.divider {
    width: 120px;
    height: 1px;
    background-color: #000;
    margin: 0 auto 3rem;
}

/* Countdown Timer */
.countdown {
    margin: 0 auto 3rem;
    text-align: center;
}

.countdown-container {
    display: flex;
    justify-content: center;
    gap: .5rem;
}

.countdown-item {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.countdown-number {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.5rem;
    font-weight: 600;
    letter-spacing: 0.1rem;
}

.countdown-label {
    font-size: 0.9rem;
    letter-spacing: 0.1rem;
    text-transform: uppercase;
    margin-left: 9px;
    padding-top:10px;
}

/* Invitation text */
.invite-text {
    font-size: 0.9rem;
    letter-spacing: 0.25rem;
    margin-bottom: 1.5rem;
}

/* Date */
.date {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3.1rem;
    font-weight: 600;
    letter-spacing: 0.18rem;

    /* IMPORTANT */
    font-variant-numeric: lining-nums tabular-nums;
    font-feature-settings: "lnum" 1, "tnum" 1;

    margin-bottom: 1.6rem;
}

/* Time */
.time {
    font-size: 0.9rem;
    letter-spacing: 0.25rem;
    margin-bottom: 2.5rem;
}

/* Location */
.location {
    font-size: 0.9rem;
    letter-spacing: 0.25rem;
    line-height: 1.9;
}

/* Gallery Page Styles */
.gallery-container-page {
    height: auto;
    overflow-y: auto;
    scroll-snap-type: none;
}

.gallery-section {
    height: auto;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    scroll-snap-align: none;
    padding: 20px;
    text-align: center;
}



/* Responsive tweaks */
@media (max-width: 768px) {

    .name-top,
    .name-bottom {
        font-size: 3rem;
    }

    .date {
        font-size: 2.2rem;
    }

    .invite-card {
        height: auto;
        padding: 1.5rem;
    }
}


/* ============================= */
/* TYPOGRAPHY UNIFICATION (OPENER STYLE)
/* ============================= */

/* Headings like opener */
h1,
h2 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    letter-spacing: 0.18rem;
}

/* Section headings size alignment */
h2 {
    font-size: 2rem;
}

/* Body text alignment */
p,
label,
input,
select,
textarea,
button,
.event time {
    font-family: 'Playfair Display', serif;
    font-weight: 300;
    letter-spacing: 0.12rem;
}

/* Uppercase feel like invitation */
h2,
.event time,
label {
    text-transform: uppercase;
}

/* Slightly softer paragraph sizing */
p {
    font-size: 1.05rem;
    line-height: 1.8;
}

/* Carousel styles */
.carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
}

.carousel-container {
    display: flex;
    transition: transform 0.3s ease;
    will-change: transform;
    backface-visibility: hidden;
}

.slide {
    min-width: 100%;
    box-sizing: border-box;
    user-select: none;
    -webkit-user-select: none;
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.carousel-indicators .carousel-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #ccc;
    margin: 0 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.carousel-indicators .carousel-indicator.active {
    background-color: #000;
}

/* iOS touch optimizations */
@media (hover: none) and (pointer: coarse) {
    .carousel-container {
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
    }
    
    .slide {
        -webkit-tap-highlight-color: transparent;
        tap-highlight-color: transparent;
    }
    
    /* Make indicators more prominent on mobile */
    .carousel-indicators {
        margin-top: 15px;
    }
    
    .carousel-indicators .carousel-indicator {
        width: 12px;
        height: 12px;
        margin: 0 7px;
    }
    
    /* Add arrows for mobile navigation */
    .carousel::before,
    .carousel::after {
        content: '';
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 40px;
        height: 40px;
        background: rgba(0, 0, 0, 0.5);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-size: 20px;
        cursor: pointer;
        z-index: 10;
    }
    
    .carousel::before {
        left: 10px;
        content: '←';
    }
    
    .carousel::after {
        right: 10px;
        content: '→';
    }
    
    /* Hide arrows if only one slide */
    .carousel:has(.slide:nth-child(1):last-child)::before,
    .carousel:has(.slide:nth-child(1):last-child)::after {
        display: none;
    }
}

/* FAQ styles */
.faq-item {
    margin-bottom: 1rem;
    border: 1px solid #000;
    border-radius: 5px;
}

.faq-item summary {
    padding: 1rem 3rem 1rem 1rem;
    background-color: #f9f9f9;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: 600;
    list-style: none;
    position: relative;
}

.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    transition: transform 0.3s;
}

.faq-item[open] summary::after {
    content: '-';
}

.faq-item p {
    padding: 1rem;
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
    background-color: #fff;
}

