/* ============================================================
   Moothedan Pools V2 — Premium Enhancements
   Animations • Carousel • Effects • Responsive Polish
   ============================================================ */

/* ─── 1. VIEWPORT FIX ───────────────────────────────────────── */
/* 100dvh = real visible height excluding browser chrome on mobile */
#hero,
.page-hero,
#proj-hero {
  height: 100dvh !important;
  min-height: 600px !important;
}
@media (max-width: 768px) {
  #hero, .page-hero, #proj-hero {
    height: 100dvh !important;
    min-height: 480px !important;
  }
}

/* ─── 2. SCROLL REVEAL — STAGGER ───────────────────────────── */
.reveal           { opacity: 0; transform: translateY(40px); transition: opacity 0.65s cubic-bezier(0.22,1,0.36,1), transform 0.65s cubic-bezier(0.22,1,0.36,1); }
.reveal.visible,
.reveal.in        { opacity: 1 !important; transform: none !important; }
.reveal-left      { opacity: 0; transform: translateX(-50px); transition: opacity 0.65s cubic-bezier(0.22,1,0.36,1), transform 0.65s cubic-bezier(0.22,1,0.36,1); }
.reveal-left.visible { opacity: 1; transform: none; }
.reveal-right     { opacity: 0; transform: translateX(50px); transition: opacity 0.65s cubic-bezier(0.22,1,0.36,1), transform 0.65s cubic-bezier(0.22,1,0.36,1); }
.reveal-right.visible { opacity: 1; transform: none; }
.reveal-scale     { opacity: 0; transform: scale(0.88); transition: opacity 0.6s cubic-bezier(0.22,1,0.36,1), transform 0.6s cubic-bezier(0.22,1,0.36,1); }
.reveal-scale.visible { opacity: 1; transform: scale(1); }

/* Stagger delays */
.stagger-children > *:nth-child(1)  { transition-delay: 0.05s; }
.stagger-children > *:nth-child(2)  { transition-delay: 0.12s; }
.stagger-children > *:nth-child(3)  { transition-delay: 0.19s; }
.stagger-children > *:nth-child(4)  { transition-delay: 0.26s; }
.stagger-children > *:nth-child(5)  { transition-delay: 0.33s; }
.stagger-children > *:nth-child(6)  { transition-delay: 0.40s; }

/* ─── 3. HERO ANIMATED HEADLINE ────────────────────────────── */
.hero-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(60px) skewY(4deg);
  transition: opacity 0.7s cubic-bezier(0.22,1,0.36,1), transform 0.7s cubic-bezier(0.22,1,0.36,1);
}
.hero-word.in { opacity: 1; transform: none; }

