/* ============================================================
   CSS CUSTOM PROPERTIES & THEMES
   ============================================================ */
:root {
  --navy:       #1565C0;
  --navy-dark:  #0D47A1;
  --navy-mid:   #1976D2;
  --gold:       #B5924C;
  --gold-light: #D4B483;
  --black:      #0A0A0A;
  --white:      #FFFFFF;
  --off-white:  #F8F7F5;
  --gray-100:   #F3F3F3;
  --gray-200:   #E5E5E5;
  --gray-400:   #9CA3AF;
  --gray-600:   #6B7280;
  --gray-700:   #374151;
  --gray-800:   #1F2937;
  --red-accent: #EF4444;
  --nav-height: 72px;
  --radius:     6px;
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.12);
  --shadow-md:  0 4px 16px rgba(0,0,0,0.18);
}
[data-theme="ocean"]   { --gold:#1565C0; --gold-light:#5B9BD5; }
[data-theme="emerald"] { --gold:#2E7D32; --gold-light:#66BB6A; }
[data-theme="slate"]   { --gold:#546E7A; --gold-light:#90A4AE; }
[data-theme="sunset"]  { --gold:#C0622B; --gold-light:#E8956A; }

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', Arial, sans-serif; background: var(--white); color: var(--black); line-height: 1.6; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
h1, h2, h3, h4, h5 { font-weight: 700; line-height: 1.25; }
p { line-height: 1.7; }

/* ============================================================
   CONTAINER
   ============================================================ */
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* ============================================================
   NAVBAR
   ============================================================ */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(21,101,192,0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: background 0.3s, box-shadow 0.3s;
}
#navbar.scrolled {
  background: var(--navy-dark);
  box-shadow: 0 2px 20px rgba(0,0,0,0.35);
}
.nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-logo { display: flex; flex-direction: column; gap: 1px; flex-shrink: 0; text-decoration: none; }
.logo-name { color: var(--white); font-size: 1.05rem; font-weight: 700; letter-spacing: .02em; }
.logo-tag  { color: var(--gold-light); font-size: .65rem; font-weight: 500; letter-spacing: .07em; text-transform: uppercase; }
.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a { color: rgba(255,255,255,0.8); font-size: .875rem; font-weight: 500; transition: color .2s; text-decoration: none; }
.nav-links a:hover { color: var(--white); }
.nav-links a.active { color: var(--white); border-bottom: 2px solid var(--gold); padding-bottom: 2px; }

/* Theme Selector */
.theme-selector-wrap { margin-left: auto; position: relative; }
.theme-selector-btn {
  display: flex; align-items: center; gap: 7px;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius); padding: 6px 11px;
  color: var(--white); font-size: .76rem; font-weight: 500;
  cursor: pointer; transition: background .2s;
}
.theme-selector-btn:hover { background: rgba(255,255,255,0.14); }
.theme-selector-btn svg { width: 11px; height: 11px; stroke: currentColor; fill: none; stroke-width: 2.5; }
.theme-swatch { width: 11px; height: 11px; border-radius: 50%; flex-shrink: 0; }
.theme-dropdown {
  display: none; position: absolute; top: calc(100% + 8px); right: 0;
  background: var(--navy-dark); border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius); min-width: 155px;
  box-shadow: var(--shadow-md); z-index: 200; overflow: hidden;
}
.theme-dropdown.open { display: block; }
.theme-option {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 13px; cursor: pointer;
  color: rgba(255,255,255,0.78); font-size: .8rem;
  transition: background .15s;
}
.theme-option:hover { background: rgba(255,255,255,0.06); }
.theme-option.active { color: var(--white); background: rgba(255,255,255,0.04); }

/* Hamburger */
.nav-hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 6px; margin-left: auto;
}
.nav-hamburger span { display: block; width: 22px; height: 2px; background: var(--white); border-radius: 2px; transition: transform .25s, opacity .25s; }
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-cta { flex-shrink: 0; }

