/* ============================================
   IMOBIL CLEAN - landing page styles
   Hand-written, no framework. Black & white,
   with a light and a dark theme.
============================================ */

/* ---------- Theme tokens ----------
   Light is the default. Dark is applied with
   <html data-theme="dark"> (set by the toggle).
   In dark mode the "band" sections invert to light,
   so the page keeps its strong black/white rhythm. */
:root {
    color-scheme: light;

    --bg: #ffffff;
    --fg: #111111;
    --surface: #f6f6f4;
    --card: #ffffff;
    --line: #e3e3e0;
    --muted: #5f5f5c;

    --accent: #0a0a0a;
    --accent-fg: #ffffff;

    --band-bg: #0a0a0a;
    --band-fg: #ffffff;
    --band-muted: rgba(255, 255, 255, 0.65);
    --band-line: rgba(255, 255, 255, 0.25);

    --header-bg: rgba(255, 255, 255, 0.92);

    /* Fixed colours (same in both themes) */
    --black: #0a0a0a;
    --white: #ffffff;

    --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;

    --container: 1120px;
    --radius: 14px;
    --header-h: 72px;

    --t-fast: 0.2s ease;
}

:root[data-theme="dark"] {
    color-scheme: dark;

    --bg: #0a0a0a;
    --fg: #f2f2f0;
    --surface: #141414;
    --card: #1a1a1a;
    --line: #2b2b2b;
    --muted: #a3a3a0;

    --accent: #ffffff;
    --accent-fg: #0a0a0a;

    --band-bg: #f2f2f0;
    --band-fg: #0a0a0a;
    --band-muted: rgba(10, 10, 10, 0.65);
    --band-line: rgba(10, 10, 10, 0.25);

    --header-bg: rgba(10, 10, 10, 0.88);
}

/* Short colour fade while switching themes (class set by JS, then removed) */
.theme-anim, .theme-anim *, .theme-anim *::before, .theme-anim *::after {
    transition: background-color 0.35s ease, color 0.35s ease, border-color 0.35s ease !important;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 8px);
}

body {
    font-family: var(--font);
    color: var(--fg);
    background: var(--bg);
    line-height: 1.65;
    font-size: 17px;
    -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

:focus-visible {
    outline: 3px solid var(--fg);
    outline-offset: 3px;
}

.container {
    width: min(var(--container), 100% - 40px);
    margin-inline: auto;
}

.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    left: 16px; top: -60px;
    background: var(--accent);
    color: var(--accent-fg);
    padding: 10px 16px;
    border-radius: 8px;
    z-index: 200;
}
.skip-link:focus { top: 12px; }

/* ---------- Typography ---------- */
h1, h2, h3 {
    line-height: 1.12;
    letter-spacing: -0.025em;
    font-weight: 700;
}

h1 { font-size: clamp(2.3rem, 6vw, 4rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.15rem; letter-spacing: -0.01em; }

.eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--muted);
    margin-bottom: 14px;
}

.lead {
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    color: var(--muted);
    max-width: 38em;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 28px;
    border-radius: 999px;
    border: 2px solid var(--accent);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--t-fast), color var(--t-fast), transform var(--t-fast);
}

.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.btn-primary { background: var(--accent); color: var(--accent-fg); }
.btn-primary:hover { background: var(--bg); color: var(--accent); }

.btn-outline { background: transparent; color: var(--fg); }
.btn-outline:hover { background: var(--accent); color: var(--accent-fg); }

/* Variants for use inside bands */
.on-dark .btn { border-color: var(--band-fg); }
.on-dark .btn-primary { background: var(--band-fg); color: var(--band-bg); }
.on-dark .btn-primary:hover { background: transparent; color: var(--band-fg); }
.on-dark .btn-outline { color: var(--band-fg); }
.on-dark .btn-outline:hover { background: var(--band-fg); color: var(--band-bg); }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--header-h);
    background: var(--header-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}

.header-inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    text-transform: uppercase;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.brand-text span { font-weight: 400; }
.brand-mark { height: 34px; width: auto; flex-shrink: 0; display: block; }
.brand-mark--dark { display: none; }
:root[data-theme="dark"] .brand-mark--light { display: none; }
:root[data-theme="dark"] .brand-mark--dark { display: block; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    font-size: 0.95rem;
    font-weight: 500;
}
.nav-links a:not(.btn):hover { text-decoration: underline; text-underline-offset: 6px; }
.nav-links .btn { padding: 10px 20px; font-size: 0.92rem; white-space: nowrap; }

/* ---------- Theme toggle ---------- */
.theme-toggle {
    position: relative;
    flex-shrink: 0;
    width: 62px;
    height: 34px;
    padding: 0;
    border-radius: 999px;
    border: 2px solid var(--accent);
    background: var(--surface);
    cursor: pointer;
    transition: background var(--t-fast);
}

.theme-toggle .knob {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--accent-fg);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.4s cubic-bezier(0.5, 1.6, 0.4, 1);
}

