:root {
    --primary-color: #2d5016;
    --primary-text-color: #ffffff;
    --secondary-color: #ffffff;
    --accent-color: #4a7c2c;
    --highlight-color: #D4AF37;
    --gold-accent: var(--highlight-color);
    --tab-text-color: #2c3e50;
    --button-color: #2d5016;
    --footer-background-color: #2c3e50;
    --footer-text-color: #ffffff;
    --text-dark: #2c3e50;
    --text-light: #6c757d;
    --bg-light: #f8f9f8;
    --bg-white: #ffffff;
    --border-color: #e9ecef;
    --success: #4a7c2c;
    --error: #dc3545;
}

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

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-white);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navigation */
.navbar {
    background-color: var(--bg-white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand a {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--tab-text-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: var(--tab-text-color);
    font-weight: 500;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--tab-text-color);
    border-bottom-color: var(--accent-color);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--tab-text-color);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    background: var(--primary-color);
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 2rem;
}

/* Hero image layers - sit behind all hero content */
.hero-with-image {
    position: relative;
    overflow: hidden;
}
.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-repeat: no-repeat;
    transform: scale(1.04); /* prevents visible edge when blur is applied */
    z-index: 0;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background-color: var(--primary-color);
    z-index: 1;
}
.hero-with-image .container,
.hero-with-image .hero-content {
    position: relative;
    z-index: 2;
}

.hero-content {
    animation: fadeInUp 1s ease;
}

.hero-title {
    font-size: 5rem;
    font-weight: 300;
    color: var(--primary-text-color);
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--primary-text-color);
    margin-bottom: 1rem;
}

.hero-date {
    font-size: 3rem;
    font-family: 'Cormorant Garamond', serif;
    color: var(--primary-text-color);
    font-weight: 700;
}

.hero-divider {
    width: 100px;
    height: 2px;
    background-color: var(--primary-text-color);
    margin: 2rem auto;
}

/* Sections */
.section {
    padding: 5rem 0;
}

.section-alt {
    background-color: var(--bg-light);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 3rem;
    color: var(--primary-color);
}

.decorative-line {
    width: 80px;
    height: 3px;
    background-color: var(--primary-text-color);
    margin: 1rem auto;
}

.decorative-line-dark {
    width: 80px;
    height: 3px;
    background-color: #2C3539;
    margin: 1rem auto;
}

