/* ========================================
   ILONGOSTAN LODGE — Design System
   Futuristic Luxury Dark Theme
   ======================================== */

/* Display fonts are loaded asynchronously via site.js after initial paint */

/* === CSS Custom Properties === */
:root {
  /* Backgrounds */
  --bg-primary: #07070d;
  --bg-secondary: #0e0e18;
  --bg-tertiary: #141422;
  --bg-card: #111120;
  
  /* Gold Accents */
  --gold: #d4a853;
  --gold-light: #f0d48a;
  --gold-dark: #a07c30;
  --gold-glow: rgba(212, 168, 83, 0.3);
  --amber-glow: #e8a020;
  
  /* Text */
  --white: #f0efe8;
  --white-pure: #ffffff;
  --white-muted: #9898a8;
  --white-dim: #8c8ca6;
  
  /* Glass */
  --glass-bg: rgba(255, 255, 255, 0.04);
  --glass-bg-hover: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-border-hover: rgba(212, 168, 83, 0.3);
  
  /* Gradients */
  --gradient-gold: linear-gradient(135deg, #d4a853, #f0d48a, #d4a853);
  --gradient-dark: linear-gradient(180deg, #07070d 0%, #0e0e18 100%);
  --gradient-hero: linear-gradient(180deg, transparent 0%, rgba(7,7,13,0.4) 40%, rgba(7,7,13,0.85) 75%, #07070d 100%);
  --gradient-card: linear-gradient(145deg, rgba(20,20,34,0.8), rgba(14,14,24,0.95));
  
  /* Shadows */
  --shadow-gold: 0 0 30px rgba(212, 168, 83, 0.15);
  --shadow-lg: 0 25px 50px rgba(0, 0, 0, 0.5);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.3);
  
  /* Typography */
  --font-heading: 'Playfair Display', 'Georgia', serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;
  --font-brand: 'Cinzel', 'Times New Roman', serif;
  
  /* Spacing */
  --section-padding: clamp(60px, 10vw, 120px);
  --container-max: 1280px;
  --container-padding: clamp(20px, 5vw, 60px);
  
  /* Transitions */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --transition-base: 0.3s var(--ease-out-quart);
  --transition-slow: 0.6s var(--ease-out-expo);
  --transition-reveal: 0.8s var(--ease-out-expo);
  
  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
}

/* === Base Reset === */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

video {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-base);
}

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  color: inherit;
}

/* === Scrollbar === */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--gold-dark);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--gold);
}

/* === Selection & Accessibility Focus === */
::selection {
  background: var(--gold);
  color: var(--bg-primary);
}

:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 2px;
}

.skip-link {
  position: fixed;
  top: -120px;
  left: 16px;
  z-index: 12000;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--gold);
  color: var(--bg-primary);
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: var(--shadow-lg);
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 14px;
}

/* ========================================
   NAVIGATION
   ======================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: var(--transition-base);
}

.navbar.scrolled {
  padding: 12px 0;
  background: rgba(7, 7, 13, 0.92);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--glass-border);
}

.nav-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-logo {
  font-family: var(--font-brand);
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-logo-icon {
  width: 36px;
  height: 36px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  overflow: hidden;
  background: #181818;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: var(--font-brand);
  font-size: 14px;
  font-weight: 700;
  color: var(--gold);
}

.nav-logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--white-muted);
  position: relative;
  padding: 4px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--gold);
  transition: width 0.4s var(--ease-out-expo);
}

.nav-link:hover,
.nav-link.active {
  color: var(--gold-light);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-cta {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 10px 28px;
  border: 1.5px solid var(--gold);
  border-radius: 100px;
  color: var(--gold);
  transition: var(--transition-base);
}

.nav-cta:hover {
  background: var(--gold);
  color: var(--bg-primary);
  box-shadow: var(--shadow-gold);
}

/* Mobile Menu Button */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  cursor: pointer;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition-base);
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.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;
  z-index: 0;
}

.hero-bg img,
.hero-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
  z-index: 1;
}

/* Animated particles/glow effect */
.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.hero-particles .particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: var(--gold);
  border-radius: 50%;
  opacity: 0;
  animation: particle-float 8s infinite;
}

@keyframes particle-float {
  0% {
    opacity: 0;
    transform: translateY(100vh) scale(0);
  }
  10% {
    opacity: 0.6;
  }
  90% {
    opacity: 0.1;
  }
  100% {
    opacity: 0;
    transform: translateY(-10vh) scale(1);
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  padding: 0 var(--container-padding);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 24px;
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  font-size: 0.8rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 32px;
}

.hero-badge .dot {
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); }
}

