/* ============================================================
   Natalie Martinez, Realtor® — Grand Living Realty
   Editorial · Coastal · Bilingual (EN/ES)
   Palette from Grand Living Realty brand: sienna, sage, cream
   ============================================================ */

:root {
  --ink: #2B2620;
  --ink-soft: #4A433A;
  --muted: #6E675C;
  --sienna: #8B3A2F;
  --sienna-dark: #6E2D24;
  --sienna-tint: #F4E8E4;
  --sage: #5F6F33;
  --sage-dark: #4A5726;
  --sage-tint: #EDF0E2;
  --gold: #C9A227;
  --cream: #FAF6EF;
  --paper: #FFFFFF;
  --line: #E7DFD0;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --shadow: 0 18px 40px -18px rgba(43, 38, 32, .28);
  --radius: 16px;
  --nav-h: 76px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--ink-soft);
  background: var(--cream);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container { width: min(1160px, 92%); margin-inline: auto; }

.section { padding: 104px 0; }
.section-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2rem, 4vw, 2.9rem);
  line-height: 1.12;
  color: var(--ink);
  letter-spacing: .2px;
  margin-bottom: 20px;
}
.center { text-align: center; margin-inline: auto; }

.eyebrow {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--sage-dark);
  margin-bottom: 14px;
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.22, .61, .36, 1);
  transition-delay: var(--d, 0s);
}
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Buttons (bespoke chrome) ---------- */
.btn {
  display: inline-block;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  padding: 17px 30px;
  border-radius: 999px;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  will-change: transform;
}
.btn:active { transform: scale(.97); }

.btn-phone {
  background: var(--sienna);
  color: #FDF9F2;
  box-shadow: 0 10px 24px -10px rgba(139, 58, 47, .55);
}
.btn-phone:hover { background: var(--sienna-dark); transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(139, 58, 47, .6); }

