/* ==========================================================================
   Vishwa Mehta Therapy — custom styles (layered on top of Tailwind CDN)
   ========================================================================== */

:root {
    --terracotta: #C06A33;
    --terracotta-dark: #A2542A;
    --honey: #E8A04B;
    --sage: #889A5A;
    --cream: #FBF6EF;
    --charcoal: #2C2521;
    --muted: #6F6257;
    --border: #E7D9C8;
}

/* Sensible fallbacks while the CDN fonts/utilities load */
body { font-family: 'Nunito', ui-sans-serif, system-ui, sans-serif; }
h1, h2, h3, h4, h5, h6 { font-family: 'Quicksand', ui-sans-serif, sans-serif; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: 6rem; /* clears the sticky header on anchor jumps */
    overflow-x: clip;         /* contains off-screen AOS transforms without breaking sticky */
}
body { overflow-x: clip; }   /* clip (not hidden) so position:sticky keeps working */

/* --- Sticky header scrolled state --- */
#site-header.is-scrolled {
    background: rgba(251, 246, 239, 0.95);
    box-shadow: 0 8px 28px -14px rgba(44, 37, 33, 0.28);
}

/* --- Form controls --- */
.form-input {
    width: 100%;
    border-radius: 1rem;
    border: 1.5px solid var(--border);
    background: #FCFAF6;
    padding: 0.8rem 1rem;
    font-size: 1rem;
    line-height: 1.5;
    color: var(--charcoal);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.form-input::placeholder { color: #AB9D8E; }
.form-input:focus {
    outline: none;
    border-color: var(--terracotta);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(192, 106, 51, 0.12);
}
.form-input.input-error {
    border-color: #dc2626;
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.10);
}

.field-error {
    margin-top: 0.35rem;
    font-size: 0.85rem;
    color: #dc2626;
}
.field-error:empty { display: none; }

/* --- Honeypot (kept out of view but reachable by bots) --- */
.hp-field {
    position: absolute !important;
    left: -9999px !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* --- Accordion --- */
.accordion-trigger[aria-expanded="true"] .accordion-icon { transform: rotate(180deg); }
.accordion-panel { transition: max-height 0.45s ease; }

/* --- Mobile menu --- */
#mobile-menu { transition: max-height 0.45s ease; }

/* --- Links inside rich text --- */
.prose-therapy strong { font-weight: 700; }

/* --- Custom scrollbar --- */
::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb {
    background: #d9c3ab;
    border-radius: 99px;
    border: 3px solid var(--cream);
}
::-webkit-scrollbar-thumb:hover { background: var(--terracotta); }

/* --- SweetAlert2 brand tweaks --- */
.swal2-popup { border-radius: 1.75rem !important; font-family: 'Nunito', sans-serif !important; }
.swal2-title { font-family: 'Quicksand', sans-serif !important; color: var(--charcoal) !important; }
.swal2-styled.swal2-confirm {
    border-radius: 9999px !important;
    background: var(--terracotta) !important;
    font-family: 'Quicksand', sans-serif !important;
    font-weight: 600 !important;
    box-shadow: none !important;
}

/* --- Balanced headings --- */
.text-balance { text-wrap: balance; }
.text-pretty { text-wrap: pretty; }

/* --- Eyebrow label --- */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Quicksand', sans-serif;
    font-weight: 600;
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--terracotta-dark);
}
.eyebrow::before {
    content: "";
    width: 1.75rem;
    height: 2px;
    background: var(--honey);
    border-radius: 99px;
}
.eyebrow.is-centered::after {
    content: "";
    width: 1.75rem;
    height: 2px;
    background: var(--honey);
    border-radius: 99px;
}

/* --- Overlapping avatar stack (social proof) --- */
.avatar-stack { display: flex; }
.avatar-stack > * {
    margin-left: -0.7rem;
    border: 3px solid #fff;
    border-radius: 9999px;
}
.avatar-stack > *:first-child { margin-left: 0; }

/* --- Marquee strip --- */
.marquee { overflow: hidden; }
.marquee-track {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    will-change: transform;
    animation: vmt-marquee 38s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes vmt-marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* --- Timeline connector (process) --- */
.timeline-line {
    background-image: linear-gradient(90deg, var(--honey) 0 60%, transparent 0);
    background-size: 14px 2px;
    background-repeat: repeat-x;
}

/* --- Number watermark --- */
.num-watermark {
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(192, 106, 51, 0.25);
}

/* --- Card hover lift --- */
.lift { transition: transform 0.3s ease, box-shadow 0.3s ease; }
.lift:hover { transform: translateY(-6px); }

/* --- Decorative "cute" cards: soft corner blob + faint brand leaf --- */
.deco-card { position: relative; overflow: hidden; }
.deco-card > * { position: relative; z-index: 1; }      /* keep content above the decoration */
.deco-card::before {                                     /* warm honey glow, top-right */
    content: "";
    position: absolute;
    top: -2.25rem;
    right: -2.25rem;
    width: 7.5rem;
    height: 7.5rem;
    border-radius: 9999px;
    background: radial-gradient(circle, rgba(232, 160, 75, 0.18), rgba(232, 160, 75, 0) 70%);
    transition: transform 0.45s ease;
    pointer-events: none;
    z-index: 0;
}
.deco-card::after {                                      /* faint sage leaf, bottom-right (echoes the logo) */
    content: "";
    position: absolute;
    right: 0.7rem;
    bottom: -0.5rem;
    width: 3.75rem;
    height: 3.75rem;
    background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23889A5A'><path d='M17 8C8 10 5.9 16.17 3.82 21.34l1.89.66.95-2.3c.48.17.98.3 1.34.3C19 20 22 3 22 3c-1 2-8 2.25-13 3.25S2 11.5 2 13.5s1.75 3.75 1.75 3.75C7 8 17 8 17 8z'/></svg>") no-repeat center / contain;
    opacity: 0.12;
    transform: rotate(-12deg);
    transition: transform 0.45s ease, opacity 0.45s ease;
    pointer-events: none;
    z-index: 0;
}
.deco-card:hover::before { transform: scale(1.3); }
.deco-card:hover::after  { transform: rotate(-4deg) scale(1.1); opacity: 0.2; }

/* --- Respect reduced-motion preferences --- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    html { scroll-behavior: auto; }
}
