/* ============================================================
   LandPage Elite - Custom Styles
   Complements TailwindCSS for animations, polish, and effects
   ============================================================ */

/* ----------------------------------------------------------
   Base & Reset
   ---------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
}

::selection {
  background-color: var(--primary-500, #6366f1);
  color: #ffffff;
}

/* ----------------------------------------------------------
   Scrollbar Styling
   ---------------------------------------------------------- */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #94a3b8;
  border-radius: 4px;
}

html.dark ::-webkit-scrollbar-thumb {
  background: #475569;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-500, #6366f1);
}

/* ----------------------------------------------------------
   Header
   ---------------------------------------------------------- */
#header {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: var(--header-bg-light, rgba(255,255,255,0.8));
  color: var(--header-text-light, #1e293b);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

html.dark #header {
  background: var(--header-bg-dark, rgba(15,23,42,0.85));
  color: var(--header-text-dark, #cbd5e1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

#header.header-shrink {
  padding-top: 0;
  padding-bottom: 0;
}

#header.header-shrink .header-inner {
  height: 56px;
}

.header-inner {
  height: 72px;
  transition: height 0.3s ease;
}

/* Nav links */
.nav-link {
  position: relative;
  padding: 0.25rem 0;
  font-size: 0.875rem;
  font-weight: 500;
  color: inherit;
  opacity: 0.75;
  transition: color 0.2s ease, opacity 0.2s ease;
}

html.dark .nav-link {
  color: inherit;
  opacity: 0.75;
}