/* Mobile Menu */
.nav-mobile {
  display: none; position: fixed;
  top: var(--nav-height); left: 0; right: 0; bottom: 0;
  background: var(--navy-dark); flex-direction: column;
  padding: 28px 24px; gap: 14px; overflow-y: auto; z-index: 999;
}
.nav-mobile.open { display: flex; }
.nav-mobile a { color: rgba(255,255,255,0.82); font-size: 1.05rem; font-weight: 500; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.07); text-decoration: none; }
.nav-mobile a:last-of-type { border-bottom: none; }
.theme-mobile-label { font-size: .68rem; color: var(--gray-400); font-weight: 700; text-transform: uppercase; letter-spacing: .07em; margin-top: 12px; display: block; }
#theme-mobile-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.theme-mobile-btn { padding: 6px 13px; border: 1.5px solid rgba(255,255,255,0.2); border-radius: 100px; background: none; color: rgba(255,255,255,0.68); font-size: .76rem; cursor: pointer; transition: all .2s; }
.theme-mobile-btn.active { border-color: var(--gold); color: var(--gold); background: rgba(181,146,76,.08); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 11px 22px; border-radius: var(--radius);
  font-weight: 600; font-size: .875rem;
  cursor: pointer; border: none; transition: all .2s;
  text-decoration: none; white-space: nowrap; font-family: inherit;
}
.btn-gold { background: var(--gold); color: var(--white); }
.btn-gold:hover { filter: brightness(1.1); }
.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: var(--navy-mid); }
.btn-sm { padding: 7px 15px; font-size: .78rem; }
.btn-outline-white { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,0.45); }
.btn-outline-white:hover { background: rgba(255,255,255,0.08); border-color: var(--white); }
.btn-outline { background: transparent; color: var(--black); border: 1.5px solid var(--gray-200); }
.btn-outline:hover { border-color: var(--gray-400); }

/* ============================================================
   TYPOGRAPHY UTILITIES
   ============================================================ */
.eyebrow { display: block; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--gold); margin-bottom: 10px; }
.section-pad { padding: 72px 0; }
.section-header { margin-bottom: 44px; }
.section-header.center { text-align: center; }
.section-header h2 { font-size: 1.9rem; margin-top: 8px; }

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.page-hero {
  background: var(--navy);
  padding: calc(var(--nav-height) + 56px) 0 56px;
  text-align: center; color: var(--white);
}
.page-hero h1 { font-size: 2.5rem; margin-bottom: 12px; }
.page-hero p  { font-size: 1.02rem; color: rgba(255,255,255,0.72); max-width: 580px; margin: 0 auto; }

/* ============================================================
   HOME HERO (index.html)
   ============================================================ */
.home-hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center;
  overflow: hidden; background: var(--navy);
}
.hero-bg {
  position: absolute; inset: 0;
  background: url('../images/Signature.jpg') center/cover no-repeat;
  transform: scale(1.06);
  transition: transform 7s ease-out;
}
.hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(13,71,161,0.92) 35%, rgba(13,71,161,0.55) 100%);
}
.hero-bg.loaded { transform: scale(1); }
.home-hero-content {
  position: relative; z-index: 1; width: 100%;
  padding: calc(var(--nav-height) + 56px) 0 80px;
}
.home-hero-content .container { text-align: left; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(181,146,76,.15); border: 1px solid rgba(181,146,76,.3);
  border-radius: 100px; padding: 5px 14px; margin-bottom: 22px;
}
.hero-badge span { color: var(--gold-light); font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; }
.home-hero h1 { font-size: clamp(2.2rem,5vw,3.8rem); color: var(--white); line-height: 1.15; margin-bottom: 18px; max-width: 640px; }
.home-hero h1 em { font-style: normal; color: var(--gold); }
.hero-sub { font-size: 1.05rem; color: rgba(255,255,255,0.7); max-width: 500px; margin-bottom: 32px; line-height: 1.75; }
.hero-cta-row { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 52px; }
.hero-stats { display: flex; gap: 40px; flex-wrap: wrap; }
.hero-stat { display: flex; flex-direction: column; }
.hero-stat-num { font-size: 1.7rem; font-weight: 700; color: var(--white); line-height: 1; }
.hero-stat-lbl { font-size: .68rem; color: var(--gold-light); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; margin-top: 4px; }

/* ============================================================
   CTA BAND
   ============================================================ */
.cta-band { background: var(--navy-dark); padding: 72px 0; text-align: center; color: var(--white); }
.cta-band h2 { font-size: 2rem; margin-bottom: 12px; }
.cta-band p  { color: rgba(255,255,255,0.62); max-width: 540px; margin: 0 auto 30px; }
.cta-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   LISTINGS GRID & PROPERTY CARDS
   ============================================================ */
