:root {
    --ivory: #fbf8f1;
    --cream: #fffaf3;
    --sand: #eadfce;
    --border: #ded0bd;
    --olive: #4d5735;
    --olive-light: #6d7653;
    --text: #2f2b25;
    --shadow: 0 16px 42px rgba(81, 68, 49, 0.1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Montserrat", sans-serif;
    color: var(--text);
    background: linear-gradient(180deg, #fffaf4, #f7f1e8 50%, #eee3d2);
    line-height: 1.6;
}

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

/* SITE WRAPPER */
.site {
    width: min(1120px, 100%);
    margin: auto;
    background: var(--ivory);
    box-shadow: 0 0 80px rgba(92, 78, 56, 0.16);
    overflow: hidden;
}

/* NAVBAR */
.navbar {
    position: sticky;
    top: 0;
    z-index: 20;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(22px, 5vw, 74px);
    padding: 0 22px;
    background: rgba(255, 252, 246, 0.92);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(222, 208, 189, 0.75);
}

.navbar a {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}



/* HERO SECTION */
.hero {
    position: relative;
    min-height: 610px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid rgba(222, 208, 189, 0.75);
    background: var(--cream);
    overflow: hidden;
}

.hero:before {
    content: "";
    position: absolute;
    inset: 0;
    background: #f5eee3;
    background-size: cover;
    background-position: center;
    opacity: 0.85;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 40px 70px 62px 70px;
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
}

/* HERO SECTION OLD */

/* .hero {
    position: relative;
    min-height: 610px;
    display: grid;
    grid-template-columns: 43% 57%;
    align-items: center;
    border-bottom: 1px solid rgba(222, 208, 189, 0.75);
    background: var(--cream);
    overflow: hidden;
}

.hero:before {
    content: "";
    position: absolute;
    inset: 0;
    background: #f5eee3;
    background-size: cover;
    background-position: left center;
    opacity: 0.85;
} */

/* .hero:before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,
            rgba(255, 250, 243, 0.08),
            rgba(255, 250, 243, 0.98) 47%,
            rgba(255, 250, 243, 0.92)),
        url("https://images.unsplash.com/photo-1526047932273-341f2a7631f9?auto=format&fit=crop&w=1300&q=80");
    background-size: cover;
    background-position: left center;
    opacity: 0.85;
} */

.hero-content {
    position: relative;
    z-index: 1;
    grid-column: 2;
    text-align: center;
    padding: 40px 70px 62px 30px;
}

/* TYPOGRAPHY */
.small-serif {
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(21px, 2.2vw, 29px);
    line-height: 1.15;
    font-weight: 500;
}

.names {
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(52px, 7vw, 86px);
    font-weight: 500;
    line-height: 1;
    color: var(--olive);
    letter-spacing: 0.12em;
    margin: 34px 0 24px;
    text-transform: uppercase;
}

.intro-text {
    max-width: 450px;
    margin: 0 auto;
    font-size: 17px;
    line-height: 1.65;
}

.ornament {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    color: var(--olive-light);
    margin: 18px auto;
}

.ornament:before,
.ornament:after {
    content: "";
    width: 92px;
    height: 1px;
    background: var(--border);
}

.date {
    font-family: "Cormorant Garamond", serif;
    color: var(--olive);
    font-size: clamp(36px, 4.4vw, 48px);
    letter-spacing: 0.1em;
    margin: 4px 0;
}

/* SECTIONS */
.section {
    padding: 42px 24px;
    border-bottom: 1px solid rgba(222, 208, 189, 0.75);
    position: relative;
}

.section-title {
    text-align: center;
    font-family: "Cormorant Garamond", serif;
    color: var(--olive);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: clamp(32px, 4.4vw, 42px);
    font-weight: 500;
    line-height: 1.1;
    margin-bottom: 16px;
}

.section-subtitle {
    margin-bottom: 32px;
}

/* CELEBRATION & COUNTDOWN */
.countdown-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    max-width: 860px;
    margin: 34px auto 0;
    text-align: center;
}

/* Celebration - 2x2 grid on mobile, 4x1 on desktop */
.celebration-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    max-width: 860px;
    margin: 34px auto 0;
    text-align: center;
}

