/* ============================================================
   HAVEN — Therapist / Mental-Health vCard
   "A soft place to land." Warm oat + clay; light-first.
   Design system: arches, layered paper surfaces, soft serif.
   Signature motion: "Breathe" — a single circle inhales/exhales
   behind the hero word on a 6s ease (reduced-motion freezes it).
   Mobile-first · RTL-safe (logical properties) · reduced-motion aware
   ============================================================ */

:root {
    --bg: var(--tk-bg, #FBF6F0);            /* warm oat — the counseling-room light */
    --bg-2: color-mix(in srgb, var(--tk-bg, #FBF6F0) 86%, var(--tk-text, #2C2620));          /* slightly deeper oat for tonal layering */
    --panel: #FFFFFF;         /* clean paper cards */
    --panel-2: color-mix(in srgb, var(--tk-bg, #FBF6F0) 40%, #FFFFFF);       /* faint warm white — second elevation tier */
    --panel-soft: color-mix(in srgb, var(--tk-bg, #FBF6F0) 78%, var(--tk-text, #2C2620) 4%);    /* sunk surface tone */
    --sage: var(--tk-accent2, #DCE3D6);          /* calm-sage secondary tint */
    --sage-deep: color-mix(in srgb, var(--tk-accent2, #DCE3D6) 82%, var(--tk-text, #2C2620));     /* sage edge / hover */
    --txt: var(--tk-text, #2C2620);           /* warm near-black */
    --muted: color-mix(in srgb, var(--tk-text, #2C2620) 64%, var(--tk-bg, #FBF6F0));         /* warm taupe */
    --dim: color-mix(in srgb, var(--tk-text, #2C2620) 44%, var(--tk-bg, #FBF6F0));           /* faint warm grey */
    --accent: var(--tk-primary, #9A7B5A);        /* clay-terracotta — the single accent */
    --accent-deep: var(--tk-secondary, #856841);   /* pressed clay */
    --accent-soft: color-mix(in srgb, var(--tk-primary, #9A7B5A) 22%, #FFFFFF);   /* clay wash for fills */
    --line: color-mix(in srgb, var(--tk-primary, #9A7B5A) 14%, var(--tk-bg, #FBF6F0));          /* hairline */
    --line-2: color-mix(in srgb, var(--tk-primary, #9A7B5A) 26%, var(--tk-bg, #FBF6F0));        /* stronger hairline */
    --glow: rgb(from var(--tk-primary, #9A7B5A) r g b / .22);
    --r-xl: 30px;
    --r-lg: 24px;
    --r-md: 18px;
    --r-sm: 12px;
    --shadow-soft: 0 18px 48px -28px rgba(60, 44, 28, .42);
    --shadow-raise: 0 26px 60px -30px rgba(60, 44, 28, .5);
    --font-d: var(--tk-font-header, 'Fraunces'), 'Almarai', Georgia, 'Times New Roman', serif;
    --font-b: var(--tk-font-content, 'Mulish'), 'Almarai', system-ui, -apple-system, sans-serif;
    --dock-h: 74px;
    --ease: cubic-bezier(.22, .8, .26, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html:focus-within { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--txt);
    font-family: var(--font-b);
    font-size: 16px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
    min-height: 100vh;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
.hidden { display: none !important; }

::selection { background: var(--accent-soft); color: var(--accent-deep); }

/* ---------- Ambient background system (CSS-only, calm) ---------- */
.fx { position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
.fx::after { /* faint warm paper grain */
    content: ""; position: absolute; inset: -50%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
    opacity: .035; mix-blend-mode: multiply;
}
.fx-wash { position: absolute; border-radius: 50%; filter: blur(80px); will-change: transform; }
.fx-wash.w1 { width: 70vw; height: 70vw; max-width: 700px; max-height: 700px; background: radial-gradient(circle, var(--accent-soft), transparent 68%); opacity: .8; inset-block-start: -16%; inset-inline-end: -20%; animation: wash1 30s ease-in-out infinite alternate; }
.fx-wash.w2 { width: 60vw; height: 60vw; max-width: 600px; max-height: 600px; background: radial-gradient(circle, var(--sage), transparent 66%); opacity: .55; inset-block-end: -14%; inset-inline-start: -18%; animation: wash2 38s ease-in-out infinite alternate; }
@keyframes wash1 { to { transform: translate(-7vw, 8vh) scale(1.08); } }
@keyframes wash2 { to { transform: translate(6vw, -8vh) scale(1.12); } }

/* ---------- Layout ---------- */
.haven-wrap { max-width: 700px; margin-inline: auto; padding-inline: 20px; padding-block-end: calc(var(--dock-h) + 28px); }
.sec { padding-block: 46px; }
.sec-head { margin-block-end: 26px; }
.kicker {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: var(--font-b); font-size: 12px; font-weight: 700;
    letter-spacing: .2em; text-transform: uppercase; color: var(--accent);
}
.kicker::before { content: ""; width: 22px; height: 1.5px; border-radius: 2px; background: var(--accent); opacity: .7; }
/* soft-serif display: real scale + weight jump above body */
.sec-title { font-family: var(--font-d); font-size: clamp(1.9rem, 6.2vw, 2.6rem); font-weight: 500; font-optical-sizing: auto; letter-spacing: -.015em; line-height: 1.1; margin-block-start: 13px; color: var(--txt); }
.sec-sub { color: var(--muted); font-size: 15.5px; line-height: 1.7; margin-block-start: 10px; max-width: 54ch; }

/* ---------- Reveal choreography (gentle rise) ---------- */
.rv { opacity: 0; transform: translateY(20px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.rv.in { opacity: 1; transform: none; }
.rv-d1 { transition-delay: .09s; } .rv-d2 { transition-delay: .18s; } .rv-d3 { transition-delay: .27s; }

/* ---------- Hero page-load sequence ---------- */
.hero-load { opacity: 0; transform: translateY(18px); animation: heroIn 1s var(--ease) forwards; }
.hl-1 { animation-delay: .05s; }
.hl-2 { animation-delay: .16s; }
.hl-3 { animation-delay: .30s; }
.hl-4 { animation-delay: .46s; }
.hl-5 { animation-delay: .60s; }
@keyframes heroIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ---------- Topbar ---------- */
.topbar {
    position: sticky; inset-block-start: 0; z-index: 60;
    display: flex; align-items: center; gap: 12px;
    margin-inline: -20px; padding: 12px 20px;
    background: rgb(from var(--tk-bg, #FBF6F0) r g b / .82);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-block-end: 1px solid var(--line);
}
.topbar-avatar { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line-2); }
.topbar-name { font-family: var(--font-d); font-weight: 500; font-size: 16px; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-spacer { flex: 1; }

/* ---------- Hero (typographic statement + breathing circle) ---------- */
.hero { padding-block: 40px 26px; position: relative; }
.hero-stage { position: relative; }
/* SIGNATURE MOTION: the breathing circle, behind the hero word */
.breathe {
    position: absolute; z-index: 0; pointer-events: none;
    inset-block-start: -8%; inset-inline-start: -4%;
    width: clamp(220px, 62vw, 360px); aspect-ratio: 1; border-radius: 50%;
    background: radial-gradient(circle, var(--accent-soft) 0%, rgb(from var(--tk-accent2, #DCE3D6) r g b / .55) 48%, transparent 72%);
    filter: blur(14px);
    transform-origin: center;
    animation: breathe 6s ease-in-out infinite;
    will-change: transform, opacity;
}
@keyframes breathe {
    0%, 100% { transform: scale(.86); opacity: .62; }   /* exhale */
    50%      { transform: scale(1.12); opacity: .92; }   /* inhale */
}
.hero-inner { position: relative; z-index: 1; }

.hero-chip {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 7px 15px; border-radius: 999px;
    background: var(--panel); border: 1px solid var(--line-2);
    font-size: 12.5px; font-weight: 600; color: var(--muted);
    box-shadow: var(--shadow-soft);
}
.hero-chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sage-deep); box-shadow: 0 0 0 0 rgb(from var(--tk-accent2, #C7D2BD) r g b / .7); animation: pulse-dot 3.2s ease-out infinite; }
@keyframes pulse-dot { 70% { box-shadow: 0 0 0 9px rgb(from var(--tk-accent2, #C7D2BD) r g b / 0); } 100% { box-shadow: 0 0 0 0 rgb(from var(--tk-accent2, #C7D2BD) r g b / 0); } }

.hero-brand {
    margin-block-start: 22px;
    font-family: var(--font-b); font-weight: 700; font-size: 13px;
    letter-spacing: .22em; text-transform: uppercase; color: var(--accent);
}

.hero-title {
    font-family: var(--font-d);
    font-size: clamp(2.5rem, 10.5vw, 4.1rem);
    font-weight: 400; font-optical-sizing: auto;
    letter-spacing: -.02em; line-height: 1.08;
    margin-block-start: 12px; text-wrap: balance; color: var(--txt);
}
.hero-title .soft-word {
    font-style: italic; font-weight: 500;
    color: var(--accent);
}
.hero-desc { margin-block-start: 18px; color: var(--muted); font-size: 16px; max-width: 50ch; }
.hero-desc p { margin-block-end: .6em; }

.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-block-start: 26px; }
.btn-primary {
    position: relative; display: inline-flex; align-items: center; gap: 9px;
    padding: 15px 26px; border: 0; border-radius: 999px;
    background: var(--accent);
    color: #fff; font-family: var(--font-b); font-weight: 700; font-size: 14.5px;
    letter-spacing: .01em;
    box-shadow: 0 12px 30px -12px var(--glow);
    transition: transform .25s var(--ease), box-shadow .25s ease, background .25s ease;
}
.btn-primary:hover { transform: translateY(-2px); background: var(--accent-deep); box-shadow: 0 18px 38px -12px var(--glow); }
.btn-primary:active { transform: translateY(0) scale(.99); }

.btn-ghost {
    display: inline-flex; align-items: center; gap: 9px;
    padding: 15px 24px; border-radius: 999px;
    background: var(--panel); border: 1px solid var(--line-2);
    color: var(--txt); font-family: var(--font-b); font-weight: 700; font-size: 14.5px;
    transition: border-color .25s ease, background .25s ease, transform .25s ease;
}
.btn-ghost:hover { border-color: var(--accent); background: var(--panel-2); transform: translateY(-2px); }

/* ---------- Portrait card (hero visual, desktop) ---------- */
.hero-visual { display: none; position: relative; }
.hv-card {
    position: relative; border-radius: 220px 220px var(--r-lg) var(--r-lg); /* arch top */
    overflow: hidden; border: 1px solid var(--line-2);
    box-shadow: var(--shadow-raise);
    transition: transform .4s var(--ease);
}
.hv-card:hover { transform: translateY(-4px); }
.hv-card img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.hv-leaf { position: absolute; inset-block-end: -18px; inset-inline-end: -10px; width: 92px; height: 92px; border-radius: 50%; background: var(--sage); z-index: -1; }

/* ---------- Approach (modality soft pills) ---------- */
.pill-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.pill {
    display: inline-flex; align-items: center; gap: 9px;
    padding: 12px 20px; border-radius: 999px;
    background: var(--sage); border: 1px solid var(--sage-deep);
    color: var(--txt); font-weight: 700; font-size: 14px;
    transition: transform .22s var(--ease), box-shadow .22s ease;
}
.pill i { color: var(--accent); font-size: 14px; }
.pill:hover { transform: translateY(-2px); box-shadow: var(--shadow-soft); }

/* ---------- Who-I-help (soft tiles) ---------- */
.help-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.help-card {
    position: relative; padding: 22px 18px; border-radius: var(--r-lg);
    background: var(--panel); border: 1px solid var(--line);
    box-shadow: var(--shadow-soft); overflow: hidden;
    transition: transform .28s var(--ease), border-color .28s ease;
}
.help-card::before { /* soft arch corner accent */
    content: ""; position: absolute; inset-block-start: -36px; inset-inline-end: -36px;
    width: 84px; height: 84px; border-radius: 50%; background: var(--accent-soft); opacity: .8;
}
.help-card:hover { transform: translateY(-3px); border-color: var(--line-2); }
.help-ic { position: relative; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-2); color: var(--accent); font-size: 18px; margin-block-end: 13px; }
.help-name { position: relative; font-family: var(--font-d); font-weight: 500; font-size: 18px; letter-spacing: -.01em; }
.help-desc { position: relative; color: var(--muted); font-size: 13.5px; line-height: 1.6; margin-block-start: 5px; }

/* ---------- Confidentiality / safe-space note ---------- */
.safe-note {
    position: relative; padding: 28px 24px; border-radius: var(--r-lg);
    background: linear-gradient(170deg, var(--sage) 0%, var(--panel-soft) 100%);
    border: 1px solid var(--sage-deep);
    display: flex; gap: 18px; align-items: flex-start;
    box-shadow: var(--shadow-soft);
}
.safe-ic { flex-shrink: 0; width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; background: var(--panel); color: var(--accent); font-size: 20px; box-shadow: var(--shadow-soft); }
.safe-title { font-family: var(--font-d); font-weight: 500; font-size: 19px; letter-spacing: -.01em; }
.safe-text { color: var(--muted); font-size: 14.5px; line-height: 1.7; margin-block-start: 6px; }

/* ---------- Services (cards) ---------- */
.svc-grid { display: grid; gap: 14px; }
.svc-card {
    position: relative; border-radius: var(--r-lg); padding: 24px 22px 20px;
    background: var(--panel); border: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
    transition: transform .3s var(--ease), border-color .3s ease, box-shadow .3s ease;
    overflow: hidden;
}
.svc-card:hover { transform: translateY(-3px); border-color: var(--line-2); box-shadow: var(--shadow-raise); }
.svc-head { display: flex; align-items: center; gap: 15px; margin-block-end: 12px; }
.svc-icon {
    width: 52px; height: 52px; border-radius: 50%; flex-shrink: 0;
    display: grid; place-items: center; font-size: 20px; color: #fff;
    background: var(--accent); box-shadow: 0 10px 22px -10px var(--glow);
}
.svc-icon img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.svc-name { font-family: var(--font-d); font-size: 20px; font-weight: 500; letter-spacing: -.01em; line-height: 1.2; }
.svc-desc { color: var(--muted); font-size: 14.5px; line-height: 1.7; }
.svc-cta { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; margin-block-start: 16px; padding-block-start: 14px; border-block-start: 1px solid var(--line); }
.btn-mini {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 0; border: 0; background: transparent;
    font-family: var(--font-b); font-size: 13.5px; font-weight: 700; letter-spacing: .01em;
    color: var(--accent); transition: gap .2s ease;
}
.btn-mini i { color: var(--accent); font-size: 12px; }
.btn-mini:hover { gap: 12px; }

/* ---------- Packages (products) ---------- */
.pkg-grid { display: grid; gap: 14px; }
.pkg-card {
    position: relative; border-radius: var(--r-lg); padding: 24px;
    background: var(--panel); border: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
    transition: transform .3s var(--ease), border-color .3s ease;
}
.pkg-card:hover { transform: translateY(-3px); border-color: var(--line-2); }
.pkg-card.is-featured { border-color: var(--accent); box-shadow: 0 24px 56px -26px var(--glow); }
.pkg-badge {
    position: absolute; inset-block-start: -11px; inset-inline-start: 24px;
    padding: 5px 15px; border-radius: 999px; font-family: var(--font-b);
    font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
    background: var(--accent); color: #fff;
}
.pkg-img { width: 100%; height: 148px; object-fit: cover; border-radius: var(--r-md); margin-block-end: 16px; }
.pkg-name { font-family: var(--font-d); font-size: 19px; font-weight: 500; }
.pkg-desc { color: var(--muted); font-size: 14px; margin-block-start: 6px; line-height: 1.6; }
.pkg-price-row { display: flex; align-items: baseline; gap: 10px; margin-block-start: 16px; }
.pkg-price { font-family: var(--font-d); font-size: 28px; font-weight: 500; letter-spacing: -.01em; color: var(--accent); }
.pkg-price-old { color: var(--dim); font-size: 15px; text-decoration: line-through; }
.pkg-stock { font-size: 12.5px; font-weight: 700; margin-block-start: 5px; }
.pkg-stock.ok { color: var(--accent); }
.pkg-stock.out { color: var(--muted); }
.pkg-card .btn-primary { width: 100%; justify-content: center; margin-block-start: 18px; padding-block: 13px; }

/* ---------- First-session FAQ (gentle) ---------- */
.faq-list { display: grid; gap: 10px; }
.faq-item {
    border-radius: var(--r-md); background: var(--panel);
    border: 1px solid var(--line); overflow: hidden;
    box-shadow: var(--shadow-soft);
}
.faq-q {
    display: flex; align-items: center; gap: 12px; width: 100%;
    padding: 18px 20px; border: 0; background: transparent; text-align: start;
    font-family: var(--font-d); font-weight: 500; font-size: 16.5px; color: var(--txt);
}
.faq-q .faq-ic { margin-inline-start: auto; flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-2); color: var(--accent); font-size: 12px; transition: transform .3s var(--ease); }
.faq-item.open .faq-ic { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s var(--ease); }
.faq-item.open .faq-a { max-height: 320px; }
.faq-a-inner { padding: 0 20px 18px; color: var(--muted); font-size: 14.5px; line-height: 1.75; }

/* ---------- Work (slow-drift carousel) ---------- */
.car { position: relative; }
.car-track {
    display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x proximity;
    margin-inline: -20px; padding-inline: 20px; padding-block-end: 8px;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.car-track::-webkit-scrollbar { display: none; }
.car-item {
    flex: 0 0 74%; max-width: 340px; scroll-snap-align: center;
    position: relative; border-radius: var(--r-lg); overflow: hidden;
    border: 1px solid var(--line); aspect-ratio: 4/5; background: var(--panel-soft);
    box-shadow: var(--shadow-soft);
}
.car-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.car-item:hover img { transform: scale(1.04); }
.mas-cap {
    position: absolute; inset-block-end: 0; inset-inline: 0;
    padding: 28px 16px 14px; font-size: 13px; font-weight: 600; color: #fff;
    background: linear-gradient(transparent, rgb(from var(--tk-text, #2C2620) r g b / .8));
}
.car-nav {
    position: absolute; inset-block-start: 50%; transform: translateY(-50%);
    width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-2);
    background: rgba(255, 255, 255, .9); color: var(--txt); backdrop-filter: blur(8px);
    display: grid; place-items: center; font-size: 14px; z-index: 5;
    box-shadow: var(--shadow-soft);
    transition: background .2s ease, transform .2s ease;
}
.car-nav:hover { background: #fff; }
.car-nav.prev { inset-inline-start: -6px; }
.car-nav.next { inset-inline-end: -6px; }
[dir="rtl"] .car-nav i { transform: scaleX(-1); }
@media (max-width: 759px) { .car-nav { display: none; } }

/* ---------- Reel (videos) ---------- */
.reel { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: -20px; padding-inline: 20px; padding-block-end: 8px; scrollbar-width: none; }
.reel::-webkit-scrollbar { display: none; }
.reel-item { flex: 0 0 86%; scroll-snap-align: center; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line-2); background: #000; box-shadow: var(--shadow-raise); }
.reel-item:only-child { flex-basis: 100%; margin-inline: auto; }
.reel-item iframe { width: 100%; aspect-ratio: 16/9; border: 0; display: block; }
.reel-label { padding: 13px 16px; font-size: 13.5px; color: var(--muted); background: var(--panel); }

/* ---------- Testimonials (horizontal scroll) ---------- */
.tm-track {
    display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x proximity;
    margin-inline: -20px; padding-inline: 20px; padding-block: 6px 8px;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.tm-track::-webkit-scrollbar { display: none; }
.tm-card {
    flex: 0 0 84%; max-width: 380px; scroll-snap-align: center; position: relative;
    padding: 28px 24px 24px; border-radius: var(--r-lg);
    background: var(--panel); border: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
}
.tm-card:only-child { margin-inline: auto; }
.tm-mark { position: absolute; inset-block-start: 6px; inset-inline-end: 20px; font-family: var(--font-d); font-weight: 500; font-style: italic; font-size: 78px; line-height: 1; opacity: .16; color: var(--accent); }
.tm-stars { display: flex; gap: 3px; color: var(--accent); font-size: 13px; margin-block-end: 12px; }
.tm-text { font-family: var(--font-d); font-weight: 400; font-size: 16px; line-height: 1.6; color: var(--txt); font-style: italic; }
.tm-who { display: flex; align-items: center; gap: 12px; margin-block-start: 18px; }
.tm-who img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line-2); }
.tm-name { font-family: var(--font-b); font-weight: 700; font-size: 14px; }
.tm-sub { color: var(--dim); font-size: 12px; }

/* ---------- Info / links / iframes ---------- */
.link-grid { display: grid; gap: 10px; }
.link-card {
    display: flex; align-items: center; gap: 14px;
    padding: 16px 18px; border-radius: var(--r-md);
    background: var(--panel); border: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
    transition: transform .22s ease, border-color .22s ease;
}
.link-card:hover { transform: translateX(4px); border-color: var(--line-2); }
[dir="rtl"] .link-card:hover { transform: translateX(-4px); }
.link-ic { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-2); border: 1px solid var(--line); font-size: 16px; color: var(--accent); flex-shrink: 0; }
.link-label { font-weight: 700; font-size: 14.5px; }
.link-val { color: var(--muted); font-size: 12.5px; word-break: break-word; }
.link-arrow { margin-inline-start: auto; color: var(--dim); }
[dir="rtl"] .link-arrow i { transform: scaleX(-1); }
.iframe-wrap { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); margin-block-end: 12px; box-shadow: var(--shadow-soft); }
.iframe-wrap iframe { width: 100%; min-height: 320px; border: 0; display: block; }

/* ---------- Booking / forms ---------- */
.panel {
    position: relative; border-radius: var(--r-xl); padding: 28px 24px;
    background: var(--panel); border: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
}
.panel--soft {
    background: linear-gradient(170deg, var(--panel-2) 0%, var(--panel-soft) 100%);
}
.f-label { display: block; font-family: var(--font-b); font-size: 12px; font-weight: 700; letter-spacing: .05em; color: var(--muted); margin-block: 14px 7px; text-transform: uppercase; }
.f-input, select.f-input, textarea.f-input {
    width: 100%; padding: 14px 16px; border-radius: 14px;
    background: var(--bg); border: 1px solid var(--line-2);
    color: var(--txt); font-family: var(--font-b); font-size: 15px;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
    appearance: none; -webkit-appearance: none;
}
.f-input:focus { outline: none; border-color: var(--accent); background: var(--panel); box-shadow: 0 0 0 3px rgb(from var(--tk-primary, #9A7B5A) r g b / .16); }
.f-input::placeholder { color: var(--dim); }
select.f-input {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237A6F63' stroke-width='1.6' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: calc(100% - 16px) center;
    padding-inline-end: 42px;
    text-overflow: ellipsis;
}
[dir="rtl"] select.f-input { background-position: 16px center; }
select.f-input option { background: var(--panel); color: var(--txt); }
.grid-2f { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.alert-box { display: flex; align-items: center; gap: 10px; padding: 13px 16px; border-radius: 14px; font-size: 13.5px; margin-block-end: 14px; }
.alert-error { background: color-mix(in srgb, var(--tk-danger, #9A5A3C) 12%, #FFFFFF); border: 1px solid color-mix(in srgb, var(--tk-danger, #9A5A3C) 34%, #FFFFFF); color: var(--tk-danger, #9A5A3C); }
.alert-success { background: var(--sage); border: 1px solid var(--sage-deep); color: var(--tk-success, #4C6147); }

/* flatpickr warm skin */
.flatpickr-calendar { background: var(--panel) !important; border: 1px solid var(--line-2) !important; border-radius: 18px !important; box-shadow: var(--shadow-raise) !important; color: var(--txt) !important; }
.flatpickr-months, .flatpickr-weekdays { background: transparent !important; }
.flatpickr-month, .flatpickr-current-month .flatpickr-monthDropdown-months, .flatpickr-current-month input.cur-year, .flatpickr-weekday { color: var(--txt) !important; fill: var(--txt) !important; }
.flatpickr-day { color: var(--muted) !important; border-radius: 50% !important; }
.flatpickr-day:hover { background: var(--bg-2) !important; border-color: transparent !important; }
.flatpickr-day.selected { background: var(--accent) !important; border-color: var(--accent) !important; color: #fff !important; }
.flatpickr-day.flatpickr-disabled { color: var(--dim) !important; opacity: .5; }
.flatpickr-prev-month svg, .flatpickr-next-month svg { fill: var(--muted) !important; }

/* ---------- Hours ---------- */
.hour-row { display: flex; justify-content: space-between; align-items: center; padding-block: 11px; border-block-end: 1px solid var(--line); font-size: 14.5px; }
.hour-row:last-child { border-block-end: 0; }
.hour-day { color: var(--muted); font-weight: 600; }
.hour-row.today .hour-day, .hour-row.today .hour-time { color: var(--accent); font-weight: 700; }
.hour-24 { display: flex; align-items: center; gap: 10px; color: var(--accent); font-weight: 700; font-size: 15px; }

/* ---------- Map ---------- */
.map-wrap { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-soft); }
.map-wrap iframe { width: 100%; height: 280px; border: 0; display: block; }

/* ---------- Payments ---------- */
.pay-grid { display: grid; gap: 12px; }
.pay-card { padding: 18px; border-radius: var(--r-md); background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow-soft); }
.pay-label { font-family: var(--font-d); font-weight: 500; font-size: 15px; margin-block-end: 6px; }
.pay-val { color: var(--muted); font-size: 13.5px; word-break: break-all; }
.pay-img { border-radius: var(--r-sm); max-height: 220px; margin-inline: auto; }

/* ---------- Socials + footer (centered flex) ---------- */
.soc-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.soc-item {
    display: flex; flex-direction: column; align-items: center; gap: 9px;
    flex: 0 1 106px; min-width: 94px;
    padding: 18px 8px; border-radius: var(--r-md);
    background: var(--panel); border: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
    font-size: 12px; color: var(--muted); font-weight: 600;
    transition: transform .22s var(--ease), border-color .22s ease, color .22s ease;
}
.soc-item i { font-size: 22px; color: var(--accent); transition: color .22s ease; }
.soc-item:hover { transform: translateY(-3px); border-color: var(--line-2); color: var(--txt); }
.footer { text-align: center; padding-block: 34px 10px; color: var(--dim); font-size: 12.5px; }
.footer a { color: var(--muted); }

/* ---------- Floating action dock ---------- */
.dock {
    position: fixed; inset-block-end: 0; inset-inline: 0; z-index: 70;
    display: flex; justify-content: center;
    padding-block-end: calc(10px + env(safe-area-inset-bottom));
    pointer-events: none;
    transition: transform .35s var(--ease);
}
.dock.dock-hide { transform: translateY(120%); }
.dock-inner {
    pointer-events: auto;
    display: flex; align-items: center; gap: 4px;
    padding: 8px 12px; border-radius: 28px;
    background: rgba(255, 255, 255, .92);
    border: 1px solid var(--line-2);
    backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
    box-shadow: var(--shadow-raise);
}
.dock-btn {
    display: flex; flex-direction: column; align-items: center; gap: 3px;
    min-width: 58px; padding: 8px 6px; border: 0; background: transparent;
    color: var(--muted); font-size: 10.5px; font-weight: 700; border-radius: 16px;
    transition: color .2s ease, background .2s ease;
}
.dock-btn i { font-size: 17px; }
.dock-btn:hover, .dock-btn:focus-visible { color: var(--txt); background: var(--bg-2); }
.dock-btn.dock-main {
    background: var(--accent); color: #fff; border-radius: 20px;
    min-width: 64px; padding-block: 10px;
    box-shadow: 0 12px 26px -10px var(--glow);
    transform: translateY(-10px);
}

/* ---------- Modals ---------- */
.pm-overlay {
    position: fixed; inset: 0; z-index: 90;
    display: flex; align-items: flex-end; justify-content: center;
    background: rgb(from var(--tk-text, #2C2620) r g b / .5); backdrop-filter: blur(6px);
    opacity: 0; transition: opacity .3s ease; padding: 16px;
}
.pm-overlay.show { opacity: 1; }
.pm-box {
    position: relative;
    width: 100%; max-width: 480px; max-height: 86vh; overflow-y: auto;
    border-radius: var(--r-xl); padding: 28px 24px;
    background: var(--panel); border: 1px solid var(--line-2);
    box-shadow: var(--shadow-raise);
    transform: translateY(32px); transition: transform .35s var(--ease);
}
.pm-overlay.show .pm-box { transform: none; }
.pm-title { font-family: var(--font-d); font-size: 22px; font-weight: 500; letter-spacing: -.01em; }
.pm-sub { color: var(--muted); font-size: 14px; margin-block-start: 5px; }
.pm-close { position: absolute; inset-block-start: 18px; inset-inline-end: 18px; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--bg); color: var(--muted); display: grid; place-items: center; }
.pm-head { position: relative; margin-block-end: 8px; }
.pm-actions { display: flex; gap: 10px; margin-block-start: 20px; }
.pm-actions .btn-ghost, .pm-actions .btn-primary { flex: 1; justify-content: center; }
.qr-wrap { display: grid; place-items: center; padding: 18px; background: #fff; border-radius: 18px; width: fit-content; margin: 18px auto; border: 1px solid var(--line); }
.share-row { display: flex; justify-content: center; gap: 12px; margin-block: 16px; }
.share-row a { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-2); border: 1px solid var(--line-2); font-size: 17px; color: var(--accent); transition: transform .2s ease, background .2s ease; }
.share-row a:hover { transform: translateY(-3px); background: var(--sage); }

@media (min-width: 480px) {
    .pm-overlay { align-items: center; }
}

/* ---------- Desktop ---------- */
@media (min-width: 760px) {
    .haven-wrap { max-width: 960px; }
    .sec { padding-block: 60px; }
    .hero { padding-block: 70px 36px; display: grid; grid-template-columns: 1.35fr 1fr; gap: 44px; align-items: center; }
    .hero-visual { display: block; }
    .help-grid { grid-template-columns: repeat(2, 1fr); }
    .svc-grid { grid-template-columns: repeat(2, 1fr); }
    .pkg-grid { grid-template-columns: repeat(3, 1fr); }
    .pkg-card.is-featured { transform: scale(1.02); }
    .reel-item { flex-basis: 56%; }
    .reel-item:only-child { flex-basis: 72%; max-width: 760px; }
    .tm-card { flex-basis: 44%; }
    .tm-card:only-child { flex-basis: 60%; }
    .soc-item { flex-basis: 138px; }
    .car-item { flex-basis: 34%; }
}

/* ---------- Reduced motion (kill layer) ---------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .fx-wash, .breathe, .hero-chip .dot { animation: none !important; }
    .breathe { transform: scale(1); opacity: .78; }
    .rv { opacity: 1; transform: none; transition: none; }
    .hero-load { opacity: 1 !important; transform: none !important; animation: none !important; }
    .faq-a { transition: none; }
}


/* ============================================================
   GLOBAL CONTAINMENT BASELINE — overflow-x:clip on html is
   sticky-safe (unlike hidden) and stops horizontal pan;
   overscroll-behavior-x:none kills the rubber-band; max-width
   + min-width:0 prevent any child forcing the doc wider.
   ============================================================ */
html { overflow-x: clip; }
body { overflow-x: clip; overscroll-behavior-x: none; max-width: 100%; }
.car-track, .reel, .tm-track, .pill-row,
[class*="-track"], [class*="-rail"], [class*="-carousel"], [class*="-scroll"] {
    overscroll-behavior-x: contain;
    max-width: 100vw;
}

/* ============================================================
   Shared visitor review widget (templates.partials._review-form)
   ships an inline brand color (review_button_color, default sky
   blue). Force it into Haven's clay accent so it can never read
   as off-palette neon — !important beats the inline style.
   Also soften its corners + shadow to match the theme.
   ============================================================ */
.scaan-review-btn {
    background: var(--accent) !important;
    color: #fff !important;
    border: 0 !important;
    border-radius: 999px !important;
    font-family: var(--font-b) !important;
    font-weight: 700 !important;
    box-shadow: var(--shadow-soft) !important;
}
.scaan-review-submit { background: var(--accent) !important; border-radius: 12px !important; font-family: var(--font-b) !important; }
#scaanReviewModal .scaan-review-modal,
#scaanReviewModal > div { border-radius: var(--r-lg) !important; }
