/* Wedding Trivia - Landing Page Styles */
/* Design Code: Watercolor Wedding Aesthetic */

/* Font Imports */
@font-face {
    font-family: 'SatsukiGendaiMincho';
    src: url('/fonts/SatsukiGendaiMincho_v1.04/SatsukiGendaiMincho-M.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'BostonAngel';
    src: url('/fonts/Boston Angel Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'ChenYuluoyan';
    src: url('/fonts/ChenYuluoyan-2.0-Thin.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+TC:wght@400;500;600&display=swap');

:root {
    /* Soft Watercolor Palette */
    --color-bg: #F3EDDE;
    --color-text-main: #4a4a4a;
    --color-text-light: #6d6d6d;
    --color-primary: rgba(240, 98, 146, 0.9);
    /* Soft Pink */
    --color-primary-hover: rgba(240, 98, 146, 1);
    --color-accent: rgba(174, 213, 129, 0.9);
    /* Soft Green */
    --color-gold: rgba(255, 183, 77, 0.9);
    /* Warm Gold */
    --color-surface: rgba(255, 255, 255, 0.7);
    --color-surface-solid: #FFFBF5;

    /* Spacing & Layout */
    --container-max-width: 1200px;
    --header-height: 80px;
    --section-spacing: 6rem;

    /* Soft Effects */
    --shadow-soft: 0 8px 32px rgba(93, 64, 55, 0.1);
    --shadow-soft-hover: 0 12px 40px rgba(93, 64, 55, 0.15);
}

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

body {
    font-family: 'Noto Serif TC', 'SatsukiGendaiMincho', serif;
    background-color: var(--color-bg);
    background-image: url('/wedding_theme_elements/watercolor_background.webp');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    color: var(--color-text-main);
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

/* Typography Defaults */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'ChenYuluoyan', 'SatsukiGendaiMincho', 'Noto Serif TC', serif;
    font-weight: normal;
    line-height: 1.4;
    margin-bottom: 1rem;
    color: var(--color-text-main);
}

p {
    font-weight: 400;
    margin-bottom: 1.5rem;
    color: var(--color-text-light);
}

/* === Layout Utilities === */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

.section {
    padding: var(--section-spacing) 0;
    position: relative;
}

/* === Header === */
.site-header {
    background-image: url('/wedding_theme_elements/watercolor_background.webp');
    background-size: cover;
    background-position: top center;
    height: var(--header-height);
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 100%;
}

.brand-logo {
    font-family: 'BostonAngel', 'SatsukiGendaiMincho', serif;
    font-size: 1.8rem;
    font-weight: normal;
    color: var(--color-primary);
    letter-spacing: 1px;
    height: 100%;
    display: flex;
    align-items: center;
}

.brand-logo img {
    height: 70%;
    width: auto;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-link {
    font-family: 'SatsukiGendaiMincho', serif;
    font-weight: 400;
    font-size: 1rem;
    color: var(--color-text-main);
    transition: color 0.3s ease, transform 0.2s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-gold));
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--color-primary);
}

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

.mobile-menu-btn {
    display: none;
}

/* === Hero Section === */
.hero {
    min-height: calc(100vh - var(--header-height));
    display: flex;
    overflow: hidden;
    position: relative;
    align-items: flex-start;
    /* Aligns content to the top */
    padding-top: 2rem;
    /* Use this to set the exact gap from the header */
}

/* Decorative Elements */
.hero .theme-decor {
    position: absolute;
    pointer-events: none;
    background-size: contain;
    background-repeat: no-repeat;
    z-index: 1;
}



.hero .theme-decor.decor-3 {
    left: -10vw;
    top: -7vh;
    width: 35vw;
    height: 50vh;
    transform: rotate(-30deg);
    background-image: url('/wedding_theme_elements/watercolor_blue_ink_splash.png');
    opacity: 1;
}

.hero .theme-decor.decor-4 {
    right: 20vw;
    top: 20vh;
    width: 50vw;
    height: 70vh;
    background-image: url('/wedding_theme_elements/watercolor_blue_ink_splash.png');
    opacity: 1;
}

.hero-layout {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    max-width: var(--container-max-width);
    margin: 0 auto;
    gap: 4rem;
    padding: 0 2rem;
    position: relative;
    z-index: 10;
}

.hero-content {
    flex: 1;
    padding: 2rem 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-visual {
    flex: 1.2;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    min-height: 450px;
}

.hero-visual video {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    border: 4px solid rgba(255, 255, 255, 0.6);
    margin-bottom: 3rem;
}

.hero-headline {
    font-family: 'ChenYuluoyan', 'SatsukiGendaiMincho', serif;
    font-size: 5.3rem;
    color: var(--color-text-main);
    margin-bottom: 0.2rem;
    font-weight: normal;
    line-height: 1.3;
    letter-spacing: -0.05em
}

.hero-subhead {
    font-size: 1.6rem;
    color: var(--color-text-light);
    margin-bottom: 2.5rem;
    line-height: 1.8;
    letter-spacing: 0.03em
}

/* ... Buttons ... */
.cta-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.cta-group {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.btn {
    display: inline-block;
    padding: 14px 36px;
    font-family: 'SatsukiGendaiMincho', serif;
    font-size: 1.1rem;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    border-radius: 50px;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary), rgba(240, 120, 160, 0.95));
    color: white;
    box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft-hover);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-subtle-text {
    display: inline-block;
    font-size: 0.9rem;
    color: var(--color-text-light);
    font-weight: 400;
    font-style: italic;
}

/* Trust Indicator */
.trust-indicator {
    display: flex;
    align-items: center;
    gap: 0rem;
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--color-text-light);
}

