/* ============================================
   Tibet Group of Hotels — Custom Stylesheet
   Complements Tailwind CSS CDN
   ============================================ */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400;1,500;1,600&family=Inter:wght@300;400;500;600;700&display=swap');

/* ---------- CSS Custom Properties ---------- */
:root {
  /* Primary Forest Green */
  --color-forest: #2D4A3E;
  --color-forest-light: #3A5C4E;
  --color-forest-dark: #1E342B;
  /* Accent Terracotta */
  --color-terra: #d3764e;
  --color-terra-light: #ca7551;
  /* Background Cream */
  --color-snow: #FAFAF8;
  --color-beige: #F5F0E8;
  --color-beige-dark: #eed199;
  /* Dark Charcoal */
  --color-charcoal: #1C2526;
  --color-charcoal-light: #2E3A3C;
  /* Secondary Warm Stone (replaces gold as accent) */
  --color-gold: #e09f65;
  --color-gold-light: #cf946a;
  --color-gold-dark: #b8815c;

  --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07), 0 2px 4px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1), 0 6px 10px rgba(0, 0, 0, 0.08);
  --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.12), 0 8px 16px rgba(0, 0, 0, 0.08);
  --shadow-gold: 0 4px 20px rgba(139, 115, 85, 0.35);

  --transition-fast: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 350ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 600ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--color-charcoal);
  background-color: var(--color-beige);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

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

::-webkit-scrollbar-track {
  background: var(--color-beige-dark);
}

::-webkit-scrollbar-thumb {
  background: var(--color-gold);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-gold-dark);
}

/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--color-gold) var(--color-beige);
}

/* ---------- Selection ---------- */
::selection {
  background: var(--color-gold);
  color: var(--color-charcoal);
}

/* ---------- Glassmorphism Utilities ---------- */
.glass {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.glass-dark {
  background: rgba(26, 26, 26, 0.65);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-light {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.glass-gold {
  background: rgba(201, 168, 76, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(201, 168, 76, 0.2);
}

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all var(--transition-base);
  padding: 1.25rem 0;
}

.navbar.scrolled {
  background: rgba(28, 37, 38, 0.93);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  padding: 0.75rem 0;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

.navbar.scrolled .nav-link {
  color: rgba(255, 255, 255, 0.85);
}

.nav-link {
  position: relative;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.5rem 0;
  transition: color var(--transition-fast);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-gold);
  transition: width var(--transition-base);
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-gold);
}

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

/* ---------- Mobile Menu ---------- */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(28, 37, 38, 0.97);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
}

.mobile-menu.active {
  opacity: 1;
  pointer-events: all;
}

.mobile-menu .nav-link {
  font-size: 1.25rem;
  letter-spacing: 0.08em;
}

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
  padding: 0.5rem;
  background: none;
  border: none;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: white;
  transition: all var(--transition-base);
  border-radius: 2px;
}

.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);
}

/* ---------- Hero Section ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
      rgba(28, 37, 38, 0.4) 0%,
      rgba(28, 37, 38, 0.2) 40%,
      rgba(28, 37, 38, 0.55) 70%,
      rgba(28, 37, 38, 0.88) 100%);
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  color: white;
  max-width: 52rem;
  padding: 0 1.5rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(198, 123, 92, 0.15);
  border: 1px solid rgba(198, 123, 92, 0.4);
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-terra-light);
  margin-bottom: 1.5rem;
  backdrop-filter: blur(8px);
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.3);
}

.hero p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.8);
  max-width: 38rem;
  margin: 0 auto 2.5rem;
  line-height: 1.8;
}

/* Hero scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  animation: float 3s ease-in-out infinite;
}

.scroll-indicator .mouse {
  width: 24px;
  height: 38px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 12px;
  position: relative;
}

.scroll-indicator .mouse::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 8px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 2px;
  animation: scrollDot 2s ease-in-out infinite;
}

@keyframes float {

  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  50% {
    transform: translateX(-50%) translateY(-8px);
  }
}

@keyframes scrollDot {

  0%,
  100% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }

  50% {
    opacity: 0.3;
    transform: translateX(-50%) translateY(10px);
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.btn:hover::before {
  opacity: 1;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-forest), var(--color-forest-dark));
  color: white;
  box-shadow: 0 4px 20px rgba(45, 74, 62, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(45, 74, 62, 0.45);
}

.btn-secondary {
  background: transparent;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: white;
  transform: translateY(-2px);
}

.btn-outline-gold {
  background: transparent;
  color: var(--color-gold);
  border: 2px solid var(--color-gold);
}

.btn-outline-gold:hover {
  background: var(--color-gold);
  color: var(--color-charcoal);
  transform: translateY(-2px);
}

.btn-forest {
  background: linear-gradient(135deg, var(--color-forest), var(--color-forest-dark));
  color: white;
}

.btn-forest:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(47, 79, 62, 0.35);
}

.btn-whatsapp {
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: white;
}

.btn-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.35);
}

/* ---------- Section Styling ---------- */
.section {
  padding: 6rem 0;
}

