/* ============================================
   S.P. Garment — Main Stylesheet
   Design System: Glass-morphism, Rose/Gold/Purple
   Upgrades: Smooth Mobile Animations, Fast Loading,
   Staggered Reveals & Micro-interactions
   ============================================ */

/* ─── CSS Variables ─── */
:root {
  --rose: #e91e8c;
  --pink: #ff6eb4;
  --purple: #7c3aed;
  --gold: #f59e0b;
  --cream: #fff8f3;
  --dark: #07070a;
  --surface: #17151f;
  --text: #e8e2f0;
  --muted: #9992ac;
  --green: #22c55e;
  --red: #ef4444;
  --glass: #201d2c;
  --glass-border: rgba(255, 255, 255, 0.22);
  --font-heading: "Playfair Display", serif;
  --font-body: "Nunito", sans-serif;
  --font-sinhala: "Noto Sans Sinhala", sans-serif;
}

/* ─── Reset & Base ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: var(--font-body);
  background: var(--dark);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  opacity: 0;
  animation: pageLoad 0.5s ease-out 0.05s forwards;
}

@keyframes pageLoad {
  to { opacity: 1; }
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
  touch-action: manipulation;
}
ul { list-style: none; }

/* ─── Typography ─── */
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 700; line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 3vw, 1.6rem); }
.si { font-family: var(--font-sinhala); }

/* ─── Particle Canvas ─── */
#particles {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
  transform: translateZ(0);
}

/* ─── Cursor Glow (desktop) ─── */
.cursor-glow {
  position: fixed;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(233,30,140,0.12) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s;
  opacity: 0;
}
@media (pointer: fine) { .cursor-glow { opacity: 1; } }

/* ─── Layout ─── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 2;
}
.section { padding: 5rem 0; position: relative; }
.section-title {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}
.section-title h2 {
  background: linear-gradient(135deg, var(--rose), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-title p { color: var(--muted); margin-top: 0.5rem; font-size: 1.1rem; }

/* ─── Glass Card ─── */
.glass-card {
  background: var(--glass);
  border: 1.5px solid var(--glass-border);
  border-radius: 20px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
              border-color 0.3s ease,
              box-shadow 0.4s ease;
}
.glass-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--rose), var(--gold));
  transform: scaleX(0);
  transition: transform 0.4s ease;
  border-radius: 20px 20px 0 0;
}
.glass-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 20px 40px rgba(233, 30, 140, 0.15), 0 0 60px rgba(233, 30, 140, 0.05);
}
.glass-card:hover::before { transform: scaleX(1); }

/* ─── Buttons & Micro-interactions ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  font-family: var(--font-body);
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  touch-action: manipulation;
  user-select: none;
}
/* Button Ripple Effect */
.btn::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 0; height: 0;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease, opacity 0.6s ease;
  opacity: 0;
  pointer-events: none;
}
.btn:active::after {
  width: 320px;
  height: 320px;
  opacity: 1;
  transition: 0s;
}

.btn-primary {
  background: linear-gradient(135deg, var(--rose), var(--purple));
  color: white;
  box-shadow: 0 4px 15px rgba(233, 30, 140, 0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(233, 30, 140, 0.45);
}
.btn-secondary {
  background: transparent;
  border: 2px solid var(--glass-border);
  color: var(--text);
}
.btn-secondary:hover {
  border-color: var(--rose);
  color: var(--rose);
  transform: translateY(-2px);
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold), #fbbf24);
  color: var(--dark);
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.25);
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4);
}

/* ─── Header / Nav ─── */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(7, 7, 10, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  transition: all 0.3s ease;
}
.header.scrolled {
  background: rgba(7, 7, 10, 0.96);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--rose), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
}
.logo span { font-weight: 400; font-size: 0.9rem; display: block; color: var(--muted); -webkit-text-fill-color: var(--muted); }
.nav-desktop { display: flex; gap: 1.8rem; align-items: center; }
.nav-desktop a {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.3s;
  position: relative;
}
.nav-desktop a:hover, .nav-desktop a.active { color: var(--text); }
.nav-desktop a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: linear-gradient(90deg, var(--rose), var(--gold));
  transition: width 0.3s ease;
}
.nav-desktop a:hover::after, .nav-desktop a.active::after { width: 100%; }
.nav-desktop .search-icon {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
}
.nav-desktop .search-icon:hover { border-color: var(--rose); color: var(--rose); transform: scale(1.05); }

