/* Modh Mahoday · public website
   Design system: maroon #7D2636, gold #C99B52, ivory #F7F3EA, heritage
   green #243B35, text #252525 on white. Playfair Display for headings,
   Inter for text, Noto Sans Gujarati for Gujarati. Rectangular buttons,
   thin borders, few shadows, no gradients except the photo veils. */

:root {
    --maroon: #7D2636;
    --maroon-dark: #5F1C29;
    --maroon-soft: #F3E7E9;
    --gold: #C99B52;
    --gold-dark: #A97F3B;
    --gold-soft: #F1E4CC;
    --ivory: #F7F3EA;
    --green: #243B35;
    --green-dark: #1A2B27;
    --text: #252525;
    --muted: #5E5A55;
    --soft: #8C857C;
    --line: #E6DFD2;
    --white: #FFFFFF;

    --font-head: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-gu: 'Noto Sans Gujarati', 'Inter', sans-serif;

    --s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px; --s5: 48px; --s6: 64px; --s7: 96px;
    --radius: 2px;
    --header: 80px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 12px); }
body { margin: 0; background: var(--white); color: var(--text); font: 400 16px/1.7 var(--font); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; line-height: 1.2; margin: 0 0 .5em; color: var(--text); }
h1 { font-size: clamp(2.4rem, 5.2vw, 4.4rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.gu { font-family: var(--font-gu); }
.wrap { width: min(1200px, 100% - 48px); margin-inline: auto; }
.wrap-wide { width: min(1400px, 100% - 48px); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 8px 14px; background: var(--maroon); color: #fff; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ---------------------------------------------------------------- Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 24px; border: 1px solid transparent; border-radius: var(--radius); font: 600 14px/1.2 var(--font); letter-spacing: .03em; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background-color .2s, border-color .2s, color .2s; }
.btn-lg { padding: 15px 30px; font-size: 15px; }
.btn-primary { background: var(--maroon); color: #fff; }
.btn-primary:hover { background: var(--maroon-dark); }
.btn-outline { border-color: var(--maroon); color: var(--maroon); background: transparent; }
.btn-outline:hover { background: var(--maroon); color: #fff; }
.btn-gold { background: var(--gold); color: var(--green-dark); }
.btn-gold:hover { background: var(--gold-dark); color: #fff; }
.btn-ghost-light { border-color: rgba(255, 255, 255, .8); color: #fff; background: transparent; }
.btn-ghost-light:hover { background: #fff; color: var(--maroon); }
.btn-light { background: #fff; color: var(--maroon); }
.btn-light:hover { background: var(--ivory); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: var(--s3); }
.link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; letter-spacing: .03em; color: var(--maroon); text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.link::after { content: '→'; }
.link:hover { color: var(--maroon-dark); }

.eyebrow { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; font-size: 12.5px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-dark); }
.eyebrow::before { content: ''; width: 28px; height: 1px; background: currentColor; }
.eyebrow-light { color: var(--gold); }
.lead { font-size: 18px; color: var(--muted); }
.note { margin: var(--s3) 0 0; font-size: 14px; color: var(--soft); }
.empty { color: var(--soft); }

/* ----------------------------------------------------------------- Header */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); transition: box-shadow .2s; }
.site-header.is-scrolled { box-shadow: 0 1px 12px rgba(37, 37, 37, .06); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.brand img { width: 46px; height: 46px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--font-head); font-weight: 700; font-size: 21px; color: var(--maroon); }
.brand-sub { font-size: 12px; letter-spacing: .04em; color: var(--muted); }
.nav { display: flex; align-items: center; gap: 18px; }
.menu { display: flex; align-items: center; list-style: none; margin: 0; padding: 0; }
.menu > li { position: relative; display: flex; align-items: center; }
.menu > li > a { padding: 28px 8px; font-size: 14px; font-weight: 500; color: var(--text); text-decoration: none; white-space: nowrap; }
.menu > li > a:hover, .menu > li > a[aria-current] { color: var(--maroon); }
.sub-toggle { display: grid; place-items: center; width: 18px; height: 18px; margin-left: -6px; margin-right: 4px; padding: 0; border: 0; background: none; color: var(--soft); cursor: pointer; }
.sub { position: absolute; left: 0; top: 100%; min-width: 230px; list-style: none; margin: 0; padding: 8px 0; background: #fff; border: 1px solid var(--line); border-top: 2px solid var(--maroon); box-shadow: 0 12px 30px rgba(37, 37, 37, .08); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s, transform .18s, visibility .18s; }
.sub a { display: block; padding: 9px 18px; font-size: 14px; color: var(--text); text-decoration: none; }
.sub a:hover { background: var(--ivory); color: var(--maroon); }
.has-sub:hover .sub, .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
.nav-login { padding: 11px 20px; }
/* Top bar above the header */
.topbar { background: var(--ivory); border-bottom: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.topbar-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 38px; }
.topbar-note { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lang-switch { display: flex; align-items: center; gap: 2px; flex: none; color: var(--soft); }
.lang-switch svg { margin-right: 6px; }
.lang-switch a { padding: 8px 8px 7px; font-size: 12.5px; font-weight: 600; line-height: 1; color: var(--muted); text-decoration: none; border-bottom: 2px solid transparent; }
.lang-switch a[lang="gu"] { font-family: var(--font-gu); font-weight: 500; }
.lang-switch a:hover { color: var(--maroon); }
.lang-switch a.is-current { color: var(--maroon); border-bottom-color: var(--gold); }

/* Gujarati pages: Gujarati faces for text and headings (Playfair has no Gujarati). */
html[lang="gu"] body { font-family: var(--font-gu); }
html[lang="gu"] h1, html[lang="gu"] h2, html[lang="gu"] h3, html[lang="gu"] h4,
html[lang="gu"] .brand-name, html[lang="gu"] .service-title, html[lang="gu"] .hero-title { font-family: var(--font-gu); font-weight: 700; line-height: 1.35; }
html[lang="gu"] .eyebrow, html[lang="gu"] .hero-kicker, html[lang="gu"] .event-date, html[lang="gu"] .mag-date { letter-spacing: .02em; text-transform: none; font-size: 14px; }
html[lang="gu"] .btn { letter-spacing: 0; }
html[lang="gu"] html[lang="gu"] .values-row > p, html[lang="gu"] .site-footer h3, html[lang="gu"] .trust-note dt,
html[lang="gu"] .sample-tag, html[lang="gu"] .match-search label, html[lang="gu"] .profile-sample dt, html[lang="gu"] .mag-prev-label,
html[lang="gu"] .wishes li span, html[lang="gu"] .ad-label { letter-spacing: .02em; text-transform: none; font-size: 13.5px; }
html[lang="gu"] [lang="en"] { font-family: var(--font); }
.lang-note { margin: 0 0 12px; font-size: 13.5px; color: var(--soft); }
.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; cursor: pointer; }
.burger, .burger::before, .burger::after { display: block; width: 20px; height: 1.5px; margin: auto; background: var(--text); position: relative; }
.burger::before, .burger::after { content: ''; position: absolute; left: 0; }
.burger::before { top: -6px; }
.burger::after { top: 6px; }

/* ------------------------------------------------------------------- Hero */
.hero { position: relative; }
.hero-track { position: relative; display: grid; overflow: hidden; background: var(--green-dark); }
.hero-slide { grid-area: 1 / 1; position: relative; display: grid; place-items: center; min-height: 80vh; min-height: 80svh; padding: 72px 0 120px; opacity: 0; visibility: hidden; transition: opacity 1s ease, visibility 1s; color: #fff; }
.hero-slide.is-active { opacity: 1; visibility: visible; z-index: 1; }
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-slide.is-active .hero-photo { animation: zoom 8s ease-out both; }
.hero-slide::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(26, 18, 18, .6) 0%, rgba(26, 18, 18, .45) 45%, rgba(26, 18, 18, .75) 100%); }
.hero-content { position: relative; z-index: 1; width: min(920px, 100% - 48px); text-align: center; }
.hero h1, .hero-title { font-family: var(--font-head); font-size: clamp(2.3rem, 5vw, 4.2rem); font-weight: 600; line-height: 1.12; color: #fff; margin: 0 auto .4em; max-width: 18ch; }
.hero-kicker { margin: 0 0 20px; font-size: 13px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }
.hero-kicker.gu { font-size: 18px; letter-spacing: .04em; text-transform: none; }
.hero-lead { font-size: clamp(1.02rem, 1.6vw, 1.22rem); color: rgba(255, 255, 255, .9); max-width: 38em; margin: 0 auto; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 36px; }
.hero-slide.is-active .hero-content > * { animation: rise .9s cubic-bezier(.2, .7, .2, 1) both; }
.hero-slide.is-active .hero-content > :nth-child(2) { animation-delay: .12s; }
.hero-slide.is-active .hero-content > :nth-child(3) { animation-delay: .24s; }
.hero-slide.is-active .hero-content > :nth-child(4) { animation-delay: .36s; }
.hero-ad::after { display: none; }
.banner-full { position: absolute; inset: 0; z-index: 1; display: block; }
.banner-full img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.ad-label { position: absolute; left: 24px; top: 24px; z-index: 2; padding: 5px 10px; background: rgba(26, 18, 18, .6); color: #fff; font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.hero-arrow { position: absolute; top: 50%; z-index: 3; transform: translateY(-50%); padding: 14px; border: 0; background: none; color: #fff; opacity: .75; cursor: pointer; transition: opacity .2s, transform .2s; }
.hero-arrow:hover { opacity: 1; }
.hero-prev { left: 24px; }
.hero-next { right: 24px; }
.hero-prev:hover { transform: translate(-4px, -50%); }
.hero-next:hover { transform: translate(4px, -50%); }
.hero-dots { position: absolute; left: 50%; bottom: 40px; z-index: 3; transform: translateX(-50%); display: flex; gap: 8px; }
.hero-dots button { position: relative; width: 36px; height: 2px; padding: 0; border: 0; background: rgba(255, 255, 255, .35); cursor: pointer; overflow: hidden; }
.hero-dots button::before { content: ''; position: absolute; inset: -12px 0; }
.hero-dots button::after { content: ''; position: absolute; inset: 0; width: 0; background: var(--gold); }
.hero-dots button.is-done::after { width: 100%; background: rgba(255, 255, 255, .75); }
.hero-dots button.is-active::after { width: 100%; animation: fill 6s linear both; }
.hero.is-paused .hero-dots button.is-active::after, .hero.is-paused .hero-slide.is-active .hero-photo { animation-play-state: paused; }

.biz-mark { flex: none; display: grid; place-items: center; width: 42px; height: 42px; overflow: hidden; background: var(--ivory); border: 1px solid var(--line); color: var(--maroon); font-family: var(--font-head); font-weight: 700; font-size: 18px; }
.biz-mark img { width: 100%; height: 100%; object-fit: cover; }

/* --------------------------------------------------------------- Sections */
.section { padding: var(--s7) 0; }
.section-tight { padding: var(--s6) 0; }
.section-ivory { background: var(--ivory); }
.section-maroon { background: var(--maroon); color: #fff; }
.section-green { background: var(--green); color: #fff; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: var(--s5); }
.section-head h2 { margin: 0; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s6); align-items: center; }

/* 1. Welcome */
.welcome { display: grid; grid-template-columns: .85fr 1.15fr; gap: var(--s6); align-items: center; }
.welcome-photo { position: relative; margin: 0; }
.welcome-photo::before { content: ''; position: absolute; inset: 18px -18px -18px 18px; border: 1px solid var(--gold); }
.welcome-photo img { position: relative; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.welcome h2 { max-width: 16ch; }
.welcome p:not(.eyebrow):not(.lead) { color: var(--muted); }

/* 2. About our Samaj */
.samaj { display: grid; grid-template-columns: .9fr 1.1fr; gap: var(--s6); }
.samaj-head h2 { font-size: clamp(2.2rem, 4vw, 3.3rem); }
.samaj-head p:not(.eyebrow) { color: var(--muted); font-size: 17px; }
.pillars { list-style: none; margin: 0; padding: 0; }
.pillars li { display: grid; grid-template-columns: 56px 110px 1fr; grid-template-rows: auto auto; column-gap: 20px; align-items: baseline; padding: 28px 0; border-top: 1px solid var(--line); }
.pillars li:last-child { border-bottom: 1px solid var(--line); }
.pillar-no { grid-row: span 2; font-family: var(--font-head); font-size: 15px; color: var(--gold-dark); }
.pillars .gu { grid-row: span 2; font-size: 22px; color: var(--maroon); }
.pillars h3 { margin: 0 0 4px; font-size: 1.5rem; }
.pillars p { margin: 0; color: var(--muted); }

/* 5. Events */
.tabs { display: flex; border: 1px solid var(--line); }
.tabs button { padding: 10px 20px; border: 0; background: #fff; font: 500 14px var(--font); color: var(--muted); cursor: pointer; }
.tabs button + button { border-left: 1px solid var(--line); }
.tabs button.is-active { background: var(--maroon); color: #fff; }
.event-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s4); }
.event-grid[hidden] { display: none; }
.event-card { border: 1px solid var(--line); background: #fff; }
.event-poster { aspect-ratio: 16 / 10; overflow: hidden; background: var(--ivory); }
.event-poster img { width: 100%; height: 100%; object-fit: contain; }
.event-body { padding: 24px; }
.event-date { margin: 0 0 8px; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--gold-dark); }
.event-body h3 { margin-bottom: 6px; }
.event-venue { margin: 0 0 10px; font-size: 14.5px; color: var(--maroon); }
.event-text { font-size: 14.5px; color: var(--muted); }

/* 6. Services */
.services { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.services li { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.services a { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 28px 24px; text-decoration: none; transition: background-color .2s; }
.services a:hover { background: var(--maroon); }
.services a:hover * { color: #fff; }
.service-no { font-family: var(--font-head); font-size: 15px; color: var(--gold-dark); }
.service-title { font-family: var(--font-head); font-size: 1.2rem; font-weight: 600; color: var(--text); }
.service-text { font-size: 14.5px; color: var(--muted); }

/* 7. Directory */
.privacy-note { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; background: var(--ivory); border-left: 2px solid var(--gold); font-size: 14.5px; color: var(--muted); }
.privacy-note svg { flex: none; margin-top: 3px; color: var(--maroon); }
.tree-art { display: grid; gap: 28px; padding: 40px; background: var(--ivory); border: 1px solid var(--line); }
.tree-row { position: relative; display: flex; justify-content: center; gap: 24px; }
.tree-row + .tree-row::before { content: ''; position: absolute; left: 50%; top: -28px; height: 28px; border-left: 1px solid var(--gold); }
.tree-row span { position: relative; z-index: 1; padding: 10px 18px; background: #fff; border: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.tree-row .me { background: var(--maroon); border-color: var(--maroon); color: #fff; font-weight: 600; }

/* 8. Business directory */
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-bottom: var(--s4); }
.search { display: flex; align-items: center; gap: 10px; flex: 0 1 380px; padding: 0 14px; background: #fff; border: 1px solid var(--line); color: var(--soft); }
.search:focus-within { border-color: var(--maroon); }
.search input { flex: 1; min-width: 0; padding: 13px 0; border: 0; outline: 0; font: 15px var(--font); background: none; color: var(--text); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button { padding: 8px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; font: 500 13.5px var(--font); color: var(--muted); cursor: pointer; }
.chips button:hover { border-color: var(--maroon); color: var(--maroon); }
.chips button.is-active { background: var(--maroon); border-color: var(--maroon); color: #fff; }
.biz-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s3); }
.select select { padding: 13px 36px 13px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; font: 15px var(--font); color: var(--text); }
.select select:focus { outline: 0; border-color: var(--maroon); }
.event-grid > .empty, .biz-grid > .empty { grid-column: 1 / -1; }
.more-row { display: flex; justify-content: center; margin-top: var(--s5); }
.pager { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: var(--s5); font-size: 14.5px; color: var(--muted); }
.page-section-title { margin-bottom: var(--s4); }
.biz-card { padding: 24px; background: #fff; border: 1px solid var(--line); }
.biz-card[hidden] { display: none; }
.biz-mark-lg { width: 52px; height: 52px; font-size: 22px; margin-bottom: 18px; }
.biz-card h3 { font-size: 1.12rem; margin-bottom: 4px; }
.biz-meta { margin: 0 0 10px; font-size: 13px; font-weight: 600; color: var(--maroon); }
.biz-desc { margin: 0; font-size: 14px; color: var(--muted); }

/* 9. Matrimonial */
.match-search { display: grid; grid-template-columns: 1fr 1fr auto; gap: 12px; align-items: end; margin-top: var(--s4); }
.match-search label { display: grid; gap: 6px; font-size: 12.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--soft); }
.match-search select { padding: 12px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; font: 15px var(--font); color: var(--text); }
.profile-sample { position: relative; max-width: 420px; margin-left: auto; padding: 32px; background: #fff; border: 1px solid var(--line); border-top: 2px solid var(--maroon); }
.sample-tag { display: inline-block; margin-bottom: 18px; padding: 4px 8px; background: var(--ivory); font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--soft); }
.profile-top { display: flex; align-items: center; gap: 16px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.profile-photo { width: 64px; height: 64px; background: var(--maroon-soft); border: 1px solid var(--line); }
.profile-top strong { display: block; font-family: var(--font-head); font-size: 1.1rem; }
.profile-top small { color: var(--soft); }
.profile-sample dl { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 20px 0; }
.profile-sample dt { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--soft); }
.profile-sample dd { margin: 2px 0 0; color: var(--text); }
.profile-sample > p { margin: 0; font-size: 14px; color: var(--muted); }

/* 10. Magazine */
.magazine { display: grid; grid-template-columns: 320px 1fr; gap: var(--s6); align-items: center; }
.mag-cover { aspect-ratio: 3 / 4; display: grid; place-items: center; background: var(--maroon); border: 1px solid var(--line); padding: 10px; background-clip: content-box; box-sizing: border-box; outline: 0; }
.mag-cover img { width: 100%; height: 100%; object-fit: contain; }
.mag-cover .gu { font-size: 30px; color: var(--gold); }
.magazine h2 { margin-bottom: .2em; }
.mag-date { font-size: 14px; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-dark); }
.mag-text { color: var(--muted); max-width: 34em; }
.mag-prev-label { margin: var(--s5) 0 8px; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--soft); }
.mag-prev { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.mag-prev a { display: flex; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--text); }
.mag-prev a:hover { color: var(--maroon); }
.mag-prev span { min-width: 140px; color: var(--gold-dark); }
.issue-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: var(--s4); }
.issue-grid > .empty { grid-column: 1 / -1; }
.issue-card { display: grid; gap: 6px; align-content: start; text-decoration: none; color: var(--text); }
.issue-card .mag-cover { margin-bottom: 8px; }
.issue-card strong { font-family: var(--font-head); font-size: 1.2rem; font-weight: 600; }
.issue-card:hover strong { color: var(--maroon); }
.issue-card .link { justify-self: start; }

/* 11. Welfare */
.welfare { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.welfare article { padding: 32px 32px 32px 0; }
.welfare article + article { padding-left: 32px; border-left: 1px solid var(--line); }
.welfare p { margin: 0; color: var(--muted); }
.donate-band { display: flex; align-items: center; justify-content: space-between; gap: 32px; margin-top: var(--s5); padding: 36px 40px; background: var(--green); color: #fff; }
.donate-band h3 { color: #fff; }
.donate-band p { margin: 0; color: rgba(255, 255, 255, .8); max-width: 44em; }

/* 12. Heritage */
.heritage { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s6); align-items: start; }
.timeline { list-style: none; margin: 0 0 var(--s4); padding: 0 0 0 24px; border-left: 1px solid var(--gold); }
.timeline li { position: relative; padding: 0 0 22px 8px; color: var(--muted); }
.timeline li::before { content: ''; position: absolute; left: -29px; top: 7px; width: 9px; height: 9px; background: var(--maroon); }
.timeline span { display: block; font-family: var(--font-head); font-size: 1.25rem; font-weight: 600; color: var(--text); }
.people { list-style: none; margin: 0 0 var(--s4); padding: 0; border-top: 1px solid var(--line); }
.people li { display: flex; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.person-mark { flex: none; display: grid; place-items: center; width: 44px; height: 44px; overflow: hidden; background: #fff; border: 1px solid var(--line); font-family: var(--font-head); font-weight: 700; color: var(--maroon); }
.person-mark img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.people strong { display: block; font-weight: 600; }
.people small { display: block; color: var(--soft); font-size: 13.5px; }

/* 13. Wishes */
.wishes ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.wishes li { padding: 12px 18px; border: 1px solid var(--line); font-weight: 600; }
.wishes li span { display: block; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--maroon); }

/* Member login */
.login { display: grid; grid-template-columns: 1.1fr .9fr; gap: var(--s6); align-items: center; }
.section-green h2 { color: #fff; }
.login p { color: rgba(255, 255, 255, .8); }
.login-card { padding: 36px; border: 1px solid rgba(255, 255, 255, .18); }
.login-card h3 { color: #fff; }
.login-card .soon { padding-left: 14px; border-left: 2px solid var(--gold); font-size: 14px; }

/* ----------------------------------------------------------------- Footer */
.site-footer { background: var(--green-dark); color: rgba(255, 255, 255, .72); padding: var(--s6) 0 0; font-size: 14.5px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--s5); padding-bottom: var(--s5); }
.brand-light .brand-name { color: #fff; }
.brand-light .brand-sub { color: var(--gold); }
.footer-brand p { margin-top: 18px; max-width: 30em; }
.site-footer h3 { font-family: var(--font); font-size: 12.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer address { font-style: normal; margin-bottom: 12px; }
.footer-map { border-bottom: 1px solid rgba(255, 255, 255, .3); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 22px 0; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 13.5px; }
.footer-legal { display: flex; gap: 20px; }

/* ------------------------------------------------------- Inner page: About */
.page-hero { padding: 56px 0; background: var(--ivory); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(2.2rem, 4.4vw, 3.4rem); animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; }
.crumbs { display: flex; gap: 8px; margin-bottom: 22px; font-size: 13.5px; color: var(--soft); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--maroon); }
.slide-kicker { margin-bottom: 12px; font-size: 17px; color: var(--gold-dark); }
.slide-lead { margin: 0; max-width: 40em; font-size: 18px; color: var(--muted); }
.hl { color: var(--maroon); }
.prose { font-size: 16.5px; color: var(--muted); }
.prose h2 { font-size: clamp(1.6rem, 2.8vw, 2.1rem); }
.prose h3 { font-size: 1.2rem; margin: 1.6em 0 .5em; }
.prose strong { color: var(--text); }
.prose a { color: var(--maroon); }
.prose ul, .prose ol { margin: 0 0 1.2em; padding: 0; list-style: none; display: grid; gap: 6px; }
.prose li { position: relative; padding-left: 20px; }
.prose li::before { content: ''; position: absolute; left: 2px; top: .7em; width: 6px; height: 6px; background: var(--gold); }
.about-intro { display: grid; grid-template-columns: 1.3fr .7fr; gap: var(--s6); align-items: start; }
.trust-note { padding: 32px; background: var(--ivory); border-top: 2px solid var(--maroon); }
.trust-note img { width: 48px; height: 48px; margin-bottom: 14px; }
.trust-note h2 { font-size: 1.4rem; }
.trust-note > p { font-size: 15px; color: var(--muted); }
.trust-note dl { margin: 18px 0 0; padding-top: 18px; border-top: 1px solid var(--line); display: grid; gap: 14px; }
.trust-note dt { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--maroon); }
.trust-note dd { margin: 4px 0 0; font-size: 15px; }
.values-band { background: var(--maroon); color: #fff; }
.values-row { display: flex; align-items: center; gap: 32px; padding: 22px 0; }
.values-row > p { margin: 0; flex: none; font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.values-row ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 32px; font-weight: 500; }
.values-row .gu { color: var(--gold); margin-right: 4px; }
.history { display: grid; grid-template-columns: .55fr 1.45fr; gap: var(--s6); align-items: start; }
.history > h2 { font-size: clamp(1.6rem, 2.8vw, 2.1rem); }
.more-history summary { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 600; font-size: 14px; letter-spacing: .03em; color: var(--maroon); list-style: none; }
.more-history summary::-webkit-details-marker { display: none; }
.more-history summary::after { content: '+'; display: grid; place-items: center; width: 22px; height: 22px; border: 1px solid var(--maroon); }
.more-history[open] summary::after { content: '−'; }
.more-history[open] summary { margin-bottom: 12px; }
.section-soft { background: var(--ivory); }
.people-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
.people-list li { display: flex; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.person-portrait { flex: none; display: grid; place-items: center; width: 60px; height: 72px; overflow: hidden; background: var(--ivory); border: 1px solid var(--line); font: 600 18px var(--font-head); color: var(--maroon); }
.person-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.person-text { display: flex; flex-direction: column; }
.people-list strong { font-weight: 600; }
.people-list span { font-size: 14px; color: var(--maroon); }
.section-tight-top { padding: var(--s6) 0 var(--s7); }
.cta-band { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 36px 44px; background: var(--green); color: #fff; }
.cta-band h2 { color: #fff; margin: 0; font-size: clamp(1.4rem, 2.6vw, 2rem); }

/* -------------------------------------------------------------- Motion */
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes zoom { from { transform: scale(1.1); } to { transform: scale(1.02); } }
@keyframes fill { from { width: 0; } to { width: 100%; } }

/* ------------------------------------------------------------ Responsive */
@media (max-width: 1440px) {
    .menu > li > a { padding-inline: 6px; font-size: 13.5px; }
    .nav { gap: 12px; }
    .nav-login { padding: 10px 16px; }
}

@media (max-width: 1280px) {
    .brand-sub { display: none; }
    .sub-toggle { margin-right: 0; }
}

@media (max-width: 1100px) {
    .nav-toggle { display: grid; place-items: center; }
    .nav { position: absolute; left: 0; right: 0; top: var(--header); display: none; flex-direction: column; align-items: stretch; gap: 0; max-height: calc(100vh - var(--header)); overflow-y: auto; padding: 8px 24px 24px; background: #fff; border-bottom: 1px solid var(--line); }
    .nav.is-open { display: flex; }
    .menu { flex-direction: column; align-items: stretch; }
    .menu > li { flex-wrap: wrap; border-bottom: 1px solid var(--line); }
    .menu > li > a { flex: 1; padding: 14px 0; font-size: 15.5px; }
    .sub-toggle { width: 44px; height: 44px; margin: 0; }
    .sub { position: static; flex-basis: 100%; display: none; min-width: 0; padding: 0 0 10px 12px; border: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; }
    .has-sub.is-open .sub { display: block; }
    .has-sub:hover .sub { display: none; }
    .has-sub.is-open:hover .sub { display: block; }
    .nav-login { margin-top: 16px; }
    .brand-sub { display: block; }

    .welcome, .samaj, .split, .heritage, .login, .magazine, .about-intro, .history { grid-template-columns: 1fr; gap: var(--s5); }
    .welcome-photo { max-width: 420px; }
    .magazine .mag-cover { max-width: 260px; }
    .event-grid { grid-template-columns: repeat(2, 1fr); }
    .services, .biz-grid { grid-template-columns: repeat(2, 1fr); }
    .profile-sample { margin-left: 0; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
    :root { --header: 68px; }
    body { font-size: 15.5px; }
    .wrap { width: calc(100% - 32px); }
    .section { padding: var(--s6) 0; }
    .brand img { width: 40px; height: 40px; }
    .brand-name { font-size: 19px; }
    .header-row { gap: 10px; }
    .brand-sub { display: none; }
    .topbar-row { height: 34px; }
    .hero-slide { padding: 56px 0 96px; }

    .hero-arrow { display: none; }
    .hero-actions .btn { width: 100%; }
    .hero-dots { bottom: 28px; }
    .section-head { flex-direction: column; align-items: flex-start; }
    .pillars li { grid-template-columns: 40px 1fr; }
    .pillars .gu { grid-row: auto; grid-column: 2; }
    .pillars h3, .pillars p { grid-column: 2; }
    .event-grid, .services, .biz-grid, .welfare { grid-template-columns: 1fr; }
    .welfare article, .welfare article + article { padding: 24px 0; border-left: 0; border-bottom: 1px solid var(--line); }
    .match-search { grid-template-columns: 1fr; }
    .donate-band, .cta-band { flex-direction: column; align-items: flex-start; padding: 28px 24px; }
    .values-row { flex-direction: column; align-items: flex-start; gap: 10px; }
    .people-list { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: var(--s4); }
    .tree-art { padding: 24px 16px; gap: 22px; }
    .tree-row { gap: 10px; }
    .tree-row span { padding: 8px 10px; font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
}
.btn-block { width: 100%; }
.auth-section { background: var(--ivory); }
.auth-card { max-width: 440px; margin: 0 auto; padding: 40px 36px; background: #fff; border: 1px solid var(--line); text-align: center; }
.auth-card > img { margin: 0 auto; }
.auth-card h1 { font-size: 2rem; margin: 16px 0 8px; }
.auth-lead { color: var(--muted); margin: 0 0 24px; }
.auth-card form { text-align: left; }
.field { display: grid; gap: 8px; margin-bottom: 16px; }
.field span { font-size: 13px; font-weight: 600; letter-spacing: .04em; color: var(--text); }
.field input { width: 100%; padding: 13px 14px; border: 1px solid var(--line); border-radius: var(--radius); font: 16px var(--font); color: var(--text); background: #fff; }
.field input:focus { outline: 0; border-color: var(--maroon); }
.field input[aria-invalid="true"] { border-color: #B3261E; }
.otp-input { letter-spacing: .4em; font-size: 20px !important; text-align: center; }
.field-error { margin: -8px 0 16px; font-size: 14px; color: #B3261E; }
.field-ok { margin: 0 0 16px; padding: 10px 14px; background: var(--ivory); font-size: 14px; color: var(--green); }
.auth-links { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; font-size: 14px; }
.auth-links a, .text-button { padding: 0; border: 0; background: none; font: 600 14px var(--font); color: var(--maroon); text-decoration: none; cursor: pointer; }
.auth-links a:hover, .text-button:hover { text-decoration: underline; }
.auth-note { margin: 28px 0 0; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--soft); }
.account { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s6); align-items: start; }
.account-details { margin: 0; border-top: 1px solid var(--line); }
.account-details div { display: flex; justify-content: space-between; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.account-details dt { color: var(--soft); font-size: 14px; }
.account-details dd { margin: 0; font-weight: 600; text-align: right; }
.account .lead { margin-top: 0; }
@media (max-width: 680px) {
    .auth-card { padding: 32px 20px; }
    .account { grid-template-columns: 1fr; gap: var(--s4); }
}
.result-count { margin: 0 0 var(--s3); font-size: 14px; color: var(--soft); }
.member-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--s3); }
.member-grid > .empty, .family-grid > .empty { grid-column: 1 / -1; }
.member-card { display: flex; gap: 16px; padding: 20px; background: #fff; border: 1px solid var(--line); }
.member-photo { flex: none; display: grid; place-items: center; width: 56px; height: 56px; overflow: hidden; background: var(--ivory); border: 1px solid var(--line); font: 600 22px var(--font-head); color: var(--maroon); }
.member-photo img { width: 100%; height: 100%; object-fit: cover; }
.member-info { min-width: 0; }
.member-info h3 { margin: 0 0 4px; font-size: 1.12rem; }
.member-info h3 small { font: 500 13px var(--font); color: var(--soft); }
.member-meta { margin: 0 0 4px; font-size: 14px; color: var(--muted); }
.member-no { margin: 0 0 10px; font-size: 13px; letter-spacing: .04em; color: var(--gold-dark); }
.family-facts { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0; color: var(--muted); }
.page-hero .privacy-note { margin-top: 18px; }
.family-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: var(--s3); }
.person-card { padding: 22px; background: #fff; border: 1px solid var(--line); }
.person-card.is-head { border-top: 3px solid var(--maroon); }
.person-top { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.person-top h3 { margin: 0 0 2px; font-size: 1.1rem; }
.person-relation { margin: 0; font-size: 13.5px; color: var(--gold-dark); }
.person-details { margin: 0; }
.person-details div { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 14px; }
.person-details dt { color: var(--soft); }
.person-details dd { margin: 0; text-align: right; overflow-wrap: anywhere; }
.person-details a { color: var(--maroon); }
.steps { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s4); margin: 0; padding: 0; }
.steps li { counter-increment: step; display: grid; align-content: start; gap: 6px; padding-top: 18px; border-top: 2px solid var(--maroon); }
.steps li::before { content: counter(step, decimal-leading-zero); font: 600 14px var(--font); letter-spacing: .1em; color: var(--gold-dark); }
.steps strong { font: 600 1.25rem var(--font-head); }
.steps span { color: var(--muted); }
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 320px)); gap: var(--s3); }
.plan-card { padding: 28px; background: #fff; border: 1px solid var(--line); }
.plan-card.is-featured { border-color: var(--maroon); box-shadow: inset 0 3px 0 var(--maroon); }
.plan-billing { margin: 0 0 6px; font-size: 12.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-dark); }
.plan-card h3 { margin: 0 0 14px; font-size: 1.2rem; }
.plan-price { margin: 0 0 14px; font: 600 2.2rem var(--font-head); color: var(--maroon); }
.plan-price span { margin-left: 6px; font: 400 14px var(--font); color: var(--soft); }
.plan-includes { margin: 0; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14.5px; color: var(--muted); }
.plan-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: var(--s4); }
.plan-cta p { margin: 0; max-width: 40em; color: var(--muted); }
.plan-owned { display: flex; gap: 14px; align-items: flex-start; max-width: 640px; padding: 20px 22px; background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--green); color: var(--green); }
.plan-owned p { margin: 0; color: var(--text); }
@media (max-width: 680px) {
    .steps { grid-template-columns: 1fr; }
    .plan-grid { grid-template-columns: 1fr; }
}
.plan-card form { margin-top: 20px; }
.plan-note { max-width: 640px; margin: 0 0 var(--s3); padding: 12px 16px; background: #fff; border-left: 3px solid var(--gold); font-size: 14.5px; color: var(--text); }
.pay-error { margin: 0 0 16px; padding: 10px 14px; background: #FBEDEC; }
.pay-card { text-align: left; }
.pay-card h1 { margin-top: 0; }
.pay-card .plan-price { margin-bottom: 20px; }
.pay-card .account-details { margin-bottom: 24px; }
.auth-cancel { display: block; margin-top: 16px; text-align: center; font-size: 14px; color: var(--muted); }
.account-flash { margin-bottom: var(--s4); }
.my-plans { margin-top: var(--s6); }
.my-plans h2 { margin-bottom: var(--s3); font-size: 1.6rem; }
.my-plan { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; padding: 16px 0; border-top: 1px solid var(--line); }
.my-plan:last-child { border-bottom: 1px solid var(--line); }
.my-plan strong { display: block; }
.my-plan small { color: var(--soft); }
.my-plan-side { display: flex; align-items: center; gap: 16px; }
.badge { padding: 4px 10px; background: var(--ivory); border: 1px solid var(--line); font-size: 12.5px; font-weight: 600; letter-spacing: .04em; color: var(--green); }
.my-plans .empty .link { margin-left: 14px; }
.topbar-side { display: flex; align-items: center; gap: 18px; }
.topbar-join { font-size: 13px; font-weight: 600; color: var(--maroon); text-decoration: none; }
.topbar-join:hover { text-decoration: underline; }
.join { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: var(--s6); align-items: start; }
.form-card { padding: 32px; background: #fff; border: 1px solid var(--line); }
.form-section { margin: 0 0 28px; padding: 0; border: 0; }
.form-section legend { margin-bottom: 16px; padding: 0; font: 600 1.25rem var(--font-head); color: var(--text); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
.field-wide { grid-column: 1 / -1; }
.field select, .field input[type="file"] { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); font: 15px var(--font); color: var(--text); background: #fff; }
.field select:focus { outline: 0; border-color: var(--maroon); }
.field select[aria-invalid="true"] { border-color: #B3261E; }
.field em.field-error { margin: 0; font-style: normal; font-size: 13.5px; }
.field-hint { font-size: 12.5px; color: var(--soft); }
.field .check { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 400; letter-spacing: 0; color: var(--muted); }
.form-note { margin: 16px 0 0; font-size: 14px; color: var(--muted); }
.form-note a { color: var(--maroon); font-weight: 600; }
.type-options { display: flex; flex-wrap: wrap; gap: 12px; }
.type-option { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border: 1px solid var(--line); cursor: pointer; }
.type-option:has(input:checked) { border-color: var(--maroon); box-shadow: inset 0 0 0 1px var(--maroon); }
.type-option span { display: grid; }
.type-option small { color: var(--soft); }
.join-steps { position: sticky; top: calc(var(--header) + 24px); }
.join-steps h2 { font-size: 1.4rem; margin-bottom: var(--s3); }
.steps-stack { grid-template-columns: 1fr; }
.auth-note a { color: var(--maroon); font-weight: 600; }
.request-reason { display: block; color: #B3261E; }
@media (max-width: 1100px) { .join { grid-template-columns: 1fr; } .join-steps { position: static; } }
@media (max-width: 680px) {
    .form-card { padding: 22px 18px; }
    .form-grid { grid-template-columns: 1fr; }
    .topbar-note { display: none; }
    .topbar-row { justify-content: flex-end; }
}
.form-grid .field { align-content: start; }
