/* ==========================================================================
   Template 4 – Autumn Harvest
   Warm burgundy, burnt orange, amber & sage on parchment cream.
   Hand-crafted SVG autumn botanical garlands frame the page.
   Reuses self-hosted Great Vibes + Cormorant Garamond (SIL OFL).
   ========================================================================== */

/* Great Vibes – Regular 400 */
@font-face {
    font-family: 'Great Vibes';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/GreatVibes-Regular.woff2') format('woff2');
}

/* Cormorant Garamond – Light 300, latin-ext */
@font-face {
    font-family: 'Cormorant Garamond';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url('../fonts/CormorantGaramond-Light-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Cormorant Garamond – Light 300, latin */
@font-face {
    font-family: 'Cormorant Garamond';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url('../fonts/CormorantGaramond-Light-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Cormorant Garamond – Regular 400, latin-ext */
@font-face {
    font-family: 'Cormorant Garamond';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/CormorantGaramond-Regular-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Cormorant Garamond – Regular 400, latin */
@font-face {
    font-family: 'Cormorant Garamond';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/CormorantGaramond-Regular-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ==========================================================================
   Design Tokens
   ========================================================================== */

:root {
    --autumn-cream:        #fdf5e6;
    --autumn-cream-mid:    #f5ead5;
    --autumn-cream-warm:   #f0e0c0;
    --autumn-burgundy:     #722F37;
    --autumn-burgundy-dk:  #5a242c;
    --autumn-orange:       #CC5500;
    --autumn-amber:        #DAA520;
    --autumn-amber-light:  #E8C040;
    --autumn-sage:         #87AE73;
    --autumn-sage-dk:      #6E9460;
    --autumn-brown:        #6B4226;
    --autumn-brown-light:  #8B6240;
    --autumn-text:         #4a3728;
    --autumn-text-soft:    #7a6652;
}

/* ==========================================================================
   General Styles
   ========================================================================== */

body {
    font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    font-variant-numeric: lining-nums tabular-nums;
    background-color: var(--autumn-cream);
    color: var(--autumn-text);
    margin: 0;
    line-height: 1.7;
    font-size: 1.1rem;
    position: relative;
    min-height: 100vh;
}

a {
    color: var(--autumn-brown-light);
}

a:hover {
    color: var(--autumn-burgundy);
}

a:visited {
    color: var(--autumn-brown-light);
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px 30px;
    position: relative;
    z-index: 1;
}

/* ==========================================================================
   Side Floral Borders – Autumn garlands framing the page
   Fixed position, pointer-events: none so they never block clicks.
   Responsive: full on desktop, reduced on tablet, hidden on mobile.
   ========================================================================== */

body::before,
body::after {
    content: '';
    position: fixed;
    top: 0;
    bottom: 0;
    width: 110px;
    z-index: 0;
    pointer-events: none;
    background-image: url('../img/decor/autumn-border.svg');
    background-repeat: repeat-y;
    background-size: 110px auto;
    opacity: 0.55;
}

body::before {
    left: 0;
    background-position: left top;
}

body::after {
    right: 0;
    background-position: right top;
    transform: scaleX(-1);
}

/* ==========================================================================
   Header – Warm gradient with burgundy text
   ========================================================================== */

header {
    text-align: center;
    padding: 90px 20px;
    background: linear-gradient(175deg, var(--autumn-cream) 0%, var(--autumn-cream-mid) 40%, var(--autumn-cream-warm) 100%);
    position: relative;
    z-index: 1;
    border-bottom: 2px solid var(--autumn-amber);
}

/* Decorative leaf ornament line */
header::before,
header::after {
    content: '\1F342';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.2em;
    opacity: 0.5;
    letter-spacing: 0.5em;
}

header::before {
    top: 22px;
}

header::after {
    bottom: 22px;
}

header h1 {
    font-family: 'Great Vibes', cursive;
    font-size: 5em;
    margin: 0;
    font-weight: 400;
    color: var(--autumn-burgundy);
    letter-spacing: 0.02em;
    text-shadow: 0 2px 12px rgba(114, 47, 55, 0.12);
}

header p {
    font-size: 1.3em;
    color: var(--autumn-text-soft);
    letter-spacing: 0.12em;
}

/* ==========================================================================
   Countdown – Boxes with amber borders and warm backgrounds
   ========================================================================== */

#countdown {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 18px;
    margin: 55px 0 65px;
    font-size: 1.3em;
    font-weight: 300;
}

#countdown > div {
    text-align: center;
    padding: 16px 20px 12px;
    min-width: 82px;
    background: var(--autumn-cream-mid);
    border: 1px solid rgba(218, 165, 32, 0.35);
    border-radius: 6px;
    position: relative;
}

/* Corner leaf accent on countdown boxes */
#countdown > div::before {
    content: '\1F341';
    position: absolute;
    top: -8px;
    right: -6px;
    font-size: 0.65em;
    opacity: 0.4;
}

#countdown span {
    display: block;
    font-size: 2em;
    font-weight: 400;
    line-height: 1.2;
    color: var(--autumn-burgundy);
}

/* ==========================================================================
   Sections – Leaf ornament dividers
   ========================================================================== */

section {
    padding: 75px 20px;
    border-bottom: none;
    position: relative;
    z-index: 1;
}

/* Autumn leaf divider between sections */
section::after {
    content: '\1F342\2003\2022\2003\1F341';
    display: block;
    text-align: center;
    font-size: 0.9em;
    margin-top: 65px;
    opacity: 0.4;
    letter-spacing: 0.2em;
}

section:last-child::after {
    display: none;
}

h2 {
    font-family: 'Great Vibes', cursive;
    text-align: center;
    font-size: 3.5em;
    margin-bottom: 10px;
    font-weight: 400;
    color: var(--autumn-burgundy);
    text-wrap: balance;
}

/* Gradient underline beneath headings */
h2::after {
    content: '';
    display: block;
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--autumn-amber), var(--autumn-orange), var(--autumn-amber), transparent);
    margin: 12px auto 40px;
    border-radius: 1px;
}

