:root {
  --primary: #0e6b6b;
  --primary-dark: #0a5050;
  --primary-light: #e6f3f2;
  --accent: #e8a33d;
  --ink: #12232b;
  --muted: #5b6b72;
  --line: #e2e8ea;
  --bg: #ffffff;
  --tint: #f5f8f8;
  --dark: #0f2a2f;
  --surface: #ffffff;
  --header-bg: rgba(255,255,255,.85);
  --btn: #0e6b6b;
  --btn-hover: #0a5050;
  --warm: #fdf3e3;
  --case-1: #eef4fb;
  --case-2: #eef7ef;
  --case-3: #fdf6e6;
  --case-4: #fbeef0;
  --note-bg: #fff7e8;
  --note-ink: #7a5212;
  --danger: #dc2626;
  --chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b6b72' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  --calendar: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b6b72' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='3'/%3E%3Cpath d='M16 2v4M8 2v4M3 10h18'/%3E%3C/svg%3E");
  --radius: 18px;
  --shadow: 0 10px 30px rgba(15, 42, 47, 0.08);
  --font: "Manrope", system-ui, -apple-system, sans-serif;
  --serif: "Fraunces", Georgia, serif;
  color-scheme: light dark;
}

/* Dark mode: follows the browser/OS setting unless the visitor picks one with the toggle */
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] {
  color-scheme: dark;
  --primary: #5cc4b9;
  --primary-dark: #7dd3ca;
  --primary-light: rgba(92,196,185,.14);
  --ink: #e7eff1;
  --muted: #a0b2b8;
  --line: #23383e;
  --bg: #0c181b;
  --tint: #102024;
  --dark: #07110f;
  --surface: #142a2f;
  --header-bg: rgba(12,24,27,.85);
  --btn: #0f7a78;
  --btn-hover: #12908d;
  --warm: rgba(232,163,61,.08);
  --case-1: #12232e;
  --case-2: #122a22;
  --case-3: #2a2414;
  --case-4: #2c1a1f;
  --note-bg: rgba(232,163,61,.12);
  --note-ink: #f0c47f;
  --danger: #f87171;
  --chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a0b2b8' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  --calendar: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a0b2b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='3'/%3E%3Cpath d='M16 2v4M8 2v4M3 10h18'/%3E%3C/svg%3E");
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --primary: #5cc4b9;
    --primary-dark: #7dd3ca;
    --primary-light: rgba(92,196,185,.14);
    --ink: #e7eff1;
    --muted: #a0b2b8;
    --line: #23383e;
    --bg: #0c181b;
    --tint: #102024;
    --dark: #07110f;
    --surface: #142a2f;
    --header-bg: rgba(12,24,27,.85);
    --btn: #0f7a78;
    --btn-hover: #12908d;
    --warm: rgba(232,163,61,.08);
    --case-1: #12232e;
    --case-2: #122a22;
    --case-3: #2a2414;
    --case-4: #2c1a1f;
    --note-bg: rgba(232,163,61,.12);
    --note-ink: #f0c47f;
    --danger: #f87171;
    --chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a0b2b8' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    --calendar: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a0b2b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='3'/%3E%3Cpath d='M16 2v4M8 2v4M3 10h18'/%3E%3C/svg%3E");
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; }
h1, h2 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; color: var(--muted); }

.container { width: min(1180px, 100% - 32px); margin-inline: auto; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .7rem 1.3rem; border-radius: 999px; font-weight: 700; font-size: .95rem;
  border: 2px solid transparent; cursor: pointer; transition: .2s ease; font-family: inherit;
}
.btn--primary { background: var(--btn); color: #fff; }
.btn--primary:hover { background: var(--btn-hover); transform: translateY(-1px); }
.btn--ghost { border-color: var(--line); color: var(--ink); background: var(--surface); }
.btn--ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn--lg { padding: .95rem 1.7rem; font-size: 1rem; }
.btn--block { width: 100%; }

.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 800; letter-spacing: .12em;
  text-transform: uppercase; color: var(--primary); margin-bottom: .9rem;
}
.eyebrow--light { color: var(--accent); }

/* Header */
.header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg); backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent; transition: .2s;
}
.header.scrolled { border-color: var(--line); box-shadow: 0 4px 20px rgba(0,0,0,.04); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.logo { display: flex; align-items: center; gap: .75rem; }
.logo__mark {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--btn); color: #fff; font-weight: 800; letter-spacing: .04em;
}
.logo__mark svg { width: 24px; height: 24px; }
.logo__text { display: flex; flex-direction: column; line-height: 1.2; }
.logo__text strong { font-size: 1rem; }
.logo__text small { color: var(--muted); font-size: .78rem; }
.nav { display: flex; align-items: center; gap: 1.8rem; }
.nav a:not(.btn) { font-weight: 600; font-size: .95rem; color: var(--muted); transition: color .2s; }
.nav a:not(.btn):hover { color: var(--primary); }
.nav { margin-left: auto; }
.header__tools { display: flex; align-items: center; gap: .5rem; margin-left: 1.2rem; }
.theme-toggle {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); transition: .2s;
}
.theme-toggle:hover { border-color: var(--primary); color: var(--primary); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .i-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .i-moon { display: none; }
}
.burger { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.burger span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: .25s; }

