@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700;900&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  /* Default Light Theme - PREMIUM LAYERED */
  --overlay-rgb: 255, 255, 255;
  --overlay-opacity: 0.85;
  --img-opacity: 1;
  --text-rgb: 0, 0, 0;
  --gold: #A67C00;
  --gold-light: #CC9900;
  --dark: #FFFFFF;
  --dark-2: #F4F6F8; /* Distinct light gray for sections */
  --dark-3: #E9EDF1; /* Slightly darker for cards/inner elements */
  --dark-4: #DDE2E8;
  --white: #121212;
  --off-white: #1A1A1A;
  --text-muted: #5A6A7A;
  --green: #198754;
  --green-light: #20c997;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow: 0 10px 30px rgba(0,0,0,0.05);
  --radius: 16px;
}

[data-theme="dark"] {
  --overlay-rgb: 10, 10, 10;
  --overlay-opacity: 0.85;
  --img-opacity: 0.5;
  --text-rgb: 255, 255, 255;
  --gold: #C9A84C;
  --gold-light: #E8C96B;
  --dark: #0A0A0A;
  --dark-2: #111111;
  --dark-3: #1A1A1A;
  --dark-4: #242424;
  --white: #FFFFFF;
  --off-white: #F5F0E8;
  --text-muted: #888888;
  --shadow: 0 20px 60px rgba(0,0,0,0.5);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--dark);
  color: var(--white);
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: 'Playfair Display', serif; }

a { text-decoration: none; color: inherit; }

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

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--dark-2); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 3px; }

/* ===== PRELOADER ===== */
#preloader {
  position: fixed; inset: 0; background: var(--dark);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999; transition: opacity 0.6s ease;
}
#preloader .logo-anim { text-align: center; }
#preloader .logo-anim h2 { font-family: 'Playfair Display', serif; font-size: 2rem; color: var(--gold); letter-spacing: 4px; animation: pulse 1.5s infinite; }
#preloader .bar { width: 200px; height: 2px; background: var(--dark-4); margin: 16px auto 0; border-radius: 2px; overflow: hidden; }
#preloader .bar-fill { height: 100%; background: linear-gradient(90deg, var(--gold), var(--gold-light)); animation: load 2s ease forwards; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.4} }
@keyframes load { from{width:0} to{width:100%} }