.section-beige {
  background-color: var(--color-beige);
}

.section-charcoal {
  background-color: var(--color-charcoal);
  color: white;
}

.section-forest {
  background: linear-gradient(135deg, var(--color-forest), var(--color-forest-dark));
  color: white;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--color-charcoal);
}

.section-charcoal .section-title,
.section-forest .section-title {
  color: white;
}

.section-subtitle {
  font-size: 1rem;
  color: #6B7280;
  max-width: 36rem;
  line-height: 1.7;
}

.section-charcoal .section-subtitle {
  color: rgba(255, 255, 255, 0.6);
}

.section-divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-gold), var(--color-gold-light));
  border-radius: var(--radius-full);
  margin: 1rem 0;
}

.section-divider-center {
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Room Cards ---------- */
.room-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
  position: relative;
}

.room-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.room-card-image {
  position: relative;
  height: 280px;
  overflow: hidden;
}

.room-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.room-card:hover .room-card-image img {
  transform: scale(1.08);
}

.room-card-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--color-gold);
  color: var(--color-charcoal);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.room-card-body {
  padding: 1.75rem;
}

.room-card-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--color-charcoal);
}

.room-card-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-forest);
}

.room-card-price span {
  font-size: 0.875rem;
  font-weight: 400;
  color: #9CA3AF;
}

.room-card-amenities {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
}

.room-card-amenity {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  color: #6B7280;
  background: var(--color-beige);
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-full);
}

.room-card-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

/* ---------- Amenity Grid ---------- */
.amenity-item {
  text-align: center;
  padding: 2rem 1.5rem;
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
  background: white;
}

.amenity-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.amenity-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  background: linear-gradient(135deg, rgba(45, 74, 62, 0.08), rgba(198, 123, 92, 0.08));
  border-radius: var(--radius-md);
  font-size: 1.5rem;
  color: var(--color-forest);
  transition: all var(--transition-base);
}

.amenity-item:hover .amenity-icon {
  background: linear-gradient(135deg, var(--color-forest), var(--color-forest-dark));
  color: white;
  transform: scale(1.1);
}

.amenity-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

.amenity-desc {
  font-size: 0.85rem;
  color: #6B7280;
  line-height: 1.5;
}

/* ---------- Testimonial Carousel ---------- */
.testimonial-carousel {
  position: relative;
  overflow: hidden;
}

.testimonial-track {
  display: flex;
  transition: transform var(--transition-slow);
}

.testimonial-card {
  min-width: 100%;
  padding: 0 1rem;
}

@media (min-width: 768px) {
  .testimonial-card {
    min-width: 50%;
  }
}

@media (min-width: 1024px) {
  .testimonial-card {
    min-width: 33.333%;
  }
}

.testimonial-inner {
  background: white;
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  height: 100%;
  position: relative;
}

.testimonial-inner::before {
  content: '"';
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-family: var(--font-heading);
  font-size: 4rem;
  color: rgba(139, 115, 85, 0.2);
  line-height: 1;
}

.testimonial-stars {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 1rem;
  color: var(--color-gold);
}

.testimonial-text {
  font-size: 0.95rem;
  color: #4B5563;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-gold), var(--color-forest));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1.1rem;
}