.celebration-icon {
    width: 42px;
    height: 42px;
    margin: 0 auto 12px;
    color: var(--olive-light);
}

.note-box {
    border: 1px solid var(--border);
    border-radius: 18px;
    background: rgba(238, 229, 216, .58);
    padding: 20px;
    margin-bottom: 22px;
    text-align: center;
    font-size: 14px
}

.note-box strong {
    color: var(--olive)
}

/* Bismillah - Calligraphic Style */
.bismillah {
    font-family: "Noto Naskh Arabic", "Amiri", "Scheherazade New", serif;
    font-size: clamp(20px, 5vw, 32px);
    font-weight: 600;
    color: var(--olive);
    text-align: center;
    margin-bottom: 20px;
    letter-spacing: 0.03em;
    line-height: 1.5;
    position: relative;
    display: inline-block;
    width: 100%;
}

/* Bismillah Arabic Styling - Option 2 style with Option 1 font */
.bismillah {
    font-family: "Amiri", "Scheherazade New", "Noto Naskh Arabic", "Lateef", serif;
    font-size: clamp(18px, 4vw, 26px);
    font-weight: 500;
    color: var(--olive);
    text-align: center;
    margin-bottom: 16px;
    letter-spacing: 0.03em;
    line-height: 1.5;
    position: relative;
    display: inline-block;
    width: 100%;
    opacity: 0.85;
}

/* Decorative lines around Bismillah */
.bismillah::before,
.bismillah::after {
    content: "✦";
    font-size: 12px;
    color: var(--olive-light);
    margin: 0 10px;
    opacity: 0.6;
}

.bismillah::before {
    margin-right: 10px;
}

.bismillah::after {
    margin-left: 10px;
}

.icon-music {
    position: fixed;
    bottom: 24px;
    width: 50px;
    z-index: 999;
    left: 24px;
    animation: 2s ease 0s infinite normal none running pulse;
    cursor: pointer;
    border-radius: 50%;
    box-shadow: rgb(0 0 0 / 20%) 0px 4px 8px 0px, rgb(0 0 0 / 19%) 0px 6px 20px 0px;
}

/* Address styling - separate line, smaller */
.meta-address {
    font-size: 12px;
    color: var(--text);
    opacity: 0.75;
    line-height: 1.5;
    margin-bottom: 10px;
    font-style: italic;
}

/* Tags container - on its own line */
.meta-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

/* Non-clickable meta tags (Price Range, Opening Hours, etc.) */
.meta-tag {
    display: inline-block;
    font-size: 11px;
    color: #b08d57;
    background: rgba(176, 141, 87, 0.1);
    padding: 4px 12px;
    border-radius: 20px;
    letter-spacing: 0.03em;
}

/* Links container - on its own line */
.meta-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 10px;
}

/* Clickable links */
.meta-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #b08d57;
    text-decoration: none;
    transition: opacity 0.2s ease;
    padding: 4px 0;
}

.meta-link:hover {
    opacity: 0.7;
}

.meta-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

/* Desktop: keep celebration as 4 columns */
@media (min-width: 641px) {
    .celebration-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .celebration-item {
        padding: 0 28px;
        border-right: 1px solid var(--border);
        border-bottom: none;
    }

    .celebration-item:last-child {
        border-right: 0;
    }
}

/* Mobile: make celebration 2x2 grid */
@media (max-width: 640px) {
    .celebration-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0;
        margin: 34px auto 0;
        border: 1px solid var(--border);
        border-radius: 16px;
        overflow: hidden;
    }

    .celebration-item {
        padding: 16px 12px;
        border-right: 1px solid var(--border);
        border-bottom: 1px solid var(--border);
        background: rgba(255, 252, 246, 0.5);
    }

    /* Remove right border from 2nd and 4th items */
    .celebration-item:nth-child(2),
    .celebration-item:nth-child(4) {
        border-right: 0;
    }

    /* Remove bottom border from 3rd and 4th items (bottom row) */
    .celebration-item:nth-child(3),
    .celebration-item:nth-child(4) {
        border-bottom: 0;
    }

    .celebration-icon {
        width: 42px;
        height: 42px;
        margin: 0 auto 12px;
        color: var(--olive-light)
    }

    .value {
        font-size: 18px;
    }

    .label {
        font-size: 10px;
    }
}

