/* ============================================
   ESTATESENSE DEVELOPER — SHARED STYLESHEET
   ============================================ */

/* ---- VARIABLES ---- */
:root {
  --blue-dark:   #0b1f4b;
  --blue:        #133580;
  --blue-light:  #1e4db7;
  --gold:        #c9a227;
  --gold-light:  #e8c84a;
  --gold-pale:   #f5e199;
  --white:       #ffffff;
  --off-white:   #f8f6f0;
  --gray:        #6b7280;
  --gray-light:  #f3f4f6;
  --dark:        #0d1117;
  --shadow:      0 4px 24px rgba(11,31,75,0.12);
  --shadow-lg:   0 12px 40px rgba(11,31,75,0.18);
  --radius:      12px;
  --transition:  all 0.3s ease;
}

/* ---- RESET ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  color: var(--dark);
  background: var(--white);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ---- UTILITY ---- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.section-tag {
  display: inline-block;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--blue-dark);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: 30px;
  margin-bottom: 14px;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(26px, 3.5vw, 42px);
  font-weight: 800;
  color: var(--blue-dark);
  line-height: 1.2;
}
.section-title span { color: var(--gold); }

.section-subtitle {
  font-size: 16px;
  color: var(--gray);
  line-height: 1.75;
  max-width: 600px;
  margin-top: 12px;
}

.divider {
  width: 60px; height: 4px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  border-radius: 2px;
  margin: 16px 0 24px;
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--blue-dark);
  font-weight: 700;
  font-size: 15px;
  padding: 14px 32px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 16px rgba(201,162,39,0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(201,162,39,0.5);
}
.btn-outline-blue {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--blue-dark);
  font-weight: 700;
  font-size: 15px;
  padding: 13px 32px;
  border-radius: 50px;
  border: 2px solid var(--blue-dark);
  cursor: pointer;
  transition: var(--transition);
}
.btn-outline-blue:hover {
  background: var(--blue-dark);
  color: var(--white);
}
.btn-white {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  color: var(--blue-dark);
  font-weight: 700;
  font-size: 15px;
  padding: 14px 32px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}
.btn-white:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
}
.btn-outline-white {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--white);
  font-weight: 700;
  font-size: 15px;
  padding: 13px 32px;
  border-radius: 50px;
  border: 2px solid rgba(255,255,255,0.6);
  cursor: pointer;
  transition: var(--transition);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.15);
  border-color: var(--white);
}

/* ============================================
   TOP BAR
============================================ */
.top-bar {
  background: var(--blue-dark);
  padding: 9px 0;
  font-size: 13px;
  color: rgba(255,255,255,0.75);
}
.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.top-bar-left { display: flex; gap: 20px; align-items: center; }
.top-bar-left i, .top-bar-right i { margin-right: 5px; color: var(--gold); }
.top-bar-right { display: flex; gap: 20px; align-items: center; }
.top-bar a { color: rgba(255,255,255,0.7); transition: var(--transition); }
.top-bar a:hover { color: var(--gold-light); }

/* ============================================
   NAVBAR
============================================ */
.navbar {
  background: var(--white);
  box-shadow: 0 2px 20px rgba(11,31,75,0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: var(--transition);
}
.navbar.scrolled {
  box-shadow: 0 4px 30px rgba(11,31,75,0.15);
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.logo-icon {
  width: 46px; height: 46px;
  background: linear-gradient(135deg, var(--blue-dark), var(--blue-light));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 20px;
}
.logo-text strong {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 19px;
  font-weight: 800;
  color: var(--blue-dark);
  line-height: 1.1;
}
.logo-text span {
  font-size: 10px;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav-links a {
  font-size: 14px;
  font-weight: 600;
  color: var(--blue-dark);
  padding: 8px 13px;
  border-radius: 8px;
  transition: var(--transition);
  white-space: nowrap;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--gold);
  background: rgba(201,162,39,0.08);
}
.nav-cta {
  background: linear-gradient(135deg, var(--gold), var(--gold-light)) !important;
  color: var(--blue-dark) !important;
  padding: 10px 22px !important;
  border-radius: 50px !important;
  box-shadow: 0 4px 14px rgba(201,162,39,0.3);
  margin-left: 6px;
}
.nav-cta:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 22px rgba(201,162,39,0.5) !important;
}
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
}
.hamburger span {
  width: 26px; height: 2.5px;
  background: var(--blue-dark);
  border-radius: 2px;
  transition: var(--transition);
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--blue-dark);
  z-index: 9999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--white);
  transition: var(--transition);
}
.mobile-menu a:hover { color: var(--gold-light); }
.mobile-close {
  position: absolute;
  top: 24px; right: 24px;
  font-size: 28px;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  transition: var(--transition);
}
.mobile-close:hover { color: var(--gold); }