.testimonial-name {
  font-weight: 600;
  font-size: 0.95rem;
}

.testimonial-origin {
  font-size: 0.8rem;
  color: #9CA3AF;
}

.carousel-controls {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.carousel-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--color-gold);
  background: transparent;
  color: var(--color-gold);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  font-size: 1.1rem;
}

.carousel-btn:hover {
  background: var(--color-gold);
  color: var(--color-charcoal);
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(139, 115, 85, 0.3);
  cursor: pointer;
  transition: all var(--transition-fast);
  padding: 0;
}

.carousel-dot.active {
  background: var(--color-gold);
  width: 28px;
  border-radius: var(--radius-full);
}

/* ---------- Gallery ---------- */
.gallery-grid {
  columns: 1;
  column-gap: 1rem;
}

@media (min-width: 640px) {
  .gallery-grid {
    columns: 2;
  }
}

@media (min-width: 1024px) {
  .gallery-grid {
    columns: 3;
  }
}

@media (min-width: 1280px) {
  .gallery-grid {
    columns: 4;
  }
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 1rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: all var(--transition-base);
}

.gallery-item:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-xl);
}

.gallery-item img {
  width: 100%;
  display: block;
  transition: transform var(--transition-slow);
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(26, 26, 46, 0.7) 100%);
  opacity: 0;
  transition: opacity var(--transition-base);
  display: flex;
  align-items: flex-end;
  padding: 1.25rem;
}

.gallery-item:hover .gallery-item-overlay {
  opacity: 1;
}

.gallery-item-caption {
  color: white;
  font-size: 0.9rem;
  font-weight: 500;
}

/* Gallery Filter */
.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 2.5rem;
}

.filter-btn {
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-full);
  border: 2px solid var(--color-beige-dark);
  background: transparent;
  color: var(--color-charcoal);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-btn:hover,
.filter-btn.active {
  border-color: var(--color-gold);
  background: var(--color-gold);
  color: var(--color-charcoal);
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
}

.lightbox.active {
  opacity: 1;
  pointer-events: all;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
}

.lightbox-content img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  z-index: 10;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.25);
}

.lightbox-prev {
  left: 1.5rem;
}

.lightbox-next {
  right: 1.5rem;
}

.lightbox-counter {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
}

/* ---------- WhatsApp Floating Button ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  z-index: 900;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
}

.whatsapp-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: all var(--transition-base);
  cursor: pointer;
  border: none;
  font-size: 1.75rem;
  position: relative;
}

.whatsapp-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(37, 211, 102, 0.5);
}

.whatsapp-btn svg {
  width: 32px;
  height: 32px;
  fill: white;
}

.whatsapp-tooltip {
  background: white;
  color: var(--color-charcoal);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  font-weight: 500;
  box-shadow: var(--shadow-md);
  white-space: nowrap;
  opacity: 0;
  transform: translateX(-10px);
  transition: all var(--transition-fast);
  pointer-events: none;
}

.whatsapp-float:hover .whatsapp-tooltip {
  opacity: 1;
  transform: translateX(0);
}

/* WhatsApp pulse animation */
.whatsapp-btn::after {
  content: '';
  position: absolute;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(37, 211, 102, 0.3);
  animation: whatsappPulse 2s ease-out infinite;
}

@keyframes whatsappPulse {
  0% {
    transform: scale(1);
    opacity: 0.6;
  }

  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

/* ---------- Footer ---------- */
.footer {
  background: var(--color-charcoal);
  color: rgba(255, 255, 255, 0.7);
}

.footer-top {
  padding: 5rem 0 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bottom {
  padding: 1.5rem 0;
}

.footer-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  color: white;
  margin-bottom: 1.25rem;
}

.footer-link {
  display: block;
  padding: 0.3rem 0;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
  transition: all var(--transition-fast);
}

.footer-link:hover {
  color: var(--color-gold);
  padding-left: 0.5rem;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.5);
  transition: all var(--transition-fast);
  font-size: 1rem;
}

