/* ==========================================================================
   Bloom Ayurveda Co. — site stylesheet
   Palette and type follow the finalised brand identity (brass lotus + deep teal).
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;600&family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400&family=Lora:ital,wght@0,400;0,500;0,600;1,400&display=swap');

:root {
    /* Brand anchors */
    --teal: #115E54;
    --teal-deep: #0d4740;
    --teal-tint: #e7efec;
    --brass: #B8923E;
    --brass-light: #C9A24B;
    --brass-dark: #A87E2E;
    --brass-text: #8B6926;   /* brass darkened for small text on cream */
    --brass-onteal: #DEC58F;  /* brass lightened for small text on teal */
    --terracotta: #C4794E;
    --clay: #9A5B3A;

    /* Neutrals */
    --cream: #F8F3E7;
    --cream-card: #FDFAF2;
    --sand: #E3D8C0;
    --walnut: #4A3F35;
    --muted: #7B6D5B;

    /* System */
    --alert-bg: #fdf2ec;
    --alert-border: #e6bfa6;

    --font-brand: 'Cinzel', Georgia, serif;
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Lora', Georgia, serif;

    --max: 1080px;
    --radius: 16px;
    --shadow: 0 4px 20px rgba(17, 94, 84, 0.07);
    --shadow-lift: 0 12px 34px rgba(17, 94, 84, 0.13);
}

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

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

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.75;
    color: var(--walnut);
    background: var(--cream);
    -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; height: auto; }

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

/* ---------- Typography ---------- */

h1, h2, h3, h4 {
    font-family: var(--font-display);
    color: var(--teal);
    font-weight: 600;
    line-height: 1.25;
    margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.1rem, 6vw, 3.3rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.7rem, 4.4vw, 2.4rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.5rem); }

p { margin: 0 0 1.15em; }

a { color: var(--teal); text-decoration-color: rgba(184, 146, 62, 0.5); text-underline-offset: 3px; }
a:hover { color: var(--brass-dark); }

.eyebrow {
    font-family: var(--font-brand);
    font-size: 0.72rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--brass-text);
    margin: 0 0 14px;
}

.lede { font-size: 1.15rem; color: #5c5045; }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; line-height: 1.65; }
.center { text-align: center; }

/* ---------- Header ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: rgba(248, 243, 231, 0.94);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--sand);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 22px;
    max-width: var(--max);
    margin: 0 auto;
}

.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.brand:hover { color: inherit; }
.brand-lotus { width: 34px; height: 34px; flex: none; }

.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name {
    font-family: var(--font-brand);
    font-size: 1.06rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: var(--teal);
}
.brand-sub {
    font-family: var(--font-brand);
    font-size: 0.52rem;
    letter-spacing: 0.24em;
    color: var(--brass-text);
    margin-top: 4px;
}

.nav { display: flex; align-items: center; gap: 26px; }
.nav a {
    font-size: 0.94rem;
    text-decoration: none;
    color: var(--walnut);
    padding-bottom: 2px;
    border-bottom: 1px solid transparent;
}
.nav a:hover, .nav a.active { color: var(--teal); border-bottom-color: var(--brass); }

.nav-toggle {
    display: none;
    background: none;
    border: 1px solid var(--sand);
    border-radius: 9px;
    padding: 11px 13px;   /* keeps the tap target at 44px, the comfortable minimum */
    cursor: pointer;
    color: var(--teal);
    line-height: 0;
}
.nav-toggle svg { width: 20px; height: 20px; }

/* ---------- Buttons ---------- */

