/* ---------- Tokens ---------- */
:root {
  --petrol: #0f3a42;      /* culoarea de bază, „apă adâncă” */
  --petrol-deep: #082a31;
  --orange: #f26b1d;      /* portocaliul de autospecială */
  --orange-dark: #c9520e;
  --concrete: #e9ecea;    /* beton deschis */
  --ink: #16262b;
  --muted: #4f6267;
  --white: #ffffff;
  --line: #cfd6d4;

  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Barlow", system-ui, sans-serif;

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--concrete);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 {
  font-family: var(--display);
  line-height: 1.02;
  margin: 0;
  letter-spacing: -0.005em;
}
h2 { font-size: clamp(2.2rem, 5vw, 3.5rem); font-weight: 800; }
h3 { font-size: 1.6rem; font-weight: 700; }
p { margin: 0 0 1em; }

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

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--orange); color: var(--white); padding: .6em 1em; z-index: 100;
}
.skip:focus { left: 8px; top: 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 52px; padding: .7em 1.4em;
  font-family: var(--display); font-weight: 700; font-size: 1.2rem; letter-spacing: .01em;
  text-decoration: none; border-radius: var(--radius); border: 2px solid transparent;
  cursor: pointer; transition: background-color .15s, border-color .15s;
}
.btn svg { width: 22px; height: 22px; fill: currentColor; }
.btn--primary { background: var(--orange); color: var(--white); }
.btn--primary:hover { background: var(--orange-dark); }
.btn--wa { background: #1f8f4e; color: var(--white); }
.btn--wa:hover { background: #18773f; }
.btn--ghost { color: var(--white); border-color: rgba(255,255,255,.6); }
.btn--ghost:hover { border-color: var(--white); background: rgba(255,255,255,.08); }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: var(--petrol-deep); color: var(--white);
}
.topbar__inner { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand__mark { width: 36px; height: 36px; flex: none; }
.brand__name { font-family: var(--display); font-size: 1.55rem; font-weight: 600; letter-spacing: .01em; }
.brand__name b { font-weight: 800; color: var(--orange); margin-left: .18em; }

.nav { margin-left: auto; }
.nav__list { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav__list a {
  display: block; padding: .5em .8em; text-decoration: none;
  font-weight: 500; color: rgba(255,255,255,.82); border-radius: var(--radius);
}
.nav__list a:hover { color: var(--white); background: rgba(255,255,255,.08); }
.nav__toggle { display: none; }

.topbar__call {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--orange); color: var(--white); text-decoration: none;
  font-family: var(--display); font-weight: 700; font-size: 1.25rem;
  padding: .45em 1em; border-radius: var(--radius);
}
.topbar__call:hover { background: var(--orange-dark); }
.topbar__call svg { width: 18px; height: 18px; fill: currentColor; }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  color: var(--white); background: var(--petrol);
  min-height: min(88vh, 820px);
  display: flex; align-items: center;
}
.hero__img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 62% 60%; z-index: -2;
}
.hero__shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(8,42,49,.94) 0%, rgba(8,42,49,.82) 38%, rgba(8,42,49,.25) 72%, rgba(8,42,49,.1) 100%),
    linear-gradient(0deg, rgba(8,42,49,.6) 0%, transparent 35%);
}
.hero__inner { padding-top: 72px; padding-bottom: 96px; width: 100%; }
.hero__inner > * { max-width: 640px; }

.hero__status {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 500; color: rgba(255,255,255,.9);
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18);
  padding: .35em .9em; border-radius: 999px; margin-bottom: 22px;
}
.pulse {
  width: 10px; height: 10px; border-radius: 50%; background: #3ddc84; flex: none;
  box-shadow: 0 0 0 0 rgba(61,220,132,.6); animation: pulse 2.2s infinite;
}
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(61,220,132,0); } 100% { box-shadow: 0 0 0 0 rgba(61,220,132,0); } }