/* Hero */
.hero {
  padding: clamp(3rem, 7vw, 6rem) 0;
  background:
    radial-gradient(circle at 85% 20%, var(--primary-light), transparent 45%),
    radial-gradient(circle at 10% 90%, var(--warm), transparent 40%);
}
.hero__inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.hero h1 em { font-style: italic; color: var(--primary); }
.hero__lead { font-size: 1.1rem; max-width: 560px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 2rem 0 2.5rem; }
.hero__stats { list-style: none; padding: 0; margin: 0; display: flex; gap: 2.5rem; flex-wrap: wrap; }
.hero__stats li { display: flex; flex-direction: column; }
.hero__stats strong { font-family: var(--serif); font-size: 1.8rem; color: var(--ink); }
.hero__stats span { font-size: .85rem; color: var(--muted); }

.hero__visual { position: relative; }
.hero__photo {
  aspect-ratio: 4/5; border-radius: 28px; overflow: hidden; position: relative;
  background: linear-gradient(160deg, var(--primary) 0%, var(--primary-dark) 100%);
  box-shadow: 0 30px 60px rgba(14,107,107,.25);
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 52% 30%; position: relative; z-index: 1; }
.hero__photo-fallback {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--serif); font-size: 7rem; color: rgba(255,255,255,.25);
}
.hero__badge {
  position: absolute; z-index: 2; background: var(--surface); border-radius: 14px;
  padding: .8rem 1.1rem; box-shadow: var(--shadow); font-size: .9rem; font-weight: 700;
}
.hero__badge--bottom { bottom: 28px; right: -20px; display: flex; flex-direction: column; line-height: 1.3; }
.hero__badge--bottom span { color: var(--muted); font-weight: 500; font-size: .85rem; }