/* Dropdown (Desktop Upgrades) */
.dropdown { position: relative; }
.dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
  color: var(--muted);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.3s;
}
.dropdown:hover .dropdown-toggle,
.dropdown-toggle.active { color: var(--text); }
.dropdown-menu {
  position: absolute;
  top: 100%; left: 50%;
  transform: translateX(-50%) translateY(15px) scale(0.95);
  transform-origin: top center;
  background: var(--surface);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  padding: 0.5rem 0;
  min-width: 230px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 15px 35px rgba(0,0,0,0.45), 0 0 20px rgba(233,30,140,0.06);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(4px) scale(1);
}
.dropdown-menu a {
  display: block;
  padding: 0.75rem 1.3rem;
  color: var(--muted);
  font-size: 0.9rem;
  transition: all 0.2s;
  white-space: nowrap;
}
.dropdown-menu a:hover {
  color: var(--text);
  background: rgba(233, 30, 140, 0.12);
  padding-left: 1.5rem;
}

/* ─── Mobile Menu (Staggered Slide-in Upgrades) ─── */
.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  z-index: 101;
  width: 40px;
  height: 40px;
  padding: 8px;
  border-radius: 8px;
  touch-action: manipulation;
}
.mobile-toggle:active {
  background: rgba(255, 255, 255, 0.1);
}
.mobile-toggle span {
  width: 24px; height: 2px;
  background: var(--text);
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.2s ease;
  border-radius: 2px;
  transform-origin: center;
}
.mobile-toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.mobile-toggle.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.mobile-toggle.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.mobile-nav {
  position: fixed;
  top: 70px; left: 0; right: 0; bottom: 0;
  background: rgba(7, 7, 10, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 99;
  padding: 1.5rem 2rem calc(6rem + env(safe-area-inset-bottom));
  transform: translate3d(100%, 0, 0);
  transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
.mobile-nav.active {
  transform: translate3d(0, 0, 0);
}

.mobile-nav a {
  display: block;
  padding: 0.9rem 0;
  font-size: 1.15rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.mobile-nav a:hover,
.mobile-nav a:active {
  color: var(--rose);
}
.mobile-nav.active a {
  opacity: 1;
  transform: translateX(0);
}
/* Stagger the mobile links */
.mobile-nav.active a:nth-child(1) { transition-delay: 0.05s; }
.mobile-nav.active a:nth-child(2) { transition-delay: 0.09s; }
.mobile-nav.active a:nth-child(3) { transition-delay: 0.13s; }
.mobile-nav.active a:nth-child(4) { transition-delay: 0.17s; }
.mobile-nav.active a:nth-child(5) { transition-delay: 0.21s; }
.mobile-nav.active a:nth-child(6) { transition-delay: 0.25s; }
.mobile-nav.active a:nth-child(7) { transition-delay: 0.29s; }
.mobile-nav.active a:nth-child(8) { transition-delay: 0.33s; }
.mobile-nav.active a:nth-child(9) { transition-delay: 0.37s; }
.mobile-nav.active a:nth-child(10) { transition-delay: 0.41s; }
.mobile-nav.active a:nth-child(11) { transition-delay: 0.45s; }
.mobile-nav.active a:nth-child(12) { transition-delay: 0.49s; }

.mobile-nav .mobile-dropdown {
  padding-left: 1rem;
  border-left: 2px solid rgba(233, 30, 140, 0.3);
  margin: 0.4rem 0;
}
.mobile-nav .mobile-dropdown a {
  font-size: 0.95rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

@media (max-width: 900px) {
  .nav-desktop { display: none; }
  .mobile-toggle { display: flex; }
}

/* ─── Hero ─── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 70px;
}
.hero-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
  background-size: cover;
  background-position: center;
}
.hero-slide.active { opacity: 1; }
.hero-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(7,7,10,0.6) 0%, rgba(7,7,10,0.85) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  padding: 2rem;
}
.hero-logo {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 900;
  background: linear-gradient(135deg, var(--rose), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
  animation: logoPop 0.9s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@keyframes logoPop {
  0% { transform: scale(0.85); opacity: 0; }
  60% { transform: scale(1.03); }
  100% { transform: scale(1); opacity: 1; }
}
.hero-tagline {
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  color: var(--muted);
  margin-bottom: 2rem;
  animation: fadeUp 0.8s ease-out 0.2s both;
}
.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeUp 0.8s ease-out 0.4s both;
}

/* ─── Service Message Banner ─── */
.service-msg {
  background: linear-gradient(135deg, rgba(233,30,140,0.08), rgba(124,58,237,0.08));
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 2.5rem;
  text-align: center;
  margin: 3rem auto;
  max-width: 900px;
  position: relative;
  overflow: hidden;
}
.service-msg::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--rose), var(--gold));
}
.sm-head {
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1rem;
}
.service-msg p { color: var(--muted); font-size: 1.05rem; max-width: 700px; margin: 0 auto 1rem; }
.sm-short {
  font-weight: 600;
  color: var(--gold);
  font-size: 0.95rem;
  letter-spacing: 1px;
}

/* ─── Staggered Grid Reveals (Upgrades) ─── */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
  will-change: transform, opacity;
}
.reveal-stagger.visible > * {
  opacity: 1;
  transform: translateY(0);
}
/* Cascade delays for children */
.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 0.12s; }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 0.19s; }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 0.26s; }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: 0.33s; }
.reveal-stagger.visible > *:nth-child(6) { transition-delay: 0.40s; }
.reveal-stagger.visible > *:nth-child(7) { transition-delay: 0.47s; }
.reveal-stagger.visible > *:nth-child(8) { transition-delay: 0.54s; }

