/* ============================================
   SoranaMED — Design tokens
   Paletă calmă albastru-teal, pentru un cabinet
   stomatologic — deliberat diferită de orice
   temă gri-aurie/întunecată.
   ============================================ */
:root {
  --ink: #1A2C2B;
  --ink-2: #12201F;
  --paper: #F3F9F8;
  --paper-raised: #FFFFFF;
  --teal: #1C6E68;
  --teal-dark: #124F4B;
  --teal-soft: #DCEEEC;
  --teal-soft-2: #EAF4F3;
  --sky: #EAF2F5;
  --coral: #D97D5E;
  --coral-dark: #B85F44;
  --coral-soft: #F6E3DC;
  --urgent: #C1503A;
  --urgent-dark: #9C3E2D;
  --muted: #5C6E6D;
  --muted-light: #93A6A4;
  --line: #DCE8E6;
  --line-dark: rgba(255, 255, 255, 0.14);
  --text-on-dark: #EAF4F2;
  --text-on-dark-muted: #A8C1BE;

  --font-display: "Fraunces", serif;
  --font-body: "Inter", sans-serif;

  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 26px;
  --radius-pill: 999px;

  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 48px;
  --space-6: 64px;
  --space-7: 96px;
  --space-8: 128px;

  --container-w: 1200px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-cool: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-snap: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
}

/* ============================================
   Reset
   ============================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  /* Reduced motion means fewer/gentler animations, not zero: keep a quick opacity
     fade for comprehension, strip movement (translate/scale/blur). */
  .reveal { transform: none !important; filter: none !important; transition: opacity 450ms ease !important; }
  .hero__eyebrow, .hero__title, .hero__subtitle, .hero__actions, .hero__frame, .hero__badge { animation: none !important; opacity: 1 !important; transform: none !important; filter: none !important; }
  .peek__slide { transition: transform 220ms var(--ease-in-out), filter 220ms var(--ease-in-out), opacity 220ms ease !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; line-height: 1.18; font-weight: 600; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 1rem; }

.container {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 var(--space-3);
}
.container--narrow { max-width: 760px; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--teal);
  color: #fff;
  padding: 12px 20px;
  z-index: 999;
  font-weight: 600;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; top: 0; }

:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 2px;
}

section[id] { scroll-margin-top: 96px; }

/* ============================================
   Scroll reveal
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(44px) scale(0.96);
  filter: blur(9px);
  transition: opacity 1.3s var(--ease-cool), transform 1.3s var(--ease-cool), filter 1.3s var(--ease-cool);
  will-change: opacity, transform, filter;
}
.reveal.is-visible { opacity: 1; transform: translateY(0) scale(1); filter: blur(0px); }

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: transform 160ms var(--ease-snap), background 0.3s var(--ease), color 0.3s var(--ease), box-shadow 0.3s var(--ease);
  min-height: 44px;
}
.btn--accent { background: var(--teal); color: #fff; box-shadow: 0 14px 28px -14px rgba(18, 79, 75, 0.55); }
.btn--warm { background: var(--coral); color: #fff; box-shadow: 0 14px 28px -14px rgba(184, 95, 68, 0.5); }
.btn--dark { background: var(--ink); color: var(--paper); }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--teal); }
.btn--ghost-light { background: transparent; color: var(--text-on-dark); box-shadow: inset 0 0 0 2px var(--line-dark); }
.btn--lg { padding: 15px 32px; font-size: 1rem; }
.btn--sm { padding: 9px 18px; font-size: 0.85rem; min-height: 36px; }
.btn svg { flex-shrink: 0; }

@media (hover: hover) and (pointer: fine) {
  .btn--accent:hover { background: var(--teal-dark); transform: translateY(-2px); }
  .btn--warm:hover { background: var(--coral-dark); transform: translateY(-2px); }
  .btn--dark:hover { background: var(--ink-2); transform: translateY(-2px); }
  .btn--ghost:hover { background: var(--teal); color: #fff; }
  .btn--ghost-light:hover { box-shadow: inset 0 0 0 2px var(--teal); background: rgba(255,255,255,0.06); }
}
/* Press feedback comes after the hover rules so it wins while the pointer is down */
.btn:active { transform: scale(0.97); }
.btn--accent:active, .btn--warm:active, .btn--dark:active { transform: translateY(-2px) scale(0.97); }

