/* ============================================================
   SOUTHTOWNE PROPERTIES — design tokens
   Palette: fieldstone neutrals, deep pine, aged brass accent.
   Type: Fraunces (display) / Inter (body) / IBM Plex Mono (labels)
   ============================================================ */

:root {
  --ink:         #202822;
  --ink-soft:    #445042;
  --stone:       #EFEBE2;
  --stone-dark:  #E3DDCE;
  --paper:       #FAF8F3;
  --brass:       #A9752E;
  --brass-light: #C79752;
  --brass-dim:   #8A6428;
  --sage:        #6B7A5E;
  --pine:        #1D2A20;
  --pine-light:  #2B3A2F;
  --line:        rgba(32, 40, 34, 0.14);
  --line-soft:   rgba(32, 40, 34, 0.08);
  --shadow:      0 20px 50px -25px rgba(29, 42, 32, 0.45);

  --display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono:    "IBM Plex Mono", "SFMono-Regular", Menlo, monospace;

  --max: 1180px;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h, 131px) + 16px);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  background: var(--stone);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
img {
  -webkit-user-drag: none;
  user-drag: none;
}

a { color: inherit; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass-dim);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--brass);
  display: inline-block;
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--pine);
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1.04; font-weight: 560; }
h2 { font-size: clamp(2.2rem, 4vw, 3rem); line-height: 1.1; font-weight: 700; }
h3 { font-size: 1.35rem; font-weight: 600; }

p.lede {
  font-size: 1.3rem;
  color: var(--ink-soft);
  max-width: 46ch;
  margin: 18px 0 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 14px 24px;
  border-radius: 3px;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease, border-color .2s ease;
  cursor: pointer;
}
.btn:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }
.btn:active { transform: translateY(1px); }

.btn-brass {
  background: var(--brass);
  color: var(--paper);
}
.btn-brass:hover { background: var(--brass-dim); }

.btn-line {
  background: transparent;
  border-color: var(--pine);
  color: var(--pine);
}
.btn-line:hover { background: var(--pine); color: var(--paper); }

.btn-line-light {
  background: transparent;
  border-color: rgba(250,248,243,0.4);
  color: var(--paper);
}
.btn-line-light:hover { background: rgba(250,248,243,0.12); border-color: var(--paper); }

/* ---------------- NAV ---------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(239, 235, 226, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}
.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--pine);
}
.brand-logo { width: clamp(162px, 30vw, 288px); height: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav-links a {
  text-decoration: none;
  font-size: 0.906rem;
  color: var(--ink-soft);
}
.nav-links a:hover { color: var(--pine); }
.nav-phone {
  font-family: var(--mono);
  font-size: 0.844rem;
  color: var(--pine);
  border: 1px solid var(--line);
  padding: 9px 16px;
  border-radius: 3px;
  text-decoration: none;
  white-space: nowrap;
}
.nav-phone:hover { border-color: var(--brass); color: var(--brass-dim); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 0;
  background: transparent;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}
.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--pine);
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 780px) {
  .nav-toggle { display: flex; }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--stone);
    border-bottom: 1px solid var(--line-soft);
    padding: 0 28px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.25s ease, opacity 0.2s ease;
  }
  .nav-links.open {
    max-height: 320px;
    opacity: 1;
    padding: 8px 28px 22px;
  }
  .nav-links a:not(.nav-phone) {
    display: block;
    padding: 13px 0;
    border-bottom: 1px solid var(--line-soft);
    font-size: 0.938rem;
  }
  .nav-links .nav-phone {
    display: inline-flex;
    width: fit-content;
    margin-top: 16px;
  }
}

/* ---------------- HERO ---------------- */
.hero {
  padding: 60px 0 56px;
  position: relative;
  overflow: hidden;
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero-copy .eyebrow { margin-bottom: 22px; }
.hero-cta { display: flex; gap: 14px; margin-top: 34px; }
.hero-cta .btn { flex: 1; justify-content: center; }

.hero-art {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ph {
  background: repeating-linear-gradient(135deg, var(--pine-light), var(--pine-light) 10px, #24322a 10px, #24322a 20px);
  display: flex;
  align-items: flex-end;
  position: relative;
  color: var(--stone);
}
.ph::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(29,42,32,0) 40%, rgba(20,28,22,0.75) 100%);
}
.ph-label {
  position: relative;
  z-index: 1;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 16px 18px;
  color: #EFEBE2;
  opacity: 0.85;
}
.hero-art .ph-label::before { content: "◇ "; color: var(--brass-light); }

/* ---------------- SECTION SHELL ---------------- */
section { padding: 78px 0; }
.section-head { max-width: 620px; margin-bottom: 40px; }
.section-head .eyebrow { margin-bottom: 18px; }
.section-head p.lede { margin-top: 14px; }

.dark {
  background: var(--pine);
  color: var(--stone);
}
.dark h2, .dark h1 { color: var(--paper); }
.dark p.lede { color: rgba(239,235,226,0.72); }
.dark .eyebrow { color: var(--brass-light); }
.dark .eyebrow::before { background: var(--brass-light); }

/* ---------------- LOCATION / DISTANCE CARDS ---------------- */
.addr-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 28px;
}
.addr-chip {
  border: 1px solid rgba(239,235,226,0.18);
  border-radius: 3px;
  padding: 12px 20px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.addr-chip-label {
  font-family: var(--mono);
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--brass-light);
}
.addr-chip-num {
  font-family: var(--mono);
  font-size: 1.125rem;
  color: var(--paper);
}

