/* ==========================================================================
   Dr. Aneela Imran Clinic — Design System
   Soft feminine clinical-luxe · Rose / Plum / Cream · Playfair + Inter
   ========================================================================== */

/* ---------- Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Inter:wght@300;400;500;600;700&family=Noto+Nastaliq+Urdu:wght@400;500;700&display=swap');

/* ---------- Design tokens ---------- */
:root {
  /* Primary — soft rose / dusty pink */
  --rose-50:  #FBF1F2;
  --rose-100: #F6E1E3;
  --rose-200: #EDC6CA;
  --rose-300: #E8B4B8;
  --rose-400: #D4889A;   /* primary */
  --rose-500: #BE6E82;
  --rose-600: #A35568;

  /* Secondary — deep maroon / plum */
  --plum-500: #8A3448;
  --plum-600: #6B2737;   /* secondary */
  --plum-700: #531C29;
  --plum-800: #3B131C;

  /* Neutrals */
  --cream:     #FAF3E7;
  --cream-dk:  #F3E9D7;
  --charcoal:  #2D2D2D;
  --muted:     #6B6560;

  /* UI */
  --ring: 0 0 0 3px rgba(212, 136, 154, 0.35);
  --shadow-soft: 0 10px 30px -12px rgba(107, 39, 55, 0.18);
  --shadow-lift: 0 22px 55px -22px rgba(107, 39, 55, 0.28);
  --radius: 14px;
  --radius-lg: 22px;
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--charcoal);
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, .font-serif {
  font-family: 'Playfair Display', Georgia, serif;
  letter-spacing: -0.01em;
}
.font-urdu {
  font-family: 'Noto Nastaliq Urdu', serif;
  line-height: 2;
  direction: rtl;
}

/* Skip link — a11y */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--plum-600); color: #fff; padding: 10px 16px; z-index: 9999;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* Focus rings */
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 6px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .9rem 1.6rem; border-radius: 999px;
  font-weight: 600; font-size: .95rem; letter-spacing: .01em;
  transition: transform .18s ease, box-shadow .18s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--plum-600); color: #fff;
  box-shadow: 0 10px 22px -12px rgba(107,39,55,.55);
}
.btn-primary:hover { background: var(--plum-700); transform: translateY(-2px); box-shadow: 0 16px 28px -14px rgba(107,39,55,.7); }
.btn-secondary {
  background: var(--rose-300); color: var(--plum-700);
}
.btn-secondary:hover { background: var(--rose-400); color: #fff; transform: translateY(-2px); }
.btn-whatsapp { background: #25D366; color: #fff; }
.btn-whatsapp:hover { background: #1da851; transform: translateY(-2px); }
.btn-ghost {
  background: transparent; color: var(--plum-700); border: 1.5px solid var(--rose-300);
}
.btn-ghost:hover { background: var(--rose-50); border-color: var(--rose-400); }

/* ---------- Decorative blob ---------- */
.blob {
  position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; pointer-events: none;
}
.blob-rose { background: var(--rose-200); }
.blob-cream { background: var(--cream-dk); }

/* ---------- Section helpers ---------- */
.section { padding: 5rem 0; }
@media (min-width: 768px) { .section { padding: 7rem 0; } }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .78rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--plum-600);
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--rose-400); }

/* ---------- Cards ---------- */
.card {
  background: #fff; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft); border: 1px solid rgba(232,180,184,.25);
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }

/* ---------- Service icon bubble ---------- */
.icon-bubble {
  width: 56px; height: 56px; border-radius: 18px;
  background: linear-gradient(135deg, var(--rose-100), var(--rose-200));
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--plum-600);
}

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid rgba(107,39,55,.12); }
.faq-btn { width: 100%; text-align: left; padding: 1.4rem 0; display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-family: 'Playfair Display', serif; font-size: 1.1rem; color: var(--plum-700); cursor: pointer; background: none; border: none; }
.faq-btn .chev { transition: transform .25s ease; color: var(--rose-400); }
.faq-btn[aria-expanded="true"] .chev { transform: rotate(180deg); }
.faq-panel { max-height: 0; overflow: hidden; transition: max-height .3s ease; color: var(--muted); }
.faq-panel-inner { padding-bottom: 1.25rem; line-height: 1.7; }

/* ---------- Testimonial carousel ---------- */
.t-track { display: flex; transition: transform .6s cubic-bezier(.4,0,.2,1); }
.t-slide { min-width: 100%; padding: 0 .25rem; }
.t-dots { display: flex; gap: .5rem; justify-content: center; }
.t-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--rose-200); border: none; cursor: pointer; transition: all .2s; }
.t-dot.active { background: var(--plum-600); width: 26px; border-radius: 999px; }

