/* ============================================================
   EverAfter — Wedding Planning Guide 2026
   Romantic editorial luxury aesthetic
   ============================================================ */

/* --- CSS Variables --- */
:root {
    --blush: #f5e6e0;
    --champagne: #e8d5b7;
    --burgundy: #6b2737;
    --burgundy-light: #8a3a4e;
    --burgundy-dark: #4a1a26;
    --gold: #b8860b;
    --gold-light: #d4a843;
    --cream: #fdf8f4;
    --ivory: #fefcf9;
    --warm-gray: #6e6259;
    --soft-gray: #a89e96;
    --text-dark: #2d2226;
    --text-body: #4a3f44;
    --text-muted: #8a7e82;
    --white: #ffffff;

    --font-display: 'Cormorant Garamond', 'Georgia', serif;
    --font-body: 'Libre Baskerville', 'Georgia', serif;

    --shadow-sm: 0 1px 3px rgba(107,39,55,0.06);
    --shadow-md: 0 4px 16px rgba(107,39,55,0.08);
    --shadow-lg: 0 8px 32px rgba(107,39,55,0.1);
    --shadow-xl: 0 16px 48px rgba(107,39,55,0.12);

    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;

    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
    font-family: var(--font-body);
    color: var(--text-body);
    background: var(--cream);
    line-height: 1.75;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--burgundy); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold); }

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Navigation --- */
#main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(253,248,244,0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(107,39,55,0.08);
    transition: background var(--transition), box-shadow var(--transition);
}

#main-nav.scrolled {
    background: rgba(253,248,244,0.97);
    box-shadow: var(--shadow-sm);
}

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

.nav-logo {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 500;
    color: var(--burgundy);
    letter-spacing: 0.03em;
}
.nav-logo:hover { color: var(--burgundy-light); }

.nav-links {
    display: flex;
    list-style: none;
    gap: 8px;
}

.nav-links a {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-body);
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    letter-spacing: 0.02em;
}
.nav-links a:hover {
    color: var(--burgundy);
    background: rgba(107,39,55,0.05);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    gap: 5px;
}
.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--burgundy);
    transition: all var(--transition);
    border-radius: 2px;
}
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* --- Hero --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(245,230,224,0.8) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 50%, rgba(232,213,183,0.6) 0%, transparent 60%),
        radial-gradient(ellipse at 50% 80%, rgba(245,230,224,0.5) 0%, transparent 50%),
        linear-gradient(170deg, var(--blush) 0%, var(--cream) 30%, var(--champagne) 60%, var(--blush) 100%);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 15% 25%, rgba(184,134,11,0.06) 0%, transparent 40%),
        radial-gradient(circle at 85% 75%, rgba(107,39,55,0.04) 0%, transparent 40%);
    pointer-events: none;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(ellipse at 30% 40%, rgba(184,134,11,0.03) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 60%, rgba(107,39,55,0.03) 0%, transparent 50%);
    animation: heroFloat 20s ease-in-out infinite;
    pointer-events: none;
}

@keyframes heroFloat {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(2%, -1%) rotate(1deg); }
    66% { transform: translate(-1%, 1%) rotate(-0.5deg); }
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 100px 24px 60px;
    max-width: 800px;
    animation: fadeInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-kicker {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 16px;
    animation: fadeInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(3.5rem, 8vw, 7rem);
    font-weight: 300;
    color: var(--burgundy);
    letter-spacing: 0.04em;
    line-height: 1.1;
    margin-bottom: 8px;
    animation: fadeInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}

.hero-subtitle {
    font-family: var(--font-display);
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    font-weight: 400;
    color: var(--warm-gray);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 24px;
    animation: fadeInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both;
}

.hero-description {
    font-size: 1.05rem;
    color: var(--text-body);
    max-width: 600px;
    margin: 0 auto 36px;
    line-height: 1.8;
    animation: fadeInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.6s both;
}

.hero-cta-group {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.7s both;
}

