/* ───────────────────────── Dr. Guba Clinic — design tokens ───────────────────────── */
:root {
  /* Palette — muted, warm, editorial */
  --porcelain: #f4f1ec;     /* page background */
  --paper: #faf8f4;         /* card / panel */
  --bone: #ebe6dd;          /* hairlines / soft fills */
  --ink: #1c1b18;           /* primary text */
  --graphite: #3a3833;      /* secondary text */
  --slate: #6b6760;         /* tertiary text */
  --mute: #a39e94;          /* muted */

  /* Single accent — desaturated sage (a quiet nod to the brand green) */
  --sage: oklch(0.62 0.05 130);
  --sage-deep: oklch(0.42 0.045 130);
  --sage-tint: oklch(0.92 0.025 130);

  /* Type */
  --display: "Cormorant Garamond", "Adamina", Georgia, serif;
  --label:   "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --mono:    "Cormorant SC", "Aboreto", serif;

  /* Spacing scale (8px base, generous) */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px;  --s-4: 16px;
  --s-5: 24px; --s-6: 32px; --s-7: 48px;  --s-8: 64px;
  --s-9: 96px; --s-10: 128px; --s-11: 160px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  background: var(--porcelain);
  color: var(--ink);
  font-family: var(--label);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

/* Type roles */
.display {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.05;
}
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--slate);
  font-weight: 400;
}
.lede {
  font-family: var(--display);
  font-size: clamp(20px, 1.6vw, 26px);
  line-height: 1.4;
  color: var(--graphite);
  font-style: italic;
  font-weight: 400;
}
.body { color: var(--graphite); }
.small { font-size: 13px; color: var(--slate); }

/* Layout helpers */
.app {
  width: 100%;
  min-height: 100vh;
  background: var(--porcelain);
}
.wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--s-7);
}
.wrap-wide {
  max-width: 1480px;
  margin: 0 auto;
  padding: 0 var(--s-7);
}

/* Hairlines */
.rule { height: 1px; background: var(--bone); border: 0; margin: 0; }
.rule-ink { height: 1px; background: var(--ink); border: 0; opacity: 0.85; }

/* Buttons / links */
.btn {
  display: inline-flex; align-items: center; gap: var(--s-3);
  padding: 14px 22px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font-family: var(--label);
  font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase;
  cursor: pointer;
  transition: all 200ms ease;
  text-decoration: none;
}
.btn:hover { background: transparent; color: var(--ink); }
.btn-ghost {
  background: transparent; color: var(--ink);
  border-color: var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-light {
  background: transparent; color: var(--paper); border-color: var(--paper);
}
.btn-light:hover { background: var(--paper); color: var(--ink); }
.btn .arrow { display: inline-block; transition: transform 240ms ease; }
.btn:hover .arrow { transform: translateX(4px); }

.link {
  color: var(--ink); text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 100% 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  padding-bottom: 2px;
  transition: background-size 240ms ease;
}
.link:hover { background-size: 0% 1px; }

/* Image placeholders — diagonal hairline pattern */
.ph {
  position: relative;
  background: var(--bone);
  overflow: hidden;
}
.ph::before {
  content: "";
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(
    45deg,
    transparent 0 14px,
    rgba(28, 27, 24, 0.04) 14px 15px
  );
}
.ph::after {
  content: attr(data-label);
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--slate);
  white-space: nowrap;
}

/* When real photo provided */
.photo {
  background-size: cover;
  background-position: center;
  background-color: var(--bone);
}

/* Cards */
.card {
  background: var(--paper);
  border: 1px solid var(--bone);
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--porcelain) 94%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--bone);
}
.site-header .row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 0;
}
.nav { display: flex; gap: var(--s-7); align-items: center; }
.nav a {
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--graphite);
  text-decoration: none;
  position: relative;
  padding: 4px 0;
  cursor: pointer;
  transition: color 180ms ease;
}
.nav a:hover, .nav a.active { color: var(--ink); }
.nav a.active::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -3px;
  height: 1px; background: var(--ink);
}

.logo {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; color: var(--ink);
  cursor: pointer;
}
.logo-wordmark {
  display: flex; flex-direction: column; line-height: 1;
}
.logo-name {
  font-family: var(--display);
  font-size: 26px;
  letter-spacing: 0.005em;
}
.logo-sub {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--slate);
  margin-top: 4px;
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding: var(--s-9) 0 var(--s-6);
  margin-top: var(--s-10);
}
.site-footer a { color: var(--paper); text-decoration: none; }
.site-footer a:hover { opacity: 0.7; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--s-7);
  padding-bottom: var(--s-8);
}
.footer-col h4 {
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: rgba(250, 248, 244, 0.55);
  margin: 0 0 var(--s-5); font-weight: 400;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; font-size: 14px; }
.footer-bottom {
  border-top: 1px solid rgba(250, 248, 244, 0.12);
  padding-top: var(--s-5);
  display: flex; justify-content: space-between; gap: var(--s-5);
  font-size: 12px; color: rgba(250, 248, 244, 0.5);
}

