/* ============================================================
   AesthatiQ — Clinic & Doctor pages + Booking modal
   ============================================================ */

/* ---------- generic page hero (lighter than legal) ---------- */
.page-hero {
  position: relative; overflow: hidden;
  padding: calc(78px + clamp(48px, 6vw, 84px)) 0 clamp(36px, 5vw, 60px);
  background: var(--paper-2); border-bottom: 1px solid var(--line);
}
.page-hero .ph-glow {
  position: absolute; inset: -40% -10% auto auto; width: 55%; height: 130%;
  background: radial-gradient(circle, rgba(211,162,75,.16), transparent 62%); pointer-events: none;
}
.page-hero .wrap { position: relative; z-index: 2; }
.crumb { display: flex; align-items: center; gap: 8px; margin-bottom: 22px; font-size: 13.5px; color: var(--ink-3); flex-wrap: wrap; }
.crumb a { color: var(--ink-2); transition: color .25s; }
.crumb a:hover { color: var(--gold-deep); }
.crumb svg { width: 14px; height: 14px; opacity: .5; }

/* ============================ BOOKING / CLINIC DIRECTORY ============================ */
.dir-head h1 { font-size: clamp(34px, 5vw, 60px); letter-spacing: -0.035em; max-width: 20ch; }
.dir-head p { margin-top: 20px; max-width: 56ch; color: var(--ink-2); font-size: clamp(16px,1.5vw,19px); }

.clinic-list { padding-block: clamp(50px, 7vw, 88px); }
.clinic-card {
  display: grid; grid-template-columns: 300px 1fr auto; gap: clamp(24px,3vw,44px);
  align-items: center; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r-xl); padding: clamp(20px,2.4vw,30px);
  box-shadow: var(--shadow-sm); transition: transform .5s var(--ease-out), box-shadow .5s, border-color .5s;
}
.clinic-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--line-strong); }
.clinic-media {
  position: relative; aspect-ratio: 4/3; border-radius: var(--r-lg); overflow: hidden;
  background: var(--grad-ink); display: grid; place-items: center;
}
.clinic-media .cm-tex { position: absolute; inset: 0; background: url("../assets/tex-tech.png") center/cover; opacity: .6; }
.clinic-media .cm-logo { position: relative; z-index: 2; width: 62%; filter: drop-shadow(0 10px 30px rgba(0,0,0,.4)); }
.clinic-media .cm-badge {
  position: absolute; z-index: 3; top: 14px; left: 14px;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase;
  background: var(--grad-gold-2); color: #2B1E0C; padding: 6px 12px; border-radius: 100px; font-weight: 700;
}
.clinic-info h2 { font-size: clamp(24px,2.6vw,32px); letter-spacing: -0.025em; }
.clinic-info .ci-type { margin-top: 8px; color: var(--gold-deep); font-weight: 600; font-family: var(--font-display); font-size: 15px; }
.clinic-info .ci-meta { margin-top: 16px; display: flex; flex-direction: column; gap: 9px; }
.clinic-info .ci-meta .row { display: flex; gap: 11px; align-items: flex-start; color: var(--ink-2); font-size: 15px; }
.clinic-info .ci-meta svg { width: 17px; height: 17px; color: var(--gold-deep); flex: none; margin-top: 2px; }
.clinic-info .ci-tags { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  font-size: 12.5px; font-weight: 500; color: var(--ink-2); background: var(--paper-2);
  border: 1px solid var(--line); padding: 6px 12px; border-radius: 100px;
}
.clinic-action { display: flex; flex-direction: column; gap: 12px; align-items: stretch; min-width: 180px; }
.clinic-action .docs-count { font-size: 13.5px; color: var(--ink-3); text-align: center; display: flex; align-items: center; justify-content: center; gap: 7px; }
.clinic-action .docs-count b { color: var(--ink); font-family: var(--font-display); }

/* ============================ CLINIC DETAIL ============================ */
.clinic-hero-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: clamp(30px,4vw,60px); align-items: start; }
.clinic-hero-grid h1 { font-size: clamp(32px,4.4vw,54px); letter-spacing: -0.03em; }
.clinic-hero-grid .lede { margin-top: 18px; color: var(--ink-2); font-size: clamp(16px,1.5vw,19px); max-width: 56ch; }
.clinic-hero-grid .ch-tags { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px; }
.info-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 26px 26px; box-shadow: var(--shadow-sm);
}
.info-card h3 { font-size: 17px; margin-bottom: 16px; }
.info-card .row { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14.5px; color: var(--ink-2); }
.info-card .row:first-of-type { border-top: none; }
.info-card .row svg { width: 17px; height: 17px; color: var(--gold-deep); flex: none; margin-top: 2px; }
.info-card .row a { color: var(--ink); }
.info-card .row a:hover { color: var(--gold-deep); }
.info-card .btn { width: 100%; justify-content: center; margin-top: 18px; }

.verified-pill {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px;
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold-deep); background: rgba(211,162,75,.12); border: 1px solid rgba(211,162,75,.3);
  padding: 7px 14px; border-radius: 100px; font-weight: 500;
}
.verified-pill svg { width: 14px; height: 14px; }