/* ─── Service Cards Grid ─── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.svc-card {
  composes: glass-card;
  text-align: center;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
              border-color 0.3s ease, 
              box-shadow 0.4s ease;
}
.svc-card .svc-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}
.svc-card h3 {
  margin-bottom: 0.5rem;
  color: var(--text);
}
.svc-card p {
  color: var(--muted);
  font-size: 0.95rem;
  flex: 1;
}
.svc-card .svc-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 1.5rem;
  color: var(--rose);
  font-weight: 600;
  font-size: 0.9rem;
  transition: gap 0.3s;
}
.svc-card:hover .svc-link { gap: 0.6rem; }

/* ─── Category Page ─── */
.breadcrumb {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}
.breadcrumb a:hover { color: var(--rose); }
.breadcrumb .sep { opacity: 0.5; }

.cat-header {
  text-align: center;
  margin-bottom: 3rem;
}
.cat-header .cat-icon { font-size: 3rem; margin-bottom: 1rem; }
.cat-header h1 { margin-bottom: 1rem; }
.cat-header p { color: var(--muted); max-width: 600px; margin: 0 auto; font-size: 1.1rem; }

.subcategory-block {
  margin-bottom: 1.5rem;
}
.subcategory-block summary {
  cursor: pointer;
  padding: 1.5rem;
  background: var(--glass);
  border: 1.5px solid var(--glass-border);
  border-radius: 16px;
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  list-style: none;
  position: relative;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.subcategory-block summary:hover {
  border-color: rgba(255,255,255,0.4);
  transform: translateY(-2px);
}
.subcategory-block summary::-webkit-details-marker { display: none; }
.subcategory-block summary::after {
  content: '+';
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: var(--rose);
  transition: transform 0.3s;
}
.subcategory-block[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.subcategory-block[open] summary { border-radius: 16px 16px 0 0; border-bottom: none; }
.subcategory-content {
  background: var(--glass);
  border: 1.5px solid var(--glass-border);
  border-top: none;
  border-radius: 0 0 16px 16px;
  padding: 1.5rem;
}
.subcategory-content p { color: var(--muted); margin-bottom: 1rem; }
.item-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.item-chip {
  background: rgba(233, 30, 140, 0.1);
  border: 1px solid rgba(233, 30, 140, 0.2);
  color: var(--text);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.9rem;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.item-chip:hover {
  background: rgba(233, 30, 140, 0.22);
  border-color: var(--rose);
  transform: translateY(-2px);
}

/* CTA Banner */
.cta-banner {
  background: linear-gradient(135deg, rgba(233,30,140,0.1), rgba(124,58,237,0.1));
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 3rem 2rem;
  text-align: center;
  margin-top: 3rem;
}
.cta-banner h3 { margin-bottom: 1rem; }
.cta-banner p { color: var(--muted); margin-bottom: 1.5rem; }

/* ─── Gallery ─── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
}
.gallery-item {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 1;
  border: 1px solid var(--glass-border);
  background: var(--surface);
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item .gallery-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 1rem;
  background: linear-gradient(to top, rgba(7,7,10,0.9), transparent);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}
.gallery-item:hover .gallery-caption { transform: translateY(0); }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(7, 7, 10, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}
.lightbox.active { opacity: 1; visibility: visible; }
.lightbox img {
  max-width: 90%;
  max-height: 85vh;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.lightbox-close {
  position: absolute;
  top: 2rem; right: 2rem;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.3s;
}
.lightbox-close:hover { background: var(--rose); border-color: var(--rose); }
.lightbox-caption {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

/* ─── Hours ─── */
.hours-card {
  max-width: 500px;
  margin: 0 auto;
}
.hours-row {
  display: flex;
  justify-content: space-between;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--glass-border);
  color: var(--muted);
}
.hours-row:last-child { border-bottom: none; }
.hours-row .day { font-weight: 600; color: var(--text); }
.hours-row .time { font-family: monospace; }
.hours-row.today { color: var(--rose); }
.hours-row.today .day { color: var(--rose); }
.open-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}
.open-badge.open { background: rgba(34, 197, 94, 0.15); color: var(--green); border: 1px solid rgba(34, 197, 94, 0.3); }
.open-badge.closed { background: rgba(239, 68, 68, 0.15); color: var(--red); border: 1px solid rgba(239, 68, 68, 0.3); }
.open-badge::before {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: currentColor;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ─── Location ─── */
.location-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: stretch;
}
@media (max-width: 768px) { .location-grid { grid-template-columns: 1fr; } }
.map-container {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  height: 100%;
  min-height: 300px;
  background: var(--surface);
}
.map-container iframe { width: 100%; height: 100%; min-height: 300px; border: none; }

/* ─── Contact Cards ─── */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}
.contact-card {
  text-align: center;
  padding: 2rem 1.5rem;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
              border-color 0.3s ease, 
              box-shadow 0.4s ease;
}
.contact-card .cc-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(233,30,140,0.15), rgba(124,58,237,0.15));
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.5rem;
}
.contact-card h4 { margin-bottom: 0.3rem; }
.contact-card p { color: var(--muted); font-size: 0.9rem; }
.contact-card a { color: var(--rose); font-weight: 600; }