.hero-title {
  font-family: var(--font-brand);
  font-size: clamp(2.8rem, 8vw, 6rem);
  font-weight: 800;
  letter-spacing: clamp(4px, 1.5vw, 12px);
  text-transform: uppercase;
  line-height: 1.1;
  margin-bottom: 8px;
}

.hero-title .gold-text {
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-family: var(--font-heading);
  font-size: clamp(1rem, 3vw, 1.6rem);
  font-weight: 400;
  font-style: italic;
  color: var(--white-muted);
  letter-spacing: 2px;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 36px;
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: var(--transition-base);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--gold);
  color: var(--bg-primary);
  border: 2px solid var(--gold);
}

.btn-primary:hover {
  background: var(--gold-light);
  box-shadow: var(--shadow-gold), 0 0 60px rgba(212, 168, 83, 0.2);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid var(--glass-border);
  backdrop-filter: blur(10px);
}

.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold-light);
  background: rgba(212, 168, 83, 0.05);
}

.btn-icon {
  width: 18px;
  height: 18px;
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: fadeInUp 1s var(--ease-out-expo) 1.2s both;
}

.hero-scroll span {
  font-size: 0.7rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--white-dim);
}

.scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scroll-bounce 2s infinite;
}

@keyframes scroll-bounce {
  0%, 100% { transform: scaleY(1); opacity: 1; }
  50% { transform: scaleY(0.5); opacity: 0.3; }
}

/* ========================================
   SECTIONS — COMMON
   ======================================== */
.section {
  padding: var(--section-padding) 0;
  position: relative;
  contain: layout style;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.section-header {
  text-align: center;
  margin-bottom: clamp(40px, 6vw, 80px);
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.75rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.section-tag::before,
.section-tag::after {
  content: '';
  width: 30px;
  height: 1px;
  background: var(--gold-dark);
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-title .highlight {
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-desc {
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.05rem;
  color: var(--white-muted);
  line-height: 1.8;
}

/* ========================================
   ABOUT SECTION
   ======================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  max-width: 880px;
  margin: 0 auto;
}

.about-content {
  padding: 12px 0;
  text-align: center;
}

.about-content .section-tag {
  justify-content: center;
}

.about-content .section-title {
  text-align: center;
}

.about-text {
  font-size: 1.05rem;
  color: var(--white-muted);
  line-height: 1.9;
  max-width: 720px;
  margin: 0 auto 32px;
}

.about-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 36px;
  text-align: left;
}

.about-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  transition: var(--transition-base);
}

.about-feature:hover {
  border-color: var(--glass-border-hover);
  background: var(--glass-bg-hover);
}

.about-feature .icon {
  font-size: 1.4rem;
  flex-shrink: 0;
}

.about-feature .text {
  font-size: 0.9rem;
  font-weight: 500;
}

.about-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

.about-explore-caret {
  display: inline-block;
  font-size: 0.78em;
  transition: transform 0.2s ease;
}

#aboutExploreBtn[aria-expanded="true"] .about-explore-caret {
  transform: rotate(180deg);
}

.about-explore-menu[hidden] {
  display: none !important;
}

.about-explore-menu {
  margin: 18px auto 0;
  max-width: 560px;
  padding: 18px 20px;
  border-radius: 16px;
  background: rgba(14, 14, 24, 0.96);
  border: 1px solid rgba(212, 168, 83, 0.38);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.45);
}

.about-explore-prompt {
  font-size: 0.78rem;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--gold-light);
  font-weight: 700;
  margin-bottom: 12px;
}

.about-explore-options {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.about-explore-option {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(212, 168, 83, 0.12);
  border: 1px solid rgba(212, 168, 83, 0.42);
  color: var(--white);
  font-size: 0.88rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.about-explore-option:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: #07070d;
  transform: translateY(-1px);
}

/* ========================================
   BRANCHES SECTION
   ======================================== */
.branches-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.branch-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 3/4;
  cursor: pointer;
}

.branch-card-bg {
  position: absolute;
  inset: 0;
}

.branch-card-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out-expo);
}

.branch-card:hover .branch-card-bg img {
  transform: scale(1.1);
}

.branch-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(7,7,13,0.95) 100%);
  transition: var(--transition-slow);
}

.branch-card:hover .branch-card-overlay {
  background: linear-gradient(180deg, rgba(7,7,13,0.2) 0%, rgba(7,7,13,0.98) 100%);
}