/* ============================================
   Navbar
   ============================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  margin: 0 auto;
  max-width: 100%;
  z-index: 100;
  background: rgba(243, 249, 248, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  border-radius: 0;
  box-shadow: none;
  transition: border-color 0.35s var(--ease), background 0.35s var(--ease);
}
.navbar.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(243, 249, 248, 0.97);
}

/* Floating-island navbar: desktop only (the full inline nav is visible here;
   below this the hamburger/mobile-nav pattern stays as it was). */
@media (min-width: 1081px) {
  .navbar {
    border: 1px solid transparent;
    transition:
      background 480ms var(--ease-cool),
      top 480ms var(--ease-cool),
      max-width 480ms var(--ease-cool),
      border-radius 480ms var(--ease-cool),
      border-color 480ms var(--ease-cool),
      box-shadow 480ms var(--ease-cool);
  }
  .navbar.is-scrolled {
    top: 14px;
    max-width: 1060px;
    border-radius: 999px;
    border-color: var(--line);
    box-shadow: 0 24px 50px -24px rgba(18, 79, 75, 0.3), 0 8px 24px -8px rgba(18, 79, 75, 0.14);
  }
  .navbar__inner { transition: height 480ms var(--ease-cool); }
  .logo { transition: font-size 480ms var(--ease-cool); }
  .navbar__cta {
    transition: padding 480ms var(--ease-cool), font-size 480ms var(--ease-cool),
      transform 160ms var(--ease-snap), background 0.3s var(--ease), color 0.3s var(--ease), box-shadow 0.3s var(--ease);
  }
  .navbar.is-scrolled .navbar__inner { height: 64px; }
  .navbar.is-scrolled .logo { font-size: 1.3rem; }
  .navbar.is-scrolled .navbar__cta { padding: 9px 18px; font-size: 0.85rem; }
}
.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  gap: var(--space-3);
}
.navbar__brand { display: flex; align-items: baseline; flex-shrink: 0; }
.logo { font-family: var(--font-display); font-size: 1.5rem; white-space: nowrap; color: var(--teal-dark); }
.logo__name { font-style: italic; font-weight: 400; }
.logo__med { font-weight: 700; letter-spacing: 0.01em; }
.logo__mark { font-size: 0.6em; vertical-align: super; margin-left: 1px; color: var(--coral); }
.footer .logo { font-size: 2rem; }
.footer .logo, .footer .logo__name, .footer .logo__med { color: var(--text-on-dark); }
.footer .logo__mark { color: var(--coral); }

.navbar__nav {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-left: auto;
}
.navbar__nav a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--ink);
  position: relative;
  padding: 4px 0;
}
.navbar__nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--teal);
  border-radius: 2px;
  transition: width 0.3s var(--ease);
}
@media (hover: hover) and (pointer: fine) {
  .navbar__nav a:hover::after { width: 100%; }
}

.navbar__call {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: var(--space-2);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--teal-dark);
}
.navbar__call svg { color: var(--coral); }

.navbar__cta { margin-left: var(--space-2); }

.navbar__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  padding: 0;
  margin-left: auto;
  transition: transform 160ms var(--ease-snap);
}
.navbar__toggle:active { transform: scale(0.9); }
.navbar__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
  margin: 0 auto;
}
.navbar__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.navbar__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none;
  overflow: hidden;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.mobile-nav nav {
  display: flex;
  flex-direction: column;
  padding: 0 var(--space-3);
  gap: var(--space-2);
  overflow: hidden;
  min-height: 0;
  transition: padding 320ms var(--ease-cool);
}
.mobile-nav.is-open nav { padding: var(--space-2) var(--space-3) var(--space-4); }
.mobile-nav a {
  font-weight: 500;
  font-size: 1.05rem;
  padding: 6px 0;
  display: block;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.35s var(--ease-cool), transform 0.35s var(--ease-cool);
}
.mobile-nav.is-open a { opacity: 1; transform: translateY(0); }
.mobile-nav.is-open a:nth-child(1) { transition-delay: 0.06s; }
.mobile-nav.is-open a:nth-child(2) { transition-delay: 0.11s; }
.mobile-nav.is-open a:nth-child(3) { transition-delay: 0.16s; }
.mobile-nav.is-open a:nth-child(4) { transition-delay: 0.21s; }
.mobile-nav.is-open a:nth-child(5) { transition-delay: 0.26s; }
.mobile-nav.is-open a:nth-child(6) { transition-delay: 0.31s; }
.mobile-nav.is-open a:nth-child(7) { transition-delay: 0.36s; }
.mobile-nav .btn {
  align-self: stretch;
  justify-content: center;
  width: 100%;
  margin-top: var(--space-2);
  padding: 14px 24px;
  font-size: 1rem;
}

