/* ============================================
   DESIGN TOKENS - Elegant Wedding Invitation Style
   ============================================ */
:root {
    /* Colors - Sage Green & Dusty Blue Wedding Palette */
    --color-bg: #faf9f6;
    --color-bg-alt: #f0ede6;
    --color-text: #2a2a2a;
    --color-text-light: #5a5a5a;
    --color-text-muted: #8a8a8a;

    /* Sage Green - primary accent */
    --color-accent: #8a9572;
    --color-accent-dark: #6e7d5a;
    --color-accent-light: #a3ac8e;

    /* Dusty Blue - secondary accent */
    --color-blue: #95a3ad;
    --color-blue-dark: #7a8d9a;
    --color-blue-light: #b5c4ce;
    --color-blue-bg: #eceff2;

    --color-border: #dde1db;
    /* Typography */
    --font-display: 'Cormorant Garamond', 'Cormorant', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-script: 'Cormorant Garamond', Georgia, serif;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 6rem;
    --space-2xl: 8rem;

    /* Transitions */
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --duration: 0.6s;
}

/* ============================================
   RESET & BASE
   ============================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    font-weight: 300;
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-display);
    font-weight: 300;
    line-height: 1.2;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-image {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.15) 0%,
            rgba(0, 0, 0, 0.35) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
    padding: var(--space-md);
}

.hero-eyebrow {
    font-family: var(--font-script);
    font-size: 0.85rem;
    font-weight: 300;
    font-style: italic;
    letter-spacing: 0.15em;
    opacity: 0.95;
    margin-bottom: var(--space-sm);
    animation: fadeUp 1s var(--ease) 0.2s both;
}

.hero-title {
    font-size: clamp(2.5rem, 10vw, 5.5rem);
    font-weight: 300;
    font-style: normal;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: var(--space-md);
    animation: fadeUp 1s var(--ease) 0.4s both;
    line-height: 1.3;
}

.hero-title .name {
    display: block;
    letter-spacing: 0.2em;
}

.hero-title .ampersand {
    font-style: italic;
    font-weight: 300;
    text-transform: lowercase;
    letter-spacing: 0.05em;
    opacity: 0.85;
    font-size: 0.5em;
    display: block;
    margin: 0.2em 0;
}

.hero-date {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    font-family: var(--font-body);
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 300;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-sm);
    animation: fadeUp 1s var(--ease) 0.6s both;
}

.date-divider {
    width: 1px;
    height: 24px;
    background: rgba(255, 255, 255, 0.4);
}

.hero-location {
    font-size: 0.875rem;
    font-weight: 300;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    opacity: 0.8;
    animation: fadeUp 1s var(--ease) 0.8s both;
}

.scroll-hint {
    position: absolute;
    bottom: var(--space-md);
    left: 0;
    right: 0;
    animation: fadeUp 1s var(--ease) 1.2s both;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    transition: opacity 0.4s ease;
}

.scroll-hint.hidden {
    opacity: 0;
    pointer-events: none;
}

.scroll-hint-text {
    font-family: var(--font-body);
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
}

.scroll-hint-arrow {
    color: rgba(255, 255, 255, 0.85);
    animation: bounceDown 1.8s ease-in-out infinite;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounceDown {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(6px);
    }
}

/* ============================================
   COUNTDOWN
   ============================================ */
.countdown-section {
    padding: var(--space-xl) var(--space-md);
    background: var(--color-bg-alt);
}

.countdown {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-sm);
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 70px;
}

.countdown-number {
    font-family: var(--font-display);
    font-size: clamp(2rem, 6vw, 3.5rem);
    font-weight: 300;
    color: var(--color-blue-dark);
    line-height: 1;
}

.countdown-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-text-muted);
    margin-top: var(--space-xs);
}

.countdown-separator {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 300;
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
}

/* ============================================
   SECTIONS
   ============================================ */
.section {
    padding: var(--space-2xl) var(--space-md);
}

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

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 300;
    font-style: italic;
    text-align: center;
    margin-bottom: var(--space-lg);
    color: var(--color-text);
}

/* ============================================
   TIMELINE
   ============================================ */
