/* ==========================================================================
   Plumber Team Instal — stiluri
   Paletă de brand (design-system.md): alb, navy, bleu, portocaliu, crem.
   Stil vizual (claude.md): Fraunces + Inter, gradiente radiale cu grain,
   umbre stratificate tentate navy, depth layering, spring easing.
   ========================================================================== */

:root {
  --alb: #FFFFFF;
  --navy: #1F4259;
  --bleu: #E3F1F9;
  --portocaliu: #F07B3F;
  --crem: #FBF7F0;
  --text-secundar: #74808C;
  --text-secundar-bleu: #4A6075;
  --dezactivat-bg: #EDEAE3;
  --dezactivat-text: #A8B0B8;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* spacing tokens */
  --sp-1: 8px;
  --sp-2: 16px;
  --sp-3: 24px;
  --sp-4: 32px;
  --sp-5: 48px;
  --sp-6: 64px;
  --sp-sectiune: 56px;

  /* depth: base → elevated → floating */
  --umbra-elevated:
    0 1px 2px rgba(31, 66, 89, 0.05),
    0 4px 10px rgba(31, 66, 89, 0.06),
    0 12px 28px rgba(31, 66, 89, 0.07);
  --umbra-floating:
    0 2px 4px rgba(31, 66, 89, 0.06),
    0 10px 22px rgba(31, 66, 89, 0.10),
    0 24px 48px rgba(31, 66, 89, 0.12);
  --umbra-cta:
    0 1px 2px rgba(222, 108, 50, 0.25),
    0 6px 16px rgba(240, 123, 63, 0.30),
    0 14px 32px rgba(240, 123, 63, 0.18);

  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}

/* ---------- reset & bază ---------- */

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--navy);
  background: var(--alb);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 {
  font-family: var(--font-display);
  margin: 0;
}

p { margin: 0; }

a { color: inherit; }

ul, ol { margin: 0; padding: 0; list-style: none; }

svg { display: block; }

.icon { width: 20px; height: 20px; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding-inline: 24px;
}

.section { padding-block: var(--sp-sectiune); }
.section-alb { background: var(--alb); }
.section-crem { background: var(--crem); }

section { scroll-margin-top: 84px; }

/* ---------- focus vizibil (toate elementele interactive) ---------- */

:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 3px;
  border-radius: 4px;
}

.btn:focus-visible, .badge:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 3px;
  border-radius: 999px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 15px;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  border: none;
  cursor: pointer;
  transition: transform 0.35s var(--ease-spring), opacity 0.2s var(--ease-out), box-shadow 0.35s var(--ease-out), background-color 0.2s var(--ease-out), color 0.2s var(--ease-out);
}

.btn-primar {
  background: var(--portocaliu);
  color: var(--alb);
  box-shadow: var(--umbra-cta);
}
.btn-primar:hover {
  background: #DE6C32;
  transform: translateY(-2px);
}
.btn-primar:active {
  background: #DE6C32;
  transform: translateY(0) scale(0.98);
}

.btn-secundar {
  background: var(--alb);
  color: var(--navy);
  border: 1.5px solid var(--navy);
  padding: 12px 27px;
}
.btn-secundar:hover {
  background: var(--navy);
  color: var(--alb);
  transform: translateY(-2px);
}
.btn-secundar:active {
  transform: translateY(0) scale(0.98);
}

.btn-tertiar {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--portocaliu);
  font-weight: 500;
  font-size: 15px;
  background: none;
  border: none;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.35s var(--ease-spring), opacity 0.2s var(--ease-out);
}
.btn-tertiar span { transition: transform 0.35s var(--ease-spring); }
.btn-tertiar:hover span { transform: translateX(4px); }
.btn-tertiar:hover { opacity: 0.85; }
.btn-tertiar:active { opacity: 0.7; }