/* ─── 4. MARQUEE TICKER ─────────────────────────────────────── */
.marquee-wrap {
  overflow: hidden;
  background: linear-gradient(90deg, #0C1A2E 0%, #0369A1 50%, #0C1A2E 100%);
  padding: 0.75rem 0;
  white-space: nowrap;
}
.marquee-track {
  display: inline-flex;
  animation: marquee-scroll 32s linear infinite;
  gap: 0;
}
.marquee-track:hover { animation-play-state: paused; }
.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0 2.5rem;
  color: rgba(255,255,255,0.85);
  font-size: 0.8rem;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.marquee-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #C8A84B;
  flex-shrink: 0;
}
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ─── 5. DRAG CAROUSEL (Gallery) ───────────────────────────── */
.carousel-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
}
.carousel-track {
  display: flex;
  gap: 1.25rem;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  padding: 0.5rem 2rem 1.5rem;
  will-change: transform;
  transition: transform 0.08s linear;
}
.carousel-track.is-dragging {
  cursor: grabbing;
  transition: none;
}
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.95);
  border: 1.5px solid rgba(91,200,245,0.35);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 4px 20px rgba(3,105,161,0.15);
  transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
  backdrop-filter: blur(8px);
}
.carousel-btn:hover {
  background: #0EA5E9;
  box-shadow: 0 6px 24px rgba(14,165,233,0.4);
  transform: translateY(-50%) scale(1.08);
}
.carousel-btn svg { width: 18px; height: 18px; }
.carousel-btn:hover svg path { stroke: #fff; }
.carousel-btn.prev { left: 0.5rem; }
.carousel-btn.next { right: 0.5rem; }
@media (max-width: 768px) {
  .carousel-btn { display: none; }
}

/* ─── 6. COUNT-UP STAT NUMBERS ─────────────────────────────── */
.count-stat { display: inline-block; }

/* ─── 7. WATER RIPPLE on BUTTONS ───────────────────────────── */
.btn-ripple {
  position: relative;
  overflow: hidden;
}
.btn-ripple .ripple-circle {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  transform: scale(0);
  animation: ripple-expand 0.55s linear;
  pointer-events: none;
}
@keyframes ripple-expand {
  to { transform: scale(4); opacity: 0; }
}

/* ─── 8. FLOATING WHATSAPP BUTTON ──────────────────────────── */
.whatsapp-fab {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #25D366;
  display: flex; align-items: center; justify-content: center;
  z-index: 999;
  box-shadow: 0 4px 24px rgba(37,211,102,0.45);
  text-decoration: none;
  transition: transform 0.2s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.2s;
  animation: fab-pulse 2.5s ease-in-out infinite;
}
.whatsapp-fab:hover {
  transform: scale(1.12);
  box-shadow: 0 8px 32px rgba(37,211,102,0.55);
  animation: none;
}
.whatsapp-fab svg { width: 28px; height: 28px; fill: #fff; }
@keyframes fab-pulse {
  0%, 100% { box-shadow: 0 4px 24px rgba(37,211,102,0.45); }
  50% { box-shadow: 0 4px 36px rgba(37,211,102,0.75), 0 0 0 8px rgba(37,211,102,0.12); }
}
@media (max-width: 768px) {
  .whatsapp-fab { bottom: 1rem; right: 1rem; width: 50px; height: 50px; }
}

/* ─── 9. SCROLL INDICATOR (Hero) ───────────────────────────── */
.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  z-index: 5;
  opacity: 0.75;
  transition: opacity 0.3s;
}
.scroll-indicator:hover { opacity: 1; }
.scroll-mouse {
  width: 22px; height: 36px;
  border: 2px solid rgba(255,255,255,0.7);
  border-radius: 14px;
  position: relative;
}
.scroll-mouse::after {
  content: '';
  position: absolute;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px; height: 7px;
  background: rgba(255,255,255,0.9);
  border-radius: 2px;
  animation: scroll-dot 1.6s ease-in-out infinite;
}
.scroll-label {
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  font-family: 'DM Sans', sans-serif;
}
@keyframes scroll-dot {
  0%   { opacity: 1; transform: translateX(-50%) translateY(0); }
  80%  { opacity: 0; transform: translateX(-50%) translateY(12px); }
  100% { opacity: 0; transform: translateX(-50%) translateY(0); }
}
@media (max-width: 768px) {
  .scroll-indicator { bottom: 1.5rem; }
}

/* ─── 10. STICKY NAV ENHANCEMENT ───────────────────────────── */
#nav.nav-scrolled {
  background: rgba(255,255,255,0.98) !important;
  box-shadow: 0 2px 32px rgba(3,105,161,0.12) !important;
  backdrop-filter: blur(20px) !important;
}
.page-nav.nav-scrolled {
  background: rgba(255,255,255,0.98) !important;
  box-shadow: 0 2px 32px rgba(3,105,161,0.12) !important;
}