.theme-toggle svg {
    position: absolute;
    width: 14px;
    height: 14px;
    transition: transform 0.4s ease, opacity 0.25s ease;
}

/* Light theme: sun showing, knob on the left */
.theme-toggle .icon-moon { opacity: 0; transform: rotate(-90deg) scale(0.4); }
.theme-toggle .icon-sun  { opacity: 1; transform: rotate(0) scale(1); }

/* Dark theme: moon showing, knob slides right */
:root[data-theme="dark"] .theme-toggle .knob { transform: translateX(28px); }
:root[data-theme="dark"] .theme-toggle .icon-sun  { opacity: 0; transform: rotate(90deg) scale(0.4); }
:root[data-theme="dark"] .theme-toggle .icon-moon { opacity: 1; transform: rotate(0) scale(1); }

.theme-toggle:hover .knob { box-shadow: 0 0 0 4px rgba(128, 128, 128, 0.25); }

/* ---------- Sections ---------- */
section { padding: clamp(64px, 9vw, 110px) 0; }

.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head h2 { margin-bottom: 14px; }

.bg-paper { background: var(--surface); }

.on-dark { background: var(--band-bg); color: var(--band-fg); }
.on-dark .eyebrow,
.on-dark .lead { color: var(--band-muted); }

/* ---------- Hero ---------- */
.hero {
    padding-top: clamp(56px, 8vw, 100px);
    padding-bottom: clamp(56px, 8vw, 100px);
}

.hero h1 { max-width: 14ch; margin-bottom: 22px; }
.hero .lead { margin-bottom: 34px; }

.hero-points {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 28px;
    margin-top: 40px;
    padding-top: 28px;
    border-top: 1px solid var(--line);
    font-size: 0.95rem;
    font-weight: 500;
}
.hero-points li { display: flex; align-items: center; gap: 8px; }
.hero-points svg { width: 18px; height: 18px; }

/* ---------- Services ---------- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 30px 28px;
    transition: border-color var(--t-fast), transform var(--t-fast);
}
.card:hover { border-color: var(--fg); transform: translateY(-3px); }

.card-icon {
    width: 48px; height: 48px;
    display: flex; align-items: center; justify-content: center;
    background: var(--accent);
    color: var(--accent-fg);
    border-radius: 12px;
    margin-bottom: 20px;
}
.card-icon svg { width: 24px; height: 24px; }

.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 0.97rem; }

/* ---------- Why us ---------- */
.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.why-item { border-top: 2px solid var(--band-fg); padding-top: 20px; }
.why-item h3 { margin-bottom: 8px; }
.why-item p { color: var(--band-muted); font-size: 0.95rem; }

/* ---------- Steps ---------- */
.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    counter-reset: step;
}

.step {
    counter-increment: step;
    border: 1px solid var(--line);
    background: var(--card);
    border-radius: var(--radius);
    padding: 30px 28px;
}

.step::before {
    content: counter(step);
    display: flex; align-items: center; justify-content: center;
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--accent-fg);
    font-weight: 700;
    margin-bottom: 18px;
}

.step h3 { margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 0.97rem; }

/* ---------- Work / gallery placeholders ---------- */
.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.gallery figure {
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--line);
}

.gallery .ph {
    aspect-ratio: 4 / 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--muted);
    font-size: 0.9rem;
    text-align: center;
    padding: 20px;
}
.gallery .ph svg { width: 34px; height: 34px; opacity: 0.55; }

.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

.gallery figcaption {
    padding: 12px 16px;
    font-size: 0.88rem;
    font-weight: 500;
    background: var(--card);
    border-top: 1px solid var(--line);
}

/* ---------- FAQ ---------- */
.faq { max-width: 780px; }

.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }

.faq summary {
    cursor: pointer;
    list-style: none;
    padding: 22px 40px 22px 0;
    font-weight: 600;
    position: relative;
}
.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
    content: '+';
    position: absolute;
    right: 4px; top: 50%;
    transform: translateY(-50%);
    font-size: 1.6rem;
    font-weight: 300;
    transition: transform var(--t-fast);
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }

.faq details p {
    padding: 0 40px 22px 0;
    color: var(--muted);
}

/* ---------- Contact ---------- */
.contact-box {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 48px;
    align-items: center;
}

.contact-box h2 { margin-bottom: 16px; }

.contact-list { display: grid; gap: 14px; }

.contact-link {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 22px;
    border: 1px solid var(--band-line);
    border-radius: var(--radius);
    transition: background var(--t-fast), color var(--t-fast);
}
.contact-link:hover { background: var(--band-fg); color: var(--band-bg); }
.contact-link svg { width: 24px; height: 24px; flex-shrink: 0; }
.contact-link small {
    display: block;
    font-size: 0.78rem;
    opacity: 0.65;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
.contact-link strong { font-size: 1.1rem; }

/* ---------- Offer: calculator + form ---------- */
[hidden] { display: none !important; }

.offer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
}

