/* CarVis Detailing × Rwraps — hero și forme ca la AXP Hub, temă negru + auriu șampanie */

:root {
  --bg: #080808;
  --surface: #111111;
  --surface-2: #161513;
  --line: rgba(201, 168, 106, 0.14);
  --line-strong: rgba(201, 168, 106, 0.32);
  --text: #f2ede4;
  --text-muted: rgba(242, 237, 228, 0.58);
  --text-dim: rgba(242, 237, 228, 0.36);
  --gold: #c9a86a;
  --gold-light: #e4d1a2;
  --gold-deep: #9e7f48;
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --wrap: clamp(1344px, 80vw, 2000px);
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; scroll-padding-top: 96px; }
body {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }
ul { list-style: none; }
::selection { background: var(--gold); color: #0b0906; }

/* ─── BUTOANE ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  padding: 0 28px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: all 300ms var(--ease);
}
.btn-sm { height: 40px; padding: 0 18px; font-size: 13px; border-radius: 100px; }
.btn-gold {
  color: #15110a;
  background: linear-gradient(180deg, var(--gold-light) 0%, var(--gold) 55%, #b8955a 100%);
  border-color: rgba(255, 236, 190, 0.35);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.35), 0 6px 24px rgba(201,168,106,0.18);
}
.btn-gold:hover { transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255,255,255,0.4), 0 10px 32px rgba(201,168,106,0.28); }
.btn-ghost {
  color: var(--text);
  border-color: rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.btn-ghost:hover { border-color: var(--line-strong); background: rgba(255,255,255,0.1); }

/* ─── HEADER (pastilă, peste video) ─── */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 26px 28px;
  transition: padding 300ms ease;
}
.header.is-scrolled { padding: 10px 24px; }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: var(--wrap);
  height: 70px;
  margin: 0 auto;
  padding: 0 10px 0 18px;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(8, 8, 8, 0.55);
  background-clip: padding-box;
  isolation: isolate;
  transform: translateZ(0);
  backdrop-filter: blur(24px) saturate(1.2);
  -webkit-backdrop-filter: blur(24px) saturate(1.2);
  transition: background 300ms ease, border-color 300ms ease;
}
.header.is-scrolled .header-inner { background: rgba(8,8,8,0.85); border-color: var(--line); }
.logo { display: flex; align-items: center; height: 100%; }
.logo img { height: 58px; width: 116px; flex-shrink: 0; }
.nav { display: flex; gap: 2px; }
.nav a {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 200ms ease;
}
.nav a:hover { color: var(--gold-light); }

