/* Cabinet kinetoterapie — stil matur, lizibil */
:root {
  --bg: #f7f9f8;
  --bg-alt: #eef3f1;
  --surface: #ffffff;
  --text: #1a2422;
  --text-muted: #4a5c57;
  --text-soft: #6b7c77;
  --accent: #0f766e;
  --accent-hover: #0d5c56;
  --accent-soft: #e6f4f2;
  --wa: #25d366;
  --wa-hover: #1ebe57;
  --border: rgba(26, 36, 34, 0.08);
  --radius: 16px;
  --radius-sm: 10px;
  --font: "DM Sans", system-ui, sans-serif;
  --serif: "Source Serif 4", Georgia, serif;
  --header-h: 72px;
  --ease: cubic-bezier(0.25, 0.8, 0.25, 1);
  --max: 1080px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  padding-bottom: 5rem;
}

body.is-loading { overflow: hidden; }

/* Ecran PIN — înainte de accesul la site */
.pin-gate {
  position: fixed;
  inset: 0;
  z-index: 20000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(26, 36, 34, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.pin-gate[hidden] {
  display: none !important;
}
.pin-gate-card {
  width: min(100%, 380px);
  padding: 2rem 1.75rem 1.75rem;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 28px 64px rgba(26, 36, 34, 0.22);
  text-align: center;
}
.pin-gate-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.pin-gate-title {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  color: var(--text);
}
.pin-gate-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.pin-gate-input {
  width: 100%;
  padding: 0.9rem 1rem;
  font-family: var(--font);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.35em;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.pin-gate-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.pin-gate-input--error {
  border-color: #c62828;
  box-shadow: 0 0 0 3px rgba(198, 40, 40, 0.15);
}
.pin-gate-btn { width: 100%; }
.pin-gate-error {
  font-size: 0.875rem;
  color: #c62828;
  font-weight: 500;
}

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

/* Imagini — tratament unitar */
.img-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--bg-alt);
}
.img-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 70%, rgba(15, 26, 24, 0.12) 100%);
  pointer-events: none;
  z-index: 1;
}
.img-frame img {
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.5s var(--ease);
}
.img-frame:hover img { transform: scale(1.03); }

a { color: inherit; }

.container {
  width: min(var(--max), 92vw);
  margin-inline: auto;
}

/* Loader */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--bg);
  display: grid;
  place-items: center;
  transition: opacity 0.5s, visibility 0.5s;
}
.page-loader.done { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-bar {
  width: 100px;
  height: 2px;
  background: var(--border);
  border-radius: 99px;
  overflow: hidden;
}
.loader-bar::after {
  content: "";
  display: block;
  height: 100%;
  width: 100%;
  background: var(--accent);
  animation: load 0.9s var(--ease) forwards;
  transform: translateX(-100%);
}
@keyframes load { to { transform: translateX(0); } }

/* WhatsApp float */
.wa-float {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: var(--wa);
  color: #fff;
  text-decoration: none;
  padding: 0.85rem 1.15rem;
  border-radius: 100px;
  box-shadow: 0 8px 32px rgba(37, 211, 102, 0.45);
  transition: transform 0.25s var(--ease), box-shadow 0.25s, background 0.2s;
}
.wa-float svg { width: 26px; height: 26px; flex-shrink: 0; }
.wa-float-label {
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
}
.wa-float:hover {
  background: var(--wa-hover);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(37, 211, 102, 0.5);
}
@media (max-width: 480px) {
  .wa-float-label { display: none; }
  .wa-float { padding: 0.95rem; border-radius: 50%; }
}

/* Header */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  height: var(--header-h);
  transition: background 0.35s, box-shadow 0.35s;
}
.header.scrolled {
  background: rgba(247, 249, 248, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--border);
}
.header-inner {
  width: min(var(--max), 92vw);
  margin-inline: auto;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
}
.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--accent);
}
.nav {
  display: flex;
  gap: 0.15rem;
  margin-left: auto;
}
.nav a {
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 0.45rem 0.75rem;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}
.nav a {
  position: relative;
}
.nav a:hover { color: var(--text); background: var(--accent-soft); }
.nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
  transition: width 0.25s var(--ease), left 0.25s var(--ease);
}
.nav a:hover::after {
  width: calc(100% - 1.5rem);
  left: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.35rem;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.btn:active { transform: scale(0.98) translateY(0); }
.btn-primary:hover { transform: translateY(-2px); }
.btn-ghost:hover { transform: translateY(-1px); }
.btn-outline:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 6px 20px rgba(15, 118, 110, 0.25);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
}
.btn-outline:hover { background: var(--accent-soft); }
.btn-full { width: 100%; }
.header-cta { flex-shrink: 0; }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}
.menu-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: transform 0.3s;
}
.menu-toggle.open span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-toggle.open span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* Typography */
h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--text);
}
h1 { font-size: clamp(2.1rem, 4.5vw, 3rem); }
h2 { font-size: clamp(1.65rem, 3vw, 2.1rem); }
h3 { font-size: 1.2rem; font-family: var(--font); font-weight: 600; }

.eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.75rem;
  letter-spacing: 0.02em;
}

.lead {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 36em;
  margin-top: 1rem;
}

.section-head { margin-bottom: 2.5rem; }
.section-head--center {
  text-align: center;
  margin-inline: auto;
  max-width: 36em;
}
.section-desc {
  margin-top: 0.65rem;
  color: var(--text-soft);
  font-size: 1.05rem;
  line-height: 1.6;
}

/* Hero */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 3rem) 0 4rem;
  min-height: min(88vh, 820px);
  display: flex;
  align-items: center;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    105deg,
    rgba(247, 249, 248, 0.97) 0%,
    rgba(247, 249, 248, 0.9) 40%,
    rgba(247, 249, 248, 0.45) 72%,
    rgba(247, 249, 248, 0.15) 100%
  );
  pointer-events: none;
}
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 65% center;
  opacity: 0.92;
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr min(380px, 100%);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero-aside {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.hero-photo {
  aspect-ratio: 4/3;
  box-shadow: 0 20px 50px rgba(26, 36, 34, 0.1);
}
.hero-photo { min-height: 220px; }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}
.info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: 0 16px 48px rgba(26, 36, 34, 0.06);
}
.info-card-title {
  font-family: var(--font);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-soft);
  margin-bottom: 1rem;
}
.info-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}
.info-row span { color: var(--text-muted); }
.info-row strong { font-weight: 600; }
.info-note {
  font-size: 0.85rem;
  color: var(--text-soft);
  margin: 0.85rem 0 1.25rem;
}
.info-phone {
  display: block;
  text-align: center;
  margin-top: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  font-size: 1.05rem;
}
.info-phone:hover { text-decoration: underline; }

/* Sections */
.section { padding: 5rem 0; }
.section-alt { background: var(--bg-alt); }

/* Services */
.services-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  align-items: stretch;
}
.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: box-shadow 0.3s, border-color 0.3s;
}
.service-card:hover {
  box-shadow: 0 12px 36px rgba(26, 36, 34, 0.08);
  border-color: rgba(15, 118, 110, 0.2);
}
.service-card-img {
  aspect-ratio: 16/10;
  min-height: 200px;
  border-radius: 0;
  flex-shrink: 0;
}
.service-card-img img {
  position: relative;
  z-index: 0;
}
.service-card-body {
  padding: 1.5rem 1.75rem 1.75rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.service-card h3 { margin-bottom: 0.65rem; }
.service-card p {
  flex: 1;
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}
.link-wa {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}
.link-wa:hover { text-decoration: underline; }

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  align-items: stretch;
}
.price-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  text-align: center;
  display: flex;
  flex-direction: column;
}
.price-card--featured {
  border-color: var(--accent);
  box-shadow: 0 16px 40px rgba(15, 118, 110, 0.1);
}
.price-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
}
.price-card h3 { margin-bottom: 1rem; }
.price {
  margin-bottom: 1.25rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}
.price strong {
  display: block;
  font-family: var(--serif);
  font-size: 2rem;
  color: var(--text);
  font-weight: 600;
  margin: 0.25rem 0;
}
.price em { font-style: normal; font-size: 0.9rem; }
.price-card ul {
  list-style: none;
  text-align: left;
  margin-bottom: 1.5rem;
  flex: 1;
}
.price-card li {
  padding: 0.4rem 0 0.4rem 1.25rem;
  position: relative;
  font-size: 0.92rem;
  color: var(--text-muted);
}
.price-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75em;
  width: 5px;
  height: 5px;
  background: var(--accent);
  border-radius: 50%;
}