.hero__title {
  font-size: clamp(2.9rem, 7.4vw, 5.6rem);
  font-weight: 800; line-height: .95; text-wrap: balance;
  margin-bottom: 22px;
}
.hero__lead { font-size: 1.18rem; color: rgba(255,255,255,.86); max-width: 54ch; }

/* numărul de telefon, scris ca pe cisterna autospecialei */
.hero__phone {
  display: inline-flex; flex-direction: column; text-decoration: none;
  margin: 14px 0 26px; padding: 14px 22px 10px;
  background: var(--orange); border-radius: var(--radius);
  box-shadow: 0 0 0 4px rgba(242,107,29,.25);
  transition: transform .15s;
}
.hero__phone:hover { transform: translateY(-2px); }
.hero__phone-label { font-weight: 600; font-size: .95rem; color: rgba(255,255,255,.92); }
.hero__phone-num {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(3rem, 8vw, 5rem); line-height: .95; letter-spacing: .01em;
  font-variant-numeric: tabular-nums;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* banda de avertizare, ca marcajul de pe autospeciale */
.hazard {
  position: absolute; left: 0; right: 0; bottom: 0; height: 16px;
  background: repeating-linear-gradient(-45deg, var(--orange) 0 22px, var(--white) 22px 44px);
}

/* ---------- Section heads ---------- */
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head h2 { margin-bottom: 14px; }
.section-head p { font-size: 1.15rem; color: var(--muted); }

/* ---------- Services ---------- */
.services { padding: clamp(64px, 10vw, 120px) 0; }

.feature {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 0;
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  margin-bottom: 28px;
}
.feature__media img { width: 100%; height: 100%; object-fit: cover; min-height: 320px; }
.feature__body { padding: clamp(28px, 4vw, 52px); align-self: center; }
.feature__body h3 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); font-weight: 800; margin-bottom: 16px; }
.feature__body p { color: var(--muted); }

.ticks { list-style: none; margin: 18px 0 0; padding: 0; }
.ticks li { position: relative; padding-left: 30px; margin-bottom: 8px; font-weight: 500; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .45em;
  width: 16px; height: 9px; border-left: 3px solid var(--orange); border-bottom: 3px solid var(--orange);
  transform: rotate(-45deg);
}

.service-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.service {
  display: grid; grid-template-columns: 180px 1fr;
  background: var(--white); border-radius: var(--radius); overflow: hidden;
}
.service img { width: 100%; height: 100%; object-fit: cover; min-height: 200px; filter: saturate(.85); }
.service .service__img--contain { object-fit: contain; background: #f4f5f4; padding: 10px; filter: none; }
.service__body { padding: 24px 26px; }
.service__body h3 { margin-bottom: 10px; }
.service__body p { color: var(--muted); margin: 0; font-size: 1rem; }

/* ---------- Clients ---------- */
.clients {
  position: relative; isolation: isolate; color: var(--white);
  padding: clamp(64px, 9vw, 110px) 0;
  background: var(--petrol) url("../img/capac-canal.jpg") center / cover;
}
.clients::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(15,58,66,.9); }
.clients__inner { display: grid; grid-template-columns: 1fr 2fr; gap: 48px; align-items: start; }
.clients__list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px 40px; margin: 0; }
.clients__list div { border-top: 3px solid var(--orange); padding-top: 14px; }
.clients__list dt { font-family: var(--display); font-weight: 700; font-size: 1.6rem; line-height: 1.1; margin-bottom: 6px; }
.clients__list dd { margin: 0; color: rgba(255,255,255,.78); }