/* ─── HERO: pe tot ecranul, la orice rezoluție ─── */
.hero { padding: 12px; }
.hero-video-wrap {
  position: relative;
  width: 100%;
  height: calc(100vh - 24px);
  height: calc(100svh - 24px);
  min-height: 560px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #000;
  isolation: isolate;
  transform: translateZ(0);
  -webkit-mask-image: -webkit-radial-gradient(white, black);
}
.hero-video-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06), inset 0 0 0 2px #080808;
  pointer-events: none;
}
.hero-poster, .hero-video {
  position: absolute;
  inset: -1px;
  width: calc(100% + 2px);
  height: calc(100% + 2px);
  object-fit: cover;
}
.hero-video { opacity: 0; transition: opacity 700ms ease; }
.hero-video.is-playing { opacity: 1; }
.hero-gradient {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(8,8,8,0.82) 0%, rgba(8,8,8,0.25) 42%, transparent 62%),
    linear-gradient(90deg, rgba(8,8,8,0.5) 0%, transparent 55%);
  pointer-events: none;
}
.hero-content {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: clamp(28px, 5vw, 72px);
}
.hero h1 {
  font-size: clamp(40px, 6vw, 150px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: #fff;
}
.hero-desc {
  margin-top: 14px;
  max-width: 32em;
  font-size: clamp(16px, 1.3vw, 26px);
  color: rgba(255,255,255,0.66);
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* ─── SECȚIUNI ─── */
.section {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(64px, 9vw, 120px) 12px 0;
}
.section-head { max-width: 640px; margin-bottom: clamp(28px, 4vw, 44px); }
.section-head h2, .split-text h2, .contact h2 {
  font-size: clamp(30px, 3.6vw, 76px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
}
.section-head p { margin-top: 14px; color: var(--text-muted); font-size: 16px; }
.section-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  max-width: none;
}
.section-links { display: flex; gap: 20px; }
.section-links a { font-size: 14px; font-weight: 600; color: var(--gold); }
.section-links a:hover { color: var(--gold-light); }

/* ─── CARDURI ─── */
.grid { display: grid; gap: 16px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-svc { grid-template-columns: repeat(6, 1fr); }
.grid-svc .card { grid-column: span 2; }
.grid-svc .card:nth-child(-n+2) { grid-column: span 3; }
.card {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 0;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,0.07);
  background: var(--surface);
  overflow: hidden;
  transition: border-color 300ms ease, transform 300ms var(--ease);
}
.card:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform 700ms var(--ease); }
.card:hover img { transform: scale(1.04); }
.card-body { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 24px; border-top: 1px solid var(--line); }
.card-title { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 6px; }
.card-text { font-size: 14px; color: var(--text-muted); }
.card-more {
  margin-top: auto;
  padding-top: 18px;
  font-size: 13px;
  font-weight: 600;
  color: var(--gold);
}
.card-more::after { content: " →"; display: inline-block; transition: transform 300ms var(--ease); }
.card:hover .card-more::after { transform: translateX(4px); }
.card:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.works li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.works strong { font-size: 16px; font-weight: 600; }
.works span { font-size: 14px; color: var(--text-muted); text-align: right; }

/* ─── FEREASTRĂ DETALII SERVICIU ─── */
.dlg {
  width: min(560px, calc(100% - 24px));
  max-height: calc(100svh - 24px);
  margin: auto;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: var(--text);
  overflow: auto;
  overscroll-behavior: contain;
}
.dlg::backdrop { background: rgba(0,0,0,0.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.dlg[open] { animation: dlg-in 320ms var(--ease); }
@keyframes dlg-in { from { opacity: 0; transform: translateY(16px) scale(0.98); } }
.dlg-img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.dlg-body { padding: 26px 28px 28px; }
.dlg h3 { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 12px; }
.dlg-body p { color: var(--text-muted); margin-bottom: 12px; }
.dlg ul { margin: 18px 0; border-top: 1px solid var(--line); }
.dlg li { position: relative; padding: 12px 0 12px 22px; border-bottom: 1px solid var(--line); font-size: 15px; }
.dlg li::before { content: ""; position: absolute; left: 2px; top: 23px; width: 8px; height: 1px; background: var(--gold); }
.dlg .dlg-time { color: var(--gold-light); font-weight: 600; font-size: 14px; }
.dlg-body .btn { width: 100%; margin-top: 14px; }
.dlg-close {
  position: absolute;
  top: 12px; right: 12px;
  z-index: 1;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(8,8,8,0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
body.dlg-lock { overflow: hidden; }

/* ─── LUCRĂRI ─── */
.works { margin-top: 26px; border-top: 1px solid var(--line); }
.split-rev { grid-template-columns: 1fr 1fr; }
.split-media-tall img { aspect-ratio: 4 / 5; max-height: 780px; }
.works-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.works-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,0.07);
}

/* ─── ATELIER ─── */
.split {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}
.split-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,0.07);
}
.split-text h2 { margin-bottom: 18px; }
.split-text > p { color: var(--text-muted); font-size: 16px; margin-bottom: 14px; }
.facts { margin-top: 26px; border-top: 1px solid var(--line); }
.facts li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.facts strong { font-weight: 600; }
.facts span { color: var(--text-muted); text-align: right; }

/* ─── PAȘI ─── */
.step {
  padding: 26px 24px 28px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,0.07);
  background: var(--surface);
}
.step h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.step h3::before {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  margin-bottom: 18px;
  background: var(--gold);
}
.step p { font-size: 14px; color: var(--text-muted); }

/* ─── ÎNTREBĂRI ─── */
.faq-layout { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(24px, 5vw, 72px); }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 22px 0;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 24px; font-weight: 300; color: var(--gold); transition: transform 250ms ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 22px; color: var(--text-muted); max-width: 640px; }

