/* ==========================================================================
   Mashaly Clinic — Luxury Aesthetics & Design System
   Brand Colors: Metallic Warm Gold, Champagne Silk, Deep Espresso
   ========================================================================== */

:root {
  /* Brand Color Palette */
  --gold-50: #fbf8f0;
  --gold-100: #f5eed8;
  --gold-200: #ebdcb0;
  --gold-300: #dec481;
  --gold-400: #d1aa56;
  --gold-500: #c59e3f; /* Primary Logo Gold */
  --gold-600: #af852e;
  --gold-700: #8c6724;
  --gold-800: #715222;
  --gold-900: #5e431f;

  /* Luxury Gradients */
  --gold-gradient: linear-gradient(135deg, #e5cb87 0%, #c59e3f 50%, #9e7722 100%);
  --gold-gradient-shine: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.4) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  --gold-gradient-soft: linear-gradient(180deg, rgba(197, 158, 63, 0.12) 0%, rgba(197, 158, 63, 0.02) 100%);

  /* Neutrals */
  --bg-body: #faf8f5;
  --bg-card: #ffffff;
  --bg-card-hover: #ffffff;
  --border-gold-subtle: rgba(197, 158, 63, 0.22);
  --border-gold-strong: rgba(197, 158, 63, 0.48);
  --text-title: #1e1916;
  --text-body: #4a433c;
  --text-muted: #7d7367;
  --text-gold: #9d7620;

  /* Shadows & Glow */
  --shadow-subtle: 0 4px 20px -2px rgba(30, 25, 22, 0.04);
  --shadow-card: 0 10px 30px -4px rgba(30, 25, 22, 0.06), 0 2px 6px -1px rgba(197, 158, 63, 0.08);
  --shadow-card-hover: 0 18px 40px -6px rgba(197, 158, 63, 0.2), 0 4px 14px -2px rgba(30, 25, 22, 0.08);
  --glow-gold: 0 0 35px rgba(197, 158, 63, 0.35);

  /* Typography */
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Radius & Transitions */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
}

/* ==========================================================================
   Luxury Page Splash Preloader with 3D Logo
   ========================================================================== */
.preloader-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background-color: #faf8f5;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.8s;
  pointer-events: all;
}

.preloader-overlay.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.1rem;
}

.preloader-halo-wrapper {
  position: relative;
  width: 105px;
  height: 105px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preloader-pulsing-glow {
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(197, 158, 63, 0.45) 0%, transparent 70%);
  animation: preloaderPulse 2s ease-in-out infinite alternate;
}

@keyframes preloaderPulse {
  0% { transform: scale(0.9); opacity: 0.4; }
  100% { transform: scale(1.3); opacity: 0.9; }
}

.preloader-rotating-ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px dashed rgba(197, 158, 63, 0.6);
  animation: spinSlow 12s linear infinite;
}

.preloader-emblem-box {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #ffffff;
  box-shadow: 0 10px 30px rgba(197, 158, 63, 0.35);
  background: #dfcbbe;
}

.preloader-emblem {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: preloaderZoom 2.2s ease-out infinite alternate;
}

@keyframes preloaderZoom {
  0% { transform: scale(1); }
  100% { transform: scale(1.08); }
}

.preloader-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.preloader-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--text-title);
  text-transform: uppercase;
}

.preloader-doctor {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold-700);
  letter-spacing: 0.05em;
}

.preloader-progress-track {
  width: 140px;
  height: 3px;
  border-radius: 999px;
  background: rgba(197, 158, 63, 0.2);
  overflow: hidden;
  margin-top: 0.4rem;
}

.preloader-progress-fill {
  width: 100%;
  height: 100%;
  background: var(--gold-gradient);
  border-radius: 999px;
  animation: preloaderFill 1.3s cubic-bezier(0.65, 0, 0.35, 1) infinite;
  transform-origin: left;
}

@keyframes preloaderFill {
  0% { transform: scaleX(0); }
  50% { transform: scaleX(0.7); }
  100% { transform: scaleX(1); }
}

/* ==========================================================================
   Viewport Scroll-Triggered Reveal Animations (Intersection Observer)
   ========================================================================== */
.reveal-item:not(.is-revealed) {
  opacity: 0;
  transform: translateY(28px) scale(0.97);
  will-change: opacity, transform;
}