.distance-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(239,235,226,0.14);
  border: 1px solid rgba(239,235,226,0.14);
  border-radius: 4px;
  overflow: hidden;
}
.distance-card {
  background: rgba(250,248,243,0.035);
  padding: 26px 22px;
}
.dist-time {
  font-family: var(--mono);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--brass-light);
  display: block;
  margin-bottom: 12px;
}
.distance-card h3 {
  font-family: var(--display);
  font-size: 1.2rem;
  margin: 0 0 8px;
  color: var(--paper);
  font-weight: 600;
}
.distance-card p {
  margin: 0;
  font-size: 1.2rem;
  color: rgba(239,235,226,0.6);
}

@media (max-width: 900px) {
  .distance-grid { grid-template-columns: repeat(2, 1fr); }
}

.nearby-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px;
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid rgba(239,235,226,0.14);
}
.nearby-col h3 {
  font-family: var(--mono);
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--brass-light);
  margin: 0 0 10px;
}
.nearby-col p {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.6;
  color: rgba(239,235,226,0.68);
}

@media (max-width: 780px) {
  .nearby-grid { grid-template-columns: 1fr; gap: 24px; }
}

/* ---------------- PROPERTIES ---------------- */
.props-copy {
  width: 100%;
  padding-top: 36px;
  border-top: 1px solid var(--line);
}
.props-copy p {
  color: var(--ink-soft);
  font-size: 1.2rem;
  line-height: 1.65;
  margin: 0;
}
.prop-tag {
  font-family: var(--mono);
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brass-dim);
  margin-bottom: 10px;
  display: block;
}
.prop-note {
  font-size: 1.1rem;
  color: var(--sage);
  font-style: italic;
  margin: 14px 0 0;
}
.props-note {
  font-size: 1.1rem;
  color: var(--sage);
  font-style: italic;
  margin: 28px 0 0;
}
.props-cta { margin-top: 32px; }

/* ---------------- AMENITIES ---------------- */
.amenities {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
}
.amenity {
  background: var(--paper);
  padding: 30px 24px;
}
.amenity-icon {
  width: 40px;
  height: 40px;
  color: var(--brass);
  margin-bottom: 14px;
}
.amenity h3 {
  font-family: var(--display);
  font-size: 1.1rem;
  margin: 0 0 8px;
  color: var(--pine);
  font-weight: 600;
}
.amenity p { margin: 0; font-size: 1rem; color: var(--ink-soft); }

@media (max-width: 900px) {
  .amenities { grid-template-columns: 1fr; }
}

/* ---------------- GALLERY ---------------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.gallery img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: 3px;
  object-position: 50% 30%;
}

@media (max-width: 780px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
}

/* ---------------- CONTACT / AGENT ---------------- */
.contact {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 54px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
}
.agent-name { font-family: var(--display); font-size: 1.5rem; color: var(--pine); font-weight: 600; }
.contact-note { margin-top: 14px; color: var(--ink-soft); font-size: 1rem; max-width: 36ch; }
.agent-links {
  display: flex;
  gap: 26px;
  margin-top: 20px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 0.875rem;
}
.agent-links a { text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--brass); padding-bottom: 2px; }
.agent-links a:hover { color: var(--brass-dim); }
.agent-links a.agent-phone {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--pine);
  border-bottom: none;
  padding-bottom: 0;
}
.agent-links a.agent-phone svg { width: 22px; height: 22px; color: var(--brass); flex-shrink: 0; }
.agent-links a.agent-phone:hover { color: var(--brass-dim); }
.agent-links a.agent-phone:hover svg { color: var(--brass-dim); }
.contact-cta { display: flex; flex-direction: column; gap: 12px; }

@media (max-width: 720px) {
  .contact { grid-template-columns: 1fr; padding: 36px 26px; }
  .contact-cta { flex-direction: row; }
}

/* ---------------- FOOTER ---------------- */
footer {
  background: var(--pine);
  color: rgba(239,235,226,0.62);
  padding: 56px 0 40px;
  font-size: 1rem;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.15fr 1.3fr 0.85fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(239,235,226,0.14);
}
.foot-grid > div:nth-child(2) { margin-left: 32px; }
.foot-brand { display: flex; align-items: center; }
.foot-logo { width: clamp(306px, 25.5vw, 420px); height: auto; }
.foot-col h3 {
  font-family: var(--mono);
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brass-light);
  margin: 0 0 14px;
}
.foot-col p, .foot-col a { display: block; color: rgba(239,235,226,0.62); text-decoration: none; margin-bottom: 8px; }
.foot-col a:hover { color: var(--paper); }
.scam-note {
  margin-top: 22px;
  padding-top: 20px;
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(239,235,226,0.45);
}
.foot-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-family: var(--mono);
  font-size: 0.85rem;
  color: rgba(239,235,226,0.4);
}
.foot-eho {
  display: flex;
  align-items: center;
  gap: 8px;
}
.foot-eho-logo { height: 28px; width: auto; opacity: 0.7; }

@media (max-width: 780px) {
  .foot-grid { grid-template-columns: 1fr; gap: 28px; }
  .foot-grid > div:nth-child(2) { margin-left: 0; }
}

/* ---------------- 404 ---------------- */
.notfound {
  display: flex;
  align-items: center;
  min-height: 58vh;
}
.notfound h1 { margin-top: 18px; max-width: 15ch; }
.notfound p.lede { margin-top: 18px; max-width: 54ch; }
.notfound-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.notfound-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.notfound-links a {
  font-family: var(--mono);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  color: var(--brass-dim);
  text-decoration: none;
}
.notfound-links a:hover { color: var(--pine); text-decoration: underline; }

/* ---------------- RESPONSIVE ---------------- */
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-art { order: -1; aspect-ratio: 16/10; }
  section { padding: 56px 0; }
}