h3 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 400;
    font-size: 1.15em;
    margin-bottom: 8px;
    color: var(--autumn-brown);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* ==========================================================================
   Couple & Location
   ========================================================================== */

.couple, .location {
    display: flex;
    gap: 60px;
    align-items: flex-start;
}

.couple > div, .location > div {
    flex: 1;
    text-align: center;
}

/* Double ring frame: burgundy inner + amber outer */
.couple img {
    width: 220px;
    height: 220px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow:
        0 0 0 3px var(--autumn-burgundy),
        0 0 0 7px var(--autumn-cream),
        0 0 0 9px var(--autumn-amber),
        0 0 20px rgba(114, 47, 55, 0.12);
}

.location iframe {
    width: 100%;
    height: 300px;
    border: 1px solid rgba(218, 165, 32, 0.25);
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* ==========================================================================
   Dresscode Section (template4 only)
   ========================================================================== */

.dresscode {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.dresscode-hint {
    margin-top: 30px;
    padding: 28px 35px;
    background: linear-gradient(135deg,
        rgba(218, 165, 32, 0.08),
        rgba(135, 174, 115, 0.06),
        rgba(204, 85, 0, 0.05));
    border: 1px solid rgba(218, 165, 32, 0.3);
    border-radius: 8px;
    position: relative;
}

.dresscode-hint::before {
    content: '\1F342';
    display: block;
    font-size: 1.6em;
    margin-bottom: 12px;
    opacity: 0.6;
}

/* ==========================================================================
   Accommodation Section (template4 only)
   ========================================================================== */

.accommodation {
    max-width: 960px;
    margin: 0 auto;
    text-align: center;
}

.accommodation-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 22px;
    margin-top: 30px;
}

.accommodation-card {
    padding: 28px;
    background: var(--autumn-cream-mid);
    border: 1px solid rgba(218, 165, 32, 0.2);
    border-radius: 8px;
    text-align: left;
    transition: box-shadow 0.2s ease;
}

.accommodation-card:hover {
    box-shadow: 0 4px 16px rgba(114, 47, 55, 0.08);
}

.accommodation-card h3 {
    color: var(--autumn-burgundy);
    margin-top: 0;
    font-size: 1.1em;
}

.accommodation-card a {
    color: var(--autumn-orange);
}

.accommodation-card a:hover {
    color: var(--autumn-burgundy);
}

/* ==========================================================================
   Gallery – Warm-tinted borders
   ========================================================================== */

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.gallery img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(107, 66, 38, 0.1);
    border: 1px solid rgba(218, 165, 32, 0.15);
}

/* ==========================================================================
   Footer – Warm dark brown
   ========================================================================== */