.reveal-item.is-revealed {
  animation: revealUp 0.65s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Contact Cards: Fast Cascade from Left to Right upon Entering Viewport */
.hub-link-card.reveal-item:not(.is-revealed) {
  opacity: 0;
  transform: translateX(-65px) scale(0.96);
  will-change: opacity, transform;
}

.hub-link-card.reveal-item.is-revealed {
  animation: cardSlideFromLeft 0.52s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes cardSlideFromLeft {
  0% {
    opacity: 0;
    transform: translateX(-65px) scale(0.96);
  }
  100% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes revealUp {
  0% {
    opacity: 0;
    transform: translateY(28px) scale(0.97);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Reset & Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-body);
  color: var(--text-body);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Luxury Ambient Background (High-Performance Hardware-Accelerated) */
.ambient-background {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  transform: translateZ(0);
}

.ambient-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.7;
}

.orb-1 {
  top: -8%;
  left: 50%;
  transform: translateX(-50%);
  width: 580px;
  height: 580px;
  background: radial-gradient(circle, rgba(222, 196, 129, 0.32) 0%, rgba(222, 196, 129, 0.12) 40%, rgba(250, 248, 245, 0) 70%);
}

.orb-2 {
  bottom: 5%;
  right: -8%;
  width: 460px;
  height: 460px;
  background: radial-gradient(circle, rgba(197, 158, 63, 0.2) 0%, rgba(197, 158, 63, 0.07) 40%, rgba(250, 248, 245, 0) 70%);
}

.orb-3 {
  top: 42%;
  left: -12%;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(235, 220, 176, 0.25) 0%, rgba(235, 220, 176, 0.08) 40%, rgba(250, 248, 245, 0) 70%);
}

.pattern-overlay {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(197, 158, 63, 0.1) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.45;
}

/* Main Container Layout */
.page-wrapper {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 2.2rem 1.25rem 3rem;
}

.hub-container {
  width: 100%;
  max-width: 560px;
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
  margin: 0 auto;
}

/* Top Utility Bar (Quick Share & Live Status) */
.top-nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0 0.4rem;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.38rem 0.9rem;
  background: #ffffff;
  border: 1px solid var(--border-gold-subtle);
  border-radius: var(--radius-full);
  font-size: 0.76rem;
  font-weight: 600;
  color: #2b7442;
  box-shadow: var(--shadow-subtle);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #2eb85c;
  position: relative;
}

.status-dot::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background-color: #2eb85c;
  opacity: 0.6;
  animation: pulseGreen 2s infinite ease-out;
}

@keyframes pulseGreen {
  0% { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(2.5); opacity: 0; }
}

.share-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid var(--border-gold-subtle);
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-subtle);
}

.share-action-btn:hover {
  color: var(--gold-600);
  border-color: var(--gold-400);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

/* ==========================================================================
   Hero Profile & Branding Header (Luxury Centered Medallion)
   ========================================================================== */
.hero-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-gold-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.4rem 1.35rem;
  text-align: center;
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: var(--transition-smooth);
}

.hero-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3.5px;
  background: var(--gold-gradient);
}

.hero-watermark {
  position: absolute;
  top: -15px;
  right: -20px;
  width: 130px;
  height: 130px;
  opacity: 0.06;
  pointer-events: none;
}

.avatar-wrapper {
  position: relative;
  width: 90px;
  height: 90px;
  margin: 0 auto 0.95rem;
}

.avatar-halo {
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 2px dashed rgba(197, 158, 63, 0.45);
  animation: spinSlow 30s linear infinite;
}

@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.avatar-img-container {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  border: 2.5px solid #ffffff;
  box-shadow: 0 6px 20px rgba(197, 158, 63, 0.25);
  background: #dfcbbe;
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.avatar-wrapper:hover .avatar-img {
  transform: scale(1.08);
}

.doctor-verified-badge {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 23px;
  height: 23px;
  background: var(--gold-gradient);
  border: 2px solid #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(197, 158, 63, 0.4);
}

.doctor-verified-badge svg {
  width: 11px;
  height: 11px;
  stroke-width: 3;
}

/* Typography Lockup (Centered & Balanced) */
.hero-brand-lockup {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.clinic-name {
  font-family: var(--font-serif);
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-title);
  line-height: 1.15;
  margin-bottom: 0.45rem;
  text-transform: uppercase;
}

.doctor-editorial-line {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  background: var(--gold-gradient-soft);
  border: 1px solid var(--border-gold-subtle);
  padding: 0.28rem 1rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.55rem;
  transition: var(--transition-smooth);
}

.doctor-editorial-line:hover {
  border-color: var(--gold-400);
  background: rgba(197, 158, 63, 0.14);
}

.gold-diamond-bullet {
  color: var(--gold-500);
  font-size: 0.72rem;
  line-height: 1;
}

.doctor-name {
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--gold-800);
}