/* ---------- Steps ---------- */
.steps { padding: clamp(64px, 10vw, 120px) 0; }
.steps__list {
  list-style: none; margin: 0; padding: 0; counter-reset: pas;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
}
.steps__list li { counter-increment: pas; position: relative; padding: 0 28px 0 0; }
.steps__list li::before {
  content: counter(pas);
  display: flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--petrol); color: var(--white);
  font-family: var(--display); font-weight: 800; font-size: 1.7rem;
  margin-bottom: 20px; position: relative; z-index: 1;
}
/* conducta care leagă pașii */
.steps__list li::after {
  content: ""; position: absolute; top: 24px; left: 56px; right: 0; height: 8px;
  background: var(--line); border-radius: 4px;
}
.steps__list li:last-child::after { display: none; }
.steps__list h3 { margin-bottom: 8px; }
.steps__list p { color: var(--muted); font-size: 1rem; }

/* ---------- Area ---------- */
.area { display: grid; grid-template-columns: 1fr 1fr; background: var(--petrol-deep); color: var(--white); }
.area__media img { width: 100%; height: 100%; object-fit: cover; min-height: 420px; }
.area__body { padding: clamp(44px, 6vw, 88px) var(--gutter); max-width: 640px; }
.area__body h2 { margin-bottom: 16px; }
.area__body > p { color: rgba(255,255,255,.8); }
.towns { list-style: none; padding: 0; margin: 26px 0; display: flex; flex-wrap: wrap; gap: 8px; }
.towns li {
  font-family: var(--display); font-weight: 600; font-size: 1.2rem;
  padding: .2em .75em; border: 1px solid rgba(255,255,255,.28); border-radius: 999px;
}
.towns .towns__main { background: var(--orange); border-color: var(--orange); font-weight: 800; }
.area__note { font-size: .98rem; color: rgba(255,255,255,.7); margin: 0; }

/* ---------- FAQ ---------- */
.faq { padding: clamp(64px, 10vw, 120px) 0; }
.faq__inner { display: grid; grid-template-columns: 1fr 2fr; gap: 48px; align-items: start; }
.faq__list { border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 20px 48px 20px 0;
  font-family: var(--display); font-weight: 700; font-size: 1.45rem; line-height: 1.15;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 14px; height: 14px; margin-top: -10px;
  border-right: 3px solid var(--orange); border-bottom: 3px solid var(--orange);
  transform: rotate(45deg); transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -3px; }
.faq details p { color: var(--muted); max-width: 66ch; padding-bottom: 8px; }

/* ---------- Contact ---------- */
.contact { background: var(--white); padding: clamp(64px, 10vw, 120px) 0; }
.contact__inner { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 6vw, 80px); }
.contact__info h2 { margin-bottom: 14px; }
.contact__info > p { color: var(--muted); font-size: 1.1rem; }
.contact__phone {
  display: inline-block; margin: 10px 0 28px;
  font-family: var(--display); font-weight: 800; font-size: clamp(2.6rem, 6vw, 3.8rem);
  color: var(--orange); text-decoration: none; line-height: 1;
}
.contact__phone:hover { color: var(--orange-dark); }
.contact__meta { list-style: none; padding: 0; margin: 0; }
.contact__meta li { display: grid; grid-template-columns: 110px 1fr; padding: 12px 0; border-top: 1px solid var(--line); }
.contact__meta span { color: var(--muted); }

.form {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px;
  background: var(--concrete); padding: clamp(22px, 4vw, 40px); border-radius: var(--radius);
  align-content: start;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: .98rem; }
.field input, .field select, .field textarea {
  font: inherit; color: var(--ink); background: var(--white);
  border: 1.5px solid var(--line); border-radius: var(--radius);
  padding: .65em .8em; min-height: 48px; width: 100%;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(242,107,29,.22); }