/* Sections */
.section { padding: clamp(4rem, 8vw, 6.5rem) 0; }
.section--tint { background: var(--tint); }
.section--dark { background: var(--dark); color: #fff; }
.section--dark h2 { color: #fff; }
.section__head { text-align: center; max-width: 640px; margin: 0 auto 3rem; }
.section__head--left { text-align: left; margin: 0; }

/* About */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.timeline { border-left: 2px solid var(--line); padding-left: 2rem; display: grid; gap: 2rem; }
.timeline__item { position: relative; }
.timeline__item::before {
  content: ""; position: absolute; left: calc(-2rem - 8px); top: 4px;
  width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 3px solid var(--primary);
}
.timeline__year { font-size: .82rem; font-weight: 800; color: var(--primary); letter-spacing: .05em; }
.timeline__item h3 { margin: .3rem 0 .2rem; }
.timeline__item p { margin: 0; }

/* Services */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.services .card { padding: 1.75rem 1.5rem; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2rem; transition: .25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card__icon {
  width: 52px; height: 52px; border-radius: 14px; background: var(--primary-light);
  color: var(--primary); display: grid; place-items: center; margin-bottom: 1.3rem;
}
.card__icon svg { width: 26px; height: 26px; }
.card p { margin: 0; font-size: .95rem; }

/* Preparation */
.cases { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.case {
  display: flex; flex-direction: column; padding: 1.75rem; border-radius: var(--radius);
  background: var(--tint); border: 1px solid var(--line);
}
.case:nth-child(1) { background: var(--case-1); }
.case:nth-child(2) { background: var(--case-2); }
.case:nth-child(3) { background: var(--case-3); }
.case:nth-child(4) { background: var(--case-4); }
.case__num { font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--primary); margin-bottom: .8rem; }
.case__list { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.case__list li { position: relative; padding-left: 1.4rem; font-size: .92rem; color: var(--muted); }
.case__list li::before {
  content: ""; position: absolute; left: 0; top: .55em; width: 8px; height: 8px;
  border-radius: 50%; background: var(--primary);
}
.note {
  margin: 2rem auto 0; max-width: 760px; text-align: center; font-size: .92rem;
  padding: 1rem 1.25rem; border-radius: 12px; background: var(--note-bg); color: var(--note-ink);
}

/* Warning */
.warn { display: grid; grid-template-columns: 1fr 1.2fr; gap: 3rem; align-items: center; }
.warn__list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.warn__list li {
  padding: 1rem 1.2rem 1rem 2.8rem; position: relative; border-radius: 12px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); font-weight: 600;
}
.warn__list li::before {
  content: "!"; position: absolute; left: 1rem; top: 50%; transform: translateY(-50%);
  width: 20px; height: 20px; border-radius: 50%; background: var(--accent); color: var(--dark);
  font-size: .75rem; font-weight: 800; display: grid; place-items: center;
}

/* FAQ */
.faq-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 4rem; }
.faq details { border-bottom: 1px solid var(--line); padding: 1.2rem 0; }
.faq summary {
  font-weight: 700; font-size: 1.05rem; cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; gap: 1rem; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-size: 1.5rem; color: var(--primary); font-weight: 400; transition: transform .25s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: .8rem 0 0; }

/* Appointment */
.appt { display: grid; grid-template-columns: .9fr 1.1fr; gap: 4rem; align-items: start; }
.contact { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1.2rem; }
.contact li { display: flex; gap: 1rem; align-items: center; }
.contact__icon {
  width: 48px; height: 48px; border-radius: 12px; background: var(--surface); color: var(--primary);
  display: grid; place-items: center; box-shadow: var(--shadow); flex-shrink: 0;
}
.contact__icon svg { width: 22px; height: 22px; }
.contact small { display: block; color: var(--muted); font-size: .8rem; }
.contact a, .contact span:not(.contact__icon) { font-weight: 700; }
.contact a:hover { color: var(--primary); }

.form { background: var(--surface); padding: 2.2rem; border-radius: 24px; box-shadow: var(--shadow); display: grid; gap: 1.25rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.form label { display: grid; gap: .45rem; font-size: .85rem; font-weight: 700; color: var(--ink); }
.form input, .form select, .form textarea {
  -webkit-appearance: none; appearance: none;
  font: inherit; font-size: 1rem; font-weight: 500; line-height: 1.4;
  padding: 0 1rem; height: 52px; border-radius: 12px; margin: 0;
  border: 1.5px solid var(--line); background-color: var(--tint); color: var(--ink);
  transition: border-color .2s, box-shadow .2s, background-color .2s; width: 100%;
}
.form input::placeholder, .form textarea::placeholder { color: var(--muted); opacity: .8; }
.form input:hover, .form select:hover, .form textarea:hover { border-color: color-mix(in srgb, var(--primary) 45%, var(--line)); }
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none; border-color: var(--primary); background-color: var(--surface); box-shadow: 0 0 0 4px var(--primary-light);
}
/* Custom chevron so the dropdown looks the same in every browser */
.form select {
  cursor: pointer; padding-right: 2.75rem;
  background-image: var(--chevron); background-repeat: no-repeat;
  background-position: right 1rem center; background-size: 16px;
}
.form select option { background: var(--surface); color: var(--ink); }
/* Date: own calendar icon (matches the dropdown chevron); the invisible native picker covers the field */
.form input[type="date"] {
  position: relative; cursor: pointer; padding-right: 2.75rem;
  background-image: var(--calendar); background-repeat: no-repeat;
  background-position: right 1rem center; background-size: 18px;
}
.form input[type="date"]::-webkit-calendar-picker-indicator {
  position: absolute; inset: 0; width: auto; height: auto; margin: 0; padding: 0;
  opacity: 0; cursor: pointer;
}
.form textarea { height: auto; min-height: 120px; padding: .85rem 1rem; resize: vertical; }
.form input.invalid { border-color: var(--danger); box-shadow: 0 0 0 4px color-mix(in srgb, var(--danger) 15%, transparent); }
.form__error { color: var(--danger); font-size: .88rem; margin: 0; min-height: 1em; }

/* Footer */
.footer { background: var(--dark); color: rgba(255,255,255,.7); padding: 2rem 0; font-size: .9rem; }
.footer__inner { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.footer p { margin: 0; color: inherit; }
.footer__note { opacity: .7; }

/* Floating WhatsApp button */
.wa-fab {
  position: fixed; z-index: 60; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: .6rem; height: 56px; padding: 0 16px;
  border-radius: 999px; background: #0f7a43; color: #fff; font-weight: 700; font-size: .95rem;
  box-shadow: 0 10px 25px rgba(0,0,0,.2); transition: transform .25s ease, opacity .25s ease, box-shadow .2s;
}
.wa-fab svg { width: 26px; height: 26px; flex-shrink: 0; }
.wa-fab:hover { background: #0c6837; transform: translateY(-2px); box-shadow: 0 14px 30px rgba(0,0,0,.25); }
.wa-fab.is-hidden { opacity: 0; transform: translateY(20px); pointer-events: none; }
@media (max-width: 600px) {
  .wa-fab { right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); width: 56px; padding: 0; justify-content: center; }
  .wa-fab__label { display: none; }
}

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* Responsive */
@media (max-width: 1024px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .cases { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .burger { display: block; }
  .nav {
    position: fixed; inset: 76px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); padding: 1rem 16px 1.5rem; border-bottom: 1px solid var(--line);
    transform: translateY(-120%); transition: transform .3s ease; z-index: -1;
  }
  .nav.open { transform: none; }
  .nav a:not(.btn) { padding: .9rem 0; border-bottom: 1px solid var(--line); }
  .nav__cta { margin-top: 1rem; }
  .burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .burger.open span:nth-child(2) { opacity: 0; }
  .burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .hero__inner, .about, .warn, .faq-wrap, .appt { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero__visual { max-width: 380px; margin: 0 auto; width: 100%; }
    .hero__badge--bottom { right: -8px; }
}
@media (max-width: 600px) {
  .services, .cases, .warn__list, .form__row { grid-template-columns: 1fr; }
  .hero__stats { gap: 1.5rem; }
  .form { padding: 1.5rem; }
  .logo__text small { display: none; }
}
