/* ============================================
   Son-Bryllup 2026 – Wedding Website Styles
   Premium, mobile-first design
   ============================================ */

/* --- Reset & Base --- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color Palette – Elegant gold, sage & warm tones */
    --gold: #C5A572;
    --gold-light: #D4BC8B;
    --gold-dark: #A68956;
    --sage: #8B9E7E;
    --sage-light: #B5C4AB;
    --sage-dark: #6B7E5E;
    --cream: #FDF8F0;
    --cream-dark: #F5EDDE;
    --charcoal: #2C2C2C;
    --charcoal-light: #4A4A4A;
    --text: #3A3A3A;
    --text-light: #6B6B6B;
    --white: #FFFFFF;
    --white-alpha-80: rgba(255, 255, 255, 0.80);
    --white-alpha-50: rgba(255, 255, 255, 0.50);
    --shadow-soft: 0 4px 30px rgba(0, 0, 0, 0.08);
    --shadow-medium: 0 8px 40px rgba(0, 0, 0, 0.12);
    --shadow-gold: 0 4px 20px rgba(197, 165, 114, 0.25);
    --radius: 16px;
    --radius-sm: 10px;
    --radius-lg: 24px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    background: var(--cream);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 600;
    line-height: 1.2;
}

a {
    color: var(--gold-dark);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--gold);
}

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

/* --- Language Toggle --- */
.lang-toggle {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 1001;
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--white-alpha-80);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(197, 165, 114, 0.3);
    border-radius: 50px;
    padding: 8px 14px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--charcoal);
    transition: all var(--transition);
    box-shadow: var(--shadow-soft);
}

.lang-toggle:hover {
    background: var(--white);
    box-shadow: var(--shadow-medium);
    transform: translateY(-1px);
}

.lang-flag {
    font-size: 1.1rem;
}

/* --- Navigation --- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0 24px;
    transition: all var(--transition);
    background: transparent;
}

.nav.scrolled {
    background: rgba(253, 248, 240, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}

.nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.nav-monogram {
    height: 40px;
    width: auto;
    opacity: 0;
    transition: opacity var(--transition);
}

.nav.scrolled .nav-monogram {
    opacity: 1;
}

.nav-links {
    display: none;
    gap: 32px;
}

.nav-links a {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--charcoal);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--charcoal);
    transition: all var(--transition);
    border-radius: 2px;
}

.nav-hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-hamburger.active span:nth-child(2) {
    opacity: 0;
}

.nav-hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
    background: rgba(253, 248, 240, 0.97);
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.mobile-menu.active {
    opacity: 1;
    pointer-events: all;
}

.mobile-menu a {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--charcoal);
    letter-spacing: 1px;
}

/* --- Hero Section --- */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('/static/hero.jpg') center center / cover no-repeat;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
            rgba(0, 0, 0, 0.15) 0%,
            rgba(0, 0, 0, 0.35) 50%,
            rgba(0, 0, 0, 0.55) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 24px;
    animation: fadeInUp 1.2s ease-out;
}

.hero-monogram {
    width: 100px;
    height: auto;
    margin: 0 auto 16px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.hero-names {
    font-size: clamp(2rem, 6vw, 3.8rem);
    color: var(--white);
    font-weight: 600;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    margin-bottom: 8px;
}

.hero-tagline {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: clamp(1.1rem, 3vw, 1.6rem);
    color: var(--gold-light);
    margin-bottom: 8px;
}

.hero-date {
    font-family: 'Inter', sans-serif;
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    color: var(--white);
    letter-spacing: 6px;
    font-weight: 300;
    margin-bottom: 32px;
}

/* Countdown */
.countdown {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 40px;
}

.countdown-item {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-sm);
    padding: 16px 12px;
    min-width: 70px;
    text-align: center;
}

.countdown-number {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    font-weight: 700;
    color: var(--white);
    line-height: 1;
}

.countdown-label {
    display: block;
    font-size: 0.7rem;
    color: var(--gold-light);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: 6px;
}