.footer-social a:hover {
  border-color: var(--color-gold);
  color: var(--color-gold);
  transform: translateY(-3px);
}

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

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-charcoal);
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.875rem 1.125rem;
  border: 2px solid var(--color-beige-dark);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-charcoal);
  background: white;
  transition: all var(--transition-fast);
  outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--color-forest);
  box-shadow: 0 0 0 3px rgba(45, 74, 62, 0.15);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: #9CA3AF;
}

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

.form-error {
  font-size: 0.8rem;
  color: #EF4444;
  margin-top: 0.35rem;
  display: none;
}

.form-input.error,
.form-select.error,
.form-textarea.error {
  border-color: #EF4444;
}

.form-input.error~.form-error,
.form-select.error~.form-error,
.form-textarea.error~.form-error {
  display: block;
}

/* ---------- Toast Notifications ---------- */
.toast-container {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.toast {
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  color: white;
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  transform: translateX(120%);
  transition: transform var(--transition-spring);
  max-width: 400px;
}

.toast.show {
  transform: translateX(0);
}

.toast-success {
  background: linear-gradient(135deg, #059669, #047857);
}

.toast-error {
  background: linear-gradient(135deg, #DC2626, #B91C1C);
}

.toast-info {
  background: linear-gradient(135deg, var(--color-terra), var(--color-terra-light));
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  flex-wrap: wrap;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.6);
  transition: color var(--transition-fast);
}

.breadcrumb a:hover {
  color: var(--color-gold);
}

.breadcrumb-sep {
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.7rem;
}

.breadcrumb-active {
  color: var(--color-gold);
}

/* ---------- Timeline ---------- */
.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--color-terra), var(--color-forest));
}

.timeline-item {
  position: relative;
  padding-bottom: 3rem;
  padding-left: 2rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -2rem;
  top: 0.25rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--color-gold);
  border: 3px solid var(--color-beige);
  box-shadow: 0 0 0 2px var(--color-gold);
  transform: translateX(-6px);
}

.timeline-year {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-forest);
  margin-bottom: 0.5rem;
}

.timeline-content {
  background: white;
  padding: 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

/* ---------- Stats Counter ---------- */
.stat-item {
  text-align: center;
  padding: 2rem;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 700;
  color: var(--color-gold);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.6);
}

/* ---------- FAQ Accordion ---------- */
.faq-item {
  border: 1px solid var(--color-beige-dark);
  border-radius: var(--radius-md);
  margin-bottom: 0.75rem;
  overflow: hidden;
  transition: all var(--transition-fast);
}

.faq-item:hover {
  border-color: var(--color-gold);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  background: white;
  border: none;
  width: 100%;
  text-align: left;
  font-family: var(--font-body);
  color: var(--color-charcoal);
  transition: all var(--transition-fast);
}

.faq-question:hover {
  color: var(--color-forest);
}

.faq-icon {
  font-size: 1.25rem;
  color: var(--color-gold);
  transition: transform var(--transition-base);
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-base);
}

.faq-answer-inner {
  padding: 0 1.5rem 1.25rem;
  font-size: 0.9rem;
  color: #6B7280;
  line-height: 1.8;
}

/* ---------- Scroll Animations ---------- */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

.animate-on-scroll.slide-left {
  transform: translateX(-30px);
}

.animate-on-scroll.slide-left.visible {
  transform: translateX(0);
}

.animate-on-scroll.slide-right {
  transform: translateX(30px);
}

.animate-on-scroll.slide-right.visible {
  transform: translateX(0);
}

.animate-on-scroll.scale-in {
  transform: scale(0.9);
}

.animate-on-scroll.scale-in.visible {
  transform: scale(1);
}

