/* JeevanJodi public website. Maroon + gold on blush, Playfair Display over Plus Jakarta Sans. No JS. */

@font-face {
    font-family: 'Playfair Display';
    src: url('fonts/playfair-display.woff2') format('woff2');
    font-weight: 400 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Plus Jakarta Sans';
    src: url('fonts/plus-jakarta-sans.woff2') format('woff2');
    font-weight: 200 800;
    font-style: normal;
    font-display: swap;
}

:root {
    --maroon: #67001B;
    --maroon-bright: #89182E;
    --maroon-hover: #58001A;
    --maroon-dark: #40000D;
    --gold: #80560E;
    --gold-text: #794F06;
    --gold-line: #B8842E;
    --gold-soft: #FFDDB4;
    --gold-wash: #FFF3E4;
    --champagne: #FFE9C7;
    --blush: #FFF8F8;
    --blush-low: #FFF0F2;
    --blush-mid: #FBEAEC;
    --card: #FFFFFF;
    --ink: #22191B;
    --ink-soft: #574142;
    --line: #F0DEE1;
    --line-strong: #DEBFC0;
    --error: #BA1A1A;
    --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --sans: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --wrap: 1120px;
    --prose: 760px;
    --shadow: 0 1px 2px rgba(137, 24, 46, .05), 0 8px 24px rgba(137, 24, 46, .06);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--blush);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 { font-family: var(--serif); color: var(--maroon); line-height: 1.2; margin: 0; font-weight: 600; text-wrap: balance; }
