/* ================================================================
   PANTHEION REAL ESTATE — Site-wide Stylesheet
   Brand palette:
     Primary:    #30304A  (deep navy-charcoal)
     Terracotta: #70473A
     Warm brown: #93785c
     Stone:      #9a9488
     Body text:  #444444
     Background: #fbfaec  (warm off-white)
   ================================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Brand */
  --primary:       #30304A;
  --primary-light: #44446A;
  --primary-pale:  #EEEEF5;
  --terra:         #70473A;
  --brown:         #93785c;
  --stone:         #9a9488;
  --stone-light:   #c8c4bc;

  /* Page */
  --bg:            #fbfaec;
  --bg-warm:       #f5f2e4;
  --bg-dark:       #f0ece0;
  --text:          #444444;
  --text-dark:     #1e1e2e;
  --text-muted:    #7a7a6a;
  --border:        #ddd9cc;
  --white:         #ffffff;

  /* Type */
  --ff-display: 'Cormorant Garamond', serif;
  --ff-body:    'Jost', sans-serif;

  /* Spacing */
  --nav-h: 76px;
}

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: var(--ff-body);
  font-size: 16px;
  line-height: 1.7;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

/* ================================================================
   GLOBAL NAV
   ================================================================ */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5vw;
  transition: background 0.4s ease, box-shadow 0.4s ease;
}
.site-nav.scrolled {
  background: rgba(48, 48, 74, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 2px 24px rgba(0,0,0,0.18);
}

/* Logo */
.site-nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  height: 36px;
  margin-left: -4px;
}
.site-nav-logo img {
  height: 36px;
  width: auto;
  display: block;
  object-fit: contain;
  filter: brightness(0) invert(1);
}
.site-nav-logo-fallback {
  font-family: var(--ff-display);
  font-size: 22px;
  font-weight: 600;
  color: white;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* Desktop links */
.site-nav-links {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
}
.site-nav-links > li {
  position: relative;
}
.site-nav-links > li > a,
.site-nav-links > li > button {
  display: block;
  padding: 0 18px;
  height: var(--nav-h);
  line-height: var(--nav-h);
  font-family: var(--ff-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.82);
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s;
  white-space: nowrap;
}
.site-nav-links > li > a:hover,
.site-nav-links > li > button:hover { color: white; }

/* Dropdown */
.site-nav-links .has-dropdown { position: relative; }
.site-nav-dropdown {
  display: none;
  position: absolute;
  top: calc(var(--nav-h) - 2px);
  left: 0;
  background: var(--primary);
  min-width: 220px;
  border-top: 2px solid var(--terra);
  box-shadow: 0 12px 32px rgba(0,0,0,0.25);
  z-index: 100;
}
.has-dropdown:hover .site-nav-dropdown { display: block; }
.site-nav-dropdown a {
  display: block;
  padding: 14px 20px;
  font-family: var(--ff-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  transition: color 0.2s, background 0.2s;
}
.site-nav-dropdown a:hover { color: white; background: rgba(255,255,255,0.06); }

/* Enquire CTA */
.nav-enquire-btn {
  padding: 10px 24px !important;
  height: auto !important;
  line-height: 1 !important;
  background: var(--terra) !important;
  color: white !important;
  border-radius: 0 !important;
  letter-spacing: 1.8px !important;
  font-weight: 600 !important;
  margin-left: 8px;
  transition: background 0.2s !important;
}
.nav-enquire-btn:hover { background: var(--brown) !important; }

/* Hamburger */
.site-nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.site-nav-hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: white;
  transition: all 0.3s;
}

/* Mobile drawer */
.site-mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-h); left: 0; right: 0; bottom: 0;
  background: rgba(48,48,74,0.98);
  backdrop-filter: blur(20px);
  z-index: 999;
  overflow-y: auto;
  padding: 24px 6vw 48px;
  flex-direction: column;
  gap: 0;
}
.site-mobile-menu.open { display: flex; }
.site-mobile-menu a,
.site-mobile-menu button {
  display: block;
  padding: 16px 0;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  background: none;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  cursor: pointer;
  text-align: left;
  transition: color 0.2s;
  width: 100%;
}
.site-mobile-menu a:hover,
.site-mobile-menu button:hover { color: white; }
.site-mobile-submenu {
  display: none;
  padding-left: 20px;
}
.site-mobile-submenu.open { display: block; }
.site-mobile-submenu a {
  font-size: 12px;
  padding: 12px 0;
  color: rgba(255,255,255,0.55);
  border-bottom: none;
}

/* ================================================================
   SITE FOOTER
   ================================================================ */
.site-footer {
  background: var(--primary);
  padding: 48px 5vw 40px;
  color: rgba(255,255,255,0.5);
  border-top: 6px solid rgba(255, 255, 255, 0.12);
}
.site-footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 48px;
  align-items: start;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 36px;
}
.site-footer-logo {
  height: 52px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.9;
  display: block;
  margin-bottom: 20px;
  margin-left: -4px;
}
.site-footer-tagline {
  font-family: var(--ff-display);
  font-size: 17px;
  font-weight: 300;
  color: rgba(255,255,255,0.65);
  line-height: 1.55;
  margin-bottom: 20px;
  max-width: 280px;
}
.site-footer-social {
  display: flex;
  gap: 14px;
  align-items: center;
}
.site-footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px; height: 24px;
  border: none;
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  transition: color 0.2s;
}
.site-footer-social a:hover {
  color: white;
  background: none;
}
.site-footer-heading {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--stone-light);
  margin-bottom: 20px;
}
.site-footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.site-footer-links a {
  font-size: 14px;
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  transition: color 0.2s;
  line-height: 1.5;
}
.site-footer-links a:hover { color: white; }
.site-footer-address {
  font-size: 14px;
  color: rgba(255,255,255,0.45);
  line-height: 1.5;
}
.site-footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.site-footer-copy {
  font-size: 14px;
  color: rgba(255,255,255,0.25);
}

