/* ============================================================
   HACIENDA DE LUNA — SHARED DESIGN SYSTEM
   Option B: Elevated Luxury
   ============================================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500&family=Montserrat:wght@300;400;500;600;700&display=swap');

/* --- CSS Variables --- */
:root {
  --navy: #0d1f3c;
  --navy-mid: #162d52;
  --navy-light: #1e3a6e;
  --gold: #c9a84c;
  --gold-light: #e8c97a;
  --gold-dark: #7a5d16;
  --gold-pale: #f5edd8;
  --cream: #faf7f2;
  --white: #ffffff;
  --text-dark: #1a1a2e;
  --text-mid: #4a4a6a;
  --text-light: #6b6b7f;
  --border: rgba(201, 168, 76, 0.25);
  --shadow-sm: 0 2px 12px rgba(13, 31, 60, 0.08);
  --shadow-md: 0 8px 32px rgba(13, 31, 60, 0.14);
  --shadow-lg: 0 20px 60px rgba(13, 31, 60, 0.20);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Montserrat', system-ui, sans-serif;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-sans);
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }

/* --- Typography --- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.2;
  color: var(--navy);
}
h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); }
h2 { font-size: clamp(2rem, 3.5vw, 3rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 2rem); }
h4 { font-size: clamp(1.1rem, 2vw, 1.5rem); }
p { font-size: 1rem; color: var(--text-mid); line-height: 1.8; }
.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 0.75rem;
  display: block;
}

/* --- Layout --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.container-wide { max-width: 1400px; margin: 0 auto; padding: 0 2rem; }
.section { padding: 6rem 0; }
.section-sm { padding: 4rem 0; }
.section-lg { padding: 8rem 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.text-center { text-align: center; }
.text-white h1, .text-white h2, .text-white h3, .text-white h4,
.text-white p, .text-white .eyebrow { color: var(--white); }
.text-white .eyebrow { color: var(--gold-light); }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: var(--gold);
  color: var(--navy);
}
.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201, 168, 76, 0.35);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.6);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
}
.btn-outline-dark {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--navy);
}
.btn-outline-dark:hover {
  background: var(--navy);
  color: var(--white);
}
.btn-group { display: flex; gap: 1rem; flex-wrap: wrap; }

/* --- Navigation --- */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1.25rem 0;
  transition: var(--transition);
  background: var(--navy);
  box-shadow: var(--shadow-md);
}
.site-nav.scrolled {
  background: var(--navy);
  padding: 0.875rem 0;
  box-shadow: var(--shadow-md);
}
.nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--white);
  letter-spacing: 0.02em;
  line-height: 1.1;
}
.nav-logo span { color: var(--gold); display: block; font-size: 0.65rem; font-family: var(--font-sans); letter-spacing: 0.25em; text-transform: uppercase; font-weight: 400; margin-top: 2px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.nav-links a {
  color: rgba(255,255,255,0.85);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.5rem 0.875rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--gold); }
.nav-cta {
  background: var(--gold);
  color: var(--navy) !important;
  padding: 0.6rem 1.25rem !important;
  border-radius: var(--radius-sm);
  font-weight: 600 !important;
}
.nav-cta:hover { background: var(--gold-light) !important; color: var(--navy) !important; }

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown > a::after { content: ' ▾'; font-size: 0.6rem; }
.dropdown-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 50%;
  transform: translateX(-50%);
  background: var(--navy);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.5rem;
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-lg);
}
.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.dropdown-menu a {
  display: block;
  padding: 0.6rem 1rem;
  font-size: 0.72rem;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}
.dropdown-menu a:hover { background: rgba(201,168,76,0.1); color: var(--gold); }