h1 { font-size: clamp(2rem, 5.6vw, 3.4rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.55rem, 3.6vw, 2.25rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
a { color: var(--maroon); text-underline-offset: 3px; }
a:hover { color: var(--maroon-bright); }
strong { font-weight: 650; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
[id] { scroll-margin-top: 24px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

.skip-link {
    position: absolute; left: 12px; top: -60px; z-index: 20;
    background: var(--maroon); color: #fff; padding: 10px 16px; border-radius: 8px; font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; color: #fff; }

.eyebrow {
    font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-text); margin: 0 0 14px;
}
.lead { font-size: 1.12rem; color: var(--ink-soft); }
.muted { color: var(--ink-soft); }
.small { font-size: .9rem; }

/* ---------- Header ---------- */
.site-header { background: rgba(255, 248, 248, .92); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--maroon); }
.brand img { width: 42px; height: auto; }
.brand-name { font-family: var(--serif); font-size: 1.45rem; font-weight: 700; letter-spacing: .005em; }
.brand-name span { color: var(--gold); }

.nav-list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.nav-list a { display: block; padding: 10px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; font-weight: 550; font-size: .95rem; }
.nav-list a:hover { background: var(--blush-mid); color: var(--maroon); }
.nav-list a[aria-current="page"] { color: var(--maroon); box-shadow: inset 0 -2px 0 var(--gold-line); border-radius: 0; }
.nav-list .nav-cta a { background: var(--maroon); color: #fff; padding: 10px 18px; margin-left: 8px; }
.nav-list .nav-cta a:hover { background: var(--maroon-hover); color: #fff; }

.nav-toggle { display: none; }

@media (max-width: 859px) {
    .nav-desktop { display: none; }
    .nav-toggle { display: block; position: relative; }
    .nav-toggle summary {
        list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
        padding: 8px 14px; border: 1px solid var(--line-strong); border-radius: 8px; font-weight: 600; color: var(--maroon); background: var(--card);
    }
    .nav-toggle summary::-webkit-details-marker { display: none; }
    .nav-toggle .bars { width: 18px; height: 2px; background: currentColor; box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor; }
    .nav-toggle .nav-list {
        position: absolute; right: 0; top: calc(100% + 8px); z-index: 10; min-width: 230px;
        flex-direction: column; align-items: stretch; gap: 2px; padding: 8px;
        background: var(--card); border: 1px solid var(--line-strong); border-radius: 12px; box-shadow: var(--shadow);
    }
    .nav-toggle .nav-list a { padding: 12px 14px; }
    .nav-toggle .nav-list a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--gold-line); }
    .nav-toggle .nav-cta a { margin: 6px 0 0; text-align: center; }
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px;
    padding: 13px 24px; border-radius: 8px; border: 1px solid transparent;
    font: inherit; font-weight: 650; text-decoration: none; cursor: pointer; text-align: center;
}
.btn-primary { background: linear-gradient(180deg, var(--maroon-bright), var(--maroon)); color: #fff; box-shadow: 0 6px 18px rgba(103, 0, 27, .22); }
.btn-primary:hover { background: var(--maroon-hover); color: #fff; }
.btn-secondary { background: var(--card); color: var(--maroon); border-color: var(--line-strong); }
.btn-secondary:hover { background: var(--blush-low); }
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: #6E4906; color: #fff; }
.btn svg { flex: none; }

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section-head { max-width: 680px; margin-bottom: 36px; }
.section-head p:not(.eyebrow) { color: var(--ink-soft); margin-top: 14px; font-size: 1.05rem; }
.band { background: var(--blush-low); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.rule { width: 56px; height: 2px; background: linear-gradient(90deg, var(--gold-line), var(--gold-soft)); border: 0; margin: 0 0 20px; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 48px 0 56px; background:
    radial-gradient(900px 480px at 88% 0%, #FFDADB 0%, rgba(255, 218, 219, 0) 62%),
    radial-gradient(700px 420px at 0% 100%, var(--gold-wash) 0%, rgba(255, 243, 228, 0) 60%), var(--blush); }
.hero-grid { display: grid; gap: 36px; align-items: center; }
.hero h1 { margin-bottom: 18px; }
.hero .lead { max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 22px; }
.hero-points { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 10px; }
.hero-points li { font-size: .88rem; font-weight: 600; color: var(--gold-text); background: rgba(255, 255, 255, .7); border: 1px solid var(--gold-soft); border-radius: 6px; padding: 6px 12px; }
.hero-art { justify-self: center; width: min(78vw, 400px); filter: drop-shadow(0 24px 40px rgba(103, 0, 27, .16)); }

@media (min-width: 860px) {
    .section { padding: 88px 0; }
    .hero { padding: 72px 0 88px; }
    .hero-grid { grid-template-columns: 1.15fr .85fr; gap: 56px; }
    .hero-art { width: 100%; max-width: 440px; justify-self: end; }
}

/* Cards and grids */
.grid { display: grid; gap: 18px; }
@media (min-width: 640px) { .grid-2, .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 24px; box-shadow: var(--shadow); }
.card h3 { margin-bottom: 8px; }
.card p:last-child { margin-bottom: 0; }
.card p { color: var(--ink-soft); }

.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: step; position: relative; padding-top: 58px; }
.steps li::before {
    content: counter(step, decimal-leading-zero); position: absolute; top: 18px; left: 24px;
    font-family: var(--serif); font-size: 1.6rem; font-weight: 600; color: var(--gold-line); line-height: 1;
}
.steps li::after { content: ''; position: absolute; top: 31px; left: 68px; right: 24px; height: 1px; background: var(--line-strong); }

.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { position: relative; padding-left: 28px; margin-bottom: 10px; }
.ticks li::before {
    content: ''; position: absolute; left: 4px; top: .5em; width: 9px; height: 9px; transform: rotate(45deg);
    background: var(--gold-line); border-radius: 1px;
}
.ticks.no li::before { background: transparent; border: 1.5px solid currentColor; opacity: .7; }

/* Family band */
.family { background: linear-gradient(160deg, var(--maroon-bright) 0%, var(--maroon) 45%, var(--maroon-dark) 100%); color: #FFF0F2; }
.family h2, .family h3 { color: #fff; }
.family .eyebrow { color: var(--gold-soft); }
.family .lead { color: #FFDADB; }
.family-grid { display: grid; gap: 28px; }
.family-panel { background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 221, 180, .28); border-radius: 12px; padding: 22px 24px; }
.family-panel h3 { font-size: 1.08rem; margin-bottom: 12px; color: var(--gold-soft); }
.family .ticks li::before { background: var(--gold-soft); }
.family .ticks.no li::before { background: transparent; border-color: var(--gold-soft); }
@media (min-width: 860px) { .family-grid { grid-template-columns: 1.1fr 1fr 1fr; align-items: center; gap: 24px; } .family-panel { align-self: stretch; } }

/* Plans */
.plan { display: flex; flex-direction: column; }
.plan .plan-tag { font-size: .76rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-text); margin-bottom: 6px; }
.plan h3 { font-size: 1.5rem; }
.plan .ticks { margin-top: 14px; color: var(--ink); font-size: .96rem; }
.plan-feature { border-color: var(--gold-line); background: linear-gradient(180deg, var(--gold-wash), #fff 46%); }
.status-note { display: flex; gap: 12px; align-items: flex-start; background: var(--gold-wash); border: 1px solid var(--gold-soft); border-radius: 12px; padding: 16px 18px; margin-bottom: 24px; color: #4F3300; }
.status-note p { margin: 0; }

/* Download */
.download-card { background: var(--card); border: 1px solid var(--line-strong); border-radius: 16px; padding: 32px 24px; box-shadow: var(--shadow); display: grid; gap: 24px; align-items: center; }
.download-card img { width: 96px; border-radius: 22px; box-shadow: 0 8px 20px rgba(103, 0, 27, .14); }
.soon-list { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.soon { display: inline-flex; flex-direction: column; padding: 9px 16px; border: 1px dashed var(--line-strong); border-radius: 8px; color: var(--ink-soft); font-weight: 600; font-size: .95rem; line-height: 1.3; background: var(--blush); }
.soon small { font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-text); font-weight: 700; }
@media (min-width: 760px) { .download-card { grid-template-columns: auto 1fr; padding: 40px; gap: 36px; } }

/* ---------- Policy pages ---------- */
.page-head { padding: 44px 0 28px; background: radial-gradient(700px 300px at 90% 0%, #FFDADB 0%, rgba(255, 218, 219, 0) 65%), var(--blush); border-bottom: 1px solid var(--line); }
.page-head .wrap, .prose-wrap { max-width: calc(var(--prose) + 40px); }
.page-head h1 { font-size: clamp(1.9rem, 5vw, 2.7rem); margin-bottom: 12px; }
.page-head .lead { margin-bottom: 10px; }
.updated { font-size: .88rem; color: var(--ink-soft); margin: 0; }

.prose { padding: 32px 0 72px; }
.prose h2 { font-size: clamp(1.3rem, 3vw, 1.6rem); margin: 44px 0 12px; padding-top: 4px; }
.prose h2:first-child { margin-top: 8px; }
.prose h3 { font-family: var(--sans); font-size: 1.02rem; font-weight: 700; color: var(--ink); margin: 26px 0 8px; }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 1em; }
.prose li { margin-bottom: 7px; }
.prose li::marker { color: var(--gold-line); }
.prose .card { margin: 18px 0; }
.prose .card ul:last-child, .prose .card ol:last-child { margin-bottom: 0; }

.toc { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 18px 22px; margin: 4px 0 8px; }
.toc h2 { font-family: var(--sans); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-text); margin: 0 0 10px; font-weight: 700; }
.toc ol { margin: 0; padding-left: 20px; columns: 1; }
.toc li { margin-bottom: 4px; break-inside: avoid; }
@media (min-width: 640px) { .toc ol { columns: 2; column-gap: 32px; } }

.callout { background: var(--blush-low); border: 1px solid var(--line-strong); border-left: 4px solid var(--maroon); border-radius: 8px; padding: 16px 18px; margin: 18px 0; }
.callout p:last-child, .callout ul:last-child { margin-bottom: 0; }
.callout-gold { background: var(--gold-wash); border-color: var(--gold-soft); border-left-color: var(--gold-line); }
.callout strong.title { display: block; font-family: var(--serif); font-size: 1.12rem; color: var(--maroon); margin-bottom: 4px; }

.table-scroll { overflow-x: auto; margin: 16px 0 20px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--card); }
table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: .95rem; }
caption { text-align: left; padding: 12px 16px 0; font-weight: 700; color: var(--ink); }
th, td { text-align: left; vertical-align: top; padding: 12px 16px; border-bottom: 1px solid var(--line); }
thead th { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-text); background: var(--blush-low); }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
tbody th { font-weight: 650; }

dl.facts { display: grid; grid-template-columns: 1fr; gap: 0; margin: 16px 0; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--card); overflow: hidden; }
dl.facts > div { display: grid; gap: 2px 20px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
dl.facts > div:last-child { border-bottom: 0; }
dl.facts dt { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-text); font-weight: 700; }
dl.facts dd { margin: 0; overflow-wrap: anywhere; }
@media (min-width: 640px) { dl.facts > div { grid-template-columns: 210px 1fr; align-items: baseline; } }

.helplines { list-style: none; padding: 0; margin: 16px 0; display: grid; gap: 12px; }
.helplines li { background: var(--card); border: 1px solid var(--line-strong); border-radius: 12px; padding: 14px 18px; display: flex; justify-content: space-between; align-items: center; gap: 16px; margin: 0; }
.helplines a, .helplines .num { font-family: var(--serif); font-size: 1.5rem; font-weight: 700; color: var(--maroon); text-decoration: none; white-space: nowrap; }
@media (min-width: 640px) { .helplines { grid-template-columns: repeat(3, 1fr); } .helplines li { flex-direction: column; align-items: flex-start; gap: 4px; } }

/* Pending legal value */
.pending {
    display: inline-block; background: #FFEFD9; color: #4F3300; border: 1px dashed var(--gold-line); border-radius: 6px;
    padding: 1px 9px; font-size: .86em; font-weight: 650; line-height: 1.5; white-space: normal;
}

/* ---------- Forms ---------- */
.form-card { background: var(--card); border: 1px solid var(--line-strong); border-radius: 12px; padding: 24px; margin: 18px 0; box-shadow: var(--shadow); }
label { display: block; font-weight: 650; margin: 18px 0 6px; }
label:first-of-type { margin-top: 0; }
input[type=tel], input[type=text], textarea {
    width: 100%; padding: 13px 14px; border: 1px solid #B89A9C; border-radius: 6px; font: inherit; color: inherit; background: #fff;
}
input:focus-visible, textarea:focus-visible { outline: 3px solid var(--gold); outline-offset: 1px; border-color: var(--maroon); }
textarea { min-height: 104px; resize: vertical; }
.hint { color: var(--ink-soft); font-size: .88rem; margin-top: 6px; }
.check { display: flex; gap: 12px; align-items: flex-start; margin-top: 20px; font-weight: 400; }
.check input { margin-top: 4px; width: 20px; height: 20px; accent-color: var(--maroon); flex: none; }
.field-error { color: var(--error); font-size: .9rem; font-weight: 600; margin-top: 6px; }
.form-card .btn { margin-top: 22px; }
.notice { background: #EEF7EF; border: 1px solid #A9D3AE; border-left: 4px solid #2E6B37; border-radius: 8px; padding: 16px 18px; margin: 20px 0; color: #17361C; }
.notice p { margin: 6px 0 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--maroon-dark); color: #F5DCDF; padding: 48px 0 28px; font-size: .95rem; }
.site-footer a { color: #FFE9C7; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; gap: 32px; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 1.4rem; font-weight: 700; color: #fff; margin-bottom: 12px; }
.footer-brand img { width: 40px; }
.site-footer h2 { font-family: var(--sans); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-soft); margin: 0 0 12px; font-weight: 700; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 4px; }
.site-footer li a { display: inline-block; padding: 4px 0; }
.footer-bottom { border-top: 1px solid rgba(255, 221, 180, .22); margin-top: 32px; padding-top: 20px; color: #E6C7CB; font-size: .88rem; }
.footer-bottom p { margin: 0 0 6px; }
.footer-contact { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 22px; margin-top: 32px; padding-top: 20px; border-top: 1px solid rgba(255, 221, 180, .22); font-style: normal; }
.footer-contact-label { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-soft); font-weight: 700; }
.footer-contact a { padding: 4px 0; }
.footer-contact + .footer-bottom { margin-top: 18px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }

/* ---------- Error page ---------- */
.error-page { padding: 88px 0 104px; text-align: center; }
.error-page .code { font-family: var(--serif); font-size: 4.5rem; color: var(--gold-line); line-height: 1; margin: 0 0 8px; }
.error-page .lead { margin: 14px auto 28px; max-width: 30em; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

@media print {
    .site-header nav, .site-footer, .skip-link, .hero-actions { display: none; }
    body { background: #fff; }
}

/* Tables stack on narrow screens instead of scrolling sideways. */
@media (max-width: 599px) {
    table { min-width: 0; }
    thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
    tbody tr { display: block; padding: 12px 16px; border-bottom: 1px solid var(--line); }
    tbody tr:last-child { border-bottom: 0; }
    tbody th, tbody td { display: block; padding: 2px 0; border: 0; }
    tbody td { color: var(--ink-soft); }
}