.btn {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    padding: 15px 30px;
    border-radius: 999px;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    border: 1px solid transparent;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
    background: linear-gradient(135deg, #E0C078, var(--brass-light));
    color: #33291D;
    box-shadow: 0 6px 18px rgba(168, 126, 46, 0.3);
}
.btn-primary:hover { color: #33291D; box-shadow: 0 10px 26px rgba(168, 126, 46, 0.38); }

.btn-teal { background: var(--teal); color: #f6efdf; }
.btn-teal:hover { color: #fff; background: var(--teal-deep); }

.btn-ghost { background: transparent; border-color: var(--teal); color: var(--teal); }
.btn-ghost:hover { background: var(--teal); color: #f6efdf; }

.btn-whatsapp { background: #0F7A6C; color: #fff; }
.btn-whatsapp:hover { background: #0C6459; color: #fff; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.btn-row.center { justify-content: center; }
.btn-block { display: block; width: 100%; }

/* ---------- Sections ---------- */

section { padding: 62px 0; }
.section-tight { padding: 40px 0; }
.section-teal { background: var(--teal); color: #e8ded0; }
.section-teal h2, .section-teal h3 { color: #f2e7d4; }
.section-teal a { color: var(--brass-light); }
.section-cream { background: var(--cream-card); }

.section-head { max-width: 640px; margin: 0 auto 42px; text-align: center; }
.section-head p { color: var(--muted); margin-bottom: 0; }

/* ---------- Hero ---------- */

.hero { padding: 68px 0 58px; text-align: center; }
.hero h1 { margin-bottom: 20px; }
.hero .lede { max-width: 620px; margin: 0 auto 30px; }

.hero-lotus { width: 74px; margin: 0 auto 22px; display: block; }

.hero-note {
    font-size: 0.88rem;
    color: var(--muted);
    margin-top: 20px;
}

/* ---------- Cards & grids ---------- */

.grid { display: grid; gap: 22px; }
.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(--cream-card);
    border: 1px solid var(--sand);
    border-radius: var(--radius);
    padding: 28px 26px;
    box-shadow: var(--shadow);
}
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }

.card-link { text-decoration: none; color: inherit; display: block; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.card-link:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); color: inherit; }

.pillar-icon {
    width: 40px; height: 40px;
    margin-bottom: 14px;
    color: var(--brass-dark);
}

/* Numbered steps */
.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--teal-tint);
    color: var(--teal);
    font-family: var(--font-brand);
    font-size: 0.9rem;
    margin-bottom: 12px;
}

/* ---------- Price / offer ---------- */

.price-card {
    background: var(--cream-card);
    border: 1px solid var(--sand);
    border-radius: var(--radius);
    padding: 34px 30px;
    box-shadow: var(--shadow);
    position: relative;
}
.price-card.featured { border-color: var(--brass); border-width: 2px; }

.price-badge {
    position: absolute;
    top: -13px; left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #E0C078, var(--brass-light));
    color: #33291D;
    font-family: var(--font-brand);
    font-size: 0.62rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 999px;
    white-space: nowrap;
}

.price { font-family: var(--font-display); font-size: 2.6rem; color: var(--teal); line-height: 1; }
.price-was { font-size: 1rem; color: var(--muted); text-decoration: line-through; margin-left: 8px; }
.price-unit { font-size: 0.92rem; color: var(--muted); }

.ticks { list-style: none; padding: 0; margin: 20px 0; }
.ticks li { position: relative; padding-left: 30px; margin-bottom: 11px; }
.ticks li::before {
    content: "";
    position: absolute;
    left: 4px; top: 10px;
    width: 7px; height: 12px;
    border: solid var(--brass);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* ---------- Forms ---------- */

.form-card {
    background: var(--cream-card);
    border: 1px solid var(--sand);
    border-radius: var(--radius);
    padding: 30px 26px;
    box-shadow: var(--shadow);
}

.field { margin-bottom: 20px; }

label {
    display: block;
    font-size: 0.86rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--teal);
    margin-bottom: 7px;
}
label .req { color: var(--terracotta); }
label .label-hint {
    text-transform: none;
    letter-spacing: 0;
    font-size: 0.82rem;
    color: var(--muted);
}

input[type="text"], input[type="tel"], input[type="email"], input[type="date"], select, textarea {
    width: 100%;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--walnut);
    background: #fff;
    border: 1px solid var(--sand);
    border-radius: 10px;
    padding: 13px 14px;
}
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--brass);
    box-shadow: 0 0 0 3px rgba(184, 146, 62, 0.16);
}
textarea { min-height: 110px; resize: vertical; }

.checkline { display: flex; align-items: flex-start; gap: 11px; }
.checkline input { margin-top: 5px; flex: none; width: 17px; height: 17px; accent-color: var(--teal); }
.checkline label { text-transform: none; letter-spacing: 0; font-size: 0.92rem; color: var(--walnut); margin: 0; line-height: 1.6; }

.field-error { color: #b0442a; font-size: 0.87rem; margin-top: 6px; display: none; }
.field-error.show { display: block; }

/* ---------- Notices ---------- */

.notice {
    background: var(--teal-tint);
    border-left: 3px solid var(--teal);
    border-radius: 10px;
    padding: 17px 20px;
    font-size: 0.93rem;
    line-height: 1.65;
}
.notice p:last-child { margin-bottom: 0; }

.notice-alert { background: var(--alert-bg); border-left-color: var(--terracotta); }

/* ---------- Rhythm Score ---------- */

.quiz-shell { max-width: 660px; margin: 0 auto; }

.progress-track {
    height: 5px;
    background: var(--sand);
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 10px;
}
.progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--brass-light), var(--brass-dark));
    border-radius: 999px;
    transition: width 0.4s ease;
}
.progress-label {
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 26px;
}

.q-domain {
    font-family: var(--font-brand);
    font-size: 0.68rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--brass-text);
    margin-bottom: 10px;
}
.q-text { font-family: var(--font-display); font-size: 1.6rem; color: var(--teal); line-height: 1.3; margin-bottom: 26px; }

