:root {
  --bg-canvas: #faf9f6;
  --bg-surface: #ffffff;
  --bg-warm: #f3efe8;
  --bg-accent-soft: #eef3f1;
  --ink: #1b1e1d;
  --ink-muted: #5a605d;
  --border: #e6e0d6;
  --emerald: #1f4e46;
  --emerald-hover: #173b35;
  --gold: #8c7355;
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --shadow-card: 0 18px 45px -24px rgba(27, 30, 29, 0.14);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--bg-canvas);
  color: var(--ink);
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

.font-serif {
  font-family: 'Cormorant Garamond', Georgia, serif;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: 16px;
}

@media (min-width: 640px) {
  .container {
    padding-inline: 24px;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(250, 249, 246, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 68px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--emerald);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 20px;
  font-weight: 600;
}

.brand-title {
  display: block;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.brand-sub {
  display: block;
  font-size: 11px;
  color: var(--ink-muted);
}

.main-nav {
  display: none;
  align-items: center;
  gap: 24px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-muted);
}

.main-nav a:hover {
  color: var(--emerald);
}

@media (min-width: 1024px) {
  .main-nav {
    display: flex;
  }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.phone-header-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-surface);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.phone-header-link:hover {
  border-color: var(--emerald);
  background: var(--bg-accent-soft);
}

.phone-header-meta {
  display: none;
  font-size: 11px;
  font-weight: 400;
  color: var(--ink-muted);
}

@media (min-width: 1280px) {
  .phone-header-meta {
    display: inline;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 11px 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.btn-primary {
  background: var(--emerald);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--emerald-hover);
}

.btn-outline {
  background: var(--bg-surface);
  color: var(--ink);
  border-color: var(--border);
}

.btn-outline:hover {
  border-color: var(--emerald);
  color: var(--emerald);
}

.btn-sm {
  padding: 8px 14px;
  font-size: 13px;
}

.header-book-btn {
  display: none;
}

@media (min-width: 640px) {
  .header-book-btn {
    display: inline-flex;
  }
}

.mobile-menu-btn {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-surface);
  cursor: pointer;
}

@media (min-width: 1024px) {
  .mobile-menu-btn {
    display: none;
  }
}

.mobile-drawer {
  display: none;
  border-top: 1px solid var(--border);
  background: var(--bg-surface);
  padding: 16px;
}

.mobile-drawer.is-open {
  display: block;
}

.mobile-drawer nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mobile-drawer a {
  padding: 8px 0;
  font-weight: 500;
  border-bottom: 1px solid #f2eee7;
}

/* Sections */
.section {
  padding: 64px 0;
}

.section-warm {
  background: var(--bg-warm);
}

.section-white {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--emerald);
  margin-bottom: 10px;
}

.section-title {
  margin: 0 0 12px;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(32px, 4.2vw, 48px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.section-lead {
  margin: 0;
  max-width: 680px;
  color: var(--ink-muted);
  font-size: 16px;
}

/* Hero */
.hero {
  padding: 40px 0 56px;
}

.hero-grid {
  display: grid;
  gap: 32px;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 48px;
  }
}

.hero-h1 {
  margin: 12px 0 18px;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(38px, 5vw, 60px);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.02em;
}

.hero-lead {
  margin: 0 0 24px;
  max-width: 580px;
  font-size: 17px;
  color: var(--ink-muted);
}

.hero-phone-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  margin-bottom: 24px;
}

.hero-phone-number {
  display: block;
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--emerald);
}

.hero-phone-note {
  display: block;
  font-size: 12px;
  color: var(--ink-muted);
  margin-top: 2px;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.hero-kpis {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

@media (min-width: 640px) {
  .hero-kpis {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.kpi-value {
  display: block;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.1;
  white-space: nowrap;
}

.kpi-label {
  display: block;
  font-size: 12px;
  color: var(--ink-muted);
  margin-top: 4px;
}

.hero-media-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-surface);
  box-shadow: var(--shadow-card);
}

.hero-media-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top;
}

.hero-doctor-caption {
  padding: 16px 20px;
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
}

.hero-doctor-caption strong {
  display: block;
  font-size: 16px;
}

.hero-doctor-caption span {
  display: block;
  font-size: 13px;
  color: var(--ink-muted);
}

/* Procedures */
.tabs-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 28px 0 24px;
}

.tab-btn {
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-surface);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.tab-btn.is-active {
  background: var(--emerald);
  border-color: var(--emerald);
  color: #fff;
}

.procedures-grid {
  display: grid;
  gap: 20px;
}

@media (min-width: 768px) {
  .procedures-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.proc-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.proc-card.is-hidden {
  display: none;
}

.proc-img-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-warm);
}

.proc-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.proc-price-badge {
  position: absolute;
  right: 14px;
  bottom: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  font-size: 13px;
  font-weight: 700;
  color: var(--emerald);
}

.proc-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.proc-meta {
  font-size: 12px;
  font-weight: 600;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.proc-title {
  margin: 0;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.1;
}

.proc-sub {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
}

.proc-desc {
  margin: 0;
  font-size: 14px;
  color: var(--ink-muted);
}

.proc-specs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 12px;
  background: var(--bg-canvas);
  border-radius: var(--radius-sm);
  font-size: 12px;
}