.hero-scroll-hint {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    animation: fadeInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) 1s both;
    z-index: 2;
}
.hero-scroll-hint span {
    font-family: var(--font-display);
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--soft-gray);
    display: block;
    margin-bottom: 8px;
}
.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 1.5px solid var(--soft-gray);
    border-bottom: 1.5px solid var(--soft-gray);
    transform: rotate(45deg);
    margin: 0 auto;
    animation: scrollBounce 2s ease-in-out infinite;
}
@keyframes scrollBounce {
    0%, 100% { transform: rotate(45deg) translate(0, 0); opacity: 0.6; }
    50% { transform: rotate(45deg) translate(4px, 4px); opacity: 1; }
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    padding: 14px 36px;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    text-transform: uppercase;
}

.btn-primary {
    background: var(--burgundy);
    color: var(--white);
}
.btn-primary:hover {
    background: var(--burgundy-light);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: transparent;
    color: var(--burgundy);
    border: 1.5px solid var(--burgundy);
}
.btn-secondary:hover {
    background: var(--burgundy);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* --- Category Cards --- */
.category-preview {
    padding: 80px 0;
    background: var(--white);
    border-top: 1px solid rgba(107,39,55,0.06);
    border-bottom: 1px solid rgba(107,39,55,0.06);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
}

.cat-card {
    text-align: center;
    padding: 32px 16px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(107,39,55,0.08);
    background: var(--ivory);
    transition: all var(--transition);
}
.cat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--gold);
}
.cat-icon {
    font-size: 2rem;
    margin-bottom: 12px;
    line-height: 1;
}
.cat-card h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--burgundy);
    margin-bottom: 4px;
}
.cat-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* --- Ornamental Divider --- */
.ornamental-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin: 24px auto;
    max-width: 300px;
}
.ornament-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.ornament-diamond {
    color: var(--gold);
    font-size: 0.75rem;
    line-height: 1;
}
.hero-divider { margin-bottom: 20px; }

/* --- Section Styles --- */
.section {
    padding: 80px 0;
}
.section-alt {
    background: linear-gradient(180deg, var(--ivory) 0%, var(--blush) 50%, var(--ivory) 100%);
}

.section-header {
    text-align: center;
    margin-bottom: 56px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400;
    color: var(--burgundy);
    letter-spacing: 0.03em;
    margin-bottom: 12px;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--warm-gray);
    max-width: 600px;
    margin: 0 auto;
}

/* --- Ad Slots --- */
.ad-slot {
    min-height: 250px;
    max-width: 1100px;
    margin: 0 auto;
    background: rgba(107,39,55,0.03);
    border: 1px dashed rgba(107,39,55,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
}
.ad-slot span {
    font-family: var(--font-display);
    font-size: 0.85rem;
    color: rgba(107,39,55,0.25);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* --- Planning Timeline --- */
.timeline-container {
    position: relative;
    padding-left: 80px;
}

.timeline-container::before {
    content: '';
    position: absolute;
    left: 35px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--gold), var(--burgundy), var(--gold));
}

.timeline-block {
    position: relative;
    margin-bottom: 48px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s forwards;
}

.timeline-block:nth-child(1) { animation-delay: 0.1s; }
.timeline-block:nth-child(2) { animation-delay: 0.2s; }
.timeline-block:nth-child(3) { animation-delay: 0.3s; }
.timeline-block:nth-child(4) { animation-delay: 0.4s; }
.timeline-block:nth-child(5) { animation-delay: 0.5s; }
.timeline-block:nth-child(6) { animation-delay: 0.6s; }

.timeline-marker {
    position: absolute;
    left: -80px;
    top: 0;
    width: 70px;
    text-align: center;
}

.timeline-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--burgundy);
    color: var(--white);
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0 auto 4px;
    box-shadow: 0 0 0 4px var(--cream), 0 0 0 6px var(--burgundy);
}

.timeline-label {
    font-family: var(--font-display);
    font-size: 0.7rem;
    color: var(--warm-gray);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.timeline-content {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 28px 32px;
    border: 1px solid rgba(107,39,55,0.08);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
}
.timeline-content:hover {
    box-shadow: var(--shadow-md);
    border-color: rgba(184,134,11,0.2);
}

.timeline-content h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--burgundy);
    margin-bottom: 16px;
}