.star-rating {
    color: var(--color-gold);
    letter-spacing: 3px;
    font-size: 1.2rem;
}

/* === Feature Sections === */
.feature-section {
    position: relative;
    overflow: hidden;
    padding: 3rem 0;
}

/* Alternating subtle backgrounds */
.feature-section:nth-child(odd) {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.3) 0%, transparent 100%);
}

.feature-section:nth-child(even) {
    background: linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.2) 50%, transparent 100%);
}

/* Decorative ink splash for features */
.feature-section::before {
    content: '';
    position: absolute;
    width: 25vw;
    height: 25vw;
    background-image: url('/wedding_theme_elements/watercolor_blue_ink_splash.png');
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.15;
    pointer-events: none;
}

.feature-section:nth-child(odd)::before {
    right: -10vw;
    top: 50%;
    transform: translateY(-50%) rotate(20deg);
}

.feature-section:nth-child(even)::before {
    left: -10vw;
    top: 50%;
    transform: translateY(-50%) rotate(-20deg);
}

.feature-row {
    display: flex;
    align-items: center;
    gap: 5rem;
    margin-bottom: 0;
    position: relative;
    z-index: 5;
}

.feature-row.reverse {
    flex-direction: row-reverse;
}

.feature-text {
    flex: 1;
}

.feature-text p {
    font-size: 1.6rem;
    line-height: 1.9;
    color: var(--color-text-light);
}

.feature-visual {
    flex: 1;
    background: var(--color-surface);
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    color: var(--color-text-light);
    font-weight: 400;
    font-style: italic;
    border: 3px solid rgba(255, 255, 255, 0.5);
    position: relative;
    overflow: hidden;
}

/* Soft vignette effect on visuals */
.feature-visual::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    box-shadow: inset 0 0 60px rgba(93, 64, 55, 0.08);
    pointer-events: none;
}

.feature-title {
    font-family: 'ChenYuluoyan', 'SatsukiGendaiMincho', serif;
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
    font-weight: normal;
    color: var(--color-text-main);
}

/* === FAQ Section === */
.faq-section {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0.2) 100%);
    position: relative;
}

