/* =========================================================
   PETRIC TIM CONSTRUCT — Design System
   ========================================================= */

:root {
  /* Brand colors (din logo: navy + portocaliu) */
  --navy-900: #0E1726;
  --navy-800: #131F36;
  --navy-700: #1B2B4B;
  --navy-600: #24365C;
  --orange: #E85D2A;
  --orange-600: #D34E1E;
  --orange-100: #FCE7DD;

  /* Neutrals */
  --bg: #F7F8FA;
  --bg-alt: #FFFFFF;
  --text: #0E1726;
  --text-muted: #5A6577;
  --border: #E4E8EE;

  /* System */
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 26px;
  --container: 1200px;
  --shadow-sm: 0 2px 8px rgba(14, 23, 38, 0.05);
  --shadow-md: 0 14px 40px rgba(14, 23, 38, 0.10);
  --shadow-lg: 0 30px 70px rgba(14, 23, 38, 0.18);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-head: "Lexend", system-ui, sans-serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.12; font-weight: 700; letter-spacing: -0.02em; }
.ico { width: 1.1em; height: 1.1em; flex-shrink: 0; }

/* Accesibilitate: focus vizibil la navigarea cu tastatura */
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 4px; }

/* Skip-link: vizibil doar la focus (tastatura) */
.skip-link {
  position: fixed; top: -60px; left: 16px; z-index: 1100;
  background: var(--navy-900); color: #fff; padding: 10px 18px; border-radius: 10px;
  font-family: var(--font-head); font-weight: 600; font-size: 15px;
  transition: top .25s var(--ease);
}
.skip-link:focus { top: 16px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: clamp(72px, 10vw, 128px) 0; }
.accent { color: var(--orange); }