/* ─── Enquiry Form ─── */
.enquiry-form { max-width: 600px; margin: 0 auto; }
.form-group { margin-bottom: 1.5rem; }
.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
}
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 0.9rem 1.2rem;
  background: var(--surface);
  border: 1.5px solid var(--glass-border);
  border-radius: 12px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: all 0.3s;
  outline: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--rose);
  box-shadow: 0 0 0 3px rgba(233, 30, 140, 0.15);
}
.form-select option, .form-select optgroup { background: var(--surface); color: var(--text); }
.form-textarea { min-height: 120px; resize: vertical; }

/* ─── Search Page ─── */
.search-hero {
  padding: 8rem 0 3rem;
  text-align: center;
}
.search-box {
  max-width: 600px;
  margin: 2rem auto 0;
  position: relative;
}
.search-box input {
  width: 100%;
  padding: 1.2rem 1.5rem 1.2rem 3.5rem;
  background: var(--glass);
  border: 1.5px solid var(--glass-border);
  border-radius: 50px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.1rem;
  outline: none;
  transition: all 0.3s;
}
.search-box input:focus { border-color: var(--rose); box-shadow: 0 0 0 4px rgba(233, 30, 140, 0.15); }
.search-box .search-icon-box {
  position: absolute;
  left: 1.2rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 1.2rem;
}
.search-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 1.5rem;
}
.search-suggestions span { color: var(--muted); font-size: 0.9rem; }
.suggestion-chip {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  color: var(--muted);
  padding: 0.3rem 0.9rem;
  border-radius: 50px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.suggestion-chip:hover {
  border-color: var(--rose);
  color: var(--rose);
  transform: translateY(-2px);
}

.search-results { min-height: 300px; }
.result-group { margin-bottom: 2rem; }
.result-group h3 {
  color: var(--rose);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--glass-border);
}
.result-item {
  background: var(--glass);
  border: 1.5px solid var(--glass-border);
  border-radius: 12px;
  padding: 1.2rem;
  margin-bottom: 0.8rem;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
              border-color 0.3s ease, 
              box-shadow 0.4s ease;
}
.result-item:hover {
  border-color: rgba(255,255,255,0.4);
  transform: translateX(6px);
}
.result-item .ri-sub { color: var(--gold); font-weight: 600; font-size: 0.9rem; margin-bottom: 0.3rem; }
.result-item .ri-items { color: var(--muted); font-size: 0.9rem; }
.result-item a { color: var(--rose); font-weight: 600; font-size: 0.9rem; margin-top: 0.5rem; display: inline-block; }
.no-results {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--muted);
}
.no-results h3 { color: var(--text); margin-bottom: 0.5rem; }