.listings-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px,1fr)); gap: 24px; }
.prop-card {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: 8px; overflow: hidden;
  transition: transform .25s, box-shadow .25s;
  display: flex; flex-direction: column;
}
.prop-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.prop-card-img { position: relative; aspect-ratio: 16/10; overflow: hidden; background: var(--gray-100); }
.prop-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.prop-card:hover .prop-card-img img { transform: scale(1.04); }
.prop-badge { position: absolute; top: 12px; left: 12px; padding: 3px 10px; border-radius: 100px; font-size: .65rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.badge-coming-soon { background: var(--gold); color: var(--white); }
.badge-active      { background: #16a34a; color: var(--white); }
.badge-value       { background: #2563eb; color: var(--white); }
.prop-save {
  position: absolute; top: 12px; right: 12px;
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255,255,255,0.9); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: background .2s;
}
.prop-save svg { width: 15px; height: 15px; stroke: var(--gray-600); fill: none; stroke-width: 2; transition: stroke .2s, fill .2s; }
.prop-save.saved svg { stroke: var(--red-accent); fill: var(--red-accent); }
.prop-card a { color: inherit; text-decoration: none; }
.prop-card-body { padding: 16px; flex: 1; }
.prop-price { font-size: 1.2rem; font-weight: 700; color: var(--black); margin-bottom: 4px; }
.prop-address { font-size: .78rem; color: var(--gray-600); margin-bottom: 12px; }
.prop-specs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.prop-spec { display: flex; align-items: center; gap: 4px; font-size: .72rem; color: var(--gray-800); background: var(--off-white); padding: 3px 8px; border-radius: 4px; }
.prop-spec svg { width: 11px; height: 11px; stroke: currentColor; fill: none; stroke-width: 2; }
.prop-note { font-size: .72rem; color: var(--gray-600); line-height: 1.5; }
.prop-card-footer { padding: 11px 16px; border-top: 1px solid var(--gray-100); display: flex; align-items: center; justify-content: space-between; }
.prop-community { font-size: .68rem; font-weight: 700; color: var(--gray-400); text-transform: uppercase; letter-spacing: .05em; }
.prop-cta { display: flex; align-items: center; gap: 4px; font-size: .78rem; font-weight: 600; color: var(--gold); transition: gap .2s; }
.prop-cta:hover { gap: 8px; }
.prop-cta svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 2.5; }

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.about-img-wrap { position: relative; border: 3px solid var(--gold); border-radius: 4px; }
.about-img-wrap img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 2px; display: block; }
.about-img-accent { display: none; }

/* ============================================================
   FORMS
   ============================================================ */
.form-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: 8px; padding: 28px; box-shadow: var(--shadow-sm); }
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: .74rem; font-weight: 600; color: var(--gray-800); margin-bottom: 5px; text-transform: uppercase; letter-spacing: .04em; }
.form-input, .form-select, .form-textarea {
  width: 100%; padding: 9px 13px;
  border: 1.5px solid var(--gray-200); border-radius: var(--radius);
  font-size: .88rem; color: var(--black); background: var(--white);
  transition: border-color .2s; font-family: inherit; appearance: auto;
}
.form-input:focus, .form-select:focus, .form-textarea:focus { outline: none; border-color: var(--gold); }
.form-textarea { min-height: 108px; resize: vertical; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-success { display: none; text-align: center; padding: 36px 16px; }
.form-success.show { display: block; }
.form-success-icon { width: 52px; height: 52px; border-radius: 50%; background: var(--gold); color: var(--white); font-size: 1.4rem; display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; }
.form-success h4 { font-size: 1.2rem; margin-bottom: 8px; }
.form-success p  { color: var(--gray-600); font-size: .86rem; }

.checklist { list-style: none; }
.checklist li { display: flex; align-items: flex-start; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--gray-100); font-size: .84rem; color: var(--gray-800); }
.checklist li:last-child { border-bottom: none; }
.checklist li::before { content: '✓'; color: var(--gold); font-weight: 700; font-size: .88rem; flex-shrink: 0; margin-top: 2px; }

/* ============================================================
   PROPERTY DETAIL EXTRAS
   ============================================================ */
.info-box { background: var(--off-white); border-left: 4px solid var(--gold); border-radius: 0 var(--radius) var(--radius) 0; padding: 16px 20px; margin: 20px 0; }
.info-box h5 { font-size: .9rem; margin-bottom: 6px; }
.info-box p  { font-size: .84rem; color: var(--gray-600); line-height: 1.6; margin: 0; }