/* ---------- Cursor reactiv ---------- */
/* poziționarea vine din JS prin transform (translate3d) — rulează pe GPU, fără recalcul de layout */
.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0; pointer-events: none; z-index: 9999;
  border-radius: 50%;
  opacity: 0;
}
.cursor-dot {
  width: 7px; height: 7px; background: var(--orange);
  transition: opacity .3s, scale .2s, background .2s;
}
.cursor-ring {
  width: 38px; height: 38px; border: 1.5px solid rgba(232, 93, 42, 0.55);
  transition: opacity .3s, scale .25s var(--ease),
              border-color .25s, background .25s;
}
body.cursor-ready .cursor-dot,
body.cursor-ready .cursor-ring { opacity: 1; }
/* hover pe elemente interactive */
body.cursor-hover .cursor-ring {
  scale: 1.53; /* 38px → ~58px */
  background: rgba(232, 93, 42, 0.10);
  border-color: rgba(232, 93, 42, 0.8);
}
body.cursor-hover .cursor-dot { scale: 0.71; } /* 7px → ~5px */

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 100%;
  background: linear-gradient(90deg, var(--orange), #ff7e4d);
  z-index: 1000; transform: scaleX(0); transform-origin: left;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-weight: 600; font-size: 16px;
  padding: 13px 24px; border-radius: 999px; border: none; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease),
              background .25s, color .25s, scale .16s var(--ease); white-space: nowrap;
}
/* feedback la apăsare — `scale` e proprietate separată, se combină cu transform-ul magnetic */
.btn:active { scale: 0.97; }
.btn:disabled { opacity: 0.65; cursor: default; }
.btn:disabled:active { scale: 1; }
.btn-lg { padding: 16px 30px; font-size: 17px; }
.btn-block { width: 100%; justify-content: center; }
.btn-primary { background: var(--orange); color: #fff; box-shadow: 0 10px 24px rgba(232,93,42,0.35); }
.btn-ghost { background: rgba(255,255,255,0.10); color: #fff; border: 1.5px solid rgba(255,255,255,0.35); backdrop-filter: blur(6px); }
.btn-phone { background: var(--orange); color: #fff; padding: 8px 20px; gap: 11px; box-shadow: 0 8px 18px rgba(232,93,42,0.3); }
/* hover doar cu mouse — pe touch efectul ar rămâne „lipit" după tap */
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: var(--orange-600); transform: translateY(-3px); box-shadow: 0 16px 32px rgba(232,93,42,0.45); }
  .btn-ghost:hover { background: rgba(255,255,255,0.20); transform: translateY(-3px); }
  .btn-phone:hover { background: var(--orange-600); transform: translateY(-2px); }
}
.btn-phone .ico { width: 19px; height: 19px; }
.phone-cta { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.12; }
.phone-cta small { font-size: 10.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; opacity: .9; }
.phone-cta strong { font-size: 15px; font-weight: 700; }
/* Magnetic: transform mai lent (urmărire + revenire mai line); restul rămâne snappy */
.btn[data-magnetic] { transition: transform .5s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s, scale .16s var(--ease); }

/* ---------- Navbar ---------- */
.navbar {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 900;
  padding: 16px 0; transition: background .35s, box-shadow .35s;
}
.navbar.scrolled { background: rgba(255,255,255,0.92); backdrop-filter: blur(12px); box-shadow: var(--shadow-sm); }
.nav-inner { display: flex; align-items: center; gap: 24px; }
.nav-logo { display: flex; align-items: center; gap: 12px; color: #fff; }
.navbar.scrolled .nav-logo { color: var(--navy-900); }
.logo-mark { width: 40px; height: 40px; display: grid; place-items: center; color: inherit; }
.logo-mark svg { width: 100%; height: 100%; }
.logo-text { display: flex; flex-direction: column; line-height: 1; font-family: var(--font-head); }
.logo-text strong { font-size: 17px; font-weight: 800; letter-spacing: .02em; }
.logo-text em { font-size: 12px; font-style: normal; letter-spacing: .28em; color: var(--orange); font-weight: 600; }

.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-link {
  font-family: var(--font-head); font-weight: 500; font-size: 15px; color: rgba(255,255,255,0.9);
  padding: 8px 14px; border-radius: 999px; position: relative; transition: color .25s, background .25s, scale .16s var(--ease);
}
.navbar.scrolled .nav-link { color: var(--navy-700); }
.nav-link::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px;
  background: var(--orange); border-radius: 2px; transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav-link.active::after { transform: scaleX(1); }
.nav-link:active { scale: 0.97; }
@media (hover: hover) and (pointer: fine) {
  .nav-link:hover::after { transform: scaleX(1); }
  .nav-link:hover { color: var(--orange); }
}

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 26px; height: 2.5px; background: #fff; border-radius: 2px; transition: transform .3s var(--ease), opacity .3s, background .3s; }
.navbar.scrolled .nav-toggle span { background: var(--navy-900); }

/* Fundal întunecat sub meniul mobil — intens, ca meniul deschis să domine clar pagina de dedesubt */
.nav-overlay {
  position: fixed; inset: 0; z-index: 850; background: rgba(14, 23, 38, 0.86);
  backdrop-filter: blur(2px);
  opacity: 0; pointer-events: none; transition: opacity .3s ease-out;
}
.nav-overlay.visible { opacity: 1; pointer-events: auto; }

/* ---------- Buton flotant WhatsApp ---------- */
.wa-fab {
  position: fixed; right: 24px; bottom: 24px; z-index: 950;
  display: inline-flex; align-items: center;
  background: #25D366; border-radius: 999px;
  box-shadow: var(--shadow-lg);
  transition: box-shadow .25s var(--ease);
}
.wa-fab:hover, .wa-fab:focus-visible { box-shadow: 0 34px 78px rgba(37, 211, 102, 0.4); }

.wa-fab-icon {
  position: relative; flex-shrink: 0; width: 56px; height: 56px;
  display: grid; place-items: center;
}
.wa-fab-icon svg { width: 30px; height: 30px; transition: scale .2s var(--ease); }

.wa-fab-badge {
  position: absolute; top: -2px; right: -2px;
  width: 18px; height: 18px; border-radius: 50%;
  background: #E4342B; color: #fff; border: 2px solid #fff;
  font-family: var(--font-head); font-weight: 700; font-size: 10.5px; line-height: 1;
  display: grid; place-items: center;
  opacity: 0; scale: 0.4; transition: opacity .25s var(--ease), scale .25s var(--ease);
}
.wa-fab.is-alert .wa-fab-badge { opacity: 1; scale: 1; }

/* eticheta: ascunsă implicit, se dezvăluie prin max-width (nu width, ca să nu forțeze layout extern) */
.wa-fab-label {
  max-width: 0; opacity: 0; overflow: hidden; white-space: nowrap;
  display: flex; flex-direction: column; justify-content: center; gap: 1px;
  padding-right: 0;
  transition: max-width .3s ease, opacity .2s ease, padding-right .3s ease;
}
.wa-fab-label strong { font-family: var(--font-head); font-weight: 700; font-size: 15px; color: #fff; }
.wa-fab-label small { font-size: 11.5px; color: rgba(255,255,255,0.85); }

@media (hover: hover) and (pointer: fine) {
  .wa-fab:hover .wa-fab-label, .wa-fab:focus-visible .wa-fab-label {
    max-width: 220px; opacity: 1; padding-right: 20px;
  }
}

/* Pulsație de atenție — declanșată de JS la scroll, doar pe desktop.
   Pe mobil butonul rămâne o iconiță simplă, fără puls și fără eticheta permanentă. */
@keyframes waPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.55); }
  50% { box-shadow: 0 0 0 14px rgba(37, 211, 102, 0); }
}
@media (hover: hover) and (pointer: fine) {
  .wa-fab.is-alert .wa-fab-icon { animation: waPulse 2s ease-in-out infinite; border-radius: 50%; }
}