/* ---------- nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: box-shadow 0.3s var(--ease-out);
}
.nav.nav-scrolled { box-shadow: var(--umbra-elevated); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2);
  height: 68px;
}

.logo, .footer-logo {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 19px;
  letter-spacing: -0.02em;
  color: var(--navy);
  text-decoration: none;
}
.logo-dot { color: var(--portocaliu); }

.nav-links {
  display: none;
  gap: var(--sp-4);
}
.nav-links a {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-secundar);
  text-decoration: none;
  transition: color 0.2s var(--ease-out);
}
.nav-links a:hover { color: var(--navy); }
.nav-links a:active { color: var(--portocaliu); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

.btn-nav { padding: 10px 20px; font-size: 14px; }
.btn-nav .icon { width: 16px; height: 16px; }

.hamburger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  border-radius: 999px;
  color: var(--navy);
  cursor: pointer;
  transition: transform 0.35s var(--ease-spring), opacity 0.2s var(--ease-out);
}
.hamburger:hover { transform: scale(1.08); }
.hamburger:active { transform: scale(0.94); }
.hamburger .icon-menu, .hamburger .icon-close { width: 22px; height: 22px; }
.hamburger .icon-close { display: none; }
.nav.nav-deschis .hamburger .icon-menu { display: none; }
.nav.nav-deschis .hamburger .icon-close { display: block; }

/* meniu mobil deschis */
.nav.nav-deschis .nav-links {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  position: absolute;
  top: 68px;
  left: 0;
  right: 0;
  background: var(--alb);
  padding: var(--sp-3) 24px var(--sp-4);
  box-shadow: var(--umbra-floating);
}
.nav.nav-deschis .nav-links a { font-size: 16px; }

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

.hero {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(ellipse 90% 70% at 50% -10%, rgba(255, 255, 255, 0.9), transparent 60%),
    radial-gradient(ellipse 60% 50% at 85% 100%, rgba(240, 123, 63, 0.10), transparent 65%),
    radial-gradient(ellipse 70% 60% at 8% 90%, rgba(31, 66, 89, 0.08), transparent 60%),
    var(--bleu);
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: var(--grain);
  background-size: 220px 220px;
  opacity: 0.35;
  mix-blend-mode: soft-light;
  pointer-events: none;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-block: var(--sp-6) var(--sp-6);
}

.hero h1 {
  font-size: clamp(29px, 8.5vw, 36px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.03em;
  max-width: 26ch;
  text-wrap: balance;
}

.hero-sub {
  margin-top: var(--sp-3);
  max-width: 52ch;
  font-size: 16px;
  color: var(--text-secundar-bleu);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-2);
  margin-top: var(--sp-4);
}

.rating {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: var(--sp-4);
}
.stars {
  display: inline-flex;
  gap: 3px;
}
.stars svg {
  width: 18px;
  height: 18px;
  fill: var(--portocaliu);
}
.stars-mici svg { width: 15px; height: 15px; }
.rating-text {
  font-size: 14px;
  color: var(--text-secundar-bleu);
}

/* ---------- secțiuni: titluri ---------- */

.section-head {
  text-align: center;
  margin-bottom: var(--sp-5);
}

h2 {
  font-size: 26px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.section-sub {
  margin-top: var(--sp-1);
  color: var(--text-secundar);
}

h3 {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
}

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

.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-3);
}

.card-serviciu {
  background: var(--crem);
  border-radius: 16px;
  padding: var(--sp-4) var(--sp-3);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
  transition: transform 0.45s var(--ease-spring), box-shadow 0.45s var(--ease-out);
}
.card-serviciu:hover {
  transform: translateY(-4px);
  box-shadow: var(--umbra-elevated);
}
.card-serviciu p {
  color: var(--text-secundar);
  max-width: 34ch;
}

.icon-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: var(--alb);
  color: var(--portocaliu);
  box-shadow: var(--umbra-elevated);
}

/* ---------- cum lucrăm ---------- */

.section-pasi { padding-top: 0; }

.pas {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-1);
  padding-inline: var(--sp-2);
}

.pas-numar {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--navy);
  opacity: 0.18;
  margin-bottom: var(--sp-1);
}

.pas p { color: var(--text-secundar); max-width: 32ch; }

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

.section-crem {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(ellipse 70% 60% at 90% 0%, rgba(240, 123, 63, 0.05), transparent 60%),
    radial-gradient(ellipse 60% 50% at 5% 100%, rgba(31, 66, 89, 0.04), transparent 60%),
    var(--crem);
}

.card-recenzie {
  margin: 0;
  background: var(--alb);
  border-radius: 16px;
  padding: var(--sp-3);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  box-shadow: var(--umbra-elevated);
  transition: transform 0.45s var(--ease-spring), box-shadow 0.45s var(--ease-out);
}
.card-recenzie:hover {
  transform: translateY(-4px);
  box-shadow: var(--umbra-floating);
}