.panel {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 32px 30px;
}

.panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 22px;
}
.panel-head h3, .panel > h3 { font-size: 1.3rem; }

.badge {
    display: inline-block;
    padding: 5px 12px;
    border: 1.5px dashed var(--fg);
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.fields { display: grid; gap: 18px; }
.field { display: grid; gap: 7px; border: 0; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.field label, .field legend {
    font-size: 0.88rem;
    font-weight: 600;
    padding: 0;
}
.field small { font-weight: 400; color: var(--muted); }

input[type="text"], input[type="tel"], input[type="email"], input[type="number"],
select, textarea {
    width: 100%;
    padding: 13px 14px;
    background: var(--bg);
    color: var(--fg);
    border: 1.5px solid var(--line);
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color var(--t-fast);
}
textarea { resize: vertical; min-height: 110px; }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: 0.7; }
input:hover, select:hover, textarea:hover { border-color: var(--muted); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--fg); box-shadow: 0 0 0 3px rgba(128, 128, 128, 0.25); }
input:user-invalid, textarea:user-invalid { border-color: #b3261e; }

select {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 38px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
}

/* Pills (radio) and checks */
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { cursor: pointer; }
.pill input { position: absolute; opacity: 0; pointer-events: none; }
.pill span {
    display: inline-block;
    padding: 10px 18px;
    border: 1.5px solid var(--line);
    border-radius: 999px;
    font-size: 0.93rem;
    font-weight: 500;
    transition: all var(--t-fast);
}
.pill:hover span { border-color: var(--muted); }
.pill input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); }
.pill input:focus-visible + span { outline: 3px solid var(--fg); outline-offset: 2px; }

.checks { display: grid; gap: 4px; }
.check { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; padding: 6px 0; font-size: 0.95rem; }
.check input {
    flex-shrink: 0;
    width: 20px; height: 20px;
    margin-top: 2px;
    accent-color: var(--accent);
    cursor: pointer;
}
.consent { font-size: 0.85rem; color: var(--muted); line-height: 1.5; }
.consent a { text-decoration: underline; text-underline-offset: 3px; color: var(--fg); }

/* Calculator result */
.result {
    margin-top: 28px;
    padding: 26px 24px;
    border-radius: var(--radius);
    background: var(--accent);
    color: var(--accent-fg);
}
.result-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    opacity: 0.7;
}
.result-amount {
    font-size: clamp(1.9rem, 5vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin: 6px 0 14px;
}
.result-amount small { font-size: 0.45em; font-weight: 500; letter-spacing: 0; opacity: 0.8; }
.result-hint { font-size: 0.82rem; opacity: 0.75; margin-bottom: 18px; }

/* Button that sits on the inverted result card */
.btn-light { background: var(--accent-fg); color: var(--accent); border-color: var(--accent-fg); }
.btn-light:hover { background: transparent; color: var(--accent-fg); }
.btn-light:disabled { opacity: 0.4; cursor: not-allowed; }

/* Form bits */
.ts-box:empty { display: none; }
.h-captcha { min-height: 0; max-width: 100%; overflow-x: auto; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.form-actions .btn { flex: 1 1 180px; padding-inline: 16px; white-space: nowrap; }
.btn:disabled { opacity: 0.6; cursor: wait; }

.form-status { font-size: 0.93rem; line-height: 1.5; min-height: 1.5em; }
.form-status.ok  { padding: 14px 16px; border-radius: 10px; background: var(--surface); border: 1.5px solid var(--fg); font-weight: 500; }
.form-status.err { padding: 14px 16px; border-radius: 10px; background: var(--surface); border: 1.5px dashed var(--fg); font-weight: 500; }
.form-status:empty { padding: 0; border: 0; }

/* ---------- Calculator (cart) ---------- */
.btn-sm { padding: 9px 16px; font-size: 0.88rem; border-width: 1.5px; min-width: 118px; }

.calc {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 410px;
    gap: 24px;
    align-items: start;
}
.calc-main { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; min-width: 0; }
.calc-side { position: sticky; top: 92px; min-width: 0; }

.step-no {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px; height: 28px;
    margin-right: 8px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--accent-fg);
    font-size: 0.85rem;
    font-weight: 700;
    vertical-align: 2px;
}
.panel-hint { font-size: 0.88rem; color: var(--muted); margin: -8px 0 16px; line-height: 1.5; }
.fields > .panel-hint { margin: 0; }
.lift-note { padding: 10px 14px; border: 1.5px dashed var(--line); border-radius: 10px; color: var(--fg); }
.field-row-3 { grid-template-columns: repeat(3, 1fr); }
.sub-label {
    font-size: 0.76rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--muted);
    margin: 20px 0 10px;
}
.sub-label:first-of-type { margin-top: 0; }

