/* ===== Culori și valori de bază ===== */
:root {
  --dark: #1d2124;
  --dark-2: #272c30;
  --accent: #b8432b;
  --accent-hover: #9e3722;
  --text: #22272b;
  --muted: #5f676d;
  --soft: #f4f1ed;
  --white: #ffffff;
  --line: #e4ded6;
  --radius: 14px;
  --header-h: 72px;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.75rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }

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

/* ===== Butoane ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .75em 1.4em; border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-weight: 700; font-size: .95rem; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--lg { padding: .95em 1.8em; font-size: 1rem; }
.btn--accent { background: var(--accent); color: var(--white); }
.btn--accent:hover { background: var(--accent-hover); }
.btn--ghost { border-color: rgba(255,255,255,.6); color: var(--white); }
.btn--ghost:hover { background: var(--white); color: var(--dark); }
.btn--dark { background: var(--dark); color: var(--white); }
.btn--dark:hover { background: var(--accent); }

.eyebrow {
  display: inline-block; margin-bottom: .8em;
  font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before { content: ""; display: inline-block; width: 28px; height: 2px; background: currentColor; vertical-align: middle; margin-right: 10px; }
.eyebrow--light { color: #e98a72; }

/* ===== Antet ===== */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  display: flex; align-items: center;
  transition: background .3s, box-shadow .3s;
}
.header.is-scrolled { background: rgba(29,33,36,.92); backdrop-filter: blur(10px); box-shadow: 0 4px 20px rgba(0,0,0,.15); }
.header__inner { display: flex; align-items: center; gap: 32px; }
.logo { display: flex; align-items: center; gap: 8px; color: var(--white); font-weight: 800; font-size: 1.2rem; }
.logo__mark { background: var(--accent); padding: .15em .45em; border-radius: 6px; letter-spacing: .04em; }
.logo__text { letter-spacing: -0.01em; }
.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a { color: rgba(255,255,255,.85); font-weight: 600; font-size: .95rem; position: relative; }
.nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -4px; height: 2px; background: var(--accent); transition: right .25s; }
.nav a:hover { color: var(--white); }
.nav a:hover::after { right: 0; }
.burger { display: none; }

/* ===== Început ===== */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; color: var(--white); overflow: hidden; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; transform: scale(1.05); animation: heroZoom 12s ease-out forwards; }
@keyframes heroZoom { to { transform: scale(1); } }
.hero__overlay { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(20,23,25,.88) 0%, rgba(20,23,25,.6) 45%, rgba(20,23,25,.15) 100%); }
.hero__content { position: relative; padding-block: calc(var(--header-h) + 40px) 80px; }
.hero__lead { max-width: 520px; font-size: 1.15rem; color: rgba(255,255,255,.85); margin-bottom: 2em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ===== Secțiuni ===== */
.section { padding-block: clamp(72px, 10vw, 120px); }
.section--soft { background: var(--soft); }
.section--dark { background: var(--dark); color: var(--white); }
.section__head { max-width: 640px; margin-bottom: 48px; }

/* Servicii */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service {
  padding: 32px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white);
  transition: border-color .25s, box-shadow .25s, transform .25s;
}
.service:hover { border-color: transparent; box-shadow: 0 18px 40px rgba(29,33,36,.1); transform: translateY(-4px); }
.service__icon { width: 48px; height: 48px; margin-bottom: 20px; fill: none; stroke: var(--accent); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.service p { color: var(--muted); margin: 0; }

/* De ce noi */
.why { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.checks li { position: relative; padding-left: 36px; color: rgba(255,255,255,.88); }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .2em; width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center/14px no-repeat;
}
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stat { background: var(--dark-2); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 4px; }
.stat__num { font-size: 2.2rem; font-weight: 800; color: var(--white); letter-spacing: -0.02em; align-self: flex-start; }
.stat__label { color: rgba(255,255,255,.65); font-size: .95rem; }
.stat--wide { grid-column: 1 / -1; background: var(--accent); }
.stat--wide .stat__label { color: rgba(255,255,255,.9); }

.cert { display: flex; align-items: center; gap: 40px; margin-top: 56px; padding: 32px; border-radius: var(--radius); background: var(--dark-2); }
.cert__thumb { flex: none; width: 170px; padding: 0; border: 0; border-radius: 8px; overflow: hidden; cursor: zoom-in; transform: rotate(-3deg); box-shadow: 0 12px 30px rgba(0,0,0,.35); transition: transform .3s; }
.cert__thumb:hover { transform: rotate(0) scale(1.04); }
.cert__thumb img { width: 100%; }
.cert__text p { color: rgba(255,255,255,.75); max-width: 560px; }

/* Galerie */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.filter {
  font: inherit; font-weight: 600; font-size: .92rem; cursor: pointer;
  padding: .55em 1.2em; border-radius: 999px; border: 1px solid var(--line); background: var(--white); color: var(--text);
  transition: background .2s, color .2s, border-color .2s;
}
.filter:hover { border-color: var(--dark); }
.filter.is-active { background: var(--dark); border-color: var(--dark); color: var(--white); }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.gallery figure { margin: 0; aspect-ratio: 3 / 4; border-radius: 10px; overflow: hidden; cursor: zoom-in; background: var(--soft); }
.gallery figure.is-hidden { display: none; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gallery figure:hover img { transform: scale(1.06); }

/* Cum lucrăm */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step { background: var(--white); border-radius: var(--radius); overflow: hidden; padding-bottom: 24px; }
.step img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.step__num { display: block; margin: 20px 24px 6px; font-weight: 800; font-size: .9rem; color: var(--accent); letter-spacing: .1em; }
.step h3, .step p { margin-inline: 24px; }
.step p { color: var(--muted); font-size: .95rem; margin-bottom: 0; }

/* Showroom */
.showroom { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.showroom__photos { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.showroom__photos img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius); }
.showroom__photos img:last-child { margin-top: 48px; }
.showroom__text > p:not(.eyebrow) { color: var(--muted); }
.showroom__addr { margin-bottom: 1.6em; }
.showroom__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn--outline { border-color: var(--dark); color: var(--dark); }
.btn--outline:hover { background: var(--dark); color: var(--white); }
.map { display: block; width: 100%; height: 380px; margin-top: 64px; border: 0; border-radius: var(--radius); filter: grayscale(.35); }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1.15fr; gap: 64px; align-items: start; }
.contact__info > p:not(.eyebrow) { color: rgba(255,255,255,.75); }
.contact__list { list-style: none; padding: 0; margin: 28px 0; display: grid; gap: 14px; }
.contact__list a { display: inline-flex; align-items: center; gap: 14px; font-weight: 600; font-size: 1.05rem; transition: color .2s; word-break: break-all; }
.contact__list a:hover { color: #e98a72; }
.contact__list svg { flex: none; width: 42px; height: 42px; padding: 10px; border-radius: 50%; background: var(--dark-2); fill: none; stroke: #e98a72; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.contact__hours { color: rgba(255,255,255,.75); }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; background: var(--white); color: var(--text); padding: clamp(24px, 4vw, 40px); border-radius: var(--radius); }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: .9rem; }
.form input, .form select, .form textarea {
  font: inherit; font-weight: 500; font-size: 1rem; width: 100%;
  padding: .75em .9em; border: 1px solid var(--line); border-radius: 10px; background: #faf9f7; color: var(--text);
  transition: border-color .2s, box-shadow .2s;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(184,67,43,.15); background: var(--white); }
.form textarea { resize: vertical; }
.form__full { grid-column: 1 / -1; }
.form__honey { position: absolute; left: -9999px; }

/* Subsol */
.footer { background: #15181a; color: rgba(255,255,255,.6); padding-block: 40px; font-size: .9rem; }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.footer__legal { margin: 10px 0 0; }
.footer__social { display: flex; gap: 10px; }
.footer__social a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--dark-2); transition: background .2s; }
.footer__social a:hover { background: var(--accent); }
.footer__social svg { width: 20px; height: 20px; fill: none; stroke: var(--white); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.footer__copy { width: 100%; margin: 0; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.08); }

/* Bară telefon */
.mobilebar { display: none; }

/* Poză mărită */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(10,12,13,.92); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox img { max-width: min(92vw, 900px); max-height: 88vh; object-fit: contain; border-radius: 8px; }
.lightbox button { position: absolute; border: 0; background: rgba(255,255,255,.1); color: var(--white); font-size: 2rem; line-height: 1; width: 52px; height: 52px; border-radius: 50%; cursor: pointer; transition: background .2s; }
.lightbox button:hover { background: var(--accent); }
.lightbox__close { top: 20px; right: 20px; }
.lightbox__prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 20px; top: 50%; transform: translateY(-50%); }
.lightbox.is-single .lightbox__nav { display: none; }

/* Apariție la derulare */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__img { animation: none; transform: none; }
}

