/* ==========================================================
   Fan Auto — style.css
   Zero-dependency. Tokens in :root. See PROJECT.md.
   ========================================================== */

:root {
  /* colors */
  --accent: #E4262C;          /* red from logo */
  --accent-dark: #B91C22;
  --accent-soft: #FDECEC;
  --ink: #16181D;
  --ink-2: #2A2E36;
  --muted: #5B616E;
  --muted-light: #A7ADB8;
  --bg: #FFFFFF;
  --bg-alt: #F4F5F7;
  --line: #E3E5EA;
  --ok: #0E9F6E;
  --error: #D92D20;

  /* layout */
  --nav-h: 68px;
  --wrap: 1160px;
  --gutter: 24px;
  --sp-1: 8px; --sp-2: 16px; --sp-3: 24px; --sp-4: 32px; --sp-5: 48px; --sp-6: 80px;

  /* shape */
  --r-sm: 6px; --r: 12px; --r-lg: 18px;
  --shadow: 0 1px 2px rgba(22,24,29,.06), 0 4px 16px rgba(22,24,29,.06);
  --shadow-lg: 0 10px 40px rgba(22,24,29,.14);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 var(--sp-2); letter-spacing: -.02em; }
h1 { font-size: clamp(34px, 5vw, 56px); font-weight: 800; }
h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; }
h3 { font-size: 20px; font-weight: 700; }
p { margin: 0 0 var(--sp-2); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: var(--sp-1); }
.hl { color: var(--accent); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 26px; border: 2px solid var(--accent); border-radius: var(--r-sm); background: var(--accent); color: #fff; font: inherit; font-weight: 700; font-size: 16px; cursor: pointer; transition: background .2s, border-color .2s, transform .2s; text-decoration: none; }
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); text-decoration: none; transform: translateY(-1px); }
.btn:disabled { opacity: .6; cursor: wait; transform: none; }
.btn-ghost { background: transparent; border-color: rgba(255,255,255,.35); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.08); border-color: #fff; }
.btn-wa svg { width: 20px; height: 20px; flex: none; fill: #25D366; }
.btn-wa:hover { background: rgba(37,211,102,.1); border-color: #25D366; }
.btn-sm { padding: 9px 18px; font-size: 15px; }
.btn-block { width: 100%; }

/* ---------- nav ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: var(--nav-h); background: rgba(255,255,255,.96); backdrop-filter: saturate(180%) blur(10px); -webkit-backdrop-filter: saturate(180%) blur(10px); border-bottom: 1px solid var(--line); }
.nav-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.nav-logo img { height: 36px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a:not(.btn) { color: var(--ink); font-weight: 600; font-size: 15px; }
.nav-links a:not(.btn):hover { color: var(--accent); text-decoration: none; }

.burger { display: none; width: 44px; height: 44px; padding: 10px; border: 0; background: none; cursor: pointer; }
.burger span { display: block; height: 2px; margin: 5px 0; background: var(--ink); border-radius: 2px; transition: transform .25s, opacity .25s; }
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

#mobile-menu { position: fixed; top: var(--nav-h); left: 0; right: 0; z-index: 99; display: flex; flex-direction: column; gap: 4px; padding: var(--sp-2) var(--gutter) var(--sp-3); background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .2s, transform .2s, visibility .2s; }
#mobile-menu.open { opacity: 1; visibility: visible; transform: none; }
.mobile-nav-link { padding: 12px 4px; color: var(--ink); font-weight: 600; font-size: 18px; border-bottom: 1px solid var(--line); }
.mobile-nav-link.btn { margin-top: var(--sp-2); color: #fff; border-bottom: 2px solid var(--accent); }
.mobile-act { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; margin-top: 4px; padding: 0 16px; border: 2px solid #D5D8DE; border-radius: var(--r-sm); color: var(--ink); font-size: 17px; font-weight: 700; transition: border-color .2s, background .2s; }
.mobile-act:hover { border-color: var(--ink); background: #F6F7F9; text-decoration: none; }
.mobile-act svg { width: 20px; height: 20px; flex: none; }
.mobile-tel svg { color: var(--accent); }
.mobile-wa svg { fill: #25D366; }
@media (min-width: 769px) { #mobile-menu { visibility: hidden !important; opacity: 0 !important; pointer-events: none; } }

/* ---------- hero ---------- */
.hero { position: relative; padding: calc(var(--nav-h) + var(--sp-6)) 0 calc(var(--sp-6) + 24px); color: #fff; background: #111214; overflow: hidden; }
.hero-inner { position: relative; display: grid; grid-template-columns: 1.5fr 1fr; gap: var(--sp-5); align-items: center; }
.hero .eyebrow { color: #A7ADB8; }
.hero-sub { font-size: 19px; color: #C9CDD5; max-width: 600px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: var(--sp-3) 0; }
.hero-points { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; color: #DADDE3; font-size: 15px; }
.hero-points li { position: relative; padding-left: 26px; }
.hero-points li::before { content: ""; position: absolute; left: 0; top: 7px; width: 14px; height: 8px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }

.hero-side { display: flex; flex-direction: column; gap: var(--sp-5); }
/* Desktop: hero = tot ecranul vizibil; conținutul centrat vertical, banda în carouri (taximetru) lipită de marginea de jos a ecranului */
@media (min-width: 769px) {
  .hero { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding-top: calc(var(--nav-h) + var(--sp-4)); padding-bottom: calc(var(--sp-4) + 24px); }
  .hero-inner { width: 100%; align-items: stretch; }
  .hero-text { display: flex; flex-direction: column; justify-content: space-between; }
  .hero-side { gap: var(--sp-3); }
}
.hero-logo { width: 100%; height: auto; padding: 0 4px; }
.hero-card { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: var(--r-lg); padding: var(--sp-4); }
.hero-card h2 { font-size: 18px; letter-spacing: 0; margin-bottom: var(--sp-2); }
.hours { margin: 0 0 var(--sp-3); }
.hours div { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.1); font-size: 15px; }
.hours dt { color: #B9BEC8; }
.hours dd { margin: 0; font-weight: 700; }
.hero-line { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 0 0 6px; }
.hero-label { font-size: 15px; color: #B9BEC8; }
.hero-phone { font-size: 26px; font-weight: 800; color: #fff; letter-spacing: -.01em; }
.hero-mail { color: #fff; font-weight: 600; }
.hero-mail:hover { color: #A7ADB8; text-decoration: none; }

.checker { position: absolute; left: 0; right: 0; bottom: 0; height: 24px; background: repeating-conic-gradient(var(--ink) 0 25%, #fff 0 50%) 0 0 / 24px 24px; opacity: .9; }

/* ---------- sections ---------- */
.section { padding: var(--sp-6) 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--ink); color: #fff; }
.section-dark .section-head p { color: #B9BEC8; }
.section-head { max-width: 680px; margin-bottom: var(--sp-5); }
.section-head p:last-child { color: var(--muted); font-size: 18px; }
/* Intro text on one line on wide screens; wraps normally below 1100px */
.section-head--wide { max-width: none; }
@media (min-width: 1100px) { .section-head--wide p:last-child { white-space: nowrap; } }

/* ---------- product cards ---------- */
.pgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-3); }
.pcard { position: relative; display: flex; flex-direction: column; padding: var(--sp-4) var(--sp-3) var(--sp-3); background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; transition: transform .2s, box-shadow .2s; }
.pcard::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--card-accent); }
.pcard:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.pcard-tag { align-self: flex-start; margin-bottom: 12px; padding: 3px 10px; border-radius: 99px; font-size: 12px; font-weight: 700; letter-spacing: .04em; color: var(--card-accent); background: color-mix(in srgb, var(--card-accent) 10%, #fff); }
.pcard p { color: var(--muted); font-size: 15px; }
.pcard-list { list-style: none; padding: 0; margin: 0 0 var(--sp-3); font-size: 15px; }
.pcard-list li { padding: 6px 0 6px 18px; position: relative; border-top: 1px dashed var(--line); }
.pcard-list li::before { content: ""; position: absolute; left: 2px; top: 15px; width: 6px; height: 6px; border-radius: 50%; background: var(--card-accent); }
.pcard-cta { margin-top: auto; font-weight: 700; color: var(--accent); }
.swipe-hint { display: none; }

/* ---------- service cards ---------- */
.sgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-3); margin-bottom: var(--sp-5); }
.scard { position: relative; padding: var(--sp-4); background: #fff; border-radius: var(--r); box-shadow: var(--shadow); border-top: 4px solid var(--card-accent); }
.scard-icon { width: 44px; height: 44px; padding: 9px; margin-bottom: var(--sp-2); border-radius: 10px; background: var(--accent-soft); fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.scard p { color: var(--muted); margin: 0; }

/* ---------- about ---------- */
.about { display: grid; grid-template-columns: 1.2fr 1fr; gap: var(--sp-5); align-items: start; }
.about-text p { color: var(--ink-2); }
.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { position: relative; padding: 6px 0 6px 28px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 12px; width: 12px; height: 7px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.motto { padding: var(--sp-4); border-radius: var(--r-lg); background: var(--bg-alt); border-left: 5px solid var(--accent); }
.motto-quote { font-size: 28px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 4px; }
.motto-sub { color: var(--muted); }
.motto-list { margin: 0; padding-left: 22px; }
.motto-list li { padding: 6px 0; }

/* ---------- forms ---------- */
.form-wrap { max-width: 820px; }
.form { display: grid; gap: var(--sp-2); }
.frow { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-2); }
.field label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 600; }
.field .opt { font-weight: 400; color: var(--muted-light); }
.field input[type=text], .field input[type=tel], .field input[type=email], .field textarea { width: 100%; padding: 12px 14px; font: inherit; font-size: 16px; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm); transition: border-color .15s, box-shadow .15s; }
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(228,38,44,.2); }
.field.invalid input, .field.invalid textarea { border-color: var(--error); }
.field.check label { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.field.check input { margin-top: 5px; width: 18px; height: 18px; accent-color: var(--accent); flex-shrink: 0; }
.err { display: block; min-height: 0; margin-top: 4px; font-size: 13px; color: var(--error); }
.section-dark .err { color: #FF8A8E; }
.section-dark .field label a { color: #FF8A8E; }
.form-msg { margin: 0; font-weight: 600; display: none; }
.form-msg.show { display: block; }
.form-msg.ok { color: var(--ok); }
.form-msg.fail { color: var(--error); }
/* After a successful send: show only the confirmation */
.form.sent > :not(.form-msg) { display: none; }
.form.sent .form-msg { font-size: 20px; line-height: 1.4; padding: var(--sp-2) 0; }
.modal-panel:has(.form.sent) .modal-head { display: none; }
/* Confirmation: panel is only as wide as the text (room left for the × button) */
@media (min-width: 481px) {
  .modal-panel:has(.form.sent) { width: auto; max-width: min(880px, 100%); padding-right: 76px; }
}
.section-dark .form-msg.ok { color: #4ADE80; }
.section-dark .form-msg.fail { color: #FF8A8E; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- offer band (#oferta) ---------- */
.offer-band { display: grid; grid-template-columns: 1.5fr 1fr; gap: var(--sp-5); align-items: center; }
.offer-text p { color: #B9BEC8; font-size: 18px; }
.offer-steps { list-style: none; counter-reset: st; padding: 0; margin: var(--sp-3) 0 0; display: flex; flex-wrap: wrap; gap: 10px 28px; color: #DADDE3; font-size: 15px; }
.offer-steps li { counter-increment: st; display: flex; align-items: center; gap: 10px; }
.offer-steps li::before { content: counter(st); display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 800; font-size: 13px; }
.offer-actions { display: flex; flex-direction: column; gap: 12px; }

/* ---------- modal ---------- */
.modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: var(--sp-3); opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s; }
.modal.open { opacity: 1; visibility: visible; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(10,11,13,.72); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.modal-panel { position: relative; width: 100%; max-width: 760px; max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px); overflow-y: auto; overscroll-behavior: contain; padding: var(--sp-4); background: #fff; border-radius: var(--r-lg); border-top: 5px solid var(--accent); box-shadow: 0 24px 80px rgba(0,0,0,.4); transform: translateY(16px) scale(.98); transition: transform .25s ease; }
.modal.open .modal-panel { transform: none; }
.modal-head { margin-bottom: var(--sp-3); padding-right: 44px; }
.modal-head h2 { font-size: clamp(24px, 3vw, 32px); margin-bottom: 6px; }
.modal-head p:last-child { color: var(--muted); margin: 0; }
.modal-close { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; padding: 9px; border: 0; border-radius: 50%; background: var(--bg-alt); cursor: pointer; transition: background .15s; }
.modal-close:hover { background: var(--line); }
.modal-close svg { width: 22px; height: 22px; fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; }
body.lock { overflow: hidden; }
/* compact form inside the modal, so the whole form fits on 13" / Full HD screens */
.modal-panel { max-width: 880px; padding: 28px 32px; }
.modal-head { margin-bottom: 18px; }
.modal-head .eyebrow { margin-bottom: 4px; }
.modal-head h2 { font-size: clamp(22px, 2.4vw, 28px); margin-bottom: 4px; }
.modal-head p:last-child { font-size: 15px; }
.modal .form { gap: 12px; }
.modal .frow { gap: 12px; }
.modal .frow-3 { grid-template-columns: repeat(3, 1fr); }
.modal .field label { margin-bottom: 4px; font-size: 13px; }
.modal .field input[type=text], .modal .field input[type=tel], .modal .field input[type=email], .modal .field textarea { padding: 9px 12px; font-size: 15px; }
.modal .field textarea { min-height: 76px; }
.modal .field.check label { font-size: 14px; line-height: 1.45; }
.modal .field.check input { margin-top: 2px; }
[hidden] { display: none !important; }
.frow-auto { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 1fr; }
.field select { width: 100%; padding: 9px 36px 9px 12px; font: inherit; font-size: 15px; color: var(--ink); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235B616E' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center / 16px; border: 1px solid var(--line); border-radius: var(--r-sm); -webkit-appearance: none; appearance: none; cursor: pointer; }
.field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(228,38,44,.2); }
.field.invalid select { border-color: var(--error); }
.kind { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 0; padding: 0; border: 0; }
.kind legend { float: left; margin-right: 6px; padding: 0; font-size: 13px; font-weight: 600; }
.kind .err { flex-basis: 100%; margin: 0; }
.pill { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 7px 16px 7px 12px; border: 1.5px solid var(--line); border-radius: 99px; font-size: 14px; font-weight: 600; cursor: pointer; user-select: none; transition: border-color .15s, background .15s, color .15s; }
.pill input { width: 16px; height: 16px; margin: 0; accent-color: var(--accent); }
.pill:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-dark); }
.pill:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }
/* generic open: nothing preselected → nudge the visitor to pick Piese / Service */
.pill.hint { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(228,38,44,.18); }
.form-foot { display: grid; grid-template-columns: 1fr auto; gap: 12px 24px; align-items: center; padding-top: 4px; }
.form-foot .btn { padding: 12px 28px; }
@media (max-height: 640px) and (min-width: 769px) { .modal-panel { padding: 20px 28px; } .modal-head p:last-child { display: none; } }
@media (prefers-reduced-motion: reduce) { .modal, .modal-panel { transition: none; } }

/* ---------- contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: var(--sp-5); align-items: start; }
.cinfo { list-style: none; padding: 0; margin: 0; }
.cinfo li { padding: var(--sp-2) 0; border-bottom: 1px solid var(--line); }
.cinfo-split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3); }
.cinfo-wa { display: inline-flex; align-items: center; gap: 8px; }
.cinfo-wa svg { width: 20px; height: 20px; flex: none; fill: #25D366; }
.cinfo-email { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-2) var(--sp-3); align-items: start; }
.cinfo-social { min-width: 0; }
@media (max-width: 600px) { .cinfo-email { grid-template-columns: 1fr; } }
.cinfo-social-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.soc { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border: 1px solid var(--line); border-radius: 8px; font-size: 14px; font-weight: 600; color: var(--ink); text-decoration: none; transition: border-color .15s, background .15s; }
.soc:hover { border-color: var(--ink); background: #F6F7F9; }
.soc svg { width: 18px; height: 18px; flex: none; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.soc-ig svg { stroke: #E1306C; }
.soc-fb svg { stroke: #1877F2; }
@media (max-width: 480px) { .cinfo .sep { display: none; } .cinfo .prog-sat { display: block; } }
.cinfo-label { display: block; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.form-light { padding: var(--sp-4); background: var(--bg-alt); border-radius: var(--r-lg); }

/* ---------- footer ---------- */
.footer { background: #0F1114; color: #A7ADB8; font-size: 15px; padding-top: var(--sp-5); }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--sp-4); padding-bottom: var(--sp-4); }
.footer-brand img { height: 32px; width: auto; margin-bottom: var(--sp-2); }
.footer h3 { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: #fff; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { padding: 3px 0; }
.footer a { color: #A7ADB8; }
.footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding-top: var(--sp-2); padding-bottom: var(--sp-3); font-size: 13px; }
.footer-bottom p { margin: 0; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 40px; }
.credit { word-spacing: .25em; }
.credit a { text-decoration: none; transition: color .2s; }

/* ---------- scroll to top ---------- */
#scrollTop { position: fixed; right: 20px; bottom: 20px; z-index: 90; width: 46px; height: 46px; border: 0; border-radius: 50%; background: var(--accent); box-shadow: var(--shadow-lg); cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .25s, transform .25s, visibility .25s; }
#scrollTop.visible { opacity: 1; visibility: visible; transform: none; }
#scrollTop svg { width: 22px; height: 22px; margin: auto; fill: none; stroke: #fff; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- fade-in ---------- */
.fade { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.fade.in { opacity: 1; transform: none; }
.d1 { transition-delay: .07s; } .d2 { transition-delay: .14s; } .d3 { transition-delay: .21s; } .d4 { transition-delay: .28s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fade { opacity: 1; transform: none; transition: none; }
}

/* ---------- retina thin borders ---------- */
@media (-webkit-min-device-pixel-ratio: 2) {
  .nav, .pcard, .cinfo li, .mobile-nav-link { border-width: .5px; }
}

/* ---------- 768px ---------- */
@media (max-width: 768px) {
  :root { --nav-h: 60px; --gutter: 20px; --sp-6: 56px; }
  .nav-links { display: none; }
  .burger { display: block; }
  .nav-logo img { height: 30px; }
  .hero-inner, .about, .contact, .offer-band { grid-template-columns: 1fr; gap: var(--sp-4); }
  .pgrid, .sgrid { grid-template-columns: 1fr 1fr; }
  .hero-logo { display: none; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .pgrid [style*="grid-template-columns"] { grid-template-columns: 1fr !important; }
  .modal .frow-3 { grid-template-columns: 1fr 1fr; }
  .modal .frow-3 .field:last-child { grid-column: 1 / -1; }
  .form-foot { grid-template-columns: 1fr; }
  .frow-auto { grid-auto-flow: row; grid-template-columns: 1fr 1fr; }
  .frow-auto .field:first-child { grid-column: 1 / -1; }
  .form-foot .btn { width: 100%; }
}

/* ---------- 480px ---------- */
@media (max-width: 480px) {
  body { font-size: 16px; }
  .pgrid, .sgrid, .frow, .footer-inner { grid-template-columns: 1fr; }
  .hero-cta .btn { width: 100%; }
  .modal { padding: 0; align-items: flex-end; }
  .modal .frow-3, .frow-auto { grid-template-columns: 1fr; }
  .field select { font-size: 16px; }
  .modal .frow-3 .field:last-child { grid-column: auto; }
  .modal .field input[type=text], .modal .field input[type=tel], .modal .field input[type=email], .modal .field textarea { font-size: 16px; }
  .modal-panel { max-height: 94vh; max-height: 94dvh; border-radius: var(--r-lg) var(--r-lg) 0 0; padding: var(--sp-3) var(--sp-3) calc(var(--sp-3) + env(safe-area-inset-bottom, 0px)); transform: translateY(40px); }
  .hero-card, .form-light, .motto { padding: var(--sp-3); }
  .field input[type=text], .field input[type=tel], .field input[type=email], .field textarea { font-size: 16px; }

  /* tighter vertical rhythm on phones */
  :root { --sp-6: 48px; --sp-5: 36px; }
  .hero { padding-bottom: calc(var(--sp-5) + 24px); }
  .hero-sub { font-size: 17px; }
  .hero-cta { margin: var(--sp-3) 0 20px; }
  .section-head { margin-bottom: var(--sp-4); }
  .section-head p:last-child { font-size: 16px; }
  .motto-quote { font-size: 24px; }

  /* products: stacked vertically, no horizontal scroll */
  .pcard { padding: var(--sp-3) 20px 20px; }
  .pcard:hover { transform: none; box-shadow: var(--shadow); }

  /* service: compact rows, icon on the left */
  .sgrid { gap: 12px; margin-bottom: var(--sp-4); }
  .scard { display: grid; grid-template-columns: 44px 1fr; column-gap: 16px; align-items: start; padding: 18px 20px; }
  .scard-icon { grid-row: span 2; margin: 0; }
  .scard h3 { font-size: 18px; margin-bottom: 2px; }
  .scard p { font-size: 15px; }
  #service .center .btn { width: 100%; }

  /* offer modal: pills on one row, Telefon + Email side by side */
  .kind legend { width: 100%; margin: 0 0 2px; }
  .kind .pill { flex: 1; justify-content: center; gap: 6px; padding: 10px 6px; white-space: nowrap; }
  /* × stays reachable while the form scrolls; shorter header */
  .modal-close { position: sticky; top: 0; z-index: 2; float: right; margin: -6px -6px 0 8px; box-shadow: 0 2px 8px rgba(22,24,29,.12); }
  .modal-head { padding-right: 0; margin-bottom: 14px; }
  .modal-head h2 { font-size: 21px; }
  .modal-head p:last-child { display: none; }
  .modal .frow-3 { grid-template-columns: 1fr 1fr; }
  .modal .frow-3 .field:first-child { grid-column: 1 / -1; }

  /* keep the copyright clear of the scroll-to-top button */
  .footer-bottom { padding-right: 76px; }
}

/* ---------- notched iPhones ---------- */
@supports (padding-top: env(safe-area-inset-top)) {
  .nav { height: calc(var(--nav-h) + env(safe-area-inset-top)); padding-top: env(safe-area-inset-top); }
  .hero { padding-top: calc(var(--nav-h) + env(safe-area-inset-top) + var(--sp-6)); }
  @media (min-width: 769px) { .hero { padding-top: calc(var(--nav-h) + env(safe-area-inset-top) + var(--sp-4)); } }
  #mobile-menu { top: calc(var(--nav-h) + env(safe-area-inset-top)); padding-bottom: calc(var(--sp-3) + env(safe-area-inset-bottom)); }
  .wrap { padding-left: max(var(--gutter), env(safe-area-inset-left)); padding-right: max(var(--gutter), env(safe-area-inset-right)); }
  #scrollTop { bottom: calc(20px + env(safe-area-inset-bottom)); }
}

/* ---------- legal pages (politica-*.html, termeni.html, gdpr.html) ---------- */
.legal { padding: calc(var(--nav-h) + var(--sp-5)) 0 var(--sp-6); }
.legal-wrap { max-width: 800px; }
.legal h1 { font-size: clamp(30px, 4vw, 44px); }
.legal .meta { color: var(--muted); font-size: 15px; margin-bottom: var(--sp-4); padding-bottom: var(--sp-3); border-bottom: 1px solid var(--line); }
.legal h2 { font-size: 24px; margin-top: var(--sp-4); }
.legal h3 { font-size: 18px; margin-top: var(--sp-3); }
.legal p, .legal li { color: var(--ink-2); }
.legal ul { padding-left: 22px; margin: 0 0 var(--sp-2); }
.legal li { margin-bottom: 6px; }
.legal a { text-decoration: underline; text-underline-offset: 2px; }
.legal a:hover { color: var(--accent-dark); }
.legal table { width: 100%; border-collapse: collapse; font-size: 15px; margin: var(--sp-2) 0 var(--sp-3); }
.legal th, .legal td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal th { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.legal .box { padding: var(--sp-3); margin: var(--sp-3) 0; background: var(--bg-alt); border-left: 4px solid var(--accent); border-radius: var(--r-sm); }
.legal .box p:last-child { margin-bottom: 0; }
.legal .form { margin-top: var(--sp-3); padding: var(--sp-4); background: var(--bg-alt); border-radius: var(--r-lg); }
.legal .form h2 { margin-top: 0; font-size: 20px; }
.rights { list-style: none; padding: 0; margin: 0 0 var(--sp-2); display: grid; gap: 8px; }
.rights li { margin: 0; }
.rights label { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; background: #fff; border: 1.5px solid var(--line); border-radius: var(--r-sm); cursor: pointer; font-weight: 400; margin: 0; }
.rights label:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.rights input { margin-top: 5px; width: 18px; height: 18px; accent-color: var(--accent); flex-shrink: 0; }
.rights small { display: block; color: var(--muted); font-size: 13px; }
@media (max-width: 480px) {
  .legal { padding-top: calc(var(--nav-h) + var(--sp-4)); }
  .legal table { display: block; overflow-x: auto; }
  .legal .form { padding: var(--sp-3); }
}

/* ---------- Modal: politica de confidențialitate (peste modalul de ofertă) ---------- */
.modal-policy { z-index: 210; }
/* Panoul nu derulează (colțurile rotunjite + bara roșie rămân curate); derulează doar #policyBody */
.modal-policy .modal-panel { max-width: 820px; padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.legal.legal-in { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 32px 36px 36px; outline: 0; }
.modal-policy .modal-close { position: absolute; float: none; margin: 0; top: 16px; right: 26px; z-index: 3; }
.legal-in .eyebrow, .legal-in h1 { padding-right: 52px; }
.legal-in h1 { font-size: clamp(24px, 3vw, 32px); }
.legal-in .meta { margin-bottom: var(--sp-3); padding-bottom: var(--sp-2); }
.legal-in h2:first-of-type { margin-top: var(--sp-3); }
@media (max-width: 480px) {
  .legal.legal-in { padding: 20px 16px calc(24px + env(safe-area-inset-bottom, 0px)); }
  .modal-policy .modal-close { top: 10px; right: 10px; }
}


/* ---------- Parteneri (2 rânduri fixe sub cardul de program) ---------- */
.partner { margin-top: -12px; display: flex; align-items: center; padding: 10px 14px; border: 1px solid rgba(255,255,255,.12); border-radius: var(--r-lg); background: rgba(255,255,255,.04); font-size: 13px; line-height: 1.4; }
.partner-label { flex: none; font-size: 14px; font-weight: 800; color: #fff; }
.partner-div { flex: none; align-self: stretch; width: 1px; margin: 0 20px; background: rgba(255,255,255,.14); }
.partner-rows { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.partner-slide { display: block; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #C9CDD5; }
.partner-slide + .partner-slide { padding-top: 6px; border-top: 1px solid rgba(255,255,255,.08); }
.partner-slide b { color: #fff; font-weight: 600; }
.partner-slide::after { content: ""; display: inline-block; width: 14px; height: 14px; margin-left: 8px; vertical-align: -2px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23E4262C' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 8h11M9 3.5 13.5 8 9 12.5'/%3E%3C/svg%3E") center / contain no-repeat; }
.partner-slide:hover { color: #fff; text-decoration: none; }
@media (max-width: 480px) {
  .partner { margin-top: 0; padding: 10px 12px; }
  .partner-label, .partner-div { display: none; }
}