/* ============================================
   Hero
   ============================================ */
.hero {
  padding: calc(80px + var(--space-6)) 0 var(--space-6);
  background: linear-gradient(180deg, var(--sky) 0%, var(--paper) 65%);
  overflow: hidden;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--space-6);
  align-items: center;
}
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--teal-soft);
  color: var(--teal-dark);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  margin-bottom: var(--space-3);
}
.hero__title {
  font-size: clamp(2.2rem, 4.2vw, 3.4rem);
  letter-spacing: -0.01em;
  color: var(--ink);
}
.hl { color: var(--teal-dark); font-style: italic; font-weight: 500; }
.section--dark .hl { color: var(--teal-soft); }
.hero__subtitle {
  margin-top: var(--space-3);
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 50ch;
}
.hero__actions {
  margin-top: var(--space-4);
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}
.hero__visual { position: relative; }
.hero__frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 40px 70px -30px rgba(18, 79, 75, 0.35);
  aspect-ratio: 4/5;
}
.hero__frame img { width: 100%; height: 100%; object-fit: cover; }
.hero__badge {
  position: absolute;
  background: var(--paper-raised);
  border-radius: var(--radius);
  box-shadow: 0 20px 40px -18px rgba(18, 79, 75, 0.3);
  padding: var(--space-2) var(--space-3);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.hero__badge--years { top: -22px; left: -22px; }
.hero__badge--rating { bottom: -22px; right: -22px; }

/* Hero entrance — first paint only. Text rises in a cascade; the photo card and
   its badges settle in after it. */
@keyframes hero-in {
  from { opacity: 0; transform: translateY(36px); filter: blur(6px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0px); }
}
@keyframes hero-card-in {
  from { opacity: 0; transform: translateY(24px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.hero__eyebrow { animation: hero-in 1.1s var(--ease-cool) both; }
.hero__title { animation: hero-in 1.1s var(--ease-cool) both 0.12s; }
.hero__subtitle { animation: hero-in 1.1s var(--ease-cool) both 0.26s; }
.hero__actions { animation: hero-in 1.1s var(--ease-cool) both 0.4s; }
.hero__frame { animation: hero-card-in 1.2s var(--ease-cool) both 0.2s; }
.hero__badge--years { animation: hero-card-in 1s var(--ease-cool) both 0.85s; }
.hero__badge--rating { animation: hero-card-in 1s var(--ease-cool) both 1s; }
.hero__badge-value { font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; color: var(--teal-dark); }
.hero__badge-label { font-size: 0.78rem; color: var(--muted); }

/* ============================================
   Urgențe — bară minimalistă
   ============================================ */
.urgent {
  background: var(--teal-soft-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 15px 0;
}
.urgent__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  text-align: center;
}
.urgent__text {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
}
.urgent__text svg { color: var(--coral-dark); flex-shrink: 0; }
.urgent__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--coral-dark);
  padding-bottom: 1px;
  border-bottom: 1.5px solid transparent;
  transition: border-color 0.3s var(--ease);
}
.urgent__cta:hover { border-color: var(--coral-dark); }
.urgent__cta svg { transition: transform 0.3s var(--ease); }
.urgent__cta:hover svg { transform: translateX(2px); }

/* ============================================
   Stats bar
   ============================================ */
.stats { padding: var(--space-6) 0; }
.stats__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  text-align: center;
}
.stat__value {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3rem);
  color: var(--teal-dark);
  font-weight: 600;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
}
.stat__value .stat__star { color: var(--coral); font-size: 0.6em; }
.stat__label { margin-top: 6px; color: var(--muted); font-size: 0.98rem; }

/* ============================================
   Section shared
   ============================================ */