/* Packages */
.pkgs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pkg {
    display: grid;
    align-content: start;
    gap: 4px;
    padding: 14px;
    text-align: left;
    background: var(--bg);
    color: var(--fg);
    border: 1.5px solid var(--line);
    border-radius: 12px;
    font-family: inherit;
    cursor: pointer;
    transition: border-color var(--t-fast);
}
.pkg:hover { border-color: var(--fg); }
.pkg strong { font-size: 0.95rem; }
.pkg small { color: var(--muted); font-size: 0.82rem; line-height: 1.4; }
.pkg-cta { margin-top: 6px; font-size: 0.82rem; font-weight: 600; }

/* Category tabs + item list */
.cat-tabs {
    display: flex;
    gap: 4px;
    padding: 4px;
    margin-bottom: 14px;
    overflow-x: auto;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 999px;
    scrollbar-width: none;
}
.cat-tabs::-webkit-scrollbar { display: none; }
.cat-tab {
    flex: 0 0 auto;
    padding: 10px 16px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--muted);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: background var(--t-fast), color var(--t-fast);
}
.cat-tab[aria-selected="true"] { background: var(--accent); color: var(--accent-fg); }
.cat-tab:not([aria-selected="true"]):hover { color: var(--fg); }

.items { border-top: 1px solid var(--line); }
.item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 14px;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
}
.item-info strong { display: block; font-size: 0.95rem; line-height: 1.35; }
.item-info small { display: block; margin-top: 3px; color: var(--muted); font-size: 0.82rem; line-height: 1.4; }
.item-price { text-align: right; white-space: nowrap; }
.item-price b { display: block; font-size: 0.98rem; }
.item-price span { display: block; font-size: 0.78rem; color: var(--muted); }
.item-empty { padding: 16px 0; color: var(--muted); }

.custom-form { margin-top: 8px; padding-top: 6px; border-top: 1px solid var(--line); }
.custom-form .sub-label { margin-top: 18px; }
.custom-form .panel-hint { margin: 10px 0 0; }
.custom-row { display: flex; gap: 10px; }
.custom-row input { flex: 1 1 0; min-width: 0; }
.custom-extra { margin-top: 10px; }

/* Cart */
.cart { padding: 26px 22px; max-height: calc(100vh - 112px); overflow-y: auto; }
.cart .panel-head { margin-bottom: 8px; }
.cart-empty { color: var(--muted); font-size: 0.95rem; line-height: 1.5; padding: 8px 0 4px; }
.cart-sec h4 {
    margin: 18px 0 4px;
    font-size: 0.76rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--muted);
}
.cart-line {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "name remove" "qty price";
    gap: 8px 10px;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}
.cl-name { grid-area: name; }
.cl-name strong { font-size: 0.92rem; line-height: 1.35; display: block; }
.cl-hint { display: block; margin-top: 3px; font-size: 0.78rem; color: var(--muted); line-height: 1.4; }
.link-btn {
    padding: 0; border: 0; background: none; color: var(--fg);
    font: inherit; text-decoration: underline; text-underline-offset: 2px; cursor: pointer;
}
.qty { grid-area: qty; display: flex; align-items: center; gap: 6px; min-width: 0; }
.qty-btn {
    width: 30px; height: 30px; flex-shrink: 0;
    border: 1.5px solid var(--line); border-radius: 50%;
    background: var(--bg); color: var(--fg);
    font-size: 1.05rem; line-height: 1; cursor: pointer;
    transition: border-color var(--t-fast);
}
.qty-btn:hover { border-color: var(--fg); }
input.qty-in { width: 66px; padding: 6px 8px; text-align: center; font-size: 0.95rem; border-radius: 8px; }
.qty-unit { font-size: 0.8rem; color: var(--muted); overflow-wrap: anywhere; }
.cl-price { grid-area: price; text-align: right; display: grid; gap: 2px; justify-items: end; }
.cl-price b { font-size: 0.95rem; white-space: nowrap; }
.cl-price small { font-size: 0.76rem; color: var(--muted); }
input.price-in { width: 82px; padding: 6px 8px; text-align: right; font-size: 0.9rem; border-radius: 8px; }
.cl-remove {
    grid-area: remove;
    width: 28px; height: 28px;
    border: 0; background: transparent; color: var(--muted);
    font-size: 1.4rem; line-height: 1; cursor: pointer; border-radius: 50%;
}
.cl-remove:hover { color: var(--fg); }
.cart-extra {
    display: flex; justify-content: space-between; gap: 12px;
    padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 0.88rem;
}
.cart-extra small { display: block; color: var(--muted); font-size: 0.78rem; }
.cart-extra b { white-space: nowrap; }
.urgent { margin-top: 14px; font-size: 0.9rem; }