.options { display: grid; gap: 12px; }

.option {
    display: block;
    width: 100%;
    text-align: left;
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.55;
    color: var(--walnut);
    background: var(--cream-card);
    border: 1px solid var(--sand);
    border-radius: 13px;
    padding: 16px 18px;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.option:hover { border-color: var(--brass); background: #fff; transform: translateX(3px); }
.option.selected { border-color: var(--teal); background: var(--teal-tint); }

.quiz-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 26px; }

.link-back {
    background: none;
    border: none;
    font-family: var(--font-body);
    font-size: 0.94rem;
    color: var(--muted);
    cursor: pointer;
    padding: 8px 0;
}
.link-back:hover { color: var(--teal); }
.link-back[hidden] { visibility: hidden; display: block; }

/* Result */
.band-dial {
    width: 132px; height: 132px;
    margin: 0 auto 20px;
    position: relative;
}
.band-dial svg { transform: rotate(-90deg); }
.band-dial .dial-num {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 2.3rem;
    color: var(--teal);
    line-height: 1;
}
.band-dial .dial-of { font-family: var(--font-body); font-size: 0.68rem; letter-spacing: 0.14em; color: var(--muted); text-transform: uppercase; margin-top: 4px; }

.domain-bar { margin-bottom: 16px; }
.domain-bar-head { display: flex; justify-content: space-between; font-size: 0.9rem; margin-bottom: 6px; }
.domain-bar-head strong { font-weight: 500; color: var(--teal); }
.domain-bar-track { height: 8px; background: var(--sand); border-radius: 999px; overflow: hidden; }
.domain-bar-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--brass-light), var(--brass-dark)); }
.domain-bar.is-low .domain-bar-fill { background: linear-gradient(90deg, #d99a72, var(--terracotta)); }

.tag {
    display: inline-block;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 4px 11px;
    border-radius: 999px;
    background: var(--teal-tint);
    color: var(--teal);
    margin-left: 8px;
    vertical-align: middle;
}
.tag-low { background: #f8e6da; color: #8C5133; }

/* ---------- Footer ---------- */

.site-footer {
    background: var(--teal);
    color: #D0C6B6;
    padding: 52px 0 30px;
    font-size: 0.92rem;
}
.site-footer h2 {
    font-family: var(--font-brand);
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--brass-onteal);
    margin-bottom: 14px;
}
.site-footer a { color: #e2d8c8; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 34px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 9px; }
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    margin-top: 36px;
    padding-top: 22px;
    font-size: 0.83rem;
    line-height: 1.7;
    color: #CDC6BD;
}

.footer-contact {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 28px;
    margin-bottom: 12px;
}
.footer-contact a {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 0.92rem;
    color: #e2d8c8;
    text-decoration: none;
}
.footer-contact a:hover { color: #fff; text-decoration: none; }
.footer-contact svg {
    width: 19px;
    height: 19px;
    flex: none;
    color: var(--brass-onteal);
}
.footer-contact a:hover svg { color: #fff; }

/* ---------- Legal pages ---------- */

.legal { padding: 52px 0 70px; }
.legal h2 { font-size: 1.45rem; margin-top: 40px; }
.legal h3 { font-size: 1.1rem; margin-top: 26px; }
.legal ul { padding-left: 22px; }
.legal li { margin-bottom: 8px; }
.legal-updated { font-size: 0.88rem; color: var(--muted); font-style: italic; }

/* ---------- Utilities ---------- */

.hidden { display: none !important; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.stack-sm > * + * { margin-top: 10px; }

.divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--brass);
    margin: 34px 0;
}
.divider::before, .divider::after {
    content: "";
    height: 1px;
    width: 54px;
    background: var(--sand);
}

.skip-link {
    position: absolute;
    left: -9999px;
    background: var(--teal);
    color: #fff;
    padding: 10px 16px;
    border-radius: 0 0 8px 0;
    z-index: 100;
}
.skip-link:focus { left: 0; top: 0; }

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
    body { font-size: 16px; }
    section { padding: 46px 0; }
    .hero { padding: 46px 0 40px; }

    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: var(--cream-card);
        border-bottom: 1px solid var(--sand);
        padding: 8px 22px 16px;
        box-shadow: var(--shadow);
    }
    .nav.open { display: flex; }
    .nav a { padding: 12px 0; border-bottom: 1px solid var(--sand); }
    .nav a:last-child { border-bottom: none; }
    .nav-toggle { display: block; }
    .site-header { position: relative; }

    .grid-2, .grid-4 { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 26px; }

    .btn { width: 100%; }
    .btn-row { flex-direction: column; }

    .q-text { font-size: 1.35rem; }
    .price { font-size: 2.2rem; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
