/* ============================================================
   Star Smile · Craiova — v1
   Palette: verde (fotolii/sticlă) · alb cald + marmură · coral (accent)
   Type: Bricolage Grotesque (display) + Hanken Grotesk (text)
   ============================================================ */

:root {
  --bg:        oklch(97.8% 0.006 140);
  --bg-soft:   oklch(95.2% 0.022 146);
  --ink:       oklch(25% 0.025 155);
  --ink-soft:  oklch(44% 0.022 152);
  --green:     oklch(52% 0.115 150);
  --green-vivid: oklch(64% 0.135 147);
  --green-deep:  oklch(33% 0.06 154);
  --green-line:  oklch(89% 0.035 146);
  --coral:     oklch(70% 0.135 25);
  --coral-deep:oklch(58% 0.14 25);
  --white:     oklch(99% 0.004 140);

  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-text: "Hanken Grotesk", "Segoe UI", system-ui, sans-serif;

  --fs-hero: clamp(2.5rem, 6.4vw, 4.4rem);
  --fs-h2:   clamp(1.8rem, 3.8vw, 2.7rem);
  --fs-h3:   clamp(1.15rem, 1.8vw, 1.35rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.9rem;

  --space-section: clamp(4.5rem, 10vw, 8rem);
  --radius: 20px;
  --pad-x: clamp(1.25rem, 4vw, 3rem);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}

body {
  font-family: var(--font-text);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.08;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--coral-deep); }

.wrap { max-width: 1180px; margin-inline: auto; padding-inline: var(--pad-x); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklab, var(--bg) 92%, transparent);
  backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--green-line);
}
.site-header .wrap {
  display: flex; align-items: center; gap: 2rem;
  padding-block: 0.85rem;
}
.brand {
  font-family: var(--font-display);
  font-weight: 700; font-size: 1.35rem; letter-spacing: -0.02em;
  color: var(--ink); text-decoration: none;
  display: inline-flex; flex-direction: column; line-height: 1;
}
.brand .arc { width: 46px; height: 8px; margin-top: 2px; align-self: flex-end; }
.brand:hover { color: var(--ink); }

.site-nav { display: flex; gap: 1.6rem; margin-left: auto; }
.site-nav a {
  color: var(--ink-soft); text-decoration: none;
  font-weight: 500; font-size: 0.95rem;
}
.site-nav a:hover { color: var(--green); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--font-text); font-weight: 700; font-size: 0.98rem;
  padding: 0.78em 1.5em; border-radius: 999px;
  text-decoration: none; border: 1.5px solid transparent;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.btn-primary { background: var(--green); color: var(--white); }
.btn-primary:hover { background: var(--green-deep); color: var(--white); transform: translateY(-1px); }
.btn-ghost { border-color: var(--green-line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--green); color: var(--green); }
.btn-light { background: var(--white); color: var(--green-deep); }
.btn-light:hover { background: var(--bg-soft); color: var(--green-deep); }

.header-cta { margin-left: 0.5rem; }

@media (max-width: 780px) {
  .site-nav { display: none; }
  .header-cta { margin-left: auto; }
}

/* ---------- hero ---------- */
.hero { overflow: clip; }
.hero .wrap {
  display: grid; grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  padding-block: clamp(3rem, 7vw, 6rem);
}
.hero-kicker {
  font-weight: 600; font-size: var(--fs-small);
  color: var(--green); letter-spacing: 0.04em;
  display: inline-flex; align-items: center; gap: 0.55rem;
}
.hero-kicker::before {
  content: ""; width: 26px; height: 2px; background: var(--coral); border-radius: 2px;
}
.hero h1 { font-size: var(--fs-hero); font-weight: 700; margin-block: 0.6rem 1.1rem; }
.hero h1 em { font-style: normal; color: var(--green); }
.hero-sub { color: var(--ink-soft); max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.8rem; }

.hero-trust {
  display: flex; flex-wrap: wrap; gap: 1.1rem 2rem;
  margin-top: 2.4rem; padding-top: 1.4rem;
  border-top: 1px solid var(--green-line);
  font-size: var(--fs-small); color: var(--ink-soft); font-weight: 500;
}
.hero-trust span { display: inline-flex; align-items: center; gap: 0.5rem; }
.hero-trust svg { color: var(--green-vivid); flex: none; }