/* Pe mobil: doar iconița verde — fără badge de notificare */
@media (hover: none) {
  .wa-fab-badge { display: none; }
}

@media (max-width: 760px) {
  .wa-fab { right: 16px; bottom: 16px; }
  .wa-fab-icon { width: 48px; height: 48px; }
  .wa-fab-icon svg { width: 26px; height: 26px; }
}

/* ---------- HERO ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100dvh; display: flex; align-items: center; color: #fff; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; animation: heroZoom 8s ease-out forwards; }
@keyframes heroZoom { from { transform: scale(1.12); } to { transform: scale(1); } }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(115deg, rgba(14,23,38,0.92) 0%, rgba(14,23,38,0.72) 45%, rgba(14,23,38,0.45) 100%);
}
.hero-content { position: relative; max-width: 820px; padding-top: 80px; }
.badge {
  display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-head); font-weight: 600;
  font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: #fff;
  background: rgba(232,93,42,0.18); border: 1px solid rgba(232,93,42,0.5);
  padding: 9px 18px; border-radius: 999px; margin-bottom: 26px;
}
.badge-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 0 rgba(232,93,42,0.6); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(232,93,42,0.5); } 70% { box-shadow: 0 0 0 12px rgba(232,93,42,0); } 100% { box-shadow: 0 0 0 0 rgba(232,93,42,0); } }
.hero-title { font-size: clamp(2.4rem, 6vw, 4.5rem); font-weight: 800; margin-bottom: 22px; text-shadow: 0 2px 24px rgba(14,23,38,0.35); }
.hero-sub { font-size: clamp(1.05rem, 2vw, 1.3rem); color: rgba(255,255,255,0.92); max-width: 600px; margin-bottom: 26px; text-shadow: 0 1px 12px rgba(14,23,38,0.45); }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- HERO chips (servicii) ---------- */
.hero-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 36px; padding: 0; }
.hero-chip {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-weight: 500; font-size: 15px; color: #fff;
  padding: 9px 18px; border-radius: 999px;
  background: rgba(14,23,38,0.55); border: 1px solid rgba(255,255,255,0.16);
  box-shadow: 0 6px 18px rgba(14,23,38,0.28);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: transform .25s var(--ease), background .25s, border-color .25s, scale .16s var(--ease);
  /* entrance: fade + slide-up cu stagger */
  opacity: 0; transform: translateY(14px); animation: chipIn .6s var(--ease) forwards;
}
.hero-chip:active { scale: 0.97; }
.hero-chip .ico { width: 17px; height: 17px; color: var(--orange); opacity: 1; }
.hero-chip:nth-child(1) { animation-delay: .15s; }
.hero-chip:nth-child(2) { animation-delay: .23s; }
.hero-chip:nth-child(3) { animation-delay: .31s; }
@keyframes chipIn { to { opacity: 1; transform: translateY(0); } }
@media (hover: hover) and (pointer: fine) {
  .hero-chip:hover { transform: translateY(-3px); background: rgba(14,23,38,0.72); border-color: rgba(232,93,42,0.55); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-chip { opacity: 1; transform: none; animation: none; }
}

.scroll-hint { position: absolute; bottom: 30px; right: 36px; width: 26px; height: 42px; border: 2px solid rgba(255,255,255,0.5); border-radius: 16px; display: grid; place-items: start center; padding-top: 7px; }
.scroll-hint span { width: 4px; height: 8px; background: #fff; border-radius: 2px; animation: scrollDot 1.6s infinite; }
@keyframes scrollDot { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 80%,100% { opacity: 0; transform: translateY(14px); } }
/* pe ecrane mici butoanele sunt late → ascundem indicatorul ca să nu se suprapună */
@media (max-width: 760px) { .scroll-hint { display: none; } }

/* ---------- STATS ---------- */
.stats { background: var(--orange); color: #fff; padding: 32px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { text-align: center; position: relative; }
.stat:not(:last-child)::after { content: ""; position: absolute; right: -12px; top: 15%; height: 70%; width: 1px; background: rgba(255,255,255,0.3); }
.stat-num { font-family: var(--font-head); font-size: clamp(2.2rem, 4vw, 3.2rem); font-weight: 800; line-height: 1; }
.stat-label { font-size: 14px; letter-spacing: .1em; text-transform: uppercase; opacity: 0.92; margin-top: 8px; font-weight: 600; }

/* ---------- ABOUT ---------- */
.about-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: center; }
.about-media { position: relative; }
.media-frame { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4/5; }
.media-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
@media (hover: hover) and (pointer: fine) {
  .about-media:hover .media-frame img { transform: scale(1.05); }
}
.about-badge {
  position: absolute; bottom: -24px; right: -24px; background: var(--navy-900); color: #fff;
  padding: 22px 26px; border-radius: var(--radius); box-shadow: var(--shadow-md); max-width: 230px;
}
.about-badge-num { display: block; font-family: var(--font-head); font-size: 2.2rem; font-weight: 800; color: var(--orange); line-height: 1; }
.about-badge-txt { display: block; font-size: 14px; color: rgba(255,255,255,0.85); margin-top: 6px; }

/* eyebrow pe fundal DESCHIS: orange mai închis pentru contrast ≥4.5:1 (AA) */
.eyebrow { display: inline-block; font-family: var(--font-head); font-weight: 600; font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: #C2410C; margin-bottom: 16px; }
/* pe fundal ÎNCHIS rămâne orange-ul aprins (contrast bun pe navy) */
.eyebrow.light { color: var(--orange); }
.about-text h2 { font-size: clamp(1.8rem, 3.5vw, 2.7rem); margin-bottom: 22px; }
.about-text h2 em { font-style: italic; color: var(--text-muted); font-weight: 400; }
.about-text p { color: var(--text-muted); margin-bottom: 18px; max-width: 56ch; }

.values { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 36px; }
.value { display: flex; gap: 14px; }
.value-ico { flex-shrink: 0; width: 46px; height: 46px; border-radius: 12px; background: var(--orange-100); color: var(--orange-600); display: grid; place-items: center; }
.value-ico svg { width: 22px; height: 22px; }
.value h3 { font-size: 17px; margin-bottom: 3px; }
.value p { font-size: 14.5px; margin: 0; }

/* ---------- Section heads ---------- */
.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-head h2 { font-size: clamp(2rem, 4vw, 2.9rem); margin-bottom: 16px; }
.section-lead { color: var(--text-muted); font-size: 1.1rem; }
.section-head h2.light, .section-head .eyebrow.light { }

/* ---------- SERVICES: capitole de șantier (text sticky + colaj de poze reale) ---------- */
.services { background: var(--bg-alt); }
.svc-chapters { display: flex; flex-direction: column; gap: clamp(72px, 8vw, 120px); }
.svc-chapter { display: grid; grid-template-columns: 0.75fr 1.25fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
/* capitolele pare au textul în dreapta: compoziție asimetrică, ritm la scroll */
.svc-chapter--flip .svc-info { order: 2; }
.svc-chapter--flip .svc-gallery { order: 1; }

.svc-info { position: sticky; top: 110px; }
.svc-info h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin-bottom: 14px; }
.svc-info > p { color: var(--text-muted); max-width: 46ch; }
.svc-info ul { list-style: none; display: grid; gap: 10px; margin: 20px 0 26px; padding: 0; }
.svc-info li { position: relative; padding-left: 26px; font-size: 15.5px; }
.svc-info li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 14px; height: 2px; background: var(--orange); border-radius: 2px; }
/* specificitate (0,2,0) ca să învingem `.reveal` de mai jos, care altfel ne suprascrie `transition` */
.svc-info .service-cta {
  display: inline-flex; align-items: center; gap: 10px; white-space: nowrap;
  font-family: var(--font-head); font-weight: 700; font-size: 16px;
  color: #fff; background: var(--orange);
  padding: 14px 28px; border-radius: 999px;
  box-shadow: 0 10px 24px rgba(232,93,42,0.35);
  position: relative; overflow: hidden;
  /* listă combinată: păstrează entrance-ul de la .reveal (opacity/transform) + adaugă hover snappy pe translate/box-shadow/background */
  transition: opacity .45s var(--ease), transform .45s var(--ease),
              translate .25s var(--ease), box-shadow .25s var(--ease), background .25s;
}
/* sweep de lumină diagonal, decupat la forma pastilei */
/* toate regulile păstrează prefixul `.svc-info` ca specificitatea să fie coerentă (baza 0,2,0),
   iar pseudo-clasele :hover/:active să câștige peste ea */
.svc-info .service-cta::after {
  content: ""; position: absolute; top: 0; left: -80%; width: 60%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.35), transparent);
  transform: skewX(-18deg); pointer-events: none;
  transition: left .6s var(--ease);
}
.svc-info .service-cta .ico { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.svc-info .service-cta:active { scale: 0.97; }
@media (hover: hover) and (pointer: fine) {
  .svc-info .service-cta:hover { translate: 0 -3px; background: var(--orange-600); box-shadow: 0 16px 34px rgba(232,93,42,0.5); }
  .svc-info .service-cta:hover::after { left: 130%; }
  .svc-info .service-cta:hover .ico { transform: translateX(4px); }
}

.svc-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.svc-photo {
  margin: 0; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); aspect-ratio: 4 / 3;
  transition: box-shadow .35s var(--ease);
}
.svc-photo.is-wide { grid-column: span 2; aspect-ratio: 21 / 10; }
.svc-photo.is-tall { aspect-ratio: 3 / 4; }
.svc-photo button {
  display: block; width: 100%; height: 100%;
  padding: 0; border: 0; background: none; cursor: zoom-in;
}
.svc-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: scale .8s var(--ease); }
@media (hover: hover) and (pointer: fine) {
  .svc-photo:hover { box-shadow: var(--shadow-md); }
  .svc-photo:hover img { scale: 1.04; }
}

