/* 5252 E Calle De La Palmera listing — AZRFO brand */
:root {
  --navy: #14315C;
  --navy-deep: #0E2447;
  --navy-soft: #1E4378;
  --gold: #C9A24A;
  --gold-warm: #B8893A;
  --gold-pale: #E6C36A;
  --gold-leaf: #F2D98C;
  --crimson: #A8252E;
  --paper: #F7F1E3;
  --parchment: #EFE6D0;
  --bone: #FAF6EA;
  --ink: #1A1814;
  --ink-soft: #4A4538;
  --rule: #D9CDA9;
  --serif: "Cormorant Garamond", Georgia, serif;
  --serif-sc: "Cormorant SC", "Cormorant Garamond", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --pad: clamp(20px, 5vw, 48px);
  --max: 1120px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--crimson); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.eyebrow {
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--gold-warm);
}
h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -.02em; color: var(--navy-deep); margin: 0; }
.flourish { display: flex; align-items: center; gap: 12px; margin: 18px 0 0; }
.flourish .line { width: 88px; height: 1px; background: linear-gradient(90deg, var(--gold), transparent); }
.flourish .loz { width: 6px; height: 6px; background: var(--gold); transform: rotate(45deg); flex-shrink: 0; }

/* Header */
header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250,246,234,.94);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom: .5px solid var(--rule);
}
header .bar {
  max-width: var(--max);
  margin: 0 auto;
  padding: 12px var(--pad);
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: var(--header-h);
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 44px; height: 44px; border-radius: 50%; }
.brand .wm { line-height: .95; }
.brand .l1 { display: block; font-family: var(--serif); font-size: 22px; font-style: italic; font-weight: 500; color: var(--navy); }
.brand .l2 { display: block; font-family: var(--serif-sc); font-size: 10px; font-weight: 600; letter-spacing: .1em; color: var(--crimson); margin-top: 2px; }
nav { margin-left: auto; display: flex; align-items: center; gap: 28px; }
nav a {
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600;
  color: var(--ink-soft); padding: 6px 0; border-bottom: 1.5px solid transparent;
}
nav a:hover { color: var(--navy); border-bottom-color: var(--gold); }
nav .cta, .btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--sans); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; font-weight: 600;
  padding: 13px 24px; border: .5px solid var(--gold); color: var(--navy-deep); background: var(--gold);
  transition: background .2s, color .2s, border-color .2s;
}
nav .cta { padding: 10px 18px; }
nav .cta:hover, .btn:hover { background: var(--gold-leaf); border-color: var(--gold-leaf); color: var(--navy-deep); }
.btn.ghost { background: transparent; color: var(--gold-leaf); border-color: rgba(230,195,106,.55); }
.btn.ghost:hover { background: rgba(230,195,106,.12); color: #fff; border-color: var(--gold-pale); }
.btn.navy { background: var(--navy); color: var(--gold-leaf); border-color: var(--navy); }
.btn.navy:hover { background: var(--navy-soft); border-color: var(--navy-soft); color: #fff; }
.burger { display: none; margin-left: auto; background: none; border: 0; padding: 8px; cursor: pointer; }
.burger span { display: block; width: 22px; height: 1.5px; background: var(--navy); margin: 5px 0; }

/* Hero */
.hero {
  position: relative;
  min-height: min(92svh, 820px);
  color: var(--bone);
  display: flex;
  align-items: flex-end;
  isolation: isolate;
}
.hero-photo {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%; object-fit: cover; object-position: center 40%;
}
.hero::after {
  content: "";
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(14,36,71,.22) 0%, rgba(14,36,71,.12) 28%, rgba(14,36,71,.55) 62%, rgba(14,36,71,.84) 100%);
}
.hero .inner {
  position: relative; z-index: 2;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 48px var(--pad) 56px;
}
.hero .eyebrow {
  display: inline-block;
  max-width: 100%;
  box-sizing: border-box;
  color: #fff;
  background: var(--navy);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
  line-height: 1.35;
  padding: 9px 16px;
  border-radius: 999px;
}
.hero h1 {
  font-size: clamp(40px, 8vw, 72px);
  line-height: .95;
  color: var(--bone);
  margin-top: 16px;
  max-width: 16ch;
  text-shadow: 0 2px 18px rgba(14,36,71,.45);
}
.hero .place {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(20px, 3vw, 26px);
  color: #FAF6EA;
  margin: 16px 0 0;
  text-shadow: 0 2px 14px rgba(14,36,71,.7);
}
.hero .price {
  font-family: var(--serif);
  font-size: clamp(36px, 6vw, 52px);
  color: var(--gold-leaf);
  letter-spacing: -.02em;
  margin-top: 10px;
  line-height: 1;
  text-shadow: 0 2px 16px rgba(14,36,71,.7);
}
.hero .actions { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }

/* Facts strip */
.facts {
  background: var(--navy);
  color: var(--bone);
  border-bottom: .5px solid rgba(201,162,74,.35);
}
.facts ul {
  list-style: none; margin: 0 auto; padding: 22px var(--pad);
  max-width: var(--max);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px 24px;
}
.facts li { text-align: center; }
.facts .k {
  font-size: 10px; letter-spacing: .18em; text-transform: uppercase; font-weight: 600;
  color: var(--gold-pale); margin-bottom: 6px;
}
.facts .v {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.15;
  color: var(--bone);
}

/* Sections */
section { padding: 72px 0; }
section.alt { background: var(--parchment); }
section h2 { font-size: clamp(32px, 5vw, 46px); }
section .lede {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  line-height: 1.45;
  color: var(--ink-soft);
  max-width: 42ch;
  margin: 18px 0 0;
}
section .body { max-width: 68ch; margin-top: 22px; color: var(--ink-soft); }
section .body p { margin: 0 0 1em; }
section .body p:last-child { margin-bottom: 0; }

/* Details */
.grid-details {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 36px;
}
.card {
  background: #fff;
  border: .5px solid var(--rule);
  padding: 26px 26px 24px;
}
.card h3 {
  font-family: var(--serif-sc);
  font-size: 13px;
  letter-spacing: .12em;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 10px;
}
.card p, .card li { color: var(--ink-soft); font-size: 15px; margin: 0; }
.card ul { margin: 0; padding-left: 1.1em; }
.card li + li { margin-top: 6px; }

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  grid-template-rows: auto auto;
  gap: 12px;
  margin-top: 36px;
}
.gallery a {
  display: block;
  overflow: hidden;
  background: var(--navy-deep);
  position: relative;
}
.gallery a:first-child { grid-row: 1 / span 2; }
.gallery img {
  width: 100%; height: 100%;
  object-fit: cover;
  aspect-ratio: 4/3;
  transition: transform .5s ease;
}
.gallery a:first-child img { aspect-ratio: 3/4; min-height: 100%; }
.gallery a:hover img { transform: scale(1.04); }
.gallery figcaption, .gallery .cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 28px 14px 12px;
  background: linear-gradient(transparent, rgba(14,36,71,.7));
  color: var(--bone);
  font-size: 12px;
  letter-spacing: .04em;
}