.hero-figure { position: relative; }
.hero-figure img {
  border-radius: 200px 200px var(--radius) var(--radius);
  aspect-ratio: 4 / 4.6; object-fit: cover; object-position: 38% 20%;
  width: 100%;
}
.hero-figure::after {
  content: ""; position: absolute; inset: auto -14px -14px auto;
  width: 58%; height: 42%;
  border: 2px solid var(--coral);
  border-radius: 12px 12px var(--radius) 12px;
  z-index: -1; translate: 0 0;
}
.hero-figure figcaption {
  margin-top: 0.8rem; font-size: var(--fs-small); color: var(--ink-soft); text-align: right;
}

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-figure { max-width: 420px; }
}

/* ---------- galerie cabinet ---------- */
.gallery { padding-block: var(--space-section) 0; }
.section-head { max-width: 640px; margin-bottom: clamp(1.8rem, 4vw, 3rem); }
.section-head h2 { font-size: var(--fs-h2); font-weight: 700; }
.section-head p { color: var(--ink-soft); margin-top: 0.7rem; }

.mosaic {
  display: grid; gap: clamp(0.6rem, 1.4vw, 1rem);
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: clamp(90px, 11vw, 150px);
}
.mosaic figure { position: relative; overflow: hidden; border-radius: var(--radius); }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.mosaic figure:hover img { transform: scale(1.03); }
.mosaic figcaption {
  position: absolute; inset: auto 0 0 0;
  padding: 1.6rem 1rem 0.75rem;
  font-size: 0.85rem; font-weight: 600; color: var(--white);
  background: linear-gradient(to top, oklch(25% 0.03 155 / 0.75), transparent);
}
.m-1 { grid-column: span 7; grid-row: span 3; }
.m-2 { grid-column: span 5; grid-row: span 3; }
.m-3 { grid-column: span 4; grid-row: span 3; }
.m-4 { grid-column: span 4; grid-row: span 3; }
.m-5 { grid-column: span 4; grid-row: span 3; }
@media (max-width: 700px) {
  .mosaic { grid-auto-rows: clamp(80px, 22vw, 120px); }
  .m-1 { grid-column: span 12; }
  .m-2 { grid-column: span 12; }
  .m-3 { grid-column: span 6; }
  .m-4 { grid-column: span 6; }
  .m-5 { grid-column: span 12; }
}

/* ---------- servicii ---------- */
.services { padding-block: var(--space-section); }
.services .wrap {
  display: grid; grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 5vw, 5rem); align-items: start;
}
.services-intro { position: sticky; top: 96px; }
.services-intro h2 { font-size: var(--fs-h2); font-weight: 700; }
.services-intro p { color: var(--ink-soft); margin-top: 0.9rem; max-width: 38ch; }
.services-note {
  margin-top: 1.6rem; font-size: var(--fs-small); color: var(--ink-soft);
  padding: 0.9rem 1.1rem; background: var(--bg-soft); border-radius: 12px;
}

.service-list { list-style: none; }
.service-list li {
  display: grid; grid-template-columns: auto 1fr; gap: 1.2rem;
  padding-block: 1.5rem;
  border-bottom: 1px solid var(--green-line);
}
.service-list li:first-child { border-top: 1px solid var(--green-line); }
.service-num {
  font-family: var(--font-display); font-weight: 600;
  font-size: 0.95rem; color: var(--coral-deep);
  padding-top: 0.25rem; min-width: 2ch;
}
.service-list h3 { font-size: var(--fs-h3); font-weight: 600; }
.service-list p { color: var(--ink-soft); margin-top: 0.3rem; font-size: 0.98rem; max-width: 52ch; }

@media (max-width: 860px) {
  .services .wrap { grid-template-columns: 1fr; }
  .services-intro { position: static; }
}

/* ---------- sterilizare / incredere ---------- */
.steril { background: var(--bg-soft); padding-block: var(--space-section); }
.steril .wrap {
  display: grid; grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
}
.steril-figure img {
  border-radius: var(--radius); aspect-ratio: 3/4; object-fit: cover; width: 100%;
}
.steril h2 { font-size: var(--fs-h2); font-weight: 700; max-width: 20ch; }
.steril .lead { margin-top: 1rem; color: var(--ink-soft); max-width: 56ch; }
.steril-facts { margin-top: 2rem; display: grid; gap: 1.1rem; max-width: 56ch; }
.steril-facts div {
  display: grid; grid-template-columns: auto 1fr; gap: 0.9rem; align-items: start;
}
.steril-facts svg { color: var(--green-vivid); margin-top: 0.2rem; flex: none; }
.steril-facts strong { display: block; font-weight: 700; }
.steril-facts span { color: var(--ink-soft); font-size: 0.97rem; }
@media (max-width: 860px) {
  .steril .wrap { grid-template-columns: 1fr; }
  .steril-figure { max-width: 380px; }
}

