/* ShaadiWishes design system */
:root {
    --ink: #2a2125;
    --ink-soft: #5b4f53;
    --muted: #8a7d80;
    --ivory: #fbf7f2;
    --paper: #ffffff;
    --line: #eadfd3;
    --line-soft: #f3ece3;
    --brand: #7a1f3d;
    --brand-dark: #5e1630;
    --brand-soft: #f6e9ee;
    --gold: #b8893b;
    --gold-soft: #f7efdf;
    --sage: #3f7a5c;
    --sage-soft: #e6f2ec;
    --radius: 14px;
    --shadow: 0 1px 2px rgba(42, 33, 37, .04), 0 8px 24px rgba(42, 33, 37, .06);

    --bs-primary: #7a1f3d;
    --bs-primary-rgb: 122, 31, 61;
    --bs-link-color-rgb: 122, 31, 61;
    --bs-link-hover-color-rgb: 94, 22, 48;
    --bs-body-color: #2a2125;
    --bs-body-bg: #fbf7f2;
    --bs-border-color: #eadfd3;
    --bs-body-font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

html { scroll-behavior: smooth; }
body {
    font-family: var(--bs-body-font-family);
    background: var(--ivory);
    color: var(--ink);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, .display-font {
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
    font-weight: 600;
    letter-spacing: -.01em;
    line-height: 1.2;
    color: var(--ink);
}
h1, h2, h3, h4, .display-font, .stat .value, .cd strong, .maths .big, .mock-top .names, .wall-quote {
    font-variant-numeric: lining-nums;
    font-feature-settings: "lnum" 1;
}
a { text-decoration: none; }
a:hover { text-decoration: underline; }
.text-muted, .text-secondary { color: var(--muted) !important; }
.text-brand { color: var(--brand) !important; }
.text-gold { color: var(--gold) !important; }
.eyebrow {
    font-size: .75rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 600;
}
.section { padding: 4.5rem 0; }
.section-sm { padding: 3rem 0; }
.lead-soft { font-size: 1.125rem; color: var(--ink-soft); }

/* ---------- Buttons ---------- */
.btn { border-radius: 999px; font-weight: 600; font-size: .95rem; padding: .6rem 1.3rem; }
.btn-lg { padding: .8rem 1.7rem; font-size: 1rem; }
.btn-sm { padding: .35rem .95rem; font-size: .85rem; }
.btn-primary {
    --bs-btn-bg: var(--brand); --bs-btn-border-color: var(--brand);
    --bs-btn-hover-bg: var(--brand-dark); --bs-btn-hover-border-color: var(--brand-dark);
    --bs-btn-active-bg: var(--brand-dark); --bs-btn-active-border-color: var(--brand-dark);
    --bs-btn-disabled-bg: var(--brand); --bs-btn-disabled-border-color: var(--brand);
    --bs-btn-focus-shadow-rgb: 122, 31, 61;
}
.btn-outline-primary {
    --bs-btn-color: var(--brand); --bs-btn-border-color: var(--brand);
    --bs-btn-hover-bg: var(--brand); --bs-btn-hover-border-color: var(--brand);
    --bs-btn-active-bg: var(--brand); --bs-btn-active-border-color: var(--brand);
    --bs-btn-focus-shadow-rgb: 122, 31, 61;
}
.btn-outline-secondary {
    --bs-btn-color: var(--ink-soft); --bs-btn-border-color: var(--line);
    --bs-btn-hover-bg: var(--line-soft); --bs-btn-hover-color: var(--ink); --bs-btn-hover-border-color: var(--line);
    --bs-btn-active-bg: var(--line-soft); --bs-btn-active-color: var(--ink); --bs-btn-active-border-color: var(--line);
}
.btn-whatsapp {
    --bs-btn-color: #fff; --bs-btn-bg: #1f9d55; --bs-btn-border-color: #1f9d55;
    --bs-btn-hover-color: #fff; --bs-btn-hover-bg: #187d44; --bs-btn-hover-border-color: #187d44;
    --bs-btn-active-bg: #187d44; --bs-btn-active-border-color: #187d44; --bs-btn-active-color: #fff;
}
.btn-light-brand {
    --bs-btn-color: var(--brand); --bs-btn-bg: #fff; --bs-btn-border-color: #fff;
    --bs-btn-hover-color: var(--brand-dark); --bs-btn-hover-bg: var(--brand-soft); --bs-btn-hover-border-color: var(--brand-soft);
}

/* ---------- Forms ---------- */
.form-label { font-weight: 600; font-size: .82rem; color: var(--ink-soft); margin-bottom: .35rem; }
.form-control, .form-select {
    border-radius: 10px; border: 1px solid var(--line); padding: .7rem .9rem; background: #fff; font-size: .95rem;
}
.form-control:focus, .form-select:focus {
    border-color: var(--brand); box-shadow: 0 0 0 .2rem rgba(122, 31, 61, .12);
}
.form-text { color: var(--muted); font-size: .8rem; }
.form-check-input:checked { background-color: var(--brand); border-color: var(--brand); }
.alert { border-radius: 12px; border: 1px solid transparent; font-size: .92rem; }
.alert-danger { background: #fbeaea; border-color: #f2c9c9; color: #8a2424; }
.alert-success { background: var(--sage-soft); border-color: #c5e0d2; color: #2d6148; }
.alert-info { background: var(--gold-soft); border-color: #ecdcb8; color: #6d5424; }

/* ---------- Navigation ---------- */
.site-nav {
    background: rgba(251, 247, 242, .92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
    position: sticky; top: 0; z-index: 1030;
    padding: .6rem 0;
}
.brand {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.45rem; font-weight: 700; color: var(--brand) !important; text-decoration: none !important;
    display: inline-flex; align-items: center; gap: .5rem;
}
.brand .brand-mark { color: var(--gold); font-size: 1rem; }
.site-nav .nav-link { color: var(--ink-soft); font-weight: 500; font-size: .93rem; padding: .5rem .85rem !important; border-radius: 8px; }
.site-nav .nav-link:hover { color: var(--brand); text-decoration: none; }
.site-nav .nav-link.active { color: var(--brand); background: var(--brand-soft); }
.navbar-toggler { border: 1px solid var(--line); }
.navbar-toggler:focus { box-shadow: 0 0 0 .2rem rgba(122, 31, 61, .12); }

/* ---------- Surfaces ---------- */
.panel {
    background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.panel-pad { padding: 1.5rem; }
.panel-title { font-family: 'Inter', sans-serif; font-weight: 600; font-size: 1rem; letter-spacing: 0; margin-bottom: 1rem; }
.page-head { padding: 2.2rem 0 1.4rem; }
.page-head h1 { font-size: 1.9rem; margin-bottom: .25rem; }

.stat { padding: 1.25rem 1.4rem; }
.stat .label { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.stat .value { font-family: 'Playfair Display', serif; font-size: 2rem; font-weight: 600; line-height: 1.2; margin-top: .25rem; }

.progress { height: 8px; background: var(--line-soft); border-radius: 99px; overflow: hidden; }
.progress-bar { background: var(--brand); border-radius: 99px; }
.progress-lg { height: 12px; }

.chip {
    display: inline-block; border: 1px solid var(--line); background: #fff; color: var(--ink-soft);
    border-radius: 999px; padding: .3rem .85rem; font-size: .85rem; font-weight: 500; text-decoration: none !important;
    transition: border-color .15s, color .15s, background .15s;
}
.chip:hover, .chip.active { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }

.table-clean { margin: 0; }
.table-clean th { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; border-bottom: 1px solid var(--line); padding: .8rem 1.25rem; background: transparent; }
.table-clean td { padding: .9rem 1.25rem; border-color: var(--line-soft); vertical-align: middle; font-size: .92rem; }

/* Onboarding checklist */
.steps { list-style: none; margin: 0; padding: 0; }
.steps li { display: flex; gap: .9rem; align-items: flex-start; padding: .85rem 0; border-bottom: 1px solid var(--line-soft); }
.steps li:last-child { border-bottom: 0; }
.step-dot { flex: none; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--line); display: flex; align-items: center; justify-content: center; font-size: .8rem; color: var(--muted); background: #fff; }
.steps li.done .step-dot { background: var(--sage); border-color: var(--sage); color: #fff; }
.steps li.done .step-title { color: var(--muted); text-decoration: line-through; }
.step-title { font-weight: 600; font-size: .95rem; }

/* Dream cards */
.dream { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; height: 100%; box-shadow: var(--shadow); }
.dream-img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.dream-ph {
    aspect-ratio: 16 / 6; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--brand-soft), var(--gold-soft)); color: var(--brand); font-size: 2.4rem; opacity: .95;
}
.dream-body { padding: 1.2rem 1.25rem 1.3rem; display: flex; flex-direction: column; flex: 1; }
.dream-body h3 { font-size: 1.25rem; margin-bottom: .35rem; }
.badge-soft { display: inline-block; font-size: .72rem; font-weight: 600; padding: .22rem .6rem; border-radius: 99px; background: var(--sage-soft); color: var(--sage); }

/* Ornament */
.orn { display: flex; align-items: center; gap: 14px; color: var(--gold); max-width: 280px; margin: 1.2rem auto; }
.orn::before, .orn::after { content: ""; height: 1px; flex: 1; background: currentColor; opacity: .5; }

/* ---------- Landing ---------- */
.hero-landing {
    padding: 5rem 0 4.5rem;
    background:
        radial-gradient(900px 420px at 88% -8%, #f1dccd 0, transparent 62%),
        var(--ivory);
}
h3.h6, .h6, .accordion-button { font-family: var(--bs-body-font-family); }
h3.h6, .h6 { font-weight: 600; letter-spacing: 0; }
.hero-landing h1 { font-size: clamp(2.2rem, 5.2vw, 3.7rem); margin: .8rem 0 1.2rem; }
.hero-points { list-style: none; padding: 0; margin: 1.6rem 0 0; display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; color: var(--ink-soft); font-size: .9rem; }
.hero-points i { color: var(--sage); margin-right: .35rem; }
.mock { max-width: 370px; margin-left: auto; margin-right: auto; background: #fff; border: 1px solid var(--line); border-radius: 26px; box-shadow: 0 40px 70px rgba(94, 22, 48, .16); overflow: hidden; }
.mock-top { background: linear-gradient(160deg, #5e1630, #7a1f3d 60%, #98404f); color: #fff; text-align: center; padding: 2rem 1.2rem 1.6rem; position: relative; }
.mock-top::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.09) 1px, transparent 1px); background-size: 18px 18px; }
.mock-top > * { position: relative; z-index: 1; }
.mock-top .names { font-family: 'Playfair Display', serif; font-size: 1.6rem; line-height: 1.2; color: #fff; }
.mock-body { padding: 1.1rem 1.2rem 1.3rem; }
.mock-row { padding: .75rem 0; border-bottom: 1px solid var(--line-soft); }
.mock-row:last-child { border-bottom: 0; }
.sample-tag { position: absolute; top: 12px; right: 14px; font-size: .65rem; letter-spacing: .12em; text-transform: uppercase; background: rgba(255,255,255,.18); padding: .15rem .55rem; border-radius: 99px; z-index: 2; }
.feature-icon { width: 46px; height: 46px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: flex; align-items: center; justify-content: center; font-size: 1.25rem; margin-bottom: 1rem; }
.maths { background: linear-gradient(160deg, #5e1630, #7a1f3d); color: #fff; border-radius: 22px; padding: 2.6rem 1.5rem; text-align: center; }
.maths h2, .maths .big { color: #fff; }
.maths .big { font-family: 'Playfair Display', serif; font-size: clamp(1.8rem, 5vw, 3rem); }
.maths .sub { color: rgba(255,255,255,.75); }
.accordion-item { border: 1px solid var(--line); border-radius: 12px !important; margin-bottom: .7rem; overflow: hidden; background: #fff; }
.accordion-button { font-weight: 600; font-size: .98rem; background: #fff; color: var(--ink); }
.accordion-button:not(.collapsed) { color: var(--brand); background: var(--brand-soft); box-shadow: none; }
.accordion-button:focus { box-shadow: 0 0 0 .2rem rgba(122, 31, 61, .12); }

/* ---------- Auth ---------- */
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; }
.auth-art {
    background: linear-gradient(160deg, #4f1228, #7a1f3d 58%, #9a3f50); color: #fff; padding: 3rem 3.5rem;
    display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden;
}
.auth-art::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.08) 1px, transparent 1px); background-size: 22px 22px; pointer-events: none; }
.auth-art > * { position: relative; z-index: 1; }
.auth-art .brand { color: #fff !important; }
.auth-art .brand .brand-mark { color: #e4c27d; }
.auth-art blockquote { font-family: 'Playfair Display', serif; font-size: 1.9rem; line-height: 1.35; margin: 0; color: #fff; }
.auth-form { display: flex; align-items: center; justify-content: center; padding: 2.5rem 1.5rem; background: var(--ivory); }
.auth-card { width: 100%; max-width: 420px; }
@media (max-width: 991.98px) {
    .auth-wrap { grid-template-columns: 1fr; }
    .auth-art { display: none; }
}

/* ---------- Public wedding page ---------- */
.w-hero {
    position: relative; color: #fff; text-align: center; padding: 6rem 0 4.5rem;
    background-color: #5e1630;
    background-image: linear-gradient(160deg, #4f1228, #7a1f3d 58%, #9a3f50); background-size: cover; background-position: center;
}
.w-hero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.08) 1px, transparent 1px); background-size: 22px 22px; }
.w-hero.has-cover::before { background: linear-gradient(180deg, rgba(35,10,22,.55), rgba(35,10,22,.72)); }
.w-hero .container { position: relative; z-index: 1; }
.w-hero h1 { color: #fff; font-size: clamp(2.3rem, 8vw, 4.4rem); font-weight: 600; margin: .6rem 0 .4rem; }
.w-hero .amp { color: #e4c27d; font-style: italic; font-weight: 400; padding: 0 .15em; }
.w-hero .eyebrow { color: #e4c27d; }
.w-date { font-size: 1.05rem; color: rgba(255,255,255,.9); }
.cd { display: flex; justify-content: center; gap: .7rem; margin-top: 1.8rem; }
.cd > div { min-width: 76px; padding: .75rem .5rem; border: 1px solid rgba(255,255,255,.3); border-radius: 12px; background: rgba(255,255,255,.08); }
.cd strong { display: block; font-family: 'Playfair Display', serif; font-size: 1.8rem; line-height: 1.1; font-weight: 600; }
.cd small { font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; opacity: .8; }
.wall-item { padding: 1rem 0; border-bottom: 1px solid var(--line-soft); }
.wall-item:last-child { border-bottom: 0; }
.wall-quote { font-family: 'Playfair Display', serif; font-style: italic; color: var(--ink-soft); font-size: 1.05rem; margin-top: .2rem; }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: inline-flex; align-items: center; justify-content: center; font-weight: 600; font-size: .9rem; flex: none; }
.cover-preview { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); }

/* ---------- Events ---------- */
.event { display: flex; gap: 1.1rem; padding: 1.2rem 1.25rem; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
.date-badge { flex: none; width: 68px; height: fit-content; text-align: center; border-radius: 12px; background: var(--brand-soft); color: var(--brand); padding: .6rem 0; line-height: 1.1; }
.date-badge .d { font-family: 'Playfair Display', serif; font-size: 1.7rem; font-weight: 600; font-variant-numeric: lining-nums; }
.date-badge .m { font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; }
.event h3 { font-size: 1.2rem; margin-bottom: .3rem; }
.event-meta { color: var(--ink-soft); font-size: .9rem; margin-bottom: .2rem; }
.event-meta i { color: var(--gold); margin-right: .45rem; display: inline-block; width: 1.1em; }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .75rem; }
.gallery-item { position: relative; display: block; width: 100%; aspect-ratio: 1 / 1; padding: 0; border: 0; border-radius: 12px; overflow: hidden; background: var(--line-soft); cursor: zoom-in; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s; }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-del { position: absolute; top: 6px; right: 6px; }

/* ---------- RSVP ---------- */
.rsvp-event { border: 1px solid var(--line); border-radius: 14px; padding: 1.1rem 1.2rem; background: #fff; }
.rsvp-event + .rsvp-event { margin-top: .9rem; }
.btn-check:checked + .btn-outline-primary { color: #fff; }
.hashtag { display: inline-block; margin-top: .9rem; padding: .3rem .9rem; border: 1px solid rgba(255,255,255,.4); border-radius: 99px; color: #fff; font-size: .95rem; letter-spacing: .02em; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 2.2rem 0; color: var(--muted); font-size: .88rem; background: #fff; }
.site-footer a { color: var(--ink-soft); }

/* ---------- Small screens ---------- */
@media (max-width: 575.98px) {
    .table-clean th, .table-clean td { padding: .75rem .75rem; }
    .section { padding: 3rem 0; }
    .hero-landing { padding: 3rem 0 3rem; }
    .w-hero { padding: 4rem 0 3rem; }
    .cd > div { min-width: 64px; }
    .page-head h1 { font-size: 1.6rem; }
}
@media print {
    .site-nav, .site-footer, .btn { display: none !important; }
}
