/* Shared theme tokens */
:root {
  --primary-mauve: #B47FA6;
  --secondary-mauve: #C9A0BB;
  --deep-mauve: #7A4F72;
  --light-mauve: #DCC5D5;
  --pale-mauve: #EFE3EA;
  --darkest-mauve: #4E2E4A;
  --gold: #D4A853;
  --gold-light: #F0D08A;
  --gold-dark: #A07830;
  --white: #ffffff;
  --dark-text: #2d2430;
  --light-text: #7a6878;
  --bg-base: #FAF5F9;
  --shadow-md: 0 8px 24px rgba(180, 127, 166, 0.22);
  --glass-border: rgba(255, 255, 255, 0.2);
  --vs-mobile-header-offset: 5rem;
  --vs-mobile-bottom-nav-offset: calc(3.5rem + env(safe-area-inset-bottom));
}

body.safe-bottom {
  padding-bottom: var(--vs-mobile-bottom-nav-offset);
}

@media (min-width: 1024px) {
  body.safe-bottom {
    padding-bottom: 0;
  }
}

/* SVG icons bound via [data-vs-icon] (see icons.js + vsBindDataIcons in footer.js) */
.svg-icon,
[data-vs-icon] svg.svg-icon {
  width: 1.15em;
  height: 1.15em;
  max-width: 48px; /* Safety cap for icons */
  max-height: 48px;
  vertical-align: middle;
  display: inline-block;
  flex-shrink: 0;
}

.service-icon svg,
.service-icon .svg-icon,
.gallery-icon svg,
.feature-icon svg {
  width: 32px !important;
  height: 32px !important;
}

/* Shared navbar + footer styles (from index page) */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--primary-mauve), var(--gold), var(--deep-mauve));
  z-index: 2000;
  transition: width 0.1s linear;
  border-radius: 0 2px 2px 0;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0;
}

header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(222, 204, 218, 0.88);
  backdrop-filter: blur(18px) saturate(1.5);
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
  border-bottom: 1px solid rgba(161, 106, 147, 0.25);
  z-index: -1;
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

header.scrolled::before {
  background: rgba(212, 188, 206, 0.95);
  box-shadow: 0 4px 30px rgba(122, 79, 114, 0.15);
}

.nav-aurora { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: -1; }
.nav-aurora span { position: absolute; border-radius: 50%; filter: blur(28px); opacity: 0.22; animation: auroraMove 8s ease-in-out infinite alternate; }
.nav-aurora span:nth-child(1) { width: 220px; height: 100px; background: var(--primary-mauve); top: -30px; left: 8%; animation-delay: 0s; }
.nav-aurora span:nth-child(2) { width: 180px; height: 90px; background: var(--gold); top: -20px; left: 40%; animation-delay: -2s; }
.nav-aurora span:nth-child(3) { width: 200px; height: 80px; background: var(--deep-mauve); top: -25px; right: 8%; animation-delay: -4s; }

@keyframes auroraMove {
  0% { transform: translateX(0) scaleX(1); opacity: 0.18; }
  50% { transform: translateX(30px) scaleX(1.15); opacity: 0.28; }
  100% { transform: translateX(-20px) scaleX(0.9); opacity: 0.18; }
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 72px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  position: relative;
}

.logo { display: flex; align-items: center; gap: 11px; text-decoration: none; position: relative; flex-shrink: 0; }
.logo-ring {
  position: absolute;
  width: 70px;
  height: 70px;
  left: -5px;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--primary-mauve), var(--gold), var(--deep-mauve), var(--primary-mauve));
  animation: logoRingSpin 4s linear infinite;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.logo:hover .logo-ring { opacity: 0.5; }
@keyframes logoRingSpin { to { transform: translateY(-50%) rotate(360deg); } }

.logo-img {
  height: 75px;
  width: auto;
  object-fit: contain;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 2px 6px rgba(122, 79, 114, 0.2));
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}
.logo:hover .logo-img { transform: scale(1.08) rotate(-3deg); }
.logo-text-wrap { display: flex; flex-direction: column; line-height: 1.1; }
.logo-title {
  font-size: 28px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--darkest-mauve) 0%, var(--primary-mauve) 50%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
}
.logo-tagline { font-size: 9px; font-weight: 500; letter-spacing: 2px; text-transform: uppercase; color: var(--deep-mauve); }