.nav-link:hover {
  color: var(--primary-500, #6366f1);
  opacity: 1;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-500, #6366f1);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* CTA Button */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1.5rem;
  background: linear-gradient(135deg, var(--primary-500, #6366f1), var(--primary-600, #4f46e5));
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 1px 3px rgba(99, 102, 241, 0.3);
  cursor: pointer;
  border: none;
  text-decoration: none;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
  background: linear-gradient(135deg, var(--primary-400, #818cf8), var(--primary-500, #6366f1));
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1.5rem;
  background: transparent;
  color: var(--primary-500, #6366f1);
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 0.5rem;
  border: 1.5px solid var(--primary-500, #6366f1);
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
}

.btn-secondary:hover {
  background: rgba(99, 102, 241, 0.08);
  transform: translateY(-1px);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 280px;
  max-width: 80vw;
  background: #ffffff;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 60;
  padding: 5rem 2rem 2rem;
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.1);
}

html.dark .mobile-menu {
  background: #1e293b;
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.4);
}

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

.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
  z-index: 55;
}

.mobile-menu-overlay.open {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-link {
  display: block;
  padding: 0.75rem 0;
  font-size: 1.125rem;
  font-weight: 500;
  color: #334155;
  border-bottom: 1px solid #e2e8f0;
  transition: color 0.2s ease;
}

html.dark .mobile-nav-link {
  color: #cbd5e1;
  border-bottom-color: #334155;
}

.mobile-nav-link:hover {
  color: var(--primary-500, #6366f1);
}

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 24px;
  height: 24px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Dark/Light Mode Toggle */
.theme-toggle {
  position: relative;
  width: 48px;
  height: 26px;
  border-radius: 13px;
  background: #e2e8f0;
  border: none;
  cursor: pointer;
  transition: background 0.3s ease;
  padding: 0;
  flex-shrink: 0;
}

html.dark .theme-toggle {
  background: #334155;
}

.theme-toggle-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
}

html.dark .theme-toggle-knob {
  transform: translateX(22px);
  background: var(--primary-500, #6366f1);
}

.theme-toggle-icon {
  width: 12px;
  height: 12px;
  fill: #f59e0b;
  transition: fill 0.3s ease;
}

html.dark .theme-toggle-icon {
  fill: #ffffff;
}


/* ----------------------------------------------------------
   Hero - Text Reveal Animation
   ---------------------------------------------------------- */
.hero-text-reveal {
  position: relative;
  overflow: hidden;
}

.hero-headline {
  font-size: clamp(2.5rem, 8vw, 6rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.hero-word-container {
  display: block;
  position: relative;
  overflow: hidden;
}

.hero-word {
  display: inline-block;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Center animation */
.hero-word-enter-center {
  opacity: 0;
  transform: scale(0.8);
}
.hero-word-active-center {
  opacity: 1;
  transform: scale(1);
}
.hero-word-exit-center {
  opacity: 0;
  transform: scale(1.1);
}

/* Left animation (slide left: enter from right, exit to left) */
.hero-word-enter-left,
.hero-word-enter-lateral {
  opacity: 0;
  transform: translateX(40px);
}
.hero-word-active-left,
.hero-word-active-lateral {
  opacity: 1;
  transform: translateX(0);
}
.hero-word-exit-left,
.hero-word-exit-lateral {
  opacity: 0;
  transform: translateX(-40px);
}

/* Right animation (slide right: enter from left, exit to right) */
.hero-word-enter-right {
  opacity: 0;
  transform: translateX(-40px);
}
.hero-word-active-right {
  opacity: 1;
  transform: translateX(0);
}
.hero-word-exit-right {
  opacity: 0;
  transform: translateX(40px);
}

/* Up animation (slide up: enter from below, exit upward) */
.hero-word-enter-up {
  opacity: 0;
  transform: translateY(30px);
}
.hero-word-active-up {
  opacity: 1;
  transform: translateY(0);
}
.hero-word-exit-up {
  opacity: 0;
  transform: translateY(-30px);
}

/* Down animation (slide down: enter from above, exit downward) */
.hero-word-enter-down {
  opacity: 0;
  transform: translateY(-30px);
}
.hero-word-active-down {
  opacity: 1;
  transform: translateY(0);
}
.hero-word-exit-down {
  opacity: 0;
  transform: translateY(30px);
}

/* Diagonal animation */
.hero-word-enter-diagonal {
  opacity: 0;
  transform: translate(30px, 20px) rotate(2deg);
}
.hero-word-active-diagonal {
  opacity: 1;
  transform: translate(0, 0) rotate(0deg);
}
.hero-word-exit-diagonal {
  opacity: 0;
  transform: translate(-30px, -20px) rotate(-2deg);
}

/* ----------------------------------------------------------
   Hero - Featured Mode (Two-Column)
   ---------------------------------------------------------- */
.hero-featured-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

@media (max-width: 767px) {
  .hero-featured-layout {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

.hero-featured-text {
  display: flex;
  flex-direction: column;
}

@media (max-width: 767px) {
  .hero-featured-text {
    align-items: center;
  }
}

.hero-featured-image-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-featured-image {
  max-width: 100%;
  max-height: 400px;
  border-radius: 1rem;
  object-fit: cover;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.hero-featured-image-placeholder {
  width: 100%;
  height: 300px;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 2px dashed rgba(255, 255, 255, 0.15);
}

/* Hero CTA */
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2.5rem;
  background: linear-gradient(135deg, var(--primary-500, #6366f1), var(--primary-600, #4f46e5));
  color: #ffffff;
  font-size: 1.125rem;
  font-weight: 600;
  border-radius: 0.75rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
  text-decoration: none;
  cursor: pointer;
  border: none;
}

.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(99, 102, 241, 0.5);
}

/* Hero pulse dot */
.hero-pulse-dot {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

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

/* ----------------------------------------------------------
   Hero - Rolling Background
   ---------------------------------------------------------- */
.hero-rolling-bg {
  position: absolute;
  inset: 0;
}

.hero-rolling-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}

.hero-rolling-slide.active {
  opacity: 1;
}

.hero-rolling-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(15, 23, 42, 0.6), rgba(15, 23, 42, 0.8));
}

.hero-rolling-content {
  position: relative;
  z-index: 10;
  text-align: center;
  color: #ffffff;
}

/* Hero progress bar */
.hero-progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: var(--primary-500, #6366f1);
  transition: width linear;
}

/* ----------------------------------------------------------
   Section Shared Styles
   ---------------------------------------------------------- */
.section-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.section-subtitle {
  font-size: 1.125rem;
  color: #64748b;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

html.dark .section-subtitle {
  color: #94a3b8;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}


/* ----------------------------------------------------------
   Testimonials
   ---------------------------------------------------------- */
.testimonials-track {
  display: flex;
  gap: 1.5rem;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.testimonial-card {
  flex-shrink: 0;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  padding: 2rem;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

html.dark .testimonial-card {
  background: #1e293b;
  border-color: #334155;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
  border-color: var(--primary-200, #c7d2fe);
}

html.dark .testimonial-card:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
  border-color: var(--primary-600, #4f46e5);
}

.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: 0.75rem;
  right: 1.25rem;
  font-size: 4rem;
  line-height: 1;
  color: var(--primary-100, #e0e7ff);
  font-family: Georgia, serif;
  pointer-events: none;
}

html.dark .testimonial-card::before {
  color: var(--primary-900, #312e81);
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary-100, #e0e7ff);
}

html.dark .testimonial-avatar {
  border-color: var(--primary-700, #4338ca);
}

.testimonial-avatar-placeholder {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-500, #6366f1), var(--primary-600, #4f46e5));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 700;
  font-size: 1.125rem;
  flex-shrink: 0;
}

.testimonial-statement {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: #475569;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

html.dark .testimonial-statement {
  color: #94a3b8;
}

/* Carousel navigation dots */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #cbd5e1;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

html.dark .carousel-dot {
  background: #475569;
}

.carousel-dot.active {
  background: var(--primary-500, #6366f1);
  width: 24px;
  border-radius: 4px;
}

/* Carousel arrows */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  color: #334155;
}

html.dark .carousel-arrow {
  background: rgba(30, 41, 59, 0.9);
  border-color: #475569;
  color: #e2e8f0;
}

.carousel-arrow:hover {
  background: var(--primary-500, #6366f1);
  border-color: var(--primary-500, #6366f1);
  color: #ffffff;
}

.carousel-arrow-left {
  left: -20px;
}

.carousel-arrow-right {
  right: -20px;
}


/* ----------------------------------------------------------
   Products
   ---------------------------------------------------------- */
.products-carousel {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 1rem;
  scrollbar-width: none;
}

.products-carousel::-webkit-scrollbar {
  display: none;
}

.product-card {
  flex-shrink: 0;
  scroll-snap-align: start;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
}

html.dark .product-card {
  background: #1e293b;
  border-color: #334155;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
  border-color: var(--primary-300, #a5b4fc);
}

html.dark .product-card:hover {
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  border-color: var(--primary-500, #6366f1);
}

.product-card-icon {
  padding: 2rem 2rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.product-icon-wrapper {
  width: 56px;
  height: 56px;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, var(--primary-50, #eef2ff), var(--primary-100, #e0e7ff));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: all 0.3s ease;
}

html.dark .product-icon-wrapper {
  background: linear-gradient(135deg, var(--primary-900, #312e81), var(--primary-800, #3730a3));
}

.product-card:hover .product-icon-wrapper {
  background: linear-gradient(135deg, var(--primary-500, #6366f1), var(--primary-600, #4f46e5));
  transform: scale(1.05);
}

.product-card-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .product-card-image img {
  transform: scale(1.05);
}

.product-card-body {
  padding: 1.25rem 2rem 2rem;
}

.product-card-name {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.product-card-desc {
  font-size: 0.875rem;
  line-height: 1.6;
  color: #64748b;
}

html.dark .product-card-desc {
  color: #94a3b8;
}

.product-card-arrow {
  position: absolute;
  bottom: 1.25rem;
  right: 1.25rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  color: var(--primary-500, #6366f1);
}

html.dark .product-card-arrow {
  background: #334155;
}

.product-card:hover .product-card-arrow {
  background: var(--primary-500, #6366f1);
  color: #ffffff;
  transform: translateX(2px);
}

/* Products responsive card sizing */
@media (max-width: 639px) {
  .product-card {
    flex: 0 0 85% !important;
  }
}

@media (min-width: 640px) and (max-width: 1023px) {
  .product-card {
    flex: 0 0 calc(50% - 12px) !important;
  }
}


/* ----------------------------------------------------------
   Pricing
   ---------------------------------------------------------- */
.pricing-grid {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}

@media (min-width: 640px) {
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.pricing-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  padding: 2.5rem 2rem;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

html.dark .pricing-card {
  background: #1e293b;
  border-color: #334155;
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.08);
}

html.dark .pricing-card:hover {
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
}

.pricing-card.highlighted {
  border-color: var(--primary-500, #6366f1);
  border-width: 2px;
  box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.2), 0 8px 32px rgba(99, 102, 241, 0.15);
  transform: scale(1.02);
}

html.dark .pricing-card.highlighted {
  box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.3), 0 8px 32px rgba(99, 102, 241, 0.2);
}

.pricing-card.highlighted:hover {
  transform: scale(1.02) translateY(-4px);
}

.pricing-badge {
  position: absolute;
  top: 1rem;
  right: -2rem;
  background: linear-gradient(135deg, var(--primary-500, #6366f1), var(--primary-600, #4f46e5));
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 2.5rem;
  transform: rotate(45deg);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pricing-name {
  font-size: 1.125rem;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 1rem;
}

html.dark .pricing-name {
  color: #94a3b8;
}

.pricing-price {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
}

.pricing-period {
  font-size: 0.875rem;
  color: #94a3b8;
  font-weight: 400;
  margin-left: 0.25rem;
}

.pricing-ideal {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 0.25rem 0.75rem;
  background: var(--primary-50, #eef2ff);
  color: var(--primary-600, #4f46e5);
  font-size: 0.8125rem;
  font-weight: 500;
  border-radius: 1rem;
}

html.dark .pricing-ideal {
  background: var(--primary-900, #312e81);
  color: var(--primary-300, #a5b4fc);
}

.pricing-benefits {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.pricing-benefit {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9375rem;
  color: #475569;
}

html.dark .pricing-benefit {
  color: #cbd5e1;
}

.pricing-benefit-check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ecfdf5;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

html.dark .pricing-benefit-check {
  background: #064e3b;
}

.pricing-benefit-check svg {
  width: 12px;
  height: 12px;
  color: #10b981;
}


/* ----------------------------------------------------------
   Location
   ---------------------------------------------------------- */
.location-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 768px) {
  .location-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.location-map-wrapper {
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  aspect-ratio: 4/3;
  background: #f1f5f9;
}

html.dark .location-map-wrapper {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  background: #1e293b;
}

.location-map-wrapper iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.location-feature {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
}

.location-feature-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}


/* ----------------------------------------------------------
   Schedule
   ---------------------------------------------------------- */
.calendly-container {
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  min-height: 650px;
  background: #ffffff;
}

html.dark .calendly-container {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  background: #1e293b;
}

.schedule-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  text-align: center;
  background: #f8fafc;
  border: 2px dashed #e2e8f0;
  border-radius: 1rem;
  min-height: 300px;
}

html.dark .schedule-placeholder {
  background: #1e293b;
  border-color: #334155;
}

/* Schedule two-column layout */
.schedule-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

@media (max-width: 767px) {
  .schedule-two-col {
    grid-template-columns: 1fr;
  }
}

.schedule-content {
  display: flex;
  flex-direction: column;
}

/* Decorative Calendar */
.schedule-calendar {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

html.dark .schedule-calendar {
  background: #1e293b;
  border-color: #334155;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.schedule-calendar-header {
  text-align: center;
  margin-bottom: 1rem;
}

.schedule-calendar-month {
  font-size: 1.125rem;
  font-weight: 700;
  color: #1e293b;
}

html.dark .schedule-calendar-month {
  color: #f1f5f9;
}

.schedule-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.schedule-calendar-weekday {
  text-align: center;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  color: #94a3b8;
  padding: 0.375rem 0;
}

.schedule-calendar-day {
  text-align: center;
  font-size: 0.8125rem;
  color: #475569;
  padding: 0.5rem 0;
  border-radius: 50%;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

html.dark .schedule-calendar-day {
  color: #94a3b8;
}

.schedule-calendar-day.empty {
  visibility: hidden;
}

.schedule-calendar-day.today {
  background: var(--primary-500, #6366f1);
  color: #ffffff;
  font-weight: 700;
}


/* ----------------------------------------------------------
   Contact Form
   ---------------------------------------------------------- */
.contact-grid {
  display: grid;
  gap: 3rem;
}

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #334155;
}

html.dark .form-label {
  color: #e2e8f0;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 0.5rem;
  font-size: 0.9375rem;
  color: #0f172a;
  transition: all 0.2s ease;
  outline: none;
  font-family: inherit;
}

html.dark .form-input,
html.dark .form-textarea {
  background: #0f172a;
  border-color: #334155;
  color: #e2e8f0;
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--primary-500, #6366f1);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.form-feedback {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  display: none;
}

.form-feedback.success {
  display: block;
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

html.dark .form-feedback.success {
  background: #064e3b;
  color: #a7f3d0;
  border-color: #065f46;
}

.form-feedback.error {
  display: block;
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

html.dark .form-feedback.error {
  background: #450a0a;
  color: #fca5a5;
  border-color: #991b1b;
}


/* ----------------------------------------------------------
   Footer
   ---------------------------------------------------------- */
.footer-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.footer-link {
  color: #94a3b8;
  font-size: 0.875rem;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: var(--primary-500, #6366f1);
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 0.5rem;
  background: #1e293b;
  color: #94a3b8;
  transition: all 0.3s ease;
}

html.dark .social-link {
  background: #0f172a;
}

.social-link:hover {
  background: var(--primary-500, #6366f1);
  color: #ffffff;
  transform: translateY(-2px);
}

.social-link svg {
  width: 18px;
  height: 18px;
}

.footer-divider {
  border: none;
  border-top: 1px solid #1e293b;
  margin: 2rem 0;
}

html.dark .footer-divider {
  border-top-color: #1e293b;
}

#footer {
  background: var(--footer-bg, #0f172a);
  color: var(--footer-text, #cbd5e1);
}

html.dark #footer {
  background: var(--footer-bg-dark, #020617);
  color: var(--footer-text-dark, #cbd5e1);
}

/* Powered by LokalBASE branding */
.powered-by-lokalbase {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  color: #64748b;
  text-decoration: none;
  transition: color 0.2s ease;
}

.powered-by-lokalbase:hover {
  color: var(--primary-500, #6366f1);
}

.powered-by-lokalbase svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.powered-by-logo {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}


/* ----------------------------------------------------------
   Modal
   ---------------------------------------------------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: #ffffff;
  border-radius: 1rem;
  max-width: 600px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  padding: 2.5rem;
  position: relative;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.3s ease;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.15);
}

html.dark .modal-content {
  background: #1e293b;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
}

.modal-overlay.open .modal-content {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f1f5f9;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  color: #64748b;
}

html.dark .modal-close {
  background: #334155;
  color: #94a3b8;
}

.modal-close:hover {
  background: #e2e8f0;
  color: #0f172a;
}

html.dark .modal-close:hover {
  background: #475569;
  color: #ffffff;
}


/* ----------------------------------------------------------
   Loading Spinner
   ---------------------------------------------------------- */
.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

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


/* ----------------------------------------------------------
   Utility Animations
   ---------------------------------------------------------- */
@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  animation: fade-in-up 0.6s ease forwards;
}

.animation-delay-100 { animation-delay: 100ms; }
.animation-delay-200 { animation-delay: 200ms; }
.animation-delay-300 { animation-delay: 300ms; }
.animation-delay-400 { animation-delay: 400ms; }
.animation-delay-500 { animation-delay: 500ms; }

/* Gradient text */
.gradient-text {
  background: linear-gradient(135deg, var(--primary-500, #6366f1), #a855f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}


/* ----------------------------------------------------------
   Chat Widget
   ---------------------------------------------------------- */
.chat-toggle {
  position: fixed;
  bottom: 1.5rem;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-500, #6366f1), var(--primary-600, #4f46e5));
  color: #ffffff;
  border: none;
  cursor: pointer;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.chat-toggle:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 28px rgba(99, 102, 241, 0.5);
}

.chat-toggle.chat-right { right: 1.5rem; }
.chat-toggle.chat-left { left: 1.5rem; }

.chat-toggle-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-toggle-icon.hidden { display: none; }

/* Chat Window */
.chat-window {
  position: fixed;
  bottom: 6rem;
  width: 360px;
  max-width: calc(100vw - 2rem);
  height: 480px;
  max-height: calc(100vh - 8rem);
  background: #ffffff;
  border-radius: 1rem;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.15);
  z-index: 89;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(0.95);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}

html.dark .chat-window {
  background: #1e293b;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.5);
}

.chat-window.chat-right { right: 1.5rem; }
.chat-window.chat-left { left: 1.5rem; }

.chat-window.chat-window-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

/* Chat Header */
.chat-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.25rem;
  background: linear-gradient(135deg, var(--primary-500, #6366f1), var(--primary-600, #4f46e5));
  color: #ffffff;
  flex-shrink: 0;
}

.chat-header-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  animation: pulse-dot 2s ease-in-out infinite;
}

.chat-header-title {
  font-size: 0.9375rem;
  font-weight: 600;
}

/* Chat Body */
.chat-body {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

/* Chat Intro Form */
.chat-intro {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  text-align: center;
}

.chat-intro.hidden { display: none; }

.chat-intro-welcome {
  font-size: 0.9375rem;
  color: #475569;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

html.dark .chat-intro-welcome {
  color: #94a3b8;
}

.chat-intro-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.chat-intro-input {
  width: 100%;
  padding: 0.625rem 0.875rem;
  border: 1.5px solid #e2e8f0;
  border-radius: 0.625rem;
  font-size: 0.875rem;
  outline: none;
  color: #0f172a;
  background: #f8fafc;
  font-family: inherit;
  transition: border-color 0.2s ease;
}

html.dark .chat-intro-input {
  background: #0f172a;
  border-color: #334155;
  color: #e2e8f0;
}

.chat-intro-input:focus {
  border-color: var(--primary-500, #6366f1);
}

.chat-intro-btn {
  width: 100%;
  padding: 0.625rem;
  background: linear-gradient(135deg, var(--primary-500, #6366f1), var(--primary-600, #4f46e5));
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 600;
  border: none;
  border-radius: 0.625rem;
  cursor: pointer;
  transition: opacity 0.2s ease;
  margin-top: 0.25rem;
}

.chat-intro-btn:hover {
  opacity: 0.9;
}

/* Chat Messages */
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.chat-messages.hidden { display: none; }
.chat-input-bar.hidden { display: none; }

.chat-messages::-webkit-scrollbar {
  width: 4px;
}

.chat-messages::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 2px;
}

html.dark .chat-messages::-webkit-scrollbar-thumb {
  background: #475569;
}

.chat-msg {
  display: flex;
}

.chat-msg-user {
  justify-content: flex-end;
}

.chat-msg-bot {
  justify-content: flex-start;
}

.chat-bubble {
  max-width: 80%;
  padding: 0.625rem 0.875rem;
  border-radius: 1rem;
  font-size: 0.875rem;
  line-height: 1.5;
  word-break: break-word;
}

.chat-bubble-user {
  background: linear-gradient(135deg, var(--primary-500, #6366f1), var(--primary-600, #4f46e5));
  color: #ffffff;
  border-bottom-right-radius: 0.25rem;
}

.chat-bubble-bot {
  background: #f1f5f9;
  color: #334155;
  border-bottom-left-radius: 0.25rem;
}

html.dark .chat-bubble-bot {
  background: #334155;
  color: #e2e8f0;
}

/* Typing indicator */
.chat-typing-dots {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  height: 18px;
}

.chat-typing-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #94a3b8;
  animation: chat-bounce 1.4s ease-in-out infinite;
}

.chat-typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.chat-typing-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes chat-bounce {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-6px); }
}

/* Chat Input Bar */
.chat-input-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-top: 1px solid #e2e8f0;
  flex-shrink: 0;
}

html.dark .chat-input-bar {
  border-top-color: #334155;
}

.chat-input {
  flex: 1;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 1.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  outline: none;
  color: #0f172a;
  font-family: inherit;
  transition: border-color 0.2s ease;
}

html.dark .chat-input {
  background: #0f172a;
  border-color: #334155;
  color: #e2e8f0;
}

.chat-input:focus {
  border-color: var(--primary-500, #6366f1);
}

.chat-send {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-500, #6366f1), var(--primary-600, #4f46e5));
  color: #ffffff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.chat-send:hover {
  transform: scale(1.08);
}

/* Mobile adjustments */
@media (max-width: 480px) {
  .chat-window {
    width: calc(100vw - 1.5rem);
    right: 0.75rem !important;
    left: 0.75rem !important;
    bottom: 5rem;
    height: calc(100vh - 7rem);
  }

  .chat-toggle {
    bottom: 1rem;
  }

  .chat-toggle.chat-right { right: 1rem; }
  .chat-toggle.chat-left { left: 1rem; }
}
