@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

body {
    font-family: 'Poppins', sans-serif;
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #3b82f6;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #2563eb;
}

/* Animation classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.slide-up {
    animation: slideUp 0.5s ease-out;
}
@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(20px) rotateX(10deg);
    }
    to { 
        opacity: 1;
        transform: translateY(0) rotateX(0);
    }
}

/* Scroll animations */
[data-scroll] {
  opacity: 0;
  will-change: transform, opacity;
  transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

[data-scroll="fadeIn"] {
  transform: translateY(30px);
}

[data-scroll="fadeLeft"] {
  transform: translateX(-30px);
}

[data-scroll="fadeRight"] {
  transform: translateX(30px);
}

[data-scroll="scaleUp"] {
  transform: scale(0.8);
}

[data-scroll].is-visible {
  opacity: 1;
  transform: translate(0) scale(1) !important;
}

/* 3D card effect */
.card-3d {
  transform-style: preserve-3d;
  transition: transform 0.5s ease;
}

.card-3d:hover {
  transform: rotateY(10deg) rotateX(5deg) translateZ(10px);
}
@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

.page-transition {
    animation: fadeIn 0.5s ease-in;
}

.page-exit {
    animation: fadeOut 0.3s ease-out;
}
/* Custom button styles */
.btn-primary {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    transform: translateY(-2px);
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.btn-primary:hover::after {
    transform: translateX(0);
}

/* Section spacing */
section {
    scroll-margin-top: 80px;
}

/* Footer spacing fallback in case custom element styling needs page-level spacing */
.site-footer {
    width: 100%;
    margin-top: 2.5rem;
}

/* When a page includes the custom navbar, add top padding to avoid content being hidden */
.has-custom-navbar {
    padding-top: 80px; /* match increased navbar height */
}

/* Ensure images scale comfortably on small screens */
img {
    max-width: 100%;
    height: auto;
}

/* Reviews teaser marquee */
.reviews-teaser .marquee { overflow: hidden; position: relative; }
.reviews-teaser .marquee-track { display: flex; gap: 1rem; align-items: center; animation: scroll-left 20s linear infinite; }
.reviews-teaser .review-card { min-width: 320px; flex: 0 0 auto; }
.reviews-teaser .marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes scroll-left { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

@media (max-width: 640px) {
  .reviews-teaser .review-card { min-width: 260px; }
}

/* Lightbox styles for enlarging images */
.lightbox-target { cursor: zoom-in; }
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 1rem;
  animation: lightboxFade 0.18s ease-out;
}
.lightbox-img {
  max-width: 95%;
  max-height: 95%;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}
.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  color: #fff;
  font-size: 1.5rem;
  background: rgba(0,0,0,0.3);
  border-radius: 999px;
  padding: 0.25rem 0.5rem;
  cursor: pointer;
}
@keyframes lightboxFade { from { opacity: 0; } to { opacity: 1; } }

/* Map container styling */
.map-container {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

/* Feature highlight styles */
.feature-badge {
  background: #FEF3C7;
  border-left: 4px solid #ef4444;
  padding: .75rem;
  border-radius: .5rem;
  color: #991b1b;
  font-weight: 700;
}

.pop-out {
  background: linear-gradient(90deg, #fffaf0, #ffffff);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  border-radius: .5rem;
  padding: .5rem;
}

/* Theme: dark beige + light blue */
:root {
  --beige: #E7DAC8; /* darker, warmer beige */
  --beige-2: #EFE3D0;
  --light-blue: #6AAFE6;
  --light-blue-700: #0b6ea6;
  --muted: #555f66;
  --star-color: #F5C518;
  --accent-red: #ef4444;
  --box-bg: #E8F6FF; /* panel background (light blue) */
  --box-text: #083046; /* dark readable text on panels */
}

/* Override Tailwind utility color classes used site-wide */
.bg-sky-50 { background-color: var(--beige) !important; }
.text-sky-800 { color: var(--light-blue-700) !important; }
.text-sky-700 { color: var(--light-blue) !important; }
.text-sky-500 { color: var(--light-blue) !important; }
.feature-badge { background: #FDF1E6; border-left-color: var(--light-blue); color: #7b2d2d; }

/* Subtle pop-out gradient updated for darker beige */
.pop-out { background: linear-gradient(90deg, var(--beige-2), #ffffff); }

/* Scrollbar accent */
::-webkit-scrollbar-thumb { background: var(--light-blue); }

/* Panels styling: replace previous white cards with light-blue panels and readable text */
.bg-white {
  background-color: var(--box-bg) !important;
  color: var(--box-text);
}
.bg-white h1, .bg-white h2, .bg-white h3, .bg-white h4, .bg-white p, .bg-white li, .bg-white a {
  color: var(--box-text) !important;
}
.bg-white .text-gray-700 { color: var(--box-text) !important; }
.bg-white .text-gray-500 { color: rgba(8,48,70,0.8) !important; }
.bg-white .text-sky-800 { color: var(--light-blue-700) !important; }
.bg-white .bg-red-500 { background-color: #ef4444 !important; }


/* Star styles */
.stars, .star { color: var(--star-color); font-size: 0.95rem; letter-spacing: 0.05rem; }
.stars[aria-hidden="true"] { display: inline-block; }

/* Muted text helper */
.text-muted { color: var(--muted); }