/* ─── 11. IMAGE HOVER SCALE ─────────────────────────────────── */
.pool-card-img-wrap,
.pool-img-main,
.proj-card-img {
  overflow: hidden;
}
.pool-card-img-wrap img,
.pool-img-main img,
.proj-card-img img {
  transition: transform 0.55s cubic-bezier(0.22,1,0.36,1) !important;
}
.pool-card:hover .pool-card-img,
.pool-card:hover .pool-card-img-wrap img,
.proj-card:hover .proj-card-img img {
  transform: scale(1.07) !important;
}

/* ─── 12. PREMIUM SECTION DIVIDER ──────────────────────────── */
.divider-water {
  width: 100%;
  height: 60px;
  position: relative;
  overflow: hidden;
}
.divider-water svg {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 100%;
}

/* ─── 13. ANIMATED GRADIENT SECTION BORDER ──────────────────── */
.glass-card {
  position: relative;
}
.glass-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(91,200,245,0.4) 0%, rgba(200,168,75,0.3) 50%, rgba(91,200,245,0.2) 100%);
  z-index: 0;
  opacity: 0;
  transition: opacity 0.35s;
}
.glass-card:hover::before { opacity: 1; }

/* ─── 14. KEN BURNS on HERO SLIDES ─────────────────────────── */
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  transition: transform 7s ease-out, opacity 1.2s ease !important;
}
.hero-slide.active img {
  transform: scale(1) !important;
}
/* Reset for transition between slides */
.hero-slide img {
  transition: opacity 1.2s ease !important;
}
.hero-slide.active img {
  animation: ken-burns 7s ease-out forwards;
}
@keyframes ken-burns {
  from { transform: scale(1.1); }
  to   { transform: scale(1.0); }
}

/* ─── 14b. PAGE-HERO PARALLAX FIX ──────────────────────────── */
.page-hero-bg {
  background-attachment: fixed;
}
@media (max-width: 768px) {
  .page-hero-bg { background-attachment: scroll; }
}

/* ─── 15. LOADING PROGRESS BAR ──────────────────────────────── */
.page-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  background: linear-gradient(90deg, #C8A84B, #0EA5E9, #C8A84B);
  background-size: 200%;
  z-index: 10000;
  transition: width 0.3s ease;
  animation: progress-shimmer 1.5s linear infinite;
}
@keyframes progress-shimmer {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

/* ─── 16. STAT CARD GLOW ON HOVER ──────────────────────────── */
.stat-item:hover .stat-num,
.stat-card:hover .stat-num {
  color: #0EA5E9;
  text-shadow: 0 0 24px rgba(14,165,233,0.3);
  transition: color 0.3s, text-shadow 0.3s;
}

/* ─── 17. POOL CARD GLASS OVERLAY ──────────────────────────── */
.pool-card {
  transition: transform 0.35s cubic-bezier(0.22,1,0.36,1), box-shadow 0.35s !important;
}
.pool-card:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 20px 60px rgba(3,105,161,0.18) !important;
}

/* ─── 18. TESTIMONIAL CARD HOVER ───────────────────────────── */
.testi-card {
  transition: transform 0.3s cubic-bezier(0.22,1,0.36,1), box-shadow 0.3s !important;
}
.testi-card:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 16px 48px rgba(3,105,161,0.15) !important;
}

/* ─── 19. WATER SHIMMER BACKGROUND ─────────────────────────── */
@keyframes water-shimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.water-shimmer-bg {
  background: linear-gradient(135deg, #EFF9FF 0%, #BAE6FD 40%, #EFF9FF 80%, #E0F2FE 100%);
  background-size: 300% 300%;
  animation: water-shimmer 6s ease-in-out infinite;
}

/* ─── 20. SMOOTH SCROLLBAR (invisible — no blue split line) ─── */
html { scroll-behavior: smooth; }
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(200,168,75,0.22); border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: rgba(200,168,75,0.5); }