/* Docs */
.docs { display: grid; gap: 10px; margin-top: 32px; }
.doc {
  display: flex; align-items: center; gap: 16px;
  background: #fff;
  border: .5px solid var(--rule);
  padding: 16px 18px;
  color: inherit;
  transition: border-color .2s, background .2s;
}
.doc:hover { border-color: var(--gold); background: var(--bone); color: var(--navy-deep); }
.doc .mark {
  flex: 0 0 48px; height: 48px;
  display: grid; place-items: center;
  background: var(--navy);
  color: var(--gold-leaf);
  font-family: var(--serif-sc);
  font-size: 10px;
  letter-spacing: .08em;
  font-weight: 600;
}
.doc .meta { flex: 1; min-width: 0; }
.doc .name { font-weight: 600; color: var(--navy-deep); }
.doc .sub { font-size: 13px; color: var(--ink-soft); }
.doc .go { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--gold-warm); }

/* Contact */
.contact-band {
  background: var(--navy);
  color: var(--bone);
  padding: 80px 0;
}
.contact-band h2 { color: var(--bone); }
.contact-band .lede { color: rgba(250,246,234,.78); }
.who { margin-top: 28px; }
.who .name { font-family: var(--serif); font-size: 30px; color: var(--gold-leaf); line-height: 1.1; }
.who .role { margin-top: 6px; color: rgba(250,246,234,.78); }
.contact-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.contact-actions a.phone {
  font-family: var(--serif);
  font-size: 28px;
  color: var(--gold-leaf);
  letter-spacing: -.01em;
}
.contact-actions a.phone:hover { color: #fff; }

/* Footer */
footer.site {
  background: var(--navy-deep);
  color: rgba(250,246,234,.7);
  padding: 36px 0 48px;
  font-size: 13px;
}
footer.site .row {
  display: flex; gap: 28px; align-items: flex-start; justify-content: space-between; flex-wrap: wrap;
}
footer.site a { color: var(--gold-pale); }
footer.site a:hover { color: var(--gold-leaf); }
.eh {
  display: flex; align-items: center; gap: 10px;
  color: rgba(250,246,234,.8);
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.eh svg { width: 28px; height: 28px; flex-shrink: 0; }
.fine { margin-top: 18px; font-size: 12px; line-height: 1.55; max-width: 80ch; color: rgba(250,246,234,.55); }

/* Mobile sticky CTA */
.sticky-cta {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  background: #0E2447;
  border-top: .5px solid rgba(201,162,74,.4);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  gap: 10px;
}
.sticky-cta a { flex: 1; text-align: center; padding: 12px 10px; }

/* Lightbox */
.lb {
  display: none;
  position: fixed; inset: 0; z-index: 80;
  background: rgba(10,20,40,.92);
  align-items: center; justify-content: center;
  padding: 24px;
}
.lb.open { display: flex; }
.lb img { max-width: min(96vw, 1400px); max-height: 88vh; object-fit: contain; }
.lb button {
  position: absolute; top: 16px; right: 16px;
  background: none; border: 0; color: #fff; font-size: 32px; cursor: pointer; line-height: 1;
}
.lb .cap { position: absolute; bottom: 16px; left: 0; right: 0; text-align: center; color: var(--gold-leaf); font-size: 14px; }

@media (max-width: 860px) {
  nav { display: none; }
  nav.open {
    display: flex; flex-direction: column; align-items: stretch;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bone);
    border-bottom: .5px solid var(--rule);
    padding: 12px var(--pad) 20px;
    gap: 4px;
  }
  nav.open a { padding: 12px 0; }
  nav.open .cta { margin-top: 8px; text-align: center; }
  .burger { display: block; }
  .facts ul { grid-template-columns: 1fr 1fr; }
  .grid-details, .gallery { grid-template-columns: 1fr; }
  .gallery a:first-child { grid-row: auto; }
  .gallery a:first-child img { aspect-ratio: 4/3; }
  section { padding: 56px 0; }
  .sticky-cta { display: flex; }
  body { padding-bottom: 72px; }
  .hero { min-height: min(86svh, 700px); }
}
@media (max-width: 480px) {
  .brand .l1 { font-size: 18px; }
  .facts ul { gap: 18px 12px; padding: 18px var(--pad); }
  .facts .v { font-size: 18px; }
  .hero .eyebrow {
    font-size: 12px;
    letter-spacing: .12em;
    padding: 8px 14px;
  }
}