/* ===== NAVBAR ===== */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 20px 5%;
  display: flex; align-items: center; justify-content: space-between;
  transition: var(--transition);
  background: transparent;
}
[data-theme="light"] #navbar {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
}
[data-theme="dark"] #navbar {
  background: transparent;
}
#navbar.scrolled {
  background: rgba(var(--overlay-rgb), var(--overlay-opacity));
  backdrop-filter: blur(20px);
  padding: 14px 5%;
  border-bottom: 1px solid rgba(201,168,76,0.2);
  box-shadow: 0 4px 30px rgba(0,0,0,0.5);
}
.nav-logo { display: flex; align-items: center; gap: 12px; }
.nav-logo .logo-img { height: 40px !important; width: 40px !important; max-height: 40px !important; max-width: 40px !important; min-height: 40px; min-width: 40px; object-fit: contain; border-radius: 8px; display: block; flex-shrink: 0; }
.nav-logo .logo-text { line-height: 1.2; }
.nav-logo .logo-text span { display: block; }
.nav-logo .logo-text .brand { font-family: 'Playfair Display', serif; font-size: 1.1rem; font-weight: 800; color: var(--white); }
.nav-logo .logo-text .tagline { font-size: 0.6rem; color: var(--gold); letter-spacing: 1.5px; text-transform: uppercase; font-weight: 600; }
.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
.nav-links a { font-size: 0.85rem; font-weight: 500; color: rgba(var(--text-rgb),0.8); letter-spacing: 0.5px; transition: var(--transition); position: relative; }
.nav-links a::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 1px; background: var(--gold); transition: var(--transition); }
.nav-links a:hover { color: var(--gold); }
.nav-links a:hover::after { width: 100%; }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.btn-call { background: var(--gold); color: #fff; padding: 10px 22px; border-radius: 50px; font-size: 0.85rem; font-weight: 700; display: flex; align-items: center; gap: 8px; transition: var(--transition); border: none; }
.theme-toggle { background: rgba(var(--text-rgb), 0.05); border: 1px solid rgba(var(--text-rgb), 0.1); border-radius: 50%; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 1.1rem; transition: var(--transition); color: var(--white); }
.theme-toggle:hover { background: rgba(var(--text-rgb), 0.1); border-color: var(--gold); }
[data-theme="dark"] .btn-call { color: var(--dark); }
.btn-call:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(var(--overlay-rgb),0.2); opacity: 0.9; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.hamburger span { width: 24px; height: 2px; background: var(--white); transition: var(--transition); border-radius: 2px; }

/* ===== SECTION COMMONS ===== */
section { padding: 100px 5%; }
.section-label { font-size: 0.75rem; font-weight: 600; letter-spacing: 4px; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; }
.section-title { font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.15; margin-bottom: 20px; }
.section-subtitle { font-size: 1.05rem; color: var(--text-muted); max-width: 600px; line-height: 1.7; }
.section-header { text-align: center; margin-bottom: 64px; }
.section-header .section-subtitle { margin: 0 auto; }
.gold { color: var(--gold); }
.divider { width: 60px; height: 3px; background: linear-gradient(90deg, var(--gold), var(--gold-light)); border-radius: 2px; margin: 20px auto; }
.divider.left { margin: 20px 0; }

.theme-toggle {
  background: var(--dark-2);
  border: 1px solid var(--gold);
  color: var(--gold);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  transition: var(--transition);
  margin-right: 12px;
  z-index: 1000;
  padding: 0;
  outline: none;
}
.theme-toggle:focus { border-color: var(--gold-light); box-shadow: 0 0 0 2px rgba(var(--overlay-rgb), 0.5); }
.theme-toggle:hover {
  transform: rotate(30deg) scale(1.05);
  background: var(--gold);
  color: #fff; /* Always white icon on gold hover */
}
[data-theme="dark"] .theme-toggle:hover { color: #000; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: #fff; padding: 16px 32px; border-radius: 50px;
  font-size: 0.9rem; font-weight: 700; letter-spacing: 0.5px;
  transition: var(--transition); border: none; cursor: pointer;
}
[data-theme="dark"] .btn-primary { color: var(--dark); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 12px 36px rgba(var(--overlay-rgb),0.4); }
.btn-outline {
  display: inline-flex; align-items: center; gap: 10px;
  border: 1.5px solid var(--gold); color: var(--gold);
  padding: 16px 32px; border-radius: 50px; font-size: 0.9rem;
  font-weight: 600; transition: var(--transition); background: transparent; cursor: pointer;
}
.btn-outline:hover { background: var(--gold); color: var(--dark); transform: translateY(-3px); }
.btn-green {
  display: inline-flex; align-items: center; gap: 10px;
  background: #25D366; color: white;
  padding: 16px 32px; border-radius: 50px; font-size: 0.9rem;
  font-weight: 700; transition: var(--transition); border: none; cursor: pointer;
}
.btn-green:hover { background: #1ebe57; transform: translateY(-3px); box-shadow: 0 12px 36px rgba(37,211,102,0.4); }
.btn-green svg { width: 22px; height: 22px; fill: currentColor; }

/* ===== CARDS ===== */
.card {
  background: var(--dark); border-radius: var(--radius);
  border: 1px solid rgba(var(--text-rgb),0.08);
  overflow: hidden; transition: var(--transition);
  box-shadow: var(--shadow);
}
.card:hover { transform: translateY(-8px); border-color: var(--gold); box-shadow: 0 20px 40px rgba(0,0,0,0.1); }
.card-img { width: 100%; height: 240px; object-fit: cover; transition: var(--transition); }
.card:hover .card-img { transform: scale(1.05); }
.card-body { padding: 28px; }
.card-tag { font-size: 0.7rem; font-weight: 600; letter-spacing: 3px; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.card-title { font-size: 1.3rem; margin-bottom: 10px; }
.card-text { font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; }

/* ===== GRID ===== */
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }

/* ===== STAT BAR ===== */
.stats-bar { display: flex; align-items: stretch; justify-content: center; background: var(--dark); border: 1px solid rgba(var(--text-rgb), 0.08); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.stat-item { flex: 1; text-align: center; padding: 32px 24px; border-right: 1px solid rgba(201,168,76,0.1); display: flex; flex-direction: column; justify-content: center; align-items: center; min-width: 0; }
.stat-item:last-child { border-right: none; }
.stat-num { font-family: 'Playfair Display', serif; font-size: 2.5rem; font-weight: 700; color: var(--gold); line-height: 1; margin-bottom: 8px; }
.stat-label { font-size: 0.8rem; color: var(--text-muted); letter-spacing: 1.5px; text-transform: uppercase; white-space: nowrap; }

/* ===== FEATURE ICON BOX ===== */
.feature-box { background: var(--dark-3); border: 1px solid rgba(var(--text-rgb),0.06); border-radius: var(--radius); padding: 32px 28px; text-align: center; transition: var(--transition); }
.feature-box:hover { border-color: rgba(201,168,76,0.3); transform: translateY(-6px); box-shadow: 0 20px 50px rgba(0,0,0,0.3); }
.feature-icon { width: 64px; height: 64px; background: linear-gradient(135deg, rgba(201,168,76,0.15), rgba(201,168,76,0.05)); border: 1px solid rgba(201,168,76,0.3); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; margin: 0 auto 20px; }
.feature-box h4 { font-size: 1.05rem; margin-bottom: 10px; }
.feature-box p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; }

/* ===== FLOATING WHATSAPP ===== */
.whatsapp-float {
  position: fixed; bottom: 28px; right: 28px; z-index: 999;
  width: 60px; height: 60px; background: #25D366; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; box-shadow: 0 8px 32px rgba(37,211,102,0.4);
  animation: floatBounce 2s ease-in-out infinite;
  transition: var(--transition);
}
.whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 12px 40px rgba(37,211,102,0.6); }
@keyframes floatBounce { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-8px)} }