/* VENUE */
.venue-layout {
    display: grid;
    grid-template-columns: 38% 62%;
    gap: 42px;
    align-items: center;
    max-width: 990px;
    margin: 0 auto;
}

.venue-text {
    text-align: center;
    padding: 10px 12px;
}

.venue-text p {
    max-width: 320px;
    margin: 16px auto;
    font-size: 15px;
}

.venue-name {
    font-family: "Cormorant Garamond", serif;
    font-size: 30px;
    margin: 16px 0 2px;
}

/* BUTTONS */
.primary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin: 16px 0;
    min-width: 230px;
    min-height: 46px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #44502f, #657149);
    color: #fffaf3;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(77, 87, 53, 0.22);
}

/* MAP CARD */
.map-card {
    position: relative;
    height: 360px;
    border-radius: 14px;
    border: 1px solid var(--border);
    overflow: hidden;
    width: 100%;
}

.map-card iframe {
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 14px;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
    display: block;
}

/* PLANS SECTION */
.plan-box {
    max-width: 1050px;
    margin: 0 auto;
    padding: 34px 20px 24px;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: rgba(255, 252, 246, 0.64);
    box-shadow: var(--shadow);
}

.plan-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.plan-card {
    display: flex;
    flex-direction: column;
    min-height: 285px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: rgba(255, 252, 246, 0.86);
    overflow: hidden;
    text-align: center;
    transition: 0.22s ease;
}

.plan-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 30px rgba(81, 68, 49, 0.12);
}

.plan-card-body {
    flex: 1;
    padding: 26px 16px 18px;
}

.plan-card h3 {
    font-family: "Cormorant Garamond", serif;
    color: var(--olive);
    font-size: clamp(20px, 2.8vw, 20px);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1.25;
    margin-bottom: 10px;
    word-break: normal;
    overflow-wrap: break-word;
    hyphens: none;
    max-width: 100%;
}

.plan-card p {
    font-size: 13px;
    line-height: 1.6;
}

.plan-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 14px;
    color: var(--olive-light);
}

.recommendation-link {
    width: 100%;
    min-height: 46px;
    border: 0;
    border-top: 1px solid var(--border);
    background: rgba(236, 226, 211, 0.58);
    cursor: pointer;
    font-size: 13px;
    font-family: "Montserrat", sans-serif;
    font-weight: 500;
    color: var(--olive);
    transition: all 0.2s ease;
}

.recommendation-link:hover {
    background: var(--olive);
    color: #fffaf3;
}

/* MODAL */
.modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: none;
    padding: 20px;
    background: rgba(31, 28, 22, 0.45);
    backdrop-filter: blur(6px);
    overflow-y: auto;
}

.modal.active {
    display: block;
}

.modal-panel {
    width: min(980px, 100%);
    margin: 30px auto;
    border: 1px solid rgba(222, 208, 189, 0.95);
    border-radius: 28px;
    background: var(--ivory);
    box-shadow: 0 26px 80px rgba(28, 24, 17, 0.28);
    overflow: hidden;
}

.modal-header {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 24px 28px;
    background: rgba(255, 250, 243, 0.94);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
}

.modal-title {
    font-family: "Cormorant Garamond", serif;
    color: var(--olive);
    font-size: clamp(24px, 4vw, 46px);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    line-height: 1.2;
    flex: 1;
}