.timeline-checklist {
    list-style: none;
}

.timeline-checklist li {
    margin-bottom: 8px;
}

.timeline-checklist label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 0.95rem;
    line-height: 1.5;
    transition: color var(--transition);
}

.timeline-checklist input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    min-width: 20px;
    border: 1.5px solid var(--burgundy);
    border-radius: 3px;
    cursor: pointer;
    position: relative;
    margin-top: 2px;
    transition: all var(--transition);
    background: var(--white);
}

.timeline-checklist input[type="checkbox"]:checked {
    background: var(--burgundy);
    border-color: var(--burgundy);
}

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

.timeline-checklist input[type="checkbox"]:checked + .checkmark + span,
.timeline-checklist label:has(input:checked) {
    color: var(--soft-gray);
    text-decoration: line-through;
    text-decoration-color: rgba(107,39,55,0.3);
}

.timeline-progress-bar {
    margin-top: 40px;
    background: rgba(107,39,55,0.08);
    border-radius: 20px;
    height: 32px;
    position: relative;
    overflow: hidden;
}
.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--burgundy), var(--gold));
    border-radius: 20px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    width: 0%;
}
.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-body);
    white-space: nowrap;
}

/* --- Guide Articles --- */
.guide-article {
    position: relative;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 48px;
    margin-bottom: 40px;
    border: 1px solid rgba(107,39,55,0.06);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: all var(--transition);
}
.guide-article:hover {
    box-shadow: var(--shadow-md);
}

.guide-number {
    position: absolute;
    top: 20px;
    right: 28px;
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 300;
    color: rgba(107,39,55,0.06);
    line-height: 1;
}

.guide-title {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--burgundy);
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(184,134,11,0.2);
}

.guide-body p {
    margin-bottom: 16px;
    line-height: 1.85;
    font-size: 0.98rem;
}

.guide-body ul {
    margin: 12px 0 20px 20px;
    line-height: 1.8;
}
.guide-body ul li {
    margin-bottom: 6px;
    font-size: 0.98rem;
}

.guide-body a {
    color: var(--gold);
    border-bottom: 1px solid rgba(184,134,11,0.3);
    transition: all var(--transition);
}
.guide-body a:hover {
    color: var(--burgundy);
    border-bottom-color: var(--burgundy);
}

/* --- Budget Calculator --- */
.calculator-container {
    max-width: 800px;
    margin: 0 auto;
}

.calc-input-group {
    text-align: center;
    margin-bottom: 40px;
}

.calc-label {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--burgundy);
    display: block;
    margin-bottom: 12px;
}

.calc-input-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--white);
    border: 2px solid var(--burgundy);
    border-radius: var(--radius-md);
    padding: 4px 16px;
    transition: all var(--transition);
}
.calc-input-wrapper:focus-within {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(184,134,11,0.15);
}

.calc-currency {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--burgundy);
    font-weight: 600;
}

.calc-input {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-dark);
    border: none;
    outline: none;
    background: transparent;
    width: 180px;
    padding: 8px 0;
}

.calc-grid {
    display: grid;
    gap: 16px;
    margin-bottom: 32px;
}

.calc-category {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 20px 24px;
    border: 1px solid rgba(107,39,55,0.08);
    transition: all var(--transition);
}
.calc-category:hover {
    border-color: rgba(184,134,11,0.2);
    box-shadow: var(--shadow-sm);
}

.calc-cat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.calc-cat-name {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-dark);
}

.calc-pct-wrapper {
    display: flex;
    align-items: center;
    gap: 2px;
    font-family: var(--font-display);
    font-size: 1rem;
    color: var(--burgundy);
    font-weight: 600;
}

.calc-pct {
    width: 48px;
    text-align: right;
    border: 1px solid rgba(107,39,55,0.15);
    border-radius: var(--radius-sm);
    padding: 4px 6px;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    color: var(--burgundy);
    background: var(--ivory);
    outline: none;
    transition: all var(--transition);
}
.calc-pct:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 2px rgba(184,134,11,0.15);
}