.cart .result { margin-top: 16px; padding: 22px 20px; }
.totals { margin: 8px 0 12px; }
.tot-row {
    display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
    padding: 9px 0;
    border-bottom: 1px solid color-mix(in srgb, var(--accent-fg) 22%, transparent);
    font-size: 0.95rem;
}
.tot-row strong { font-size: 1.2rem; letter-spacing: -0.01em; text-align: right; white-space: nowrap; }
.tot-sub { font-size: 0.8rem; opacity: 0.75; padding: 6px 0 0; }
.cart .btn-light { width: 100%; }
.intern-tools { display: grid; grid-template-columns: 2fr 1fr; gap: 12px; margin: 12px 0; }
.intern-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.intern-actions .btn { padding-inline: 12px; }

/* Request panel */
.request { margin-top: 24px; max-width: 780px; margin-inline: auto; }
.req-summary {
    margin-bottom: 20px; padding: 14px 16px;
    background: var(--surface); border: 1.5px solid var(--line); border-radius: 10px;
    font-size: 0.93rem; line-height: 1.5;
}
.req-title { font-weight: 600; margin-bottom: 4px; }
.req-summary ul { display: grid; gap: 2px; }
.req-edit { display: inline-block; margin-top: 8px; text-decoration: underline; text-underline-offset: 3px; font-weight: 500; }

/* ---------- Flow: progress bar, continue buttons, request step ---------- */
.flow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 0 auto 28px;
    padding: 0;
    list-style: none;
    max-width: 520px;
}
.flow li { display: flex; align-items: center; flex: 1 1 0; min-width: 0; }
.flow li + li::before {
    content: "";
    flex: 1 1 auto;
    height: 2px;
    min-width: 10px;
    margin-right: 6px;
    background: var(--line);
}
.flow li.is-done + li::before, .flow li.is-current + li::before { background: var(--fg); }
.flow a { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 600; white-space: nowrap; }
.flow-no {
    display: inline-flex; align-items: center; justify-content: center;
    width: 28px; height: 28px; flex-shrink: 0;
    border: 1.5px solid var(--line); border-radius: 50%;
    font-size: 0.82rem; line-height: 1;
    transition: all var(--t-fast);
}
.flow li.is-current a { color: var(--fg); }
.flow li.is-current .flow-no { border-color: var(--fg); background: var(--accent); color: var(--accent-fg); }
.flow li.is-done .flow-no { border-color: var(--fg); color: var(--fg); }
.flow li.is-done:not(.is-current) .flow-no { font-size: 0; }
.flow li.is-done:not(.is-current) .flow-no::before { content: "✓"; font-size: 0.85rem; }
.flow li.is-done a { color: var(--fg); }
.flow li.is-current.is-done .flow-no { background: var(--accent); color: var(--accent-fg); }
.intern .flow { display: none; }

#calcPanel, #cart, #requestPanel { scroll-margin-top: 150px; }

.btn-lg { padding: 17px 32px; font-size: 1.05rem; }
.next-row { display: flex; justify-content: flex-end; margin-top: 22px; }
.to-cart-row { display: none; }
.cta-hint { margin-top: 10px; font-size: 0.8rem; opacity: 0.7; text-align: center; }
.intern-actions + .cta-hint, .intern .cta-hint { display: none; }

