/**
 * Premium UI Enhancement Styles
 * MyPlasticSurgeon.ca
 *
 * ORIGINAL BRAND COLORS (for reversion if needed):
 * --original-pink: #ed5d9e;
 * --original-brown: #584a54;
 */

/* ============================================
   1. CSS CUSTOM PROPERTIES (Design Tokens)
   ============================================ */

:root {
  /* ORIGINAL BRAND COLORS - Uncomment to revert
  --pink: #ed5d9e;
  --brown: #584a54;
  */

  /* Sophisticated Rose (evolved from original pink #ed5d9e) */
  --rose-deep: #c4727e;
  --rose-light: #e8c4c8;
  --rose-accent: #d4838c;

  /* Warm Taupe (evolved from original brown #584a54) */
  --taupe-dark: #3d3633;
  --taupe-mid: #6b5f5b;

  /* Luxury Accent */
  --gold: #c9a962;
  --gold-light: #e8dcc4;

  /* Backgrounds */
  --cream: #faf8f5;
  --ivory: #f5f2ed;

  /* Gradients */
  --gradient-hero: linear-gradient(135deg, var(--cream) 0%, var(--rose-light) 50%, var(--ivory) 100%);
  --gradient-cta: linear-gradient(135deg, var(--taupe-dark) 0%, var(--taupe-mid) 100%);

  /* Shadows (Apple-style layered) */
  --shadow-soft: 0 2px 4px rgba(61,54,51,0.02), 0 8px 16px rgba(61,54,51,0.04);
  --shadow-elevated: 0 4px 8px rgba(61,54,51,0.03), 0 16px 32px rgba(61,54,51,0.06);

  /* Animation Easings */
  --ease-smooth: cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* Typography */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Urbanist', system-ui, sans-serif;
}

/* ============================================
   2. GSAP CONFLICT RESOLUTION
   ============================================ */

.gsap-animated,
.gsap-animated * {
  transition: none !important;
}

/* ============================================
   3. TYPOGRAPHY
   ============================================ */

.premium-heading {
  font-family: var(--font-display);
  font-weight: 300;
  letter-spacing: -0.02em;
  color: var(--taupe-dark);
}

.premium-body {
  font-family: var(--font-body);
  color: var(--taupe-mid);
}

/* ============================================
   4. NAVIGATION
   ============================================ */

.premium-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(250, 248, 245, 0.97);
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s var(--ease-smooth);
  z-index: 1000;
}

.premium-nav.hidden {
  transform: translateY(-100%);
}

/* Nav link underline animation */
.premium-nav a {
  position: relative;
}

.premium-nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease-out);
}

.premium-nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* ============================================
   5. HERO SECTION
   ============================================ */

.premium-hero {
  position: relative;
  min-height: 90vh;
  background: var(--cream);
  overflow: hidden;
}

.premium-hero::before,
.premium-hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.6;
  pointer-events: none;
}

.premium-hero::before {
  width: 60%;
  height: 60%;
  top: -20%;
  right: -10%;
  background: radial-gradient(circle, var(--rose-light) 0%, transparent 70%);
}

.premium-hero::after {
  width: 40%;
  height: 50%;
  bottom: -10%;
  left: 10%;
  background: radial-gradient(circle, var(--gold-light) 0%, transparent 70%);
}

/* ============================================
   6. CTA BUTTONS
   ============================================ */

.premium-cta {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 16px 32px !important;
  background: #584a54 !important;
  color: #ffffff !important;
  font-family: 'Urbanist', system-ui, sans-serif !important;
  font-size: 17px !important;
  font-weight: 600 !important;
  letter-spacing: 0.02em !important;
  text-decoration: none !important;
  border: 2px solid #584a54 !important;
  border-radius: 6px !important;
  cursor: pointer !important;
  transition: all 0.25s ease !important;
  box-shadow: 0 2px 8px rgba(88, 74, 84, 0.2) !important;
}

.premium-cta:hover,
.premium-cta:focus {
  background: #6b5f5b !important;
  border-color: #6b5f5b !important;
  color: #ffffff !important;
  text-decoration: none !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(88, 74, 84, 0.3) !important;
}

