/* ==========================================================================
   Cool & Fix — "cool air meets warm steel"
   Petrol-teal (cooling) + amber (the fix) on warm paper. Rubik throughout
   (Hebrew + Cyrillic + Latin). Mobile-first, RTL-aware via logical properties.
   ========================================================================== */

:root {
    --bg:        #FBF6EE;   /* warm paper */
    --card:      #FFFFFF;
    --ink:       #15292B;   /* deep teal-black */
    --ink-soft:  #4C5E60;
    --cool:      #0E8088;   /* AC teal */
    --cool-deep: #0A565D;
    --cool-tint: #E4F2F1;   /* selected / highlight */
    --warm:      #F2862B;   /* the "fix" amber */
    --warm-deep: #C9650F;
    --warm-tint: #FCEEDD;
    --line:      #E7DDCD;   /* warm hairline */
    --line-cool: #CFE4E3;
    --wa:        #25D366;
    --ok:        #1B7A57;
    --ok-tint:   #DCF3E8;
    --err:       #C5443B;
    --err-tint:  #FBE3E0;
    --radius:    16px;
    --shadow:    0 1px 2px rgba(21,41,43,.05), 0 10px 30px -16px rgba(21,41,43,.18);
}

* { box-sizing: border-box; }

body {
    font-family: 'Rubik', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    margin: 0;
    background:
        radial-gradient(1100px 420px at 100% -8%, var(--warm-tint), transparent 60%),
        radial-gradient(900px 360px at -5% 0%, var(--cool-tint), transparent 55%),
        var(--bg);
    color: var(--ink);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.container { max-width: 720px; margin: 0 auto; padding: 1.1rem; }

h1, h2, h3, h4 { line-height: 1.18; letter-spacing: -0.015em; }
h2 { font-size: 1.5rem; font-weight: 700; margin: 0 0 .35rem; }
h3 { font-size: 1.12rem; font-weight: 700; margin: 1.6rem 0 .6rem; }
h4 { font-size: .95rem; font-weight: 700; margin: 1.1rem 0 .55rem; color: var(--cool-deep); }
a { color: var(--cool-deep); }

/* -------------------------------------------------------------- Header */
header {
    position: relative;
    color: #fff;
    background:
        repeating-linear-gradient(115deg, rgba(255,255,255,.06) 0 2px, transparent 2px 13px),
        linear-gradient(135deg, var(--cool) 0%, var(--cool-deep) 100%);
    box-shadow: inset 0 -1px 0 rgba(0,0,0,.15), 0 8px 24px -18px var(--cool-deep);
}
header::after {                       /* warm "fix" spark along the bottom edge */
    content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 3px;
    background: linear-gradient(90deg, var(--warm), #ffd9a8 50%, var(--warm));
}
.header-inner {
    display: flex; justify-content: space-between; align-items: center;
    gap: 1rem; padding: 1.05rem 0 .75rem;
}
header h1 { margin: 0; font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; white-space: nowrap; }
header h1 a { color: #fff; text-decoration: none; }
header .tagline { margin: .15rem 0 0; opacity: .82; font-size: .82rem; font-weight: 500; }

.lang-switcher { display: inline-flex; gap: 4px; background: rgba(255,255,255,.14);
    padding: 4px; border-radius: 999px; backdrop-filter: blur(4px); }
.lang-switcher a {
    color: #fff; text-decoration: none; line-height: 1;
    padding: 6px 11px; border-radius: 999px; font-size: .82rem; font-weight: 600;
    opacity: .9; transition: background .15s, color .15s;
}
.lang-switcher a:hover { background: rgba(255,255,255,.16); }
.lang-switcher a.active { background: #fff; color: var(--cool-deep); opacity: 1; }

.topnav { display: flex; gap: .25rem; padding: .15rem 0 .8rem; }
.topnav a {
    color: rgba(255,255,255,.92); text-decoration: none; font-weight: 600;
    font-size: .9rem; padding: .35rem .7rem; border-radius: 999px;
    transition: background .15s;
}
.topnav a:hover { background: rgba(255,255,255,.14); }

/* -------------------------------------------------------------- Layout */
main { min-height: 68vh; padding: 1.4rem 0 2.5rem; }
footer { text-align: center; color: var(--ink-soft); font-size: .82rem; padding: 1.5rem 1rem 2.5rem; opacity: .8; }

.card {
    background: var(--card);
    padding: 1.6rem 1.5rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 1.4rem;
    animation: rise .5s cubic-bezier(.2,.7,.2,1) both;
}
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.card > p:first-of-type { color: var(--ink-soft); }

/* -------------------------------------------------------------- Forms */
.form-row { margin-bottom: 1rem; }
.form-row label { display: block; font-weight: 600; margin-bottom: .35rem; font-size: .92rem; }
input[type="text"], input[type="email"], input[type="tel"],
input[type="datetime-local"], input[type="number"], select, textarea {
    width: 100%;
    padding: .72rem .85rem;
    border: 1.5px solid var(--line);
    border-radius: 11px;
    font-size: 1rem; font-family: inherit; color: var(--ink);
    background: #fff;
    transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus {
    outline: none; border-color: var(--cool);
    box-shadow: 0 0 0 4px var(--cool-tint);
}
.form-row small { display: block; color: var(--ink-soft); font-size: .8rem; margin-top: .25rem; }
.errors { color: var(--err); font-size: .85rem; margin-top: .3rem; font-weight: 500; }
body.rtl .form-row label { text-align: right; }

/* -------------------------------------------------- Service picker (inquiry) */
.service-group { margin-bottom: .4rem; }

.service-row {
    display: flex; align-items: center; gap: .8rem;
    padding: .85rem .95rem; margin-bottom: .55rem;
    background: #fff; border: 1.5px solid var(--line);
    border-radius: 13px; cursor: pointer; user-select: none;
    transition: border-color .15s, background .15s, transform .08s, box-shadow .15s;
}
.service-row:hover { border-color: var(--line-cool); }
.service-row:active { transform: scale(.995); }
.service-row:has(.svc-check:checked) {
    border-color: var(--cool); background: var(--cool-tint);
    box-shadow: inset 0 0 0 1px var(--cool);
}

.svc-check {
    appearance: none; -webkit-appearance: none; flex: none;
    width: 26px; height: 26px; border-radius: 8px;
    border: 2px solid #C6BCA8; background: #fff; cursor: pointer;
    display: grid; place-content: center; transition: background .15s, border-color .15s;
}
.svc-check::after { content: "✓"; color: #fff; font-size: 15px; font-weight: 800; transform: scale(0); transition: transform .15s cubic-bezier(.3,1.4,.5,1); }
.svc-check:checked { background: var(--cool); border-color: var(--cool); }
.svc-check:checked::after { transform: scale(1); }

.svc-name { flex: 1; font-weight: 600; font-size: .98rem; }
.svc-price { font-weight: 700; color: var(--ink-soft); white-space: nowrap; font-variant-numeric: tabular-nums; }
.service-row:has(.svc-check:checked) .svc-price { color: var(--warm-deep); }

.svc-qty {
    width: 62px; text-align: center; padding: .45rem .3rem;
    border-radius: 9px; border: 1.5px solid var(--line); font-weight: 600;
    font-variant-numeric: tabular-nums;
}

/* Sticky warm "receipt" total — keeps price in view while scrolling the list */
.indicative {
    position: sticky; bottom: .6rem; z-index: 5;
    display: flex; align-items: baseline; flex-wrap: wrap; gap: .5rem;
    margin: 1.1rem 0 .4rem; padding: .85rem 1.1rem;
    background: linear-gradient(180deg, #fff, var(--warm-tint));
    border: 1.5px dashed var(--warm); border-radius: 13px;
    font-weight: 600; box-shadow: var(--shadow);
}
.indicative #indicative-total { font-size: 1.55rem; font-weight: 800; color: var(--warm-deep); font-variant-numeric: tabular-nums; }
.indicative small { flex-basis: 100%; color: var(--ink-soft); font-weight: 500; }

/* -------------------------------------------------------------- Buttons */
.btn-primary, .btn-secondary, .btn-whatsapp {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    padding: .82rem 1.5rem; border-radius: 12px; font-size: 1rem; font-weight: 700;
    border: none; cursor: pointer; text-decoration: none; font-family: inherit;
    transition: transform .08s, box-shadow .15s, filter .15s;
}
.btn-primary {
    background: linear-gradient(180deg, var(--warm), var(--warm-deep)); color: #fff;
    box-shadow: 0 8px 18px -8px rgba(201,101,15,.6);
}
.btn-primary:hover { filter: brightness(1.05); }
.btn-primary:active, .btn-whatsapp:active { transform: translateY(1px); }
.btn-secondary { background: #fff; color: var(--cool-deep); border: 1.5px solid var(--line-cool); }
.btn-secondary:hover { background: var(--cool-tint); }
.btn-whatsapp { background: var(--wa); color: #fff; box-shadow: 0 8px 18px -8px rgba(37,211,102,.6); }
.btn-whatsapp:hover { filter: brightness(1.04); }
.btn-large { font-size: 1.1rem; padding: 1rem 1.7rem; width: 100%; margin: .6rem 0; }
button.btn-primary { width: 100%; margin-top: .4rem; }

/* -------------------------------------------------------------- Messages */
.message { padding: .85rem 1.05rem; border-radius: 12px; margin-bottom: 1rem; font-weight: 500;
    border: 1px solid transparent; }
.message-success { background: var(--ok-tint); color: #134b37; border-color: #BCE3D2; }
.message-error   { background: var(--err-tint); color: #8a2b24; border-color: #F2C4BF; }
.message-info    { background: var(--cool-tint); color: var(--cool-deep); border-color: var(--line-cool); }
.message-warning { background: var(--warm-tint); color: var(--warm-deep); border-color: #F4D3AC; }

/* -------------------------------------------------------------- Bits */
.price { font-size: 1.5rem; font-weight: 800; color: var(--warm-deep); margin: .3rem 0; }
.muted { color: var(--ink-soft); font-size: .9rem; }
.summary { list-style: none; padding: 0; margin: .5rem 0; }
.summary li { padding: .6rem 0; border-bottom: 1px solid var(--line); }
.summary li:last-child { border-bottom: none; }
hr { border: none; border-top: 1px solid var(--line); margin: 1.5rem 0; }

/* Radio day-picker rows */
.radio-row {
    display: block; padding: .8rem .95rem; margin-bottom: .55rem;
    background: #fff; border: 1.5px solid var(--line); border-radius: 13px;
    cursor: pointer; font-weight: 500; transition: border-color .15s, background .15s;
}
.radio-row:hover { border-color: var(--line-cool); background: var(--cool-tint); }
.radio-row:has(input:checked) { border-color: var(--cool); background: var(--cool-tint); box-shadow: inset 0 0 0 1px var(--cool); }
.radio-row input { margin-inline-end: .55rem; accent-color: var(--cool); }
.radio-row small { color: var(--ink-soft); }

/* -------------------------------------------------------------- Price table */
.pricelist { width: 100%; border-collapse: collapse; margin: .65rem 0 1.6rem; }
.pricelist th, .pricelist td { text-align: start; padding: .65rem .85rem; border-bottom: 1px solid var(--line); }
.pricelist th { font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); font-weight: 700; border-bottom: 1.5px solid var(--line); }
.pricelist td strong { font-variant-numeric: tabular-nums; }
.pricelist tfoot td { padding: .6rem .85rem; }
.pricelist tfoot tr.discount { color: var(--ok); font-weight: 600; }
.pricelist tfoot tr.total { background: var(--cool-tint); font-size: 1.12rem; }
.pricelist tfoot tr.total td { padding: .9rem .85rem; }
.pricelist tfoot tr.total .price { color: var(--warm-deep); font-size: 1.2rem; }

/* -------------------------------------------------------------- Referral / video box */
.referral-box {
    margin-top: 1.6rem; padding: 1.15rem 1.25rem;
    background: linear-gradient(135deg, var(--warm-tint), #FFF6E8);
    border: 1.5px solid #F2D2A4; border-radius: 14px;
}
.referral-box h3 { margin-top: 0; }

.route-summary { padding: .85rem 1rem; background: var(--cool-tint); border-radius: 11px; margin: .75rem 0; }

@media (max-width: 520px) {
    .card { padding: 1.25rem 1.1rem; }
    header h1 { font-size: 1.3rem; }
}