/* ===== Ecrane medii ===== */
@media (max-width: 1024px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .why, .showroom, .contact { gap: 40px; }
}

/* ===== Telefon ===== */
@media (max-width: 820px) {
  :root { --header-h: 64px; }
  body { padding-bottom: 64px; }
  .header__call { display: none; }
  .burger {
    display: grid; gap: 6px; margin-left: auto; padding: 12px; background: none; border: 0; cursor: pointer;
  }
  .burger span { display: block; width: 24px; height: 2px; background: var(--white); transition: transform .25s; }
  .burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto; flex-direction: column; gap: 0;
    background: var(--dark); padding: 8px 16px 20px;
    transform: translateY(-120%); transition: transform .3s; z-index: -1;
  }
  .nav.is-open { transform: none; }
  .nav a { padding: 14px 0; font-size: 1.1rem; border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav a::after { display: none; }
  .header.menu-open { background: var(--dark); }

  .hero { min-height: 92svh; align-items: flex-end; }
  .hero__overlay { background: linear-gradient(180deg, rgba(20,23,25,.35) 0%, rgba(20,23,25,.85) 60%, rgba(20,23,25,.95) 100%); }
  .hero__content { padding-bottom: 48px; }
  .hero__actions .btn { width: 100%; }

  .services, .steps { grid-template-columns: 1fr; }
  .why, .showroom, .contact { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .stat { padding: 22px 18px; }
  .cert { flex-direction: column; text-align: center; gap: 28px; padding: 28px 20px; }
  .cert__text p { margin-inline: auto; }
  .stat__num { font-size: 1.7rem; }
  .form { grid-template-columns: 1fr; }
  .showroom__photos img:last-child { margin-top: 32px; }

  .mobilebar { display: grid; grid-template-columns: 1fr 1fr; position: fixed; inset: auto 0 0; z-index: 60; height: 64px; box-shadow: 0 -4px 20px rgba(0,0,0,.15); }
  .mobilebar a { display: grid; place-items: center; font-weight: 700; color: var(--white); }
  .mobilebar__call { background: var(--accent); }
  .mobilebar__wa { background: #1f8f4e; }

  .lightbox__prev, .lightbox__next { top: auto; bottom: 24px; transform: none; }
}