/* Wedding Info Cards */
.wedding-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.info-card {
    background-color: var(--bg-white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-left: 4px solid var(--accent-color);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.info-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.info-card h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.info-card p {
    color: var(--text-dark);
    font-size: 1.1rem;
}

.text-muted {
    color: var(--text-light) !important;
    font-size: 1rem !important;
}

/* Page Header */
.page-header {
    background: var(--primary-color);
    padding: 4rem 2rem;
    text-align: center;
}

.page-header h1 {
    font-size: 3.5rem;
    color: var(--primary-text-color);
    margin-bottom: 1rem;
}

.page-header p {
    color: var(--primary-text-color);
    font-size: 1.2rem;
}

/* Story Content */
.story-content {
    max-width: 800px;
    margin: 0 auto;
}

.story-section {
    margin-bottom: 3rem;
}

.story-section h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.story-section p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
}

/* Details Grid */
.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.detail-card {
    background-color: var(--bg-white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-left: 4px solid var(--accent-color);
}

.detail-card h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.detail-item {
    margin-bottom: 0.8rem;
    font-size: 1.05rem;
}

.detail-item strong {
    color: var(--text-dark);
    font-weight: 600;
}

/* Contact Form */
.contact-wrapper {
    max-width: 600px;
    margin: 0 auto;
}

.contact-form {
    background-color: var(--bg-white);
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 500;
}

.required {
    color: var(--error);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    resize: vertical;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary {
    background-color: var(--button-color);
    color: var(--bg-white);
}

.btn-primary:hover {
    background-color: var(--accent-color);
    color: var(--bg-white);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Flash Messages */
.flash-messages {
    position: fixed;
    top: 80px;
    right: 2rem;
    z-index: 2000;
    max-width: 400px;
}

.flash-message {
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    animation: slideInRight 0.5s ease;
}

.flash-success {
    background-color: var(--success);
    color: white;
}

.flash-error {
    background-color: var(--error);
    color: white;
}

.close-flash {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    margin-left: 1rem;
    padding: 0;
    line-height: 1;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.lead {
    font-size: 1.25rem;
    font-weight: 400;
    margin-bottom: 1rem;
}

/* Footer */
footer {
    background-color: var(--footer-background-color);
    color: var(--footer-text-color);
    padding: 2rem 0;
    text-align: center;
}

footer p {
    margin: 0.5rem 0;
}

.domain {
    color: var(--footer-text-color);
    font-weight: 500;
}

/* ============================================================
   LAYOUT VARIANTS
   Palette colours come from CSS variables - no hex values.
   ============================================================ */

/* ── Classic (baseline) ─────────────────────────────────────
   Traditional: white sticky navbar, solid-colour hero centred,
   rounded cards with left-border accent, alternating sections,
   dark footer.
   ──────────────────────────────────────────────────────────── */
body.layout-classic {
    --layout-radius: 4px;
}

/* Classic: traditional formal styling */
body.layout-classic .navbar {
    border-bottom: 3px solid var(--primary-color);
    box-shadow: none;
}

body.layout-classic .hero {
    background: linear-gradient(170deg, color-mix(in srgb, var(--primary-color) 78%, #000) 0%, var(--primary-color) 55%);
}

body.layout-classic .hero-title {
    font-weight: 400;
    letter-spacing: 0.04em;
}

body.layout-classic .info-card,
body.layout-classic .detail-card,
body.layout-classic .contact-form {
    border-radius: 4px;
    border-left: none;
    border-top: 3px solid var(--primary-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

body.layout-classic .info-card:hover {
    transform: none;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.10);
}

body.layout-classic .section-alt {
    background: #f5f4f1;
}

body.layout-classic .btn {
    border-radius: 2px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 0.82rem;
    font-weight: 600;
}

body.layout-classic .decorative-line,
body.layout-classic .decorative-line-dark {
    background-color: var(--primary-color);
}

body.layout-classic .page-header {
    background: linear-gradient(170deg, color-mix(in srgb, var(--primary-color) 78%, #000) 0%, var(--primary-color) 60%);
}

/* ── Editorial ──────────────────────────────────────────────
   Magazine feel: primary-colour navbar (inverted text),
   full-height hero with diagonal bottom clip and left-aligned
   text, flat no-shadow cards with horizontal top-accent,
   generous section padding, sharp corners everywhere.
   ──────────────────────────────────────────────────────────── */
body.layout-editorial {
    --layout-radius: 0px;
}

/* Navbar: primary-colour bar, text inverted */
body.layout-editorial .navbar {
    background-color: var(--primary-color);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
    border-bottom: none;
    padding: 1.25rem 0;
}
body.layout-editorial .nav-brand a {
    color: var(--primary-text-color);
}
body.layout-editorial .nav-menu a {
    color: var(--primary-text-color);
    opacity: 0.80;
    border-bottom-color: transparent;
    transition: opacity 0.2s, border-bottom-color 0.2s;
}
body.layout-editorial .nav-menu a:hover,
body.layout-editorial .nav-menu a.active {
    opacity: 1;
    color: var(--primary-text-color);
    border-bottom-color: var(--gold-accent);
}
body.layout-editorial .nav-toggle span {
    background-color: var(--primary-text-color);
}

/* Hero: full-viewport, left-aligned, diagonal bottom cut */
body.layout-editorial .hero {
    min-height: 88vh;
    background: var(--primary-color);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    text-align: left;
    padding: 13rem 0 14rem 0;
    clip-path: polygon(0 0, 100% 0, 100% 84%, 0 100%);
    margin-bottom: -5rem;
    position: relative;
    overflow: visible;
}
body.layout-editorial .hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(0, 0, 0, 0.20) 0%, transparent 55%),
                radial-gradient(ellipse at 88% 45%, rgba(255, 255, 255, 0.07), transparent 55%);
    pointer-events: none;
}
body.layout-editorial .hero .container {
    position: relative;
    z-index: 2;
    max-width: 1280px;
    width: 100%;
    margin: 0;
}
body.layout-editorial .hero-content {
    text-align: left;
    animation: none;
}
body.layout-editorial .hero-title {
    font-size: clamp(3.5rem, 8vw, 7rem);
    letter-spacing: 0.03em;
    line-height: 1.05;
    margin-bottom: 1.5rem;
}
body.layout-editorial .hero-subtitle {
    letter-spacing: 0.22em;
    text-transform: uppercase;
    font-size: 0.9rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    opacity: 0.82;
    margin-bottom: 1.5rem;
}
body.layout-editorial .hero-date {
    font-size: 2.25rem;
    font-weight: 300;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    font-family: 'Montserrat', sans-serif;
}
body.layout-editorial .hero-divider {
    margin: 1.5rem 0;
    background-color: var(--gold-accent);
    width: 50px;
    height: 2px;
}

/* Container wider for editorial */
body.layout-editorial .container {
    max-width: 1280px;
}

/* Sections */
body.layout-editorial .section {
    padding: 8rem 0;
}
body.layout-editorial .section-alt {
    background: none;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}
body.layout-editorial .section-header {
    text-align: left;
    margin-bottom: 3.5rem;
}
body.layout-editorial .section-header h2 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    text-align: left;
    letter-spacing: 0.04em;
    line-height: 1.1;
}
body.layout-editorial .decorative-line,
body.layout-editorial .decorative-line-dark {
    background-color: var(--gold-accent);
    width: 50px;
    height: 2px;
    margin-left: 0;
}

/* Cards: flat, no shadow, square, top accent */
body.layout-editorial .info-card,
body.layout-editorial .detail-card,
body.layout-editorial .contact-form {
    border-radius: 0;
    border-left: none;
    border-top: 3px solid var(--accent-color);
    box-shadow: none;
    transition: border-top-color 0.2s;
}
body.layout-editorial .info-card:hover {
    transform: none;
    box-shadow: none;
    border-top-color: var(--gold-accent);
}

/* Page header: left-aligned, diagonal cut */
body.layout-editorial .page-header {
    text-align: left;
    padding: 6rem 2rem 8rem;
    clip-path: polygon(0 0, 100% 0, 100% 80%, 0 100%);
    margin-bottom: -4rem;
}
body.layout-editorial .page-header h1 {
    font-size: clamp(2.5rem, 6vw, 5rem);
    letter-spacing: 0.04em;
    text-align: left;
}
body.layout-editorial .page-header .decorative-line {
    margin-left: 0;
}

/* Buttons: sharp corners, wide tracking */
body.layout-editorial .btn {
    border-radius: 0;
    letter-spacing: 0.14em;
    font-size: 0.8rem;
    padding: 1rem 2.5rem;
}

/* Footer */
body.layout-editorial .site-footer {
    padding: 3rem 0;
}

@media (max-width: 768px) {
    body.layout-editorial .hero {
        clip-path: none;
        margin-bottom: 0;
        min-height: auto;
        padding: 5rem 2rem 4rem;
        align-items: center;
        justify-content: center;
    }
    body.layout-editorial .hero-content { text-align: center; }
    body.layout-editorial .hero-divider { margin: 1.5rem auto; }
    body.layout-editorial .page-header {
        clip-path: none;
        margin-bottom: 0;
        text-align: center;
        padding: 4rem 2rem 3rem;
    }
    body.layout-editorial .page-header h1 { text-align: center; }
    body.layout-editorial .section-header,
    body.layout-editorial .section-header h2 { text-align: center; }
    body.layout-editorial .decorative-line,
    body.layout-editorial .decorative-line-dark { margin-left: auto; margin-right: auto; }
}

/* ── Minimal ────────────────────────────────────────────────
   Luxury minimalist: near-invisible frosted navbar, no hero
   background (pure typography on white), borderless cards,
   razor-thin dividers, narrow content column, outlined
   buttons, transparent footer.
   ──────────────────────────────────────────────────────────── */
body.layout-minimal {
    --layout-radius: 0px;
    background-color: #fafaf9;
}

/* Narrow column */
body.layout-minimal .container {
    max-width: 860px;
}

/* Navbar: frosted glass, almost invisible */
body.layout-minimal .navbar {
    background: rgba(250, 250, 249, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.07);
    padding: 1.5rem 0;
}
body.layout-minimal .nav-brand a {
    font-size: 1.25rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-weight: 400;
    font-family: 'Montserrat', sans-serif;
}
body.layout-minimal .nav-menu a {
    text-transform: none;
    letter-spacing: 0.04em;
    font-weight: 400;
    font-size: 0.88rem;
    border-bottom: none;
}
body.layout-minimal .nav-menu a:hover,
body.layout-minimal .nav-menu a.active {
    border-bottom: none;
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-thickness: 1px;
}

/* Hero: no background fill - pure typographic treatment */
body.layout-minimal .hero {
    background: transparent;
    min-height: auto;
    padding: 8rem 2rem 6rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}
body.layout-minimal .hero-title {
    font-size: clamp(2.8rem, 5.5vw, 4.8rem);
    font-weight: 300;
    color: var(--primary-color);
    letter-spacing: 0.06em;
    margin-bottom: 1.5rem;
}
body.layout-minimal .hero-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 2rem;
}
body.layout-minimal .hero-date {
    font-size: 1.8rem;
    font-weight: 300;
    color: var(--text-dark);
    letter-spacing: 0.1em;
}
body.layout-minimal .hero-divider {
    background-color: var(--accent-color);
    width: 32px;
    height: 1px;
    margin: 2rem auto;
}

/* Sections: all white, no fills */
body.layout-minimal .section {
    padding: 5rem 0;
}
body.layout-minimal .section-alt {
    background: none;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
body.layout-minimal .section-header h2 {
    font-size: 1.8rem;
    font-weight: 300;
    letter-spacing: 0.08em;
    color: var(--text-dark);
}
body.layout-minimal .decorative-line,
body.layout-minimal .decorative-line-dark {
    background-color: var(--accent-color);
    width: 32px;
    height: 1px;
    margin: 1rem auto;
}

/* Cards: no shadow, no background, just a thin top rule */
body.layout-minimal .info-card,
body.layout-minimal .detail-card {
    border: none;
    border-top: 1px solid rgba(0, 0, 0, 0.10);
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    padding: 2.5rem 0.5rem;
    transition: border-top-color 0.2s;
}
body.layout-minimal .info-card:hover {
    transform: none;
    box-shadow: none;
    border-top-color: var(--accent-color);
}
body.layout-minimal .info-card h3,
body.layout-minimal .detail-card h3 {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-dark);
    font-family: 'Montserrat', sans-serif;
}
body.layout-minimal .info-icon {
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
}

/* Page header: transparent, typography only */
body.layout-minimal .page-header {
    background: transparent;
    padding: 6rem 2rem 3.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}
body.layout-minimal .page-header h1 {
    color: var(--primary-color);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 300;
    letter-spacing: 0.1em;
}
body.layout-minimal .page-header .decorative-line {
    background-color: var(--accent-color);
    width: 32px;
    height: 1px;
}
body.layout-minimal .page-header p {
    color: var(--text-light);
    letter-spacing: 0.05em;
}

/* Buttons: outlined, no fill */
body.layout-minimal .btn-primary {
    border-radius: 0;
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    font-weight: 400;
    letter-spacing: 0.14em;
    font-size: 0.8rem;
    padding: 0.8rem 2rem;
}
body.layout-minimal .btn-primary:hover {
    background: var(--primary-color);
    color: var(--primary-text-color);
    transform: none;
    box-shadow: none;
}

/* Footer: transparent, just a thin rule */
body.layout-minimal .site-footer {
    background: transparent;
    border-top: 1px solid rgba(0, 0, 0, 0.07);
    padding: 2.5rem 0;
}
body.layout-minimal footer.site-footer p,
body.layout-minimal footer.site-footer .domain {
    color: var(--text-light);
    font-size: 0.82rem;
    letter-spacing: 0.05em;
}

/* ── Romantic ───────────────────────────────────────────────
   Soft & heartfelt: rounded corners everywhere, pastel-tinted
   hero with a gentle vignette overlay, cards with blush
   shadows and subtle border, pill-shaped buttons, airy
   section spacing with a warm off-white alt.
   ──────────────────────────────────────────────────────────── */
body.layout-romantic {
    --layout-radius: 20px;
    background-color: #fffdf9;
}

/* Navbar: soft warm white, barely-there shadow */
body.layout-romantic .navbar {
    background: rgba(255, 253, 249, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(180, 100, 100, 0.07);
    border-bottom: 1px solid rgba(180, 100, 100, 0.08);
}

/* Hero: gentle radial gradient vignette over primary colour */
body.layout-romantic .hero {
    min-height: 82vh;
    background: radial-gradient(ellipse at 50% 60%, var(--primary-color) 0%, color-mix(in srgb, var(--primary-color) 60%, #000) 100%);
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}
body.layout-romantic .hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, 0.10) 0%, transparent 65%);
    pointer-events: none;
}
body.layout-romantic .hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 20% 10%, rgba(255, 200, 180, 0.12) 0%, transparent 50%),
                radial-gradient(ellipse at 80% 90%, rgba(255, 180, 210, 0.09) 0%, transparent 50%);
    pointer-events: none;
}
body.layout-romantic .hero-title {
    font-size: clamp(3rem, 6vw, 5.5rem);
    font-weight: 300;
    letter-spacing: 0.08em;
}
body.layout-romantic .hero-divider {
    width: 60px;
    height: 2px;
    background: var(--gold-accent);
    border-radius: 2px;
    margin: 1.5rem auto;
}

/* Sections */
body.layout-romantic .section {
    padding: 6rem 0;
}
body.layout-romantic .section-alt {
    background: linear-gradient(135deg, #fff6f0 0%, #fef3f5 100%);
}

body.layout-romantic .section-header h2 {
    font-style: italic;
}

/* Cards: rounded, warm shadow, blush left accent */
body.layout-romantic .info-card,
body.layout-romantic .detail-card,
body.layout-romantic .contact-form {
    border-radius: 20px;
    border-left: 4px solid var(--accent-color);
    box-shadow: 0 4px 24px rgba(180, 100, 100, 0.10);
    transition: transform 0.25s, box-shadow 0.25s;
}
body.layout-romantic .info-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 32px rgba(180, 100, 100, 0.16);
}

/* Buttons: pill shape */
body.layout-romantic .btn {
    border-radius: 50px;
    padding: 0.85rem 2.4rem;
    letter-spacing: 0.08em;
}

/* Page header */
body.layout-romantic .page-header {
    border-radius: 0 0 40px 40px;
    margin-bottom: 1rem;
}

/* Footer */
body.layout-romantic .site-footer {
    border-radius: 40px 40px 0 0;
    margin-top: 2rem;
}

@media (max-width: 768px) {
    body.layout-romantic .page-header { border-radius: 0; }
    body.layout-romantic .site-footer { border-radius: 0; }
}

/* ── Luxe ───────────────────────────────────────────────────
   Dark, moody luxury: near-black body, rich dark navbar,
   full-height hero with a cinematic dark gradient + gold
   typographic treatment, gold-trimmed cards on dark
   backgrounds, high-contrast sections, gold CTA buttons.
   ──────────────────────────────────────────────────────────── */
body.layout-luxe {
    --layout-radius: 4px;
    background-color: #0f0f0f;
    color: #e8e0d4;
}

/* Override text colours for dark background */
body.layout-luxe .section,
body.layout-luxe .section-alt {
    color: #e8e0d4;
}
body.layout-luxe h1, body.layout-luxe h2, body.layout-luxe h3,
body.layout-luxe h4, body.layout-luxe h5, body.layout-luxe h6 {
    color: #f5efe6;
}
body.layout-luxe p, body.layout-luxe li {
    color: #c8bfb4;
}

/* Navbar: deep charcoal, gold brand accent */
body.layout-luxe .navbar {
    background-color: #0f0f0f;
    border-bottom: 1px solid color-mix(in srgb, var(--gold-accent) 25%, transparent);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.6);
    padding: 1.25rem 0;
}
body.layout-luxe .nav-brand a {
    color: var(--gold-accent);
    letter-spacing: 0.15em;
}
body.layout-luxe .nav-menu a {
    color: #c8bfb4;
    border-bottom-color: transparent;
    transition: color 0.2s, border-bottom-color 0.2s;
}
body.layout-luxe .nav-menu a:hover,
body.layout-luxe .nav-menu a.active {
    color: var(--gold-accent);
    border-bottom-color: var(--gold-accent);
}
body.layout-luxe .nav-toggle span {
    background-color: #c8bfb4;
}

/* Hero: cinematic full-viewport with dark gradient */
body.layout-luxe .hero {
    min-height: 92vh;
    background: linear-gradient(160deg, #1a1a1a 0%, #0a0a0a 55%, color-mix(in srgb, var(--primary-color) 30%, #000) 100%);
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}
body.layout-luxe .hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 40%, color-mix(in srgb, var(--gold-accent) 6%, transparent) 0%, transparent 60%);
    pointer-events: none;
}
body.layout-luxe .hero-title {
    font-size: clamp(3.5rem, 7vw, 6.5rem);
    font-weight: 300;
    letter-spacing: 0.12em;
    color: #f5efe6;
    text-shadow: 0 2px 30px rgba(0, 0, 0, 0.5);
}
body.layout-luxe .hero-subtitle {
    color: color-mix(in srgb, var(--gold-accent) 85%, transparent);
    letter-spacing: 0.30em;
    font-size: 0.78rem;
    text-transform: uppercase;
    font-family: 'Montserrat', sans-serif;
}
body.layout-luxe .hero-date {
    color: #f5efe6;
    font-weight: 300;
    letter-spacing: 0.20em;
}
body.layout-luxe .hero-divider {
    background: linear-gradient(90deg, transparent, var(--gold-accent), transparent);
    width: 120px;
    height: 1px;
    margin: 2rem auto;
}

/* Sections */
body.layout-luxe .section {
    background-color: #0f0f0f;
    padding: 7rem 0;
}
body.layout-luxe .section-alt {
    background-color: #161616;
    border-top: 1px solid color-mix(in srgb, var(--gold-accent) 10%, transparent);
    border-bottom: 1px solid color-mix(in srgb, var(--gold-accent) 10%, transparent);
}
body.layout-luxe .section-header h2 {
    color: #f5efe6;
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: 0.08em;
}
body.layout-luxe .decorative-line,
body.layout-luxe .decorative-line-dark {
    background: linear-gradient(90deg, transparent, var(--gold-accent), transparent);
    height: 1px;
    width: 80px;
    margin: 1rem auto;
}

/* Cards: dark surface, gold top border */
body.layout-luxe .info-card,
body.layout-luxe .detail-card {
    background: #1a1a1a;
    border: none;
    border-top: 2px solid var(--accent-color);
    border-radius: 4px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    color: #c8bfb4;
    transition: border-top-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
body.layout-luxe .info-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.7);
    border-top-color: var(--gold-accent);
}
body.layout-luxe .info-card h3,
body.layout-luxe .detail-card h3 {
    color: #f5efe6;
}

/* Contact form dark */
body.layout-luxe .contact-form {
    background: #1a1a1a;
    border: 1px solid color-mix(in srgb, var(--gold-accent) 15%, transparent);
    border-radius: 4px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}
body.layout-luxe .contact-form input,
body.layout-luxe .contact-form textarea,
body.layout-luxe .contact-form select {
    background: #222;
    border-color: color-mix(in srgb, var(--gold-accent) 20%, transparent);
    color: #e8e0d4;
}
body.layout-luxe .contact-form input:focus,
body.layout-luxe .contact-form textarea:focus {
    border-color: var(--gold-accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold-accent) 10%, transparent);
}
body.layout-luxe .contact-form label {
    color: #c8bfb4;
}

