/* ============================================================
   BOMMARITO HOMES — GLOBAL STYLES
   bommaritohomes850.com
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Libre+Bodoni:ital,wght@0,400;0,500;0,700;1,400;1,700&family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;1,300;1,400&family=Inter:wght@300;400;500&display=swap');

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

:root {
  --black:    #0A0A0A;
  --white:    #FFFFFF;
  --camel:    #C4974A;
  --camel-l:  #D4A96A;
  --sage:     #6B7C6A;
  --stone:    #F0EDE6;
  --stone-d:  #E0DBD0;
  --muted:    #7A7A7A;
  --nav-h:    80px;
}

html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; color: var(--black); background: var(--white); overflow-x: hidden; }

img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4 { font-family: 'Libre Bodoni', serif; font-weight: 400; letter-spacing: 0.02em; }
.italic-serif   { font-family: 'Cormorant Garamond', serif; font-style: italic; }

.eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--camel);
  display: flex;
  align-items: center;
  gap: 14px;
}
.eyebrow::after { content: ''; width: 40px; height: 0.5px; background: var(--camel); opacity: 0.5; }
.eyebrow.center { justify-content: center; }
.eyebrow.center::after { display: none; }

.sec-title { font-size: clamp(28px, 3.5vw, 48px); font-weight: 400; line-height: 1.1; letter-spacing: 0.01em; }
.sec-body  { font-size: 14px; line-height: 1.9; color: var(--muted); font-weight: 300; max-width: 520px; }
.divider   { width: 44px; height: 0.5px; background: var(--camel); }

/* ── BUTTONS ── */
.btn-primary {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 16px 38px;
  background: var(--camel);
  color: var(--white);
  border: none;
  cursor: pointer;
  transition: background 0.25s, transform 0.15s;
}
.btn-primary:hover { background: #b8893e; transform: translateY(-1px); }

.btn-ghost {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 15px 38px;
  border: 0.5px solid rgba(255,255,255,0.45);
  color: var(--white);
  background: transparent;
  cursor: pointer;
  transition: border-color 0.25s, background 0.25s;
}
.btn-ghost:hover { border-color: var(--camel); background: rgba(196,151,74,0.1); }

.btn-ghost-dark {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 15px 38px;
  border: 0.5px solid rgba(10,10,10,0.35);
  color: var(--black);
  background: transparent;
  cursor: pointer;
  transition: border-color 0.25s, background 0.25s;
}
.btn-ghost-dark:hover { border-color: var(--camel); color: var(--camel); }

/* ── NAVIGATION ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 52px;
  transition: background 0.4s, box-shadow 0.4s;
}
.nav.transparent { background: transparent; }
.nav.solid       { background: rgba(10,10,10,0.97); box-shadow: 0 1px 0 rgba(196,151,74,0.18); }
.nav.white-nav   { background: var(--white); box-shadow: 0 1px 0 rgba(0,0,0,0.08); }
.nav.white-nav .nav-link  { color: var(--black) !important; }
.nav.white-nav .nav-bh    { color: var(--black) !important; }
.nav.white-nav .nav-name  { color: var(--camel) !important; }
.nav.white-nav .nav-icon line,
.nav.white-nav .nav-icon rect { stroke: var(--black) !important; }
.nav.white-nav .hamburger span { background: var(--black); }

.nav-logo { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.nav-icon  { width: 44px; height: 32px; }

.nav-bh   { font-family: 'Libre Bodoni', serif; font-size: 21px; font-weight: 700; color: var(--white); letter-spacing: 0.06em; line-height: 1; }
.nav-name { font-family: 'Inter', sans-serif; font-size: 9px; font-weight: 300; color: var(--camel); letter-spacing: 0.22em; text-transform: uppercase; margin-top: 3px; }

.nav-links { display: flex; align-items: center; gap: 34px; list-style: none; }
.nav-link  {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 400;
  color: rgba(255,255,255,0.78);
  text-decoration: none;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.nav-link:hover, .nav-link.active { color: var(--camel); }

.nav-cta {
  font-size: 10px !important;
  font-weight: 400 !important;
  letter-spacing: 0.15em !important;
  text-transform: uppercase !important;
  color: var(--white) !important;
  border: 0.5px solid var(--camel);
  padding: 9px 22px;
  transition: background 0.2s, color 0.2s !important;
}
.nav-cta:hover { background: var(--camel) !important; color: var(--white) !important; }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; background: none; border: none; }
.hamburger span { display: block; width: 24px; height: 0.5px; background: var(--white); transition: all 0.3s; }

/* Mobile nav drawer */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: rgba(10,10,10,0.98);
  padding: 32px 28px;
  border-top: 0.5px solid rgba(196,151,74,0.18);
  z-index: 199;
  flex-direction: column;
  gap: 24px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a { font-family: 'Inter', sans-serif; font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255,255,255,0.8); text-decoration: none; transition: color 0.2s; }