.premium-cta:active {
  transform: scale(0.98) !important;
  box-shadow: 0 1px 4px rgba(88, 74, 84, 0.2) !important;
}

/* Ensure no underlines ever appear on CTA */
.premium-cta::before,
.premium-cta::after {
  display: none !important;
}

/* Touch feedback for mobile */
@media (hover: none) {
  .premium-cta:active {
    opacity: 0.8;
    transform: scale(0.97);
  }
}

/* Loading state */
.premium-cta.loading {
  pointer-events: none;
  opacity: 0.7;
}

.premium-cta.loading::after {
  content: '';
  width: 16px;
  height: 16px;
  margin-left: 8px;
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ============================================
   7. STICKY CTA BAR
   ============================================ */

.premium-sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 18px 32px;
  padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  background: #ffffff;
  border-top: 1px solid rgba(61, 54, 51, 0.08);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.06);
  transform: translateY(100%);
  transition: transform 0.4s var(--ease-out);
  z-index: 999;
}

.premium-sticky-cta.visible {
  transform: translateY(0);
}

/* Phone number - styled as prominent secondary element */
.premium-sticky-cta__phone {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 14px 24px !important;
  background: transparent !important;
  border: 2px solid #ed5d9e !important;
  border-radius: 6px !important;
  color: #ed5d9e !important;
  text-decoration: none !important;
  font-family: 'Urbanist', system-ui, sans-serif !important;
  font-size: 17px !important;
  font-weight: 600 !important;
  letter-spacing: 0.02em !important;
  transition: all 0.25s ease !important;
}

.premium-sticky-cta__phone:hover,
.premium-sticky-cta__phone:focus {
  background: #ed5d9e !important;
  color: #ffffff !important;
  text-decoration: none !important;
  transform: translateY(-1px) !important;
}

.premium-sticky-cta__phone:hover svg,
.premium-sticky-cta__phone:focus svg {
  stroke: #ffffff !important;
}

.premium-sticky-cta__phone svg {
  width: 20px !important;
  height: 20px !important;
  stroke: #ed5d9e !important;
  flex-shrink: 0 !important;
  transition: stroke 0.25s ease !important;
}

.premium-sticky-cta__phone span {
  text-decoration: none !important;
}

/* Override any site-wide link underlines for sticky CTA */
.premium-sticky-cta a,
.premium-sticky-cta a:hover,
.premium-sticky-cta a:focus,
.premium-sticky-cta a:active {
  text-decoration: none !important;
}

.premium-sticky-cta a::after,
.premium-sticky-cta a::before {
  display: none !important;
}

/* ============================================
   8. CREDENTIALS BAR
   ============================================ */

.premium-credentials {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 24px !important;
  padding: 12px 24px !important;
  margin: 0 !important;
  margin-top: 125px !important; /* Push below the absolutely positioned header (125px height) */
  background: #584a54 !important; /* Dark brown - matches site brand */
  background-color: #584a54 !important;
  font-family: 'Urbanist', system-ui, -apple-system, sans-serif !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  color: #ffffff !important; /* White text for contrast */
  line-height: 1.5 !important;
  position: relative !important;
  z-index: 50 !important; /* Below header (z-index: 100) but above content */
  width: 100% !important;
  box-sizing: border-box !important;
}

/* ============================================
   8a. FIX HERO SECTION - Account for credentials bar
   ============================================ */

/* Remove original padding-top since credentials bar now provides spacing */
#welcome {
  padding-top: 0 !important; /* Credentials bar handles the spacing now */
}

/* ============================================
   8b. FIX SCROLL JITTER - Override background-attachment: fixed
   ============================================ */
/* screen.css uses background-attachment: fixed which causes severe
   scroll jitter on all browsers. This is a known performance issue.
   Override it to use normal scroll behavior. */

#welcome,
#featured,
#featured figure,
.no-mobile #welcome,
.no-mobile #featured figure {
  background-attachment: scroll !important;
}

/* Ensure the hero image figure still fills properly */
#welcome figure {
  top: 0 !important;
}

/* Responsive: On mobile, header is still there but narrower */
@media only screen and (max-width: 47.5em) {
  .premium-credentials {
    margin-top: 125px !important; /* Keep same margin on mobile */
  }
}