/* Staggered children */
.stagger-children>* {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.stagger-children.visible>*:nth-child(1) {
  transition-delay: 0.05s;
}

.stagger-children.visible>*:nth-child(2) {
  transition-delay: 0.1s;
}

.stagger-children.visible>*:nth-child(3) {
  transition-delay: 0.15s;
}

.stagger-children.visible>*:nth-child(4) {
  transition-delay: 0.2s;
}

.stagger-children.visible>*:nth-child(5) {
  transition-delay: 0.25s;
}

.stagger-children.visible>*:nth-child(6) {
  transition-delay: 0.3s;
}

.stagger-children.visible>*:nth-child(7) {
  transition-delay: 0.35s;
}

.stagger-children.visible>*:nth-child(8) {
  transition-delay: 0.4s;
}

.stagger-children.visible>* {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Page Header ---------- */
.page-header {
  position: relative;
  padding: 10rem 0 4rem;
  text-align: center;
  color: white;
  overflow: hidden;
  background: linear-gradient(135deg, var(--color-charcoal), var(--color-forest));
}

.page-header-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.3;
}

.page-header-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
      rgba(28, 37, 38, 0.7) 0%,
      rgba(45, 74, 62, 0.85) 100%);
}

.page-header h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  position: relative;
  z-index: 1;
  margin-bottom: 1rem;
}

.page-header p {
  position: relative;
  z-index: 1;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.7);
  max-width: 36rem;
  margin: 0 auto;
}

/* ---------- Facility Card ---------- */
.facility-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  border: 1px solid transparent;
}

.facility-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(198, 123, 92, 0.25);
}

.facility-icon {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  background: linear-gradient(135deg, rgba(45, 74, 62, 0.06), rgba(198, 123, 92, 0.06));
  border-radius: var(--radius-lg);
  font-size: 2rem;
  transition: all var(--transition-base);
}

.facility-card:hover .facility-icon {
  background: linear-gradient(135deg, var(--color-terra), var(--color-forest));
  transform: scale(1.1) rotate(5deg);
}

.facility-name {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.facility-desc {
  font-size: 0.85rem;
  color: #6B7280;
  line-height: 1.6;
}

/* ---------- CTA Section ---------- */
.cta-section {
  position: relative;
  padding: 6rem 0;
  text-align: center;
  background: linear-gradient(135deg, var(--color-charcoal), var(--color-forest));
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 50%, rgba(198, 123, 92, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 70% 50%, rgba(45, 74, 62, 0.12) 0%, transparent 50%);
}

/* ---------- Newsletter ---------- */
.newsletter-form {
  display: flex;
  gap: 0.75rem;
  max-width: 480px;
  margin: 0 auto;
}

.newsletter-form input {
  flex: 1;
  padding: 0.875rem 1.25rem;
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.08);
  color: white;
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: border-color var(--transition-fast);
}

.newsletter-form input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.newsletter-form input:focus {
  border-color: var(--color-gold);
}

@media (max-width: 480px) {
  .newsletter-form {
    flex-direction: column;
  }
}

/* ---------- Loading Skeleton ---------- */
.skeleton {
  background: linear-gradient(90deg, var(--color-beige) 25%, var(--color-beige-dark) 50%, var(--color-beige) 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: var(--radius-sm);
}

@keyframes skeleton-loading {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

/* ---------- Back to Top ---------- */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-forest);
  color: white;
  border: 2px solid var(--color-terra);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.25rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: all var(--transition-base);
  z-index: 800;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--color-terra);
  color: white;
  transform: translateY(-3px);
}

/* ---------- Responsive Helpers ---------- */
@media (max-width: 767px) {
  .section {
    padding: 4rem 0;
  }

  .hero h1 {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .whatsapp-float {
    bottom: 1.25rem;
    left: 1.25rem;
  }

  .whatsapp-btn {
    width: 52px;
    height: 52px;
  }

  .back-to-top {
    bottom: 1.25rem;
    right: 1.25rem;
    width: 42px;
    height: 42px;
  }
}

/* ---------- Print Styles ---------- */
@media print {

  .navbar,
  .whatsapp-float,
  .back-to-top,
  .mobile-menu,
  .carousel-controls {
    display: none !important;
  }

  body {
    color: #000;
    background: #fff;
  }

  .section {
    padding: 2rem 0;
  }

  a[href]::after {
    content: ' (' attr(href) ')';
    font-size: 0.8em;
    color: #666;
  }
}

/* ---------- Focus Styles (Accessibility) ---------- */
:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
}

/* Skip link for screen readers */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  padding: 1rem 2rem;
  background: var(--color-forest);
  color: white;
  font-weight: 600;
  z-index: 10001;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: 0;
}