nav { display: flex; align-items: center; gap: 0.3rem; position: relative; }
#main-nav {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.nav-pill,
#main-nav .nav-pill {
  height: 36px;
}
.nav-link,
#main-nav .nav-link {
  padding: 8px 18px;
  font-size: 14px;
}
.nav-pill {
  position: absolute;
  height: 36px;
  background: linear-gradient(135deg, rgba(180, 127, 166, 0.18), rgba(212, 168, 83, 0.15));
  border: 1px solid rgba(180, 127, 166, 0.3);
  border-radius: 20px;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  pointer-events: none;
  backdrop-filter: blur(6px);
  z-index: 0;
}

.nav-link {
  text-decoration: none;
  color: var(--light-text);
  font-weight: 500;
  font-size: 14px;
  padding: 8px 18px;
  border-radius: 20px;
  position: relative;
  z-index: 1;
  transition: color 0.35s ease;
  white-space: nowrap;
  overflow: hidden;
  display: inline-block;
}
.nav-link::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 20px;
  background: radial-gradient(circle at 50% 50%, rgba(212, 168, 83, 0.25), transparent 70%);
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}
.nav-link:hover::before { opacity: 1; transform: scale(1); }
.nav-link.active { color: var(--deep-mauve); font-weight: 600; }

.nav-cta {
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--deep-mauve) 0%, var(--primary-mauve) 60%, var(--gold) 100%);
  color: white;
  padding: 10px 24px;
  border: none;
  border-radius: 24px;
  font-weight: 600;
  cursor: pointer;
  font-size: 14px;
  font-family: "Poppins", sans-serif;
  box-shadow: 0 4px 20px rgba(122, 79, 114, 0.35);
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  margin-left: auto;
}
.nav-cta::before {
  content: "";
  position: absolute;
  top: -100%;
  left: -100%;
  width: 300%;
  height: 300%;
  background: conic-gradient(from 0deg, transparent 30%, rgba(255, 255, 255, 0.25) 50%, transparent 70%);
  animation: ctaSpin 3s linear infinite;
}
@keyframes ctaSpin { to { transform: rotate(360deg); } }
.nav-cta span, .nav-cta .cta-icon { position: relative; z-index: 1; }
.nav-cta .cta-icon { width: 20px; height: 20px; background: rgba(255, 255, 255, 0.25); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; transition: transform 0.3s ease; }
.nav-cta:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 10px 35px rgba(122, 79, 114, 0.45); }
.nav-cta:hover .cta-icon { transform: rotate(90deg) scale(1.1); }

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  cursor: pointer;
  background: var(--light-mauve);
  border: none;
  border-radius: 10px;
  gap: 5px;
  transition: background 0.3s ease;
}
.hamburger span { display: block; width: 22px; height: 2px; background: var(--deep-mauve); border-radius: 2px; transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1); transform-origin: center; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* .mobile-menu replaced by .fp-drawer (Frosted Side Panel) — see end of file */

@keyframes footerGlow {
  0%, 100% { box-shadow: 0 -10px 40px rgba(180, 127, 166, 0.2); }
  50% { box-shadow: 0 -10px 64px rgba(212, 168, 83, 0.3); }
}
@keyframes shimmerLine {
  0% { background-position: -1000px 0; }
  100% { background-position: 1000px 0; }
}
@keyframes floatBlob {
  0%, 100% { transform: translate(0, 0); }
}