.premium-credentials .premium-credential {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  color: #ffffff !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  margin: 0 !important;
  padding: 0 !important;
}

.premium-credentials .premium-credential::before {
  display: none !important; /* Override any list bullet styles */
}

.premium-credentials .premium-credential svg {
  display: inline-block !important;
  width: 16px !important;
  height: 16px !important;
  flex-shrink: 0 !important;
  color: #ed5d9e !important; /* Pink icons for brand accent */
  stroke: #ed5d9e !important;
}

/* ============================================
   9. SOCIAL PROOF
   ============================================ */

.premium-social-proof {
  font-family: 'Cormorant Garamond', Georgia, serif !important;
  font-style: italic !important;
  font-size: 15px !important;
  color: #6b5f5b !important;
  margin-bottom: 16px !important;
  margin-top: 24px !important;
  text-align: center !important;
  line-height: 1.5 !important;
}

.premium-social-proof__stars {
  color: #c9a962 !important;
  font-style: normal !important;
  margin-right: 8px !important;
  letter-spacing: 2px !important;
}

/* ============================================
   10. CARDS
   ============================================ */

.premium-card {
  background: #fff;
  border-radius: 16px;
  padding: 32px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

.premium-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-elevated);
}

.premium-procedure-card {
  background: linear-gradient(145deg, #fff 0%, var(--ivory) 100%);
  border: 1px solid rgba(61, 54, 51, 0.06);
}

.premium-card__image {
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 20px;
}

.premium-card__image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s var(--ease-out);
}

.premium-card:hover .premium-card__image img {
  transform: scale(1.03);
}

/* ============================================
   11. TESTIMONIALS
   ============================================ */

.premium-testimonial {
  position: relative;
  padding: 80px 40px;
  background: var(--gradient-hero);
  text-align: center;
}

.premium-testimonial::before {
  content: '"';
  position: absolute;
  top: 40px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-size: 120px;
  line-height: 1;
  color: var(--rose-light);
  opacity: 0.5;
  pointer-events: none;
}

.premium-testimonial__quote {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.6;
  color: var(--taupe-dark);
  max-width: 800px;
  margin: 0 auto 24px;
}

.premium-testimonial__author {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--taupe-mid);
}

/* ============================================
   12. FORMS
   ============================================ */

.premium-form-group {
  margin-bottom: 20px;
}

.premium-form-label {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--taupe-dark);
}

.premium-form-input {
  width: 100%;
  padding: 16px 20px;
  font-size: 16px;
  font-family: var(--font-body);
  color: var(--taupe-dark);
  background: #fff;
  border: 1.5px solid #d1d1d6;
  border-radius: 8px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.premium-form-input:focus {
  outline: none;
  border-color: var(--rose-deep);
  box-shadow: 0 0 0 3px rgba(196, 114, 126, 0.15);
  transform: translateY(-1px);
}

.premium-form-input.error {
  border-color: #d32f2f;
  background: #fff5f5;
  animation: shake 0.3s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

.premium-checkbox {
  appearance: none;
  width: 22px;
  height: 22px;
  background: #fff;
  border: 1.5px solid #d1d1d6;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.premium-checkbox:checked {
  background: var(--rose-deep);
  border-color: var(--rose-deep);
}

.premium-checkbox:checked::after {
  content: '\2713';
  display: block;
  text-align: center;
  color: #fff;
  font-size: 14px;
  line-height: 20px;
}

/* ============================================
   13. FOOTER
   ============================================ */

.premium-footer {
  background: linear-gradient(180deg, var(--taupe-mid) 0%, var(--taupe-dark) 100%);
  border-radius: 32px 32px 0 0;
  padding: 60px 40px 40px;
  margin-top: 80px;
  position: relative;
}

.premium-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 3px;
  background: var(--rose-deep);
  border-radius: 0 0 2px 2px;
}

.premium-footer a {
  color: var(--cream);
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.premium-footer a:hover {
  opacity: 1;
}

.premium-footer__link {
  position: relative;
}

.premium-footer__link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--cream);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s var(--ease-out);
}

.premium-footer__link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Footer uses original screen.css styling - no overrides */

/* ============================================
   14. SECTIONS & SPACING
   ============================================ */

.premium-section {
  padding: 80px 0;
}

