/* IR Electrician Auto — concept de prezentare
   Paletă derivată din identitatea vizuală a afacerii:
   roșu #E53B3C măsurat pe sigla iR, roșu #C1292A măsurat pe firma atelierului. */

:root {
  --bg:        #0B0B0D;
  --surface:   #141417;
  --surface-2: #1C1C21;
  --line:      #2A2A31;
  --line-soft: #202027;

  --accent:      #E53B3C;
  --accent-deep: #C1292A;
  --accent-soft: rgba(229, 59, 60, .14);

  --text:     #F2F2F3;
  --text-dim: #A0A0A8;
  --ok:       #3FB950;

  --wrap: 1160px;
  --header-h: 106px;

  --r-sm: 8px;
  --r:    10px;
  --r-lg: 14px;

  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.62;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

h1, h2, h3, h4 {
  margin: 0;
  line-height: 1.14;
  letter-spacing: -.02em;
  font-weight: 800;
}

p { margin: 0; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 20px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--accent);
  color: #fff;
  padding: 12px 18px;
  border-radius: 0 0 var(--r-sm) 0;
  font-weight: 700;
}
.skip:focus { left: 0; }

:where(a, button, [tabindex]):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- marcaj de concept ---------- */

.concept-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  background: #08080A;
  border-bottom: 1px solid var(--line-soft);
  color: var(--text-dim);
  font-size: 12.5px;
  line-height: 1.35;
  padding: 8px 20px;
  text-align: center;
}
.concept-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

/* ---------- antet ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(11, 11, 13, .94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.is-stuck {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 26px rgba(0, 0, 0, .5);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 14px;
  row-gap: 0;
  min-height: 62px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  min-width: 0;
  flex: 1 1 auto;
  padding-block: 10px;
  min-height: 44px;
}
.brand-mark {
  width: 40px; height: 39px;
  flex: none;
  border-radius: 7px;
}
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-text strong {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.15;
}
.brand-text small {
  font-size: 11.5px;
  color: var(--text-dim);
  letter-spacing: .04em;
  text-transform: uppercase;
  line-height: 1.3;
}

.header-inner .header-call { display: none; }

.site-nav {
  flex: 1 0 100%;
  order: 3;
  display: flex;
  gap: 4px;
  white-space: nowrap;
  margin-inline: -20px;
  padding-inline: 20px;
  border-top: 1px solid var(--line-soft);
  overflow-x: auto;
  scrollbar-width: none;
}
.site-nav::-webkit-scrollbar { display: none; }
.site-nav a {
  padding: 11px 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dim);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}
.site-nav a:hover { color: var(--text); border-bottom-color: var(--accent); }

/* ---------- butoane ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 11px 20px;
  border-radius: var(--r);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -.01em;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform .12s ease, background-color .15s ease, border-color .15s ease;
}
.btn svg { width: 19px; height: 19px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn:active { transform: translateY(1px); }

/* Suprafața butonului folosește roșul măsurat pe firma atelierului, nu roșul
   siglei: pe alb, #E53B3C dă un contrast de 4,18, sub pragul AA. */