.proc-specs span {
  display: block;
  color: var(--ink-muted);
}

.proc-specs strong {
  display: block;
  margin-top: 2px;
}

.proc-list {
  margin: 0;
  padding-left: 18px;
  font-size: 13px;
  color: var(--ink-muted);
}

.proc-footer {
  margin-top: auto;
  padding-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Booking */
.booking-shell {
  display: grid;
  gap: 24px;
  margin-top: 28px;
}

@media (min-width: 1024px) {
  .booking-shell {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: start;
  }
}

.card-box {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-card);
}

.step-title {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--emerald);
}

.choice-grid {
  display: grid;
  gap: 10px;
  margin-bottom: 20px;
}

@media (min-width: 640px) {
  .choice-grid.cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .choice-grid.cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.choice-btn {
  text-align: left;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-canvas);
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.choice-btn.is-selected {
  border-color: var(--emerald);
  background: var(--bg-accent-soft);
}

.choice-btn strong {
  display: block;
  font-size: 14px;
}

.choice-btn span {
  display: block;
  font-size: 12px;
  color: var(--ink-muted);
  margin-top: 2px;
}

.dates-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 8px;
  margin-bottom: 18px;
}

.slots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
  gap: 8px;
  margin-bottom: 18px;
}

.slot-btn {
  padding: 10px 8px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-surface);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.slot-btn.is-selected {
  background: var(--emerald);
  border-color: var(--emerald);
  color: #fff;
}

.slot-btn:disabled {
  opacity: 0.4;
  text-decoration: line-through;
  cursor: not-allowed;
}

.field {
  margin-bottom: 14px;
}

.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 11px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-canvas);
}

.form-msg {
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 13px;
  margin-bottom: 12px;
}

.form-msg.error {
  background: #fdecec;
  color: #8f1d1d;
  border: 1px solid #f4c7c7;
}

.form-msg.success {
  background: #eaf5f0;
  color: #16443a;
  border: 1px solid #b9ddd0;
}

/* Before / After */
.ba-grid {
  display: grid;
  gap: 28px;
  align-items: center;
}

@media (min-width: 1024px) {
  .ba-grid {
    grid-template-columns: 1.05fr 0.95fr;
  }
}

.ba-viewport {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 4 / 3;
  user-select: none;
  touch-action: pan-y;
}

.ba-viewport img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ba-before-layer {
  position: absolute;
  inset: 0;
  overflow: hidden;
  clip-path: inset(0 50% 0 0);
}

.ba-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: #ffffff;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

.ba-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #ffffff;
  color: var(--emerald);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

.ba-tag {
  position: absolute;
  top: 14px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(27, 30, 29, 0.72);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}

.ba-tag.left {
  left: 14px;
}

.ba-tag.right {
  right: 14px;
}

.ba-range {
  width: 100%;
  margin-top: 14px;
  accent-color: var(--emerald);
}

/* Cards grids */
.cards-2 {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

@media (min-width: 768px) {
  .cards-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.cards-3 {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

@media (min-width: 768px) {
  .cards-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Accordion */
.accordion-list {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.acc-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  overflow: hidden;
}

.acc-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border: 0;
  background: transparent;
  text-align: left;
  font-weight: 600;
  cursor: pointer;
}

.acc-panel {
  display: none;
  padding: 0 18px 16px;
  font-size: 14px;
  color: var(--ink-muted);
}

.acc-item.is-open .acc-panel {
  display: block;
}

/* Doctors & Reviews */
.doctor-grid {
  display: grid;
  gap: 28px;
  align-items: center;
}

@media (min-width: 1024px) {
  .doctor-grid {
    grid-template-columns: 360px 1fr;
  }
}

.doctor-photo {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  aspect-ratio: 3 / 4;
  width: 100%;
  object-fit: cover;
  object-position: top;
}

.review-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
}

.review-stars {
  color: var(--gold);
  font-size: 15px;
  margin-bottom: 8px;
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(27, 30, 29, 0.56);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-backdrop.is-open {
  display: flex;
}

.modal-card {
  width: 100%;
  max-width: 480px;
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid var(--border);
  position: relative;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-canvas);
  cursor: pointer;
}

/* Mobile bottom bar */
.mobile-phone-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 45;
  display: flex;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(250, 249, 246, 0.96);
  border-top: 1px solid var(--border);
}

@media (min-width: 768px) {
  .mobile-phone-bar {
    display: none;
  }
}

.mobile-phone-bar a,
.mobile-phone-bar button {
  flex: 1;
  text-align: center;
}

.site-footer {
  background: #1b1e1d;
  color: #e6e0d6;
  padding: 40px 0 84px;
  font-size: 13px;
}

@media (min-width: 768px) {
  .site-footer {
    padding-bottom: 40px;
  }
}

.footer-grid {
  display: grid;
  gap: 24px;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.2fr 1fr 1fr;
  }
}