/* Mobile nav */
.nav-mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  gap: 5px;
}
.nav-mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: var(--transition);
}
.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--navy);
  z-index: 999;
  padding: 5rem 2rem 2rem;
  flex-direction: column;
  gap: 0.5rem;
  overflow-y: auto;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  color: rgba(255,255,255,0.85);
  font-size: 1.1rem;
  font-family: var(--font-serif);
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.mobile-menu a:hover { color: var(--gold); }
.mobile-close {
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Keep the expanded primary navigation from crowding the header on tablets. */
@media (max-width: 1100px) {
  .nav-links, .nav-cta { display: none; }
  .nav-mobile-toggle { display: flex; }
}

/* --- Page Hero (interior pages) --- */
.page-hero {
  min-height: 40vh;
  background: var(--navy);
  display: flex;
  align-items: flex-end;
  padding: 8rem 0 4rem;
  position: relative;
  overflow: hidden;
}
.page-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.25;
}
.page-hero-content { position: relative; z-index: 1; }
.page-hero h1 { color: var(--white); margin-bottom: 1rem; }
.page-hero p { color: rgba(255,255,255,0.75); font-size: 1.1rem; max-width: 600px; }
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.breadcrumb a { color: var(--gold); }
.breadcrumb span { color: rgba(255,255,255,0.4); }
.breadcrumb .current { color: rgba(255,255,255,0.7); }

/* --- Cards --- */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card-img { width: 100%; height: 240px; object-fit: cover; }
.card-body { padding: 1.75rem; }
.card-body h3 { margin-bottom: 0.75rem; }
.card-body p { font-size: 0.9rem; }

/* --- Section Headers --- */
.section-header { max-width: 640px; margin-bottom: 3.5rem; }
.section-header.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-header h2 { margin-bottom: 1rem; }
.section-header p { font-size: 1.05rem; }

/* --- Dividers --- */
.gold-rule {
  width: 60px;
  height: 2px;
  background: var(--gold);
  margin: 1.25rem 0;
}
.gold-rule.center { margin-left: auto; margin-right: auto; }

/* --- Trust Bar --- */
.trust-bar {
  background: var(--navy);
  padding: 1.25rem 0;
  border-top: 1px solid rgba(201,168,76,0.2);
  border-bottom: 1px solid rgba(201,168,76,0.2);
}
.trust-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: rgba(255,255,255,0.85);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.trust-item .icon { color: var(--gold); font-size: 1rem; }

/* --- Stats --- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: var(--navy);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.stat-item {
  padding: 2.5rem 2rem;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.08);
}
.stat-item:last-child { border-right: none; }
.stat-number {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 300;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.stat-label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
}

/* --- Testimonials --- */
.testimonial-card {
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  position: relative;
}
.testimonial-card::before {
  content: '\201C';
  font-family: var(--font-serif);
  font-size: 5rem;
  color: var(--gold);
  opacity: 0.3;
  position: absolute;
  top: 0.5rem;
  left: 1.5rem;
  line-height: 1;
}
.testimonial-text {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--text-dark);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}
.testimonial-author { font-size: 0.8rem; font-weight: 600; color: var(--navy); letter-spacing: 0.05em; }
.testimonial-role { font-size: 0.75rem; color: var(--text-light); margin-top: 0.2rem; }
.stars { color: var(--gold); font-size: 0.9rem; margin-bottom: 1rem; letter-spacing: 2px; }

/* --- Feature List --- */
.feature-list { display: flex; flex-direction: column; gap: 1rem; }
.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(201,168,76,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 0.2rem;
}
.feature-text h4 { font-size: 1rem; margin-bottom: 0.3rem; }
.feature-text p { font-size: 0.9rem; }

/* --- CTA Banner --- */
.cta-banner {
  background: var(--navy);
  padding: 5rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(201,168,76,0.08) 0%, transparent 70%);
}
.cta-banner h2 { color: var(--white); margin-bottom: 1rem; }
.cta-banner p { color: rgba(255,255,255,0.7); max-width: 560px; margin: 0 auto 2.5rem; font-size: 1.05rem; }

/* --- Footer --- */
.site-footer {
  background: #08121f;
  padding: 5rem 0 2rem;
  color: rgba(255,255,255,0.65);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}
.footer-brand .nav-logo { margin-bottom: 1.25rem; display: block; }
.footer-brand p { color: rgba(255,255,255,0.76); font-size: 0.875rem; line-height: 1.8; max-width: 280px; }
.footer-heading {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 1.25rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col ul a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.78);
  transition: var(--transition);
}
.footer-col ul a:hover { color: var(--gold); }
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.875rem;
  font-size: 0.875rem;
}
.footer-contact-item .icon { color: var(--gold); margin-top: 0.1rem; flex-shrink: 0; }
.footer-locations { min-width: 0; }
.footer-location { padding: 0.8rem 0; border-top: 1px solid rgba(255,255,255,0.1); }
.footer-location:first-of-type { padding-top: 0; border-top: none; }
.footer-location-name { display: block; color: var(--gold-light); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.04em; margin-bottom: 0.35rem; }
.footer-location address { font-style: normal; font-size: 0.78rem; line-height: 1.55; color: rgba(255,255,255,0.78); margin-bottom: 0.35rem; }
.footer-location-phone { font-size: 0.84rem; color: var(--white); }
.footer-location-name:hover, .footer-location-phone:hover { color: var(--gold-light); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
}
.footer-bottom p { color: rgba(255,255,255,0.76); }
.footer-bottom a { color: var(--gold-light); }