.close-btn {
    width: 44px;
    height: 44px;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: rgba(255, 252, 246, 0.9);
    color: var(--olive);
    cursor: pointer;
    font-size: 26px;
    line-height: 1;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.close-btn:hover {
    background: var(--olive);
    color: #fffaf3;
    border-color: var(--olive);
}

.modal-body {
    padding: 28px;
}

.modal-intro {
    max-width: 720px;
    margin: 0 auto 24px;
    text-align: center;
    font-size: 15px;
}

/* RECOMMENDATIONS */
.rec-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.rec-card {
    border: 1px solid var(--border);
    border-radius: 18px;
    background: rgba(255, 252, 246, 0.84);
    padding: 20px;
    transition: all 0.2s ease;
}

.rec-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(81, 68, 49, 0.1);
}

.rec-card h3 {
    font-family: "Cormorant Garamond", serif;
    color: var(--olive);
    font-size: 28px;
    font-weight: 500;
    line-height: 1.05;
    margin-bottom: 10px;
}

.rec-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 10px;
}

.rec-card p {
    font-size: 13px;
    line-height: 1.7;
    color: var(--text);
}

/* META LINKS */
.meta-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #b08d57;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.meta-link:hover {
    opacity: 0.7;
}

.meta-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

/* TABS */
.tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 22px;
}

.tab-btn {
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(255, 252, 246, 0.86);
    color: var(--olive);
    cursor: pointer;
    padding: 10px 18px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.tab-btn:hover {
    background: var(--olive-light);
    color: #fffaf3;
}

.tab-btn.active {
    background: var(--olive);
    color: #fffaf3;
    border-color: var(--olive);
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

/* RSVP */
.rsvp-wrap {
    display: grid;
    grid-template-columns: 36% 64%;
    gap: 30px;
    max-width: 1050px;
    margin: 0 auto;
    padding: 28px 34px;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: rgba(255, 252, 246, 0.72);
    box-shadow: var(--shadow);
    align-items: center;
}

.rsvp-copy {
    text-align: center;
}

.rsvp-copy p {
    font-size: 15px;
    margin-top: 15px;
    line-height: 1.6;
}

.rsvp-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* FORM FIELDS */
.field {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #FFFFFF;
    padding: 14px 16px;
    outline: none;
    font-size: 14px;
    font-family: "Montserrat", sans-serif;
    transition: all 0.2s ease;
}

.field:focus {
    border-color: var(--olive);
    box-shadow: 0 0 0 3px rgba(77, 87, 53, 0.1);
}

/* RADIO GROUP */
.radio-group {
    background: rgba(255, 252, 246, 0.95);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px 16px;
}

.radio-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--olive);
    margin-bottom: 12px;
    text-transform: uppercase;
    text-align: center;
}

.radio-options {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.radio-option-card {
    flex: 1;
    cursor: pointer;
}

.radio-option-card input[type="radio"] {
    display: none;
}

.radio-card-content {
    text-align: center;
    padding: 12px;
    border: 2px solid var(--border);
    border-radius: 12px;
    background: #FFFFFF;
    transition: all 0.2s ease;
    cursor: pointer;
}

.radio-option-card input[type="radio"]:checked+.radio-card-content,
.radio-card-content:hover {
    border-color: var(--olive);
    background: #F9F7F2;
}

.radio-emoji {
    font-size: 28px;
    display: block;
    margin-bottom: 6px;
}

.radio-text {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--olive);
}

.radio-sub {
    display: block;
    font-size: 10px;
    color: var(--olive-light);
}

/* WHATSAPP BUTTON */
.btn-whatsapp-rsvp {
    width: 100%;
    background: #25D366;
    border: none;
    border-radius: 12px;
    padding: 14px 24px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #FFFFFF;
    font-family: "Montserrat", sans-serif;
}

.btn-whatsapp-rsvp:hover {
    background: #1DA851;
    transform: translateY(-2px);
}