.specialty-tagline {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  white-space: nowrap;
  width: 100%;
  max-width: 100%;
  font-size: clamp(0.58rem, 2.5vw, 0.76rem);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: clamp(0.04em, 0.4vw, 0.1em);
  color: var(--text-muted);
  margin-bottom: 0;
  line-height: 1.3;
}

.specialty-tagline span {
  flex-shrink: 0;
}

.specialty-separator {
  color: var(--gold-400);
  margin: 0 clamp(0.2rem, 0.8vw, 0.35rem);
  flex-shrink: 0;
}

/* ==========================================================================
   Primary Action Button — "Book Now" CTA
   ========================================================================== */
.cta-container {
  width: 100%;
  position: relative;
}

.btn-book-now {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  width: 100%;
  padding: 0.95rem 1.6rem;
  background: var(--gold-gradient);
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 24px rgba(197, 158, 63, 0.38), 0 2px 6px rgba(197, 158, 63, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.35);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-book-now::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 70%;
  height: 100%;
  background: var(--gold-gradient-shine);
  transform: translateX(-180%) skewX(-25deg);
  animation: shimmerSweep 3.8s infinite;
  will-change: transform;
}

@keyframes shimmerSweep {
  0% { transform: translateX(-180%) skewX(-25deg); }
  30% { transform: translateX(320%) skewX(-25deg); }
  100% { transform: translateX(320%) skewX(-25deg); }
}

.btn-book-now:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 14px 34px rgba(197, 158, 63, 0.52), 0 4px 10px rgba(197, 158, 63, 0.3);
  color: #ffffff;
}

.btn-book-now:active {
  transform: translateY(-1px) scale(0.99);
}

.btn-icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.24);
  color: #ffffff;
}

.btn-book-now svg {
  width: 17px;
  height: 17px;
}

.btn-pulse-ring {
  position: absolute;
  inset: -3px;
  border-radius: var(--radius-md);
  border: 2px solid rgba(197, 158, 63, 0.5);
  pointer-events: none;
  animation: pulseButton 2.5s infinite;
}

@keyframes pulseButton {
  0% { opacity: 0.8; transform: scale(1); }
  50% { opacity: 0; transform: scale(1.03, 1.1); }
  100% { opacity: 0; transform: scale(1.03, 1.1); }
}

/* ==========================================================================
   Links & Hub Cards (Social, WhatsApp, Google Maps)
   ========================================================================== */
.section-title-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  margin-top: 0.25rem;
}

.title-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-gold-subtle), transparent);
}

.section-title {
  font-family: var(--font-serif);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-gold);
}

.links-stack {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
  width: 100%;
  perspective: 1200px;
}

.hub-link-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.3rem;
  background: var(--bg-card);
  border: 1px solid var(--border-gold-subtle);
  border-radius: var(--radius-md);
  text-decoration: none;
  box-shadow: 0 4px 20px -2px rgba(30, 25, 22, 0.05),
              0 2px 0 rgba(197, 158, 63, 0.2);
  transform-style: preserve-3d;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.25s ease,
              border-color 0.25s ease;
  overflow: hidden;
}

.card-glare {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(
    circle at var(--glare-x, 50%) var(--glare-y, 50%),
    rgba(255, 255, 255, 0.6) 0%,
    rgba(255, 255, 255, 0.15) 35%,
    transparent 65%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 10;
  mix-blend-mode: overlay;
}

/* 1-Second Golden Sheen Sweep on Entry (Hardware-Accelerated via Transform) */
.card-sheen-sweep {
  position: absolute;
  top: 0;
  left: 0;
  width: 75%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.6) 35%,
    rgba(240, 220, 160, 0.75) 50%,
    rgba(255, 255, 255, 0.6) 65%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: translateX(-180%) skewX(-25deg);
  pointer-events: none;
  z-index: 15;
  opacity: 0;
}

