/* ============================================================
   Ghost Medical Tourism — Shared Base CSS
   Used by all 3 sites: veneers, hair, implants
   Theme variables are overridden per-site in theme.css
   ============================================================ */

/* ---------- CSS Variables (defaults — overridden by theme.css) ---------- */
:root {
  --primary: #5a3e2b;
  --primary-hover: #4a3222;
  --primary-ink: #ffffff;
  --accent: #8b6f47;
  --accent-light: #f5f0eb;
  --bg: #f7f5f3;
  --surface: #ffffff;
  --surface-soft: #faf8f6;
  --ink: #1a1a1a;
  --muted: #5a5550;
  --line: #e8e4e1;
  --success: #059669;
  --error: #dc2626;
  --whatsapp: #25D366;
  --whatsapp-hover: #1da851;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.1);
  --radius: 10px;
  --radius-lg: 14px;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* ---------- Shell ---------- */
.page-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding-bottom: 48px;
}

/* ---------- Section Spacing ---------- */
.topbar, .hero, .proof-band, .section-grid, .comparison-grid,
.process, .content-slab, .faq-grid, .form-section, .footer {
  margin-top: 24px;
}

/* ---------- Typography ---------- */
h1, h2, h3 { font-family: "Fraunces", serif; margin: 0; color: var(--ink); }
h1 {
  margin-top: 14px;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.05;
}
h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin-top: 10px;
  line-height: 1.15;
}
h3 { font-size: 1.15rem; }

.lead {
  margin-top: 16px;
  font-size: 1.1rem;
  line-height: 1.65;
  color: var(--muted);
}

.section-tag, .eyebrow, .panel-label {
  display: inline-block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  font-weight: 600;
}

/* ---------- Topbar ---------- */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.brand {
  display: block;
  margin-top: 4px;
  font-family: "Fraunces", serif;
  font-size: 1.5rem;
  color: var(--primary);
}

.cta-link {
  font-weight: 700;
  font-size: 0.9rem;
  padding: 12px 20px;
  border-radius: var(--radius);
  background: var(--whatsapp);
  color: #fff;
  transition: background 0.2s;
  white-space: nowrap;
}
.cta-link:hover { background: var(--whatsapp-hover); }

/* ---------- Social Proof Ticker ---------- */
.social-proof-ticker {
  margin-top: 12px;
  padding: 10px 20px;
  background: var(--primary);
  color: var(--primary-ink);
  border-radius: var(--radius);
  text-align: center;
  font-size: 0.88rem;
  font-weight: 600;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ticker-item {
  display: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.ticker-item.active {
  display: inline;
  opacity: 1;
}

/* ---------- Hero (2-col: text left, image+pricing right) ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  align-items: stretch;
}

.hero-copy {
  padding: 40px 36px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero-kicker {
  margin: 0;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  font-weight: 600;
}

.hero-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 28px 0 24px;
}

/* Alias for backward-compat with existing hero-actions class */
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 28px 0 24px;
}

.hero-aside {
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #1a1a1a;
  box-shadow: var(--shadow-lg);
}

.hero-image {
  width: 100%;
  height: 240px;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.accent-card {
  padding: 28px;
  position: relative;
  z-index: 2;
  flex: 1;
  background: linear-gradient(180deg, rgba(26, 26, 26, 0.97), rgba(26, 26, 26, 0.92));
}

.accent-card .panel-label {
  color: rgba(255, 255, 255, 0.6);
}

.accent-card .metric-row {
  border-bottom-color: rgba(255, 255, 255, 0.12);
}

.accent-card .metric-row strong,
.accent-card .metric-row span {
  color: rgba(255, 255, 255, 0.9);
}

.accent-card .price-note {
  color: rgba(255, 255, 255, 0.55);
  border-top-color: rgba(255, 255, 255, 0.12);
}

.accent-card .hero-mini-grid div {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.1);
}
.accent-card .hero-mini-grid span {
  color: rgba(255, 255, 255, 0.5);
}
.accent-card .hero-mini-grid strong {
  color: #fff;
}

/* ---------- Buttons ---------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 24px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s;
}
.button.primary {
  background: var(--primary);
  color: var(--primary-ink);
}
.button.primary:hover { background: var(--primary-hover); }
.button.primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.button.ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}
.button.ghost:hover { border-color: var(--muted); }

/* ---------- Direct Contact Block ---------- */
.direct-contact, .inline-whatsapp {
  margin: 0 0 24px;
  padding: 18px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface-soft);
}
.direct-contact-label {
  margin: 0;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  font-weight: 600;
}
.direct-contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}
.contact-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: var(--radius);
  background: var(--whatsapp);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  transition: background 0.2s;
}
.contact-pill:hover { background: var(--whatsapp-hover); }
.contact-pill.secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.contact-pill.secondary:hover { border-color: var(--muted); }
.direct-contact-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* ---------- Trust Strip ---------- */
.trust-strip {
  margin: 0;
  padding-left: 18px;
}
.trust-strip li {
  margin: 8px 0;
  color: var(--muted);
  line-height: 1.5;
}