/* --- Backgrounds --- */
.bg-navy { background: var(--navy); }
.bg-cream { background: var(--cream); }
.bg-dark { background: #08121f; }

/* --- Photo Gallery Grid --- */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.photo-grid img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: var(--radius-md);
  transition: var(--transition);
}
.photo-grid img:hover { transform: scale(1.02); }
.photo-grid .span-2 { grid-column: span 2; }
.photo-grid .span-2 img { height: 260px; }

/* --- Accordion (FAQ) --- */
.accordion-item {
  border-bottom: 1px solid var(--border);
}
.accordion-header {
  width: 100%;
  background: none;
  border: none;
  padding: 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--navy);
  transition: var(--transition);
}
.accordion-header:hover { color: var(--gold); }
.accordion-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--gold);
  flex-shrink: 0;
  transition: var(--transition);
}
.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.accordion-body-inner { padding: 0 0 1.5rem; }
.accordion-body-inner p { font-size: 0.95rem; }
.accordion-item.open .accordion-icon { transform: rotate(45deg); }
.accordion-item.open .accordion-body { max-height: 500px; }

/* --- Forms --- */
.form-group { margin-bottom: 1.5rem; }
.form-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 0.5rem;
}
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1.5px solid #ddd;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--text-dark);
  background: var(--white);
  transition: var(--transition);
  outline: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.1);
}
.form-textarea { resize: vertical; min-height: 120px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }

/* --- Responsive --- */
@media (max-width: 1024px) {
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .nav-mobile-toggle { display: flex; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .photo-grid { grid-template-columns: 1fr 1fr; }
  .photo-grid .span-2 { grid-column: span 1; }
  .trust-bar-inner { gap: 1.5rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .btn-group { flex-direction: column; }
  .section { padding: 4rem 0; }
  .container { padding: 0 1.25rem; }
}
@media (max-width: 480px) {
  .grid-4 { grid-template-columns: 1fr; }
  .photo-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.08); }
}

/* --- Closeout: lead conversion and form accessibility --- */
.honeypot { position:absolute; left:-10000px; width:1px; height:1px; overflow:hidden; }
.fieldset-reset { border:0; padding:0; min-width:0; }
.fieldset-reset legend { font-size:0.75rem; font-weight:700; letter-spacing:0.08em; text-transform:uppercase; color:var(--text-mid); margin-bottom:0.4rem; }
.call-menu { position:relative; display:inline-block; }
.call-menu summary { list-style:none; }
.call-menu summary::-webkit-details-marker { display:none; }
.call-menu-trigger { user-select:none; }
.call-menu-options { position:absolute; z-index:10; right:0; top:calc(100% + 0.7rem); min-width:285px; padding:0.65rem; border-radius:var(--radius-md); background:var(--white); box-shadow:var(--shadow-lg); text-align:left; }
.call-menu-options a { display:flex; align-items:center; justify-content:space-between; gap:1rem; padding:0.8rem 0.9rem; border-radius:var(--radius-sm); color:var(--navy); font-size:0.8rem; font-weight:600; letter-spacing:0.03em; }
.call-menu-options a:hover, .call-menu-options a:focus-visible { background:var(--cream); color:var(--navy); }
.call-menu-options span { color:var(--text-mid); font-weight:500; white-space:nowrap; }
.house-card-actions { display:flex; gap:0.75rem; flex-wrap:wrap; }
@media (max-width: 768px) {
  .call-menu { width:100%; }
  .call-menu-trigger { width:100%; justify-content:center; }
  .call-menu-options { left:0; right:auto; width:100%; }
  .house-card-actions { flex-direction:column; }
  .house-card-actions .btn { width:100%; justify-content:center; }
}