.btn-call { background: var(--accent-deep); color: #fff; }
.btn-call:hover { background: #A5211F; }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--accent); color: #fff; }

.btn-lg {
  min-height: 54px;
  font-size: 17px;
  padding-inline: 26px;
  width: 100%;
}

/* ---------- motiv de circuit ---------- */

.circuit {
  position: absolute;
  inset: 0;
  color: var(--accent);
  opacity: .07;
  pointer-events: none;
  overflow: hidden;
}
.circuit svg { width: 100%; height: 100%; }

/* ---------- hero ---------- */

.hero {
  position: relative;
  padding: 40px 0 52px;
  border-bottom: 1px solid var(--line-soft);
  background:
    radial-gradient(900px 420px at 78% -10%, rgba(229, 59, 60, .16), transparent 62%),
    var(--bg);
}
.hero-grid { position: relative; display: grid; gap: 30px; }

.eyebrow {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.hero h1 {
  font-size: clamp(2.1rem, 8.4vw, 3.1rem);
  margin-bottom: 18px;
  text-wrap: balance;
}
.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.lede {
  color: var(--text-dim);
  font-size: 17px;
  max-width: 46ch;
  text-wrap: pretty;
}

.rating {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  margin-top: 22px;
  font-size: 15px;
  color: var(--text-dim);
}
.stars { display: inline-flex; }
.stars svg { width: 19px; height: 19px; fill: var(--accent); }
.rating-value {
  font-family: var(--mono);
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -.02em;
}
.rating-meta strong { color: var(--text); font-weight: 700; }
.rating-lg { margin: 0 0 30px; }

.hero-actions { margin-top: 24px; }

.facts {
  margin: 26px 0 0;
  display: grid;
  gap: 12px;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.fact-hours {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 4px 6px;
}
.fact-hours svg { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.fact-hours small,
.map-btn small {
  display: block;
  font-size: 11.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 2px;
}
.fact-hours strong { font-size: 15.5px; font-weight: 600; }

.map-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  min-height: 44px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r);
  text-decoration: none;
  transition: border-color .15s ease, background-color .15s ease, transform .12s ease;
}
.map-btn:hover { border-color: var(--accent); background: #23232a; }
.map-btn:active { transform: translateY(1px); }
.map-btn-pin {
  width: 22px; height: 22px;
  flex: none;
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.map-btn-text { flex: 1 1 auto; min-width: 0; }
.map-btn-text small {
  margin: 0 0 3px;
  text-transform: none;
  letter-spacing: 0;
  font-size: 12.5px;
  line-height: 1.35;
}
.map-btn-text strong { display: block; font-size: 15.5px; font-weight: 700; line-height: 1.3; }
.map-btn-go {
  width: 18px; height: 18px;
  flex: none;
  fill: none;
  stroke: var(--text-dim);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke .15s ease, transform .15s ease;
}
.map-btn:hover .map-btn-go { stroke: var(--accent); transform: translate(2px, -2px); }

.hero-photo { margin: 0; }
.hero-photo img {
  width: 100%;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  object-fit: cover;
  aspect-ratio: 4 / 3;
}
.hero-photo figcaption {
  margin-top: 9px;
  font-size: 13px;
  color: var(--text-dim);
}

/* ---------- secțiuni ---------- */

section { padding: 52px 0; }
.band { background: var(--surface); border-block: 1px solid var(--line-soft); }

h2 {
  font-size: clamp(1.6rem, 5.6vw, 2.15rem);
  margin-bottom: 12px;
}
.section-lede {
  color: var(--text-dim);
  max-width: 60ch;
  margin-bottom: 30px;
  text-wrap: pretty;
}
.note {
  margin-top: 22px;
  font-size: 13.5px;
  color: var(--text-dim);
  max-width: 68ch;
}

/* ---------- când suni ---------- */

.signals {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.signals li {
  position: relative;
  padding: 14px 16px 14px 44px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r);
  font-size: 15.5px;
  line-height: 1.5;
}
.signals li::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 22px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
}

/* ---------- servicii ---------- */

.track + .track { margin-top: 44px; }

.track-title {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: 1.15rem;
  padding-bottom: 14px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.track-title span {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent);
  letter-spacing: .04em;
}

.cards { display: grid; gap: 14px; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 20px;
  transition: transform .15s ease, border-color .15s ease;
}
.card:hover { transform: translateY(-2px); border-color: var(--accent); }
.card svg {
  width: 24px; height: 24px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-bottom: 13px;
}
.card h4 { font-size: 16.5px; margin-bottom: 7px; }
.card p { color: var(--text-dim); font-size: 14.5px; line-height: 1.55; }

.band .card { background: var(--bg); }

/* ---------- metodă ---------- */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
  counter-reset: step;
}
.steps li {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 22px 20px 20px;
}
.step-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--accent-soft);
  border: 1px solid rgba(229, 59, 60, .38);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 13px;
}
.steps h3 { font-size: 17px; margin-bottom: 7px; }
.steps p { color: var(--text-dim); font-size: 14.5px; }

/* ---------- recenzii ---------- */

.quotes { display: grid; gap: 14px; }

.quote {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--r);
  padding: 22px 20px 18px;
}
.quote blockquote { margin: 0 0 14px; }
.quote p { font-size: 15.5px; line-height: 1.6; }
.quote figcaption { font-size: 13.5px; font-weight: 700; }
.quote figcaption span { color: var(--text-dim); font-weight: 500; }

/* ---------- galerie ---------- */

.gallery { display: grid; gap: 16px; }
.shot { margin: 0; }
.shot img {
  width: 100%;
  border-radius: var(--r);
  border: 1px solid var(--line);
  object-fit: cover;
  aspect-ratio: 4 / 3;
}
/* Fațada este o fotografie portret; cadrul o aduce la aceeași proporție cu
   restul grilei, păstrând firma în câmp. */
.shot-sign img { object-position: center 26%; }
.shot figcaption {
  margin-top: 9px;
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.45;
}

/* ---------- contact ---------- */

.contact {
  position: relative;
  background:
    radial-gradient(760px 340px at 16% 110%, rgba(229, 59, 60, .14), transparent 62%),
    var(--surface);
}
.contact-inner { position: relative; display: grid; gap: 26px; }

/* În secțiunea de contact, fundalul benzii este deja `--surface`, deci
   elementele din interiorul ei coboară cu un nivel ca să rămână distincte. */
.contact .facts,
.contact .map-card,
.contact .chan { background: var(--bg); }
.contact .chan-todo { background: transparent; }

.contact-cta { margin-top: 20px; }

/* ---------- canale de contact ----------
   Toate canalele afacerii sunt vizibile, inclusiv cele neconfigurate încă.
   Cele fără destinație reală sunt inerte, marcate „de completat", și nu
   conțin adrese inventate. */