.field [aria-invalid="true"] { border-color: #c62828; }
.form__error { grid-column: 1 / -1; margin: 0; color: #b71c1c; font-weight: 600; }
.form__hint { margin: 0; font-size: .9rem; color: var(--muted); }

/* ---------- Footer ---------- */
.footer { background: var(--petrol-deep); color: rgba(255,255,255,.72); padding: 48px 0 40px; font-size: .95rem; }
.footer__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.footer p { margin: 0 0 .5em; }
.footer a { color: rgba(255,255,255,.9); }
.footer__brand { font-family: var(--display); font-size: 1.6rem; font-weight: 600; color: var(--white); }
.footer__brand b { color: var(--orange); font-weight: 800; margin-left: .18em; }
.footer__legal { list-style: none; padding: 0; margin: 0 0 .5em; display: flex; flex-wrap: wrap; gap: 4px 18px; }
.credits summary { cursor: pointer; color: var(--white); font-weight: 600; margin-bottom: 10px; }
.credits ul { padding-left: 1.1em; margin: 8px 0 0; font-size: .88rem; }
.credits li { margin-bottom: 4px; }
.credits p { font-size: .88rem; }

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

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .nav__toggle {
    display: inline-flex; align-items: center; min-height: 44px;
    font: inherit; font-weight: 600; color: var(--white);
    background: none; border: 1.5px solid rgba(255,255,255,.4); border-radius: var(--radius);
    padding: 0 1em; cursor: pointer;
  }
  .nav__list {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; background: var(--petrol-deep); padding: 8px var(--gutter) 20px;
    border-top: 1px solid rgba(255,255,255,.1);
  }
  .nav__list.is-open { display: flex; }
  .nav__list a { padding: .8em 0; font-size: 1.1rem; }

  .feature { grid-template-columns: 1fr; }
  .feature__media img { min-height: 0; aspect-ratio: 16 / 9; }
  .service-grid { grid-template-columns: 1fr; }
  .clients__inner, .faq__inner, .contact__inner, .footer__inner { grid-template-columns: 1fr; gap: 32px; }
  .steps__list { grid-template-columns: 1fr 1fr; gap: 36px 0; }
  .steps__list li:nth-child(2)::after { display: none; }
  .area { grid-template-columns: 1fr; }
  .area__media img { min-height: 0; aspect-ratio: 16 / 9; }
}

@media (max-width: 640px) {
  body { padding-bottom: 64px; }
  .topbar__call { display: none; }
  .topbar__inner { min-height: 60px; }
  .brand__name { font-size: 1.35rem; }

  .hero { min-height: 0; }
  .hero__img { object-position: 70% 50%; }
  .hero__shade { background: linear-gradient(180deg, rgba(8,42,49,.72) 0%, rgba(8,42,49,.9) 55%, rgba(8,42,49,.96) 100%); }
  .hero__inner { padding-top: 40px; padding-bottom: 64px; }
  .hero__status { font-size: .9rem; }
  .hero__lead { font-size: 1.06rem; }
  .hero__phone { display: flex; }
  .hero__actions .btn { flex: 1 1 100%; }

  .service { grid-template-columns: 1fr; }
  .service img { min-height: 0; aspect-ratio: 16 / 9; }
  .service .service__img--contain { aspect-ratio: 16 / 9; }
  .clients__list { grid-template-columns: 1fr; gap: 24px; }
  .steps__list { grid-template-columns: 1fr; }
  .steps__list li { padding: 0 0 0 76px; min-height: 56px; }
  .steps__list li::before { position: absolute; left: 0; top: 0; margin: 0; }
  .steps__list li::after { display: block; top: 56px; bottom: -36px; left: 24px; right: auto; width: 8px; height: auto; }
  .steps__list li:nth-child(2)::after { display: block; }
  .steps__list li:last-child::after { display: none; }
  .form { grid-template-columns: 1fr; }
  .contact__meta li { grid-template-columns: 96px 1fr; }

  .callbar {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    min-height: 60px; padding-bottom: env(safe-area-inset-bottom);
    background: var(--orange); color: var(--white); text-decoration: none;
    font-family: var(--display); font-weight: 800; font-size: 1.35rem;
    box-shadow: 0 -4px 16px rgba(0,0,0,.18);
  }
  .callbar svg { width: 22px; height: 22px; fill: currentColor; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pulse { animation: none; }
  .hero__phone, .faq summary::after { transition: none; }
}