/* ─── 21. UNIVERSAL DARK FOOTER (all 6 pages) ───────────────── */
footer {
  background: #0C1A2E !important;
  border-top: none !important;
  color: rgba(255,255,255,0.75) !important;
}
footer .footer-brand-logo .logo-m { color: #C8A84B !important; }
footer .footer-brand-logo .logo-p { color: rgba(255,255,255,0.9) !important; }
footer .footer-brand-desc { color: rgba(255,255,255,0.52) !important; }
footer .footer-col-title {
  color: #C8A84B !important;
  border-bottom-color: rgba(200,168,75,0.3) !important;
}
footer .footer-col ul li a {
  color: rgba(255,255,255,0.58) !important;
  text-decoration: none;
}
footer .footer-col ul li a:hover { color: #C8A84B !important; }
footer .footer-contact-item { color: rgba(255,255,255,0.58) !important; }
footer .footer-contact-icon { color: #5BC8F5 !important; }
footer .footer-contact-icon svg { stroke: #5BC8F5 !important; }
footer .footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1) !important;
  color: rgba(255,255,255,0.4) !important;
}
footer .footer-copy { color: rgba(255,255,255,0.38) !important; }
footer .footer-cert { color: rgba(255,255,255,0.32) !important; }
footer .social-icon {
  background: rgba(255,255,255,0.1) !important;
  color: rgba(255,255,255,0.65) !important;
  border: 1px solid rgba(255,255,255,0.12) !important;
}
footer .social-icon:hover {
  background: #C8A84B !important;
  color: #fff !important;
  border-color: #C8A84B !important;
}
footer .btn-gold {
  background: linear-gradient(135deg, #C8A84B, #E5C96B) !important;
  color: #0C1A2E !important;
  border-color: transparent !important;
}
footer .btn-gold:hover { box-shadow: 0 4px 20px rgba(200,168,75,0.4) !important; }

/* ─── 22. SPOTLIGHT 3-CARD CAROUSEL ─────────────────────────── */
.proj-spotlight-wrap {
  position: relative;
  overflow: hidden;
  padding: 2rem 0 4rem;
}
.proj-spotlight {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.75rem;
  min-height: 440px;
}
/* All cards hidden by default */
.proj-scard {
  visibility: hidden;
  opacity: 0;
  flex: 0 0 0px;
  width: 0;
  height: 380px;
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transform: scale(0.8);
  order: 99; /* hidden cards pushed out of visible area */
  transition:
    opacity 0.5s cubic-bezier(0.22,1,0.36,1),
    transform 0.5s cubic-bezier(0.22,1,0.36,1),
    flex-basis 0.5s cubic-bezier(0.22,1,0.36,1),
    width 0.5s cubic-bezier(0.22,1,0.36,1),
    box-shadow 0.5s cubic-bezier(0.22,1,0.36,1),
    height 0.5s cubic-bezier(0.22,1,0.36,1);
}
/* LEFT side card — appears before center via CSS order */
.proj-scard.show-prev {
  visibility: visible;
  opacity: 0.48;
  flex: 0 0 270px;
  width: 270px;
  transform: scale(0.88);
  box-shadow: 0 6px 24px rgba(0,0,0,0.12);
  order: -1;
}
/* CENTER featured card */
.proj-scard.show-center {
  visibility: visible;
  opacity: 1;
  flex: 0 0 370px;
  width: 370px;
  height: 430px;
  transform: scale(1);
  z-index: 2;
  box-shadow: 0 28px 70px rgba(3,105,161,0.3);
  order: 0;
}
/* RIGHT side card — appears after center */
.proj-scard.show-next {
  visibility: visible;
  opacity: 0.48;
  flex: 0 0 270px;
  width: 270px;
  transform: scale(0.88);
  box-shadow: 0 6px 24px rgba(0,0,0,0.12);
  order: 1;
}
/* backward-compat alias */
.proj-scard.show-side {
  visibility: visible;
  opacity: 0.48;
  flex: 0 0 270px;
  width: 270px;
  transform: scale(0.88);
}
.proj-scard img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s cubic-bezier(0.22,1,0.36,1), filter 0.5s;
}
.proj-scard.show-prev img,
.proj-scard.show-next img,
.proj-scard.show-side img {
  filter: brightness(0.62) saturate(0.65);
}
.proj-scard.show-center img {
  filter: brightness(1) saturate(1.05);
  transform: scale(1.04);
}
.proj-scard-info {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 1.75rem 1.5rem 1.4rem;
  background: linear-gradient(to top, rgba(12,26,46,0.92) 0%, rgba(12,26,46,0.4) 65%, transparent 100%);
}
.proj-scard-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #E5C96B;
  margin-bottom: 0.35rem;
  opacity: 0.9;
}
.proj-scard-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: #fff;
  font-weight: 600;
  line-height: 1.3;
}
.proj-scard.show-center .proj-scard-title { font-size: 1.25rem; }

