/* REBA clinic — calm medical trust, not generic AI purple */
:root {
  --bg: #f3f7f8;
  --bg-deep: #0b2a32;
  --surface: #ffffff;
  --ink: #12262c;
  --muted: #4d646c;
  --line: #d5e2e6;
  --brand: #0e7c86;
  --brand-dark: #0a5c64;
  --accent: #c45c26;
  --ok: #1f7a4c;
  --wa: #25d366;
  --tg: #2aabee;
  --max: #7b61ff;
  --radius: 14px;
  --shadow: 0 12px 40px rgba(11, 42, 50, 0.08);
  --font: "Manrope", system-ui, sans-serif;
  --display: "Literata", Georgia, serif;
  --maxw: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(14, 124, 134, 0.12), transparent 55%),
    radial-gradient(900px 400px at 100% 0%, rgba(196, 92, 38, 0.08), transparent 50%),
    var(--bg);
  line-height: 1.65;
  font-size: 17px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand); }
h1, h2, h3 {
  font-family: var(--display);
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(1.85rem, 4vw, 2.75rem); margin: 0 0 0.75rem; }
h2 { font-size: clamp(1.4rem, 2.5vw, 1.9rem); margin: 2.2rem 0 0.85rem; }
h3 { font-size: 1.15rem; margin: 1.4rem 0 0.5rem; }
p { margin: 0 0 1rem; color: var(--ink); }
ul, ol { margin: 0 0 1rem; padding-left: 1.2rem; }
li { margin-bottom: 0.4rem; }

.container { width: min(100% - 2rem, var(--maxw)); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 100; background: #fff; padding: 0.5rem 1rem; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(243, 247, 248, 0.9);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
}
.brand {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--ink);
}
.brand-name {
  font-family: var(--display);
  font-size: clamp(0.95rem, 2.5vw, 1.2rem);
  font-weight: 700;
  color: var(--brand-dark);
  line-height: 1.15;
  max-width: 12rem;
}
.brand-tag { font-size: 0.72rem; color: var(--muted); letter-spacing: 0.04em; text-transform: uppercase; }
.header-actions { display: flex; align-items: center; gap: 0.6rem; }
.nav-desktop { display: none; gap: 1rem; align-items: center; }
.nav-desktop a {
  text-decoration: none;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 600;
}
.nav-desktop a:hover { color: var(--brand); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 0;
  border-radius: 999px;
  padding: 0.72rem 1.15rem;
  font: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 8px 20px rgba(14,124,134,.25); }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-tg { background: var(--tg); color: #fff; }
.btn-max { background: var(--max); color: #fff; }
.btn-sm { padding: 0.5rem 0.85rem; font-size: 0.85rem; }

.burger {
  width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line);
  background: #fff; display: grid; place-items: center; cursor: pointer;
}
.burger span { display: block; width: 18px; height: 2px; background: var(--ink); margin: 2px 0; }

.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 0.75rem 0 1rem;
}
.mobile-nav.open { display: block; }
.mobile-nav a {
  display: block;
  padding: 0.65rem 0;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  border-bottom: 1px solid var(--line);
}