/* ===== FOOTER ===== */
footer {
  background: var(--dark-2); border-top: 1px solid rgba(201,168,76,0.15);
  padding: 80px 5% 32px;
}
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 60px; }
.footer-brand p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.7; margin: 16px 0 24px; }
.footer-social { display: flex; gap: 12px; }
.social-btn {
  width: 40px; height: 40px;
  background: #222222; /* Fixed dark background for visibility */
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
  color: #FFFFFF !important; /* Force white icons */
}
.social-btn svg { width: 18px; height: 18px; fill: currentColor; }
.social-btn:hover { border-color: var(--gold); background: var(--gold); transform: translateY(-3px); box-shadow: 0 5px 15px rgba(166,124,0,0.4); }
.footer-col h5 { font-size: 0.9rem; font-weight: 600; margin-bottom: 20px; color: var(--off-white); }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a { font-size: 0.85rem; color: var(--text-muted); transition: var(--transition); }
.footer-col ul li a:hover { color: var(--gold); padding-left: 6px; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 28px; border-top: 1px solid rgba(var(--text-rgb),0.06); }
.footer-bottom p { font-size: 0.8rem; color: var(--text-muted); }

/* ===== MOBILE MENU ===== */
.mobile-menu {
  position: fixed; inset: 0; background: rgba(var(--overlay-rgb), var(--overlay-opacity));
  backdrop-filter: blur(20px); z-index: 998;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 32px; opacity: 0; pointer-events: none; transition: var(--transition);
}
.mobile-menu.open { opacity: 1; pointer-events: all; }
.mobile-menu a { font-family: 'Playfair Display', serif; font-size: 2rem; color: var(--white); transition: var(--transition); }
.mobile-menu a:hover { color: var(--gold); }
.mobile-close { position: absolute; top: 28px; right: 5%; font-size: 1.8rem; cursor: pointer; color: var(--white); }