/* Page header */
body.layout-luxe .page-header {
    background: linear-gradient(160deg, #1a1a1a 0%, color-mix(in srgb, var(--primary-color) 25%, #000) 100%);
    border-bottom: 1px solid color-mix(in srgb, var(--gold-accent) 15%, transparent);
}
body.layout-luxe .page-header h1 {
    color: #f5efe6;
    letter-spacing: 0.10em;
}
body.layout-luxe .page-header p {
    color: #a09890;
}
body.layout-luxe .page-header .decorative-line {
    background: linear-gradient(90deg, transparent, var(--gold-accent), transparent);
    height: 1px;
}

/* Buttons: use configured button colour */
body.layout-luxe .btn-primary {
    background: var(--button-color);
    color: var(--primary-text-color);
    border-color: var(--button-color);
    font-weight: 600;
    letter-spacing: 0.12em;
    border-radius: 4px;
}
body.layout-luxe .btn-primary:hover {
    background: color-mix(in srgb, var(--button-color) 85%, #fff);
    border-color: color-mix(in srgb, var(--button-color) 85%, #fff);
    color: var(--primary-text-color);
    box-shadow: 0 4px 20px color-mix(in srgb, var(--button-color) 40%, transparent);
    transform: translateY(-2px);
}
body.layout-luxe .btn-outline {
    border-color: color-mix(in srgb, var(--accent-color) 50%, transparent);
    color: var(--accent-color);
}
body.layout-luxe .btn-outline:hover {
    background: color-mix(in srgb, var(--accent-color) 10%, transparent);
    border-color: var(--accent-color);
}

/* Footer: use configured footer colours */
body.layout-luxe .site-footer {
    background: var(--footer-background-color);
    border-top: 1px solid color-mix(in srgb, var(--gold-accent) 15%, transparent);
    padding: 3rem 0;
}
body.layout-luxe footer.site-footer p,
body.layout-luxe footer.site-footer .domain {
    color: var(--footer-text-color);
    font-size: 0.82rem;
    letter-spacing: 0.05em;
}

/* Mobile nav on dark background */
@media (max-width: 768px) {
    body.layout-luxe .nav-menu {
        background-color: #141414;
        border-top: 1px solid color-mix(in srgb, var(--gold-accent) 15%, transparent);
    }
}

/* White/light-background cards on dark pages - restore dark text so it
   remains legible (challenge box, gallery empty state, countdown, etc.) */
body.layout-luxe .challenge-box,
body.layout-luxe .countdown-container,
body.layout-luxe .empty-gallery {
    background-color: #fff;
}
body.layout-luxe .challenge-box h1,
body.layout-luxe .challenge-box h2,
body.layout-luxe .challenge-box h3,
body.layout-luxe .challenge-box h4,
body.layout-luxe .challenge-box p,
body.layout-luxe .challenge-box label,
body.layout-luxe .challenge-box span,
body.layout-luxe .countdown-container h1,
body.layout-luxe .countdown-container h2,
body.layout-luxe .countdown-container h3,
body.layout-luxe .countdown-container p,
body.layout-luxe .countdown-container .countdown-label,
body.layout-luxe .empty-gallery h1,
body.layout-luxe .empty-gallery h2,
body.layout-luxe .empty-gallery h3,
body.layout-luxe .empty-gallery p {
    color: #2c2c2c;
}
body.layout-luxe .countdown-value {
    color: var(--primary-color);
}
body.layout-luxe .challenge-box input[type="text"],
body.layout-luxe .challenge-box input[type="email"],
body.layout-luxe .challenge-box textarea {
    background: #f5f5f5;
    border-color: #ddd;
    color: #2c2c2c;
}
body.layout-luxe .challenge-text {
    background-color: #f5f5f5;
    color: var(--primary-color);
}

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

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--bg-white);
        flex-direction: column;
        gap: 0;
        padding: 1rem 0;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        display: none;
    }

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

    .nav-menu li {
        text-align: center;
        padding: 0.5rem 0;
    }

    /* Force readable dark text in the white mobile dropdown for all layouts */
    .nav-menu a,
    .nav-menu a:hover,
    .nav-menu a.active {
        color: #2c3e50;
        border-bottom-color: transparent;
    }

    .nav-toggle {
        display: flex;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-date {
        font-size: 2rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .page-header h1 {
        font-size: 2.5rem;
    }

    .contact-form {
        padding: 2rem 1.5rem;
    }

    .container {
        padding: 0 1rem;
    }

    .flash-messages {
        right: 1rem;
        left: 1rem;
        max-width: none;
    }
}

/* Restore correct nav-menu link colours for dark-navbar layouts on mobile.
   These rules must come AFTER the generic @media block above so they win. */
@media (max-width: 768px) {
    /* Editorial: dark primary-colour navbar - keep white/tinted links */
    body.layout-editorial .nav-menu {
        background-color: var(--primary-color);
    }
    body.layout-editorial .nav-menu a,
    body.layout-editorial .nav-menu a:hover,
    body.layout-editorial .nav-menu a.active {
        color: var(--primary-text-color);
        opacity: 0.9;
    }
    /* Luxe: near-black navbar - keep beige links */
    body.layout-luxe .nav-menu a,
    body.layout-luxe .nav-menu a:hover,
    body.layout-luxe .nav-menu a.active {
        color: #c8bfb4;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .nav-brand a {
        font-size: 1.5rem;
    }
}
