/* SZN Real Estate — single-page styles
   Warm, earthy palette. Mobile-first, then enhanced at 768 / 1024. */

:root {
  --cream: #f3eadc;
  --cream-deep: #e7d9c4;
  --paper: #fffaf3;
  --ink: #2b2219;
  --ink-soft: #5d5247;
  --brown: #6a4630;
  --terra: #b65328;
  --terra-dark: #93431f;
  --olive: #4e5c3b;
  --olive-soft: #6e7d55;
  --gold: #c4a56a;
  --line: rgba(43, 34, 25, 0.12);
  --shadow: 0 18px 40px rgba(43, 34, 25, 0.12);
  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", serif;
  --font-body: "Source Sans 3", "Source Sans Pro", "Segoe UI", sans-serif;
  --header-h: 4.5rem;
  --radius: 14px;
  --max: 1120px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

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

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

a {
  color: var(--terra-dark);
}

a:hover {
  color: var(--terra);
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--ink);
  color: var(--paper);
  padding: 0.6rem 1rem;
  border-radius: 6px;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

/* Header
   ---------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(243, 234, 220, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.7rem 1.25rem;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--ink);
  line-height: 1.05;
}

.logo-mark {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.55rem;
  letter-spacing: 0.08em;
}

.logo-sub {
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brown);
  font-weight: 600;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.45rem 0.7rem;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  cursor: pointer;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.site-nav a:not(.btn) {
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
}

.site-nav a:not(.btn):hover {
  color: var(--terra);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  border-radius: 999px;
  padding: 0.7rem 1.25rem;
  border: 2px solid transparent;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

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

.btn-primary {
  background: var(--terra);
  color: #fff8f3;
  border-color: var(--terra);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--terra-dark);
  border-color: var(--terra-dark);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: #fff8f3;
  border-color: rgba(255, 248, 243, 0.55);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  background: rgba(255, 248, 243, 0.12);
  color: #fff;
  border-color: #fff;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

/* Hero
   ---------------------------------- */
.hero {
  position: relative;
  min-height: min(88vh, 820px);
  display: flex;
  align-items: flex-end;
  color: #fff8f3;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(25, 18, 12, 0.28) 0%, rgba(25, 18, 12, 0.18) 32%, rgba(25, 18, 12, 0.72) 100%),
    linear-gradient(90deg, rgba(25, 18, 12, 0.55) 0%, rgba(25, 18, 12, 0.15) 60%);
}

.hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 5rem 1.25rem 4.25rem;
  width: 100%;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 0.85rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  line-height: 1.05;
  margin: 0 0 0.85rem;
  letter-spacing: -0.02em;
  max-width: 14ch;
}

.hero .tagline {
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  line-height: 1.5;
  max-width: 34rem;
  margin: 0;
  color: rgba(255, 248, 243, 0.9);
}

/* Shared sections
   ---------------------------------- */
.section {
  padding: 4.5rem 1.25rem;
}

.section-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.section h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  line-height: 1.15;
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}

.lede {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 40rem;
  margin: 0 0 2rem;
}

.section-kicker {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--terra);
  margin: 0 0 0.55rem;
}

/* About
   ---------------------------------- */
.about {
  background: var(--paper);
}

.about-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.about-copy p {
  margin: 0 0 1.1rem;
  color: var(--ink-soft);
}

.about-copy p:last-child {
  margin-bottom: 0;
}

.about-photo {
  position: relative;
}

.about-photo img {
  width: 100%;
  height: 100%;
  max-height: 460px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.about-photo figcaption {
  margin-top: 0.6rem;
  font-size: 0.8rem;
  color: var(--ink-soft);
}

.sell-callout {
  margin-top: 2.75rem;
  padding: 1.5rem 1.6rem 1.4rem;
  background: var(--cream);
  border: 1px solid var(--line);
  border-left: 4px solid var(--olive);
  border-radius: var(--radius);
}

.sell-callout h3 {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.2vw, 1.7rem);
  font-weight: 600;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}

.sell-callout p:last-child {
  margin: 0;
  color: var(--ink-soft);
  max-width: 46rem;
}

.sell-callout a {
  color: var(--brown);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid rgba(106, 70, 48, 0.35);
  white-space: nowrap;
}

.sell-callout a:hover {
  color: var(--terra);
  border-bottom-color: var(--terra);
}

/* Communities gallery
   ---------------------------------- */
.communities {
  background: var(--cream);
}

.gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.gallery figure {
  margin: 0;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--cream-deep);
  min-height: 220px;
}

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 220px;
  transition: transform 0.5s ease;
}

.gallery figure:hover img {
  transform: scale(1.04);
}

.gallery figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 2.8rem 1.1rem 1rem;
  background: linear-gradient(180deg, transparent 0%, rgba(25, 18, 12, 0.78) 100%);
  color: #fff8f3;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.1;
  pointer-events: none;
}