.premium-section--alt {
  background: var(--ivory);
}

.premium-section--decorated {
  position: relative;
  overflow: hidden;
}

.premium-section--decorated::before {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--rose-light) 0%, transparent 70%);
  filter: blur(60px);
  opacity: 0.4;
  pointer-events: none;
}

/* Scroll reveal animation class */
.premium-animate-in {
  opacity: 0;
  transform: translateY(20px); /* Subtle movement */
  will-change: opacity, transform; /* GPU acceleration */
}

/* ============================================
   15. MOBILE OPTIMIZATIONS
   ============================================ */

@media (max-width: 768px) {
  /* Touch targets - WCAG 2.5.5 AAA compliance (44×44px minimum) */
  .premium-cta,
  .premium-sticky-cta__phone {
    min-height: 44px;
    min-width: 44px;
  }

  /* Site navigation touch targets */
  #nav ul li a {
    min-height: 44px !important;
    display: flex !important;
    align-items: center !important;
    padding: 12px 16px !important;
  }

  /* Contact nav touch targets */
  #contact a {
    min-height: 44px !important;
    display: inline-flex !important;
    align-items: center !important;
  }

  /* Social icon touch targets */
  #contact ul li a {
    min-width: 44px !important;
    min-height: 44px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  /* Footer - keep original compact layout, touch targets not needed for info links */

  /* General button/link improvements for touch - only for CTA-style links */
  .link-a a,
  .module-a a {
    min-height: 44px !important;
    display: inline-flex !important;
    align-items: center !important;
  }

  /* Sticky CTA - stack vertically on mobile */
  .premium-sticky-cta {
    flex-direction: column;
    gap: 12px;
  }

  .premium-sticky-cta .premium-cta {
    width: 100%;
    text-align: center;
  }

  /* Typography - prevent iOS zoom */
  html {
    font-size: 100% !important;
    -webkit-text-size-adjust: 100% !important;
  }

  body {
    font-size: 17px !important; /* iOS default size */
    line-height: 1.6 !important;
  }

  /* Enhanced contrast for outdoor viewing on mobile */
  p, li {
    color: #3c3c43 !important;
  }

  .premium-form-input,
  input,
  select,
  textarea {
    font-size: 17px !important; /* Prevents iOS auto-zoom on focus */
    padding: 16px !important;
    border-radius: 12px !important;
  }

  /* Section spacing */
  .premium-section {
    padding: 60px 0;
  }

  /* Testimonial */
  .premium-testimonial {
    padding: 60px 24px;
  }

  .premium-testimonial::before {
    font-size: 80px;
    top: 20px;
  }

  /* Credentials wrap nicely */
  .premium-credentials {
    gap: 16px;
    padding: 12px 16px;
    font-size: 11px;
  }

  /* Cards */
  .premium-card {
    padding: 24px;
    border-radius: 12px;
  }

  /* Footer */
  .premium-footer {
    padding: 40px 24px 32px;
    border-radius: 24px 24px 0 0;
    margin-top: 60px;
  }

  /* Form sticky submit */
  .premium-form-submit {
    position: sticky;
    bottom: env(safe-area-inset-bottom, 16px);
    padding: 16px;
    background: linear-gradient(to top, #fff 80%, transparent);
  }

  .premium-form-submit button {
    width: 100%;
    min-height: 54px;
    font-size: 17px;
    font-weight: 600;
    border-radius: 14px;
  }
}

/* ============================================
   16. iOS SAFE AREA HANDLING
   ============================================ */

@supports (padding: env(safe-area-inset-bottom)) {
  .premium-sticky-cta {
    padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  }
}

/* ============================================
   17. REDUCED MOTION (Accessibility)
   ============================================ */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .premium-animate-in {
    opacity: 1;
    transform: none;
  }
}

/* ============================================
   18. PERFORMANCE & TOUCH OPTIMIZATIONS
   ============================================ */

/* Eliminate 300ms tap delay on all touch devices */
html {
  touch-action: manipulation;
}

/* Optimize all interactive elements for touch */
a, button, input, select, textarea, [role="button"] {
  touch-action: manipulation;
}