/* ============================================
   PAGE HERO BANNER (inner pages)
============================================ */
.page-hero {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 100%);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 80% 50%, rgba(201,162,39,0.1) 0%, transparent 60%),
    url('https://images.unsplash.com/photo-1600585154340-be6161a56a0c?w=1400&q=70') center/cover no-repeat;
  opacity: 0.15;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(201,162,39,0.15);
  border: 1px solid rgba(201,162,39,0.35);
  color: var(--gold-light);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 7px 18px;
  border-radius: 30px;
  margin-bottom: 16px;
}
.page-hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(32px, 5vw, 54px);
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 16px;
}
.page-hero-title span {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.page-hero-subtitle {
  font-size: 16px;
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
  max-width: 580px;
  margin-bottom: 28px;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255,255,255,0.55);
}
.breadcrumb a { color: var(--gold-light); }
.breadcrumb i { font-size: 10px; }

/* ============================================
   TRUST STRIP
============================================ */
.trust-strip {
  background: linear-gradient(135deg, var(--blue-dark), var(--blue));
  padding: 24px 0;
}
.trust-strip .container {
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.trust-badge {
  display: flex;
  align-items: center;
  gap: 12px;
}
.trust-badge-icon {
  width: 44px; height: 44px;
  background: rgba(201,162,39,0.15);
  border: 1px solid rgba(201,162,39,0.3);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-light);
  font-size: 18px;
  flex-shrink: 0;
}
.trust-badge-text strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
}
.trust-badge-text span {
  font-size: 11px;
  color: rgba(255,255,255,0.55);
}
.trust-divider { width: 1px; height: 44px; background: rgba(255,255,255,0.12); }

/* ============================================
   CTA BANNER
============================================ */
.cta-banner {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  padding: 56px 0;
}
.cta-banner .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-text h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 800;
  color: var(--blue-dark);
  margin-bottom: 6px;
}
.cta-text p { font-size: 15px; color: rgba(11,31,75,0.7); }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ============================================
   FOOTER
============================================ */
.footer {
  background: var(--blue-dark);
  color: rgba(255,255,255,0.7);
  padding: 70px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 50px;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.footer-logo-icon {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-dark);
  font-size: 18px;
}
.footer-logo-text strong {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 800;
  color: var(--white);
}
.footer-logo-text span {
  font-size: 10px;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.footer-desc {
  font-size: 14px;
  line-height: 1.75;
  margin-bottom: 24px;
}
.footer-socials { display: flex; gap: 10px; }
.footer-social {
  width: 38px; height: 38px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  font-size: 14px;
  transition: var(--transition);
}
.footer-social:hover {
  background: var(--gold);
  color: var(--blue-dark);
  border-color: var(--gold);
}
.footer-col h4 {
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 7px;
}
.footer-col ul li a i { font-size: 10px; color: var(--gold); }
.footer-col ul li a:hover { color: var(--gold-light); padding-left: 4px; }
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  margin-bottom: 14px;
  line-height: 1.5;
}
.footer-contact-item i { color: var(--gold); font-size: 14px; margin-top: 2px; flex-shrink: 0; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
}
.footer-bottom span { color: var(--gold); }

/* ============================================
   SCROLL TO TOP
============================================ */
.scroll-top {
  position: fixed;
  bottom: 28px; right: 28px;
  width: 48px; height: 48px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--blue-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(201,162,39,0.4);
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
  z-index: 998;
}
.scroll-top.visible { opacity: 1; pointer-events: all; }
.scroll-top:hover { transform: translateY(-3px); }

/* ============================================
   SCROLL REVEAL
============================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   RESPONSIVE (shared)
============================================ */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media (max-width: 768px) {
  .top-bar { display: none; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .trust-divider { display: none; }
  .cta-banner .container { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}