/* Prev/Next buttons */
.proj-spot-controls {
  position: absolute;
  top: 50%;
  left: 0; right: 0;
  transform: translateY(-60%);
  display: flex;
  justify-content: space-between;
  padding: 0 1.25rem;
  pointer-events: none;
  z-index: 10;
}
.proj-spot-btn {
  pointer-events: all;
  width: 50px; height: 50px;
  border-radius: 50%;
  background: rgba(255,255,255,0.96);
  border: 1.5px solid rgba(91,200,245,0.3);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(3,105,161,0.15);
  transition: all 0.22s cubic-bezier(0.34,1.56,0.64,1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.proj-spot-btn:hover {
  background: #0EA5E9;
  box-shadow: 0 8px 30px rgba(14,165,233,0.4);
  transform: scale(1.1);
}
.proj-spot-btn:hover svg { stroke: #fff; }
.proj-spot-btn svg { width: 22px; height: 22px; stroke: #0369A1; }

/* Dot navigation */
.proj-spot-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.75rem;
}
.proj-spot-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(3,105,161,0.18);
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.22,1,0.36,1);
  border: none;
  padding: 0;
}
.proj-spot-dot.active {
  background: #C8A84B;
  width: 26px;
  border-radius: 4px;
}

@media (max-width: 768px) {
  .proj-scard.show-prev,
  .proj-scard.show-next,
  .proj-scard.show-side { flex: 0 0 200px; width: 200px; height: 300px; }
  .proj-scard.show-center { flex: 0 0 270px; width: 270px; height: 350px; }
  .proj-spotlight { gap: 1rem; }
  .proj-spot-controls { padding: 0 0.5rem; }
  .proj-spot-btn { width: 40px; height: 40px; }
}
@media (max-width: 480px) {
  .proj-scard.show-prev,
  .proj-scard.show-next,
  .proj-scard.show-side { flex: 0 0 140px; width: 140px; height: 230px; }
  .proj-scard.show-center { flex: 0 0 210px; width: 210px; height: 280px; }
  .proj-spotlight { gap: 0.75rem; }
}

/* ─── 23. PROCESS STEP ANIMATIONS ───────────────────────────── */
/* Steps are visible by default — JS adds .step-hidden class before observing,
   so if JS is disabled or slow the steps always show. */
.step-num-bg {
  transition: opacity 0.8s cubic-bezier(0.22,1,0.36,1), transform 0.8s cubic-bezier(0.22,1,0.36,1);
}
/* JS adds this class to prepare for animation */
.process-step.step-hidden {
  opacity: 0;
  transform: translateY(44px);
  transition: opacity 0.7s cubic-bezier(0.22,1,0.36,1), transform 0.7s cubic-bezier(0.22,1,0.36,1);
}
.process-step.step-hidden:nth-child(even) {
  transform: translateY(40px) translateX(28px);
}
.process-step.step-hidden:nth-child(odd):not(:first-child) {
  transform: translateY(40px) translateX(-28px);
}
/* Observer adds .in-view to reveal */
.process-step.in-view {
  opacity: 1 !important;
  transform: none !important;
}

/* Step connector line that fills down */
.step-timeline {
  position: relative;
}
.step-timeline::before {
  content: '';
  position: absolute;
  left: 50%; top: 0;
  width: 2px;
  height: 0%;
  background: linear-gradient(to bottom, #C8A84B, #5BC8F5);
  transform: translateX(-50%);
  transition: height 1.2s cubic-bezier(0.22,1,0.36,1);
}
.process-step.in-view .step-timeline::before { height: 100%; }

/* Step pill stagger animation */
.step-pill {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.4s, transform 0.4s cubic-bezier(0.22,1,0.36,1);
}
.step-pill.visible {
  opacity: 1;
  transform: none;
}

/* ─── 24. WAVE SPLIT FIX (eliminate 1px seam) ───────────────── */
.page-hero-wave,
.wave-divider {
  line-height: 0;
  display: block;
  overflow: hidden;
  margin-bottom: -1px;
}
.page-hero-wave svg,
.wave-divider svg {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: bottom;
}

/* ─── 25. BRAND LOGO — hide old text spans immediately (new SVG injected by JS) ── */
.nav-logo .logo-m,
.nav-logo .logo-p,
.footer-brand-logo .logo-m,
.footer-brand-logo .logo-p { display: none !important; }

/* Layout for new logo wrapper */
.nav-logo.mp-logo-wrap,
a.nav-logo.mp-logo-wrap {
  display: flex !important;
  align-items: center !important;
  gap: 0.6rem !important;
  text-decoration: none;
}
.footer-brand-logo.mp-logo-wrap {
  display: flex !important;
  align-items: center !important;
  gap: 0.6rem !important;
}
.mp-logo-icon {
  height: 38px;
  width: auto;
  flex-shrink: 0;
  display: block;
}
.mp-logo-wordmark {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1;
}
.mp-logo-name {
  font-family: 'Hanken Grotesk', 'Trebuchet MS', sans-serif !important;
  font-size: 0.95rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.14em !important;
  color: #ffffff !important;
  line-height: 1 !important;
  font-style: normal !important;
  text-transform: uppercase !important;
}
.mp-logo-tag {
  font-family: 'Hanken Grotesk', 'Trebuchet MS', sans-serif !important;
  font-size: 0.58rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.38em !important;
  color: #29B6DC !important;
  line-height: 1 !important;
  font-style: normal !important;
  text-transform: uppercase !important;
}
/* Footer same as nav */
footer .mp-logo-name { color: #ffffff !important; }
footer .mp-logo-tag  { color: #29B6DC !important; }

@media (max-width: 480px) {
  .mp-logo-icon   { height: 28px !important; }
  .mp-logo-name   { font-size: 0.82rem !important; }
  .mp-logo-tag    { font-size: 0.52rem !important; }
}

/* ─── 26. CURSOR RING PERFORMANCE FIX ───────────────────────── */
/* The JS rAF lerp already provides smooth positional movement.
   CSS transition on transform fights rAF every frame → jitter.
   Only keep transitions for size + color changes (CSS-safe). */
#cursor-ring {
  transition:
    width 0.28s cubic-bezier(0.25,0.46,0.45,0.94),
    height 0.28s cubic-bezier(0.25,0.46,0.45,0.94),
    border-color 0.25s ease !important;
}

/* ─── 26. FORM ELEMENT CURSOR VISIBILITY ────────────────────── */
/* Pages with cursor:none on body need explicit cursor overrides so
   form elements feel interactive even without the native cursor. */
select { cursor: pointer !important; }
input[type="text"],
input[type="email"],
input[type="tel"],
textarea { cursor: text !important; }

/* ─── 27. FREE CONSULTATION POPUP ───────────────────────────── */
.mp-overlay {
  position: fixed; inset: 0; z-index: 100000;
  background: rgba(12,26,46,0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.mp-overlay.open { opacity: 1; visibility: visible; }

.mp-popup {
  position: relative;
  background: #fff;
  border-radius: 24px;
  padding: 2.5rem 2.25rem 2rem;
  max-width: 420px; width: 100%;
  box-shadow: 0 32px 80px rgba(3,105,161,0.22), 0 0 0 1px rgba(91,200,245,0.2);
  transform: translateY(28px) scale(0.97);
  transition: transform 0.35s cubic-bezier(0.22,1,0.36,1);
}
.mp-overlay.open .mp-popup { transform: translateY(0) scale(1); }

.mp-popup-close {
  position: absolute; top: 1.1rem; right: 1.25rem;
  width: 32px; height: 32px; border-radius: 50%;
  border: none; background: rgba(12,26,46,0.06);
  color: #4A6FA5; font-size: 1.15rem; line-height: 1;
  cursor: pointer !important; display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, color 0.2s;
}
.mp-popup-close:hover { background: rgba(200,168,75,0.15); color: #C8A84B; }

.mp-popup-eyebrow {
  font-family: 'DM Sans', sans-serif; font-size: 0.7rem;
  font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  color: #0EA5E9; margin-bottom: 0.6rem;
  display: flex; align-items: center; gap: 0.4rem;
}
.mp-popup-eyebrow::before { content: '✦'; color: #C8A84B; font-size: 0.6rem; }

.mp-popup-title {
  font-family: 'Playfair Display', serif; font-size: 1.65rem;
  font-weight: 700; color: #0C1A2E; line-height: 1.2; margin-bottom: 0.5rem;
}
.mp-popup-title em { font-style: italic; color: #C8A84B; }

.mp-popup-sub {
  font-family: 'Inter', sans-serif; font-size: 0.88rem;
  color: #4A6FA5; line-height: 1.6; margin-bottom: 1.6rem;
}

.mp-popup-field { margin-bottom: 1rem; }
.mp-popup-field label {
  display: block; font-family: 'DM Sans', sans-serif;
  font-size: 0.78rem; font-weight: 600; color: #1E3A5F;
  margin-bottom: 0.35rem; letter-spacing: 0.02em;
}
.mp-popup-field input {
  width: 100%; padding: 0.8rem 1rem;
  border: 1.5px solid rgba(91,200,245,0.35); border-radius: 10px;
  font-family: 'Inter', sans-serif; font-size: 0.95rem; color: #0C1A2E;
  background: #F8FCFF; outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  cursor: text !important;
}
.mp-popup-field input:focus {
  border-color: #0EA5E9;
  box-shadow: 0 0 0 3px rgba(14,165,233,0.1);
}

.mp-popup-wa {
  width: 100%; padding: 0.95rem 1.5rem; margin-top: 0.5rem;
  background: #25D366; color: #fff;
  border: none; border-radius: 12px;
  font-family: 'DM Sans', sans-serif; font-weight: 600; font-size: 0.95rem;
  display: flex; align-items: center; justify-content: center; gap: 0.6rem;
  cursor: pointer !important;
  box-shadow: 0 6px 24px rgba(37,211,102,0.3);
  transition: transform 0.2s, box-shadow 0.2s;
}
.mp-popup-wa:hover { transform: translateY(-2px); box-shadow: 0 10px 32px rgba(37,211,102,0.4); }

.mp-popup-alt {
  display: block; text-align: center; margin-top: 1rem;
  font-family: 'DM Sans', sans-serif; font-size: 0.83rem;
  color: #4A6FA5; text-decoration: none;
  transition: color 0.2s;
}
.mp-popup-alt:hover { color: #C8A84B; }

@media (max-width: 480px) {
  .mp-popup { padding: 2rem 1.5rem 1.75rem; border-radius: 18px; }
  .mp-popup-title { font-size: 1.4rem; }
}