/* GPU-accelerated transforms for smooth animations */
.mega-menu,
.mega-menu__container,
.mobile-menu-overlay,
.premium-sticky-cta,
.action-sheet-content,
.floating-call-btn,
.hero-spotlight {
  will-change: transform, opacity;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

/* Smooth momentum scrolling */
.mobile-menu-overlay,
.testimonials-swipe-container {
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

/* Prevent scroll chaining when menu is open */
body.menu-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
  height: 100%;
}

/* ============================================
   19. APPLE-STYLE MEGA MENU
   ============================================ */

/* Trigger State */
.mega-menu-trigger {
  position: relative;
}

.mega-menu-trigger > a {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
}

.mega-menu-trigger > a::after {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.2s var(--ease-out);
  margin-left: 2px;
}

.mega-menu-trigger:hover > a::after,
.mega-menu-trigger.active > a::after {
  transform: rotate(-135deg) translateY(0);
}

/* Mega Menu Container */
.mega-menu {
  position: fixed;
  left: 0;
  top: 125px; /* Below header */
  width: 100%;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  z-index: 99;
}

.mega-menu.active {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

/* Backdrop with blur */
.mega-menu__backdrop {
  position: absolute;
  inset: 0;
  height: 100vh;
  background: rgba(61, 54, 51, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.2s var(--ease-smooth);
}

.mega-menu.active .mega-menu__backdrop {
  opacity: 1;
}

/* Main Container */
.mega-menu__container {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 50px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 0 0 16px 16px;
  box-shadow:
    0 4px 6px rgba(61, 54, 51, 0.02),
    0 12px 24px rgba(61, 54, 51, 0.06),
    0 24px 48px rgba(61, 54, 51, 0.08);
  transform: translateY(-10px);
  opacity: 0;
  transition:
    transform 0.25s var(--ease-out),
    opacity 0.2s var(--ease-smooth);
}

.mega-menu.active .mega-menu__container {
  transform: translateY(0);
  opacity: 1;
}

/* Categories Grid */
.mega-menu__categories {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.mega-menu__category-title {
  margin: 0 0 16px !important;
  padding-bottom: 12px !important;
  border-bottom: 1px solid rgba(61, 54, 51, 0.08) !important;
  color: var(--taupe-dark) !important;
  font-family: var(--font-display) !important;
  font-size: 18px !important;
  font-weight: 500 !important;
  letter-spacing: -0.01em !important;
  text-transform: none !important;
}

.mega-menu__links {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.mega-menu__links li {
  margin: 0 !important;
  padding: 0 !important;
}

.mega-menu__links li::before {
  display: none !important; /* Override site default bullet */
}

.mega-menu__links a {
  display: block !important;
  padding: 8px 0 !important;
  color: var(--taupe-mid) !important;
  font-family: var(--font-body) !important;
  font-size: 15px !important;
  font-weight: 400 !important;
  text-decoration: none !important;
  transition:
    color 0.2s ease,
    transform 0.2s ease !important;
}

.mega-menu__links a:hover {
  color: #ed5d9e !important;
  transform: translateX(4px);
  text-decoration: none !important;
}

/* Preview Panel */
.mega-menu__preview {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-left: 32px;
  border-left: 1px solid rgba(61, 54, 51, 0.08);
}

.mega-menu__preview-image {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16/10;
}

.mega-menu__preview-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}

.mega-menu:hover .mega-menu__preview-image img {
  transform: scale(1.03);
}

/* CTA Buttons in Preview */
.mega-menu__preview-ctas {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mega-menu__cta {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 12px 16px !important;
  background: var(--ivory) !important;
  border-radius: 8px !important;
  color: var(--taupe-dark) !important;
  font-family: var(--font-body) !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  text-decoration: none !important;
  transition:
    background 0.2s ease,
    transform 0.2s ease !important;
}

.mega-menu__cta:hover {
  background: var(--rose-light) !important;
  transform: translateX(2px);
  text-decoration: none !important;
}

.mega-menu__cta--primary {
  background: var(--taupe-dark) !important;
  color: #fff !important;
}

.mega-menu__cta--primary:hover {
  background: var(--taupe-mid) !important;
}

.mega-menu__cta svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Hide mega menu on tablet/mobile - use mobile nav instead */
@media (max-width: 1000px) {
  .mega-menu {
    display: none !important;
  }
  .mega-menu-trigger > a::after {
    display: none !important;
  }
}

/* ============================================
   20. HERO TEXT REVEAL ANIMATION
   ============================================ */

/* Wrapper for animated hero text */
.hero-text-reveal {
  overflow: hidden;
}

.hero-text-reveal .word {
  display: inline-block;
  opacity: 0;
  filter: blur(8px);
  transform: translateY(15px);
  will-change: opacity, filter, transform;
}

.hero-text-reveal.revealed .word {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}

/* Spotlight/glow effect behind hero content */
.hero-spotlight {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(232, 196, 200, 0.6) 0%,
    rgba(232, 196, 200, 0.3) 30%,
    transparent 70%
  );
  filter: blur(60px);
  pointer-events: none;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 1s ease, transform 1s ease;
  z-index: 0;
}

.hero-spotlight.active {
  opacity: 1;
  transform: scale(1);
}

/* Ensure quote content is above spotlight */
#welcome > div {
  position: relative;
  z-index: 1;
}

/* ============================================
   21. GLASSMORPHISM STICKY HEADER
   ============================================ */

#top,
#sticky-top {
  transition:
    background 0.3s var(--ease-smooth),
    box-shadow 0.3s var(--ease-smooth),
    backdrop-filter 0.3s var(--ease-smooth) !important;
}

/* When scrolled - apply glassmorphism */
#top.scrolled,
#sticky-top.scrolled {
  background: rgba(255, 255, 255, 0.85) !important;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow:
    0 1px 0 rgba(61, 54, 51, 0.05),
    0 4px 12px rgba(61, 54, 51, 0.08) !important;
}

/* Subtle gradient accent line on header when scrolled */
#top.scrolled::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--rose-light) 50%,
    transparent 100%
  );
  opacity: 0.6;
}

