/* ==========================================================================
   incalzirehale.ro - FR ALL Electric
   Static site stylesheet. No build step, no framework.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --orange: #ed691f;
  --orange-dark: #c9540f;
  --yellow: #ffcc00;
  --ink: #2b2929;
  --ink-soft: #4a4747;
  --steel: #6b6b6b;
  --concrete: #e9ebee;
  --concrete-light: #f4f5f7;
  --line: #d6d9de;
  --white: #ffffff;

  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Barlow", "Helvetica Neue", Arial, sans-serif;

  --container: 1120px;
  --gutter: 20px;
  --radius: 3px;

  --step-1: clamp(1.05rem, 0.9rem + 0.4vw, 1.2rem);
  --step-2: clamp(1.35rem, 1.1rem + 0.9vw, 1.9rem);
  --step-3: clamp(1.9rem, 1.4rem + 1.8vw, 3rem);
  --step-4: clamp(2.6rem, 1.6rem + 4vw, 5.2rem);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--orange-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--orange); }
ul { margin: 0; padding: 0; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.005em;
  margin: 0 0 0.5em;
  color: var(--ink);
}
h1 { font-size: var(--step-4); font-weight: 700; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }
p { margin: 0 0 1em; max-width: 68ch; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}
.skip-link {
  position: absolute; left: var(--gutter); top: -100px;
  background: var(--ink); color: var(--white); padding: 10px 14px; z-index: 100;
}
.skip-link:focus { top: 10px; }

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: clamp(56px, 8vw, 110px); }
.section-concrete { background: var(--concrete-light); }
.section-dark { background: var(--ink); color: var(--white); }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-head { max-width: 60ch; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head p { color: var(--ink-soft); font-size: var(--step-1); }
.section-dark .section-head p { color: #d9d6d3; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; min-height: 76px;
}
.brand img { height: 42px; width: auto; }
.nav-list { display: flex; gap: 6px; list-style: none; }
.nav-list a {
  display: inline-block; padding: 10px 14px;
  font-family: var(--font-display); font-size: 1.2rem; font-weight: 500;
  color: var(--ink); text-decoration: none;
  border-bottom: 3px solid transparent;
}
.nav-list a:hover { color: var(--orange); }
.nav-list a[aria-current="page"] { border-bottom-color: var(--orange); }
.nav-phone {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-size: 1.25rem; font-weight: 600;
  color: var(--ink); text-decoration: none; white-space: nowrap;
}
.nav-phone svg { width: 20px; height: 20px; fill: var(--orange); }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--line); border-radius: var(--radius);
  width: 46px; height: 46px; cursor: pointer; padding: 0;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px auto;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-phone { display: none; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--white); border-bottom: 1px solid var(--line);
    display: none;
  }
  .site-nav.is-open { display: block; }
  .nav-list { flex-direction: column; gap: 0; padding: 8px var(--gutter) 16px; }
  .nav-list a { display: block; padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 1.35rem; }
  .nav-list a[aria-current="page"] { border-bottom-color: var(--orange); }
  .nav-list li:last-child a { border-bottom-color: transparent; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--ink); color: var(--white);
  padding-block: clamp(64px, 10vw, 140px) clamp(72px, 10vw, 150px);
}
.hero .container { position: relative; z-index: 1; }
.hero h1 { color: var(--white); max-width: 14ch; margin-bottom: 0.4em; }
.hero-lead { font-size: var(--step-1); color: #e4e0dc; max-width: 54ch; margin-bottom: 2em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* Radiant tube motif: horizontal glowing tubes fading to the right */
.tubes {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 0;
}
.tubes .tube {
  stroke: url(#tubeGrad); stroke-width: 6; stroke-linecap: round; fill: none;
  opacity: .75;
}
.tubes .glow { fill: url(#glowGrad); opacity: .35; }
.years-badge {
  position: absolute; right: var(--gutter); bottom: clamp(16px, 3vw, 36px);
  width: clamp(110px, 12vw, 160px); z-index: 2;
}
@media (max-width: 640px) {
  .years-badge { position: static; margin-top: 36px; width: 120px; }
  .tubes { opacity: .45; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-size: 1.25rem; font-weight: 600;
  padding: 13px 22px; border-radius: var(--radius); text-decoration: none;
  border: 2px solid transparent; cursor: pointer; line-height: 1;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn-primary { background: var(--orange); color: var(--white); border-color: var(--orange); }
.btn-primary:hover { background: var(--orange-dark); border-color: var(--orange-dark); color: var(--white); }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.4); }
.btn-ghost:hover { border-color: var(--white); color: var(--white); }
.btn-dark { background: var(--ink); color: var(--white); border-color: var(--ink); }
.btn-dark:hover { background: #000; border-color: #000; color: var(--white); }

/* ---------- Catalog (two product families) ---------- */
.catalog { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(28px, 4vw, 56px); }
.catalog-group { border-top: 4px solid var(--orange); padding-top: 20px; }
.catalog-group h3 { margin-bottom: 14px; }
.catalog-group ul { list-style: none; }
.catalog-group li {
  padding: 12px 0; border-bottom: 1px solid var(--line);
  font-size: var(--step-1);
}
.catalog-group li:last-child { border-bottom: 0; }
@media (max-width: 720px) { .catalog { grid-template-columns: 1fr; } }

/* ---------- Process (ordered steps) ---------- */
.steps {
  list-style: none; counter-reset: step; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 2px; background: var(--line);
  border: 1px solid var(--line);
}
.steps li {
  counter-increment: step; background: var(--white); padding: 26px 24px 28px;
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block; font-family: var(--font-display); font-size: 2.4rem; font-weight: 700;
  color: var(--orange); line-height: 1; margin-bottom: 14px;
}
.steps h3 { font-size: 1.45rem; margin-bottom: 6px; }
.steps p { font-size: 0.98rem; color: var(--ink-soft); margin: 0; }
@media (max-width: 860px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Advantages ---------- */
.advantages-grid {
  display: grid; grid-template-columns: minmax(260px, 1fr) 2fr; gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.stat {
  border-left: 6px solid var(--orange); padding-left: 22px;
}
.stat-number {
  font-family: var(--font-display); font-weight: 700; line-height: .9;
  font-size: clamp(3.4rem, 2rem + 5vw, 6.5rem); color: var(--ink); white-space: nowrap;
}
.stat-label { font-size: var(--step-1); color: var(--ink-soft); max-width: 24ch; margin-top: 10px; }
.advantages { list-style: none; display: grid; gap: 14px; }
.advantages li {
  position: relative; padding-left: 34px; font-size: var(--step-1);
}
.advantages li::before {
  content: ""; position: absolute; left: 0; top: .55em;
  width: 20px; height: 4px; background: var(--orange); border-radius: 2px;
}
@media (max-width: 820px) { .advantages-grid { grid-template-columns: 1fr; } }

/* ---------- References teaser ---------- */
.ref-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 2px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.12);
}
.ref-cell { background: var(--ink); padding: 22px 20px; }
.ref-cell strong {
  display: block; font-family: var(--font-display); font-size: 2.6rem; font-weight: 700;
  line-height: 1; color: var(--yellow);
}
.ref-cell span { color: #d9d6d3; font-size: .98rem; }
.ref-footnote { margin-top: 28px; color: #d9d6d3; }
.ref-footnote a { color: var(--white); }

/* ---------- Contact band ---------- */
.contact-band {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center;
}
.contact-list { list-style: none; display: grid; gap: 10px; font-size: var(--step-1); }
.contact-list a { color: var(--ink); text-decoration: none; font-weight: 600; }
.contact-list a:hover { color: var(--orange); }
.contact-list .label { display: block; font-size: .9rem; color: var(--steel); }
@media (max-width: 760px) { .contact-band { grid-template-columns: 1fr; } }

/* ---------- Page header (inner pages) ---------- */
.page-head { background: var(--concrete-light); border-bottom: 1px solid var(--line); padding-block: clamp(36px, 5vw, 64px); }
.breadcrumb { list-style: none; padding: 0; margin: 0 0 14px; display: flex; gap: 10px; font-size: .95rem; color: var(--steel); }
.breadcrumb li + li::before { content: "/"; margin-right: 10px; color: var(--line); }
.breadcrumb a { color: var(--steel); }
.page-head h1 { font-size: var(--step-3); margin: 0; }
.page-head p { margin: 10px 0 0; color: var(--ink-soft); font-size: var(--step-1); }

/* ---------- Clients page ---------- */
.clients-toc { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.clients-toc a {
  display: inline-block; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px;
  text-decoration: none; color: var(--ink); font-size: .95rem; background: var(--white);
}
.clients-toc a:hover { border-color: var(--orange); color: var(--orange); }
.client-group { padding-block: 32px; border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.client-group:first-of-type { border-top: 0; }
.client-group header { display: flex; align-items: baseline; gap: 14px; margin-bottom: 18px; }
.client-group header h2 { font-size: var(--step-2); margin: 0; }
.client-group header .count { font-family: var(--font-display); color: var(--orange); font-size: 1.2rem; font-weight: 600; }
.client-list {
  list-style: none; columns: 3; column-gap: 40px;
}
.client-list li { break-inside: avoid; padding: 7px 0; border-bottom: 1px solid var(--concrete); }
@media (max-width: 900px) { .client-list { columns: 2; } }
@media (max-width: 560px) { .client-list { columns: 1; } }

/* ---------- Gallery page ---------- */
.gallery { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.gallery a { display: block; position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--concrete); border-radius: var(--radius); }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery-empty {
  border: 1px dashed var(--line); padding: 40px 24px; color: var(--steel); text-align: center;
  border-radius: var(--radius);
}
.lightbox {
  position: fixed; inset: 0; background: rgba(20,18,18,.94); z-index: 200;
  display: none; align-items: center; justify-content: center; padding: 60px 20px;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lightbox-caption { position: absolute; left: 0; right: 0; bottom: 18px; text-align: center; color: #d9d6d3; font-size: .95rem; }
.lightbox button {
  position: absolute; background: none; border: 0; color: var(--white); cursor: pointer;
  font-size: 2rem; line-height: 1; padding: 12px; font-family: var(--font-display);
}
.lightbox .lb-close { top: 10px; right: 14px; }
.lightbox .lb-prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 8px; top: 50%; transform: translateY(-50%); }

/* ---------- Contact page ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.contact-card h2 { font-size: var(--step-2); }
.contact-card address { font-style: normal; }
.contact-card .map { margin-top: 28px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.contact-card .map iframe { display: block; width: 100%; height: 280px; border: 0; }
.form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: .98rem; }
.field label .req { color: var(--orange); }
.field input, .field textarea {
  font: inherit; width: 100%; padding: 12px 14px; border: 1px solid var(--line);
  border-radius: var(--radius); background: var(--white); color: var(--ink);
}
.field input:focus, .field textarea:focus { border-color: var(--orange); outline: none; box-shadow: 0 0 0 3px rgba(237,105,31,.2); }
.field textarea { resize: vertical; min-height: 150px; }
.form-note { font-size: .9rem; color: var(--steel); margin: 0; }
.form-status { padding: 12px 14px; border-radius: var(--radius); display: none; }
.form-status.is-ok { display: block; background: #e6f4ea; color: #1e5a2e; }
.form-status.is-error { display: block; background: #fdecec; color: #8a1c1c; }
.honeypot { position: absolute; left: -9999px; }
@media (max-width: 820px) { .contact-grid, .form-row { grid-template-columns: 1fr; } }

/* ---------- Prose (cookies page) ---------- */
.prose h2 { font-size: var(--step-2); margin-top: 1.6em; }
.prose ul { padding-left: 1.2em; margin-bottom: 1em; }
.prose li { margin-bottom: .4em; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #d9d6d3; padding-block: 56px 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; align-items: start; }
.site-footer img { height: 38px; width: auto; margin-bottom: 18px; }
.site-footer h3 { color: var(--white); font-size: 1.25rem; margin-bottom: 12px; }
.site-footer ul { list-style: none; display: grid; gap: 8px; }
.site-footer a { color: #d9d6d3; text-decoration: none; }
.site-footer a:hover { color: var(--yellow); }
.site-footer address { font-style: normal; line-height: 1.7; }
.footer-bottom {
  margin-top: 44px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.14);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .9rem;
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- Cookie notice ---------- */
.cookie-notice {
  position: fixed; left: var(--gutter); right: var(--gutter); bottom: 16px; z-index: 150;
  background: var(--white); color: var(--ink); border: 1px solid var(--line);
  border-left: 6px solid var(--orange); padding: 16px 18px;
  display: none; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap;
  box-shadow: 0 10px 30px rgba(0,0,0,.18); max-width: 760px; margin-inline: auto;
}
.cookie-notice.is-visible { display: flex; }
.cookie-notice p { margin: 0; font-size: .95rem; }
.cookie-notice .btn { font-size: 1.05rem; padding: 10px 16px; }