/* Hero CTA */
.hero-cta {
    display: inline-block;
    background: var(--gold);
    color: var(--white);
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 16px 40px;
    border-radius: 50px;
    transition: all var(--transition);
    box-shadow: var(--shadow-gold);
}

.hero-cta:hover {
    background: var(--gold-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(197, 165, 114, 0.4);
}

/* Scroll hint */
.hero-scroll-hint {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.scroll-arrow {
    width: 24px;
    height: 24px;
    border-right: 2px solid var(--white-alpha-50);
    border-bottom: 2px solid var(--white-alpha-50);
    transform: rotate(45deg);
    animation: scrollBounce 2s infinite;
}

/* --- Sections (shared) --- */
.section {
    padding: 80px 24px;
}

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

.section-title {
    text-align: center;
    font-size: clamp(1.8rem, 5vw, 2.8rem);
    color: var(--charcoal);
    margin-bottom: 8px;
}

.section-subtitle {
    text-align: center;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.05rem;
    color: var(--text-light);
    margin-bottom: 48px;
}

/* --- Info Section --- */
.info-section {
    background: var(--white);
}

.info-cards {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

.info-card {
    text-align: center;
    padding: 40px 32px;
    background: var(--cream);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    width: 100%;
    max-width: 400px;
    transition: transform var(--transition), box-shadow var(--transition);
}

.info-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
}

.info-card-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.info-card h3 {
    font-size: 1.4rem;
    color: var(--charcoal);
    margin-bottom: 8px;
}

.info-card-venue {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    color: var(--gold-dark);
    font-weight: 600;
    margin-bottom: 4px;
}

.info-card-time {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 16px;
}

.info-card-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--sage-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-card-link:hover {
    color: var(--gold);
}

.info-card-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    max-width: 300px;
}

.divider-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-light), transparent);
}

.divider-icon {
    font-size: 1.5rem;
}

/* --- Gallery / Story --- */
.story-section {
    background: var(--cream-dark);
}

.gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.gallery-item {
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 1;
    box-shadow: var(--shadow-soft);
    transition: transform var(--transition);
}

.gallery-item:hover {
    transform: scale(1.02);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-item-tall {
    grid-row: span 2;
    aspect-ratio: auto;
}

.gallery-item-wide {
    grid-column: span 2;
    aspect-ratio: 16/9;
}

/* --- RSVP Section --- */
.rsvp-section {
    background: var(--white);
    position: relative;
}

.rsvp-form {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group label {
    display: block;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--charcoal);
    margin-bottom: 8px;
}

.form-group input[type="text"] {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--cream-dark);
    border-radius: var(--radius-sm);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: var(--text);
    background: var(--cream);
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
}

.form-group input[type="text"]:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(197, 165, 114, 0.15);
}

.form-group input[type="text"]::placeholder {
    color: var(--text-light);
    font-weight: 300;
}

/* Radio buttons */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 14px 18px;
    background: var(--cream);
    border: 2px solid var(--cream-dark);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    font-size: 0.95rem;
}

.radio-label:hover {
    border-color: var(--gold-light);
}

.radio-label input[type="radio"] {
    display: none;
}

.radio-custom {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid var(--gold-light);
    position: relative;
    flex-shrink: 0;
    transition: all var(--transition);
}

.radio-label input[type="radio"]:checked~.radio-custom {
    border-color: var(--gold);
    background: var(--gold);
}

.radio-label input[type="radio"]:checked~.radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--white);
}

.radio-label:has(input:checked) {
    border-color: var(--gold);
    background: rgba(197, 165, 114, 0.06);
}

/* Plus One Section */
.plus-one-section {
    border: 2px solid var(--cream-dark);
    border-radius: var(--radius-sm);
    padding: 18px;
    background: var(--cream);
    transition: all var(--transition);
}

.plus-one-header {
    margin-bottom: 0;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkbox-custom {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    border: 2px solid var(--gold-light);
    position: relative;
    flex-shrink: 0;
    transition: all var(--transition);
}

.checkbox-label input[type="checkbox"]:checked~.checkbox-custom {
    border-color: var(--gold);
    background: var(--gold);
}

.checkbox-label input[type="checkbox"]:checked~.checkbox-custom::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--white);
    font-size: 14px;
    font-weight: 700;
}

