:root {
    --sage-50: #F5F7F3;
    --sage-100: #E4EAE0;
    --sage-200: #CDD9C7;
    --sage-300: #B8C8B0;
    --sage-400: #A8B9A5;
    --sage-500: #8CA08A;
    --sage-600: #6F826D;
    --sage-700: #556756;
    --sage-800: #3F4E41;
    --gold-100: #F3E9C7;
    --gold-300: #E6D3A6;
    --gold-500: #D6B97D;
    --gold-700: #B28F52;
    --cream: #F9F4EF;
    --pearl: #FFFFFF;
    --ink: #1E2A1F;
    --ink-soft: rgba(30, 42, 31, 0.7);
    --shadow: 0 20px 55px rgba(32, 45, 32, 0.16);
    --shadow-soft: 0 10px 30px rgba(32, 45, 32, 0.12);
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;
    --radius-sm: 10px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background-color: var(--sage-50);
}

body {
    margin: 0;
    font-family: 'Sora', sans-serif;
    color: var(--ink);
    background: radial-gradient(circle at 12% 18%, rgba(168, 185, 165, 0.45), transparent 50%),
        radial-gradient(circle at 80% 0%, rgba(141, 170, 138, 0.35), transparent 45%),
        radial-gradient(circle at 90% 80%, rgba(214, 185, 125, 0.18), transparent 45%),
        linear-gradient(180deg, #FFFFFF 0%, var(--sage-50) 42%, #F1F5EF 100%);
    min-height: 100vh;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: radial-gradient(circle at 15% 25%, rgba(214, 185, 125, 0.08), transparent 35%),
        radial-gradient(circle at 85% 15%, rgba(168, 185, 165, 0.12), transparent 40%),
        radial-gradient(circle at 10% 85%, rgba(168, 185, 165, 0.12), transparent 40%);
    pointer-events: none;
    z-index: -1;
}

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

a {
    text-decoration: none;
    color: inherit;
}

main {
    background: transparent;
}

.container {
    width: min(1080px, 100%);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 4.5rem 0;
    position: relative;
    overflow: hidden;
}

.section-title {
    font-family: 'Cinzel Decorative', 'Cormorant Garamond', serif;
    font-size: clamp(2rem, 3vw, 2.75rem);
    text-align: center;
    margin: 0 0 1.5rem;
    letter-spacing: 0.02em;
}

.section-title::after {
    content: '';
    display: block;
    width: 120px;
    height: 3px;
    margin: 0.75rem auto 0;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, var(--gold-500), transparent);
}

.section-desc {
    text-align: center;
    margin: -0.5rem auto 2rem;
    max-width: 720px;
    color: var(--ink-soft);
}

.eyebrow {
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-size: 0.75rem;
    color: var(--sage-700);
    margin: 0 0 1rem;
}

.title {
    font-family: 'Cinzel Decorative', 'Cormorant Garamond', serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin: 0;
    text-align: center;
    letter-spacing: 0.02em;
}

.title span {
    display: inline-block;
    color: var(--sage-600);
    margin: 0 0.35rem;
}

.subtitle {
    text-align: center;
    color: var(--ink-soft);
    margin: 1rem 0 2rem;
}

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 6rem 1.5rem 4rem;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 10%, rgba(214, 185, 125, 0.22), transparent 55%);
    z-index: 1;
    pointer-events: none;
}

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    filter: saturate(0.85);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(248, 248, 245, 0.4), rgba(245, 247, 243, 0.85));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    background: rgba(255, 255, 255, 0.75);
    padding: clamp(2rem, 4vw, 3.5rem);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(214, 185, 125, 0.35);
}

.hero-content::before {
    content: '';
    position: absolute;
    inset: 12px;
    border-radius: calc(var(--radius-xl) - 12px);
    border: 1px solid rgba(214, 185, 125, 0.25);
    pointer-events: none;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.scroll-hint {
    width: 30px;
    height: 48px;
    border-radius: 999px;
    border: 1px solid var(--sage-400);
    margin: 2.5rem auto 0;
    position: relative;
}

.scroll-hint span {
    position: absolute;
    top: 10px;
    left: 50%;
    width: 6px;
    height: 12px;
    margin-left: -3px;
    background: var(--sage-500);
    border-radius: 6px;
    animation: scroll 2.5s infinite;
}

@keyframes scroll {
    0% {
        transform: translateY(0);
        opacity: 0.2;
    }
    50% {
        transform: translateY(12px);
        opacity: 1;
    }
    100% {
        transform: translateY(22px);
        opacity: 0;
    }
}

.btn {
    border: none;
    cursor: pointer;
    padding: 0.75rem 1.5rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
}

.btn-primary {
    background: var(--sage-600);
    color: var(--pearl);
    box-shadow: 0 12px 25px rgba(111, 130, 109, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    background: var(--sage-700);
}

.btn-outline {
    border: 1px solid var(--sage-600);
    background: transparent;
    color: var(--sage-700);
}

.btn-outline:hover {
    background: var(--sage-600);
    color: var(--pearl);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.7);
    color: var(--sage-700);
    padding: 0.6rem 1.1rem;
    font-size: 0.85rem;
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.95);
}

