/* ==========================================================================
   The Row Dana Point — styles
   Palette pulled from the property itself: olive stucco, cedar trellis,
   stacked stone, dark bronze metal roof.
   ========================================================================== */

:root {
  --ink:        #23241f;
  --ink-soft:   #4a4c44;
  --olive:      #4e5546;
  --olive-deep: #363c31;
  --cedar:      #a85c34;
  --cedar-lit:  #c47a4d;
  --sand:       #c9b79c;
  --shell:      #f7f4ee;
  --paper:      #fffdf9;
  --line:       #e0d9cc;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --wrap: 1180px;
  --gut: clamp(1.25rem, 4vw, 3rem);
  --radius: 3px;
  --shadow: 0 1px 2px rgba(35, 36, 31, .04), 0 8px 24px rgba(35, 36, 31, .06);
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--cedar); text-underline-offset: .18em; }
a:hover { color: var(--olive); }

:focus-visible {
  outline: 2px solid var(--cedar);
  outline-offset: 3px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -.01em;
  margin: 0 0 .5em;
}

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }

.eyebrow {
  font-family: var(--font-body);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--cedar);
  margin: 0 0 1rem;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip-path: inset(50%);
  overflow: hidden; white-space: nowrap;
}

.skip-link {
  position: absolute; left: -9999px;
  background: var(--ink); color: #fff;
  padding: .75rem 1.25rem; z-index: 100;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* --- Site header ---------------------------------------------------------- */

.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .3s ease, box-shadow .3s ease;
}
.site-header::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(35,36,31,.55), rgba(35,36,31,0));
  transition: opacity .3s ease;
}
.site-header.is-stuck {
  background: var(--paper);
  box-shadow: 0 1px 0 var(--line);
}
.site-header.is-stuck::after { opacity: 0; }

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1.15rem;
}

.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; }
.brand svg { height: 54px; width: auto; transition: height .3s ease; }
.site-header.is-stuck .brand svg { height: 44px; }
@media (max-width: 760px) {
  .brand svg { height: 44px; }
  .site-header.is-stuck .brand svg { height: 38px; }
}
.brand .brand-mark { color: #fff; transition: color .3s ease; }
.site-header.is-stuck .brand .brand-mark { color: var(--ink); }

.nav { display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 2rem); }
.nav a {
  color: #fff; text-decoration: none;
  font-size: .875rem; font-weight: 500;
  letter-spacing: .04em;
  transition: color .3s ease;
}
.site-header.is-stuck .nav a { color: var(--ink-soft); }
.nav a:hover { color: var(--cedar-lit); }
.site-header.is-stuck .nav a:hover { color: var(--cedar); }

.nav-toggle {
  display: none;
  background: none; border: 0; cursor: pointer;
  padding: .5rem; color: #fff;
}
.site-header.is-stuck .nav-toggle { color: var(--ink); }

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: 0 0 auto 0;
    flex-direction: column; align-items: stretch;
    gap: 0;
    background: var(--paper);
    padding: 5rem var(--gut) 2rem;
    box-shadow: var(--shadow);
    transform: translateY(-100%);
    transition: transform .3s ease;
  }
  .nav[data-open="true"] { transform: translateY(0); }
  .nav a {
    color: var(--ink) !important;
    padding: .9rem 0;
    border-bottom: 1px solid var(--line);
    font-size: 1.0625rem;
  }
  .nav a:last-child { border-bottom: 0; }
}

/* --- Hero ----------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: min(88svh, 780px);
  display: flex; align-items: flex-end;
  color: #fff;
  overflow: hidden;
}
.hero picture, .hero img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 55%;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(35,36,31,.30) 0%, rgba(35,36,31,.06) 40%, rgba(35,36,31,.55) 100%);
}
.hero-content {
  position: relative; z-index: 1;
  padding-block: clamp(3rem, 8vw, 5rem);
  text-shadow: 0 1px 24px rgba(23, 24, 20, .45);
}
.hero-kicker {
  font-size: .75rem; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase;
  color: rgba(255,255,255,.78);
  margin: 0 0 1rem;
}
.hero h1 {
  font-size: clamp(2.25rem, 5.4vw, 4.25rem);
  max-width: 20ch;
  margin: 0 0 .4em;
  line-height: 1.04;
  text-wrap: balance;
}
.hero-sub {
  font-size: clamp(1.0625rem, 1.45vw, 1.25rem);
  line-height: 1.55;
  max-width: 44ch;
  margin: 0 0 2rem;
  color: rgba(255,255,255,.92);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .875rem; }

/* --- Buttons -------------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .85rem 1.6rem;
  font-size: .9375rem; font-weight: 600;
  letter-spacing: .02em;
  text-decoration: none;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.btn-primary { background: var(--cedar); color: #fff; }
.btn-primary:hover { background: var(--cedar-lit); color: #fff; }
.btn-ghost { border-color: rgba(255,255,255,.55); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); color: #fff; border-color: #fff; }
.btn-outline { border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--paper); }

/* --- Sections ------------------------------------------------------------- */