.plus-one-fields {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.3s ease, margin-top 0.3s ease;
    margin-top: 0;
}

.plus-one-fields.visible {
    max-height: 300px;
    opacity: 1;
    margin-top: 16px;
}

.plus-one-fields .form-group {
    margin-bottom: 16px;
}

.plus-one-fields .form-group:last-child {
    margin-bottom: 0;
}

/* Submit button */
.btn-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px;
    background: var(--charcoal);
    color: var(--white);
    border: none;
    border-radius: var(--radius-sm);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all var(--transition);
}

.btn-submit:hover {
    background: var(--gold-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold);
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid transparent;
    border-top-color: var(--white);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.btn-submit.loading .btn-spinner {
    display: block;
}

/* Success state */
.rsvp-success {
    display: none;
    text-align: center;
    padding: 60px 24px;
    animation: fadeInUp 0.6s ease-out;
}

.rsvp-success.visible {
    display: block;
}

.success-icon {
    font-size: 4rem;
    margin-bottom: 16px;
    animation: celebrateBounce 0.8s ease-out;
}

.rsvp-success h3 {
    font-size: 1.8rem;
    color: var(--charcoal);
    margin-bottom: 8px;
}

.rsvp-success p {
    color: var(--text-light);
    font-size: 1.05rem;
}

/* --- Practical Section --- */
.practical-section {
    background: var(--cream-dark);
}

.practical-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.practical-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 32px 24px;
    box-shadow: var(--shadow-soft);
    transition: transform var(--transition);
}

.practical-card:hover {
    transform: translateY(-3px);
}

.practical-icon {
    font-size: 2rem;
    margin-bottom: 12px;
}

.practical-card h3 {
    font-size: 1.15rem;
    color: var(--charcoal);
    margin-bottom: 8px;
}

.practical-card p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* --- Footer --- */
.footer {
    text-align: center;
    padding: 60px 24px 40px;
    background: var(--charcoal);
    color: var(--white);
}

.footer-monogram {
    width: 60px;
    margin: 0 auto 16px;
    border-radius: 6px;
    opacity: 0.9;
}

.footer-names {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: var(--gold-light);
    margin-bottom: 4px;
}

.footer-date {
    font-size: 0.85rem;
    color: var(--white-alpha-50);
    letter-spacing: 2px;
    margin-bottom: 16px;
}

.footer-love {
    font-size: 0.85rem;
    color: var(--gold-light);
}

/* --- Animations --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

@keyframes scrollBounce {

    0%,
    100% {
        transform: translateY(0) rotate(45deg);
        opacity: 0.5;
    }

    50% {
        transform: translateY(10px) rotate(45deg);
        opacity: 1;
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes celebrateBounce {
    0% {
        transform: scale(0);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

/* Intersection Observer - fade-in on scroll */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive --- */
@media (min-width: 768px) {
    .nav-links {
        display: flex;
    }

    .nav-hamburger {
        display: none;
    }

    .info-cards {
        flex-direction: row;
        align-items: stretch;
    }

    .info-card-divider {
        flex-direction: column;
        width: auto;
        max-width: none;
    }

    .divider-line {
        width: 1px;
        height: auto;
        flex: 1;
        background: linear-gradient(180deg, transparent, var(--gold-light), transparent);
    }

    .gallery {
        gap: 16px;
    }

    .practical-cards {
        grid-template-columns: 1fr 1fr;
    }

    .countdown-item {
        min-width: 90px;
        padding: 20px 16px;
    }

    .hero-monogram {
        width: 120px;
    }

    .section {
        padding: 100px 40px;
    }

    .lang-toggle {
        top: 20px;
        right: 20px;
    }
}

@media (min-width: 1024px) {
    .gallery {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 20px;
    }

    .gallery-item-tall {
        grid-row: span 2;
    }

    .gallery-item-wide {
        grid-column: span 2;
    }

    .practical-cards {
        grid-template-columns: repeat(4, 1fr);
    }
}