/* Footer Section Styles */
.organic-split {
  clip-path: polygon(0 0, 100% 0, 88% 100%, 0% 100%);
}
@media (max-width: 768px) {
  .organic-split {
    clip-path: none;
  }
}
.footer-link-animated {
  position: relative;
  display: inline-block;
}
.footer-link-animated::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background: linear-gradient(90deg, #7A4F72, #D4A853);
  transition: width 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  border-radius: 2px;
}
.footer-link-animated:hover::after {
  width: 100%;
}
.gold-glow:hover {
  box-shadow: 0 0 25px rgba(212, 168, 83, 0.3);
}
.floating-back-to-top {
  bottom: 2.5rem;
  left: 2.5rem;
  z-index: 100;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@media (max-width: 640px) {
  .floating-back-to-top {
    display: none !important;
  }
}
.bottom-bar-thick {
  border-top: 2px solid rgba(122, 79, 114, 0.08);
}

@media (max-width: 1024px) {
  .nav-container { padding: 0 1.5rem; }
  .logo-title { font-size: 24px; }
  .logo-img { height: 65px; }
}

@media (max-width: 768px) {
  .nav-container { padding: 0 1rem; }
  .logo-title { font-size: 20px; }
  .logo-tagline { font-size: 8px; }
  .logo-img { height: 55px; }
  #main-nav, .nav-cta { display: none !important; }
  .hamburger { display: flex !important; width: 36px; height: 36px; }
}

@media (max-width: 480px) {
  .nav-container { padding: 0 0.75rem; height: 64px; gap: 1rem; }
  .logo-title { font-size: 18px; }
  .logo-tagline { font-size: 7px; }
  .logo-img { height: 50px; }
  .hamburger { width: 32px; height: 32px; gap: 4px; }
  .hamburger span { width: 18px; height: 1.5px; }

  /* SERVICES INFINITE LOOP — transform-based, no scrollTop conflicts */
  .services-loop-viewport {
    height: auto !important;
    overflow: visible !important;
    position: relative;
    margin: 1.5rem 0;
    mask-image: none !important;
    -webkit-mask-image: none !important;
    border-radius: 16px;
    background: transparent;
  }

  .services-loop-track {
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 0.75rem !important;
    padding: 10px 0;
    will-change: auto;
  }

  .services-loop-track .service-card {
    margin-bottom: 0 !important;
    flex-shrink: 0;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}

/* ═══════════════════════════════════════════════════════════
   FROSTED SIDE PANEL — Option 3 Mobile Drawer
   Replaces .mobile-menu; injected by navbar.js
═══════════════════════════════════════════════════════════ */

/* Prevent body scroll when drawer is open */
body.fp-open { overflow: hidden; }

/* ── Dim overlay ── */
.fp-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(78, 46, 74, 0.45);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: 1100;
  opacity: 0;
  transition: opacity 0.38s ease;
}
.fp-overlay.open {
  display: block;
  opacity: 1;
}

/* ── Drawer panel ── */
.fp-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(80vw, 300px);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(28px) saturate(1.6);
  -webkit-backdrop-filter: blur(28px) saturate(1.6);
  border-right: 1px solid rgba(180, 127, 166, 0.22);
  box-shadow: 6px 0 40px rgba(122, 79, 114, 0.18);
  z-index: 1200;
  display: flex;
  flex-direction: column;
  padding: 0 0 env(safe-area-inset-bottom, 20px);
  transform: translateX(-105%);
  transition: transform 0.42s cubic-bezier(0.23, 1, 0.32, 1);
  will-change: transform;
  /* hidden on desktop */
  visibility: hidden;
  pointer-events: none;
}
.fp-drawer.open {
  transform: translateX(0);
  visibility: visible;
  pointer-events: all;
}

/* Show only on mobile */
@media (min-width: 769px) {
  .fp-overlay,
  .fp-drawer { display: none !important; }
}

/* ── Profile header ── */
.fp-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 18px 16px;
  border-bottom: 1px solid rgba(180, 127, 166, 0.15);
}

.fp-avatar {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--primary-mauve, #B47FA6), var(--gold, #D4A853));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(122, 79, 114, 0.28);
}

.fp-profile-text { flex: 1; min-width: 0; }