.branch-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 32px;
  z-index: 2;
  transform: translateY(20px);
  transition: var(--transition-slow);
}

.branch-card:hover .branch-card-content {
  transform: translateY(0);
}

.branch-card-location {
  font-size: 0.75rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.branch-card-name {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.branch-card-desc {
  font-size: 0.9rem;
  color: var(--white-muted);
  line-height: 1.6;
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(10px);
  transition: var(--transition-slow);
}

.branch-card:hover .branch-card-desc {
  opacity: 1;
  transform: translateY(0);
}

.branch-card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0;
  transform: translateY(10px);
  transition: var(--transition-slow);
}

.branch-card:hover .branch-card-link {
  opacity: 1;
  transform: translateY(0);
}

.branch-card-link .arrow {
  transition: transform 0.3s ease;
}

.branch-card-link:hover .arrow {
  transform: translateX(5px);
}

.branch-card-badge {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 3;
  padding: 6px 16px;
  background: var(--gold);
  color: var(--bg-primary);
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

/* ========================================
   CONTACT SECTION
   ======================================== */
.contact-content {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-info {
  padding: 20px 0;
}

.contact-item {
  display: flex;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.contact-item:last-child {
  border-bottom: none;
}

.contact-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  font-size: 1.3rem;
  flex-shrink: 0;
  transition: var(--transition-base);
}

.contact-item:hover .contact-icon,
.contact-item.active .contact-icon {
  border-color: var(--gold);
  background: rgba(212, 168, 83, 0.1);
}

.contact-item.active {
  background: rgba(212, 168, 83, 0.05);
  border-color: var(--gold-dark);
}

.contact-label {
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 4px;
}

.contact-value {
  font-size: 1.05rem;
  color: var(--white);
  line-height: 1.6;
}

.contact-value a {
  color: var(--white);
}

.contact-value a:hover {
  color: var(--gold-light);
}

.contact-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--glass-border);
  aspect-ratio: 4/3;
  position: relative;
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  border: none;
  filter: grayscale(0.5) brightness(0.8) contrast(1.1);
  transition: filter 0.5s ease;
}

.contact-map:hover iframe {
  filter: grayscale(0) brightness(1) contrast(1);
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--glass-border);
  padding: 60px 0 30px;
  contain: layout style;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-brand .nav-logo {
  margin-bottom: 16px;
  display: inline-block;
}

.footer-brand p {
  font-size: 0.95rem;
  color: var(--white-muted);
  line-height: 1.7;
  max-width: 300px;
}

.footer-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.footer-links li {
  margin-bottom: 6px;
}

.footer-links a,
.footer-bottom a,
.contact-item a,
.footer a,
a[href^="tel:"],
a[href^="mailto:"] {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--white-muted);
}

.footer-links a:hover {
  color: var(--gold-light);
  padding-left: 6px;
}

.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-copyright {
  font-size: 0.85rem;
  color: var(--white-dim);
}

.footer-socials {
  display: flex;
  gap: 12px;
}

.footer-social {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  font-size: 1rem;
  transition: var(--transition-base);
}

.footer-social:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(212, 168, 83, 0.1);
  transform: translateY(-3px);
}

/* ========================================
   ANIMATIONS — Scroll Reveal
   ======================================== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity var(--transition-reveal), transform var(--transition-reveal);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity var(--transition-reveal), transform var(--transition-reveal);
}

.reveal-left.revealed {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity var(--transition-reveal), transform var(--transition-reveal);
}

.reveal-right.revealed {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity var(--transition-reveal), transform var(--transition-reveal);
}

.reveal-scale.revealed {
  opacity: 1;
  transform: scale(1);
}

/* Stagger delays */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* ========================================
   KEYFRAME ANIMATIONS
   ======================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% center;
  }
  100% {
    background-position: 200% center;
  }
}

@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 0 20px rgba(212, 168, 83, 0.1); }
  50% { box-shadow: 0 0 40px rgba(212, 168, 83, 0.25); }
}

/* Ambient glow behind sections */
.ambient-glow {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  opacity: 0.14;
  pointer-events: none;
  z-index: 0;
}

.ambient-glow.gold {
  background: radial-gradient(circle, rgba(212, 168, 83, 0.55) 0%, transparent 70%);
}

.ambient-glow.blue {
  background: radial-gradient(circle, rgba(64, 96, 255, 0.55) 0%, transparent 70%);
}