/* ---------- Floating WhatsApp ---------- */
.fab-whatsapp {
  position: fixed; right: 20px; bottom: 22px; z-index: 60;
  width: 60px; height: 60px; border-radius: 50%;
  background: #25D366; color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 18px 40px -12px rgba(37,211,102,.55);
  animation: pulse 2.4s infinite;
}
.fab-whatsapp:hover { background: #1da851; }
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(37,211,102,.55); }
  70%  { box-shadow: 0 0 0 18px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

/* ---------- Exit-intent modal ---------- */
.modal-backdrop { position: fixed; inset: 0; background: rgba(45,45,45,.55); backdrop-filter: blur(6px); z-index: 90; display: none; align-items: center; justify-content: center; padding: 1rem; }
.modal-backdrop.open { display: flex; animation: fade .3s ease; }
.modal { background: #fff; max-width: 460px; width: 100%; border-radius: var(--radius-lg); padding: 2rem; position: relative; box-shadow: 0 40px 80px -20px rgba(0,0,0,.3); }
.modal-close { position: absolute; top: 14px; right: 14px; background: var(--cream); border: none; width: 34px; height: 34px; border-radius: 50%; cursor: pointer; color: var(--charcoal); }
@keyframes fade { from { opacity: 0; transform: translateY(10px) } to { opacity: 1; transform: none } }

/* ---------- Nav ---------- */
.nav-link { position: relative; font-weight: 500; color: var(--charcoal); transition: color .2s; }
.nav-link:hover, .nav-link.active { color: var(--plum-600); }
.nav-link.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--rose-400); border-radius: 2px; }

