:root {
    --green: #143d2b;
    --green-2: #0f2f22;
    --gold: #c9983a;
    --gold-soft: #d9bd7a;
    --cream: #faf5ea;
    --ivory: #fffaf1;
    --card: rgba(255, 252, 246, .92);
    --line: #eadbc2;
    --text: #20312b;
    --muted: #6f7772;
    --shadow: 0 16px 42px rgba(42, 31, 18, .09);
    --radius: 8px;
    --serif: Georgia, "Times New Roman", serif;
    --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--sans);
    color: var(--text);
    background: linear-gradient(180deg, #fffaf1 0%, #fbf4e8 46%, #fffaf1 100%);
    letter-spacing: 0;
}
body.dash-menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; min-width: 0; }
main, section, article, aside, div { min-width: 0; }
.container { width: min(1220px, calc(100% - 40px)); margin: 0 auto; }
.serif { font-family: var(--serif); }
.muted { color: var(--muted); }
.tiny { font-size: 12px; color: var(--muted); }
.section { padding: 36px 0; }
.section-title { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
h1, h2, h3 { font-family: var(--serif); color: var(--green); font-weight: 500; margin: 0; line-height: 1.04; }
h1 { font-size: clamp(42px, 6vw, 76px); }
h2 { font-size: clamp(28px, 3vw, 42px); }
h3 { font-size: 22px; }
p { line-height: 1.65; }

.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 250, 241, .9);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
}
.nav { height: 86px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.logo { display: flex; align-items: center; gap: 12px; min-width: 210px; }
.logo img { width: 210px; height: auto; }
.nav-links { display: flex; align-items: center; gap: 30px; font-size: 14px; }
.nav-links a { padding: 9px 0; border-bottom: 1px solid transparent; }
.nav-links a.active, .nav-links a:hover { color: var(--gold); border-bottom-color: var(--gold); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.mobile-toggle { display: none; }

.btn {
    border: 1px solid var(--gold);
    border-radius: var(--radius);
    padding: 13px 20px;
    background: #fffaf1;
    color: var(--green);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 700;
    min-height: 44px;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-primary { background: linear-gradient(180deg, #1d563c, var(--green)); color: #fff; border-color: #0d2c1f; box-shadow: 0 10px 22px rgba(20, 61, 43, .18); }
.btn-gold { background: linear-gradient(180deg, #d5ad55, #b98525); color: #fff; border-color: #b98525; }
.btn-soft { background: #fff; color: var(--gold); }
.btn-full { width: 100%; }

.hero {
    min-height: 525px;
    background: #fffaf1;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
}
.hero-inner { display: grid; grid-template-columns: .9fr 1.1fr; align-items: stretch; min-height: 525px; }
.hero-copy { padding: 56px 0 38px; position: relative; z-index: 2; }
.hero-copy p { font-size: 20px; max-width: 520px; color: #44504a; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 22px 0 28px; }
.trust-row { display: flex; flex-wrap: wrap; gap: 26px; margin-top: 26px; }
.trust-item { display: flex; align-items: center; gap: 10px; font-weight: 600; color: #44504a; }
.badge-icon { width: 42px; height: 42px; border: 1px solid var(--gold); border-radius: 50%; display: grid; place-items: center; color: var(--gold); background: #fffaf4; font-weight: 800; }
.hero-art { position: relative; overflow: hidden; min-height: 420px; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.leaf-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("../img/banners/banner-home.png") center/cover no-repeat;
    opacity: .18;
    pointer-events: none;
}

.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 8px 28px rgba(77, 49, 19, .04);
}
.grid { display: grid; gap: 18px; }
.grid-7 { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.category-card { padding: 22px; display: grid; grid-template-columns: 72px 1fr; gap: 18px; min-height: 132px; }
.category-card .icon { width: 72px; height: 72px; border: 1px solid var(--gold); border-radius: 50%; display: grid; place-items: center; color: var(--green); background: #fffaf4; font-family: var(--serif); font-size: 30px; }
.category-card p, .service-card p, .therapist-card p { margin: 6px 0; color: var(--muted); font-size: 14px; }
.link-arrow { color: var(--gold); font-weight: 800; display: inline-flex; gap: 8px; align-items: center; margin-top: 10px; }
.service-card { overflow: hidden; }
.service-card .thumb { height: 178px; object-fit: cover; width: 100%; }
.service-card .body { padding: 16px; }
.meta { display: flex; flex-wrap: wrap; gap: 10px 16px; color: #5d6761; font-size: 13px; align-items: center; }
.stars { color: var(--gold); letter-spacing: 1px; }
.card-actions { display: flex; gap: 10px; align-items: center; margin-top: 14px; flex-wrap: wrap; }
.therapist-card { padding: 16px; display: grid; gap: 12px; }
.therapist-card img { width: 100%; height: 196px; object-fit: cover; border-radius: var(--radius); object-position: top center; }

.split { display: grid; grid-template-columns: 1fr 360px; gap: 22px; align-items: start; }
.page-hero {
    padding: 34px 0;
    background: #fffaf1;
    border-bottom: 1px solid var(--line);
    position: relative;
    overflow: hidden;
}
.page-hero.banner {
    background-size: cover;
    background-position: center;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(255,250,241,.95), rgba(255,250,241,.76), rgba(255,250,241,.12));
}
.filters { padding: 14px; display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 14px; margin-top: -26px; position: relative; z-index: 3; }
.input, .select, textarea {
    width: 100%;
    border: 1px solid var(--line);
    background: rgba(255,255,255,.75);
    border-radius: var(--radius);
    padding: 13px 14px;
    color: var(--text);
}
textarea { min-height: 110px; resize: vertical; }
label { display: grid; gap: 7px; font-size: 13px; font-weight: 700; color: #3d4a44; }

.detail-head { display: grid; grid-template-columns: 1.05fr .95fr; gap: 36px; align-items: center; padding: 30px 0; }
.detail-image { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.detail-image img { width: 100%; height: 390px; object-fit: cover; }
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.info-box { padding: 18px; border-right: 1px solid var(--line); background: rgba(255,252,246,.76); }
.info-box:last-child { border-right: 0; }
.side-card { padding: 22px; position: sticky; top: 104px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.feature { padding: 22px; min-height: 170px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(255,252,246,.65); }
.feature:nth-child(3n) { border-right: 0; }
.feature:nth-last-child(-n+3) { border-bottom: 0; }
.quote { padding: 22px; border-left: 4px solid var(--gold); background: #fffaf3; }
.footer { background: linear-gradient(135deg, #103322, #174b34); color: #fff; margin-top: 36px; padding: 34px 0; }
.footer-grid { display: grid; grid-template-columns: 1.3fr repeat(3, 1fr) 1.5fr; gap: 28px; }
.footer img { width: 170px; filter: brightness(1.25); }
.footer a, .footer p { color: rgba(255,255,255,.82); font-size: 14px; }
.footer h4 { margin: 0 0 10px; color: #fff; }
.footer .footer-whatsapp { color: var(--green); border-color: var(--gold); background: #fffaf1; }
.footer .footer-whatsapp:hover { color: var(--green); }

.auth-shell { min-height: calc(100vh - 86px); display: grid; place-items: center; padding: 40px 0; }
.auth-card { width: min(520px, 100%); padding: 28px; }
.form-grid { display: grid; gap: 14px; }
.radio-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.radio-pill { padding: 12px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; text-align: center; cursor: pointer; }
.radio-pill input { margin-right: 6px; }

.dash-body { background: #fbf6ed; min-height: 100vh; }
.dash-shell { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
.sidebar { background: rgba(255,250,241,.95); border-right: 1px solid var(--line); padding: 22px; position: sticky; top: 0; height: 100vh; overflow-y: auto; overflow-x: hidden; }
.sidebar .logo img { width: 180px; }
.side-nav { display: grid; gap: 8px; margin-top: 28px; padding-bottom: 28px; }
.side-nav a { padding: 13px 14px; border-radius: var(--radius); display: flex; align-items: center; gap: 10px; color: #33413b; }
.side-nav a.active, .side-nav a:hover { background: linear-gradient(180deg, #1d563c, var(--green)); color: #fff; }
.dash-backdrop, .dash-menu-btn { display: none; }
.dash-main { padding: 22px 28px 36px; }
.dash-top { height: 74px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); margin: -22px -28px 28px; padding: 0 28px; background: rgba(255,250,241,.8); }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat { padding: 22px; min-height: 120px; }
.stat strong { display: block; font-size: 34px; color: #16241f; margin-top: 8px; }
.panel { padding: 18px; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 14px; }
th, td { padding: 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: #56615c; font-size: 12px; text-transform: uppercase; }
.status { display: inline-flex; padding: 5px 9px; border-radius: 999px; background: #edf5ed; color: #28643d; font-size: 12px; font-weight: 800; }
.status.warn { background: #fff4dc; color: #9a6415; }
.status.danger { background: #fdeceb; color: #9a3029; }
.timeline { display: grid; gap: 14px; }
.timeline-item { display: grid; grid-template-columns: 54px 1fr; gap: 14px; align-items: start; }
.date-badge { border: 1px solid var(--line); border-radius: var(--radius); padding: 8px; text-align: center; background: #fff; color: var(--green); }
.notice { padding: 12px 14px; border-radius: var(--radius); margin: 14px 0; border: 1px solid var(--line); background: #fff; }
.notice.success { border-color: #b8d4be; color: #1e5b33; }
.notice.error { border-color: #e8b4af; color: #9a3029; }
.schedule-modal {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(12, 28, 21, .42);
}
.schedule-modal[hidden] { display: none; }
.schedule-dialog {
    width: min(760px, 100%);
    max-height: calc(100vh - 48px);
    overflow: auto;
    padding: 24px;
}
.modal-wide { width: min(980px, 100%); }
.modal-section { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; background: rgba(255,250,241,.58); display: grid; gap: 14px; }
.modal-section summary { cursor: pointer; color: var(--green); font-family: var(--serif); font-size: 22px; }
.field-note { font-size: 12px; color: var(--muted); margin: -3px 0 3px; }
.slot-calendar { display: grid; gap: 14px; }
.slot-grid { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.slot-btn.selected { background: var(--green); color: #fff; border-color: var(--green); }
.mini-day { min-height: 150px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,252,246,.76); padding: 12px; display: grid; align-content: start; gap: 8px; }
.calendar-chip { display: grid; gap: 3px; border-left: 3px solid var(--green); background: #fff; border-radius: 7px; padding: 8px; font-size: 12px; }
.calendar-chip.soft { border-left-color: var(--gold); background: #fff8eb; }
.calendar-chip span, .calendar-chip small { color: var(--muted); }

@media (max-width: 980px) {
    .container { width: min(100% - 28px, 760px); }
    .section { padding: 28px 0; }
    .section-title { align-items: flex-start; flex-wrap: wrap; }
    .nav { height: auto; min-height: 76px; flex-wrap: wrap; gap: 12px; padding: 12px 0; }
    .logo { min-width: 0; }
    .logo img { width: 168px; }
    .mobile-toggle { display: inline-flex; }
    .nav-links { display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 6px; padding: 8px 0 12px; }
    .nav-links.open { display: flex; }
    .nav-links a { padding: 12px 10px; border: 1px solid transparent; border-radius: var(--radius); }
    .nav-links a.active, .nav-links a:hover { border-color: var(--line); background: rgba(255,255,255,.58); }
    .topbar .nav-actions { width: 100%; justify-content: space-between; gap: 10px; }
    .topbar .nav-actions a:not(.btn) { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0 12px; }
    .topbar .nav-actions .btn { flex: 1; }
    .hero-inner, .detail-head, .split, .footer-grid, .dash-shell { grid-template-columns: 1fr; }
    .hero-copy { padding-top: 34px; }
    .hero-art { min-height: 300px; }
    .hero-copy p { font-size: 17px; }
    .trust-row { gap: 14px; }
    .grid-7, .grid-4, .grid-3, .grid-2, .feature-grid, .stat-grid, .filters { grid-template-columns: 1fr; }
    .category-card { grid-template-columns: 56px 1fr; gap: 14px; }
    .category-card .icon { width: 56px; height: 56px; font-size: 24px; }
    .filters { margin-top: 14px; }
    .detail-image img { height: 280px; }
    .info-grid { grid-template-columns: 1fr; }
    .info-box { border-right: 0; border-bottom: 1px solid var(--line); }
    .info-box:last-child { border-bottom: 0; }
    .feature { border-right: 0; }
    .feature:nth-last-child(-n+3) { border-bottom: 1px solid var(--line); }
    .feature:last-child { border-bottom: 0; }
    .dash-shell { display: block; min-height: 100vh; }
    .sidebar {
        position: fixed;
        z-index: 70;
        top: 0;
        left: 0;
        width: min(84vw, 320px);
        height: 100dvh;
        transform: translateX(-105%);
        transition: transform .22s ease;
        box-shadow: var(--shadow);
        border-right: 1px solid var(--line);
        padding: 18px;
    }
    .dash-menu-open .sidebar { transform: translateX(0); }
    .dash-backdrop {
        display: none;
        position: fixed;
        inset: 0;
        z-index: 60;
        border: 0;
        background: rgba(17, 37, 28, .38);
        padding: 0;
    }
    .dash-menu-open .dash-backdrop { display: block; }
    .dash-menu-btn { display: inline-flex; margin: 0 0 8px; padding: 10px 14px; min-height: 40px; }
    .sidebar .logo img { width: 170px; }
    .side-nav { gap: 7px; margin-top: 20px; padding-bottom: 36px; }
    .side-nav a { min-height: 46px; padding: 12px 13px; }
    .dash-top {
        position: sticky;
        top: 0;
        z-index: 30;
        height: auto;
        min-height: 72px;
        margin: -16px -16px 18px;
        padding: 12px 16px;
        backdrop-filter: blur(16px);
        align-items: center;
        gap: 12px;
    }
    .dash-top > div:first-child { display: grid; gap: 2px; }
    .dash-top .nav-actions { gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
    .dash-top .nav-actions .btn { padding: 10px 12px; min-height: 40px; }
    .dash-main { padding: 16px; padding-bottom: max(28px, env(safe-area-inset-bottom)); }
    .side-card { position: static; }
    h1 { font-size: 42px; }
    h2 { font-size: 30px; }
    h3 { font-size: 20px; }
    .panel { padding: 15px; }
    .stat { min-height: auto; }
    .stat strong { font-size: 30px; }
    .table-wrap {
        margin-left: -2px;
        margin-right: -2px;
        border-radius: var(--radius);
        scrollbar-width: thin;
    }
    th, td { padding: 10px; }
    .auth-shell { padding: 22px 14px; place-items: start center; }
    .auth-card { padding: 20px; }
    .schedule-modal { padding: 12px; align-items: end; }
    .schedule-dialog { max-height: calc(100dvh - 24px); padding: 18px; }
    .radio-row { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
    .container { width: min(100% - 20px, 760px); }
    .btn { width: 100%; padding: 12px 14px; }
    .mobile-toggle { width: auto; }
    .topbar .nav-actions { display: grid; grid-template-columns: 1fr; }
    .topbar .nav-actions a:not(.btn) { border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,.58); }
    .hero-actions, .card-actions { display: grid; grid-template-columns: 1fr; }
    .trust-item { width: 100%; }
    .detail-head { gap: 20px; }
    .detail-image img { height: 230px; }
    .footer { margin-top: 24px; padding: 28px 0; }
    .dash-top { align-items: flex-start; }
    .dash-top .nav-actions { display: grid; grid-template-columns: 1fr; width: 128px; }
    .dash-top .nav-actions .btn { width: 100%; font-size: 12px; }
    .section-title .btn, .section-title .link-arrow { width: 100%; }
    .grid { gap: 14px; }
    table { font-size: 13px; }
}