/* ===== HERO BASE ===== */
.hero {
  min-height: 100vh; position: relative;
  display: flex; align-items: center;
  background: var(--dark); overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: var(--img-opacity); }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 50%, transparent 100%);
}
[data-theme="dark"] .hero-overlay {
  background: linear-gradient(to right, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 60%, transparent 100%);
}
.hero-content { position: relative; z-index: 2; max-width: 720px; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(var(--text-rgb), 0.05); border: 1px solid var(--gold); border-radius: 50px; padding: 8px 18px; font-size: 0.78rem; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); margin-bottom: 24px; }
.hero-content h1 { font-size: clamp(2.8rem, 6vw, 4.8rem); line-height: 1.1; margin-bottom: 40px; font-weight: 800; color: #FFFFFF; }
.hero-content p { font-size: 1.15rem; color: rgba(255,255,255,0.9); line-height: 1.7; margin-bottom: 40px; max-width: 600px; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 48px; }

/* ===== PAGE HERO (inner pages) ===== */
.page-hero { min-height: 55vh; display: flex; align-items: flex-end; padding-bottom: 80px; position: relative; overflow: hidden; }
.page-hero-bg { position: absolute; inset: 0; }
.page-hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 1; }
.page-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 40%, transparent 100%);
}
.page-hero-content { position: relative; z-index: 2; }
.page-hero-content h1 { color: #FFFFFF; }
.page-hero-content .section-subtitle { color: rgba(255,255,255,0.9); }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: #FFFFFF; margin-bottom: 20px; font-weight: 600; }
.breadcrumb a { color: var(--gold); }
.breadcrumb span { color: rgba(255,255,255,0.7); }

/* ===== ANIMATE ON SCROLL ===== */
.aos { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.aos.visible { opacity: 1; transform: translateY(0); }
.aos-delay-1 { transition-delay: 0.1s; }
.aos-delay-2 { transition-delay: 0.2s; }
.aos-delay-3 { transition-delay: 0.3s; }
.aos-delay-4 { transition-delay: 0.4s; }

/* ===== FORM ===== */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 0.82rem; color: var(--text-muted); margin-bottom: 8px; letter-spacing: 0.5px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; background: var(--dark-4); border: 1px solid rgba(var(--text-rgb),0.08);
  border-radius: 8px; padding: 14px 18px; color: var(--white);
  font-size: 0.9rem; font-family: 'Inter', sans-serif; transition: var(--transition);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,168,76,0.15);
}
.form-group textarea { height: 120px; resize: vertical; }
.form-group select option { background: var(--dark-4); }

/* ===== ACCORDION ===== */
.accordion-item { border: 1px solid rgba(var(--text-rgb),0.07); border-radius: var(--radius); overflow: hidden; margin-bottom: 12px; }
.accordion-header { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; cursor: pointer; background: var(--dark-3); transition: var(--transition); }
.accordion-header:hover { background: var(--dark-4); }
.accordion-header h4 { font-size: 1rem; font-family: 'Inter', sans-serif; font-weight: 600; }
.accordion-icon { font-size: 1.2rem; color: var(--gold); transition: var(--transition); }
.accordion-item.open .accordion-icon { transform: rotate(45deg); }
.accordion-body { max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.4s ease; }
.accordion-body.open { max-height: 400px; }
.accordion-body p { padding: 20px 24px; font-size: 0.9rem; color: var(--text-muted); line-height: 1.7; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(2,1fr); }
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 768px) {
  section { padding: 80px 5%; }
  .nav-links { display: none; }
  .nav-cta .btn-call { display: none; }
  .hamburger { display: flex; order: 3; }
  .nav-cta { order: 2; margin-right: 12px; }
  .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; }
  .stats-bar { flex-wrap: wrap; }
  .stat-item { min-width: 50%; border-right: none; border-bottom: 1px solid rgba(201,168,76,0.1); }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .hero-btns, .cta-btns { flex-direction: column; width: 100%; }
  .hero-btns a, .cta-btns a { width: 100%; justify-content: center; padding: 18px 32px; }
}