.cat-tabs { position: relative; }
.cat-tabs.has-right { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 34px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 34px), transparent); }
.cat-tabs.has-left { -webkit-mask-image: linear-gradient(90deg, transparent, #000 34px); mask-image: linear-gradient(90deg, transparent, #000 34px); }
.cat-tabs.has-left.has-right { -webkit-mask-image: linear-gradient(90deg, transparent, #000 34px, #000 calc(100% - 34px), transparent); mask-image: linear-gradient(90deg, transparent, #000 34px, #000 calc(100% - 34px), transparent); }

.req-summary .req-title { display: flex; justify-content: space-between; gap: 12px; }
.req-summary .req-title span { font-weight: 500; color: var(--muted); }
.req-names { margin: 2px 0 8px; font-size: 0.85rem; color: var(--muted); line-height: 1.4; }
.req-summary li { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; border-top: 1px solid var(--line); }
.req-summary li strong { white-space: nowrap; }
.req-edit { margin-top: 10px; padding: 0; border: 0; background: none; color: var(--fg); font: inherit; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.req-empty { margin-bottom: 4px; }

.form-actions { align-items: center; }
.form-actions .btn-lg { flex: 1 1 220px; }
.form-actions .or { color: var(--muted); font-size: 0.85rem; }
.form-actions .btn-outline { flex: 1 1 200px; }
.pills .pill span { padding: 10px 16px; }

.what-next { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.what-next h4 { margin-bottom: 12px; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); font-weight: 600; }
.what-next ol { display: grid; gap: 12px; counter-reset: wn; list-style: none; padding: 0; }
.what-next li { display: grid; grid-template-columns: 28px 1fr; column-gap: 12px; counter-increment: wn; font-size: 0.93rem; line-height: 1.45; }
.what-next li::before {
    content: counter(wn);
    grid-row: 1 / span 2;
    display: inline-flex; align-items: center; justify-content: center;
    width: 28px; height: 28px; border-radius: 50%;
    border: 1.5px solid var(--fg); font-size: 0.82rem; font-weight: 700;
}
.what-next li span { color: var(--muted); }

.req-done { text-align: center; padding: 18px 6px 6px; outline: none; }
.req-done .done-mark {
    display: inline-flex; align-items: center; justify-content: center;
    width: 64px; height: 64px; margin-bottom: 14px; border-radius: 50%;
    background: var(--accent); color: var(--accent-fg); font-size: 1.8rem; font-weight: 700;
}
.req-done h4 { font-size: 1.35rem; margin-bottom: 8px; }
.req-done p { max-width: 46ch; margin: 0 auto 20px; color: var(--muted); line-height: 1.55; }

@media (max-width: 960px) { .to-cart-row { display: flex; margin-top: 20px; } .to-cart-row .btn { width: 100%; } }

/* Floating "see the offer" button (small screens) */
.cart-fab {
    position: fixed; right: 16px; bottom: 84px; z-index: 140;
    padding: 13px 20px; border: 0; border-radius: 999px;
    background: var(--accent); color: var(--accent-fg);
    font-family: inherit; font-size: 0.92rem; font-weight: 600;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3); cursor: pointer;
}

/* Internal mode: this view is for making an offer, not for sending a request */
.intern #requestPanel, .intern #cartCta { display: none; }

/* Printed offer */
#printSheet { display: none; }
@media print {
    html, body { background: #fff !important; }
    body.printing-offer > *:not(#printSheet) { display: none !important; }
    body.printing-offer #printSheet {
        display: block; color: #000; background: #fff;
        font: 12.5px/1.45 Inter, Arial, sans-serif; padding: 0;
    }
    #printSheet h1 { font-size: 22px; margin: 0 0 4px; }
    #printSheet p { margin: 0 0 3px; }
    #printSheet .ps-head { display: flex; justify-content: space-between; gap: 24px; padding-bottom: 14px; border-bottom: 2px solid #000; margin-bottom: 14px; }
    #printSheet .ps-meta { text-align: right; }
    #printSheet .ps-building { margin-bottom: 14px; }
    #printSheet table { width: 100%; border-collapse: collapse; }
    #printSheet th, #printSheet td { padding: 6px 8px; border-bottom: 1px solid #bbb; text-align: left; vertical-align: top; }
    #printSheet thead th { border-bottom: 2px solid #000; font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; }
    #printSheet .n { text-align: right; white-space: nowrap; }
    #printSheet .ps-sec th { padding-top: 16px; background: #f2f2f2; }
    #printSheet .ps-total td { font-weight: 700; border-bottom: 2px solid #000; }
    #printSheet .ps-notes { margin-top: 18px; font-size: 11.5px; color: #333; }
}


/* ---------- Calculator v3: Curățenie / Renovări ---------- */
.mode {
    display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin-bottom: 22px;
    background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
}
.mode-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 16px; border: 0; border-radius: 999px; background: transparent; color: var(--muted);
    font-family: inherit; font-size: 1rem; font-weight: 600; cursor: pointer;
    transition: background var(--t-fast), color var(--t-fast);
}
.mode-btn:not([aria-selected="true"]):hover { color: var(--fg); }
.mode-btn[aria-selected="true"] { background: var(--accent); color: var(--accent-fg); }
.mode-count {
    min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--fg); color: var(--bg); font-size: 0.75rem; font-weight: 700;
}
.mode-btn[aria-selected="true"] .mode-count { background: var(--accent-fg); color: var(--accent); }

.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.seg-opt { cursor: pointer; display: block; }
.seg-opt input { position: absolute; opacity: 0; pointer-events: none; }
.seg-opt span {
    display: grid; gap: 2px; height: 100%; padding: 14px 16px;
    border: 1.5px solid var(--line); border-radius: 12px;
    transition: border-color var(--t-fast), background var(--t-fast);
}
.seg-opt strong { font-size: 0.98rem; }
.seg-opt small { color: var(--muted); font-size: 0.82rem; font-weight: 400; }
.seg-opt:hover span { border-color: var(--muted); }
.seg-opt input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); }
.seg-opt input:checked + span small { color: inherit; opacity: 0.75; }
.seg-opt input:focus-visible + span { outline: 3px solid var(--fg); outline-offset: 2px; }
.seg-hint { margin: 12px 0 4px; }

#paneClean .fields { margin-top: 6px; }
#paneClean .sub-label { margin-top: 20px; }
#paneClean .fields .sub-label { margin: 8px 0 -4px; }

/* Rows: one work item */
.row { padding: 14px 0; border-bottom: 1px solid var(--line); }
.row-top {
    display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 14px; align-items: center;
}
.row-info strong { display: block; font-size: 0.95rem; line-height: 1.35; }
.row-info small { display: block; margin-top: 3px; color: var(--muted); font-size: 0.82rem; line-height: 1.4; }
.row-price { text-align: right; white-space: nowrap; }
.row-price b { display: block; font-size: 0.98rem; }
.row-price span { display: block; font-size: 0.78rem; color: var(--muted); }
.row-btn { min-width: 118px; }
input.price-in { display: none; }
.intern input.price-in { display: block; margin-left: auto; }
.intern .row-price b { display: none; }
.row-qty {
    display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px;
    margin-top: 12px; padding: 10px 12px; background: var(--surface); border-radius: 10px;
}
.row-sub { flex: 1 1 140px; min-width: 0; font-size: 0.8rem; color: var(--muted); line-height: 1.4; }
.row-hint { display: block; }
.row-total { margin-left: auto; font-size: 0.95rem; white-space: nowrap; }
.row.on .row-info strong { font-weight: 700; }

/* Renovation accordions */
.accs { display: grid; gap: 10px; }
.acc { border: 1.5px solid var(--line); border-radius: 12px; background: var(--bg); }
.acc[open] { border-color: var(--muted); }
.acc summary {
    display: flex; align-items: center; gap: 10px; padding: 16px 18px; cursor: pointer;
    list-style: none; font-weight: 600; font-size: 1rem;
}
.acc summary::-webkit-details-marker { display: none; }
.acc-name { flex: 1 1 auto; }
.acc-count {
    min-width: 24px; height: 24px; padding: 0 7px; border-radius: 999px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--accent); color: var(--accent-fg); font-size: 0.78rem; font-weight: 700;
}
.acc-chev {
    width: 10px; height: 10px; margin-right: 4px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-2px); transition: transform var(--t-fast);
}
.acc[open] .acc-chev { transform: rotate(-135deg) translateY(-2px); }
.acc summary:focus-visible { outline: 3px solid var(--fg); outline-offset: 2px; border-radius: 12px; }
.acc-body { padding: 0 18px 8px; }
.acc-body .panel-hint { margin: 0 0 8px; }
.acc-body .items { border-top: 1px solid var(--line); }
.acc-body .row:last-child { border-bottom: 0; }