/* ---------- Metric / Price Rows ---------- */
.metric-row, .price-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.metric-row:last-of-type, .price-row:last-of-type { border-bottom: 0; }
.metric-row strong, .price-row strong { color: var(--ink); }
.metric-row span, .price-row span { color: var(--muted); }

.price-note {
  margin: 16px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.5;
}

.hero-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 18px;
}
.hero-mini-grid div {
  padding: 14px;
  border-radius: var(--radius);
  background: var(--surface-soft);
  border: 1px solid var(--line);
}
.hero-mini-grid span {
  display: block;
  margin-bottom: 6px;
  font-size: 0.72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}
.hero-mini-grid strong {
  display: block;
  line-height: 1.35;
  font-size: 0.95rem;
}

/* ---------- Proof Band ---------- */
.proof-band {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.proof-band article {
  padding: 20px 22px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.proof-label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  font-weight: 700;
}
.proof-band strong {
  display: block;
  font-size: 0.95rem;
  color: var(--ink);
  line-height: 1.45;
}

/* ---------- Section Grid / Pricing ---------- */
.section-grid, .form-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 24px;
  align-items: start;
}

.section-grid p,
.form-copy p,
.content-slab p,
.steps p,
.footer p,
.faq-list p,
.comparison-list li {
  color: var(--muted);
  line-height: 1.65;
}

.table-card {
  border-radius: var(--radius-lg);
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.disclaimer-copy {
  margin-top: 14px;
  padding-left: 14px;
  border-left: 3px solid var(--accent);
  font-size: 0.9rem;
}

/* ---------- Comparison ---------- */
.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.comparison-card {
  border-radius: var(--radius-lg);
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.comparison-card.spotlight {
  background: linear-gradient(180deg, var(--accent-light), var(--surface));
  border-color: var(--accent);
}
.comparison-list {
  margin: 18px 0 0;
  padding-left: 18px;
}
.comparison-list li { margin: 8px 0; }
.comparison-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.comparison-row:last-child { border-bottom: 0; }
.comparison-row strong { color: var(--ink); }
.comparison-row span { color: var(--muted); }

/* ---------- Process Steps ---------- */
.process .steps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 18px;
}
.steps article {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.steps article h3 {
  color: var(--primary);
  margin-bottom: 8px;
}
.steps p {
  margin: 0;
  font-size: 0.92rem;
}

/* ---------- Content Slab ---------- */
.content-slab {
  display: grid;
  gap: 20px;
  border-radius: var(--radius-lg);
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.bullet-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.bullet-columns ul {
  margin: 0;
  padding-left: 18px;
}
.bullet-columns li {
  margin: 8px 0;
  color: var(--muted);
  line-height: 1.55;
}

/* ---------- FAQ ---------- */
.faq-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 24px;
  align-items: start;
}
.faq-list {
  display: grid;
  gap: 14px;
}
.faq-list article {
  border-radius: var(--radius);
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.faq-list p { margin: 10px 0 0; }

/* ---------- Social Proof Bar ---------- */
.social-proof-bar {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 48px 32px;
  text-align: center;
}
.social-proof-bar .proof-stat strong {
  display: block;
  font-size: 2rem;
  color: var(--primary);
  line-height: 1.2;
}
.social-proof-bar .proof-stat span {
  display: block;
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 4px;
}

/* ---------- Form ---------- */
.form-copy { padding: 34px; }
.lead-form {
  border-radius: var(--radius-lg);
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.field-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink);
}
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  font: inherit;
  font-size: 0.95rem;
  background: var(--surface-soft);
  transition: border-color 0.2s;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
}
.full-width { grid-column: 1 / -1; margin-top: 14px; }
.consent-row {
  margin-top: 14px;
  flex-direction: row;
  align-items: flex-start;
  font-weight: 500;
  font-size: 0.88rem;
}
.consent-row input { width: auto; margin-top: 3px; }
.status-message { min-height: 24px; }
.status-message.success { color: var(--success); }
.status-message.error { color: var(--error); }
.field-hint { display: block; font-size: 0.78rem; color: #666; margin-top: 4px; }
.contact-error { color: var(--error); font-size: 0.88rem; margin: 0 0 8px; grid-column: 1 / -1; }
.form-trust-signals { display: flex; gap: 24px; flex-wrap: wrap; margin-bottom: 24px; }
.trust-signal { font-size: 0.88rem; color: #444; }
.trust-signal strong { color: var(--success); }
.inline-whatsapp { margin-top: 24px; }
.inline-whatsapp a {
  display: inline-flex;
  margin-top: 8px;
  color: var(--whatsapp);
  font-weight: 700;
}
.inline-whatsapp a:hover { text-decoration: underline; }

/* ---------- Cross-Brand Banner ---------- */
.cross-brand-banner {
  max-width: 1120px;
  margin: 0 auto 32px;
  padding: 24px 32px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.cross-brand-banner p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink);
}
.cross-brand-banner p strong {
  color: var(--primary);
}
.cross-brand-banner a {
  display: inline-flex;
  padding: 10px 20px;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: var(--radius);
  white-space: nowrap;
  transition: background 0.2s;
}
.cross-brand-banner a:hover { background: var(--primary-hover); }

/* ---------- Footer ---------- */
.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: var(--radius-lg);
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.footer-copy {
  display: grid;
  gap: 12px;
  width: 100%;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}
.footer-links a {
  font-weight: 600;
  color: var(--primary);
}
.footer-links a:hover { text-decoration: underline; }

/* ---------- Floating WhatsApp ---------- */
.floating-wa {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 20;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 20px;
  border-radius: var(--radius);
  background: var(--whatsapp);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.3);
  transition: background 0.2s;
}
.floating-wa::before {
  content: attr(data-tooltip);
  position: absolute;
  top: -36px;
  right: 0;
  padding: 6px 12px;
  border-radius: 6px;
  background: #333;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 400;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.floating-wa:hover { background: var(--whatsapp-hover); }
.floating-wa:hover::before { opacity: 1; }

/* ---------- Exit-Intent Popup ---------- */
.exit-popup-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.55);
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.exit-popup-overlay.visible {
  display: flex;
}
.exit-popup {
  position: relative;
  width: 100%;
  max-width: 460px;
  border-radius: var(--radius-lg);
  padding: 36px 32px 28px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}
.exit-popup-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--muted);
  line-height: 1;
  padding: 4px 8px;
}
.exit-popup-close:hover { color: var(--ink); }
.exit-popup h2 {
  font-size: 1.5rem;
  margin: 0 0 6px;
}
.exit-popup .exit-popup-sub {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0 0 20px;
  line-height: 1.5;
}
.exit-popup-form {
  display: grid;
  gap: 14px;
}
.exit-popup-form input,
.exit-popup-form select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  font: inherit;
  font-size: 0.95rem;
  background: var(--surface-soft);
  transition: border-color 0.2s;
}
.exit-popup-form input:focus,
.exit-popup-form select:focus {
  outline: none;
  border-color: var(--primary);
}
.exit-popup-form .consent-row {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0;
}
.exit-popup-form .consent-row input { width: auto; margin-top: 2px; }
.exit-popup-form button {
  width: 100%;
  min-height: 48px;
  border: none;
  border-radius: var(--radius);
  background: var(--primary);
  color: var(--primary-ink);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s;
}
.exit-popup-form button:hover { background: var(--primary-hover); }
.exit-popup-status { font-size: 0.88rem; min-height: 20px; margin: 0; }
.exit-popup-status.success { color: var(--success); }
.exit-popup-status.error { color: var(--error); }