.mobile-nav a:hover { color: var(--camel); }

/* ── PAGE HERO (inner pages) ── */
.page-hero {
  padding-top: var(--nav-h);
  background: var(--black);
  min-height: 320px;
  display: flex;
  align-items: flex-end;
  padding-bottom: 64px;
  padding-left: 52px;
  padding-right: 52px;
  position: relative;
  overflow: hidden;
}
.page-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.25;
}
.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,10,10,0.9), rgba(10,10,10,0.3));
}
.page-hero-content { position: relative; z-index: 2; }
.page-hero-title { font-size: clamp(38px, 5vw, 64px); font-weight: 400; color: var(--white); line-height: 1.05; }
.page-hero-sub { font-family: 'Cormorant Garamond', serif; font-size: 20px; font-style: italic; color: rgba(255,255,255,0.55); margin-top: 10px; }

/* ── STATS BAR ── */
.stats-bar {
  background: var(--black);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 0.5px solid rgba(196,151,74,0.18);
}
.stat-item { text-align: center; padding: 28px 16px; border-right: 0.5px solid rgba(255,255,255,0.07); }
.stat-item:last-child { border-right: none; }
.stat-n    { font-family: 'Libre Bodoni', serif; font-size: 38px; font-weight: 400; color: var(--camel); line-height: 1; }
.stat-l    { font-family: 'Inter', sans-serif; font-size: 10px; letter-spacing: 0.2em; color: rgba(255,255,255,0.38); text-transform: uppercase; margin-top: 6px; }

/* ── SECTIONS ── */
.section       { padding: 96px 52px; }
.section-stone { background: var(--stone); }
.section-black { background: var(--black); }
.section-white { background: var(--white); }

/* ── CTA BAND ── */
.cta-band {
  background: var(--black);
  padding: 96px 52px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 110%, rgba(196,151,74,0.08), transparent 60%);
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band-eye  { font-family: 'Inter', sans-serif; font-size: 10px; letter-spacing: 0.3em; color: var(--camel); text-transform: uppercase; margin-bottom: 18px; }
.cta-band-h2   { font-size: clamp(30px, 4vw, 52px); font-weight: 400; color: var(--white); line-height: 1.1; margin-bottom: 14px; }
.cta-band-sub  { font-family: 'Cormorant Garamond', serif; font-size: 20px; font-style: italic; color: rgba(255,255,255,0.45); margin-bottom: 44px; }
.cta-band-acts { display: flex; align-items: center; justify-content: center; gap: 20px; flex-wrap: wrap; }
.cta-phone     { font-family: 'Libre Bodoni', serif; font-size: 28px; color: var(--white); text-decoration: none; letter-spacing: 0.04em; transition: color 0.2s; }
.cta-phone:hover { color: var(--camel); }
.cta-sep       { color: rgba(255,255,255,0.18); font-size: 20px; }
.cta-lic       { margin-top: 28px; font-family: 'Inter', sans-serif; font-size: 10px; letter-spacing: 0.12em; color: rgba(255,255,255,0.18); }