.calc-cat-amount {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--gold);
    margin-bottom: 8px;
}

.calc-cat-bar {
    height: 6px;
    background: rgba(107,39,55,0.06);
    border-radius: 3px;
    overflow: hidden;
}
.calc-cat-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--burgundy), var(--gold));
    border-radius: 3px;
    transition: width 0.4s ease;
}

.calc-summary {
    background: linear-gradient(135deg, var(--blush), var(--champagne));
    border-radius: var(--radius-md);
    padding: 24px 28px;
    margin-bottom: 32px;
    border: 1px solid rgba(184,134,11,0.15);
}

.calc-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-dark);
    padding: 6px 0;
}

.calc-remaining.over-budget span {
    color: #c0392b;
    font-weight: 700;
}
.calc-remaining.on-budget span {
    color: #27ae60;
}

.calc-chart-container {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}

.calc-reset {
    display: block;
    margin: 0 auto;
    font-size: 0.9rem;
    padding: 10px 24px;
}

/* --- Guest Manager --- */
.guest-manager-container {
    max-width: 900px;
    margin: 0 auto;
}

.gm-inputs {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.gm-input-group {
    text-align: center;
}
.gm-input-group label {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 500;
    color: var(--burgundy);
    display: block;
    margin-bottom: 8px;
}
.gm-input-group .calc-input {
    width: 140px;
    text-align: center;
    border: 2px solid var(--burgundy);
    border-radius: var(--radius-md);
    padding: 10px;
    background: var(--white);
}
.gm-input-group .calc-input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(184,134,11,0.15);
    outline: none;
}

.gm-results {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.gm-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 28px 20px;
    text-align: center;
    border: 1px solid rgba(107,39,55,0.08);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
}
.gm-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--gold);
}

.gm-card-icon {
    font-size: 2rem;
    margin-bottom: 8px;
}
.gm-card-label {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--warm-gray);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 8px;
}
.gm-card-value {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 600;
    color: var(--burgundy);
    line-height: 1.2;
    margin-bottom: 4px;
}
.gm-card-note {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* --- Comparison Tables --- */
.comparison-block {
    margin-bottom: 48px;
}

.comparison-title {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--burgundy);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(184,134,11,0.2);
}

.table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    font-size: 0.9rem;
}

.comparison-table thead {
    background: var(--burgundy);
}
.comparison-table th {
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--white);
    padding: 14px 16px;
    text-align: left;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.comparison-table td {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(107,39,55,0.06);
    vertical-align: top;
    line-height: 1.6;
}

.comparison-table tbody tr:hover {
    background: rgba(245,230,224,0.4);
}

.comparison-table tbody tr:last-child td {
    border-bottom: none;
}

/* --- Etiquette --- */
.etiquette-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.etiquette-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 28px;
    border: 1px solid rgba(107,39,55,0.08);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
}
.etiquette-card:hover {
    box-shadow: var(--shadow-md);
    border-color: rgba(184,134,11,0.15);
}

.etiquette-card h4 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--burgundy);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(184,134,11,0.15);
}
.etiquette-card p {
    font-size: 0.92rem;
    line-height: 1.75;
}

/* --- Glossary --- */
.glossary-grid {
    columns: 2;
    column-gap: 32px;
}

.glossary-item {
    break-inside: avoid;
    background: var(--white);
    border-radius: var(--radius-sm);
    padding: 16px 20px;
    margin-bottom: 12px;
    border: 1px solid rgba(107,39,55,0.06);
    font-size: 0.92rem;
    line-height: 1.65;
    transition: all var(--transition);
}
.glossary-item:hover {
    border-color: rgba(184,134,11,0.2);
    box-shadow: var(--shadow-sm);
}
.glossary-item strong {
    color: var(--burgundy);
    font-family: var(--font-display);
    font-size: 1rem;
}
.glossary-item em {
    color: var(--warm-gray);
}

/* --- FAQ --- */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 8px;
    border: 1px solid rgba(107,39,55,0.08);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--white);
    transition: all var(--transition);
}
.faq-item:hover {
    border-color: rgba(184,134,11,0.15);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-dark);
    text-align: left;
    gap: 16px;
    transition: color var(--transition);
}
.faq-question:hover {
    color: var(--burgundy);
}