.section { padding: var(--space-7) 0; }
.section--tint { background: var(--teal-soft-2); }
.section--dark { background: var(--ink); color: var(--text-on-dark); }
.section--dark .section__lead { color: var(--text-on-dark-muted); }
.section__eyebrow {
  display: inline-block;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--teal-dark);
  background: var(--teal-soft);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: var(--space-2);
}
.section--dark .section__eyebrow { background: rgba(255,255,255,0.08); color: var(--teal-soft); }
.section__title { font-size: clamp(1.9rem, 3vw, 2.5rem); }
.section__lead { margin-top: var(--space-2); color: var(--muted); font-size: 1.1rem; max-width: 64ch; }
.section__head--center { text-align: center; }
.section__head--center .section__lead { margin-left: auto; margin-right: auto; }

/* ============================================
   Echipă
   ============================================ */
.team {
  margin-top: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  align-items: center;
}
.team-card {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
@media (hover: hover) and (pointer: fine) {
  .team-card:hover { transform: translateY(-6px); box-shadow: 0 24px 40px -22px rgba(18, 79, 75, 0.25); }
}
/* .team-card declares its own transition, which would otherwise replace the
   reveal's: without this the cards pop in with no opacity/blur fade at all. */
.team-card.reveal {
  transition: opacity 1.3s var(--ease-cool), transform 1.3s var(--ease-cool), filter 1.3s var(--ease-cool), box-shadow 0.4s var(--ease);
}

.team-card--lead {
  display: grid;
  grid-template-columns: minmax(240px, 300px) 1fr;
  align-items: start;
  width: 100%;
  max-width: 600px;
}
.team-card--lead .team-card__body {
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.team-card--lead .team-card__name { font-size: 1.6rem; }

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  width: 100%;
}

.team-card__photo { overflow: hidden; }
.team-card__photo img { width: 100%; height: auto; display: block; }
.team-card__body { padding: var(--space-3); }
.team-card__name { font-size: 1.1rem; }
.team-card__role { color: var(--teal-dark); font-weight: 600; font-size: 0.88rem; margin-top: 4px; }
.team-card__cred { color: var(--muted); font-size: 0.9rem; margin-top: 8px; }
.team-card__tag {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--coral-dark);
  background: var(--coral-soft);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
}
.team__note { margin-top: var(--space-4); color: var(--muted-light); font-size: 0.85rem; max-width: 68ch; }

/* ============================================
   Servicii
   ============================================ */
.services {
  margin-top: var(--space-6);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}
.service-card {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
}
.service-card__icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-sm);
  background: var(--teal-soft);
  color: var(--teal-dark);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--space-2);
  flex-shrink: 0;
}
.service-card h3 { font-size: 1.25rem; }
.service-card__desc { color: var(--muted); margin-top: 8px; font-size: 0.98rem; }
.service-card__list { margin-top: var(--space-2); display: flex; flex-direction: column; gap: 8px; flex: 1; }
.service-card__list li {
  padding-left: 22px;
  position: relative;
  font-size: 0.92rem;
  color: var(--ink);
}
.service-card__list li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--coral);
}
.service-card__footer {
  margin-top: var(--space-3);
  padding-top: var(--space-2);
  border-top: 1px solid var(--line);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.service-card__price { font-family: var(--font-display); font-weight: 600; color: var(--teal-dark); font-size: 1.05rem; }
.service-card__price span { font-family: var(--font-body); font-weight: 400; color: var(--muted); font-size: 0.82rem; }
.services__note {
  margin-top: var(--space-4);
  text-align: center;
  color: var(--muted);
  font-size: 0.92rem;
  background: var(--teal-soft-2);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius);
}

/* ============================================
   Tehnologie
   ============================================ */
.tech {
  margin-top: var(--space-5);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}
.tech-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--line-dark);
  padding: 12px 18px;
  border-radius: var(--radius-pill);
  font-weight: 500;
  font-size: 0.92rem;
}
.tech-chip svg { color: var(--teal-soft); flex-shrink: 0; }

/* ============================================
   Galerie
   ============================================ */
.gallery {
  margin-top: var(--space-6);
  column-count: 3;
  column-gap: var(--space-2);
}
.gallery__item {
  display: block;
  break-inside: avoid;
  margin-bottom: var(--space-2);
  border-radius: var(--radius);
  overflow: hidden;
}
.gallery__item img { width: 100%; height: auto; display: block; transition: transform 0.6s var(--ease); }
@media (hover: hover) and (pointer: fine) {
  .gallery__item:hover img { transform: scale(1.04); }
}