.timeline-section {
    background: var(--color-bg);
}

.timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
    padding: 20px 0;
    padding-left: 10px;
}

/* Base vertical line - absolute positioned for stability */
.timeline::before {
    content: '';
    position: absolute;
    left: 94px;
    top: 45px;
    bottom: 45px;
    width: 1px;
    background: var(--color-border);
    z-index: 1;
}

.timeline::after {
    display: none;
}

.timeline-item {
    display: flex;
    gap: var(--space-md);
    align-items: start;
    padding: var(--space-md) 0;
    position: relative;
    z-index: 2;
    padding-left: 120px;
    min-height: 100px;
}

/* Vertical Line handled by .timeline background */

/* Hide line after last item dots */
/* We use a different approach with background line on the container */

.timeline-time {
    position: absolute;
    left: 10px;
    width: 70px;
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 300;
    color: var(--color-accent-dark);
    text-align: right;
    top: 24px;
}

.timeline-dot {
    position: absolute;
    left: 90px;
    top: 31px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--color-accent);
    z-index: 2;
    box-shadow: 0 0 0 6px var(--color-bg);
}

.timeline-content {
    padding-top: 10px;
}

.timeline-content h3 {
    font-size: 1.1rem;
    font-weight: 400;
    margin-bottom: 4px;
    color: var(--color-text);
    line-height: 1.4;
}

.timeline-content p {
    font-size: 0.9rem;
    color: var(--color-text-light);
}

/* ============================================
   IMAGE BREAK - Parallax Effect
   ============================================ */
.image-break {
    height: 60vh;
    position: relative;
    overflow: hidden;
}

.image-break-inner {
    position: absolute;
    inset: 0;
    /* Extend the image for parallax movement */
    height: 120%;
    top: -10%;
    will-change: transform;
}

.image-break img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
}

.image-break-alt {
    height: 50vh;
}

.image-break-alt img {
    object-position: center 40%;
}

/* Disable parallax on touch devices for better performance */
@media (hover: none) and (pointer: coarse) {
    .image-break-inner {
        height: 100%;
        top: 0;
        transform: none !important;
    }
}

/* ============================================
   LOCATION
   ============================================ */
.location-section {
    background: var(--color-blue-bg);
}

.location-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--space-md);
}

.location-info h3 {
    font-size: 1.75rem;
    font-weight: 400;
    font-style: italic;
    margin-bottom: var(--space-xs);
    color: var(--color-blue-dark);
}

.location-address {
    color: var(--color-text-light);
    font-size: 0.95rem;
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border: 1px solid var(--color-blue-dark);
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    transition: all 0.4s var(--ease);
    color: var(--color-blue-dark);
    background: transparent;
}

.btn:hover {
    background: var(--color-blue-dark);
    border-color: var(--color-blue-dark);
    color: white;
}

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: var(--space-md);
    background: #25D366;
    color: white;
    border-color: #25D366;
}

.btn-whatsapp:hover {
    background: #1fb855;
    border-color: #1fb855;
    color: white;
}

.whatsapp-icon {
    width: 18px;
    height: 18px;
}

/* Utility classes */
.mt-2 {
    margin-top: 0.5rem;
}

/* ============================================
   INFO SECTION
   ============================================ */
.info-section {
    background: var(--color-bg);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-md);
}

.info-card {
    padding: var(--space-lg) var(--space-md);
    background: var(--color-bg-alt);
    text-align: center;
    border: 1px solid var(--color-border);
    border-top: 3px solid var(--color-accent-light);
    border-radius: 4px;
    transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    background: white;
    border-color: var(--color-accent-light);
}

.info-card h3 {
    font-size: 1.5rem;
    font-weight: 400;
    font-style: italic;
    margin-bottom: var(--space-sm);
    color: var(--color-accent-dark);
}

.info-card:nth-child(2) h3,
.info-card:nth-child(3) h3 {
    color: var(--color-blue-dark);
}

.info-card:nth-child(2),
.info-card:nth-child(3) {
    border-top: 3px solid var(--color-blue-light);
}