/* ── FOOTER ── */
.footer { background: #050505; padding: 60px 52px 36px; border-top: 0.5px solid rgba(196,151,74,0.14); }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand-name { font-family: 'Libre Bodoni', serif; font-size: 20px; color: var(--white); letter-spacing: 0.08em; margin-bottom: 4px; }
.footer-brand-tag  { font-family: 'Inter', sans-serif; font-size: 9px; letter-spacing: 0.22em; color: var(--camel); text-transform: uppercase; margin-bottom: 16px; }
.footer-desc       { font-family: 'Inter', sans-serif; font-size: 12px; line-height: 1.85; color: rgba(255,255,255,0.3); max-width: 250px; }
.footer-col-title  { font-family: 'Inter', sans-serif; font-size: 9px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--camel); margin-bottom: 18px; }
.footer-links      { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a    { font-family: 'Inter', sans-serif; font-size: 12px; color: rgba(255,255,255,0.38); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--camel); }
.footer-contact-item { font-family: 'Inter', sans-serif; font-size: 12px; color: rgba(255,255,255,0.38); margin-bottom: 8px; line-height: 1.5; }
.footer-contact-item a { color: rgba(255,255,255,0.38); text-decoration: none; transition: color 0.2s; }
.footer-contact-item a:hover { color: var(--camel); }
.footer-bottom { border-top: 0.5px solid rgba(255,255,255,0.05); padding-top: 24px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.footer-legal  { font-family: 'Inter', sans-serif; font-size: 10px; color: rgba(255,255,255,0.18); letter-spacing: 0.05em; }
.footer-lic    { font-family: 'Inter', sans-serif; font-size: 10px; color: rgba(196,151,74,0.4); letter-spacing: 0.1em; }

/* ── MODAL ── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 24px;
  backdrop-filter: blur(4px);
}
.modal-overlay.open { display: flex; }
.modal-box {
  background: var(--white);
  width: 100%;
  max-width: 640px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}
.modal-header {
  background: var(--black);
  padding: 28px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-title { font-family: 'Libre Bodoni', serif; font-size: 22px; color: var(--white); font-weight: 400; }
.modal-sub   { font-family: 'Inter', sans-serif; font-size: 10px; letter-spacing: 0.18em; color: var(--camel); text-transform: uppercase; margin-top: 4px; }
.modal-close {
  background: none; border: none; cursor: pointer;
  color: rgba(255,255,255,0.5); font-size: 22px; line-height: 1;
  transition: color 0.2s; padding: 4px;
}
.modal-close:hover { color: var(--white); }
.modal-body { padding: 40px 36px; }
.modal-body iframe { width: 100%; border: none; min-height: 520px; }
.modal-placeholder {
  text-align: center;
  padding: 48px 24px;
  border: 0.5px dashed var(--stone-d);
}
.modal-placeholder p { font-family: 'Inter', sans-serif; font-size: 13px; color: var(--muted); line-height: 1.8; }
.modal-placeholder code { font-size: 11px; background: var(--stone); padding: 2px 8px; color: var(--black); }

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
  .nav { padding: 0 24px; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .section { padding: 72px 24px; }
  .page-hero { padding-left: 24px; padding-right: 24px; }
  .stats-bar { grid-template-columns: repeat(3,1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 36px; }
  .cta-band { padding: 72px 24px; }
  .footer { padding: 48px 24px 28px; }
}
@media (max-width: 600px) {
  .stats-bar { grid-template-columns: 1fr; }
  .stat-item { border-right: none; border-bottom: 0.5px solid rgba(255,255,255,0.07); }
  .stat-item:last-child { border-bottom: none; }
  .footer-top { grid-template-columns: 1fr; }
  .hero-btns { flex-direction: column; align-items: center; }
}