.faq-icon {
    font-size: 1.4rem;
    color: var(--gold);
    font-weight: 300;
    min-width: 24px;
    text-align: center;
    transition: transform var(--transition);
    font-family: var(--font-display);
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s ease;
    padding: 0 24px;
}
.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 24px 20px;
}

.faq-answer p {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--text-body);
}
.faq-answer a {
    color: var(--gold);
    border-bottom: 1px solid rgba(184,134,11,0.3);
}
.faq-answer a:hover {
    color: var(--burgundy);
}

/* --- Footer --- */
.site-footer {
    background: var(--burgundy-dark);
    color: rgba(255,255,255,0.7);
    padding: 60px 0 40px;
    text-align: center;
}

.footer-divider .ornament-line {
    background: linear-gradient(90deg, transparent, rgba(184,134,11,0.5), transparent);
}
.footer-divider .ornament-diamond {
    color: var(--gold-light);
}

.footer-brand {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--white);
    letter-spacing: 0.04em;
    margin: 20px 0 8px;
}

.footer-tagline {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-style: italic;
    color: rgba(255,255,255,0.5);
    margin-bottom: 28px;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 20px;
    margin-bottom: 32px;
}
.footer-nav a {
    font-family: var(--font-display);
    font-size: 0.9rem;
    color: rgba(255,255,255,0.6);
    transition: color var(--transition);
}
.footer-nav a:hover {
    color: var(--gold-light);
}

.footer-copy {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.35);
    margin-bottom: 8px;
}
.footer-disclaimer {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.25);
    max-width: 500px;
    margin: 0 auto;
}

/* --- Responsive --- */
@media (max-width: 900px) {
    .glossary-grid { columns: 1; }

    .guide-article { padding: 32px 24px; }
    .guide-number { font-size: 3rem; top: 12px; right: 16px; }

    .comparison-table { font-size: 0.82rem; }
    .comparison-table th, .comparison-table td { padding: 10px 12px; }
}

@media (max-width: 768px) {
    .nav-toggle { display: flex; }
    .nav-links {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: rgba(253,248,244,0.98);
        backdrop-filter: blur(16px);
        flex-direction: column;
        padding: 16px 24px;
        border-bottom: 1px solid rgba(107,39,55,0.08);
        box-shadow: var(--shadow-md);
    }
    .nav-links.open { display: flex; }
    .nav-links a { padding: 10px 16px; font-size: 1.05rem; }

    .timeline-container { padding-left: 60px; }
    .timeline-container::before { left: 22px; }
    .timeline-marker { left: -60px; width: 50px; }
    .timeline-number { width: 40px; height: 40px; font-size: 1rem; }
    .timeline-content { padding: 20px; }
    .timeline-content h3 { font-size: 1.2rem; }

    .hero-title { letter-spacing: 0.02em; }

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

    .category-grid { grid-template-columns: repeat(2, 1fr); }

    .gm-results { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .category-grid { grid-template-columns: 1fr; }
    .gm-results { grid-template-columns: 1fr; }
    .gm-inputs { flex-direction: column; align-items: center; }

    .hero-cta-group { flex-direction: column; align-items: center; }
    .btn { width: 100%; max-width: 280px; text-align: center; }

    .guide-article { padding: 24px 18px; }
    .guide-title { font-size: 1.3rem; }
    .guide-number { display: none; }

    .calc-input { font-size: 1.25rem; width: 140px; }

    .timeline-container { padding-left: 48px; }
    .timeline-container::before { left: 16px; }
    .timeline-marker { left: -48px; width: 38px; }
    .timeline-number { width: 32px; height: 32px; font-size: 0.85rem; box-shadow: 0 0 0 3px var(--cream), 0 0 0 5px var(--burgundy); }
    .timeline-label { font-size: 0.6rem; }
}

/* --- Scroll animations --- */
.fade-in-section {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-in-section.visible {
    opacity: 1;
    transform: translateY(0);
}