/* ---------- Urgency Callout ---------- */
.urgency-callout {
  margin-top: 18px;
  padding: 14px 18px;
  background: var(--accent-light);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: center;
}
.urgency-callout a {
  color: var(--primary);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
}
.urgency-callout a:hover { text-decoration: underline; }

/* ---------- Referral Share Buttons ---------- */
.referral-share-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ---------- Responsive (768px breakpoint) ---------- */
@media (max-width: 768px) {
  .hero,
  .proof-band,
  .section-grid,
  .comparison-grid,
  .faq-grid,
  .form-section,
  .process .steps,
  .bullet-columns,
  .field-grid,
  .hero-mini-grid {
    grid-template-columns: 1fr;
  }
  .topbar, .footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .hero-copy, .accent-card, .form-copy,
  .table-card, .content-slab, .lead-form, .footer {
    padding: 24px;
  }
  .hero-image {
    height: 200px;
  }
  .social-proof-bar { grid-template-columns: 1fr; padding: 32px 24px; gap: 16px; }
  .cross-brand-banner { flex-direction: column; text-align: center; padding: 20px; }
  .referral-share-buttons { flex-direction: column; }
}


/* ---------- Hero Slideshow (fixed) ---------- */
.hero-slideshow {
  position: relative;
  width: 100%;
  height: 240px;
  overflow: hidden;
}
.hero-slideshow .hero-slide {
  position: absolute !important;
  top: 0; left: 0;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  display: block;
}
.hero-slideshow .hero-slide.active {
  opacity: 1;
}
@media (max-width: 768px) {
  .hero-slideshow { height: 200px; }
  .hero-slideshow .hero-slide { height: 100% !important; }
}