.btn-ghost {
  border: 2px solid rgba(253, 249, 242, .8);
  color: #FDF9F2;
  background: rgba(43, 38, 32, .35);
  backdrop-filter: blur(6px);
  box-shadow: 0 4px 18px rgba(43, 38, 32, .3);
}
.btn-ghost:hover { background: #FDF9F2; color: var(--ink); transform: translateY(-2px); }

.btn-ghost-dark {
  border: 1.5px solid var(--sage);
  color: var(--sage-dark);
  background: transparent;
}
.btn-ghost-dark:hover { background: var(--sage); color: #FDF9F2; transform: translateY(-2px); }

.btn-sm { padding: 12px 20px; font-size: .9rem; }
.btn-lg { padding: 19px 34px; font-size: 1.06rem; }
.btn-block { display: block; text-align: center; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background .3s ease, box-shadow .3s ease, backdrop-filter .3s ease;
}
.nav-wrap {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.site-header.scrolled {
  background: rgba(250, 246, 239, .92);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line), 0 10px 30px -24px rgba(43, 38, 32, .3);
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 42px; height: 42px;
  border-radius: 11px;
  background: var(--sienna);
  color: #FDF9F2;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.05rem;
  display: grid; place-items: center;
  flex: none;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong {
  font-family: var(--serif);
  font-size: 1.22rem;
  color: var(--ink);
  letter-spacing: .2px;
}
.brand-text small { font-size: .72rem; letter-spacing: .06em; color: var(--muted); font-weight: 600; text-transform: uppercase; }

.main-nav { display: flex; align-items: center; gap: 26px; }
.main-nav > a:not(.btn) {
  font-weight: 600;
  font-size: .95rem;
  color: var(--ink-soft);
  border-bottom: 2px solid transparent;
  padding-bottom: 3px;
  transition: color .15s, border-color .15s;
}
.main-nav > a:not(.btn):hover { color: var(--sienna); border-color: var(--sienna); }

/* lang toggle */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .08em;
  background: transparent;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 8px 15px;
  cursor: pointer;
  color: var(--muted);
  transition: border-color .15s, color .15s;
}
.lang-toggle:hover { border-color: var(--sage); color: var(--sage-dark); }
.lang-opt.active { color: var(--sage-dark); font-weight: 800; }
.lang-divider { opacity: .4; }
.site-header:not(.scrolled) .lang-opt.active { color: var(--gold); }

/* nav colors over hero (not scrolled) */
.site-header:not(.scrolled) .main-nav > a:not(.btn) { color: #F4EDE2; }
.site-header:not(.scrolled) .main-nav > a:not(.btn):hover { color: #fff; border-color: #fff; }
.site-header:not(.scrolled) .brand-text strong { color: #FDF9F2; text-shadow: 0 1px 4px rgba(43, 38, 32, .55); }
.site-header:not(.scrolled) .brand-text small { color: rgba(253, 249, 242, .85); text-shadow: 0 1px 4px rgba(43, 38, 32, .6); }
.site-header:not(.scrolled) .lang-toggle { border-color: rgba(253, 249, 242, .45); color: #F4EDE2; }
.site-header:not(.scrolled) .lang-toggle:hover { border-color: #FDF9F2; color: #fff; }

.nav-burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.nav-burger span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s; }
.site-header:not(.scrolled) .nav-burger span { background: #FDF9F2; }
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 96vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: calc(var(--nav-h) + 40px) 0 80px;
}
.hero-bg {
  position: absolute; inset: -8% 0 -8% 0;
  background: url("../img/hero-beach.jpg") center 35% / cover no-repeat;
  will-change: transform;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(43,38,32,.58) 0%, rgba(43,38,32,.40) 35%, rgba(43,38,32,.30) 55%, rgba(43,38,32,.68) 100%);
}
.hero-inner { position: relative; z-index: 2; max-width: 780px; padding-top: 30px; }
.hero-eyebrow { color: #E9C46A; }
.hero-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.7rem, 6.4vw, 4.9rem);
  line-height: 1.04;
  color: #FDF9F2;
  margin-bottom: 22px;
  text-wrap: balance;
}
.hero-sub {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: rgba(253, 249, 242, .95);
  max-width: 620px;
  margin-bottom: 34px;
  text-shadow: 0 1px 3px rgba(43, 38, 32, .55), 0 2px 12px rgba(43, 38, 32, .35);
}
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 40px; }
.hero-chips { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-chips li {
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: #F4EDE2;
  border: 1px solid rgba(253, 249, 242, .5);
  border-radius: 999px;
  padding: 8px 16px;
  background: rgba(43, 38, 32, .38);
  backdrop-filter: blur(6px);
}

.scroll-cue {
  position: absolute;
  left: 50%; bottom: 24px;
  transform: translateX(-50%);
  width: 26px; height: 40px;
  border: 1.5px solid rgba(253, 249, 242, .7);
  border-radius: 999px;
  z-index: 2;
}
.scroll-cue::after {
  content: "";
  position: absolute;
  left: 50%; top: 12px;
  width: 7px; height: 7px;
  margin-left: -3.5px;
  border-right: 2px solid rgba(253, 249, 242, .9);
  border-bottom: 2px solid rgba(253, 249, 242, .9);
  transform: rotate(45deg);
  animation: cue 1.8s ease-in-out infinite;
}
@keyframes cue {
  0% { transform: rotate(45deg) translate(0, 0); opacity: 1; }
  70% { transform: rotate(45deg) translate(4px, 4px); opacity: 0; }
  100% { transform: rotate(45deg) translate(0, 0); opacity: 0; }
}

/* ---------- Marquee ---------- */
.marquee {
  background: var(--sienna);
  color: #FDF9F2;
  overflow: hidden;
  padding: 16px 0;
  border-block: 3px solid var(--gold);
  position: relative;
}
.marquee::before, .marquee::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 90px;
  z-index: 2;
  pointer-events: none;
}
.marquee::before { left: 0; background: linear-gradient(90deg, var(--sienna) 0%, transparent 100%); }
.marquee::after { right: 0; background: linear-gradient(270deg, var(--sienna) 0%, transparent 100%); }
.marquee-track {
  display: flex;
  gap: 26px;
  white-space: nowrap;
  width: max-content;
  animation: marquee 32s linear infinite;
}
.marquee-track span {
  font-family: var(--serif);
  font-size: 1.28rem;
  font-style: italic;
  letter-spacing: .04em;
  color: #FFF8EF;
}
.marquee-track i { font-style: normal; color: var(--gold); font-size: 1.1rem; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; flex-wrap: wrap; } }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: minmax(300px, 440px) 1fr;
  gap: 64px;
  align-items: start;
}
.about-media { position: relative; }
.about-photo {
  position: relative;
  aspect-ratio: 4 / 4.4;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.photo-monogram {
  font-family: var(--serif);
  font-size: 4.6rem;
  font-weight: 700;
  color: var(--sienna);
  line-height: 1;
}
.photo-caption { font-size: .9rem; color: var(--muted); max-width: 220px; }
.about-badge {
  position: absolute;
  left: 14px;
  bottom: 14px;
  background: var(--sage);
  color: #FDF9F2;
  font-weight: 700;
  font-size: .84rem;
  letter-spacing: .06em;
  padding: 10px 18px;
  border-radius: 999px;
  box-shadow: 0 8px 20px -8px rgba(43, 38, 32, .5);
}
.about-copy p:not(.eyebrow) { margin-bottom: 18px; }
.about-es {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.22rem;
  color: var(--sienna);
}
.about-list { margin: 26px 0 32px; display: grid; gap: 12px; }
.about-list li {
  padding-left: 32px;
  position: relative;
  font-weight: 600;
  color: var(--ink);
}
.about-list li::before {
  content: "";
  position: absolute; left: 0; top: 7px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--sage-tint);
  border: 2px solid var(--sage);
  box-shadow: inset 0 0 0 4px var(--cream);
}

/* ---------- Credentials ---------- */
.credentials { background: var(--paper); border-block: 1px solid var(--line); }
.cred-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-top: 48px;
}
.cred-card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px;
  transition: transform .22s ease, box-shadow .22s ease;
}
.cred-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.cred-initial {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 2.4rem;
  color: var(--sienna);
  margin-bottom: 10px;
  line-height: 1;
}
.cred-card h3 { font-family: var(--serif); font-size: 1.4rem; color: var(--ink); margin-bottom: 10px; }
.cred-card p { font-size: .96rem; color: var(--muted); }

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 48px;
}
.service-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: #D9CDB6; }
.service-card svg { width: 42px; height: 42px; color: var(--sage); margin-bottom: 16px; }
.service-card h3 { font-family: var(--serif); font-size: 1.32rem; color: var(--ink); margin-bottom: 8px; }
.service-card p { font-size: .95rem; color: var(--muted); margin-top: auto; }