/* ---------- Lightbox (dialog nativ) ---------- */
.lightbox { border: 0; padding: 0; background: transparent; overflow: visible; }
.lightbox::backdrop { background: rgba(14, 23, 38, 0.88); backdrop-filter: blur(6px); }
.lightbox[open] { animation: lightboxIn .2s var(--ease); }
@keyframes lightboxIn { from { opacity: 0; scale: 0.97; } }
.lightbox-figure { margin: 0; display: flex; flex-direction: column; gap: 12px; align-items: center; }
.lightbox-figure img {
  max-width: min(86vw, 1400px); max-height: 80vh;
  border-radius: var(--radius); box-shadow: var(--shadow-lg); display: block;
}
.lightbox-caption { color: rgba(255, 255, 255, 0.85); font-size: 14.5px; text-align: center; max-width: 70ch; }
.lightbox-btn {
  position: fixed; width: 46px; height: 46px; border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.35); background: rgba(255, 255, 255, 0.08);
  color: #fff; display: grid; place-items: center; cursor: pointer;
  transition: background .25s, scale .16s var(--ease); z-index: 2;
}
.lightbox-btn svg { width: 22px; height: 22px; }
.lightbox-btn:active { scale: 0.92; }
@media (hover: hover) and (pointer: fine) {
  .lightbox-btn:hover { background: rgba(255, 255, 255, 0.22); }
}
.lightbox-close { top: 20px; right: 20px; }
.lightbox-prev { left: 16px; top: 50%; translate: 0 -50%; }
.lightbox-next { right: 16px; top: 50%; translate: 0 -50%; }