.card-recenzie blockquote {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
}
.card-recenzie figcaption {
  font-size: 14px;
  color: var(--text-secundar);
}

.recenzii-link {
  text-align: center;
  margin-top: var(--sp-5);
}

/* ---------- despre ---------- */

.despre-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-3);
}

.despre-grid p {
  max-width: 65ch;
  color: var(--text-secundar);
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-top: var(--sp-3);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--alb);
  border: 1px solid rgba(31, 66, 89, 0.12);
  box-shadow: var(--umbra-elevated);
  font-size: 14px;
  font-weight: 500;
  color: var(--navy);
}
.badge .icon { width: 16px; height: 16px; color: var(--portocaliu); }

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

.section-bleu {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(ellipse 80% 60% at 50% 110%, rgba(255, 255, 255, 0.8), transparent 60%),
    radial-gradient(ellipse 55% 45% at 12% 0%, rgba(240, 123, 63, 0.08), transparent 65%),
    radial-gradient(ellipse 60% 50% at 95% 15%, rgba(31, 66, 89, 0.07), transparent 60%),
    var(--bleu);
  overflow: hidden;
}
.section-bleu::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: var(--grain);
  background-size: 220px 220px;
  opacity: 0.35;
  mix-blend-mode: soft-light;
  pointer-events: none;
}

.contact-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.formular {
  width: 100%;
  max-width: 560px;
  margin-top: var(--sp-4);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.formular textarea,
.formular input {
  width: 100%;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  color: var(--navy);
  background: var(--alb);
  border: 1px solid transparent;
  padding: 12px 20px;
  transition: border-color 0.2s var(--ease-out), box-shadow 0.3s var(--ease-out);
  box-shadow: var(--umbra-elevated);
}
.formular textarea {
  border-radius: 16px;
  resize: vertical;
  min-height: 110px;
  line-height: 1.7;
}
.formular input { border-radius: 999px; }

.formular textarea::placeholder,
.formular input::placeholder { color: var(--text-secundar); }

.formular textarea:hover,
.formular input:hover { border-color: #D5E5F0; }

.formular textarea:focus,
.formular input:focus {
  outline: none;
  border-color: var(--navy);
}

.formular-rand {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}
.formular-rand .btn { flex-shrink: 0; }

.formular-eroare {
  font-size: 14px;
  font-weight: 500;
  color: var(--navy);
  text-align: left;
}

.microcopy {
  font-size: 13px;
  color: var(--text-secundar-bleu);
}

.contact-alternativ {
  margin-top: var(--sp-4);
  font-size: 15px;
  color: var(--text-secundar-bleu);
}
.contact-alternativ a {
  font-weight: 500;
  color: var(--navy);
  text-decoration: none;
  transition: color 0.2s var(--ease-out);
}
.contact-alternativ a:hover { color: var(--portocaliu); }
.contact-alternativ a:active { opacity: 0.7; }

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

.footer {
  background: var(--alb);
  border-top: 1px solid #F0EDE6;
  padding-block: var(--sp-5);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
  text-align: center;
}

.footer-logo { margin-bottom: var(--sp-1); }

.footer p {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-secundar);
}
.footer a {
  color: var(--navy);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s var(--ease-out);
}
.footer a:hover { color: var(--portocaliu); }
.footer a:active { opacity: 0.7; }

/* ---------- reveal la scroll (doar opacity + transform) ---------- */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal.vizibil {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card-serviciu, .card-recenzie, .hamburger { transition: none; }
}

/* ==========================================================================
   Desktop (≥768px)
   ========================================================================== */

@media (min-width: 768px) {
  :root { --sp-sectiune: 96px; }

  .container { padding-inline: 32px; }

  .nav-inner { height: 76px; }
  section { scroll-margin-top: 92px; }

  .nav-links { display: flex; }
  .hamburger { display: none; }

  .hero-inner { padding-block: 112px; }
  .hero h1 { font-size: 48px; }
  .hero-sub { font-size: 17px; }

  h2 { font-size: 32px; }

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

  .card-serviciu { padding: var(--sp-4); }

  .section-pasi { padding-top: 0; }
  .pas-numar { font-size: 64px; }

  .despre-grid {
    grid-template-columns: 1fr 1.4fr;
    gap: var(--sp-6);
    align-items: start;
  }

  .formular-rand { flex-direction: row; }
  .formular-rand input { flex: 1; }
}