/* Galerie — 3 coloane egale */
.section-tight {
  padding-top: 3.5rem;
  padding-bottom: 4rem;
}
.visual-band {
  background: var(--bg-alt);
}
.gallery-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  align-items: stretch;
}
.gallery-card {
  margin: 0;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.gallery-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 44px rgba(26, 36, 34, 0.1);
}
.gallery-card.img-frame::after { display: none; }
.gallery-card > img {
  aspect-ratio: 4 / 3;
  width: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: center;
}
.gallery-card figcaption {
  padding: 0.85rem 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

/* About */
.about-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
}
.about-visual {
  max-width: 420px;
  margin-inline: auto;
  width: 100%;
}
.about-portrait {
  aspect-ratio: 4 / 5;
  box-shadow: 0 28px 60px rgba(26, 36, 34, 0.14);
  border: 1px solid var(--border);
}
.about-portrait img {
  object-position: center top;
}
.about-copy p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  max-width: 38em;
}
.about-copy p strong { color: var(--text); font-weight: 600; }
.check-list {
  list-style: none;
  margin: 1.25rem 0 1.75rem;
}
.check-list li {
  padding: 0.4rem 0 0.4rem 1.35rem;
  position: relative;
  color: var(--text-muted);
  font-size: 0.98rem;
}
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.85rem;
}

/* Reviews */
.reviews-layout {
  display: grid;
  grid-template-columns: min(280px, 36%) 1fr;
  gap: 2.5rem;
  align-items: center;
  max-width: 920px;
  margin-inline: auto;
}
.reviews-photo {
  aspect-ratio: 4/5;
  box-shadow: 0 20px 48px rgba(26, 36, 34, 0.1);
}
.reviews-photo { min-height: 320px; }
.reviews-wrap {
  overflow: hidden;
  min-width: 0;
}
.reviews-track {
  display: flex;
  transition: transform 0.55s var(--ease);
}
.review {
  flex: 0 0 100%;
  padding: 2rem 2.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
}
.review p {
  font-family: var(--serif);
  font-size: 1.2rem;
  line-height: 1.55;
  color: var(--text);
  font-style: italic;
  margin-bottom: 1rem;
}
.review footer {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-soft);
}
.reviews-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
}
.reviews-dots button {
  width: 8px;
  height: 8px;
  border: none;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
  padding: 0;
}
.reviews-dots button.active { background: var(--accent); }

/* Contact */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}
.contact-list {
  list-style: none;
  margin: 1.5rem 0 2rem;
}
.contact-list li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}
.contact-list strong {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-soft);
  margin-bottom: 0.35rem;
}
.contact-list span,
.contact-list a {
  font-size: 1rem;
  color: var(--text);
}
.contact-list a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}
.contact-list a:hover { text-decoration: underline; }

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}
.form-title {
  font-family: var(--font);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}
.form-intro {
  font-size: 0.9rem;
  color: var(--text-soft);
  margin-bottom: 1.5rem;
}
.contact-form label {
  display: block;
  margin-bottom: 1rem;
}
.contact-form label span {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: 1rem;
  background: var(--bg);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
}

/* Footer */
.footer {
  padding: 2rem 0 1.5rem;
  border-top: 1px solid var(--border);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--text-soft);
}
.footer a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }

/* Responsive */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-aside { max-width: 440px; }
  .services-row,
  .pricing-grid,
  .about-layout,
  .contact-layout,
  .reviews-layout { grid-template-columns: 1fr; }
  .about-visual { max-width: 360px; }
  .reviews-photo { max-width: 320px; margin-inline: auto; }
}

@media (min-width: 601px) and (max-width: 900px) {
  .gallery-row {
    grid-template-columns: repeat(3, 1fr);
    max-width: none;
  }
}

@media (max-width: 600px) {
  .gallery-row {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin-inline: auto;
  }
}

@media (max-width: 768px) {
  .nav, .header-cta { display: none; }
  .menu-toggle { display: flex; margin-left: auto; }
  .nav.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--surface);
    padding: 1rem 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
    margin-left: 0;
  }
  .section { padding: 3.5rem 0; }
  body { padding-bottom: 4.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