/* ========================================
   BACK TO TOP BUTTON
   ======================================== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 46px;
  height: 46px;
  background: var(--gold);
  color: var(--bg-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  font-weight: 700;
  z-index: 9450;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: var(--transition-base);
  cursor: pointer;
  border: none;
  box-shadow: 0 4px 20px rgba(212, 168, 83, 0.3);
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--gold-light);
  transform: translateY(-3px);
}

.parallax-bg-section {
  background-attachment: fixed;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  position: relative;
}

@media (max-width: 900px) {
  .parallax-bg-section {
    background-attachment: scroll;
  }
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
  .about-features {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .branches-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .contact-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 960px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 360px;
    height: 100vh;
    background: rgba(14, 14, 24, 0.98);
    backdrop-filter: blur(30px);
    flex-direction: column;
    justify-content: center;
    padding: 60px 40px;
    gap: 28px;
    transition: right 0.5s var(--ease-out-expo);
    border-left: 1px solid var(--glass-border);
  }
  
  .nav-links.open {
    right: 0;
  }
  
  .nav-toggle {
    display: flex;
    padding: 4px 0;
  }
}

@media (max-width: 768px) {
  .navbar,
  .navbar.scrolled,
  .hero-badge,
  .btn-outline,
  .glass-card,
  .branch-card-overlay {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  .hero-bg img,
  .dodoma-hero-bg img {
    filter: none !important;
  }
  .navbar.scrolled {
    background: rgba(7, 7, 13, 0.97);
  }
  .back-to-top {
    width: 38px;
    height: 38px;
    bottom: 14px;
    right: 10px;
  }

  .back-to-top.visible {
    opacity: 0.9;
  }

  .branches-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .branch-card {
    aspect-ratio: auto;
    min-height: 360px;
  }

  .hero {
    padding: 110px 0 72px;
  }

  .hero-badge {
    font-size: 0.68rem;
    letter-spacing: 1.5px;
    padding: 7px 14px;
    margin-bottom: 20px;
  }

  .hero-scroll {
    display: none;
  }
  
  .about-features {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  
  .btn {
    width: 100%;
    justify-content: center;
  }

  /* Orientation Specific Adjustments removed from body class toggle */
}

@media (max-width: 768px) and (orientation: landscape) {
  .hero {
    min-height: 120vh;
  }
}

@media (max-width: 480px) {
  .hero-title {
    letter-spacing: 2px;
  }
  
  .section-tag::before,
  .section-tag::after {
    width: 15px;
  }
}

/* ========================================
   UTILITY CLASSES
   ======================================== */
.text-center { text-align: center; }
.text-gold { color: var(--gold); }
.text-muted { color: var(--white-muted); }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

/* Mobile overlay when nav is open */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.nav-overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* ========================================
   LIGHTBOX — Futuristic Interaction
   ======================================== */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(7, 7, 13, 0.95);
  backdrop-filter: blur(15px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: all 0.5s var(--ease-out-expo);
  padding: 40px;
}

.lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-content {
  max-width: 90%;
  max-height: 90%;
  position: relative;
  transform: scale(0.9);
  transition: transform 0.5s var(--ease-out-expo);
}

.lightbox.active .lightbox-content {
  transform: scale(1);
}

.lightbox-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 30px 60px rgba(0,0,0,0.6);
  border: 1px solid rgba(255,255,255,0.1);
}

.lightbox-close {
  position: absolute;
  top: 40px;
  right: 40px;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2.5rem;
  cursor: pointer;
  transition: transform 0.3s ease;
  z-index: 10001;
}

.lightbox-close:hover {
  transform: rotate(90deg) scale(1.1);
  color: var(--gold);
}

@media (max-width: 768px) {
  .lightbox { padding: 20px; }
  .lightbox-close { top: 20px; right: 20px; }
}

/* ========================================
   EXTRA FUTURISTIC EFFECTS
   ======================================== */
.glass-card {
  background: rgba(255, 255, 255, 0.03) !important;
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

footer.footer {
  content-visibility: auto;
  contain-intrinsic-size: 1px 220px;
}

.gold-text-glow {
  text-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
}

.contact-map-trigger {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin-left: 8px;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid rgba(212, 168, 83, 0.4);
  background: rgba(212, 168, 83, 0.12);
  color: var(--gold-light);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  vertical-align: middle;
}
.contact-map-trigger:hover {
  background: var(--gold);
  color: var(--bg-primary);
}

/* Image Fade-In removed to eliminate mobile paint/compositing overhead */
img[loading="lazy"] {
  opacity: 1;
}
