/* ===========================================================
 * Lola Women's Clinic — Shared site theme
 * Aligns all pages with the homepage's Playfair Display +
 * cream + brand-magenta look. Loaded after the page's own
 * <style> block so its rules win on conflicting properties.
 * =========================================================== */

:root {
  --brand-900: #2a001b;
  --brand-800: #3a0026;
  --brand-700: #4e0033;
  --brand-600: #6b0046;
  --accent:    #ec4899;
  --accent-strong: #db2777;
  --accent-soft: #fce7f3;
  --cream:     #fff8f1;
  --ink:       #1a0011;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif !important;
  background: var(--cream) !important;
  color: var(--ink) !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin: 0;
}

/* Display font for headings — overrides any local font choices */
h1, h2, h3, h4, h5, h6,
.font-display, .font-serif, .font-playfair {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif !important;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--brand-700);
}

/* Selection color */
::selection { background: var(--accent); color: #fff; }

/* Focus ring */
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid #f472b6;
  outline-offset: 3px;
  border-radius: 8px;
}

/* Brand tokens — common helper classes */
.brand-bg          { background: var(--brand-700) !important; color: #fff !important; }
.brand-bg-dark     { background: var(--brand-900) !important; color: #fff !important; }
.brand-text        { color: var(--brand-700) !important; }
.cream-bg          { background: var(--cream) !important; }

/* Pink accent bar reused across sections */
.section-accent {
  display: inline-block;
  width: 56px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), #f472b6);
  border-radius: 999px;
  margin-bottom: 1.1rem;
}
.section-accent.center { margin: 0 auto 1.1rem; display: block; }

/* Primary CTA used across location pages */
.btn-primary, button.btn-primary, a.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .9rem 1.6rem;
  font-weight: 700;
  font-size: .95rem;
  color: #fff !important;
  background: linear-gradient(135deg, var(--accent), #e11d48) !important;
  border: 0;
  border-radius: 9999px !important;
  box-shadow: 0 12px 28px -8px rgba(219, 39, 119, .55);
  transition: transform .2s, box-shadow .2s, filter .2s;
  text-decoration: none !important;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px -8px rgba(219, 39, 119, .7);
  filter: saturate(1.1);
}

/* Card lift — when location pages have generic cards */
.card, .border, [class*="rounded-"] {
  transition: transform .35s cubic-bezier(.22, 1, .36, 1),
              box-shadow .35s cubic-bezier(.22, 1, .36, 1);
}

/* Soft brand override for sections with old dark backgrounds */
.bg-purple-900, .bg-\[\#4e0033\]:not(header):not(footer) {
  background: var(--brand-700) !important;
}

/* Footer harmonization */
footer {
  background: var(--brand-900);
  color: rgba(255, 255, 255, .8);
}

/* Hide aggressive horizontal overflow some old templates have */
body { overflow-x: hidden; }

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