/* ============================================
   Peek carousel (testimoniale)
   ============================================ */
.peek { padding: var(--space-3) 0 var(--space-7); overflow: hidden; }
.peek__rating {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: var(--space-4);
  font-size: 0.98rem;
  color: var(--muted);
}
.peek__rating strong { color: var(--ink); font-family: var(--font-display); font-size: 1.3rem; }
.peek__rating .stars { color: var(--coral); letter-spacing: 2px; }
.peek__stage {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  height: 440px;
  touch-action: pan-y;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}
.peek__stage.is-dragging { cursor: grabbing; }
.peek__track { position: absolute; inset: 0; }
.peek__slide {
  position: absolute;
  top: 50%; left: 50%;
  width: 380px;
  transform: translate(-50%, -50%) translateX(calc(var(--x, 0px) + var(--drag, 0px))) scale(var(--s, 1));
  filter: blur(var(--b, 0px));
  opacity: var(--o, 1);
  transition: transform 480ms var(--ease-in-out), filter 480ms var(--ease-in-out), opacity 480ms ease;
  pointer-events: none;
}
.peek__stage.is-dragging .peek__slide { transition: filter 480ms var(--ease-in-out), opacity 480ms ease; }
.peek__slide[data-offset="0"] { --x: 0px; --s: 1; --b: 0px; --o: 1; z-index: 3; pointer-events: auto; }
.peek__slide[data-offset="-1"] { --x: -340px; --s: 0.82; --b: 1.5px; --o: 0.65; z-index: 2; }
.peek__slide[data-offset="1"] { --x: 340px; --s: 0.82; --b: 1.5px; --o: 0.65; z-index: 2; }
.peek__slide[data-offset="-2"] { --x: -540px; --s: 0.66; --b: 3px; --o: 0; z-index: 1; }
.peek__slide[data-offset="2"] { --x: 540px; --s: 0.66; --b: 3px; --o: 0; z-index: 1; }

.testimonial-card {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 50px -25px rgba(18, 79, 75, 0.3);
  padding: var(--space-5) var(--space-4) var(--space-4);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
}
.testimonial-card__avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  flex-shrink: 0;
}
.testimonial-card__name { font-size: 1.05rem; margin-top: 4px; }
.testimonial-card__rating { color: var(--coral); font-size: 0.85rem; letter-spacing: 2px; }
.testimonial-card__quote { font-size: 0.95rem; color: var(--muted); line-height: 1.6; max-width: 30ch; }
.testimonial-card__source { font-size: 0.72rem; color: var(--muted-light); margin-top: 2px; }

.peek__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  margin-top: var(--space-4);
}
.peek__arrow {
  position: relative;
  z-index: 5;
  width: 46px; height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  cursor: pointer;
  box-shadow: 0 10px 24px -12px rgba(18, 79, 75, 0.3);
  transition: background 0.35s var(--ease), color 0.35s var(--ease), transform 0.35s var(--ease);
}
@media (hover: hover) and (pointer: fine) {
  .peek__arrow:hover { background: var(--teal); color: #fff; transform: scale(1.08); }
}
.peek__arrow:active { transform: scale(0.9); transition-duration: 0.1s; }
.peek__status {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ============================================
   Program & locație
   ============================================ */
.hours-location {
  margin-top: var(--space-6);
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: var(--space-5);
  align-items: start;
}
.hours-card, .location-card {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-4);
}
.hours-card h3, .location-card h3 { font-size: 1.15rem; margin-bottom: var(--space-2); }
.hours-list { display: flex; flex-direction: column; gap: 10px; }
.hours-list li {
  display: flex;
  justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  font-size: 0.96rem;
}
.hours-list li:last-child { border-bottom: none; padding-bottom: 0; }
.hours-list .day { color: var(--muted); }
.hours-list .time { font-weight: 600; }
.hours-card__emergency {
  margin-top: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px dashed var(--line);
  font-size: 0.88rem;
  color: var(--muted);
}
.location-card address { font-style: normal; color: var(--muted); margin-bottom: var(--space-3); }
.location-card address strong { display: block; color: var(--ink); font-size: 1.05rem; margin-bottom: 4px; }
.map-embed {
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--line);
}
.map-embed iframe { width: 100%; height: 280px; border: 0; display: block; }