/* ---------- doctors grid ---------- */
.docs-section { padding-block: clamp(50px, 7vw, 90px); }
.docs-grid { margin-top: clamp(36px,4vw,54px); display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.doc-card {
  position: relative; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 28px 26px 26px; text-align: center;
  transition: transform .5s var(--ease-out), box-shadow .5s, border-color .5s;
  display: flex; flex-direction: column; align-items: center;
}
.doc-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.doc-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; border-radius: var(--r-lg) var(--r-lg) 0 0;
  background: var(--grad-gold-2); transform: scaleX(0); transform-origin: center; transition: transform .5s var(--ease-out);
}
.doc-card:hover::before { transform: scaleX(1); }
.avatar {
  width: 110px; height: 110px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 600; font-size: 36px; color: #2B1E0C;
  position: relative; overflow: hidden; flex: none; box-shadow: var(--shadow-md);
}
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.avatar .ring2 { position: absolute; inset: -5px; border-radius: 50%; border: 1px solid var(--line-strong); }
.doc-card .avatar { margin-bottom: 18px; }
.doc-card h3 { font-size: 20px; letter-spacing: -0.02em; }
.doc-card .doc-spec { margin-top: 6px; color: var(--gold-deep); font-weight: 600; font-family: var(--font-display); font-size: 14px; }
.doc-card .doc-loc { margin-top: 4px; color: var(--ink-3); font-size: 13.5px; display: flex; align-items: center; gap: 6px; justify-content: center; }
.doc-card .doc-loc svg { width: 13px; height: 13px; }
.doc-card .doc-tags { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.doc-card .doc-tags .tag { font-size: 11.5px; padding: 5px 10px; }
.doc-card .doc-actions { margin-top: 22px; display: flex; gap: 10px; width: 100%; }
.doc-card .doc-actions .btn { flex: 1; justify-content: center; padding: 12px 16px; font-size: 14px; }

/* ---------- doctor profile page ---------- */
.doc-profile { padding-block: clamp(40px,5vw,70px) clamp(50px,7vw,90px); }
.doc-profile-grid { display: grid; grid-template-columns: 320px 1fr; gap: clamp(34px,5vw,64px); align-items: start; }
.doc-side { position: sticky; top: 100px; }
.doc-side .avatar { width: 100%; height: auto; aspect-ratio: 1; border-radius: var(--r-xl); font-size: 88px; margin: 0 auto 22px; }
.doc-side .avatar .ring2 { border-radius: var(--r-xl); inset: -1px; }
.doc-side .side-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; box-shadow: var(--shadow-sm); }
.doc-side .side-card .row { display: flex; gap: 11px; align-items: flex-start; padding: 11px 0; border-top: 1px solid var(--line); font-size: 14.5px; color: var(--ink-2); }
.doc-side .side-card .row:first-child { border-top: none; padding-top: 0; }
.doc-side .side-card .row svg { width: 16px; height: 16px; color: var(--gold-deep); flex: none; margin-top: 2px; }
.doc-side .side-card .row .k { color: var(--ink-3); }
.doc-side .btn { width: 100%; justify-content: center; margin-top: 16px; }

.doc-main .verified-pill { margin-bottom: 16px; }
.doc-main h1 { font-size: clamp(30px,4vw,50px); letter-spacing: -0.03em; }
.doc-main .doc-spec-lg { margin-top: 10px; color: var(--gold-deep); font-weight: 600; font-family: var(--font-display); font-size: clamp(16px,1.6vw,19px); }
.doc-block { margin-top: 38px; }
.doc-block h2 { font-size: clamp(20px,2.2vw,26px); letter-spacing: -0.02em; margin-bottom: 14px; }
.doc-block p { color: var(--ink-2); font-size: 16px; line-height: 1.72; margin-top: 14px; }
.focus-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; margin-top: 16px; }
.focus-item { display: flex; gap: 12px; align-items: center; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px 18px; }
.focus-item svg { width: 20px; height: 20px; color: var(--gold-deep); flex: none; }
.focus-item span { font-weight: 500; font-size: 15px; color: var(--ink); }