/* Mobile drawer */
.mobile-drawer { position: fixed; inset: 0; background: #fff; z-index: 80; transform: translateX(100%); transition: transform .3s ease; padding: 5rem 2rem 2rem; display: flex; flex-direction: column; gap: 1.4rem; }
.mobile-drawer.open { transform: translateX(0); }
.mobile-drawer a { font-family: 'Playfair Display', serif; font-size: 1.4rem; color: var(--plum-700); }

/* ---------- Hero image placeholder ---------- */
.hero-portrait {
  aspect-ratio: 4/5; border-radius: 28px; overflow: hidden;
  background:
    radial-gradient(circle at 30% 20%, var(--rose-200) 0%, transparent 55%),
    radial-gradient(circle at 80% 70%, var(--cream-dk) 0%, transparent 55%),
    linear-gradient(135deg, var(--rose-100) 0%, var(--cream) 100%);
  position: relative;
}
.hero-portrait::after {
  content: "Dr. Aneela Imran"; position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif; font-style: italic; font-size: 1.1rem;
  color: var(--plum-600); opacity: .35;
}

/* ---------- Divider ornament (rose-gold flourish) ---------- */
.ornament {
  display: flex; align-items: center; justify-content: center; gap: .9rem;
  color: var(--rose-400);
}
.ornament::before, .ornament::after {
  content: "";
  height: 12px; width: 90px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 90 12'><path d='M0 6 Q 18 -2 36 6 T 72 6 L 90 6' fill='none' stroke='%23D4889A' stroke-width='1.2' stroke-linecap='round'/><circle cx='45' cy='6' r='1.6' fill='%236B2737'/></svg>");
  background-repeat: no-repeat; background-position: center;
  background-size: contain;
}
.ornament::after { transform: scaleX(-1); }
.ornament .petal {
  width: 14px; height: 14px; color: var(--rose-400);
  display: inline-block;
}

/* ---------- Utility overrides ---------- */
.prose-clinic p { line-height: 1.75; color: var(--muted); }
.prose-clinic p + p { margin-top: 1rem; }

/* ======================================================================
   UPGRADE PACK — Motion, micro-typography, signature ornament
   ====================================================================== */

/* ---------- Headline typographic refinements ---------- */
h1 { letter-spacing: -0.022em; }
h2 { letter-spacing: -0.018em; }
h1, h2, h3 { font-feature-settings: "lnum" 1, "kern" 1, "liga" 1, "dlig" 1; }
body { font-feature-settings: "kern" 1, "liga" 1; }
.prose-clinic { font-feature-settings: "onum" 1, "kern" 1, "liga" 1; } /* oldstyle numerals in body copy */

/* Drop cap on first paragraph of a long-form article */
.prose-clinic > p:first-of-type::first-letter {
  font-family: 'Playfair Display', serif;
  font-size: 4.6rem;
  float: left;
  line-height: 0.86;
  padding: .35rem .7rem 0 0;
  color: var(--plum-600);
  font-style: italic;
  font-weight: 600;
}

/* Italic pull-quote with rose rule */
.prose-clinic blockquote, blockquote.pullquote {
  border-left: 3px solid var(--rose-400);
  padding: .2rem 0 .2rem 1.5rem;
  font-style: italic;
  font-family: 'Playfair Display', serif;
  font-size: 1.45rem; line-height: 1.55;
  color: var(--plum-700);
  margin: 2rem 0;
}

/* Tighter measure on long-form reading */
.prose-clinic { max-width: 62ch; }
.prose-clinic.prose-wide { max-width: 72ch; }

/* Selection tint — brand touch */
::selection { background: var(--rose-200); color: var(--plum-800); }

/* ---------- Signature monogram upgrade (CSS-only, no HTML change) ----------
   Targets the existing circular span signature used in header & footer. */
span.rounded-full.bg-plum-600.grid {
  position: relative;
  background: radial-gradient(circle at 32% 28%, var(--plum-500) 0%, var(--plum-600) 55%, var(--plum-800) 100%);
  box-shadow:
    0 6px 18px -6px rgba(107,39,55,.55),
    inset 0 1px 1px rgba(255,255,255,.14),
    inset 0 -4px 10px rgba(0,0,0,.18);
  isolation: isolate;
  overflow: visible;
}
span.rounded-full.bg-plum-600.grid::before {
  content: "";
  position: absolute; inset: -3px;
  border-radius: 50%;
  border: 1px solid var(--rose-300);
  opacity: .55;
  pointer-events: none;
  z-index: -1;
}
span.rounded-full.bg-plum-600.grid::after {
  /* tiny decorative leaflet on the lower-right */
  content: "";
  position: absolute;
  right: -4px; bottom: -2px;
  width: 11px; height: 11px;
  background: radial-gradient(circle at 30% 30%, var(--rose-300), var(--rose-500));
  border-radius: 60% 40% 60% 40% / 60% 40% 60% 40%;
  transform: rotate(-18deg);
  box-shadow: 0 1px 3px rgba(107,39,55,.45);
  pointer-events: none;
}
/* Footer variant (rose bg) gets complementary treatment */
span.rounded-full.bg-rose-400.grid {
  position: relative;
  background: radial-gradient(circle at 32% 28%, #EEC3C7 0%, var(--rose-400) 65%, var(--rose-500) 100%);
  box-shadow:
    0 6px 16px -6px rgba(212,136,154,.55),
    inset 0 1px 1px rgba(255,255,255,.35),
    inset 0 -3px 8px rgba(107,39,55,.18);
  isolation: isolate;
}
span.rounded-full.bg-rose-400.grid::before {
  content: "";
  position: absolute; inset: -3px;
  border-radius: 50%;
  border: 1px solid rgba(250,243,231,.35);
  pointer-events: none;
}

/* Lift the monogram "A" subtly */
span.rounded-full.bg-plum-600.grid,
span.rounded-full.bg-rose-400.grid {
  text-shadow: 0 1px 0 rgba(0,0,0,.12);
  transition: transform .35s cubic-bezier(.22,1,.36,1);
}
header a:hover span.rounded-full.bg-plum-600.grid { transform: rotate(-4deg) scale(1.05); }

/* ---------- Hero portrait: slow zoom on hover ---------- */
.hero-portrait { overflow: hidden; transition: transform 1.2s cubic-bezier(.22,1,.36,1); }
.hero-portrait img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s cubic-bezier(.22,1,.36,1); }
.hero-portrait:hover { transform: translateY(-4px); }
.hero-portrait:hover img { transform: scale(1.045); }

/* ---------- Drifting decorative blobs ---------- */
@keyframes drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(14px, -20px) scale(1.05); }
}
@keyframes drift-alt {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(-16px, 14px) scale(1.06); }
}
.blob { animation: drift 16s ease-in-out infinite; will-change: transform; }
.blob-cream { animation: drift-alt 22s ease-in-out infinite; }

/* ---------- Scroll-reveal ---------- */
@keyframes soft-rise {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: none; }
}
@keyframes soft-rise-small {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}
[data-reveal] { opacity: 0; }
[data-reveal].in {
  animation: soft-rise .95s cubic-bezier(.22,1,.36,1) both;
}
[data-reveal="small"].in { animation-name: soft-rise-small; animation-duration: .7s; }

/* Card hover: warmer lift */
.card { transition: transform .35s cubic-bezier(.22,1,.36,1), box-shadow .35s cubic-bezier(.22,1,.36,1), border-color .25s ease; }
.card:hover { border-color: rgba(212,136,154,.55); }

/* Icon bubble: subtle inner glow */
.icon-bubble {
  box-shadow: inset 0 1px 1px rgba(255,255,255,.6), 0 6px 14px -10px rgba(107,39,55,.28);
  transition: transform .35s ease;
}
.card:hover .icon-bubble { transform: scale(1.06) rotate(-3deg); }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .fab-whatsapp { animation: none; }
  .blob { animation: none; }
  [data-reveal] { opacity: 1; }
}