/* ============================================
   Contact form
   ============================================ */
.contact-layout {
  margin-top: var(--space-5);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--space-5);
  align-items: start;
}
.contact-intro { margin-bottom: var(--space-3); color: var(--text-on-dark-muted); }
.contact-form { margin-top: 0; }

.contact-cards { display: flex; flex-direction: column; gap: var(--space-3); }
.contact-cards__row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }
.contact-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line-dark);
  padding: var(--space-3);
  border-radius: var(--radius);
  color: var(--text-on-dark);
  transition: background 0.35s var(--ease), transform 0.35s var(--ease), border-color 0.35s var(--ease);
}
@media (hover: hover) and (pointer: fine) {
  .contact-card:hover { background: rgba(255, 255, 255, 0.09); transform: translateY(-3px); border-color: var(--teal-soft); }
}
.contact-card__icon { display: inline-flex; color: var(--teal-soft); }
.contact-card__label { font-size: 0.82rem; color: var(--text-on-dark-muted); font-weight: 500; }
.contact-card__value { font-size: 0.92rem; font-weight: 600; word-break: break-word; }

.contact-line {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-sm);
  color: var(--text-on-dark);
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease), transform 0.35s var(--ease);
}
@media (hover: hover) and (pointer: fine) {
  .contact-line:hover { background: rgba(255, 255, 255, 0.08); border-color: var(--teal-soft); transform: translateY(-2px); }
}
.contact-line .contact-card__icon { flex-shrink: 0; }
.contact-line__value { font-size: 0.95rem; font-weight: 500; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}
.form-field { margin-bottom: var(--space-3); display: flex; flex-direction: column; gap: 8px; }
.form-field label { font-size: 0.9rem; font-weight: 500; color: var(--text-on-dark-muted); }
.form-field input, .form-field select, .form-field textarea {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line-dark);
  color: var(--text-on-dark);
  padding: 13px 16px;
  min-height: 44px;
  border-radius: var(--radius-sm);
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.form-field select { color-scheme: dark; }
.form-field select option {
  background-color: #ffffff;
  color: var(--ink);
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  border-color: var(--teal-soft);
  background: rgba(255, 255, 255, 0.1);
  outline: none;
}
.form-field textarea { resize: vertical; min-height: 110px; }
.form-status { margin-top: var(--space-2); font-size: 0.92rem; min-height: 1.2em; }
.form-status.is-success { color: #7dd6b8; }
.form-status.is-error { color: #f0a08e; }

/* ============================================
   FAQ accordion
   ============================================ */
.accordion { margin-top: var(--space-5); border-top: 1px solid var(--line); }
.accordion__item {
  border-bottom: 1px solid var(--line);
}
.accordion__item summary {
  padding: var(--space-3) 0;
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  transition: opacity 160ms var(--ease-snap), color 0.3s var(--ease);
}
.accordion__item summary:active { opacity: 0.65; }
@media (hover: hover) and (pointer: fine) {
  .accordion__item summary:hover { color: var(--teal-dark); }
}
.accordion__item summary::-webkit-details-marker { display: none; }
.accordion__icon {
  position: relative;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.accordion__icon::before,
.accordion__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background: var(--teal);
  border-radius: 2px;
}
.accordion__icon::before { width: 14px; height: 2px; transform: translate(-50%, -50%); }
.accordion__icon::after {
  width: 2px;
  height: 14px;
  transform: translate(-50%, -50%) rotate(0deg);
  transition: transform 320ms var(--ease-snap);
}
.accordion__item.is-open .accordion__icon::after { transform: translate(-50%, -50%) rotate(90deg); }

/* Answer slides open by animating the grid track 0fr -> 1fr (no JS measuring).
   The <details> [open] attribute is only kept while the animation runs. */
.accordion__content {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 320ms var(--ease-cool), opacity 220ms ease, padding-bottom 320ms var(--ease-cool);
}
.accordion__content > p { overflow: hidden; min-height: 0; color: var(--muted); max-width: 68ch; }
.accordion__item.is-open .accordion__content { grid-template-rows: 1fr; opacity: 1; padding-bottom: var(--space-3); }

/* ============================================
   Footer
   ============================================ */
.footer { background: var(--ink-2); color: var(--text-on-dark-muted); padding: var(--space-6) 0 var(--space-3); }
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--space-4);
  padding-bottom: var(--space-5);
  border-bottom: 1px solid var(--line-dark);
}
.footer__brand p { margin-top: var(--space-2); max-width: 34ch; font-size: 0.92rem; }
.footer__badges { display: flex; gap: 8px; margin-top: var(--space-3); flex-wrap: wrap; }
.footer__badge {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-dark);
  color: var(--text-on-dark-muted);
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.footer__badge:hover { color: var(--text-on-dark); border-color: var(--teal-soft); }
.footer__col h4 {
  color: var(--text-on-dark);
  font-size: 0.95rem;
  margin-bottom: var(--space-2);
  font-family: var(--font-body);
  font-weight: 600;
}
.footer__col a, .footer__col p { display: block; margin-bottom: 10px; font-size: 0.92rem; transition: color 0.25s var(--ease); }
.footer__col a:hover { color: var(--teal-soft); }
.footer__bottom { padding-top: var(--space-3); font-size: 0.85rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* ============================================
   Pagini legale (termeni / confidențialitate / 404)
   ============================================ */
.legal { padding: calc(80px + var(--space-6)) 0 var(--space-7); }
.legal h1 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.legal p, .legal li { color: var(--muted); font-size: 1rem; margin-top: var(--space-2); }
.legal h2 { font-size: 1.3rem; margin-top: var(--space-5); }
.legal ul, .legal ol { padding-left: 1.2em; list-style: disc; }
.legal ol { list-style: decimal; }
.legal li { margin-top: var(--space-1); }
.legal__updated { color: var(--muted-light); font-size: 0.9rem; margin-top: var(--space-2); }
.not-found { min-height: 70vh; display: flex; align-items: center; }
.not-found__inner { text-align: center; padding: var(--space-7) 0; }
.not-found__code { font-family: var(--font-display); font-size: clamp(4rem, 12vw, 8rem); color: var(--teal-soft-2); font-weight: 600; }

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1080px) {
  .navbar__nav, .navbar__cta, .navbar__call { display: none; }
  .navbar__toggle { display: flex; }
  .mobile-nav {
    display: grid;
    grid-template-rows: 0fr;
    visibility: hidden;
    transition: grid-template-rows 320ms var(--ease-cool), visibility 0s linear 320ms;
  }
  .mobile-nav.is-open { grid-template-rows: 1fr; visibility: visible; transition-delay: 0s; }
}

