/* ============================================================
   FamilyBuddy — Design system
   Professional dating / matchmaking website
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
    --c-primary: #9d3653;
    --c-primary-dark: #7e2a43;
    --c-primary-darker: #64223840;
    --c-primary-light: #f6e7ec;
    --c-primary-lighter: #fbf4f6;
    --c-accent: #2f4858;
    --c-gold: #c9a24b;
    --c-bg: #faf6f2;
    --c-surface: #ffffff;
    --c-text: #3b2f34;
    --c-muted: #87777c;
    --c-border: #ecd9df;
    --c-success: #2e7d5b;
    --c-success-bg: #e8f5ef;
    --c-warning: #9a6b1f;
    --c-warning-bg: #fdf3e2;
    --c-danger: #b3353e;
    --c-danger-bg: #fdeaea;
    --radius: 14px;
    --radius-lg: 22px;
    --shadow-sm: 0 4px 14px rgba(90, 42, 56, .08);
    --shadow: 0 14px 40px rgba(125, 43, 67, .12);
    --shadow-lg: 0 24px 60px rgba(125, 43, 67, .18);
    --font-head: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;
    --header-h: 74px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

img { max-width: 100%; display: block; }
a { color: var(--c-primary); text-decoration: none; }
a:hover { color: var(--c-primary-dark); }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 {
    font-family: var(--font-head);
    color: var(--c-accent);
    line-height: 1.18;
    margin: 0 0 .5em;
}
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--c-gold); outline-offset: 2px; }

.container { width: min(1140px, 92%); margin-inline: auto; }

.skip-link {
    position: absolute; left: -9999px; top: 0; z-index: 200;
    background: var(--c-primary); color: #fff; padding: .7rem 1.2rem; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    font-family: var(--font-body); font-weight: 600; font-size: .95rem;
    padding: .78rem 1.5rem; border-radius: 999px; border: 2px solid transparent;
    cursor: pointer; transition: all .22s ease; text-align: center; line-height: 1.2;
}
.btn-primary { background: var(--c-primary); color: #fff; box-shadow: 0 8px 20px rgba(157, 54, 83, .28); }
.btn-primary:hover { background: var(--c-primary-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 12px 26px rgba(157, 54, 83, .34); }
.btn-secondary { background: var(--c-accent); color: #fff; }
.btn-secondary:hover { background: #24404f; color: #fff; transform: translateY(-2px); }
.btn-gold { background: var(--c-gold); color: #fff; }
.btn-gold:hover { background: #b18a38; color: #fff; transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--c-text); border-color: var(--c-border); }
.btn-ghost:hover { border-color: var(--c-primary); color: var(--c-primary); }
.btn-outline { background: transparent; color: var(--c-primary); border-color: var(--c-primary); }
.btn-outline:hover { background: var(--c-primary-light); }
.btn-white { background: #fff; color: var(--c-primary); box-shadow: var(--shadow-sm); }
.btn-white:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-block { width: 100%; }
.btn-sm { padding: .5rem 1.05rem; font-size: .875rem; }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--c-border);
}
.header-inner { display: flex; align-items: center; gap: 1.2rem; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: .55rem; }
.brand img { filter: drop-shadow(0 2px 6px rgba(157,54,83,.25)); }
.brand-name { font-family: var(--font-head); font-weight: 700; font-size: 1.4rem; color: var(--c-accent); }
.brand-name em { font-style: normal; color: var(--c-primary); }
.brand-name-light em { color: var(--c-gold); }
.brand-name-light { color: #fff; }

.main-nav { margin-left: auto; }
.nav-menu { display: flex; align-items: center; gap: .15rem; }
.nav-menu a {
    display: block; padding: .55rem .8rem; border-radius: 8px;
    font-size: .9rem; font-weight: 500; color: var(--c-text);
    transition: all .18s ease;
}
.nav-menu a:hover { background: var(--c-primary-light); color: var(--c-primary-dark); }
.nav-menu a.active { background: var(--c-primary); color: #fff; }

.header-actions { display: flex; align-items: center; gap: .5rem; }
.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
    background:
        radial-gradient(60rem 30rem at 85% 10%, rgba(201, 162, 75, .16), transparent 55%),
        radial-gradient(50rem 28rem at 5% 90%, rgba(157, 54, 83, .14), transparent 55%),
        linear-gradient(180deg, #fff2f5, var(--c-bg));
    padding: 5.5rem 0 5rem;
    overflow: hidden;
}
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 3rem; align-items: center; }
.eyebrow {
    display: inline-flex; align-items: center; gap: .45rem;
    background: var(--c-surface); border: 1px solid var(--c-border); color: var(--c-primary);
    font-size: .82rem; font-weight: 600; letter-spacing: .04em;
    padding: .42rem 1rem; border-radius: 999px; box-shadow: var(--shadow-sm);
}
.hero h1 { font-size: clamp(2.3rem, 4.6vw, 3.6rem); color: var(--c-accent); }
.hero h1 em { font-style: normal; color: var(--c-primary); }
.hero .lead { font-size: 1.12rem; color: var(--c-muted); max-width: 34rem; }
.hero-actions { display: flex; gap: .9rem; flex-wrap: wrap; margin-top: 1.6rem; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; max-width: 30rem; margin-top: 2.6rem; }
.hstat { background: rgba(255,255,255,.7); border: 1px solid var(--c-border); border-radius: var(--radius); padding: .9rem 1rem; }
.hstat strong { display: block; font-family: var(--font-head); font-size: 1.5rem; color: var(--c-primary); }
.hstat span { font-size: .8rem; color: var(--c-muted); }

.hero-visual { position: relative; }
.hero-visual img.hero-img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.hero-badge {
    position: absolute; background: #fff; border-radius: var(--radius);
    box-shadow: var(--shadow); padding: .7rem 1rem; display: flex; align-items: center; gap: .6rem;
    font-size: .85rem; font-weight: 600;
}
.hero-badge .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c-success); box-shadow: 0 0 0 4px rgba(46,125,91,.18); }
.hb-1 { bottom: 18%; left: -7%; animation: float 5s ease-in-out infinite; }
.hb-2 { top: 8%; right: -6%; animation: float 6s ease-in-out infinite reverse; }

@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---------- Sections ---------- */
.section { padding: 4.5rem 0; }
.section-alt { background: var(--c-surface); }
.section-tint { background: var(--c-primary-lighter); }
.section-head { text-align: center; max-width: 40rem; margin: 0 auto 2.8rem; }
.section-head .kicker {
    display: inline-block; text-transform: uppercase; letter-spacing: .18em;
    font-size: .78rem; font-weight: 700; color: var(--c-gold); margin-bottom: .6rem;
}
.section-head h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.section-head p { color: var(--c-muted); }
.text-center { text-align: center; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 1.6rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
    background: var(--c-surface); border: 1px solid var(--c-border);
    border-radius: var(--radius); box-shadow: var(--shadow-sm);
    padding: 1.8rem; transition: transform .22s ease, box-shadow .22s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card .card-icon {
    width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center;
    background: var(--c-primary-light); color: var(--c-primary); margin-bottom: 1.1rem;
}
.card h3 { font-size: 1.2rem; color: var(--c-accent); }
.card p { color: var(--c-muted); font-size: .95rem; margin-bottom: 0; }

.icon-card { text-align: left; }
.icon-card .card-icon svg { width: 26px; height: 26px; }

/* ---------- Steps ---------- */
.steps { counter-reset: step; }
.step { counter-increment: step; position: relative; padding-top: 2.4rem; }
.step::before {
    content: counter(step, decimal-leading-zero);
    font-family: var(--font-head); font-weight: 700; font-size: 1.05rem;
    color: #fff; background: var(--c-gold); width: 42px; height: 42px; border-radius: 50%;
    display: grid; place-items: center; position: absolute; top: 0; left: 50%;
    transform: translateX(-50%); box-shadow: 0 6px 16px rgba(201,162,75,.4);
}
.step h3 { margin-top: 1rem; }

/* ---------- Testimonials ---------- */
.testimonial { text-align: center; }
.testimonial .quote { font-family: var(--font-head); font-style: italic; font-size: 1.05rem; color: var(--c-accent); }
.testimonial .stars { color: var(--c-gold); letter-spacing: .15em; }
.testimonial .who { margin-top: .8rem; font-size: .9rem; color: var(--c-muted); }
.testimonial .who strong { color: var(--c-text); display: block; }

/* ---------- CTA band ---------- */
.cta-band {
    background: linear-gradient(120deg, var(--c-primary-dark), var(--c-primary));
    color: #fff; border-radius: var(--radius-lg); padding: 3.4rem 2.6rem;
    text-align: center; position: relative; overflow: hidden;
}
.cta-band::before, .cta-band::after {
    content: ''; position: absolute; border-radius: 50%; background: rgba(255,255,255,.06);
}
.cta-band::before { width: 260px; height: 260px; top: -110px; left: -80px; }
.cta-band::after { width: 200px; height: 200px; bottom: -90px; right: -60px; }
.cta-band h2 { color: #fff; font-size: clamp(1.7rem, 3vw, 2.3rem); }
.cta-band p { color: rgba(255,255,255,.85); max-width: 34rem; margin: .4rem auto 1.6rem; }

/* ---------- Blog ---------- */
.post-card .post-thumb { border-radius: calc(var(--radius) - 6px); overflow: hidden; margin-bottom: 1rem; }
.post-card .post-thumb img { width: 100%; height: 180px; object-fit: cover; }
.post-meta { font-size: .8rem; color: var(--c-muted); display: flex; gap: .8rem; margin-bottom: .6rem; }
.post-card h3 { font-size: 1.15rem; }
.post-card h3 a { color: var(--c-accent); }
.post-card h3 a:hover { color: var(--c-primary); }
.post-card .excerpt { color: var(--c-muted); font-size: .94rem; }
.read-more { font-weight: 600; font-size: .9rem; }

.article-cover { border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 2rem; }
.article-cover img { width: 100%; max-height: 380px; object-fit: cover; }
.article { max-width: 46rem; }
.article p, .article li { font-size: 1.05rem; }
.article h2 { font-size: 1.5rem; margin-top: 2rem; }

/* ---------- Stories ---------- */
.story-card { text-align: center; }
.story-avatar { width: 92px; height: 92px; border-radius: 50%; margin: -3.4rem auto 1rem; overflow: hidden; border: 4px solid #fff; box-shadow: var(--shadow-sm); }
.story-avatar img { width: 100%; height: 100%; object-fit: cover; }
.story-card .who { font-weight: 700; color: var(--c-accent); }
.story-card .loc { font-size: .84rem; color: var(--c-gold); }
.story-card .quote { color: var(--c-muted); font-size: .95rem; font-style: italic; }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.3rem; }
.gallery-item { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.gallery-item img { width: 100%; height: 240px; object-fit: cover; transition: transform .4s ease; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item figcaption {
    position: absolute; inset: auto 0 0 0; padding: 2rem .9rem .8rem;
    background: linear-gradient(180deg, transparent, rgba(40,20,28,.78));
    color: #fff; font-size: .88rem; font-weight: 500;
}
.gallery-item:hover figcaption { background: linear-gradient(180deg, transparent, rgba(126,42,67,.88)); }

/* ---------- Forms ---------- */
.form-card { max-width: 34rem; margin-inline: auto; background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius-lg); padding: 2.4rem; box-shadow: var(--shadow-sm); }
.form-card form { display: grid; gap: 1.1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: grid; gap: .4rem; }
.field label { font-size: .88rem; font-weight: 600; color: var(--c-accent); }
.field .hint { font-size: .78rem; color: var(--c-muted); }
.input, .select, .textarea {
    width: 100%; font-family: var(--font-body); font-size: .95rem;
    padding: .72rem .95rem; border: 1.5px solid var(--c-border); border-radius: 10px;
    background: #fff; color: var(--c-text); transition: border-color .18s ease, box-shadow .18s ease;
}
.input:focus, .select:focus, .textarea:focus {
    outline: none; border-color: var(--c-primary); box-shadow: 0 0 0 4px rgba(157,54,83,.12);
}
.textarea { min-height: 130px; resize: vertical; }
.form-errors { background: var(--c-danger-bg); border: 1px solid #f3c2c4; color: var(--c-danger); border-radius: 10px; padding: .8rem 1rem; font-size: .9rem; }
.form-errors ul { margin: 0; padding-left: 1.1rem; list-style: disc; }
.form-note { font-size: .84rem; color: var(--c-muted); text-align: center; }

/* ---------- Flash ---------- */
.flash { border-radius: 10px; padding: .9rem 1.2rem; margin: 1.2rem 0 0; font-weight: 500; font-size: .95rem; border: 1px solid transparent; }
.flash-success { background: var(--c-success-bg); color: var(--c-success); border-color: #cfeade; }
.flash-error { background: var(--c-danger-bg); color: var(--c-danger); border-color: #f3c2c4; }
.flash-warning { background: var(--c-warning-bg); color: var(--c-warning); border-color: #f0dcb8; }

/* ---------- Profile ---------- */
.profile-layout { display: grid; grid-template-columns: 300px 1fr; gap: 2rem; align-items: start; }
.profile-card { text-align: center; position: sticky; top: calc(var(--header-h) + 20px); }
.profile-avatar { width: 150px; height: 150px; border-radius: 50%; margin: 0 auto 1rem; overflow: hidden; border: 5px solid var(--c-primary-light); box-shadow: var(--shadow-sm); }
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-card .name { font-family: var(--font-head); font-size: 1.4rem; color: var(--c-accent); margin-bottom: .2rem; }
.profile-card .meta { color: var(--c-muted); font-size: .9rem; }
.badge-verified { display: inline-flex; align-items: center; gap: .3rem; background: var(--c-success-bg); color: var(--c-success); font-size: .78rem; font-weight: 600; padding: .25rem .7rem; border-radius: 999px; margin-top: .6rem; }

.detail-list { display: grid; gap: .8rem; }
.detail-list li { background: var(--c-bg); border: 1px solid var(--c-border); border-radius: 10px; padding: .8rem 1rem; display: flex; justify-content: space-between; gap: 1rem; }
.detail-list .k { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--c-muted); }
.detail-list .v { font-weight: 600; color: var(--c-accent); text-align: right; }
.profile-bio { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow-sm); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { background: linear-gradient(135deg, var(--c-primary-lighter), var(--c-bg) 70%); border-bottom: 1px solid var(--c-border); padding: 4rem 0; text-align: center; }
.page-hero h1 { font-size: clamp(2rem, 4vw, 2.9rem); }
.page-hero .sub { color: var(--c-muted); max-width: 38rem; margin-inline: auto; font-size: 1.05rem; }
.breadcrumb { font-size: .82rem; color: var(--c-muted); margin-bottom: 1rem; }
.breadcrumb a { color: var(--c-muted); }
.breadcrumb a:hover { color: var(--c-primary); }
.breadcrumb span { margin: 0 .4rem; }

/* ---------- Prose / features list ---------- */
.feature-list li { display: flex; gap: .8rem; margin-bottom: .9rem; color: var(--c-text); }
.feature-list .check { flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%; background: var(--c-success-bg); color: var(--c-success); display: grid; place-items: center; font-size: .75rem; font-weight: 700; margin-top: .2em; }

.accordion { display: grid; gap: .9rem; max-width: 44rem; margin-inline: auto; }
.accordion details { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius); padding: 1.1rem 1.3rem; box-shadow: var(--shadow-sm); }
.accordion summary { cursor: pointer; font-weight: 600; color: var(--c-accent); display: flex; justify-content: space-between; align-items: center; }
.accordion summary::after { content: '+'; font-size: 1.3rem; color: var(--c-primary); transition: transform .2s ease; }
.accordion details[open] summary::after { transform: rotate(45deg); }
.accordion p { margin-top: .8rem; color: var(--c-muted); font-size: .95rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--c-accent); color: #d8e0e4; margin-top: 4.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.4rem; padding: 3.6rem 0 2.4rem; }
.footer-brand p { color: #b9c6cc; font-size: .92rem; margin-top: 1rem; }
.footer-col h4 { color: #fff; font-size: .95rem; letter-spacing: .04em; margin-bottom: .9rem; font-family: var(--font-body); text-transform: uppercase; font-weight: 700; }
.footer-col li { margin-bottom: .55rem; }
.footer-col a { color: #b9c6cc; font-size: .92rem; }
.footer-col a:hover { color: var(--c-gold); }
.social-links { display: flex; gap: .6rem; margin-top: 1.2rem; }
.social-links a {
    width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
    background: rgba(255,255,255,.08); color: #fff; transition: all .2s ease;
}
.social-links a:hover { background: var(--c-primary); transform: translateY(-3px); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); }
.footer-bottom-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .8rem; padding: 1.2rem 0; font-size: .85rem; color: #b9c6cc; }
.legal-links { display: flex; gap: 1.3rem; }
.legal-links a { color: #b9c6cc; }
.legal-links a:hover { color: var(--c-gold); }

/* ---------- WhatsApp float ---------- */
.whatsapp-float {
    position: fixed; bottom: 22px; right: 22px; z-index: 150;
    display: flex; align-items: center; gap: .5rem;
    background: #25d366; color: #fff; font-weight: 600; font-size: .9rem;
    padding: .8rem 1.1rem; border-radius: 999px; box-shadow: 0 10px 26px rgba(37,211,102,.4);
    transition: transform .2s ease, background .2s ease;
}
.whatsapp-float:hover { transform: translateY(-3px); color: #fff; background: #1fbe59; }
.whatsapp-label { display: inline; }

/* ---------- Newsletter ---------- */
.newsletter { display: flex; gap: .6rem; max-width: 30rem; margin: 1.6rem auto 0; }
.newsletter .input { border-radius: 999px; padding: .85rem 1.3rem; }

/* ---------- Misc ---------- */
.divider { border: 0; height: 1px; background: var(--c-border); margin: 0; }
.small { font-size: .86rem; }
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mb-1 { margin-bottom: 1rem; } .mb-2 { margin-bottom: 2rem; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
    .main-nav { order: 3; width: 100%; }
    .nav-menu { display: none; flex-direction: column; position: absolute; left: 0; right: 0; top: var(--header-h); background: #fff; border-bottom: 1px solid var(--c-border); padding: .8rem 4%; }
    .nav-menu.open { display: flex; }
    .nav-menu a { padding: .9rem .8rem; }
    .nav-toggle {
        display: inline-flex; align-items: center; gap: .4rem; margin-left: auto;
        background: transparent; border: 1.5px solid var(--c-border); border-radius: 999px;
        padding: .4rem .9rem; font-family: var(--font-body); font-size: .85rem; font-weight: 600; color: var(--c-text); cursor: pointer;
    }
    .header-inner { flex-wrap: wrap; padding: .8rem 0; }
    .hero-inner, .profile-layout { grid-template-columns: 1fr; }
    .profile-card { position: static; }
    .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .hb-1 { left: 2%; } .hb-2 { right: 2%; }
}
@media (max-width: 640px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 1.6rem; }
    .hero { padding: 3.2rem 0 3.4rem; }
    .footer-bottom-inner { justify-content: center; text-align: center; }
    .whatsapp-label { display: none; }
    .whatsapp-float { padding: .85rem; border-radius: 50%; }
}

@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}