footer {
    text-align: center;
    padding: 50px 0;
    background: linear-gradient(175deg, var(--autumn-brown) 0%, #3a2215 100%);
    color: var(--autumn-cream-mid);
    font-weight: 300;
    border-top: 2px solid var(--autumn-amber);
    position: relative;
    z-index: 1;
}

footer a,
footer a:visited {
    color: var(--autumn-amber);
    text-decoration: underline;
}

footer a:focus-visible {
    outline: 2px solid var(--autumn-amber);
    outline-offset: 2px;
    border-radius: 2px;
}

.language-selector {
    margin-bottom: 8px;
}

.language-selector a {
    text-decoration: none;
    font-size: 1.4em;
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
    transition: transform 0.15s ease;
}

.language-selector a:hover {
    transform: scale(1.2);
}

.template-selector {
    font-size: 0.85em;
    opacity: 0.7;
}

.template-selector a {
    text-decoration: none;
    color: var(--autumn-amber);
    border-bottom: 1px dotted var(--autumn-amber);
}

.template-selector a:hover {
    border-bottom-style: solid;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

/* Tablet: reduce side borders */
@media (max-width: 1200px) {
    body::before,
    body::after {
        width: 60px;
        background-size: 60px auto;
        opacity: 0.3;
    }
}

/* Mobile: hide side borders, stack layouts */
@media (max-width: 768px) {
    body::before,
    body::after {
        display: none;
    }

    .couple, .location {
        flex-direction: column;
        align-items: center;
    }

    .couple > div, .location > div {
        width: 100%;
    }

    header {
        padding: 65px 20px;
    }

    header h1 {
        font-size: 3.2em;
    }

    header p {
        letter-spacing: 0.06em;
    }

    #countdown > div {
        min-width: 68px;
        padding: 12px 14px 8px;
    }

    .dresscode-hint {
        padding: 20px 22px;
    }

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

/* ==========================================================================
   Dark Mode – Deep warm brown, brighter autumn tones
   ========================================================================== */

@media (prefers-color-scheme: dark) {
    :root {
        --autumn-cream:        #1a1410;
        --autumn-cream-mid:    #241c14;
        --autumn-cream-warm:   #2a2018;
        --autumn-burgundy:     #c85060;
        --autumn-burgundy-dk:  #a84050;
        --autumn-orange:       #e07030;
        --autumn-amber:        #e8c050;
        --autumn-amber-light:  #f0d060;
        --autumn-sage:         #90b880;
        --autumn-sage-dk:      #78a068;
        --autumn-brown:        #3a2a1a;
        --autumn-brown-light:  #c0a080;
        --autumn-text:         #e0d8c8;
        --autumn-text-soft:    #a09080;
    }

    html {
        color-scheme: dark;
    }

    body {
        background-color: var(--autumn-cream);
        color: var(--autumn-text);
    }

    /* Reduce side border brightness in dark mode */
    body::before,
    body::after {
        opacity: 0.2;
    }

    a {
        color: var(--autumn-amber);
    }

    a:hover {
        color: var(--autumn-amber-light);
    }

    a:visited {
        color: var(--autumn-brown-light);
    }

    header {
        background: linear-gradient(175deg, var(--autumn-cream) 0%, var(--autumn-cream-mid) 40%, var(--autumn-cream-warm) 100%);
        border-bottom-color: rgba(232, 192, 80, 0.4);
    }

    header h1 {
        color: var(--autumn-burgundy);
        text-shadow: 0 2px 20px rgba(200, 80, 96, 0.2);
    }

    header p {
        color: var(--autumn-text-soft);
    }

    h2 {
        color: var(--autumn-burgundy);
    }

    h3 {
        color: var(--autumn-brown-light);
    }

    #countdown > div {
        background: var(--autumn-cream-mid);
        border-color: rgba(232, 192, 80, 0.2);
    }

    #countdown span {
        color: var(--autumn-burgundy);
    }

    .couple img {
        box-shadow:
            0 0 0 3px var(--autumn-burgundy),
            0 0 0 7px var(--autumn-cream),
            0 0 0 9px var(--autumn-amber),
            0 0 25px rgba(200, 80, 96, 0.15);
    }

    .gallery img {
        background-color: var(--autumn-cream-mid);
        border-color: rgba(232, 192, 80, 0.1);
    }

    .location iframe {
        border-color: rgba(232, 192, 80, 0.15);
    }

    .dresscode-hint {
        background: linear-gradient(135deg,
            rgba(232, 192, 80, 0.06),
            rgba(144, 184, 128, 0.04),
            rgba(224, 112, 48, 0.04));
        border-color: rgba(232, 192, 80, 0.2);
    }

    .accommodation-card {
        background: var(--autumn-cream-mid);
        border-color: rgba(232, 192, 80, 0.15);
    }

    .accommodation-card:hover {
        box-shadow: 0 4px 16px rgba(200, 80, 96, 0.1);
    }

    footer {
        background: linear-gradient(175deg, #0f0a06 0%, #1a1008 100%);
        color: var(--autumn-text-soft);
        border-top-color: rgba(232, 192, 80, 0.3);
    }
}