@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { order: -1; max-width: 420px; margin: 0 auto; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .services { grid-template-columns: 1fr; }
  .gallery { column-count: 2; }
  .stats__grid { grid-template-columns: repeat(3, 1fr); gap: var(--space-2); }
  .hours-location { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .contact-cards { max-width: 520px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .urgent__inner { justify-content: center; text-align: center; }
  .urgent__text { justify-content: center; }
}

@media (max-width: 620px) {
  .peek__stage { height: 480px; }
  .peek__slide { width: 260px; }
  .peek__slide[data-offset="-1"] { --x: -190px; }
  .peek__slide[data-offset="1"] { --x: 190px; }
  .peek__slide[data-offset="-2"] { --x: -300px; }
  .peek__slide[data-offset="2"] { --x: 300px; }
  .peek__arrow { width: 38px; height: 38px; }
  .peek__nav { gap: var(--space-3); }
}

@media (max-width: 720px) {
  .hero { padding: calc(80px + var(--space-4)) 0 var(--space-4); }
  .form-row { grid-template-columns: 1fr; }
  .team-card--lead { grid-template-columns: 1fr; max-width: 420px; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .stats__grid { grid-template-columns: 1fr; gap: var(--space-4); }
  .footer__grid { grid-template-columns: 1fr; }
  .contact-cards__row { grid-template-columns: 1fr; }
  .urgent__inner { flex-direction: column; }
}

@media (max-width: 480px) {
  .container { padding: 0 var(--space-2); }
  .btn--lg { padding: 13px 22px; }
  .team-grid { grid-template-columns: 1fr; }
  .gallery { column-count: 1; }
}