/* Result card lines (read only) */
.cl {
    display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 4px 10px; align-items: start;
    padding: 11px 0; border-bottom: 1px solid var(--line);
}
.cl .cl-name strong { display: block; font-size: 0.9rem; line-height: 1.35; }
.cl .cl-name small { display: block; margin-top: 2px; font-size: 0.78rem; color: var(--muted); }
.cl .cl-total { font-size: 0.92rem; white-space: nowrap; }
.cl .cl-name, .cl .cl-remove { grid-area: auto; }
.cl .cl-remove { width: 26px; height: 26px; margin: -2px -4px 0 0; }
.pkg-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; margin: 0 0 6px; }
.pkg-bar .btn { min-width: 0; }
.cart-details { margin-top: 16px; border-top: 1px solid var(--line); }
.cart-details summary {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 14px 0 6px; cursor: pointer; list-style: none; font-weight: 600; font-size: 0.93rem;
}
.cart-details summary::-webkit-details-marker { display: none; }
.cart-details[open] .acc-chev { transform: rotate(-135deg) translateY(-2px); }
.cart-details .cart-sec:first-child h4 { margin-top: 8px; }
.cart .result { margin-top: 12px; }
.other-note {
    margin-top: 14px; padding: 12px 14px; border: 1.5px dashed var(--line); border-radius: 10px;
    font-size: 0.86rem; line-height: 1.45;
}
.other-note .link-btn { display: inline-block; margin-top: 4px; font-weight: 600; }

/* ---------- Reviews + map ---------- */
.trust-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: stretch; }
.panel > h3 { margin-bottom: 14px; }

.reviews p { color: var(--muted); margin-bottom: 22px; max-width: 30em; }
.stars { display: flex; gap: 4px; margin-bottom: 16px; }
.stars svg { width: 28px; height: 28px; color: var(--muted); }

.map-text { color: var(--muted); margin-bottom: 18px; }
.map-frame {
    position: relative;
    height: 260px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--surface);
}
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-placeholder {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-align: center;
    padding: 20px;
}
.map-placeholder svg { width: 36px; height: 36px; color: var(--muted); }
.map-placeholder small { color: var(--muted); font-size: 0.8rem; max-width: 24em; }

/* ---------- Contact extras ---------- */
.hours {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 22px;
    font-weight: 500;
}
.hours svg { width: 20px; height: 20px; }

.socials { display: flex; gap: 10px; margin-top: 18px; }
.socials a {
    width: 46px; height: 46px;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid var(--band-line);
    border-radius: 50%;
    transition: background var(--t-fast), color var(--t-fast);
}
.socials a:hover { background: var(--band-fg); color: var(--band-bg); }
.socials svg { width: 20px; height: 20px; }