/* Page transitions */
.page-enter { animation: pageIn 480ms cubic-bezier(0.2, 0.7, 0.2, 1) both; }
@keyframes pageIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Section spacing */
section { padding: var(--s-10) 0; }
.section-tight { padding: var(--s-9) 0; }
.section-flush { padding: 0; }

/* Editorial 12-col grid */
.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--s-5);
}

/* Hover lift */
.lift { transition: transform 360ms cubic-bezier(0.2, 0.7, 0.2, 1); }
.lift:hover { transform: translateY(-4px); }

/* Form */
.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--slate);
}
.field input,
.field textarea,
.field select {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--bone);
  padding: 10px 0;
  font-family: var(--label);
  font-size: 16px;
  color: var(--ink);
  transition: border-color 200ms ease;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-bottom-color: var(--ink);
}
.field textarea { resize: vertical; min-height: 100px; }

/* Marquee / running headline */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--bone);
  border-bottom: 1px solid var(--bone);
  padding: var(--s-5) 0;
}
.marquee-track {
  display: flex; gap: var(--s-7);
  animation: marquee 50s linear infinite;
  white-space: nowrap;
  font-family: var(--display);
  font-size: clamp(28px, 4vw, 56px);
  color: var(--ink);
}
.marquee-track span { display: inline-flex; align-items: center; gap: var(--s-7); }
.marquee-track .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--sage); }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Accordion */
.acc-item {
  border-top: 1px solid var(--bone);
  padding: var(--s-5) 0;
  cursor: pointer;
}
.acc-item:last-of-type { border-bottom: 1px solid var(--bone); }
.acc-q {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: var(--s-5);
  font-family: var(--display);
  font-size: clamp(20px, 2vw, 26px);
  color: var(--ink);
}
.acc-q .plus {
  font-family: var(--label); font-size: 18px; color: var(--slate);
  transition: transform 280ms ease;
}
.acc-item.open .acc-q .plus { transform: rotate(45deg); color: var(--ink); }
.acc-a {
  max-height: 0; overflow: hidden;
  transition: max-height 380ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
.acc-item.open .acc-a { max-height: 600px; }
.acc-a-inner { padding-top: var(--s-4); color: var(--graphite); max-width: 720px; }

/* Chip / filter */
.chip {
  display: inline-flex; align-items: center;
  padding: 8px 16px;
  font-family: var(--label);
  font-size: 12px; letter-spacing: 0.08em;
  border: 1px solid var(--bone);
  background: transparent;
  color: var(--graphite);
  cursor: pointer;
  transition: all 180ms ease;
  border-radius: 999px;
}
.chip:hover { border-color: var(--graphite); color: var(--ink); }
.chip.active {
  background: var(--ink); color: var(--paper); border-color: var(--ink);
}

/* Number tickers */
.tick { display: flex; align-items: baseline; gap: 10px; }
.tick .n {
  font-family: var(--display);
  font-size: clamp(48px, 5vw, 76px);
  font-weight: 400;
  letter-spacing: -0.01em;
}
.tick .l {
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--slate);
  max-width: 160px;
}

/* Sage accent block */
.sage-block { background: var(--sage-tint); }
.sage-rule { background: var(--sage-deep); }

/* Before / After slider */
.ba {
  position: relative;
  overflow: hidden;
  user-select: none;
  background: var(--bone);
}
.ba .ba-img { position: absolute; inset: 0; }
.ba .ba-after { clip-path: inset(0 0 0 50%); transition: clip-path 60ms linear; }
.ba .ba-handle {
  position: absolute; top: 0; bottom: 0;
  width: 2px; background: var(--paper);
  transform: translateX(-1px);
  pointer-events: none;
}
.ba .ba-knob {
  position: absolute; top: 50%; left: 50%;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--ink);
  transform: translate(-50%, -50%);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em;
  color: var(--ink);
  cursor: ew-resize;
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}
.ba .ba-label {
  position: absolute; top: 16px;
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--paper);
  background: rgba(28, 27, 24, 0.55);
  padding: 6px 10px;
  pointer-events: none;
}
.ba .ba-label.l { left: 16px; }
.ba .ba-label.r { right: 16px; }

/* Tag cluster on services */
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  font-family: var(--mono);
  font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--slate);
  padding: 4px 10px;
  border: 1px solid var(--bone);
  border-radius: 999px;
}

/* Page heading scaffold */
.page-head {
  padding: var(--s-9) 0 var(--s-7);
  border-bottom: 1px solid var(--bone);
}
.page-head .crumb {
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--slate);
  margin-bottom: var(--s-5);
}
.page-head h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(48px, 7vw, 96px);
  margin: 0;
  letter-spacing: -0.015em;
  line-height: 1;
}

/* Booking ribbon */
.ribbon {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--s-5) var(--s-7);
  border: 1px solid var(--bone);
  background: var(--paper);
}

/* Misc */
.k-v { display: grid; grid-template-columns: 220px 1fr; gap: var(--s-5); padding: var(--s-4) 0; border-bottom: 1px solid var(--bone); }
.k-v dt { font-family: var(--mono); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--slate); }
.k-v dd { margin: 0; color: var(--graphite); }

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

@media (max-width: 900px) {
  .wrap, .wrap-wide { padding: 0 var(--s-5); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--s-5); }
  .nav { gap: var(--s-4); }
}
