/* ============================================================
   Covent Clinic — design tokens + base
   Palette derived from the real interior photos
   ============================================================ */

:root {
  /* Surfaces */
  --ivory:        #F8F4EC;
  --ivory-deep:   #F1EBDD;
  --cream-card:   #FCFAF4;
  --white:        #FFFFFF;

  /* Brand */
  --gold:         #C9A24B;
  --gold-deep:    #A8853A;
  --gold-soft:    #E4CE9A;
  --gold-glow:    #F0DDB0;

  /* Darks */
  --espresso:     #3B2C24;
  --espresso-soft:#5A463A;
  --charcoal:     #211C19;

  /* Accents */
  --blush:        #E7C9C2;
  --blush-deep:   #C99A8E;

  /* UI */
  --line:         rgba(59, 44, 36, 0.12);
  --line-strong:  rgba(59, 44, 36, 0.22);
  --shadow-card:  0 1px 2px rgba(33, 28, 25, 0.04), 0 12px 32px -16px rgba(33, 28, 25, 0.18);
  --shadow-lift:  0 4px 12px rgba(33, 28, 25, 0.06), 0 28px 60px -24px rgba(33, 28, 25, 0.22);

  /* Type */
  --f-display: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  --f-script:  "Italiana", "Cormorant Garamond", serif;
  --f-ui:      "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;

  /* Layout */
  --maxw: 1240px;
  --gutter: 32px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--ivory);
  color: var(--charcoal);
  font-family: var(--f-ui);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
img { display: block; max-width: 100%; }

/* Typography scale */
.eyebrow {
  font-family: var(--f-ui);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--gold-deep);
}
.eyebrow.muted { color: var(--espresso-soft); }

.display-1 {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(48px, 6.4vw, 92px);
  line-height: 1.02;
  letter-spacing: -0.015em;
  color: var(--espresso);
  text-wrap: balance;
}
.display-2 {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(36px, 4.4vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--espresso);
  text-wrap: balance;
}
.display-3 {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(28px, 2.6vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.005em;
  color: var(--espresso);
}
.lede {
  font-size: 18px;
  line-height: 1.55;
  color: var(--espresso-soft);
  max-width: 56ch;
  text-wrap: pretty;
}

/* Italic refinement for the serif */
.display-1 em, .display-2 em, .display-3 em {
  font-style: italic;
  font-weight: 400;
  color: var(--gold-deep);
}

/* Container */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Section spacing */
section { padding: 88px 0; }
section.tight { padding: 56px 0; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  font-family: var(--f-ui);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 180ms ease;
  white-space: nowrap;
}
.btn--primary {
  background: var(--espresso);
  color: var(--ivory);
}
.btn--primary:hover {
  background: var(--charcoal);
  transform: translateY(-1px);
  box-shadow: 0 12px 28px -12px rgba(33, 28, 25, 0.45);
}
.btn--gold {
  background: var(--gold);
  color: var(--charcoal);
}
.btn--gold:hover {
  background: var(--gold-deep);
  color: var(--ivory);
  transform: translateY(-1px);
}
.btn--ghost {
  background: transparent;
  color: var(--espresso);
  border-color: var(--line-strong);
}
.btn--ghost:hover {
  border-color: var(--espresso);
  background: rgba(59, 44, 36, 0.04);
}
.btn--whatsapp {
  background: #25D366;
  color: #fff;
}
.btn--whatsapp:hover {
  background: #1DB855;
  transform: translateY(-1px);
}
.btn--sm { height: 40px; padding: 0 18px; font-size: 12px; }
.btn--lg { height: 60px; padding: 0 32px; font-size: 14px; }

/* Chip */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--cream-card);
  border: 1px solid var(--line);
  font-size: 13px;
  color: var(--espresso);
}
.chip strong { color: var(--charcoal); font-weight: 600; }
.chip--dark { background: rgba(33, 28, 25, 0.06); }
.chip--gold {
  background: rgba(201, 162, 75, 0.12);
  border-color: rgba(201, 162, 75, 0.35);
  color: var(--gold-deep);
}

/* Divider with serif flourish */
.serif-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--gold-deep);
  font-family: var(--f-display);
  font-style: italic;
  font-size: 14px;
  letter-spacing: 0.18em;
}
.serif-divider::before, .serif-divider::after {
  content: "";
  flex: 0 0 64px;
  height: 1px;
  background: var(--gold-soft);
}

/* Cards */
.card {
  background: var(--cream-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

/* Inputs */
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field label {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--espresso-soft);
  font-weight: 500;
}
.field input,
.field select,
.field textarea {
  font-family: var(--f-ui);
  font-size: 15px;
  color: var(--charcoal);
  padding: 14px 16px;
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  outline: none;
  transition: border-color 160ms, box-shadow 160ms;
  width: 100%;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(201, 162, 75, 0.15);
}
.field textarea { resize: vertical; min-height: 96px; }
.field.error input, .field.error select { border-color: #C0463A; }
.field .err {
  font-size: 12px;
  color: #C0463A;
  text-transform: none;
  letter-spacing: 0;
}

/* Utility */
.muted { color: var(--espresso-soft); }
.gold  { color: var(--gold-deep); }
.center { text-align: center; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.stack { display: flex; flex-direction: column; }
.grow { flex: 1; }

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

/* Skeleton placeholder for missing imagery */
.placeholder {
  position: relative;
  background:
    linear-gradient(135deg, rgba(201,162,75,0.08), rgba(231,201,194,0.08)),
    repeating-linear-gradient(45deg,
      var(--cream-card) 0 12px,
      var(--ivory-deep) 12px 24px);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--espresso-soft);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  padding: 16px;
  overflow: hidden;
}

/* WhatsApp icon */
.wa-ico { width: 18px; height: 18px; }

/* Loader dot */
@keyframes pulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}
.live-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #25D366;
  display: inline-block;
  animation: pulse 1.8s ease-in-out infinite;
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================================
   Tweakable variants
   ============================================================ */
html[data-announcement="off"] .anno-bar { display: none; }

/* Hero shape variants */
html[data-hero-style="arch"] .hero-visual {
  border-radius: 280px 280px 24px 24px !important;
}
html[data-hero-style="split"] .hero-visual {
  border-radius: 0 !important;
  border-top: 1px solid var(--gold);
  border-bottom: 1px solid var(--gold);
  padding-block: 0 !important;
}
html[data-hero-style="split"] .hero-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  border-left: 1px solid var(--gold-soft);
  border-right: 1px solid var(--gold-soft);
  pointer-events: none;
  z-index: 1;
}