.faq-section h2 {
    font-family: 'ChenYuluoyan', 'SatsukiGendaiMincho', serif;
    font-size: 2.4rem;
    color: var(--color-text-main);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.faq-item {
    background: var(--color-surface);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
    border: 2px solid rgba(255, 255, 255, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.faq-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-soft-hover);
}

.faq-item h3 {
    font-family: 'ChenYuluoyan', 'SatsukiGendaiMincho', serif;
    font-size: 1.4rem;
    color: var(--color-primary);
    margin-bottom: 0.75rem;
    font-weight: normal;
}

.faq-item p {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 0;
}

/* === Footer === */
.site-footer {
    background: linear-gradient(180deg, rgba(93, 64, 55, 0.9), rgba(74, 52, 44, 0.95));
    color: #fff;
    padding: 5rem 0 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}



.site-footer h2 {
    font-family: 'ChenYuluoyan', 'SatsukiGendaiMincho', serif;
    font-size: 2.2rem;
    font-weight: normal;
    color: #fff;
    position: relative;
    z-index: 5;
}

.site-footer .btn-primary {
    background: linear-gradient(135deg, var(--color-gold), rgba(255, 200, 100, 0.95));
    color: var(--color-text-main);
}

.footer-links {
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    flex-wrap: wrap;
}

.footer-link {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 400;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #fff;
}

.site-footer p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* === Responsive (Mobile) === */
@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }

    .site-header {
        padding: 0;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: calc(var(--header-height) + 0.5rem);
        right: 1.5rem;
        left: auto;
        width: 200px;
        background-color: var(--color-surface-solid);
        /* Fallback */
        background-image: url('/wedding_theme_elements/watercolor_background.webp');
        background-size: cover;
        background-position: center;
        border: 1px solid rgba(0, 0, 0, 0.05);
        border-radius: 16px;
        flex-direction: column;
        padding: 0.2rem;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
        z-index: 999;
        gap: 1rem;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links .nav-link {
        font-size: 1.1rem;
        padding: 0.4rem 1.5rem;
        text-align: center;
        border-radius: 8px;
    }

    .nav-links .nav-link:hover {
        background-color: rgba(0, 0, 0, 0.03);
    }

    .mobile-menu-btn {
        display: block;
        font-size: 1.5rem;
        color: var(--color-text-main);
        cursor: pointer;
    }

    /* Stack Hero */
    .hero {
        min-height: auto;
        padding-top: 0rem;
        /* Use this to set the exact gap from the header */

    }

    .hero-layout {
        flex-direction: column;
        gap: 0rem;
        padding: 0 1.5rem;
    }

    .hero-content {
        padding: 0.5rem 0 0.8rem 0;
        text-align: left;
    }

    .hero-visual {
        min-height: 280px;
        width: 100%;
    }

    .hero-headline {
        font-size: 4rem;
        margin-bottom: 0.3rem;
    }

    .hero-subhead {
        font-size: 1.5rem;
        letter-spacing: 0.04em;
        margin-bottom: 2rem;
    }

    /* Reduce decor on mobile */
    .hero .theme-decor.decor-1,
    .hero .theme-decor.decor-2 {
        width: 40vw;
        height: 30vh;
        opacity: 0.6;
    }

    .hero .theme-decor.decor-3,
    .hero .theme-decor.decor-4 {
        display: none;
    }

    /* Stack Features */
    .feature-row,
    .feature-row.reverse {
        flex-direction: column;
        gap: 2rem;
        text-align: left;
    }

    .feature-title {
        font-size: 3.5rem;
    }

    .feature-text p {
        font-size: 1.5rem;
    }

    .feature-visual {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }

    .feature-section::before {
        display: none;
    }

    /* FAQ */
    .faq-grid {
        grid-template-columns: 1fr;
    }

    /* Footer */
    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }

    .trust-indicator {
        flex-direction: column;
        align-items: flex-start;
        gap: 0rem;
        padding-left: 0.5rem;
        margin-bottom: 1.2rem;
    }
}