/* ================================================================
   SHARED SECTION PRIMITIVES
   ================================================================ */
.section-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--terra);
  margin-bottom: 10px;
}
.section-label--light { color: rgba(255,255,255,0.5); }

.section-title {
  font-family: var(--ff-display);
  font-size: clamp(30px, 3vw, 38px);
  font-weight: 400;
  color: var(--primary);
  line-height: 1.1;
  letter-spacing: -0.5px;
}
.section-title--light { color: white; }
.section-title--center { text-align: center; }

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* ================================================================
   ENQUIRY POPUP  (site-wide, simple single-step)
   ================================================================ */
.site-popup-overlay {
  position: fixed; inset: 0;
  background: rgba(30, 30, 48, 0.75);
  backdrop-filter: blur(6px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.site-popup-overlay.active { opacity: 1; pointer-events: auto; }

.site-popup-modal {
  background: var(--bg);
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 52px 48px 44px;
  position: relative;
  transform: translateY(16px);
  transition: transform 0.3s ease;
  scrollbar-width: none;
}
.site-popup-modal::-webkit-scrollbar { display: none; }
.site-popup-overlay.active .site-popup-modal { transform: translateY(0); }

.site-popup-close {
  position: absolute; top: 20px; right: 24px;
  background: none; border: none;
  font-size: 24px; line-height: 1;
  color: var(--stone); cursor: pointer;
  transition: color 0.2s; padding: 4px 8px;
}
.site-popup-close:hover { color: var(--primary); }

.site-popup-label {
  font-size: 10px; font-weight: 600;
  letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--terra); margin-bottom: 8px;
}
.site-popup-title {
  font-family: var(--ff-display);
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 400;
  color: var(--primary);
  margin-bottom: 6px;
}
.site-popup-sub {
  font-size: 14px; color: var(--text-muted); line-height: 1.6; margin-bottom: 32px;
}
.site-popup-form .form-group { margin-bottom: 18px; }
.site-popup-form .form-group label {
  display: block; font-size: 10px;
  letter-spacing: 1.8px; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 7px;
}
.site-popup-form .form-group input,
.site-popup-form .form-group select,
.site-popup-form .form-group textarea {
  width: 100%;
  background: white;
  border: 1px solid var(--border);
  border-radius: 2px;
  color: var(--text);
  padding: 12px 14px;
  font-family: var(--ff-body); font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
  appearance: none;
  resize: vertical;
}
.site-popup-form .form-group input::placeholder { color: #b0ad9e; }
.site-popup-form .form-group input:focus,
.site-popup-form .form-group select:focus,
.site-popup-form .form-group textarea:focus { border-color: var(--primary); }
.site-popup-form .form-group select option { background: white; color: var(--text); }

.btn-primary {
  display: inline-block;
  padding: 15px 40px;
  background: var(--primary);
  color: white;
  font-family: var(--ff-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s;
}
.btn-primary:hover { background: var(--primary-light); }
.btn-primary--full { display: block; width: 100%; text-align: center; }
.btn-primary--terra { background: var(--terra); }
.btn-primary--terra:hover { background: var(--brown); }

.btn-outline-primary {
  display: inline-block;
  padding: 14px 36px;
  border: 1.5px solid var(--primary);
  color: var(--primary);
  font-family: var(--ff-body);
  font-size: 11px; font-weight: 600;
  letter-spacing: 2px; text-transform: uppercase;
  background: transparent;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s;
}
.btn-outline-primary:hover { background: var(--primary); color: white; }
.btn-outline-light {
  border: 1.5px solid rgba(255,255,255,0.45);
  color: white;
  background: transparent;
  padding: 14px 36px;
  font-family: var(--ff-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
  transition: all 0.25s;
}
.btn-outline-light:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.8);
  color: white;
}

/* ================================================================
   FLOATING BUTTONS
   ================================================================ */
.site-floating-btns {
  position: fixed;
  right: 20px; bottom: 32px;
  z-index: 900;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}
.site-float-btn {
  width: 50px; height: 50px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  flex-shrink: 0;
}
.site-float-btn:hover { transform: scale(1.1); box-shadow: 0 6px 20px rgba(0,0,0,0.35); }
.site-float-wa   { background: #25D366; }
.site-float-call { background: var(--terra); }

/* ================================================================
   RESPONSIVE — NAV + FOOTER
   ================================================================ */
@media (max-width: 1024px) {
  .site-footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .site-nav-links { display: none; }
  .site-nav-hamburger { display: flex; }

  .site-floating-btns {
    right: 0; bottom: 72px; gap: 0;
  }
  .site-float-btn {
    width: 42px; height: 42px;
    border-radius: 8px 0 0 8px;
    box-shadow: -2px 2px 12px rgba(0,0,0,0.25);
    margin-bottom: 8px;
  }
}

@media (max-width: 640px) {
  .site-footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .site-footer-logo { margin-bottom: 0; }
  .site-footer-bottom { flex-direction: column; align-items: flex-start; gap: 16px; }
  .site-footer { padding-bottom: 60px; }
  .site-popup-modal { padding: 40px 24px 32px; }
}
[data-carousel] .reveal,
[data-carousel] .reveal.visible {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
  transition-delay: 0s !important;
}