/* ─── Footer ─── */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--glass-border);
  padding: 3.5rem 0 1.5rem;
  position: relative;
  z-index: 2;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-col h4 { margin-bottom: 1rem; color: var(--text); }
.footer-col a {
  display: block;
  color: var(--muted);
  padding: 0.35rem 0;
  font-size: 0.95rem;
  transition: color 0.3s, transform 0.2s;
}
.footer-col a:hover {
  color: var(--rose);
  transform: translateX(4px);
}
.footer-col p { color: var(--muted); font-size: 0.9rem; margin-bottom: 0.4rem; }
.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--glass-border);
  color: var(--muted);
  font-size: 0.85rem;
}

/* ─── Sticky Mobile Action Bar ─── */
.mobile-actions {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(7, 7, 10, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--glass-border);
  display: none;
  padding: 0.5rem 0.5rem max(0.5rem, env(safe-area-inset-bottom));
  gap: 0.5rem;
  justify-content: space-around;
}
.mobile-actions a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  color: var(--muted);
  font-size: 0.72rem;
  padding: 0.4rem;
  flex: 1;
  border-radius: 10px;
  transition: all 0.3s;
}
.mobile-actions a .ma-icon { font-size: 1.2rem; }
.mobile-actions a:hover,
.mobile-actions a:active {
  color: var(--rose);
  background: rgba(233,30,140,0.12);
}
@media (max-width: 768px) {
  .mobile-actions { display: flex; }
  body { padding-bottom: 70px; }
}

/* ─── Scroll Reveal Animation ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Admin Panel Styles ─── */
.admin-body { background: var(--surface); }
.admin-login {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.admin-card {
  background: var(--glass);
  border: 1.5px solid var(--glass-border);
  border-radius: 20px;
  padding: 2.5rem;
  width: 100%;
  max-width: 420px;
}
.admin-card h2 { text-align: center; margin-bottom: 1.5rem; }
.admin-dashboard { display: none; padding: 2rem; max-width: 1200px; margin: 0 auto; }
.admin-dashboard.active { display: block; }
.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--glass-border);
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}
.stat-card {
  background: var(--glass);
  border: 1.5px solid var(--glass-border);
  border-radius: 16px;
  padding: 1.5rem;
  text-align: center;
}
.stat-card .stat-value {
  font-size: 2rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--rose), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-card .stat-label { color: var(--muted); font-size: 0.9rem; margin-top: 0.3rem; }