.doc-cta-band {
  margin-top: 44px; background: var(--grad-ink); color: #F3EAD8; border-radius: var(--r-xl);
  padding: clamp(28px,4vw,44px); position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.doc-cta-band .glow { position: absolute; inset: -40% -10% auto auto; width: 60%; height: 140%; background: radial-gradient(circle, rgba(211,162,75,.3), transparent 60%); pointer-events: none; }
.doc-cta-band > * { position: relative; z-index: 2; }
.doc-cta-band h3 { color: #FCF6EA; font-size: clamp(20px,2.2vw,28px); }
.doc-cta-band p { color: #CFC0A0; margin-top: 6px; font-size: 15px; }

/* ---- credentials / certifications ---- */
.creds-block { margin-top: 26px; }
.creds-block .cb-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.creds-block .cb-label svg { width: 14px; height: 14px; }
.creds-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 14px; }
.cred-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .4s var(--ease-out), box-shadow .4s, border-color .4s; }
.cred-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.cred-card .cc-img { aspect-ratio: 1; background: var(--paper-2); overflow: hidden; }
.cred-card .cc-img img { width: 100%; height: 100%; object-fit: cover; }
.cred-card .cc-label { padding: 11px 12px; font-size: 12.5px; font-weight: 500; color: var(--ink); text-align: center; line-height: 1.3; }
.verified-note { display: flex; align-items: flex-start; gap: 10px; margin-top: 18px; color: var(--ink-2); font-size: 14.5px; background: rgba(211,162,75,.08); border: 1px solid rgba(211,162,75,.22); border-radius: var(--r-md); padding: 14px 16px; }
.verified-note svg { width: 18px; height: 18px; color: var(--gold-deep); flex: none; margin-top: 1px; }

/* ============================ BOOKING MODAL ============================ */
.bk-overlay {
  position: fixed; inset: 0; z-index: 1000; display: none;
  background: rgba(40,26,13,.5); backdrop-filter: blur(6px);
  align-items: center; justify-content: center; padding: 20px;
  opacity: 0; transition: opacity .35s var(--ease);
}
.bk-overlay.open { display: flex; opacity: 1; }
.bk-modal {
  width: 100%; max-width: 520px; background: var(--paper); border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg); overflow: hidden; max-height: 92vh; overflow-y: auto;
  transform: translateY(16px) scale(.98); transition: transform .4s var(--ease-out);
}
.bk-overlay.open .bk-modal { transform: none; }
.bk-top { position: relative; background: var(--grad-ink); color: #F3EAD8; padding: 26px 28px; }
.bk-top .glow { position: absolute; inset: -50% -10% auto auto; width: 60%; height: 160%; background: radial-gradient(circle, rgba(211,162,75,.32), transparent 60%); pointer-events: none; }
.bk-top > * { position: relative; z-index: 2; }
.bk-eyebrow { font-family: var(--font-mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-light); }
.bk-top h3 { color: #FCF6EA; font-size: 23px; margin-top: 8px; letter-spacing: -0.02em; }
.bk-top .bk-doc { margin-top: 10px; display: flex; align-items: center; gap: 11px; }
.bk-top .bk-doc .av { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-weight: 600; font-size: 15px; color: #2B1E0C; flex: none; }
.bk-top .bk-doc .nm { font-family: var(--font-display); font-weight: 600; font-size: 15px; color: #fff; }
.bk-top .bk-doc .sp { font-size: 12.5px; color: #CFC0A0; }
.bk-x { position: absolute; top: 16px; right: 16px; z-index: 3; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #E9DEC9; background: rgba(255,255,255,.1); transition: background .25s; }
.bk-x:hover { background: rgba(255,255,255,.2); }
.bk-x svg { width: 18px; height: 18px; }
.bk-body { padding: 24px 28px 28px; }
.bk-field { margin-bottom: 16px; }
.bk-field label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 7px; font-family: var(--font-display); }
.bk-field label .req { color: var(--gold-deep); }
.bk-field input, .bk-field select, .bk-field textarea {
  width: 100%; font-family: var(--font-body); font-size: 15px; color: var(--ink);
  background: var(--white); border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  padding: 12px 14px; outline: none; transition: border-color .25s, box-shadow .25s;
}
.bk-field textarea { resize: vertical; min-height: 80px; }
.bk-field input:focus, .bk-field select:focus, .bk-field textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(211,162,75,.14); }
.bk-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.bk-submit { width: 100%; justify-content: center; margin-top: 8px; padding: 15px; }
.bk-note { margin-top: 14px; font-size: 12.5px; color: var(--ink-3); text-align: center; line-height: 1.5; }
.bk-success { text-align: center; padding: 20px 10px; }
.bk-success .ok-ic { width: 60px; height: 60px; border-radius: 50%; background: var(--grad-gold-2); display: grid; place-items: center; margin: 0 auto 18px; }
.bk-success .ok-ic svg { width: 30px; height: 30px; color: #2B1E0C; }
.bk-success h3 { font-size: 23px; margin-bottom: 10px; }
.bk-success p { color: var(--ink-2); font-size: 15px; max-width: 36ch; margin: 0 auto; }
.bk-success .btn { margin-top: 22px; }

@media (max-width: 980px) {
  .clinic-card { grid-template-columns: 220px 1fr; }
  .clinic-action { grid-column: 1 / -1; flex-direction: row; min-width: 0; }
  .docs-grid { grid-template-columns: 1fr 1fr; }
  .clinic-hero-grid { grid-template-columns: 1fr; }
  .doc-profile-grid { grid-template-columns: 1fr; }
  .doc-side { position: static; }
  .doc-side .avatar { max-width: 240px; }
}
@media (max-width: 620px) {
  .clinic-card { grid-template-columns: 1fr; text-align: left; }
  .clinic-media { aspect-ratio: 16/10; }
  .docs-grid { grid-template-columns: 1fr; }
  .bk-row { grid-template-columns: 1fr; }
  .focus-grid { grid-template-columns: 1fr; }
}
