/* ============================================================
   Brokerage Southwest Property Management — global styles
   Two brand colors only: gold #B7964E and slate #424B53,
   with near-black text and warm neutral backgrounds.
   ============================================================ */

:root {
  --brand: #B7964E;
  --brand-tint: rgba(183, 150, 78, 0.13);
  --slate: #424B53;
  --ink: #333333;
  --ink-soft: #55595e;
  --paper: #fbfaf8;
  --white: #ffffff;
  --line: #e6e4e0;
  --radius: 14px;
  --shadow-sm: 0 1px 3px rgba(51, 51, 51, 0.08);
  --shadow-md: 0 8px 30px rgba(51, 51, 51, 0.12);
  --shadow-lg: 0 20px 60px rgba(51, 51, 51, 0.18);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

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

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

a {
  color: var(--slate);
  text-decoration: none;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--ink);
}

h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.35rem; }

p {
  margin: 0 0 1em;
  color: var(--ink-soft);
}

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

.section {
  padding: clamp(64px, 9vw, 110px) 0;
}

.section--tint {
  background: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section--dark {
  background:
    radial-gradient(900px 400px at 85% -10%, rgba(183, 150, 78, 0.18), transparent 60%),
    var(--slate);
}

.section--dark h2,
.section--dark h3 {
  color: var(--white);
}

.section--dark p {
  color: rgba(255, 255, 255, 0.78);
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 14px;
}

.section--dark .eyebrow {
  color: var(--brand);
}

.section-head {
  max-width: 640px;
  margin-bottom: clamp(36px, 5vw, 56px);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--primary {
  background: var(--brand);
  color: var(--white) !important;
  box-shadow: 0 6px 20px rgba(183, 150, 78, 0.4);
}

.btn--primary:hover {
  background: var(--slate);
}

.btn--ghost {
  border-color: var(--ink);
  color: var(--ink);
}

.btn--ghost-light {
  border-color: rgba(255, 255, 255, 0.7);
  color: var(--white);
}

.btn--ghost-light:hover {
  background: rgba(255, 255, 255, 0.1);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 250, 247, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand img {
  height: 80px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 34px;
}

.nav a {
  font-weight: 500;
  color: var(--ink-soft);
  position: relative;
  padding: 4px 0;
}

.nav a:hover {
  color: var(--ink);
}

.nav a.is-active {
  color: var(--ink);
  font-weight: 600;
}

.nav a.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 3px;
  border-radius: 3px;
  background: var(--brand);
}

.nav .btn {
  padding: 10px 22px;
  font-size: 0.95rem;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 2.5px;
  border-radius: 2px;
  background: var(--ink);
  margin: 5.5px 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1000px 500px at 85% -10%, rgba(183, 150, 78, 0.16), transparent 60%),
    linear-gradient(165deg, #f6f4ef 0%, var(--paper) 55%);
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
  padding: clamp(48px, 7vw, 96px) 0;
}

.hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--brand-tint);
  color: var(--brand);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 999px;
  margin-bottom: 22px;
}

.hero h1 em {
  font-style: italic;
  color: var(--brand);
}

.hero__lede {
  font-size: 1.15rem;
  max-width: 480px;
  margin-bottom: 32px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 40px;
}

.hero__stats {
  display: flex;
  gap: clamp(24px, 4vw, 40px);
  border-top: 1px solid var(--line);
  padding-top: 28px;
}

.hero__stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.7rem;
  color: var(--ink);
}

.hero__stat span {
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.hero__media {
  position: relative;
}

.hero__media img {
  width: 100%;
  aspect-ratio: 4 / 4.1;
  object-fit: cover;
  object-position: 50% 25%;
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
}

.hero__card {
  position: absolute;
  left: -28px;
  bottom: 28px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 16px 22px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.hero__card img {
  width: 42px;
  height: 42px;
  aspect-ratio: auto;
  border-radius: 0;
  box-shadow: none;
}

.hero__card strong {
  display: block;
  font-size: 0.98rem;
}

.hero__card span {
  font-size: 0.85rem;
  color: var(--ink-soft);
}

/* ---------- property cards ---------- */

.props-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 28px;
}

.prop-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.prop-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.prop-card__media {
  position: relative;
  aspect-ratio: 16 / 10.5;
  overflow: hidden;
}

.prop-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.prop-card:hover .prop-card__media img {
  transform: scale(1.05);
}

.badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge--rent {
  background: var(--slate);
  color: var(--white);
}

.badge--sale {
  background: var(--brand);
  color: var(--white);
}

.prop-card__body {
  padding: 22px 24px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.prop-card__price {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--brand);
  margin-bottom: 6px;
}

.prop-card__price small {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-soft);
}

.prop-card__title {
  font-size: 1.12rem;
  margin-bottom: 2px;
}

.prop-card__addr {
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin-bottom: 16px;
}

.prop-card__meta {
  display: flex;
  gap: 18px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.prop-card__meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.prop-card__meta svg {
  width: 17px;
  height: 17px;
  stroke: var(--brand);
}

/* ---------- filters ---------- */

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
}

.filter-btn {
  padding: 10px 22px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink-soft);
  cursor: pointer;
  transition: all 0.15s ease;
}

.filter-btn:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.filter-btn.is-active {
  background: var(--slate);
  border-color: var(--slate);
  color: var(--white);
}