.hub-link-card.is-revealed .card-sheen-sweep {
  animation: shineOnceSweep 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: 0.25s;
}

@keyframes shineOnceSweep {
  0% {
    transform: translateX(-180%) skewX(-25deg);
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  85% {
    opacity: 1;
  }
  100% {
    transform: translateX(250%) skewX(-25deg);
    opacity: 0;
  }
}

.hub-link-card:hover .card-glare,
.hub-link-card.is-tilting .card-glare {
  opacity: 1;
}

.hub-link-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3.5px;
  height: 100%;
  background: var(--card-accent-color, var(--gold-500));
  opacity: 0.85;
  transition: var(--transition-smooth);
}

.hub-link-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-gold-strong);
  box-shadow: 0 18px 38px -6px rgba(30, 25, 22, 0.12),
              0 6px 0 rgba(197, 158, 63, 0.42),
              0 24px 44px -6px rgba(197, 158, 63, 0.22);
}

.hub-link-card:hover::before {
  width: 5.5px;
  opacity: 1;
}

.hub-link-card:active {
  transform: translateY(3px) scale(0.99) translateZ(0) !important;
  box-shadow: 0 4px 12px rgba(30, 25, 22, 0.08),
              0 1px 0 rgba(197, 158, 63, 0.2) !important;
}

.card-left {
  display: flex;
  align-items: center;
  gap: 1.05rem;
  transform: translateZ(14px);
}

.link-icon-box {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--icon-bg, rgba(197, 158, 63, 0.1));
  color: var(--icon-color, var(--gold-600));
  border: 1px solid var(--icon-border, rgba(197, 158, 63, 0.2));
  flex-shrink: 0;
  transform: translateZ(28px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.06);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
}

.hub-link-card:hover .link-icon-box {
  transform: translateZ(36px) scale(1.08) rotate(3deg);
  box-shadow: 0 10px 20px rgba(197, 158, 63, 0.28);
}

.link-icon-box svg {
  width: 23px;
  height: 23px;
}

.link-info {
  display: flex;
  flex-direction: column;
  transform: translateZ(18px);
  transition: transform 0.25s ease;
}

.hub-link-card:hover .link-info {
  transform: translateZ(24px);
}

.link-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-title);
  letter-spacing: 0.01em;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
  flex-wrap: nowrap;
}

.link-badge {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-full);
  background: var(--gold-100);
  color: var(--gold-800);
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
}

.link-subtitle {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.1rem;
}

.card-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: var(--text-muted);
  background: rgba(197, 158, 63, 0.06);
  border: 1px solid rgba(197, 158, 63, 0.16);
  transform: translateZ(20px);
  transition: transform 0.25s ease, background 0.3s ease, color 0.3s ease;
}

.card-arrow svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
}

.hub-link-card:hover .card-arrow {
  background: var(--gold-500);
  color: #ffffff;
  border-color: var(--gold-500);
  transform: translateZ(28px) translateX(3px);
  box-shadow: 0 4px 10px rgba(197, 158, 63, 0.35);
}

.hub-link-card .copy-badge-btn {
  transform: translateZ(22px);
}

/* Individual Channel Accent Palettes */
.card-whatsapp {
  --card-accent-color: #25d366;
  --icon-bg: rgba(37, 211, 102, 0.09);
  --icon-color: #1ea952;
  --icon-border: rgba(37, 211, 102, 0.25);
}

.card-instagram {
  --card-accent-color: #e1306c;
  --icon-bg: rgba(225, 48, 108, 0.09);
  --icon-color: #d82b67;
  --icon-border: rgba(225, 48, 108, 0.25);
}

.card-facebook {
  --card-accent-color: #1877f2;
  --icon-bg: rgba(24, 119, 242, 0.09);
  --icon-color: #1565cf;
  --icon-border: rgba(24, 119, 242, 0.25);
}

.card-maps {
  --card-accent-color: #ea4335;
  --icon-bg: rgba(234, 67, 53, 0.09);
  --icon-color: #d03527;
  --icon-border: rgba(234, 67, 53, 0.25);
}

.card-phone {
  --card-accent-color: var(--gold-500);
  --icon-bg: rgba(197, 158, 63, 0.12);
  --icon-color: var(--gold-700);
  --icon-border: rgba(197, 158, 63, 0.3);
}