/* ─── CONTACT ─── */
.contact {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(28px, 5vw, 64px);
  padding: clamp(32px, 5vw, 64px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background:
    radial-gradient(70% 90% at 0% 100%, rgba(201,168,106,0.1), transparent 60%),
    var(--surface);
}
.contact-main > p { margin-top: 14px; color: var(--text-muted); font-size: 16px; }
.contact-phone {
  display: inline-block;
  margin: 26px 0 26px;
  font-size: clamp(34px, 5vw, 60px);
  font-weight: 700;
  letter-spacing: -0.03em;
  background: linear-gradient(180deg, var(--gold-light), var(--gold) 60%, var(--gold-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.social { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.social a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 20px 0 16px;
  border-radius: 100px;
  border: 1px solid var(--line-strong);
  background: #0b0a08;
  color: var(--gold-light);
  font-size: 14px;
  font-weight: 600;
  transition: background 300ms var(--ease), color 300ms var(--ease), border-color 300ms var(--ease);
}
.social svg { width: 20px; height: 20px; flex-shrink: 0; }
.social a:hover {
  color: #15110a;
  border-color: rgba(255, 236, 190, 0.35);
  background: linear-gradient(180deg, var(--gold-light) 0%, var(--gold) 55%, #b8955a 100%);
}
.contact-side { display: grid; align-content: center; gap: 22px; }
.contact-side span {
  display: block;
  margin-bottom: 4px;
  font-size: 12px;
  color: var(--text-dim);
}
.contact-side p, .contact-side > div > a { font-size: 15px; font-weight: 500; }
.contact-side a:hover { color: var(--gold-light); }

/* ─── FOOTER ─── */
.footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  max-width: var(--wrap);
  margin: 80px auto 0;
  padding: 24px 12px 32px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--text-dim);
}
.footer a:hover { color: var(--gold-light); }

.wa-float {
  position: fixed;
  right: 20px;
  bottom: calc(20px + env(safe-area-inset-bottom));
  z-index: 90;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

/* ─── RESPONSIVE ─── */
@media (min-width: 1800px) {
  body { font-size: 17px; }
  .header { padding: 30px 36px; }
  .header-inner { height: 82px; padding: 0 12px 0 24px; }
  .logo img { height: 68px; width: 136px; }
  .nav a { font-size: 15px; padding: 10px 20px; }
  .btn { height: 58px; padding: 0 34px; font-size: 16px; }
  .btn-sm { height: 48px; padding: 0 24px; font-size: 15px; }
  .hero { padding: 16px; }
  .hero-video-wrap { height: calc(100svh - 32px); border-radius: 36px; }
  .section-head { max-width: 900px; }
  .section-head p, .split-text > p, .contact-main > p { font-size: 19px; }
  .card-title { font-size: 23px; }
  .card-text, .works span, .facts li, .step p { font-size: 16px; }
  .works strong { font-size: 18px; }
  .faq summary { font-size: 20px; }
  .faq details p { max-width: 820px; }
}

@media (max-width: 1024px) {
  .grid-3, .grid-4, .grid-svc { grid-template-columns: repeat(2, 1fr); }
  .grid-svc .card, .grid-svc .card:nth-child(-n+2) { grid-column: span 1; }
  .grid-svc .card:last-child { grid-column: span 2; }
  .grid-svc .card:last-child img { aspect-ratio: 21 / 9; }
  .split-rev .works-grid { order: -1; }
  .split, .faq-layout, .contact { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .nav { display: none; }
}
@media (max-width: 640px) {
  .header { padding: 18px 18px; }
  .header.is-scrolled { padding: 8px 10px; }
  .header-inner { height: 60px; padding: 0 8px 0 14px; }
  .logo img { height: 48px; width: 96px; }

  .hero { padding: 8px; }
  .hero-video-wrap { height: calc(100svh - 16px); min-height: 540px; border-radius: 22px; }
  .hero-gradient { background: linear-gradient(0deg, rgba(8,8,8,0.9) 0%, rgba(8,8,8,0.3) 45%, transparent 65%); }
  .hero-content { padding: 26px 20px 28px; }
  .hero-cta .btn { flex: 1 1 100%; }

  .section { padding-left: 10px; padding-right: 10px; }
  .grid-3, .grid-4, .grid-svc { grid-template-columns: 1fr; }
  .grid-svc .card:last-child { grid-column: span 1; }
  .grid-svc .card:last-child img { aspect-ratio: 16 / 10; }
  .dlg { width: 100%; max-width: none; max-height: 92svh; margin: auto 0 0; border-radius: 22px 22px 0 0; border-bottom: 0; }
  .dlg-body { padding: 22px 20px calc(24px + env(safe-area-inset-bottom)); }
  .card, .step { border-radius: 22px; }
  .works li { flex-direction: column; gap: 2px; }
  .works span { text-align: left; }
  .split-media-tall img { aspect-ratio: 4 / 4.4; }
  .contact { border-radius: 22px; }
  .contact-actions .btn { flex: 1 1 100%; }
  .social { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .social a { flex-direction: column; justify-content: center; height: auto; padding: 14px 4px 12px; gap: 6px; border-radius: 18px; font-size: 13px; }
  .footer { flex-direction: column; }
}
@media (max-width: 360px) {
  .social a { font-size: 12px; }
}