.channels-title {
  margin-top: 34px;
  margin-bottom: 14px;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 700;
}
.channels {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.chan {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 46px;
  padding: 10px 15px;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
  transition: border-color .15s ease, transform .12s ease;
}
.chan svg {
  width: 20px; height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
a.chan:hover { border-color: var(--accent); }
a.chan:active { transform: translateY(1px); }

.chan-wa svg  { color: #25D366; }
.chan-fb svg  { color: #4C8BF5; }
.chan-map svg { color: var(--accent); }

.chan-todo {
  color: var(--text-dim);
  border-style: dashed;
  background: transparent;
  cursor: default;
}
.chan-todo em {
  font-style: normal;
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 3px 7px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text-dim);
}

/* ---------- buton flotant permanent ---------- */

.fab-stack {
  position: fixed;
  right: 14px;
  bottom: calc(84px + env(safe-area-inset-bottom));
  z-index: 46;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.fab {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--line);
  box-shadow: 0 6px 20px rgba(0, 0, 0, .55);
  transition: border-color .15s ease, transform .12s ease;
}
.fab svg { width: 27px; height: 27px; }
.fab:hover { border-color: currentColor; }
.fab:active { transform: translateY(1px); }
.fab-wa { color: #25D366; }

.map-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 24px 22px;
  align-self: start;
}
.map-card h3 { font-size: 17px; margin-bottom: 10px; }
.map-card p { color: var(--text-dim); font-size: 14.5px; margin-bottom: 14px; }
.plus-code {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--text) !important;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 10px 12px;
}
.plus-code span {
  display: block;
  font-family: var(--font);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 3px;
}
.plus-code { margin-bottom: 0 !important; }

/* ---------- footer ---------- */

/* Spațiul de jos ține finalul conținutului deasupra butonului flotant, care
   plutește peste pagină în colțul din dreapta. */
.site-footer {
  background: #08080A;
  border-top: 1px solid var(--line);
  padding: 34px 0 74px;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  justify-content: space-between;
  align-items: center;
}
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { border-radius: 7px; }
.footer-brand strong { display: block; font-size: 15px; font-weight: 800; letter-spacing: -.02em; }
.footer-brand span { font-size: 13px; color: var(--text-dim); }

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  font-size: 14.5px;
  font-weight: 600;
}
.footer-links a { display: inline-block; padding-block: 12px; text-decoration-color: var(--line); text-underline-offset: 3px; }
.footer-links a:hover { text-decoration-color: var(--accent); }

.footer-note {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
}
.footer-note p {
  font-size: 13px;
  color: var(--text-dim);
  max-width: 78ch;
  line-height: 1.6;
}
.footer-note strong { color: var(--text); }

/* ---------- bara mobilă de apel ---------- */

.call-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 45;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(8, 8, 10, .96);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
}
.call-bar .btn { width: 100%; min-height: 50px; }

body { padding-bottom: 78px; }

/* ---------- breakpoints ---------- */

@media (min-width: 560px) {
  .signals { grid-template-columns: 1fr 1fr; }
  .cards { grid-template-columns: 1fr 1fr; }
  .btn-lg { width: auto; }
  .facts { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 720px) {
  body { padding-bottom: 0; }
  .call-bar { display: none; }

  .header-inner .header-call {
    display: inline-flex;
    order: 1;
    min-height: 40px;
    padding-inline: 15px;
    font-size: 14.5px;
  }
  .header-call svg { width: 17px; height: 17px; }

  .fab-stack { bottom: 20px; right: 20px; }
  .site-footer { padding-bottom: 92px; }

  .steps { grid-template-columns: repeat(3, 1fr); }
  .quotes { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 960px) {
  :root { --header-h: 64px; }

  .header-inner { flex-wrap: nowrap; min-height: 64px; }
  .brand { flex: 0 0 auto; padding-block: 0; }

  .site-nav {
    flex: 0 1 auto;
    order: 1;
    min-width: 0;
    margin-inline: 0;
    margin-left: auto;
    padding-inline: 0;
    border-top: none;
    overflow: visible;
  }
  .site-nav a { padding: 8px 10px; border-bottom: none; border-radius: var(--r-sm); }
  .site-nav a:hover { background: var(--surface-2); color: var(--text); }

  .header-inner .header-call { order: 2; }

  section { padding: 76px 0; }
  .hero { padding: 60px 0 76px; }

  .hero-grid {
    grid-template-columns: minmax(0, 1.32fr) minmax(0, 1fr);
    align-items: center;
    gap: 52px;
  }
  .hero-photo img { aspect-ratio: 3 / 4; }

  .cards { grid-template-columns: repeat(3, 1fr); }
  .signals { grid-template-columns: repeat(3, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }

  .contact-inner {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: 48px;
    align-items: start;
  }
}

/* ---------- preferințe ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
}