.admin-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}
.admin-table th, .admin-table td {
  padding: 0.8rem;
  text-align: left;
  border-bottom: 1px solid var(--glass-border);
  font-size: 0.9rem;
}
.admin-table th { color: var(--muted); font-weight: 600; }
.admin-table td { color: var(--text); }
.admin-table tr:hover td { background: rgba(255,255,255,0.02); }
.admin-section {
  background: var(--glass);
  border: 1.5px solid var(--glass-border);
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.admin-section h3 { margin-bottom: 1rem; }
.admin-btn {
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  border: none;
  background: var(--rose);
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  font-family: var(--font-body);
}
.admin-btn:hover { opacity: 0.9; transform: translateY(-1px); }
.admin-btn.secondary { background: var(--glass); border: 1px solid var(--glass-border); color: var(--text); }
.admin-btn.danger { background: rgba(244, 67, 54, 0.85); color: #fff; }
.admin-btn.danger:hover { background: #f44336; }
.admin-btn.sm { padding: 0.35rem 0.7rem; font-size: 0.8rem; }

.admin-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}
.admin-gallery-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, transform 0.2s;
}
.admin-gallery-card:hover {
  border-color: rgba(233, 30, 140, 0.4);
  transform: translateY(-2px);
}
.admin-gallery-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  background: var(--surface);
  border-bottom: 1px solid var(--glass-border);
}
.admin-gallery-card-body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex: 1;
}
.admin-gallery-card-actions {
  display: flex;
  gap: 0.4rem;
  margin-top: auto;
  padding-top: 0.6rem;
  border-top: 1px solid var(--glass-border);
  justify-content: flex-end;
}
.admin-toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--surface);
  color: #fff;
  border: 1px solid var(--rose);
  padding: 0.8rem 1.4rem;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  font-weight: 600;
  z-index: 9999;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.admin-toast.show {
  transform: translateY(0);
  opacity: 1;
}

.password-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}
.password-input-wrapper input {
  padding-right: 2.75rem !important;
  width: 100%;
}
.password-toggle-btn {
  position: absolute;
  right: 0.6rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 0.3rem 0.5rem;
  font-size: 1rem;
  line-height: 1;
  transition: color 0.2s;
  user-select: none;
}
.password-toggle-btn:hover {
  color: var(--text);
}
.admin-lockout-banner {
  background: rgba(244, 67, 54, 0.12);
  border: 1px solid rgba(244, 67, 54, 0.4);
  color: #ff8080;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.85rem;
  margin-top: 1rem;
  text-align: center;
  display: none;
}

/* ─── R2 Upload Dropzone & Media Library ─── */
.r2-dropzone {
  border: 2px dashed var(--glass-border);
  border-radius: 12px;
  padding: 2rem 1.5rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.02);
  transition: all 0.25s ease;
  cursor: pointer;
}
.r2-dropzone:hover, .r2-dropzone.dragover {
  border-color: var(--rose);
  background: rgba(233, 30, 140, 0.06);
}
.r2-dropzone input[type="file"] {
  display: none;
}
.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}
.media-card {
  background: var(--surface);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.media-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  background: #111;
}
.media-card-body {
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}
.worker-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  font-weight: 600;
  border: 1px solid transparent;
}
.worker-badge.connected {
  background: rgba(76, 175, 80, 0.15);
  color: #81c784;
  border-color: rgba(76, 175, 80, 0.3);
}
.worker-badge.offline {
  background: rgba(255, 152, 0, 0.15);
  color: #ffb74d;
  border-color: rgba(255, 152, 0, 0.3);
}


/* ─── Responsive ─── */
@media (max-width: 768px) {
  .section { padding: 3rem 0; }
  .hero-content { padding: 1rem; }
  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .contact-grid { grid-template-columns: 1fr; }
  .btn { padding: 0.8rem 1.5rem; font-size: 0.9rem; }
}

/* ─── Accessibility: Reduced Motion ─── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  body { opacity: 1 !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .reveal-stagger > * { opacity: 1 !important; transform: none !important; }
  .mobile-nav a { opacity: 1 !important; transform: none !important; }
}