section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section-head { max-width: 62ch; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section-head h2 { font-size: clamp(2rem, 4vw, 3rem); text-wrap: balance; }
.section-head p { color: var(--ink-soft); font-size: 1.125rem; margin: 0; }

.intro { background: var(--shell); }
.intro-grid {
  display: grid; gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 900px) { .intro-grid { grid-template-columns: 1.05fr .95fr; } }
.intro-copy p { color: var(--ink-soft); }
.intro-copy p:first-of-type {
  font-size: 1.25rem; color: var(--ink);
  font-family: var(--font-display);
  line-height: 1.45;
}
.intro-figure img { border-radius: var(--radius); box-shadow: var(--shadow); }

.stats {
  display: grid; gap: 1px;
  grid-template-columns: repeat(2, 1fr);
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-top: clamp(2.5rem, 5vw, 4rem);
  overflow: hidden;
}
@media (min-width: 720px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { background: var(--shell); padding: 1.5rem 1.25rem; }
.stat dt {
  font-size: .6875rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-soft); margin-bottom: .35rem;
}
.stat dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 2.4vw, 1.75rem);
  line-height: 1.15;
  color: var(--olive-deep);
}

/* --- Directory ------------------------------------------------------------ */

.filters {
  display: flex; flex-wrap: wrap; gap: .5rem;
  margin-bottom: 2rem;
}
.filter {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .5rem 1.1rem;
  font: inherit; font-size: .875rem; font-weight: 500;
  color: var(--ink-soft);
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.filter:hover { border-color: var(--sand); color: var(--ink); }
.filter[aria-pressed="true"] { background: var(--olive); border-color: var(--olive); color: #fff; }

.directory {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 620px) { .directory { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .directory { grid-template-columns: repeat(3, 1fr); } }

.tenant {
  display: flex; flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.tenant:hover { border-color: var(--sand); transform: translateY(-2px); box-shadow: var(--shadow); }
.tenant[hidden] { display: none; }
.tenant-cat {
  font-size: .6875rem; font-weight: 600;
  letter-spacing: .13em; text-transform: uppercase;
  color: var(--cedar);
  margin-bottom: .6rem;
}
.tenant h3 { font-size: 1.3125rem; margin-bottom: .4rem; }
.tenant h3 a { color: inherit; text-decoration: none; }
.tenant h3 a:hover { color: var(--cedar); text-decoration: underline; }
.tenant p { margin: 0 0 1rem; color: var(--ink-soft); font-size: .9375rem; }
.tenant-meta {
  margin-top: auto;
  display: flex; flex-wrap: wrap; gap: .5rem 1rem;
  font-size: .8125rem; color: var(--ink-soft);
  padding-top: .875rem;
  border-top: 1px solid var(--line);
}
.tenant-meta a { text-decoration: none; font-weight: 500; }
.tenant-meta a:hover { text-decoration: underline; }

.directory-note {
  margin-top: 2rem;
  font-size: .9375rem;
  color: var(--ink-soft);
}

/* --- Gallery -------------------------------------------------------------- */

.gallery { background: var(--shell); }
.gallery-grid {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 900px) {
  .gallery-grid { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; }
  .gallery-grid figure:nth-child(1) { grid-column: span 2; grid-row: span 2; }
  .gallery-grid figure:nth-child(2) { grid-column: span 2; }
  .gallery-grid figure:nth-child(3) { grid-column: span 1; }
  .gallery-grid figure:nth-child(4) { grid-column: span 1; }
}
.gallery-grid figure { margin: 0; height: 100%; overflow: hidden; border-radius: var(--radius); }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; }

/* --- Visit ---------------------------------------------------------------- */

.visit-grid {
  display: grid; gap: clamp(2rem, 5vw, 3.5rem);
  grid-template-columns: 1fr;
}
@media (min-width: 880px) { .visit-grid { grid-template-columns: repeat(3, 1fr); } }
.visit-card h3 { font-size: 1.25rem; }
.visit-card p { color: var(--ink-soft); margin: 0 0 .75rem; }
.visit-card address { font-style: normal; color: var(--ink-soft); }

/* --- Leasing -------------------------------------------------------------- */

.leasing {
  background: var(--olive-deep);
  color: var(--shell);
}
.leasing h2 { color: #fff; }
.leasing p { color: rgba(247,244,238,.82); }
.leasing .eyebrow { color: var(--sand); }
.leasing-grid {
  display: grid; gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 880px) { .leasing-grid { grid-template-columns: 1.1fr .9fr; } }
.leasing-facts { list-style: none; margin: 0; padding: 0; }
.leasing-facts li {
  display: flex; justify-content: space-between; gap: 1.5rem;
  padding: .9rem 0;
  border-bottom: 1px solid rgba(247,244,238,.16);
  font-size: .9375rem;
}
.leasing-facts dt, .leasing-facts .k { color: rgba(247,244,238,.7); }
.leasing-facts .v { font-weight: 600; text-align: right; }
.leasing .btn-primary { margin-top: 1.75rem; }

/* --- Footer --------------------------------------------------------------- */

.site-footer {
  background: var(--ink);
  color: rgba(247,244,238,.7);
  padding-block: clamp(2.5rem, 5vw, 4rem);
  font-size: .875rem;
}
.footer-grid {
  display: grid; gap: 2rem;
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer h2 { font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--sand); font-family: var(--font-body); font-weight: 600; }
.site-footer a { color: rgba(247,244,238,.86); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .brand-mark { color: var(--shell); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .5rem; }
.footer-base {
  margin-top: 2.5rem; padding-top: 1.5rem;
  border-top: 1px solid rgba(247,244,238,.14);
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
  font-size: .8125rem;
}