/* ============================================
   22. BUTTON SHINE EFFECT
   ============================================ */

.premium-cta {
  position: relative !important;
  overflow: hidden !important;
}

.premium-cta::before {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: -100% !important;
  width: 100% !important;
  height: 100% !important;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(255, 255, 255, 0.3) 50%,
    transparent 100%
  ) !important;
  transition: left 0.5s var(--ease-out) !important;
  pointer-events: none !important;
}

.premium-cta:hover::before {
  left: 100% !important;
}

/* Disable shine for reduced motion */
@media (prefers-reduced-motion: reduce) {
  .premium-cta::before {
    display: none !important;
  }
}

/* ============================================
   23. ENHANCED CARD ANIMATIONS
   ============================================ */

/* Procedure gallery cards */
.gallery-a li {
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

@media (min-width: 1024px) {
  .gallery-a li:hover {
    transform: translateY(-6px);
  }
}

.gallery-a li .img {
  box-shadow: var(--shadow-soft);
  transition: box-shadow 0.3s var(--ease-out);
}

.gallery-a li:hover .img {
  box-shadow: var(--shadow-elevated);
}

/* Module boxes hover lift */
.module-a {
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

@media (min-width: 1024px) {
  .module-a:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(61, 54, 51, 0.08);
  }
}

/* News article cards */
.news-a article {
  transition: transform 0.3s var(--ease-out);
}

@media (min-width: 1024px) {
  .news-a article:hover {
    transform: translateY(-3px);
  }
}

/* ============================================
   24. ENHANCED FORM INPUT ANIMATIONS
   ============================================ */

/* Input focus glow enhancement */
input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.25s ease !important;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus,
select:focus {
  border-color: #c4727e !important;
  box-shadow:
    0 0 0 3px rgba(196, 114, 126, 0.15),
    0 4px 12px rgba(196, 114, 126, 0.1) !important;
  transform: translateY(-1px);
  outline: none !important;
}

/* ============================================
   25. ANIMATED SECTION BACKGROUNDS
   ============================================ */

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.module-a {
  background: linear-gradient(
    135deg,
    #fbf6f9 0%,
    #faf8f5 50%,
    #f8f4f0 100%
  );
  background-size: 200% 200%;
}

/* Only animate on hover to avoid constant GPU usage */
@media (min-width: 1024px) {
  .module-a:hover {
    animation: gradientShift 8s ease infinite;
  }
}

@media (prefers-reduced-motion: reduce) {
  .module-a:hover {
    animation: none !important;
  }
}

/* ============================================
   26. MOBILE FULL-SCREEN MENU OVERLAY
   ============================================ */

.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 2000;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: env(safe-area-inset-top, 20px) 24px env(safe-area-inset-bottom, 20px);
  display: none; /* Hidden on desktop */
}