/* ---------- WHY ---------- */
.why { background: var(--navy-900); color: #fff; position: relative; overflow: hidden; }
.why::before { content: ""; position: absolute; top: -120px; right: -120px; width: 380px; height: 380px; background: radial-gradient(circle, rgba(232,93,42,0.18), transparent 70%); }
.why-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 64px; position: relative; }
.why-head .eyebrow { color: var(--orange); }
.why-head h2 { font-size: clamp(1.9rem, 3.5vw, 2.7rem); margin-bottom: 18px; }
.why-head p { color: rgba(255,255,255,0.7); }
.why-list { display: flex; flex-direction: column; gap: 8px; }
.why-item { display: flex; gap: 24px; padding: 26px; border-radius: var(--radius); transition: background .3s; }
@media (hover: hover) and (pointer: fine) {
  .why-item:hover { background: rgba(255,255,255,0.04); }
}
.why-ico { flex-shrink: 0; width: 50px; height: 50px; border-radius: 14px; background: rgba(232, 93, 42, 0.14); color: var(--orange); display: grid; place-items: center; }
.why-ico svg { width: 24px; height: 24px; }
.why-item h3 { font-size: 20px; margin-bottom: 8px; }
.why-item p { color: rgba(255,255,255,0.72); font-size: 15.5px; }