/* Hero */
.hero {
  padding: 2.2rem 0 1.5rem;
}
.hero-grid {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}
.hero-panel {
  background: linear-gradient(160deg, #0b2a32 0%, #0e4a52 55%, #0e7c86 120%);
  color: #e8f4f5;
  border-radius: 22px;
  padding: clamp(1.4rem, 4vw, 2.4rem);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  min-height: 320px;
}
.hero-panel::after {
  content: "";
  position: absolute;
  inset: auto -20% -40% 40%;
  height: 280px;
  background: radial-gradient(circle, rgba(255,255,255,.18), transparent 65%);
  pointer-events: none;
}
.hero-kicker {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9fd7dc;
  margin-bottom: 0.75rem;
}
.hero-panel h1 { color: #fff; max-width: 18ch; }
.hero-lead { color: #d4ecee; font-size: 1.05rem; max-width: 38ch; margin-bottom: 1.25rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.6rem; position: relative; z-index: 1; }
.hero-meta {
  display: flex; flex-wrap: wrap; gap: 0.75rem 1.25rem;
  margin-top: 1.25rem; font-size: 0.9rem; color: #b7dcdf; position: relative; z-index: 1;
}
.hero-visual {
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #fff;
}
.hero-visual img { width: 100%; height: 100%; object-fit: cover; min-height: 280px; }

.messengers {
  display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.85rem;
}

/* Sections */
.section { padding: 2rem 0; }
.section-head { margin-bottom: 1.25rem; }
.section-head p { color: var(--muted); max-width: 60ch; }

.cards {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.2rem;
  box-shadow: 0 4px 18px rgba(11,42,50,.04);
}
.card h3 { margin-top: 0; }
.card a.card-link {
  display: inline-flex; margin-top: 0.5rem; font-weight: 700; text-decoration: none;
}

.specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}
.spec {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.9rem 1rem;
}
.spec strong { display: block; font-size: 1.25rem; color: var(--brand-dark); font-family: var(--display); }
.spec span { font-size: 0.85rem; color: var(--muted); }

.prose {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: clamp(1.2rem, 3vw, 2rem);
  box-shadow: var(--shadow);
}
.prose .lede { font-size: 1.08rem; color: var(--muted); }
.toc {
  background: #eef6f7;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  margin: 1.25rem 0 1.5rem;
}
.toc summary { cursor: pointer; font-weight: 700; }
.toc ol { margin: 0.75rem 0 0; }

.figure {
  margin: 1.5rem 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
}
.figure img { width: 100%; }
.figure figcaption {
  padding: 0.7rem 1rem;
  font-size: 0.88rem;
  color: var(--muted);
  background: #f8fbfc;
}

.price-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.price-table th, .price-table td {
  text-align: left; padding: 0.75rem 0.6rem; border-bottom: 1px solid var(--line);
}
.price-table th { color: var(--muted); font-weight: 600; font-size: 0.8rem; text-transform: uppercase; }
.price-table td:last-child { font-weight: 700; white-space: nowrap; color: var(--brand-dark); }

.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  margin-bottom: 0.65rem;
}
.faq summary { font-weight: 700; cursor: pointer; }

.cta-band {
  margin: 2rem 0;
  background: linear-gradient(120deg, var(--bg-deep), var(--brand-dark));
  color: #fff;
  border-radius: 18px;
  padding: 1.5rem;
}
.cta-band p { color: #d4ecee; }
.cta-band .hero-cta { margin-top: 1rem; }

.breadcrumbs {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 1rem 0 0.5rem;
}
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--brand); }

.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
}
.gallery img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 12px;
}

.site-footer {
  margin-top: 3rem;
  background: var(--bg-deep);
  color: #c9dee2;
  padding: 2.5rem 0 6.5rem;
}
.footer-grid {
  display: grid;
  gap: 1.5rem;
}
.site-footer a { color: #9fd7dc; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer h3 { color: #fff; margin-top: 0; font-size: 1rem; }
.footer-note { font-size: 0.82rem; color: #7fa5ab; margin-top: 1.5rem; }

.sticky-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 60;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
  padding: 0.55rem 0.7rem calc(0.55rem + env(safe-area-inset-bottom));
  background: rgba(11, 42, 50, 0.96);
  backdrop-filter: blur(8px);
}
.sticky-bar .btn { width: 100%; border-radius: 12px; }

@media (min-width: 768px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .specs { grid-template-columns: repeat(4, 1fr); }
  .gallery { grid-template-columns: repeat(4, 1fr); }
  .gallery img { height: 180px; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
  .burger { display: none; }
  .nav-desktop { display: flex; }
  .sticky-bar { display: none; }
  .site-footer { padding-bottom: 2.5rem; }
}
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 1.15fr 0.85fr; }
  .cards { grid-template-columns: repeat(3, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
