/* ============================================================
   PIPEWORKS — Plumber / Drainage trade vCard
   Next-gen ScaanMe theme · steel-graphite, copper-and-steel
   Design system: industrial confidence, clip-corner cards,
   utility-blue single accent + copper icon accent.
   Signature: "water-drop ripple" — one CTA drop emits an
   expanding ring every 3s (the emergency-call pulse).
   Mobile-first · RTL-safe (logical properties) · reduced-motion aware
   ============================================================ */

:root {
    --bg: var(--tk-bg, #10161C);          /* steel-graphite, dark-first */
    --bg-2: color-mix(in srgb, var(--tk-bg, #10161C) 78%, #000);        /* deeper trench */
    --panel: color-mix(in srgb, var(--tk-bg, #10161C) 88%, #fff);       /* primary surface */
    /* layered surfaces — distinct elevation tiers, not one flat fill */
    --panel-2: color-mix(in srgb, var(--tk-bg, #10161C) 80%, #fff);
    --panel-3: rgb(from var(--tk-bg, #10161C) r g b / .72);
    --line: rgb(from var(--tk-primary, #2F7CE0) r g b / .18);     /* utility-blue hairline */
    --line-2: rgb(from var(--tk-text, #ECF1F5) r g b / .22);  /* neutral steel hairline */
    --txt: var(--tk-text, #ECF1F5);
    --muted: color-mix(in srgb, var(--tk-text, #ECF1F5) 60%, var(--tk-bg, #10161C));
    --dim: color-mix(in srgb, var(--tk-text, #ECF1F5) 38%, var(--tk-bg, #10161C));
    --accent: var(--tk-primary, #2F7CE0);      /* utility-blue — the single solid accent */
    --accent-2: color-mix(in srgb, var(--tk-primary, #2F7CE0) 72%, #fff);    /* lighter blue for highlights */
    --copper: var(--tk-secondary, #C0763A);      /* secondary trade accent — icons only */
    --copper-2: color-mix(in srgb, var(--tk-secondary, #C0763A) 78%, #fff);
    --ok: var(--tk-success, #46C28A);          /* available / instock */
    /* ONE signature gradient — spent on hero word, primary CTA, dock-main, featured badge */
    --grad: linear-gradient(135deg, var(--tk-primary, #2F7CE0) 0%, color-mix(in srgb, var(--tk-primary, #2F7CE0) 72%, #fff) 100%);
    --grad-head: linear-gradient(100deg, var(--tk-text, #ECF1F5) 0%, color-mix(in srgb, var(--tk-primary, #2F7CE0) 55%, #fff) 55%, color-mix(in srgb, var(--tk-primary, #2F7CE0) 72%, #fff) 100%);
    --glow: rgb(from var(--tk-primary, #2F7CE0) r g b / .45);
    --glow-soft: rgb(from var(--tk-primary, #2F7CE0) r g b / .28);
    --r-lg: 18px;
    --r-md: 13px;
    --r-sm: 9px;
    --clip: 14px;           /* the clip-corner notch — ownable card geometry */
    /* Archivo Expanded = industrial wide display; Inter = body; Cairo = Arabic sibling */
    --font-d: var(--tk-font-header, 'Archivo Expanded'), 'Archivo', 'Cairo', system-ui, sans-serif;
    --font-b: var(--tk-font-content, 'Inter'), 'Cairo', system-ui, 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.62;
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
    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); color: #fff; }

/* ---------- Ambient background system (CSS-only, reduced-motion killed) ---------- */
.fx { position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
.fx::before { /* blueprint grid — the trade "plan sheet" texture */
    content: ""; position: absolute; inset: 0; opacity: .5;
    background-image:
        linear-gradient(rgb(from var(--tk-primary, #2F7CE0) r g b / .05) 1px, transparent 1px),
        linear-gradient(90deg, rgb(from var(--tk-primary, #2F7CE0) r g b / .05) 1px, transparent 1px);
    background-size: 44px 44px;
    -webkit-mask-image: radial-gradient(110% 80% at 50% 0%, #000 18%, transparent 78%);
            mask-image: radial-gradient(110% 80% at 50% 0%, #000 18%, transparent 78%);
}
.fx-glow { position: absolute; border-radius: 50%; filter: blur(96px); opacity: .26; will-change: transform; }
.fx-glow.g1 { width: 60vw; height: 60vw; max-width: 640px; max-height: 640px; background: var(--accent); inset-block-start: -16%; inset-inline-start: -20%; animation: drift1 32s ease-in-out infinite alternate; }
.fx-glow.g2 { width: 46vw; height: 46vw; max-width: 520px; max-height: 520px; background: var(--copper); inset-block-end: 4%; inset-inline-end: -22%; opacity: .14; animation: drift2 40s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate(12vw, 8vh) scale(1.1); } }
@keyframes drift2 { to { transform: translate(-10vw, -6vh) scale(.92); } }

/* ---------- Layout ---------- */
.pipe-wrap { max-width: 720px; margin-inline: auto; padding-inline: 20px; padding-block-end: calc(var(--dock-h) + 28px); }
.sec { padding-block: 48px; }
.sec-head { margin-block-end: 26px; }
.kicker {
    display: inline-flex; align-items: center; gap: 9px;
    font-family: var(--font-d); font-size: 11px; font-weight: 700;
    letter-spacing: .2em; text-transform: uppercase; color: var(--accent-2);
}
.kicker::before { content: ""; width: 24px; height: 2px; border-radius: 2px; background: var(--copper); }
/* heavier, wider display scale — real industrial jump above body */
.sec-title { font-family: var(--font-d); font-size: clamp(1.85rem, 6.2vw, 2.5rem); font-weight: 700; letter-spacing: -.01em; line-height: 1.06; margin-block-start: 11px; }
.sec-sub { color: var(--muted); font-size: 15px; line-height: 1.6; margin-block-start: 10px; max-width: 52ch; }

/* ---------- Reveal choreography (scroll) ---------- */
.rv { opacity: 0; transform: translateY(24px); transition: opacity .65s var(--ease), transform .65s var(--ease); }
.rv.in { opacity: 1; transform: none; }
.rv-d1 { transition-delay: .08s; } .rv-d2 { transition-delay: .16s; } .rv-d3 { transition-delay: .24s; }

/* ---------- Hero page-load sequence (orchestrated, once on load) ---------- */
.hero-load { opacity: 0; transform: translateY(20px); animation: heroIn .8s var(--ease) forwards; }
.hl-1 { animation-delay: .05s; }
.hl-2 { animation-delay: .14s; }
.hl-3 { animation-delay: .24s; }
.hl-4 { animation-delay: .40s; }
.hl-5 { animation-delay: .52s; }
@keyframes heroIn { from { opacity: 0; transform: translateY(20px); } 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, #10161C) r g b / .7);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-block-end: 1px solid var(--line);
}
.topbar-avatar { width: 38px; height: 38px; border-radius: 11px; object-fit: cover; border: 1px solid var(--line-2); }
.topbar-name { font-family: var(--font-d); font-weight: 700; font-size: 14.5px; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-spacer { flex: 1; }

/* ---------- Hero (typographic statement) ---------- */
.hero { padding-block: 44px 28px; position: relative; }
.hero-chip {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 7px 14px; border-radius: 999px;
    background: var(--panel); border: 1px solid var(--line-2);
    font-size: 12.5px; font-weight: 600; color: var(--txt);
}
.hero-chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgb(from var(--tk-success, #46C28A) r g b / .55); animation: pulse-dot 2.4s ease-out infinite; }
@keyframes pulse-dot { 70% { box-shadow: 0 0 0 8px rgb(from var(--tk-success, #46C28A) r g b / 0); } 100% { box-shadow: 0 0 0 0 rgb(from var(--tk-success, #46C28A) r g b / 0); } }
.hero-chip.is-247 { color: var(--copper-2); }
.hero-chip.is-247 .dot { background: var(--copper); box-shadow: 0 0 0 0 rgb(from var(--tk-secondary, #C0763A) r g b / .55); animation: pulse-dot-c 2.4s ease-out infinite; }
@keyframes pulse-dot-c { 70% { box-shadow: 0 0 0 8px rgb(from var(--tk-secondary, #C0763A) r g b / 0); } 100% { box-shadow: 0 0 0 0 rgb(from var(--tk-secondary, #C0763A) r g b / 0); } }
.hero-chips { display: flex; flex-wrap: wrap; gap: 9px; }

/* brand name — wide eyebrow so the tagline owns the hero */
.hero-brand {
    margin-block-start: 22px;
    font-family: var(--font-d); font-weight: 600; font-size: clamp(1rem, 4vw, 1.35rem);
    letter-spacing: .04em; line-height: 1; color: var(--muted);
    display: flex; align-items: center; gap: 12px; text-transform: uppercase;
}
.hero-brand::after { content: ""; flex: 0 0 32px; height: 1px; background: linear-gradient(90deg, var(--line-2), transparent); }
[dir="rtl"] .hero-brand::after { background: linear-gradient(270deg, var(--line-2), transparent); }

.hero-title {
    font-family: var(--font-d);
    font-size: clamp(2.5rem, 11vw, 4.3rem);
    font-weight: 700; letter-spacing: -.02em; line-height: 1.0;
    margin-block-start: 10px; text-wrap: balance;
}
.hero-title .grad-word {
    background: var(--grad-head);
    -webkit-background-clip: text; background-clip: text; color: transparent;
    filter: drop-shadow(0 4px 26px rgb(from var(--tk-primary, #2F7CE0) r g b / .22));
}
.hero-desc { margin-block-start: 16px; color: var(--muted); font-size: 15.5px; max-width: 56ch; }
.hero-desc p { margin-block-end: .6em; }

.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-block-start: 24px; }

/* ---------- Buttons ---------- */
.btn-primary {
    position: relative; display: inline-flex; align-items: center; gap: 9px;
    padding: 15px 26px; border: 0; border-radius: var(--r-md);
    background: var(--grad);
    color: #fff; font-family: var(--font-d); font-weight: 700; font-size: 14.5px;
    letter-spacing: .005em;
    box-shadow: 0 8px 28px -6px var(--glow);
    transition: transform .25s ease, box-shadow .25s ease; overflow: hidden;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--clip)), calc(100% - var(--clip)) 100%, 0 100%);
}
.btn-primary::after { /* shine sweep */
    content: ""; position: absolute; inset-block: 0; inset-inline-start: -60%;
    width: 40%; transform: skewX(-18deg);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .3), transparent);
    transition: inset-inline-start .6s ease;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 38px -6px var(--glow); }
.btn-primary:hover::after { inset-inline-start: 120%; }
.btn-primary:active { transform: translateY(0) scale(.98); }

.btn-ghost {
    display: inline-flex; align-items: center; gap: 9px;
    padding: 15px 24px; border-radius: var(--r-md);
    background: var(--panel); border: 1px solid var(--line-2);
    color: var(--txt); font-family: var(--font-d); 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); }

/* ---------- Emergency call dock (the conversion engine) ---------- */
/* The water-drop ripple lives here: one element emits an expanding ring every 3s */
.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: 20px;
    max-width: calc(100vw - 24px);
    background: rgb(from color-mix(in srgb, var(--tk-bg, #10161C) 78%, #000) r g b / .82);
    border: 1px solid var(--line-2);
    backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 18px 50px -12px rgba(0, 0, 0, .7);
}
.dock-btn {
    display: flex; flex-direction: column; align-items: center; gap: 3px;
    min-width: 0; flex: 1 1 auto; padding: 8px 6px; border: 0; background: transparent;
    color: var(--muted); font-size: 10.5px; font-weight: 600; border-radius: 12px;
    white-space: nowrap;
    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(--panel-2); }
.dock-btn.dock-main {
    position: relative;
    background: var(--grad); color: #fff; border-radius: 16px;
    flex: 1.4 1 auto; padding-block: 11px; padding-inline: 10px;
    box-shadow: 0 10px 26px -8px var(--glow);
    transform: translateY(-10px);
    overflow: visible;
}
/* === SIGNATURE: water-drop ripple — one expanding ring every 3s === */
.dock-main .drop-ring {
    content: ""; position: absolute; inset: 0; border-radius: inherit;
    border: 2px solid var(--accent-2);
    opacity: 0; pointer-events: none;
    animation: drop-ripple 3s var(--ease) infinite;
}
@keyframes drop-ripple {
    0%   { transform: scale(1); opacity: .55; }
    70%  { transform: scale(1.65); opacity: 0; }
    100% { transform: scale(1.65); opacity: 0; }
}

/* ---------- Trust trio (Licensed / Upfront pricing / Same-day) ---------- */
.trust-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-block-start: 28px; }
.trust-chip {
    display: inline-flex; align-items: center; gap: 9px;
    flex: 0 1 auto;
    padding: 11px 16px; border-radius: 999px;
    background: var(--panel); border: 1px solid var(--line-2);
    color: var(--txt); font-size: 13px; font-weight: 600;
}
.trust-chip i { font-size: 15px; color: var(--copper); }

/* ---------- By-the-numbers stat strip (owner text fields) ---------- */
.sec-stats { padding-block: 8px 40px; }
.stat-strip {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 12px;
}
.stat-cell {
    flex: 1 1 130px; min-width: 124px; max-width: 200px;
    position: relative; isolation: isolate;
    padding: 18px 16px 16px;
    background: var(--panel); border: 1px solid var(--line-2);
    border-radius: var(--r-md);
    /* clip-corner notch — ownable geometry */
    clip-path: polygon(0 0, calc(100% - var(--clip)) 0, 100% var(--clip), 100% 100%, 0 100%);
    /* two elevation tiers: catch-light top border + soft shadow */
    box-shadow: inset 0 1px 0 rgb(from var(--tk-text, #ECF1F5) r g b / .05), 0 10px 28px rgba(0, 0, 0, .28);
    text-align: center;
}
.stat-cell::before {
    content: ""; position: absolute; inset-block-start: 0; inset-inline-start: 0;
    width: 30px; height: 2px; border-radius: 2px; background: var(--copper);
}
.stat-fig {
    display: block; font-family: var(--font-d); font-weight: 700;
    font-size: clamp(1.5rem, 6vw, 2rem); line-height: 1; letter-spacing: -.01em;
    color: var(--accent-2);
    unicode-bidi: isolate;
}
.stat-lbl {
    display: block; margin-block-start: 7px;
    font-size: 11.5px; font-weight: 600; letter-spacing: .04em;
    text-transform: uppercase; color: var(--muted); line-height: 1.3;
}

/* ---------- Quick actions (centered flex) ---------- */
.qa-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-block-start: 28px; }
.qa-item {
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    flex: 0 1 110px; min-width: 92px;
    padding: 16px 6px; border-radius: var(--r-md);
    background: var(--panel); border: 1px solid var(--line);
    color: var(--muted); font-size: 12px; font-weight: 600;
    transition: transform .22s ease, border-color .22s ease, color .22s ease;
}
.qa-item i { font-size: 19px; color: var(--accent-2); }
.qa-item:hover { transform: translateY(-3px); border-color: var(--accent); color: var(--txt); }

/* ---------- Services grid (clip-corner cards + left blue rule that fills on hover) ---------- */
.svc-grid { display: grid; gap: 16px; counter-reset: svc; }
.svc-card {
    position: relative; padding: 24px 22px 20px;
    background: linear-gradient(165deg, var(--panel-2), var(--panel));
    border: 1px solid var(--line-2);
    box-shadow: 0 18px 44px -34px rgba(0, 0, 0, .9);
    transition: transform .3s var(--ease), border-color .3s ease, box-shadow .3s ease;
    overflow: hidden;
    /* clip-corner notch — the ownable card geometry */
    clip-path: polygon(0 0, calc(100% - var(--clip)) 0, 100% var(--clip), 100% 100%, 0 100%);
}
.svc-card::before { /* left rule — fills on hover (signature interaction) */
    content: ""; position: absolute; inset-block: 0; inset-inline-start: 0;
    width: 3px; background: var(--accent);
    transform: scaleY(.18); transform-origin: top;
    transition: transform .4s var(--ease);
}
[dir="rtl"] .svc-card::before { transform-origin: top; }
.svc-card::after { /* index number watermark — oversized + clipped */
    counter-increment: svc; content: "0" counter(svc);
    position: absolute; inset-block-start: -8px; inset-inline-end: 14px;
    font-family: var(--font-d); font-size: 72px; font-weight: 700; letter-spacing: -.04em; line-height: 1;
    color: transparent; -webkit-text-stroke: 1.4px rgb(from var(--tk-text, #ECF1F5) r g b / .12);
    pointer-events: none;
}
.svc-card:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: 0 28px 60px -24px var(--glow); }
.svc-card:hover::before { transform: scaleY(1); }
.svc-card:hover::after { -webkit-text-stroke-color: rgb(from var(--tk-primary, #2F7CE0) r g b / .3); }
.svc-head { display: flex; align-items: center; gap: 14px; margin-block-end: 12px; }
.svc-icon {
    position: relative; width: 50px; height: 50px; border-radius: 13px; flex-shrink: 0;
    display: grid; place-items: center; font-size: 20px; color: var(--copper-2);
    background: rgb(from var(--tk-secondary, #C0763A) r g b / .12); border: 1px solid rgb(from var(--tk-secondary, #C0763A) r g b / .3);
}
.svc-icon img { width: 100%; height: 100%; object-fit: cover; border-radius: 13px; }
.svc-name { font-family: var(--font-d); font-size: 18px; font-weight: 700; letter-spacing: -.01em; line-height: 1.2; }
.svc-desc { color: var(--muted); font-size: 14.5px; line-height: 1.58; }
.svc-cta { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; margin-block-start: 16px; padding-block-start: 15px; 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-d); font-size: 13px; font-weight: 700; letter-spacing: .01em;
    color: var(--accent-2);
    transition: gap .2s ease;
}
.btn-mini i { color: var(--accent-2); font-size: 12px; }
.btn-mini:hover { gap: 12px; }
/* RTL: flip the forward "→" arrow so it points to the reading-direction end (brand icons untouched) */
[dir="rtl"] .btn-mini .fa-arrow-right { transform: scaleX(-1); }

/* ---------- Packages (products as pricing) ---------- */
.pkg-grid { display: grid; gap: 16px; }
.pkg-card {
    position: relative; border-radius: var(--r-lg); padding: 24px;
    background: var(--panel); border: 1px solid var(--line-2);
    transition: transform .3s var(--ease), border-color .3s ease;
}
.pkg-card:hover { transform: translateY(-4px); border-color: var(--accent); }
.pkg-card.is-featured {
    background: linear-gradient(var(--panel), var(--panel)) padding-box, var(--grad) border-box;
    border: 1.5px solid transparent;
    box-shadow: 0 24px 56px -22px var(--glow);
}
.pkg-badge {
    position: absolute; inset-block-start: -11px; inset-inline-start: 22px;
    padding: 4px 14px; border-radius: 999px; font-family: var(--font-d);
    font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
    background: var(--grad); 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: 18px; font-weight: 700; }
.pkg-desc { color: var(--muted); font-size: 14px; margin-block-start: 6px; }
.pkg-price-row { display: flex; align-items: baseline; gap: 10px; margin-block-start: 16px; }
.pkg-price { font-family: var(--font-d); font-size: 26px; font-weight: 700; letter-spacing: -.01em; }
.pkg-price-old { color: var(--dim); font-size: 15px; text-decoration: line-through; }
.pkg-stock { font-size: 12px; font-weight: 700; margin-block-start: 4px; }
.pkg-stock.ok { color: var(--ok); }
.pkg-stock.out { color: var(--copper-2); }
.pkg-card .btn-primary { width: 100%; justify-content: center; margin-block-start: 18px; padding-block: 13px; }

/* ---------- 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-md); overflow: hidden;
    border: 1px solid var(--line-2); aspect-ratio: 4/3; background: var(--bg-2);
}
.car-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.car-item:hover img { transform: scale(1.05); }
.mas-cap {
    position: absolute; inset-block-end: 0; inset-inline: 0;
    padding: 26px 14px 12px; font-size: 12.5px; font-weight: 600; color: #fff;
    background: linear-gradient(transparent, rgb(from color-mix(in srgb, var(--tk-bg, #10161C) 70%, #000) r g b / .88));
}
.car-nav {
    position: absolute; inset-block-start: 50%; transform: translateY(-50%);
    width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2);
    background: rgb(from var(--tk-bg, #10161C) r g b / .85); color: var(--txt); backdrop-filter: blur(8px);
    display: grid; place-items: center; font-size: 14px; z-index: 5;
    transition: background .2s ease, border-color .2s ease;
}
.car-nav:hover { background: var(--panel-2); border-color: var(--accent); }
.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-md); overflow: hidden; border: 1px solid var(--line-2); background: #000; box-shadow: 0 24px 56px -32px var(--glow); }
.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: 13px; color: var(--muted); background: var(--bg-2); }

/* ---------- Reviews (testimonials — horizontal scroll bar) ---------- */
.tm-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;
}
.tm-track::-webkit-scrollbar { display: none; }
.tm-card { flex: 0 0 84%; max-width: 380px; scroll-snap-align: center; position: relative; padding: 26px 22px 22px; border-radius: var(--r-lg); background: linear-gradient(165deg, var(--panel-2), var(--panel)); border: 1px solid var(--line-2); box-shadow: 0 14px 34px -26px rgba(0, 0, 0, .9); }
.tm-card:only-child { margin-inline: auto; }
.tm-mark { position: absolute; inset-block-start: 8px; inset-inline-end: 18px; font-family: var(--font-d); font-weight: 700; font-size: 70px; line-height: 1; opacity: .14; color: var(--accent); }
.tm-stars { display: flex; gap: 3px; color: var(--copper-2); font-size: 13px; margin-block-end: 12px; }
.tm-text { font-size: 14.5px; color: var(--txt); }
.tm-who { display: flex; align-items: center; gap: 12px; margin-block-start: 16px; }
.tm-who img { width: 42px; height: 42px; border-radius: 11px; object-fit: cover; border: 1px solid var(--line-2); }
.tm-name { font-family: var(--font-d); 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);
    transition: transform .22s ease, border-color .22s ease;
}
.link-card:hover { transform: translateX(4px); border-color: var(--accent); }
[dir="rtl"] .link-card:hover { transform: translateX(-4px); }
.link-ic { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; background: var(--panel-2); border: 1px solid var(--line); font-size: 16px; color: var(--accent-2); flex-shrink: 0; }
.link-label { font-weight: 700; font-size: 14px; font-family: var(--font-d); }
.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-md); overflow: hidden; border: 1px solid var(--line-2); margin-block-end: 12px; }
.iframe-wrap iframe { width: 100%; min-height: 320px; border: 0; display: block; }

/* ---------- Booking / forms (panels) ---------- */
.panel {
    position: relative; border-radius: var(--r-lg); padding: 26px 22px;
    background: linear-gradient(165deg, var(--panel-2), var(--panel));
    border: 1px solid var(--line-2);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04), 0 22px 50px -36px rgba(0, 0, 0, .95);
}
.f-label { display: block; font-family: var(--font-d); font-size: 12px; font-weight: 700; letter-spacing: .03em; 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: 11px;
    background: var(--bg-2); 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;
    appearance: none; -webkit-appearance: none;
}
.f-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgb(from var(--tk-primary, #2F7CE0) r g b / .22); }
.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='%238DA0B0' 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(--bg-2); 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: 11px; font-size: 13.5px; margin-block-end: 14px; }
.alert-error { background: rgb(from var(--tk-secondary, #C0763A) r g b / .12); border: 1px solid rgb(from var(--tk-secondary, #C0763A) r g b / .4); color: var(--copper-2); }
.alert-success { background: rgb(from var(--tk-success, #46C28A) r g b / .1); border: 1px solid rgb(from var(--tk-success, #46C28A) r g b / .35); color: var(--ok); }

/* flatpickr dark skin */
.flatpickr-calendar { background: var(--panel) !important; border: 1px solid var(--line-2) !important; border-radius: 14px !important; box-shadow: 0 24px 60px -16px rgba(0, 0, 0, .7) !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: 9px !important; }
.flatpickr-day:hover { background: var(--panel-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: rgb(from var(--tk-text, #ECF1F5) r g b / .2) !important; }
.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: 14px; }
.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-2); font-weight: 700; }
.hour-24 { display: flex; align-items: center; gap: 10px; color: var(--ok); font-weight: 700; font-size: 15px; }

/* ---------- Map (service-area) ---------- */
.map-wrap { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line-2); }
.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); }
.pay-label { font-family: var(--font-d); font-weight: 700; font-size: 14px; 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 108px; min-width: 96px;
    padding: 18px 8px; border-radius: var(--r-md);
    background: var(--panel); border: 1px solid var(--line);
    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-2); transition: color .22s ease; }
.soc-item:hover { transform: translateY(-3px); border-color: var(--accent); color: var(--txt); }
.soc-item:hover i { color: var(--accent); }
.footer { text-align: center; padding-block: 34px 10px; color: var(--dim); font-size: 12.5px; }
.footer a { color: var(--muted); }

/* ---------- Modals ---------- */
.pm-overlay {
    position: fixed; inset: 0; z-index: 90;
    display: flex; align-items: flex-end; justify-content: center;
    background: rgb(from color-mix(in srgb, var(--tk-bg, #10161C) 70%, #000) r g b / .72); backdrop-filter: blur(7px);
    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: 20px; padding: 26px 22px;
    background: var(--panel); border: 1px solid var(--line-2);
    transform: translateY(34px); transition: transform .35s var(--ease);
}
.pm-overlay.show .pm-box { transform: none; }
.pm-title { font-family: var(--font-d); font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
.pm-sub { color: var(--muted); font-size: 13.5px; margin-block-start: 4px; }
.pm-close { position: absolute; inset-block-start: 18px; inset-inline-end: 18px; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--panel-2); color: var(--muted); }
.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: 16px; width: fit-content; margin: 18px auto; }
.share-row { display: flex; justify-content: center; gap: 12px; margin-block: 16px; }
.share-row a { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: var(--panel-2); border: 1px solid var(--line-2); font-size: 17px; color: var(--txt); transition: transform .2s ease; }
.share-row a:hover { transform: translateY(-3px); }

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

/* ---------- Hero visual card (desktop) ---------- */
.hero-visual { display: none; position: relative; }
.hv-card {
    position: relative; border-radius: 22px; overflow: hidden;
    border: 1px solid var(--line-2);
    box-shadow: 0 30px 76px -26px var(--glow);
    transition: transform .4s var(--ease);
    clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%);
}
.hv-card:hover { transform: scale(1.02); }
.hv-card img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.hv-glow { position: absolute; inset: -28px; background: var(--grad); filter: blur(64px); opacity: .22; z-index: -1; border-radius: 50%; }

/* ---------- Desktop ---------- */
@media (min-width: 760px) {
    .pipe-wrap { max-width: 980px; }
    .sec { padding-block: 62px; }
    .hero { padding-block: 76px 38px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; }
    .hero-visual { display: block; }
    .svc-grid { grid-template-columns: repeat(2, 1fr); }
    .pkg-grid { grid-template-columns: repeat(3, 1fr); }
    .reel-item { flex-basis: 56%; }
    .reel-item:only-child { flex-basis: 72%; max-width: 760px; }
    .tm-card { flex-basis: 42%; }
    .tm-card:only-child { flex-basis: 60%; }
    .soc-item { flex-basis: 140px; }
    .qa-item { flex-basis: 200px; }
    .car-item { flex-basis: 32%; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .fx-glow, .hero-chip .dot, .dock-main .drop-ring { animation: none !important; }
    .dock-main .drop-ring { display: none; }
    .rv { opacity: 1; transform: none; transition: none; }
    .hero-load { opacity: 1 !important; transform: none !important; animation: none !important; }
    .svc-card::before { transform: scaleY(1); }
    .btn-primary::after { display: none; }
}

/* ============================================================
   GLOBAL CONTAINMENT BASELINE — overflow-x:clip is sticky-safe
   (unlike hidden), stops the horizontal pan; overscroll-behavior-x:none
   kills the rubber-band; max-width:100% prevents children forcing
   the document wider than the viewport.
   ============================================================ */
html { overflow-x: clip; }
body { overflow-x: clip; overscroll-behavior-x: none; max-width: 100%; }
.car-track, .reel, .tm-track,
[class*="-track"], [class*="-rail"], [class*="-carousel"], [class*="-scroll"] {
    overscroll-behavior-x: contain;
    max-width: 100vw;
}