/* ---------- Areas ---------- */
.areas { background: var(--paper); border-block: 1px solid var(--line); }
.areas-sub { max-width: 640px; color: var(--muted); margin-bottom: 40px; }
.areas-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  max-width: 720px;
  margin: 0 auto 44px;
}
.areas-chips span {
  font-weight: 600;
  font-size: .95rem;
  color: var(--sage-dark);
  background: var(--sage-tint);
  border: 1px solid #D3DDBB;
  border-radius: 999px;
  padding: 11px 22px;
  transition: background .15s, color .15s, transform .15s;
}
.areas-chips span:hover { background: var(--sage); color: #FDF9F2; transform: translateY(-2px); }

/* ---------- Contact ---------- */
.contact { background: var(--cream); }
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: start;
}
.contact-phone {
  display: inline-block;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(2.1rem, 4vw, 3rem);
  color: var(--sienna);
  margin: 10px 0 4px;
  transition: color .15s;
}
.contact-phone:hover { color: var(--sienna-dark); }
.contact-note { font-size: .95rem; color: var(--muted); margin-bottom: 8px; }
.contact-email { margin-bottom: 30px; }
.contact-email a {
  font-weight: 600;
  color: var(--sage-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-form {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  max-width: 460px;
}
.contact-form h4 { font-family: var(--serif); font-size: 1.4rem; color: var(--ink); margin-bottom: 18px; }
.form-row { margin-bottom: 14px; }
.form-row label {
  display: block;
  font-weight: 700;
  font-size: .85rem;
  color: var(--ink-soft);
  margin-bottom: 6px;
  letter-spacing: .02em;
}
.form-opt { font-weight: 400; color: var(--muted); font-size: .8rem; }
.form-row input, .form-row textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: .98rem;
  color: var(--ink);
  background: var(--cream);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  transition: border-color .15s, box-shadow .15s;
}
.form-row input:focus, .form-row textarea:focus {
  outline: none;
  border-color: var(--sage);
  box-shadow: 0 0 0 3px rgba(95, 111, 51, .15);
}
.form-hint { font-size: .8rem; color: var(--muted); margin-top: 12px; text-align: center; }
.contact-office {
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 4px solid var(--sage);
  border-radius: 12px;
  padding: 22px 26px;
  max-width: 460px;
}
.office-logo {
  width: 210px;
  max-width: 100%;
  height: auto;
  margin-bottom: 12px;
  background: #fff;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--line);
}
.map-embed {
  margin-top: 18px;
  max-width: 460px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  line-height: 0;
  background: var(--sage-tint);
}
.map-embed iframe { width: 100%; height: 240px; border: 0; }
.map-link {
  display: inline-block;
  margin-top: 12px;
  font-weight: 700;
  font-size: .92rem;
  color: var(--sage-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.contact-office h4 { font-family: var(--serif); font-size: 1.25rem; color: var(--ink); margin-bottom: 8px; }
.contact-office p { font-size: .95rem; color: var(--muted); }
.office-phone { font-weight: 700; color: var(--ink-soft) !important; margin-top: 6px; }

.contact-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 38px 34px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.contact-card h3 { font-family: var(--serif); font-size: 1.6rem; color: var(--ink); margin-bottom: 22px; }
.contact-avatar {
  width: 92px;
  height: 92px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--cream);
  outline: 1.5px solid var(--line);
  box-shadow: var(--shadow);
  margin-bottom: 18px;
}
.social-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 12px;
  border-radius: 12px;
  border: 1px solid transparent;
  transition: background .15s, border-color .15s, transform .15s;
}
.social-row:hover { background: var(--cream); border-color: var(--line); transform: translateX(4px); }
.social-icon {
  width: 44px; height: 44px;
  flex: none;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--sienna-tint);
  color: var(--sienna);
  font-weight: 700;
  font-size: 1.05rem;
  font-family: var(--serif);
}
.social-icon svg { width: 26px; height: 26px; }
.social-icon.fb { background: #1877F2; color: #fff; }
.social-icon.ig { background: linear-gradient(45deg, #F09433, #E6683C, #DC2743, #CC2366, #BC1888); color: #fff; }
.social-icon.li { background: #0A66C2; color: #fff; }
.social-row strong { color: var(--ink); font-size: .98rem; }
.social-row small { color: var(--muted); font-size: .85rem; }
.contact-card .btn { margin-top: auto; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(250, 246, 239, .78); padding: 64px 0 30px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(250, 246, 239, .14);
}
.footer-brand .brand-mark { background: var(--sienna); }
.footer-brand p { margin-top: 14px; max-width: 280px; font-family: var(--serif); font-style: italic; font-size: 1.1rem; color: rgba(250, 246, 239, .85); }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-weight: 600; font-size: .95rem; transition: color .15s; }
.footer-links a:hover { color: var(--gold); }
.footer-contact a { font-family: var(--serif); font-weight: 700; font-size: 1.35rem; color: #FDF9F2; }
.footer-contact .footer-email { font-family: var(--sans); font-weight: 600; font-size: .95rem; display: inline-block; margin-top: 4px; color: rgba(250, 246, 239, .75); }
.footer-contact .footer-email:hover { color: var(--gold); }
.footer-contact p { margin-top: 8px; font-size: .92rem; color: rgba(250, 246, 239, .6); }
.footer-bottom { padding-top: 26px; display: grid; gap: 14px; }
.equal-housing { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: .85rem; letter-spacing: .08em; color: rgba(250, 246, 239, .9); }
.equal-housing svg { width: 26px; height: 26px; color: var(--gold); }
.footer-legal { font-size: .82rem; color: rgba(250, 246, 239, .6); max-width: 720px; }
.footer-copy { font-size: .84rem; color: rgba(250, 246, 239, .6); }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .cred-grid { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
}

@media (max-width: 900px) {
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 44px; }
  .about-media { max-width: 420px; }

  .main-nav {
    position: fixed;
    top: var(--nav-h); left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: rgba(250, 246, 239, .98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
    padding: 18px 6vw 26px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .22s ease, transform .22s ease;
  }
  .main-nav.open { opacity: 1; transform: none; pointer-events: auto; }
  .main-nav > a:not(.btn) { padding: 12px 0; font-size: 1.05rem; border-bottom: 1px solid var(--line); }
  .main-nav > a:not(.btn):hover { border-color: var(--sienna); }
  .lang-toggle { align-self: flex-start; margin: 10px 0; }
  .site-header:not(.scrolled) .main-nav > a:not(.btn) { color: var(--ink-soft); }
  .nav-burger { display: flex; }
}

@media (max-width: 560px) {
  .services-grid { grid-template-columns: 1fr; }
  .hero { min-height: 88vh; }
  .hero-ctas .btn { width: 100%; text-align: center; }
  .brand-text small { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .section { padding: 76px 0; }
}