.info-card p {
    font-size: 0.95rem;
    color: var(--color-text-light);
    line-height: 1.8;
}

.info-card strong {
    font-weight: 500;
    color: var(--color-text);
}

.info-card-photos {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, var(--color-blue-light) 0%, var(--color-blue) 100%);
    border-color: var(--color-blue);
    color: white;
}

.info-card-photos:hover {
    background: linear-gradient(135deg, var(--color-blue) 0%, var(--color-blue-dark) 100%);
    border-color: var(--color-blue-dark);
}

.info-card-photos h3 {
    color: white;
}

.info-card-photos p {
    color: rgba(255, 255, 255, 0.9);
}

.btn-photos {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: var(--space-md);
    background: white;
    color: var(--color-blue-dark);
    border-color: white;
}

.btn-photos:hover {
    background: var(--color-bg);
    border-color: var(--color-bg);
    color: var(--color-blue-dark);
}

.color-swatches {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.swatch {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid var(--color-border);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.swatch-white {
    background-color: #ffffff;
}

.swatch-black {
    background-color: #1a1a1a;
}

.swatch-red {
    background-color: #a63d40;
    /* A more elegant wedding-suitable muted red */
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    padding: var(--space-xl) var(--space-md);
    background: var(--color-bg-alt);
    text-align: center;
}

.footer-names {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 300;
    font-style: italic;
    color: var(--color-blue-dark);
    margin-bottom: var(--space-xs);
}

.footer-date {
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    color: var(--color-text-muted);
}

/* ============================================
   ANIMATIONS - Reveal on Scroll
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity var(--duration) var(--ease),
        transform var(--duration) var(--ease);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger timeline items */
.timeline-item.reveal:nth-child(1) {
    transition-delay: 0s;
}

.timeline-item.reveal:nth-child(2) {
    transition-delay: 0.05s;
}

.timeline-item.reveal:nth-child(3) {
    transition-delay: 0.1s;
}

.timeline-item.reveal:nth-child(4) {
    transition-delay: 0.15s;
}

.timeline-item.reveal:nth-child(5) {
    transition-delay: 0.2s;
}

.timeline-item.reveal:nth-child(6) {
    transition-delay: 0.25s;
}

.timeline-item.reveal:nth-child(7) {
    transition-delay: 0.3s;
}

.timeline-item.reveal:nth-child(8) {
    transition-delay: 0.35s;
}

/* Stagger info cards */
.info-card.reveal:nth-child(1) {
    transition-delay: 0s;
}

.info-card.reveal:nth-child(2) {
    transition-delay: 0.1s;
}

.info-card.reveal:nth-child(3) {
    transition-delay: 0.2s;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .hero-title {
        font-size: clamp(2.5rem, 15vw, 4rem);
    }

    .countdown {
        gap: var(--space-xs);
    }

    .countdown-item {
        min-width: 55px;
    }

    .countdown-separator {
        margin-bottom: 1rem;
    }

    .section {
        padding: var(--space-xl) var(--space-sm);
    }

    /* Timeline mobile adjustments */
    .timeline {
        padding-left: 5px;
    }

    .timeline-time {
        left: 5px;
        width: 55px;
        font-size: 1.1rem;
    }

    .timeline-item {
        padding-left: 85px;
    }

    .timeline::before {
        left: 69px;
    }

    .timeline-dot {
        left: 65px;
    }

    .image-break {
        height: 50vh;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .info-card {
        padding: var(--space-md);
    }
}

@media (max-width: 480px) {
    .hero-date {
        gap: var(--space-xs);
        font-size: 1.25rem;
    }

    .date-divider {
        height: 18px;
    }

    /* Timeline smaller screen adjustments */
    .timeline {
        padding-left: 0;
    }

    .timeline-time {
        left: 0;
        width: 50px;
        font-size: 0.95rem;
    }

    .timeline-item {
        padding-left: 75px;
    }

    .timeline::before {
        left: 59px;
    }

    .timeline-dot {
        left: 55px;
    }

    .timeline-content h3 {
        font-size: 1rem;
    }

    .timeline-content p {
        font-size: 0.85rem;
    }
}