/* ==========================================================================
   Services Showcase Pills (Orchestrated Entrance)
   ========================================================================== */
.services-card {
  background: var(--bg-card);
  border: 1px solid var(--border-gold-subtle);
  border-radius: var(--radius-md);
  padding: 1.35rem 1.4rem;
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: var(--transition-smooth);
}

.services-card.reveal-item:not(.is-revealed) {
  opacity: 0;
  transform: translateY(24px) scale(0.98);
}

.services-card.reveal-item.is-revealed {
  animation: cardSmoothReveal 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes cardSmoothReveal {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.services-header {
  font-family: var(--font-serif);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold-700);
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.services-header svg {
  width: 16px;
  height: 16px;
  color: var(--gold-500);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
}

.services-card.reveal-item:not(.is-revealed) .service-item {
  opacity: 0;
  transform: translateY(16px) scale(0.95);
}

.services-card.reveal-item.is-revealed .service-item {
  animation: pillPopReveal 0.52s cubic-bezier(0.34, 1.5, 0.64, 1) forwards;
  animation-delay: calc(var(--pill-order, 1) * 75ms + 140ms);
}

@keyframes pillPopReveal {
  0% {
    opacity: 0;
    transform: translateY(16px) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.service-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.75rem;
  background: rgba(250, 248, 245, 0.75);
  border: 1px solid rgba(197, 158, 63, 0.15);
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-body);
  transition: var(--transition-smooth);
}

.service-item:hover {
  background: #ffffff;
  border-color: var(--gold-400);
  transform: translateY(-2px);
  box-shadow: var(--shadow-subtle);
}

.service-bullet {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold-500);
  flex-shrink: 0;
}

/* ==========================================================================
   Quick Info & Hours Strip (Orchestrated Entrance)
   ========================================================================== */
.info-card {
  background: var(--bg-card);
  border: 1px solid var(--border-gold-subtle);
  border-radius: var(--radius-md);
  padding: 1.3rem 1.4rem;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.info-card.reveal-item:not(.is-revealed) {
  opacity: 0;
  transform: translateY(24px) scale(0.98);
}

.info-card.reveal-item.is-revealed {
  animation: cardSmoothReveal 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.info-card.reveal-item:not(.is-revealed) .info-row {
  opacity: 0;
  transform: translateX(-22px);
}

.info-card.reveal-item.is-revealed .info-row {
  animation: rowSlideIn 0.55s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: calc(var(--row-order, 1) * 95ms + 150ms);
}

@keyframes rowSlideIn {
  0% {
    opacity: 0;
    transform: translateX(-22px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

.info-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.info-label-group {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.info-label-group svg {
  width: 16px;
  height: 16px;
  color: var(--gold-600);
  flex-shrink: 0;
}

.info-value {
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--text-title);
  text-align: right;
}

.copy-badge-btn {
  border: none;
  background: rgba(197, 158, 63, 0.1);
  color: var(--gold-700);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: 0.4rem;
}

.copy-badge-btn:hover {
  background: var(--gold-500);
  color: #ffffff;
}

/* ==========================================================================
   Footer (Orchestrated Entrance)
   ========================================================================== */
.hub-footer {
  text-align: center;
  padding: 1.6rem 0 0.6rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
}

.hub-footer.reveal-item:not(.is-revealed) {
  opacity: 0;
  transform: translateY(22px);
}

.hub-footer.reveal-item.is-revealed {
  animation: footerFadeIn 0.75s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes footerFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hub-footer.reveal-item:not(.is-revealed) .footer-emblem {
  opacity: 0;
  transform: scale(0.7) rotate(-15deg);
}

.hub-footer.reveal-item.is-revealed .footer-emblem {
  animation: footerEmblemPop 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  animation-delay: 0.15s;
}

@keyframes footerEmblemPop {
  0% {
    opacity: 0;
    transform: scale(0.7) rotate(-15deg);
  }
  100% {
    opacity: 0.85;
    transform: scale(1) rotate(0deg);
  }
}

.footer-emblem {
  width: 32px;
  height: 32px;
  opacity: 0.65;
  filter: drop-shadow(0 2px 4px rgba(197, 158, 63, 0.2));
  transition: var(--transition-smooth);
}

.footer-emblem:hover {
  opacity: 1;
  transform: rotate(10deg);
}

.footer-text {
  letter-spacing: 0.03em;
}

.footer-brand-link {
  color: var(--gold-700);
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition-smooth);
}

.footer-brand-link:hover {
  color: var(--gold-500);
  text-decoration: underline;
}

.footer-sub {
  font-size: 0.7rem;
  color: var(--text-muted);
  opacity: 0.8;
}

/* ==========================================================================
   Unified Top-Right Toast Notification
   ========================================================================== */
#toast-container {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  pointer-events: none;
}

.toast-message {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: #ffffff;
  color: var(--text-title);
  padding: 0.75rem 1.15rem;
  border-radius: var(--radius-sm);
  border-left: 4px solid var(--gold-500);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(197, 158, 63, 0.2);
  font-size: 0.82rem;
  font-weight: 600;
  transform: translateX(120%);
  opacity: 0;
  transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast-message.show {
  transform: translateX(0);
  opacity: 1;
}

.toast-icon {
  color: var(--gold-600);
  display: flex;
  align-items: center;
}

/* ==========================================================================
   Modal (QR Code & Share)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(27, 24, 22, 0.65);
  backdrop-filter: blur(8px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  position: relative;
  background: #ffffff;
  border: 1px solid var(--border-gold-strong);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 380px;
  padding: 2rem 1.6rem;
  text-align: center;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  transform: translateY(20px) scale(0.95);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal-card {
  transform: translateY(0) scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border-gold-subtle);
  background: var(--bg-body);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.modal-close-btn:hover {
  color: var(--text-title);
  background: var(--gold-100);
}

.modal-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-title);
  margin-bottom: 0.3rem;
}

.modal-subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1.4rem;
}

.qr-code-box {
  width: 200px;
  height: 200px;
  margin: 0 auto 1.4rem;
  padding: 12px;
  background: #ffffff;
  border: 2px solid var(--border-gold-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
}

.qr-code-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.modal-actions {
  display: flex;
  gap: 0.65rem;
}

.modal-btn {
  flex: 1;
  padding: 0.75rem 1rem;
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  text-decoration: none;
}

.modal-btn-primary {
  background: var(--gold-gradient);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 14px rgba(197, 158, 63, 0.3);
}

.modal-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(197, 158, 63, 0.45);
}

.modal-btn-secondary {
  background: var(--bg-body);
  color: var(--text-title);
  border: 1px solid var(--border-gold-subtle);
}

.modal-btn-secondary:hover {
  background: #ffffff;
  border-color: var(--gold-400);
}

/* ==========================================================================
   Responsive Adjustments
   ========================================================================== */
@media (max-width: 480px) {
  .page-wrapper {
    padding: 1.4rem 0.85rem 2.2rem;
  }

  .hub-container {
    gap: 1.15rem;
  }

  .hero-card {
    padding: 1.3rem 0.9rem 1.2rem;
  }

  .avatar-wrapper {
    width: 82px;
    height: 82px;
    margin-bottom: 0.8rem;
  }

  .clinic-name {
    font-size: 1.45rem;
    letter-spacing: 0.06em;
  }

  .doctor-name {
    font-size: 0.88rem;
  }

  .specialty-tagline {
    font-size: clamp(0.55rem, 2.7vw, 0.68rem);
    letter-spacing: 0.04em;
    white-space: nowrap;
    flex-wrap: nowrap;
  }

  .specialty-separator {
    margin: 0 0.2rem;
  }

  .btn-book-now {
    padding: 0.9rem 1.35rem;
    font-size: 0.96rem;
  }

  /* Link Cards Compact Single-Line on Mobile */
  .hub-link-card {
    padding: 0.85rem 0.95rem;
  }

  .card-left {
    gap: 0.75rem;
    min-width: 0;
    flex: 1;
  }

  .link-icon-box {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
  }

  .link-info {
    min-width: 0;
  }

  .link-title {
    font-size: clamp(0.8rem, 3.4vw, 0.92rem);
    gap: 0.35rem;
    white-space: nowrap;
    flex-wrap: nowrap;
  }

  .link-badge {
    font-size: clamp(0.55rem, 2.1vw, 0.62rem);
    padding: 0.12rem 0.38rem;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .link-subtitle {
    font-size: 0.73rem;
  }

  .card-arrow {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }
}