@media (max-width: 768px) {
  .mobile-menu-overlay {
    display: block;
  }
}

.mobile-menu-overlay.active {
  transform: translateX(0);
}

/* Close button */
.mobile-menu-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  z-index: 10;
}

.mobile-menu-close::before,
.mobile-menu-close::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 2px;
  background: #584a54;
  transition: background 0.2s ease;
}

.mobile-menu-close::before { transform: rotate(45deg); }
.mobile-menu-close::after { transform: rotate(-45deg); }

.mobile-menu-close:active::before,
.mobile-menu-close:active::after {
  background: #ed5d9e;
}

/* Menu items */
.mobile-menu-items {
  margin-top: 80px;
  padding: 0;
  list-style: none;
}

.mobile-menu-item {
  border-bottom: 1px solid rgba(88, 74, 84, 0.1);
}

.mobile-menu-item > a,
.mobile-menu-link {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 20px 0 !important;
  font-family: 'Urbanist', system-ui, sans-serif !important;
  font-size: 22px !important;
  font-weight: 400 !important;
  color: #584a54 !important;
  text-decoration: none !important;
  min-height: 60px !important; /* Large touch target */
  -webkit-tap-highlight-color: transparent;
}

.mobile-menu-item > a:active,
.mobile-menu-link:active {
  color: #ed5d9e !important;
}

.mobile-menu-item svg {
  width: 20px;
  height: 20px;
  stroke: #584a54;
  transition: transform 0.3s ease;
}

.mobile-menu-item.expanded svg {
  transform: rotate(180deg);
}

/* Nested accordion for procedures */
.mobile-submenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease-out;
  background: rgba(250, 248, 245, 0.5);
  margin: 0 -24px;
  padding: 0 24px;
}

.mobile-submenu.expanded {
  max-height: 1000px;
}

.mobile-submenu-item a {
  display: block !important;
  padding: 16px 20px !important;
  font-size: 18px !important;
  color: #6b5f5b !important;
  text-decoration: none !important;
  border-left: 3px solid transparent;
  transition: all 0.2s ease !important;
  min-height: 50px;
}

.mobile-submenu-item a:active {
  background: rgba(237, 93, 158, 0.1) !important;
  border-left-color: #ed5d9e !important;
}

/* Phone CTA at bottom of menu */
.mobile-menu-cta {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(88, 74, 84, 0.1);
}

.mobile-menu-phone {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 12px !important;
  width: 100% !important;
  padding: 18px !important;
  background: #ed5d9e !important;
  color: white !important;
  font-size: 20px !important;
  font-weight: 600 !important;
  border-radius: 12px !important;
  text-decoration: none !important;
  -webkit-tap-highlight-color: transparent;
}

.mobile-menu-phone:active {
  background: #d94d8a !important;
  transform: scale(0.98);
}

.mobile-menu-phone svg {
  stroke: white;
}

/* ============================================
   27. TOUCH FEEDBACK EFFECTS
   ============================================ */

/* Touch Ripple Effect */
.touch-ripple {
  position: relative;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}

.touch-ripple::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(237, 93, 158, 0.15);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  transition: width 0.4s ease, height 0.4s ease, opacity 0.4s ease;
}

.touch-ripple:active::after {
  width: 200%;
  height: 200%;
  opacity: 0;
}