/* ---------- TESTIMONIALS ---------- */
.testimonials { background: linear-gradient(180deg, var(--navy-800), var(--navy-900)); color: #fff; }
.testimonials .section-head h2, .testimonials .section-head .eyebrow { color: #fff; }
.testimonials .section-head .eyebrow { color: var(--orange); }
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.t-card { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius); padding: 32px; transition: transform .35s var(--ease), background .35s; backdrop-filter: blur(4px); }
@media (hover: hover) and (pointer: fine) {
  .t-card:hover { transform: translateY(-6px); background: rgba(255,255,255,0.08); }
}
.stars { color: var(--orange); letter-spacing: 3px; font-size: 18px; margin-bottom: 18px; }
.t-card blockquote { font-size: 16px; color: rgba(255,255,255,0.88); line-height: 1.7; margin-bottom: 22px; font-style: italic; }
.t-card figcaption strong { display: block; font-family: var(--font-head); font-size: 16px; }
.t-card figcaption span { font-size: 13.5px; color: rgba(255,255,255,0.55); }

/* ---------- AREAS ---------- */
.areas { background: var(--bg-alt); text-align: center; }
.areas-inner { max-width: 760px; margin: 0 auto; }
.areas h2 { font-size: clamp(1.9rem, 3.5vw, 2.6rem); margin-bottom: 14px; }
.areas > .container > p, .areas-inner p { color: var(--text-muted); margin-bottom: 32px; }
.areas-list { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.areas-list li { font-family: var(--font-head); font-weight: 500; font-size: 15px; padding: 10px 22px; border-radius: 999px; background: var(--bg); border: 1px solid var(--border); transition: transform .25s var(--ease), background .25s, color .25s, border-color .25s, scale .16s var(--ease); }
.areas-list li:active { scale: 0.97; }
@media (hover: hover) and (pointer: fine) {
  .areas-list li:hover { background: var(--orange); color: #fff; border-color: var(--orange); transform: translateY(-3px); }
}

/* ---------- CONTACT ---------- */
.contact { background: var(--bg); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.contact-info h2 { font-size: clamp(1.9rem, 3.5vw, 2.6rem); margin-bottom: 18px; }
.contact-info > p { color: var(--text-muted); margin-bottom: 34px; max-width: 46ch; }
.contact-list { list-style: none; display: flex; flex-direction: column; gap: 22px; }
.contact-list li { display: flex; gap: 16px; align-items: center; }
.contact-ico { flex-shrink: 0; width: 50px; height: 50px; border-radius: 14px; background: var(--navy-900); color: var(--orange); display: grid; place-items: center; }
.contact-ico svg { width: 22px; height: 22px; }
.contact-list small { display: block; font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); }
.contact-list a, .contact-list span:not(.contact-ico) { font-family: var(--font-head); font-weight: 600; font-size: 17px; color: var(--navy-900); }
.contact-list a:hover { color: var(--orange); }

.contact-form { background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 38px; box-shadow: var(--shadow-md); }
/* capcană anti-spam: ascunsă vizual, dar accesibilă pentru boți care completează orbește toate câmpurile */
.field-honey { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.field { margin-bottom: 20px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { display: block; font-family: var(--font-head); font-weight: 600; font-size: 14px; margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 16px; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: 15.5px; color: var(--text); background: var(--bg); transition: border-color .25s, box-shadow .25s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 4px rgba(232,93,42,0.12); }
.field textarea { resize: vertical; }
.form-note {
  margin-top: 16px; padding: 14px 18px; background: var(--orange-100); color: var(--orange-600);
  border-radius: var(--radius-sm); font-size: 14.5px; font-weight: 600;
  opacity: 0; transform: translateY(6px);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.form-note.visible { opacity: 1; transform: none; }
.form-note a { font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.form-note.is-error { background: #FBE8E6; color: #C0392B; }

/* Erori de validare inline */
.field-error { display: block; margin-top: 6px; font-size: 13.5px; font-weight: 600; color: #C0392B; }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] {
  border-color: #C0392B; box-shadow: 0 0 0 4px rgba(192, 57, 43, 0.10);
}

/* Butonul de submit: crossfade cu blur între „Trimite solicitarea" și „Trimis ✓" */
.contact-form .btn-block { position: relative; }
.btn .btn-label, .btn .btn-success { display: inline-flex; align-items: center; gap: 10px; transition: opacity .2s ease, filter .2s ease; }
.btn .btn-success {
  position: absolute; inset: 0; justify-content: center;
  opacity: 0; filter: blur(2px); pointer-events: none;
}
.btn.is-success { background: #1F9D5B; box-shadow: 0 10px 24px rgba(31, 157, 91, 0.35); }
.btn.is-success .btn-label { opacity: 0; filter: blur(2px); }
.btn.is-success .btn-success { opacity: 1; filter: none; }

/* ---------- FOOTER ---------- */
.footer { background: var(--navy-900); color: rgba(255,255,255,0.7); padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; padding-bottom: 44px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-logo { color: #fff; margin-bottom: 16px; }
.footer-slogan { font-style: italic; max-width: 32ch; }
.footer-col h4 { color: #fff; font-size: 15px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 18px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col a, .footer-col span { color: rgba(255,255,255,0.7); transition: color .25s; font-size: 15px; }
.footer-col a:hover { color: var(--orange); }
.footer-bottom { display: flex; justify-content: space-between; padding-top: 24px; font-size: 13.5px; color: rgba(255,255,255,0.45); flex-wrap: wrap; gap: 10px; }

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .45s var(--ease), transform .45s var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }

/* Pozele din servicii: dezvăluire de jos în sus cu clip-path, în locul alunecării generice.
   Clip-ul inițial NU e 100%: IntersectionObserver ia în calcul clip-path-ul, iar o arie
   vizibilă zero nu ar declanșa niciodată reveal-ul; fâșia de 22% stă peste pragul de 12%. */
.svc-photo.reveal { transform: none; clip-path: inset(0 0 78% 0); transition: opacity .6s var(--ease), clip-path .6s var(--ease); }
.svc-photo.reveal.in { clip-path: inset(0 0 0 0); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
  /* capitolele devin o coloană; galeriile devin caruseluri orizontale cu snap */
  .svc-chapter { grid-template-columns: 1fr; gap: 26px; }
  .svc-chapter--flip .svc-info { order: 0; }
  .svc-chapter--flip .svc-gallery { order: 0; }
  .svc-info { position: static; }
  .svc-gallery {
    display: flex; overflow-x: auto; gap: 14px; padding-bottom: 12px;
    scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
    scrollbar-width: thin; scrollbar-color: var(--orange) transparent;
  }
  .svc-photo, .svc-photo.is-wide, .svc-photo.is-tall {
    flex: 0 0 84%; aspect-ratio: 4 / 3; scroll-snap-align: center;
  }
  .about-grid, .why-grid, .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-badge { right: 24px; }
  .testimonials-grid { grid-template-columns: 1fr; max-width: 600px; margin: 0 auto; }
  .why-grid { gap: 36px; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  /* panou mai îngust: rămâne clar în partea dreaptă, fără să acopere aproape toată pagina */
  .nav-links { position: fixed; inset: 0 0 0 auto; width: min(68vw, 280px); flex-direction: column; background: var(--navy-900); padding: 100px 28px 28px; gap: 6px; transform: translateX(100%); transition: transform .4s var(--ease); margin-left: 0; box-shadow: var(--shadow-lg); }
  .nav-links.open { transform: translateX(0); }
  .nav-link { color: #fff; font-size: 18px; padding: 14px 16px; }
  .navbar.scrolled .nav-link { color: #fff; }
  /* margin-left:auto împinge butonul ferm în colțul din dreapta, simetric cu padding-ul containerului */
  .nav-toggle { display: flex; order: 3; margin-left: auto; }
  .btn-phone { display: none; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

  .stats-grid { grid-template-columns: 1fr 1fr; gap: 32px 16px; }
  .stat:nth-child(2)::after { display: none; }
  .values { grid-template-columns: 1fr; }
  .about-badge { position: relative; bottom: 0; right: 0; margin: 24px auto 0; max-width: none; }
  .contact-form { padding: 26px; }
  .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-actions .btn { flex: 1; justify-content: center; }
}

/* ---------- Reduced motion / touch ---------- */
@media (hover: none) {
  .cursor-dot, .cursor-ring { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .svc-photo.reveal { clip-path: none; }
}