.fp-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--darkest-mauve, #4E2E4A);
  line-height: 1.2;
}
.fp-sub {
  font-size: 10px;
  color: var(--light-text, #7a6878);
  font-weight: 400;
  margin-top: 1px;
}

.fp-close {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  border: 1.5px solid rgba(180, 127, 166, 0.25);
  background: rgba(239, 227, 234, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.fp-close:hover {
  background: var(--light-mauve, #DCC5D5);
  border-color: var(--primary-mauve, #B47FA6);
  transform: rotate(90deg);
}
.fp-close svg {
  width: 14px;
  height: 14px;
  color: var(--deep-mauve, #7A4F72);
  stroke: currentColor;
}

/* ── Navigation links ── */
.fp-nav {
  flex: 1;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow-y: auto;
}

.fp-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 12px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  color: var(--dark-text, #2d2430);
  transition: background 0.22s ease, color 0.22s ease, padding-left 0.22s ease;
  position: relative;
}

.fp-link:hover {
  background: rgba(239, 227, 234, 0.7);
  color: var(--deep-mauve, #7A4F72);
  padding-left: 16px;
}

.fp-link.active {
  background: linear-gradient(135deg, rgba(180, 127, 166, 0.14), rgba(212, 168, 83, 0.1));
  color: var(--deep-mauve, #7A4F72);
  font-weight: 600;
}
.fp-link.active .fp-link-dot {
  background: var(--gold, #D4A853);
  transform: scale(1.3);
}

.fp-link-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary-mauve, #B47FA6);
  flex-shrink: 0;
  transition: background 0.2s, transform 0.2s;
}

.fp-link-label { flex: 1; }

.fp-link-arrow {
  width: 14px;
  height: 14px;
  color: var(--light-mauve, #DCC5D5);
  flex-shrink: 0;
  transition: color 0.2s, transform 0.2s;
  stroke: currentColor;
}
.fp-link:hover .fp-link-arrow {
  color: var(--primary-mauve, #B47FA6);
  transform: translateX(3px);
}

/* ── Contact pills ── */
.fp-contact {
  display: flex;
  gap: 8px;
  padding: 0 14px 14px;
}

.fp-contact-pill {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 8px;
  border-radius: 12px;
  border: 1.5px solid rgba(180, 127, 166, 0.3);
  background: rgba(239, 227, 234, 0.4);
  text-decoration: none;
  color: var(--deep-mauve, #7A4F72);
  font-size: 11px;
  font-weight: 600;
  transition: background 0.22s, border-color 0.22s, transform 0.22s;
}
.fp-contact-pill:hover {
  background: rgba(220, 197, 213, 0.6);
  border-color: var(--primary-mauve, #B47FA6);
  transform: translateY(-1px);
}
.fp-contact-pill svg {
  width: 13px;
  height: 13px;
  stroke: currentColor;
  flex-shrink: 0;
}

.fp-contact-pill--gold {
  border-color: rgba(212, 168, 83, 0.4);
  background: rgba(240, 208, 138, 0.18);
  color: var(--gold-dark, #A07830);
}
.fp-contact-pill--gold:hover {
  background: rgba(212, 168, 83, 0.25);
  border-color: var(--gold, #D4A853);
}

/* ── Book CTA button ── */
.fp-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 14px 12px;
  padding: 13px 20px;
  border-radius: 16px;
  border: none;
  background: linear-gradient(135deg, var(--darkest-mauve, #4E2E4A) 0%, var(--primary-mauve, #B47FA6) 60%, rgba(212, 168, 83, 0.65) 100%);
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(122, 79, 114, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.fp-cta::before {
  content: '';
  position: absolute;
  top: 0; left: -100%; width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
}
.fp-cta:hover::before { left: 150%; }
.fp-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(122, 79, 114, 0.45);
}
.fp-cta svg {
  width: 15px;
  height: 15px;
  stroke: rgba(255,255,255,0.85);
  transition: transform 0.25s ease;
}
.fp-cta:hover svg { transform: translateX(3px); }

/* ── Footer strip ── */
.fp-footer {
  padding: 10px 18px 14px;
  border-top: 1px solid rgba(180, 127, 166, 0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.fp-footer-text {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--light-text, #7a6878);
  opacity: 0.7;
}
.fp-footer-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-mauve, #B47FA6), var(--gold, #D4A853));
  animation: fpDotPulse 2.5s ease-in-out infinite;
}
@keyframes fpDotPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%       { transform: scale(1.4); opacity: 0.6; }
}

/* ── Staggered link animation on open ── */
.fp-drawer.open .fp-link {
  animation: fpLinkIn 0.45s cubic-bezier(0.23, 1, 0.32, 1) both;
}
.fp-drawer.open .fp-link:nth-child(1) { animation-delay: 0.06s; }
.fp-drawer.open .fp-link:nth-child(2) { animation-delay: 0.10s; }
.fp-drawer.open .fp-link:nth-child(3) { animation-delay: 0.14s; }
.fp-drawer.open .fp-link:nth-child(4) { animation-delay: 0.18s; }
.fp-drawer.open .fp-link:nth-child(5) { animation-delay: 0.22s; }

@keyframes fpLinkIn {
  from { opacity: 0; transform: translateX(-16px); }
  to   { opacity: 1; transform: translateX(0); }
}

.fp-drawer.open .fp-profile { animation: fpLinkIn 0.4s cubic-bezier(0.23,1,0.32,1) 0.02s both; }
.fp-drawer.open .fp-contact { animation: fpLinkIn 0.4s cubic-bezier(0.23,1,0.32,1) 0.26s both; }
.fp-drawer.open .fp-cta     { animation: fpLinkIn 0.4s cubic-bezier(0.23,1,0.32,1) 0.30s both; }
.fp-drawer.open .fp-footer  { animation: fpLinkIn 0.4s cubic-bezier(0.23,1,0.32,1) 0.34s both; }

/* ── FLOATING ISLAND NAVBAR (DESKTOP) ── */
/* Required for the blend effect on overlapping geometric shapes */
.mix-multiply { 
  mix-blend-mode: multiply; 
}

/* Required for Material Icons inside the hero badge */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}