table.data-table { width: 100%; border-collapse: collapse; font-size: .84rem; }
table.data-table th { background: var(--black); color: var(--white); padding: 10px 14px; text-align: left; font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; }
table.data-table td { padding: 9px 14px; border-bottom: 1px solid var(--gray-100); color: var(--gray-800); }
table.data-table tr:nth-child(even) td { background: var(--off-white); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--navy-dark); color: var(--white); padding: 56px 0 0; }
.footer-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 36px; padding-bottom: 40px; }
.footer-logo { font-size: 1.35rem; font-weight: 700; color: var(--white); margin-bottom: 3px; }
.footer-sub  { font-size: .66rem; color: var(--gold-light); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 14px; }
.footer-contact p { font-size: .8rem; color: rgba(255,255,255,0.5); margin-bottom: 5px; }
.footer-contact a { color: rgba(255,255,255,0.65); transition: color .2s; text-decoration: none; }
.footer-contact a:hover { color: var(--gold); }
.footer-heading { font-size: .66rem; font-weight: 700; color: var(--gray-400); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 14px; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { font-size: .8rem; color: rgba(255,255,255,0.5); transition: color .2s; text-decoration: none; }
.footer-links a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding: 18px 0; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.footer-copy  { font-size: .72rem; color: rgba(255,255,255,0.38); }
.footer-legal { font-size: .7rem;  color: rgba(255,255,255,0.32); }
.footer-admin-link { font-size: .68rem; color: rgba(255,255,255,0.22); transition: color .2s; text-decoration: none; }
.footer-admin-link:hover { color: rgba(255,255,255,0.55); }

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.revealed { opacity: 1; transform: translateY(0); }

/* ============================================================
   TOAST
   ============================================================ */
.toast {
  position: fixed; bottom: 24px; left: 50%;
  transform: translateX(-50%) translateY(70px);
  background: var(--black); color: var(--white);
  padding: 11px 22px; border-radius: 100px;
  font-size: .84rem; font-weight: 500;
  box-shadow: var(--shadow-md); z-index: 9999;
  transition: transform .3s ease, opacity .3s ease;
  opacity: 0; pointer-events: none;
}
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }
.toast.success { background: var(--gold); }

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox-overlay { display: none; position: fixed; inset: 0; z-index: 9998; background: rgba(0,0,0,0.92); align-items: center; justify-content: center; flex-direction: column; }
.lightbox-overlay.open { display: flex; }
.lightbox-img { max-width: 90vw; max-height: 80vh; object-fit: contain; border-radius: 4px; }
.lightbox-caption { color: rgba(255,255,255,0.55); font-size: .8rem; margin-top: 12px; }
.lightbox-close { position: fixed; top: 18px; right: 22px; background: none; border: none; color: var(--white); font-size: 1.4rem; cursor: pointer; padding: 8px; opacity: .7; transition: opacity .2s; }
.lightbox-close:hover { opacity: 1; }

/* ============================================================
   TABS
   ============================================================ */
.tab-nav { display: flex; gap: 0; border-bottom: 1px solid var(--gray-200); margin-bottom: 26px; overflow-x: auto; }
.tab-btn { padding: 10px 18px; background: none; border: none; border-bottom: 2px solid transparent; font-size: .86rem; font-weight: 500; cursor: pointer; color: var(--gray-600); transition: all .2s; margin-bottom: -1px; white-space: nowrap; font-family: inherit; }
.tab-btn.active { color: var(--gold); border-bottom-color: var(--gold); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ============================================================
   MORTGAGE CALCULATOR
   ============================================================ */
#monthly-payment { font-size: 1.6rem; font-weight: 700; color: var(--gold); }

/* ============================================================
   RESOURCES PAGE
   ============================================================ */
.resource-box {
  display: flex; gap: 28px; align-items: flex-start;
  padding: 28px; background: var(--white);
  border: 1px solid var(--gray-200); border-radius: 8px;
  margin-bottom: 20px; box-shadow: var(--shadow-sm);
}
.resource-box img { width: 200px; height: 140px; object-fit: cover; border-radius: var(--radius); flex-shrink: 0; background: var(--gray-100); }
.resource-box h3 { margin-bottom: 8px; font-size: 1.1rem; }
.resource-box p  { font-size: .86rem; color: var(--gray-600); margin-bottom: 10px; }
.resource-box ul { padding-left: 0; list-style: none; }
.resource-box ul li { font-size: .84rem; color: var(--gray-600); padding: 4px 0 4px 16px; position: relative; }
.resource-box ul li::before { content: '•'; color: var(--gold); position: absolute; left: 0; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .nav-links, .theme-selector-wrap, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
}
@media (max-width: 640px) {
  .section-pad { padding: 48px 0; }
  .page-hero { padding: calc(var(--nav-height) + 36px) 0 40px; }
  .page-hero h1 { font-size: 1.9rem; }
  .home-hero h1 { font-size: 2rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .form-grid-2 { grid-template-columns: 1fr; }
  .cta-band { padding: 52px 0; }
  .cta-band h2 { font-size: 1.7rem; }
  .hero-stats { gap: 24px; }
  .resource-box { flex-direction: column; }
  .resource-box img { width: 100%; height: 180px; }
}