.quote .arabic,
.closing .arabic {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    text-align: center;
    margin-bottom: 1rem;
}

.quote-card {
    background: var(--pearl);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin: 1rem auto 0;
    max-width: 680px;
    box-shadow: var(--shadow-soft);
}

.quote-card span {
    display: block;
    margin-top: 0.75rem;
    font-size: 0.85rem;
    color: var(--sage-700);
}

.bride-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    align-items: center;
    gap: 2rem;
    text-align: center;
}

.profile {
    background: var(--pearl);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.profile-image {
    width: 170px;
    height: 170px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    object-fit: cover;
    border: 4px solid var(--sage-200);
    cursor: pointer;
}

.profile h3 {
    margin: 0.5rem 0 0.25rem;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.6rem;
}

.profile-role {
    color: var(--sage-600);
    margin: 0;
}

.profile-family {
    color: var(--ink-soft);
    margin: 0.75rem 0 0;
}

.ampersand {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3.5rem;
    color: var(--sage-600);
}

.story {
    background: rgba(255, 255, 255, 0.6);
}

.timeline {
    display: grid;
    gap: 1.5rem;
    max-width: 760px;
    margin: 0 auto;
}

.timeline-item {
    display: grid;
    grid-template-columns: 50px 1fr;
    gap: 1.25rem;
    align-items: flex-start;
}

.timeline-dot {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--sage-600);
    color: var(--pearl);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.timeline-item h3 {
    margin: 0 0 0.35rem;
    font-size: 1.1rem;
}

.event {
    background: var(--pearl);
}

.countdown {
    display: grid;
    grid-template-columns: repeat(4, minmax(80px, 1fr));
    gap: 1rem;
    justify-items: center;
    margin: 2rem 0 1rem;
}

.countdown div {
    width: 100%;
    background: var(--sage-50);
    border-radius: var(--radius-md);
    padding: 1rem;
    text-align: center;
    box-shadow: inset 0 0 0 1px rgba(140, 160, 138, 0.2);
}

.countdown span {
    display: block;
    font-size: 1.8rem;
    font-weight: 600;
}

.countdown small {
    color: var(--ink-soft);
}

.countdown-note {
    text-align: center;
    color: var(--sage-700);
    min-height: 1.5rem;
}

.event-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.event-card {
    background: var(--sage-50);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(140, 160, 138, 0.2);
    box-shadow: var(--shadow-soft);
}

.event-card h3 {
    margin-top: 0;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
}

.location {
    text-align: center;
}

.location p {
    color: var(--ink-soft);
    margin-top: 0.8rem;
}

.gallery {
    background: transparent;
}

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

.gallery-grid img {
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gallery-grid img:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: var(--shadow);
}

.gift {
    background: var(--pearl);
}

.gift-grid {
    display: grid;
    gap: 1rem;
}

.gift-card {
    background: var(--sage-50);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(140, 160, 138, 0.2);
    padding: 1.1rem 1.4rem;
    box-shadow: var(--shadow-soft);
}

.gift-card summary {
    cursor: pointer;
    font-weight: 600;
    list-style: none;
}

.gift-card summary::-webkit-details-marker {
    display: none;
}

.gift-body {
    margin-top: 1rem;
    display: grid;
    gap: 0.8rem;
}

.gift-line {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
}

.comment {
    background: rgba(255, 255, 255, 0.7);
}

.comment-form {
    background: var(--pearl);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    display: grid;
    gap: 1.25rem;
    border: 1px solid rgba(214, 185, 125, 0.25);
}

.field {
    display: grid;
    gap: 0.5rem;
}

.field input,
.field select,
.field textarea {
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(140, 160, 138, 0.3);
    font-family: inherit;
    font-size: 0.95rem;
    background: var(--sage-50);
}

.comment-list {
    margin-top: 2rem;
    display: grid;
    gap: 1rem;
}

.comment-item {
    background: var(--pearl);
    padding: 1.25rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}

.comment-item header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    font-size: 0.75rem;
    background: var(--sage-100);
    color: var(--sage-700);
}

.badge.absent {
    background: #F6E7E7;
    color: #8C3B3B;
}

.comment-item p {
    margin: 0.75rem 0 0;
    color: var(--ink-soft);
    white-space: pre-wrap;
}

.comment-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    margin-top: 0.75rem;
}

.comment-actions button {
    background: transparent;
    border: none;
    color: var(--sage-700);
    cursor: pointer;
}

.closing {
    text-align: center;
    background: var(--sage-700);
    color: var(--pearl);
}