/* ---------- Legal pages ---------- */
.legal { padding: clamp(48px, 7vw, 90px) 0; }
.legal .container { max-width: 760px; }
.legal h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 8px; }
.legal .lead { margin-bottom: 36px; }
.legal h2 { font-size: 1.25rem; margin: 34px 0 10px; letter-spacing: -0.015em; }
.legal p { margin-bottom: 14px; color: var(--muted); }
.legal strong { color: var(--fg); }
.legal a { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Footer (always dark) ---------- */
.site-footer {
    background: var(--black);
    color: rgba(255, 255, 255, 0.6);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding: 28px 0;
    font-size: 0.9rem;
}
.footer-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px 24px;
}
.site-footer a:hover { color: var(--white); }

/* ---------- Mobile call bar ---------- */
.call-bar { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
    .offer-grid, .trust-grid { grid-template-columns: 1fr; }
    .calc { grid-template-columns: minmax(0, 1fr); }
    .calc-side { position: static; }
    .cart { max-height: none; overflow: visible; }
    .card-grid, .steps, .gallery { grid-template-columns: repeat(2, 1fr); }
    .why-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-box { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 680px) {
    body { font-size: 16px; padding-bottom: 68px; }

    .header-inner { gap: 10px; }
    .brand { font-size: 1.05rem; gap: 8px; }
    .brand-mark { height: 28px; }
    .panel { padding: 24px 18px; }
    .field-row { grid-template-columns: 1fr; }
    .field-row-3 { grid-template-columns: 1fr 1fr; }
    .result { padding: 22px 18px; }
    .pkgs { grid-template-columns: 1fr; }
    .pkg { grid-template-columns: 1fr auto; align-items: center; column-gap: 12px; padding: 14px; }
    .pkg strong, .pkg small { grid-column: 1; }
    .pkg-cta { grid-column: 2; grid-row: 1 / span 2; margin: 0; padding: 8px 12px; border: 1.5px solid var(--fg); border-radius: 999px; white-space: nowrap; }
    .qty-unit { display: none; }
    .row-top { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "info info" "price btn"; gap: 10px 12px; }
    .row-info { grid-area: info; }
    .row-price { grid-area: price; text-align: left; }
    .row-price b, .row-price span { display: inline; }
    .row-price span { margin-left: 4px; }
    .intern .row-price b { display: none; }
    .intern input.price-in { display: inline-block; width: 90px; margin: 0; }
    .row-btn { grid-area: btn; }
    .row-total { margin-left: 0; }
    .seg { grid-template-columns: 1fr; }
    .acc summary { padding: 15px 14px; }
    .acc-body { padding: 0 14px 6px; }
    .item { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "info info" "price btn"; gap: 10px 12px; padding: 14px 0; }
    .item-info { grid-area: info; }
    .item-price { grid-area: price; text-align: left; }
    .item-price b, .item-price span { display: inline; }
    .item-price span { margin-left: 4px; }
    .item .btn { grid-area: btn; }
    .custom-row { flex-wrap: wrap; }
    .custom-row .btn { width: 100%; }
    .intern-tools { grid-template-columns: 1fr; }
    .request { margin-top: 20px; }
    .form-actions { flex-direction: column; align-items: stretch; }
    .form-actions .btn { flex: none; width: 100%; }
    .form-actions .or { align-self: center; }
    .btn-lg { padding: 17px 24px; }
    .flow { position: sticky; top: 70px; z-index: 90; margin-inline: -20px; padding: 10px 20px; background: var(--bg); border-bottom: 1px solid var(--line); }
    .flow-txt { font-size: 0.82rem; }
    .cart-fab { bottom: 80px; }
    .form-actions .btn { white-space: normal; }
    .nav-links { gap: 10px; }
    .nav-links a:not(.btn) { display: none; }
    .nav-links .btn { padding: 9px 14px; font-size: 0.85rem; }
    .theme-toggle { width: 54px; height: 30px; }
    .theme-toggle .knob { width: 20px; height: 20px; }
    :root[data-theme="dark"] .theme-toggle .knob { transform: translateX(24px); }

    .card-grid, .steps, .gallery, .why-grid { grid-template-columns: 1fr; }

    .hero .btn-row .btn { width: 100%; }

    .call-bar {
        display: grid;
        grid-template-columns: 1fr 1fr;
        position: fixed;
        left: 0; right: 0; bottom: 0;
        z-index: 150;
        background: var(--black);
        border-top: 1px solid rgba(255, 255, 255, 0.2);
    }
    .call-bar a {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 18px 10px;
        color: var(--white);
        font-weight: 600;
        font-size: 0.95rem;
    }
    .call-bar a + a { border-left: 1px solid rgba(255, 255, 255, 0.2); }
    .call-bar svg { width: 18px; height: 18px; }
}

@media (min-width: 961px) { .cart-fab { display: none !important; } }
@media (max-width: 340px) { .field-row-3 { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; }
}

.footer-legal { flex-basis: 100%; font-size: 0.85rem; color: var(--muted); line-height: 1.6; }