/* FOOTER */
.footer {
    background: linear-gradient(135deg, #858b70, #596240);
    color: #fffaf3;
    text-align: center;
    padding: 30px 20px 34px;
    font-size: 15px;
    line-height: 1.8;
}

.footer .signature {
    margin-top: 6px;
    font-family: "Great Vibes", cursive;
    font-size: 30px;
}

/* ======================================== */
/* RESPONSIVE */
/* ======================================== */

@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
    }

    .hero-content {
        grid-column: 1;
        padding: 260px 24px 52px;
    }

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

    .venue-layout,
    .rsvp-wrap {
        grid-template-columns: 1fr;
    }

    .map-card {
        height: 300px;
    }

    navbar {
        gap: 20px;
        overflow-x: auto;
        justify-content: flex-start;
        -webkit-overflow-scrolling: touch;
        /* Add smooth scrolling on iOS */
        scrollbar-width: thin;
        /* Thinner scrollbar */
    }

    /* Optional: hide scrollbar but keep functionality */
    .navbar::-webkit-scrollbar {
        height: 3px;
    }

    .navbar::-webkit-scrollbar-track {
        background: var(--border);
        border-radius: 10px;
    }

    .navbar::-webkit-scrollbar-thumb {
        background: var(--olive-light);
        border-radius: 10px;
    }
}

@media (max-width: 640px) {

    .navbar {
        height: 56px;
        padding: 0 14px;
        gap: 16px;
        /* Slightly smaller gap on mobile */
        overflow-x: auto;
        justify-content: flex-start;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }

    /* Style the scrollbar */
    .navbar::-webkit-scrollbar {
        height: 3px;
    }

    .navbar::-webkit-scrollbar-track {
        background: var(--border);
        border-radius: 10px;
    }

    .navbar::-webkit-scrollbar-thumb {
        background: var(--olive-light);
        border-radius: 10px;
    }

    .navbar a {
        font-size: 10px;
        white-space: nowrap;
        /* Ensure text doesn't wrap */
        flex-shrink: 0;
        /* Prevent links from shrinking */
    }

    .section {
        padding: 34px 14px;
    }

    .hero {
        min-height: 480px;
        /* Reduced further from 560px to 480px */
    }

    .hero-content {
        padding: 50px 18px 30px;
        /* Reduced from 160px to 100px */
    }

    /* Reduce Bismillah spacing on mobile */
    .bismillah {
        margin-bottom: 4px;
        /* Reduced from 8px */
        font-size: clamp(14px, 4vw, 18px);
        /* Slightly smaller */
    }

    .bismillah::before,
    .bismillah::after {
        font-size: 8px;
        /* Smaller stars */
        margin: 0 4px;
    }

    /* Reduce ornament spacing */
    .ornament {
        margin: 10px auto;
        /* Reduced from 18px */
        gap: 12px;
    }

    .ornament:before,
    .ornament:after {
        width: 50px;
        /* Shorter lines */
    }

    /* Reduce top margin of the first small-serif */
    .hero-content .small-serif:first-of-type {
        margin-top: 0px;
    }

    /* Reduce names margin */
    .names {
        margin: 20px 0 16px;
        /* Reduced from 34px 0 24px */
        letter-spacing: 0.07em;
        font-size: clamp(42px, 7vw, 70px);
    }

    /* Reduce date margin */
    .date {
        margin: 0px 0;
        /* Reduced from 4px 0 */
    }

    /* Reduce intro text margin */
    .intro-text {
        margin-top: 8px;
        /* Add a little space but not too much */
    }

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

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

    .plan-grid,
    .rec-grid {
        grid-template-columns: 1fr;
    }

    .modal-header,
    .modal-body {
        padding: 16px;
    }

    .modal-header {
        gap: 12px;
        /* Reduce gap between title and close button */
    }

    .modal-title {
        font-size: clamp(18px, 5vw, 24px);
        /* Smaller font on mobile */
        line-height: 1.3;
        letter-spacing: 0.06em;
    }

    .close-btn {
        width: 34px;
        height: 34px;
        font-size: 20px;
    }

    .rec-grid {
        gap: 12px;
    }

    .tabs {
        gap: 8px;
    }

    .tab-btn {
        padding: 8px 14px;
        font-size: 10px;
    }

    .radio-options {
        flex-direction: column;
    }
}