.closing h2 {
    font-family: 'Cormorant Garamond', serif;
    margin: 1.5rem 0 0.5rem;
}

.footer {
    padding: 2rem 0 3rem;
    text-align: center;
    color: var(--ink-soft);
}

.welcome {
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.85), rgba(240, 246, 239, 0.95));
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: opacity 0.3s ease;
}

.welcome-card {
    background: var(--pearl);
    padding: 3rem 2.5rem;
    border-radius: var(--radius-xl);
    text-align: center;
    box-shadow: var(--shadow);
    width: min(480px, 90vw);
    border: 1px solid rgba(214, 185, 125, 0.35);
}

.welcome[aria-hidden="true"] {
    opacity: 0;
    pointer-events: none;
}

.guest-name {
    font-weight: 600;
    font-size: 1.1rem;
    margin: 0.5rem 0 1.5rem;
}

.floating-nav {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.85);
    padding: 0.5rem 0.75rem;
    border-radius: 999px;
    box-shadow: var(--shadow);
    z-index: 999;
    backdrop-filter: blur(12px);
}

.pill {
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    font-size: 0.8rem;
    color: var(--sage-700);
    transition: background 0.2s ease;
}

.pill:hover {
    background: var(--sage-100);
}

.audio-toggle {
    position: fixed;
    top: 2rem;
    right: 2rem;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(140, 160, 138, 0.2);
    border-radius: 999px;
    padding: 0.45rem 0.85rem;
    display: flex;
    gap: 0.5rem;
    align-items: center;
    box-shadow: var(--shadow-soft);
    cursor: pointer;
    z-index: 998;
}

.audio-toggle .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--sage-600);
    animation: pulse 1.8s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.5);
        opacity: 1;
    }
}

.modal {
    position: fixed;
    inset: 0;
    background: rgba(19, 26, 20, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1001;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: var(--pearl);
    padding: 1rem;
    border-radius: var(--radius-lg);
    max-width: min(90vw, 720px);
    max-height: 80vh;
    position: relative;
    box-shadow: var(--shadow);
}

.modal-content img {
    max-height: 70vh;
    object-fit: contain;
}

.modal-close {
    position: absolute;
    top: 0.6rem;
    right: 0.6rem;
    border: none;
    background: var(--sage-600);
    color: var(--pearl);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
}

.reveal {
    opacity: 0;
    transform: translateY(36px) scale(0.98);
    filter: blur(6px);
    transition: opacity 0.8s ease, transform 0.8s ease, filter 0.8s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

.ornament {
    position: absolute;
    pointer-events: none;
    opacity: 0.75;
    z-index: 0;
}

.ornament-floral {
    width: min(320px, 45vw);
    height: 180px;
    background: url('../assets/ornaments/floral.svg') no-repeat center / contain;
}

.ornament-tree {
    width: min(200px, 40vw);
    height: 240px;
    background: url('../assets/ornaments/tree.svg') no-repeat center / contain;
    opacity: 0.55;
}

.ornament-grass {
    width: 110%;
    height: 140px;
    left: -5%;
    bottom: -40px;
    background: url('../assets/ornaments/grass.svg') repeat-x center / contain;
    opacity: 0.7;
}

.ornament-left {
    top: -20px;
    left: -40px;
}

.ornament-right {
    top: -20px;
    right: -40px;
    transform: scaleX(-1);
}

.ornamented .container {
    position: relative;
    z-index: 2;
}

.hero-ornament {
    position: absolute;
    bottom: -20px;
    z-index: 2;
    pointer-events: none;
}

.hero-tree-left {
    left: -10px;
}

.hero-tree-right {
    right: -10px;
    transform: scaleX(-1);
}

.lux-divider {
    height: 2px;
    width: min(520px, 80vw);
    margin: 2.5rem auto 0;
    background: linear-gradient(90deg, transparent, var(--gold-500), transparent);
    opacity: 0.6;
}

[data-parallax] {
    --parallax-offset: 0px;
    will-change: transform;
    transform: translate3d(0, var(--parallax-offset), 0);
}

.ornament-right[data-parallax] {
    transform: translate3d(0, var(--parallax-offset), 0) scaleX(-1);
}

.hero-tree-right[data-parallax] {
    transform: translate3d(0, var(--parallax-offset), 0) scaleX(-1);
}

@media (max-width: 768px) {
    .hero-content {
        padding: 2rem 1.5rem;
    }

    .timeline-item {
        grid-template-columns: 1fr;
    }

    .timeline-dot {
        margin-bottom: 0.5rem;
    }

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

    .floating-nav {
        bottom: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .audio-toggle {
        top: 1rem;
        right: 1rem;
    }

    .ornament-floral {
        width: 220px;
    }

    .ornament-tree {
        width: 150px;
        height: 200px;
    }
}