/* Scale feedback for buttons */
.touch-scale {
  transition: transform 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.touch-scale:active {
  transform: scale(0.97);
}

/* ============================================
   28. FLOATING CALL BUTTON (Mobile)
   ============================================ */

.floating-call-btn {
  display: none; /* Hidden on desktop */
}

@media (max-width: 768px) {
  .floating-call-btn {
    display: flex;
    position: fixed;
    bottom: 100px; /* Above sticky CTA bar */
    right: 20px;
    width: 60px;
    height: 60px;
    background: #ed5d9e;
    color: white;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(237, 93, 158, 0.4);
    z-index: 998;
    transition: all 0.3s ease;
    -webkit-tap-highlight-color: transparent;
    text-decoration: none !important;
  }

  .floating-call-btn:active {
    transform: scale(0.95);
    box-shadow: 0 2px 8px rgba(237, 93, 158, 0.3);
  }

  .floating-call-btn svg {
    stroke: white;
    width: 28px;
    height: 28px;
  }

  /* Pulse animation to draw attention */
  .floating-call-btn::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: inherit;
    animation: pulse-ring 2s ease-out infinite;
    z-index: -1;
  }

  @keyframes pulse-ring {
    0% {
      transform: scale(1);
      opacity: 0.5;
    }
    100% {
      transform: scale(1.5);
      opacity: 0;
    }
  }

  /* Disable pulse for reduced motion */
  @media (prefers-reduced-motion: reduce) {
    .floating-call-btn::before {
      animation: none;
    }
  }
}

/* ============================================
   29. QUICK ACTION SHEET (iOS-style)
   ============================================ */

.action-sheet {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3000;
  visibility: hidden;
  opacity: 0;
  transition: visibility 0s 0.3s, opacity 0.3s ease;
}

.action-sheet.active {
  visibility: visible;
  opacity: 1;
  transition: visibility 0s, opacity 0.3s ease;
}

.action-sheet-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
}

.action-sheet-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  border-radius: 20px 20px 0 0;
  padding: 20px;
  padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.action-sheet.active .action-sheet-content {
  transform: translateY(0);
}

.action-sheet-header {
  text-align: center;
  margin-bottom: 20px;
}

.action-sheet-header h3 {
  font-size: 20px !important;
  font-weight: 600 !important;
  color: #584a54 !important;
  margin: 0 0 4px !important;
}

.action-sheet-header p {
  font-size: 14px !important;
  color: #6b5f5b !important;
  margin: 0 !important;
}

.action-sheet-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.action-sheet-option {
  display: flex !important;
  align-items: center !important;
  gap: 16px !important;
  padding: 16px !important;
  border-radius: 12px !important;
  text-decoration: none !important;
  color: #584a54 !important;
  transition: background 0.2s ease !important;
  min-height: 60px;
  -webkit-tap-highlight-color: transparent;
}

.action-sheet-option:active {
  background: rgba(237, 93, 158, 0.1) !important;
}

.action-sheet-option svg {
  flex-shrink: 0;
  stroke: #ed5d9e;
  width: 24px;
  height: 24px;
}

.action-sheet-option strong {
  display: block !important;
  font-size: 17px !important;
  font-weight: 600 !important;
}

.action-sheet-option span {
  display: block !important;
  font-size: 14px !important;
  color: #6b5f5b !important;
}

.action-sheet-cancel {
  width: 100%;
  padding: 16px;
  margin-top: 12px;
  border: none;
  border-radius: 12px;
  background: #f5f2ed;
  font-size: 17px;
  font-weight: 600;
  color: #ed5d9e;
  cursor: pointer;
  min-height: 50px;
  -webkit-tap-highlight-color: transparent;
}

.action-sheet-cancel:active {
  background: #e8e4de;
}

/* ============================================
   30. SWIPEABLE TESTIMONIALS
   ============================================ */

.testimonials-swipe-container {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  margin: 0 -24px;
  padding: 0 24px;
}

.testimonials-swipe-container::-webkit-scrollbar {
  display: none;
}

.testimonials-track {
  display: flex;
  gap: 16px;
  padding: 20px 0;
}

.testimonial-card {
  flex: 0 0 85vw;
  max-width: 320px;
  scroll-snap-align: center;
  background: white;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* Pagination dots */
.testimonials-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.testimonials-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d1d1d6;
  transition: all 0.3s ease;
}

.testimonials-dot.active {
  width: 24px;
  border-radius: 4px;
  background: #ed5d9e;
}

/* ============================================
   31. ANIMATED CREDENTIAL COUNTERS
   ============================================ */

.credential-counter {
  display: inline-block;
  font-variant-numeric: tabular-nums;
}