/* ---------- echipa ---------- */
.team { padding-block: var(--space-section); }
.team .wrap {
  display: grid; grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
}
.team-figure img {
  border-radius: var(--radius) 200px var(--radius) var(--radius);
  aspect-ratio: 4/4.4; object-fit: cover; object-position: 30% 15%; width: 100%;
}
.team-kicker { font-weight: 600; font-size: var(--fs-small); color: var(--green); letter-spacing: 0.04em; }
.team h2 { font-size: var(--fs-h2); font-weight: 700; margin-block: 0.5rem 0.2rem; }
.team .role { color: var(--coral-deep); font-weight: 600; }
.team p { color: var(--ink-soft); margin-top: 1rem; max-width: 52ch; }
@media (max-width: 860px) {
  .team .wrap { grid-template-columns: 1fr; }
  .team-figure { max-width: 380px; }
}

/* ---------- proces ---------- */
.process { padding-block: 0 var(--space-section); }
.process ol {
  list-style: none; counter-reset: step;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.2rem, 3vw, 2.5rem);
  margin-top: clamp(1.8rem, 4vw, 3rem);
}
.process li { counter-increment: step; position: relative; padding-top: 1rem; }
.process li::before {
  content: "0" counter(step);
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  color: var(--green-vivid); line-height: 1; display: block; margin-bottom: 0.7rem;
}
.process li::after {
  content: ""; position: absolute; top: 0; left: 0; width: 2.2rem; height: 3px;
  background: var(--coral); border-radius: 2px;
}
.process h3 { font-size: 1.1rem; font-weight: 600; }
.process p { color: var(--ink-soft); font-size: 0.95rem; margin-top: 0.35rem; }
@media (max-width: 860px) { .process ol { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .process ol { grid-template-columns: 1fr; } }

/* ---------- faq ---------- */
.faq { background: var(--bg-soft); padding-block: var(--space-section); }
.faq .wrap { max-width: 820px; }
.faq details {
  background: var(--white); border: 1px solid var(--green-line);
  border-radius: 14px; margin-top: 0.8rem;
}
.faq summary {
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.1rem 1.4rem;
  font-weight: 700; font-size: 1.02rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-family: var(--font-display); font-size: 1.4rem;
  color: var(--green); transition: rotate 0.3s var(--ease); flex: none;
}
.faq details[open] summary::after { rotate: 45deg; color: var(--coral-deep); }
.faq details p { padding: 0 1.4rem 1.2rem; color: var(--ink-soft); max-width: 65ch; }

/* ---------- contact ---------- */
.contact { background: var(--green-deep); color: oklch(96% 0.01 145); padding-block: var(--space-section); }
.contact .wrap {
  display: grid; grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 5rem); align-items: start;
}
.contact h2 { font-size: var(--fs-h2); font-weight: 700; color: var(--white); max-width: 18ch; }
.contact .lead { margin-top: 0.9rem; color: oklch(88% 0.02 145); max-width: 46ch; line-height: 1.7; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.8rem; }
.btn-wa { background: oklch(60% 0.13 150); color: var(--white); }
.btn-wa:hover { background: oklch(66% 0.14 148); color: var(--white); }

.contact-card { display: grid; gap: 1.6rem; }
.contact-card h3 {
  font-size: 0.88rem; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; color: oklch(75% 0.06 145);
}
.contact-card p, .contact-card td { color: oklch(93% 0.015 145); }
.contact-card a { color: var(--white); }
.contact-card a:hover { color: oklch(85% 0.09 25); }
.schedule { border-collapse: collapse; width: 100%; max-width: 320px; }
.schedule td { padding-block: 0.3rem; font-size: 0.98rem; }
.schedule td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.schedule tr + tr td { border-top: 1px solid oklch(45% 0.04 152); }
.to-confirm { font-size: 0.82rem; color: oklch(72% 0.05 145); }

@media (max-width: 860px) { .contact .wrap { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.site-footer {
  background: var(--green-deep); color: oklch(78% 0.04 148);
  border-top: 1px solid oklch(42% 0.05 152);
  font-size: var(--fs-small);
}
.site-footer .wrap {
  padding-block: 1.6rem;
  display: flex; flex-wrap: wrap; gap: 0.6rem 2rem; align-items: center; justify-content: space-between;
}
.site-footer a { color: oklch(85% 0.04 148); }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
