/* =========================================
   Brivaa Estates — shared stylesheet
   ========================================= */

:root {
  --navy: #0f2a44;
  --navy-soft: #1a3a5c;
  --gold: #c9a24d;
  --gold-soft: #d9b566;
  --light: #f8f9fb;
  --text: #333;
  --muted: #6b7280;
  --border: #e8ebf0;
  --shadow-sm: 0 2px 8px rgba(15, 42, 68, 0.06);
  --shadow-md: 0 6px 24px rgba(15, 42, 68, 0.10);
  --shadow-lg: 0 12px 40px rgba(15, 42, 68, 0.18);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: white;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  color: var(--navy);
  font-weight: 600;
  line-height: 1.2;
}

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

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

section { padding: 80px 20px; }

.container { max-width: 1100px; margin: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 40px;
  font-weight: 500;
  margin: 6px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 15px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-primary { background: var(--gold); color: #111; }
.btn-primary:hover { background: var(--gold-soft); }
.btn-outline { border: 1px solid white; color: white; background: transparent; }
.btn-outline:hover { background: rgba(255,255,255,0.1); }
.btn-dark { background: var(--navy); color: white; }
.btn-dark:hover { background: var(--navy-soft); }

/* ---------- Top Bar (hamburger) ---------- */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  background: rgba(255,255,255,0.0);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.topbar.scrolled,
.topbar.solid {
  background: white;
  box-shadow: var(--shadow-sm);
}
.topbar.scrolled .hamburger span,
.topbar.solid .hamburger span { background: var(--navy); }
.topbar.scrolled .topbar-brand,
.topbar.solid .topbar-brand { color: var(--navy); }

.hamburger {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  transition: background 0.2s ease;
}
.hamburger:hover { background: rgba(255,255,255,0.12); }
.topbar.scrolled .hamburger:hover,
.topbar.solid .hamburger:hover { background: rgba(15,42,68,0.06); }
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.topbar-brand {
  font-family: 'Playfair Display', serif;
  color: white;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* ---------- Drawer ---------- */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 42, 68, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 200;
}
.drawer-overlay.open { opacity: 1; pointer-events: auto; }

.drawer {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 320px;
  max-width: 85vw;
  background: var(--navy);
  color: white;
  z-index: 201;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
  display: flex;
  flex-direction: column;
  padding: 30px 28px;
  box-shadow: var(--shadow-lg);
}
.drawer.open { transform: translateX(0); }

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}
.drawer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.drawer-logo img { width: 40px; height: 40px; object-fit: contain; }
.drawer-logo span {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  letter-spacing: 0.5px;
}
.drawer-close {
  background: none;
  border: none;
  color: white;
  font-size: 28px;
  cursor: pointer;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}
.drawer-close:hover { background: rgba(255,255,255,0.1); }

.drawer-nav { display: flex; flex-direction: column; gap: 4px; }
.drawer-nav a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 14px;
  border-radius: 10px;
  font-size: 16px;
  color: rgba(255,255,255,0.9);
  transition: background 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
  position: relative;
}
.drawer-nav a:hover {
  background: rgba(255,255,255,0.06);
  color: var(--gold);
  padding-left: 18px;
}
.drawer-nav a.active {
  background: rgba(201, 162, 77, 0.12);
  color: var(--gold);
}
.drawer-nav .nav-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  opacity: 0.85;
}

.drawer-footer {
  margin-top: auto;
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
}
.drawer-footer a { color: var(--gold); }

/* ---------- Page hero (for non-home pages) ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-soft) 100%);
  color: white;
  text-align: center;
  padding: 160px 20px 100px;
}
.page-hero h1 {
  color: white;
  font-size: 44px;
  margin-bottom: 14px;
}
.page-hero p {
  font-size: 18px;
  opacity: 0.9;
  max-width: 700px;
  margin: auto;
}
.page-hero .accent {
  display: inline-block;
  width: 50px;
  height: 3px;
  background: var(--gold);
  margin-bottom: 20px;
  border-radius: 2px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: #0a1d31;
  color: rgba(255,255,255,0.7);
  padding: 50px 20px 30px;
  text-align: center;
}
.site-footer .container { display: flex; flex-direction: column; gap: 20px; }
.site-footer a { color: var(--gold); }
.site-footer .copy { font-size: 13px; opacity: 0.7; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.08); }

/* ---------- WhatsApp floating ---------- */
.whatsapp-fab {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #25D366;
  color: white;
  padding: 14px 22px;
  border-radius: 50px;
  font-weight: 500;
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
  z-index: 50;
  transition: transform 0.2s ease;
}
.whatsapp-fab:hover { transform: translateY(-2px); }

/* ---------- Responsive ---------- */
@media (max-width: 600px) {
  section { padding: 60px 18px; }
  .page-hero { padding: 130px 18px 70px; }
  .page-hero h1 { font-size: 34px; }
}