/* ---------- services ---------- */

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.service-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.service-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--brand-tint);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
}

.service-card__icon svg {
  width: 26px;
  height: 26px;
  stroke: var(--brand);
}

.service-card p {
  font-size: 0.95rem;
  margin: 0;
}

/* ---------- agents ---------- */

.agents-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.agent-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.agent-card__media {
  aspect-ratio: 4 / 3.4;
  overflow: hidden;
}

.agent-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.agent-card__body {
  padding: 26px 28px 30px;
}

.agent-card__tags {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 10px;
}

.agent-card ul {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
}

.agent-card li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 10px;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.agent-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--brand-tint);
  border: 4px solid var(--brand);
  box-sizing: border-box;
}

.agent-card li strong {
  color: var(--ink);
}

/* ---------- testimonials ---------- */

.quotes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}

.quote-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 34px 32px;
}

.quote-card__stars {
  color: var(--brand);
  letter-spacing: 3px;
  margin-bottom: 16px;
  font-size: 1.05rem;
}

.quote-card blockquote {
  margin: 0 0 20px;
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-style: italic;
  line-height: 1.5;
  color: var(--white);
}

.quote-card figcaption {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.65);
  font-weight: 600;
}

/* ---------- CTA band ---------- */

.cta-band {
  background:
    radial-gradient(700px 300px at 15% 120%, rgba(183, 150, 78, 0.35), transparent 60%),
    var(--slate);
  border-radius: 22px;
  padding: clamp(40px, 6vw, 72px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.cta-band h2 {
  color: var(--white);
  margin-bottom: 8px;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.78);
  margin: 0;
}

/* ---------- page hero (interior pages) ---------- */

.page-hero {
  background:
    radial-gradient(800px 400px at 90% -20%, rgba(183, 150, 78, 0.14), transparent 60%),
    var(--white);
  border-bottom: 1px solid var(--line);
  padding: clamp(48px, 7vw, 84px) 0;
}

.page-hero p {
  font-size: 1.12rem;
  max-width: 620px;
}

/* ---------- contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

.contact-info__item {
  display: flex;
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.contact-info__item:last-child {
  border-bottom: none;
}

.contact-info__icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--brand-tint);
  display: grid;
  place-items: center;
}

.contact-info__icon svg {
  width: 23px;
  height: 23px;
  stroke: var(--brand);
}

.contact-info__item strong {
  display: block;
  margin-bottom: 2px;
}

.contact-info__item p {
  margin: 0;
  font-size: 0.97rem;
}

.contact-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(28px, 4vw, 44px);
  box-shadow: var(--shadow-sm);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-field {
  margin-bottom: 18px;
}

.form-field label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.97rem;
  color: var(--ink);
  background: var(--paper);
  transition: border-color 0.15s ease;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--brand);
}

.map-embed {
  margin-top: clamp(48px, 6vw, 72px);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.map-embed iframe {
  display: block;
  width: 100%;
  height: 380px;
  border: 0;
}

/* ---------- modal ---------- */

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal.is-open {
  display: flex;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(51, 51, 51, 0.6);
  backdrop-filter: blur(4px);
}

.modal__panel {
  position: relative;
  background: var(--white);
  border-radius: 18px;
  max-width: 720px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}

.modal__media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 18px 18px 0 0;
}

.modal__body {
  padding: 28px 32px 34px;
}

.modal__price {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--brand);
  margin-bottom: 4px;
}

.modal__price small {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink-soft);
}

.modal__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 16px 0 20px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.modal__meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.modal__meta svg {
  width: 17px;
  height: 17px;
  stroke: var(--brand);
}

.modal__features {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}

.modal__features li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 8px;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.modal__features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--brand);
  font-weight: 700;
}

.modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  font-size: 1.15rem;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  z-index: 2;
}

/* ---------- footer ---------- */

.site-footer {
  background: var(--slate);
  color: rgba(255, 255, 255, 0.75);
  padding: clamp(48px, 6vw, 72px) 0 32px;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 44px;
}

.site-footer img {
  height: 58px;
  width: auto;
  margin-bottom: 18px;
  background: var(--white);
  border-radius: 10px;
  padding: 6px 12px;
}

.site-footer h4 {
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.75);
  display: block;
  margin-bottom: 10px;
  transition: color 0.15s ease;
}

.site-footer a:hover {
  color: var(--brand);
}

.site-footer p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.95rem;
}

.site-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
}

/* ---------- reveal animation ---------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- responsive ---------- */

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

  .hero__media {
    order: -1;
    max-width: 460px;
  }

  .hero__card {
    left: 12px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .nav {
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 18px 5%;
    transform: translateY(-130%);
    transition: transform 0.28s ease;
    box-shadow: var(--shadow-md);
  }

  .nav.is-open {
    transform: none;
  }

  .nav a {
    padding: 12px 0;
    width: 100%;
    font-size: 1.05rem;
  }

  .nav a.is-active::after {
    display: none;
  }

  .nav .btn {
    margin-top: 8px;
  }

  .nav-toggle {
    display: block;
  }

  .nav-toggle.is-open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .nav-toggle.is-open span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.is-open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .site-footer__grid {
    grid-template-columns: 1fr;
  }
}