.gallery figcaption::before {
  content: "";
  display: block;
  width: 2rem;
  height: 2px;
  background: var(--gold);
  margin: 0 0 0.5rem;
  opacity: 0.9;
}

/* Why rent
   ---------------------------------- */
.why {
  background: var(--paper);
}

.reasons {
  display: grid;
  gap: 1.15rem;
}

.reason {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.3rem 1.3rem;
}

.reason-icon {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--olive);
  color: #f3eadc;
  margin-bottom: 0.85rem;
}

.reason h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 0.4rem;
}

.reason p {
  margin: 0;
  color: var(--ink-soft);
}

/* Renter login placeholder + Contact
   ---------------------------------- */
.renter-banner {
  background: var(--olive);
  color: #f6f1e6;
}

.renter-banner h2 {
  color: #fffaf3;
}

.renter-banner p {
  margin: 0;
  max-width: 38rem;
  color: rgba(246, 241, 230, 0.9);
}

.contact {
  background: var(--cream);
}

.contact-intro .lede {
  margin-bottom: 2rem;
}

.contact-grid {
  display: grid;
  gap: 2rem;
  align-items: start;
}

.contact-card {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 1.5rem 1.5rem 1.3rem;
  border: 1px solid var(--line);
}

.contact-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin: 0 0 0.85rem;
}

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.contact-list li {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 0.5rem;
  padding: 0.7rem 0;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
}

.contact-list li:first-child {
  border-top: 0;
  padding-top: 0;
}

.contact-list dt,
.contact-list .label {
  font-weight: 700;
  color: var(--ink);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.contact-list a {
  color: var(--brown);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(106, 70, 48, 0.35);
}

.contact-list a:hover {
  color: var(--terra);
  border-bottom-color: var(--terra);
}

.note {
  margin-top: 1rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.form-wrap {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem 1.5rem;
  border: 1px solid var(--line);
}

.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-form .field {
  margin: 0 0 1.05rem;
}

.contact-form label {
  display: block;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 0.4rem;
}

.contact-form .req {
  color: var(--terra);
}

.contact-form .optional {
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--ink-soft);
  font-size: 0.78rem;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form select,
.contact-form textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.7rem 0.85rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form textarea {
  resize: vertical;
  min-height: 8rem;
}

.contact-form select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236a4630' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 0.8rem center;
  background-size: 1rem;
  padding-right: 2.2rem;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--terra);
  box-shadow: 0 0 0 3px rgba(182, 83, 40, 0.18);
  background: #fff;
}

.field-row {
  display: grid;
  gap: 0 1rem;
}

.contact-form .btn {
  border: 0;
  cursor: pointer;
  font-family: inherit;
  margin-top: 0.25rem;
}

.thanks-panel {
  display: none;
  padding: 0.4rem 0 0.2rem;
}

.thanks-panel h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  margin: 0 0 0.5rem;
}

.thanks-panel p {
  margin: 0 0 1.2rem;
  color: var(--ink-soft);
}

#thanks:target {
  display: block;
}

#thanks:target + .contact-form {
  display: none;
}

/* Footer
   ---------------------------------- */
.site-footer {
  background: var(--ink);
  color: #efe6d8;
  padding: 2.25rem 1.25rem;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 2rem;
  align-items: baseline;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
}

.footer-meta {
  margin: 0.25rem 0 0;
  font-size: 0.92rem;
  color: rgba(239, 230, 216, 0.75);
}

.footer-copy {
  margin: 0;
  font-size: 0.88rem;
  color: rgba(239, 230, 216, 0.65);
}

/* Layout breakpoints
   ---------------------------------- */
@media (max-width: 767px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem 1.25rem 1.15rem;
    gap: 0.35rem;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a:not(.btn) {
    padding: 0.55rem 0;
  }

  .site-nav .btn {
    width: 100%;
    margin-top: 0.4rem;
  }
}

@media (min-width: 640px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 240px;
  }

  .gallery figure,
  .gallery img {
    min-height: 0;
    height: 100%;
  }

  .gallery .span-2,
  .gallery .span-2-sm {
    grid-column: span 2;
  }

  .gallery .span-2-row {
    grid-row: span 2;
  }

  .reasons {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (min-width: 900px) {
  .about-grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3.5rem;
  }

  .gallery {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 270px;
  }

  .gallery .span-2-sm {
    grid-column: auto;
  }

  .gallery .span-2 {
    grid-column: span 2;
  }

  .gallery .span-2-row {
    grid-row: span 2;
  }

  .reasons {
    grid-template-columns: repeat(4, 1fr);
  }

  .contact-grid {
    grid-template-columns: 1.15fr 0.95fr;
    gap: 2rem;
    align-items: start;
  }
}
