/* =========================================================
   Rural Property For Sale — Editorial Country Aesthetic
   Cormorant Garamond display + Inter Tight body
   Palette: cream, deep moss green, oak brown, ink
   ========================================================= */

:root {
  /* Palette */
  --cream:        #f5f0e6;
  --cream-warm:   #ede4d3;
  --cream-deep:   #e2d6bf;
  --moss:         #3a4a2e;
  --moss-deep:    #2a3621;
  --moss-soft:    #5a6d4a;
  --oak:          #6b4f31;
  --oak-light:    #8c6d4b;
  --ink:          #1f1d18;
  --ink-soft:     #3d3a32;
  --rule:         #c9bfa9;
  --rule-soft:    #d9d0bc;
  --gold:         #a08652;

  /* Type */
  --serif: 'Cormorant Garamond', 'Garamond', 'Times New Roman', serif;
  --sans:  'Inter Tight', -apple-system, 'Segoe UI', sans-serif;

  /* Layout */
  --measure: 70ch;
  --container: 1240px;
  --container-narrow: 760px;
}

/* Reset / base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--moss);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  transition: color .25s, border-color .25s;
}
a:hover { color: var(--oak); border-bottom-color: var(--oak); }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}
.container.narrow { max-width: var(--container-narrow); }

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--ink);
  margin: 0 0 .6em;
  letter-spacing: -0.005em;
  line-height: 1.1;
}

h1.display {
  font-size: clamp(3.2rem, 7vw, 6.2rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0 0 .3em;
}
h1.display em { font-style: italic; color: var(--moss); font-weight: 400; }

.section-title {
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.08;
  font-weight: 500;
  margin: 0 0 .5em;
}

h3 {
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.prose-section h3 {
  font-size: 1.7rem;
  font-weight: 500;
  font-style: italic;
  color: var(--moss-deep);
  margin-top: 2.2em;
  margin-bottom: .4em;
}

.eyebrow {
  font-family: var(--sans);
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--oak);
  margin: 0 0 1.5em;
}
.eyebrow.light { color: var(--cream-deep); }

.lede {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2vw, 1.65rem);
  line-height: 1.45;
  font-weight: 400;
  font-style: italic;
  color: var(--ink-soft);
  margin: 0 0 1.5em;
  max-width: 38ch;
}

p { margin: 0 0 1.2em; max-width: var(--measure); }

/* ============================================
   HEADER
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 240, 230, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule-soft);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
  gap: 32px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: none;
  color: var(--ink);
}
.brand:hover { color: var(--ink); }

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 42px; height: 42px;
  border: 1.5px solid var(--moss-deep);
  color: var(--moss-deep);
  font-family: var(--serif);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  border-radius: 50%;
}

.brand-name {
  font-family: var(--serif);
  font-size: 1.1rem;
  line-height: 1.05;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.brand-name em {
  font-size: 0.78rem;
  font-style: italic;
  color: var(--oak);
  letter-spacing: 0.04em;
}

.primary-nav {
  display: flex;
  gap: 32px;
  font-size: 0.92rem;
  font-weight: 400;
  letter-spacing: 0.02em;
}
.primary-nav a {
  color: var(--ink-soft);
  border-bottom: none;
  position: relative;
  padding: 4px 0;
}
.primary-nav a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--moss);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}
.primary-nav a:hover { color: var(--moss-deep); }
.primary-nav a:hover::after { transform: scaleX(1); }

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  padding-top: 60px;
  padding-bottom: 80px;
  overflow: hidden;
}

.hero-image {
  position: absolute;
  inset: 0;
  z-index: 0;
  /* Fallback if image is missing — gradient that evokes landscape */
  background:
    linear-gradient(to bottom,
      rgba(120, 130, 100, 0.4) 0%,
      rgba(80, 95, 60, 0.5) 50%,
      rgba(50, 65, 40, 0.7) 100%),
    linear-gradient(135deg, #8b9670 0%, #5a6d4a 50%, #3a4a2e 100%);
}
.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  /* Hide alt text while broken — gradient fallback shows through */
  color: transparent;
  font-size: 0;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    /* Left-side text scrim — fades cream behind text */
    linear-gradient(
      to right,
      rgba(245, 240, 230, 0.92) 0%,
      rgba(245, 240, 230, 0.78) 30%,
      rgba(245, 240, 230, 0.3) 55%,
      rgba(245, 240, 230, 0) 75%
    ),
    /* Bottom fade into page */
    linear-gradient(
      to bottom,
      rgba(245, 240, 230, 0) 0%,
      rgba(245, 240, 230, 0) 60%,
      rgba(245, 240, 230, 0.95) 100%
    );
  z-index: 1;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--ink);
}
.hero-content .eyebrow { color: var(--oak); }
.hero-content h1.display { color: var(--ink); }

.hero-meta {
  display: flex;
  gap: 56px;
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--rule);
  max-width: 720px;
}
.hero-meta > div {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.hero-meta .num {
  font-family: var(--serif);
  font-size: 2.2rem;
  font-weight: 500;
  color: var(--moss-deep);
  line-height: 1;
}
.hero-meta .label {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ============================================
   PROSE SECTIONS
   ============================================ */
.prose-section {
  padding: 120px 0;
  background: var(--cream);
}
.prose-section.deep {
  background: var(--cream-warm);
  padding: 140px 0;
}
.prose-section.dark {
  background: var(--moss-deep);
  color: var(--cream-warm);
  padding: 120px 0;
}
.prose-section.dark .section-title { color: var(--cream); }
.prose-section.dark p { color: var(--cream-warm); }

.prose-section p {
  font-size: 1.08rem;
  line-height: 1.75;
}

.prose-section .narrow > h2 {
  margin-bottom: .8em;
}

.section-head {
  max-width: 760px;
  margin: 0 auto 80px;
  text-align: center;
}
.section-head .eyebrow { margin-bottom: 1em; }
.section-intro {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-style: italic;
  color: var(--ink-soft);
  line-height: 1.5;
  margin: 0 auto;
}

/* ============================================
   PROPERTY TYPES GRID
   ============================================ */
.property-types {
  padding: 140px 0;
  background: var(--cream-warm);
}
.types-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}
.type-card {
  padding: 36px 32px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--cream-warm);
  transition: background .3s ease;
}
.type-card:hover {
  background: var(--cream);
}
.type-card h3 {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 500;
  font-style: italic;
  color: var(--moss-deep);
  margin: 0 0 .5em;
  letter-spacing: -0.005em;
}
.type-card p {
  font-size: 0.96rem;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0 0 .8em;
}
.type-card p:last-child {
  margin-bottom: 0;
}

/* ============================================
   DATA SECTION
   ============================================ */
.data-section {
  padding: 140px 0;
  background: var(--moss-deep);
  color: var(--cream-warm);
  position: relative;
}
.data-section .section-title { color: var(--cream); }
.data-section .section-intro { color: var(--cream-deep); }
.data-section .eyebrow { color: var(--gold); }

.data-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: rgba(245, 240, 230, 0.12);
  border: 1px solid rgba(245, 240, 230, 0.12);
  max-width: 1080px;
  margin: 0 auto;
}
.data-card {
  padding: 40px 36px;
  background: var(--moss-deep);
}
.data-eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1em;
}
.data-card h3 {
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 500;
  font-style: italic;
  color: var(--cream);
  margin: 0 0 .8em;
  line-height: 1.15;
}
.data-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.data-card li {
  font-size: 0.95rem;
  line-height: 1.55;
  padding: 10px 0 10px 22px;
  position: relative;
  color: var(--cream-warm);
  border-top: 1px solid rgba(245, 240, 230, 0.1);
}
.data-card li:first-child { border-top: none; padding-top: 4px; }
.data-card li::before {
  content: '—';
  position: absolute;
  left: 0;
  top: 10px;
  color: var(--gold);
}
.data-card li:first-child::before { top: 4px; }

/* ============================================
   AGENTS SECTION
   ============================================ */
.agents-section {
  padding: 140px 0;
  background: var(--cream);
  text-align: left;
}
.agents-section .narrow > * { max-width: none; }
.agents-section .narrow > p { max-width: var(--measure); }
.agents-section .section-title {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-style: italic;
  font-weight: 400;
  color: var(--moss-deep);
}
.agents-section p {
  font-size: 1.1rem;
  line-height: 1.75;
}
.contact-line {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-style: italic;
  margin-top: 2em;
  color: var(--ink-soft);
}

/* ============================================
   SPLIT (ALERTS) SECTION
   ============================================ */
.split-section {
  padding: 140px 0;
  background: var(--cream-warm);
}
.split {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 96px;
  align-items: center;
}
.split-text .section-title {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-style: italic;
  font-weight: 400;
  color: var(--moss-deep);
}
.split-text p {
  font-size: 1.08rem;
  line-height: 1.75;
}

.split-aside {
  display: flex;
  justify-content: center;
}
.alert-example {
  background: var(--cream);
  padding: 44px 40px;
  border: 1px solid var(--rule);
  max-width: 360px;
  width: 100%;
  position: relative;
  box-shadow: 0 24px 48px -28px rgba(58, 74, 46, 0.25);
}
.alert-example::before {
  content: '';
  position: absolute;
  top: 8px; left: 8px; right: 8px; bottom: 8px;
  border: 1px solid var(--rule-soft);
  pointer-events: none;
}
.alert-label {
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--oak);
  margin: 0 0 1.4em;
  font-weight: 500;
}
.alert-criteria {
  font-family: var(--serif);
  font-size: 1.15rem;
  margin: 0 0 .5em;
  color: var(--ink);
  line-height: 1.3;
}
.alert-criteria strong {
  font-weight: 600;
  font-style: italic;
  color: var(--moss-deep);
}
.alert-divider {
  height: 1px;
  background: var(--rule);
  margin: 1.4em 0;
}
.alert-note {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--ink-soft);
  margin: 0;
}

/* ============================================
   REGIONS
   ============================================ */
.regions-section {
  padding: 140px 0;
  background: var(--cream);
}
.regions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 56px 48px;
}
.region-block h3 {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--moss-deep);
  margin: 0 0 .5em;
  padding-bottom: .6em;
  border-bottom: 1px solid var(--rule);
}
.region-block p {
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--ink-soft);
  margin: 0;
}

/* ============================================
   IMAGE BREAKS (full-bleed editorial photography)
   ============================================ */
.image-break {
  margin: 0;
  padding: 0 0 0;
  background: var(--cream);
}
.image-break img {
  width: 100%;
  height: clamp(360px, 56vh, 620px);
  object-fit: cover;
  display: block;
}
.image-break.wide img {
  height: clamp(380px, 60vh, 680px);
}
.image-break figcaption {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--ink-soft);
  text-align: center;
  padding: 24px 32px 0;
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.5;
}

/* ============================================
   AGENTS — FREE LISTING BANNER
   ============================================ */
.agents-banner {
  background: var(--moss-deep);
  color: var(--cream);
  padding: 56px 56px 60px;
  margin: 48px 0 56px;
  position: relative;
  border-left: 4px solid var(--gold);
  text-align: center;
}
.agents-banner::after {
  content: '';
  position: absolute;
  inset: 12px 12px 12px 8px;
  border: 1px solid rgba(245, 240, 230, 0.18);
  pointer-events: none;
}
.agents-banner .agents-banner-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1.5em;
  font-weight: 500;
  font-family: var(--sans);
  max-width: none;
  line-height: 1.4;
}
.agents-banner .agents-banner-headline {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  line-height: 1.05;
  font-weight: 500;
  color: var(--cream);
  margin: 0 auto .6em;
  letter-spacing: -0.015em;
  max-width: none;
}
.agents-banner .agents-banner-headline em {
  font-style: italic;
  color: var(--gold);
  font-weight: 500;
  border-bottom: 2px solid var(--gold);
  padding-bottom: 4px;
}
.agents-banner .agents-banner-sub {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-style: italic;
  line-height: 1.55;
  color: var(--cream-deep);
  margin: 0 auto;
  max-width: 560px;
}

/* ============================================
   DATA SECTION — FOOTNOTE
   ============================================ */
.data-footnote {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--cream-deep);
  text-align: center;
  margin: 56px auto 0;
  max-width: 640px;
  line-height: 1.55;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--ink);
  color: var(--cream-warm);
  padding: 80px 0 40px;
}
.site-footer a {
  color: var(--cream-warm);
  border-bottom-color: rgba(245, 240, 230, 0.3);
}
.site-footer a:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: flex-start;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}
.footer-brand .brand-mark {
  border-color: var(--cream-warm);
  color: var(--cream-warm);
}
.footer-brand p {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--cream-warm);
  margin: 0;
}
.footer-legal {
  width: 100%;
  font-size: 0.78rem;
  color: rgba(245, 240, 230, 0.5);
  margin: 24px 0 0;
  padding-top: 24px;
  border-top: 1px solid rgba(245, 240, 230, 0.12);
  letter-spacing: 0.04em;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  .container { padding: 0 24px; }

  .primary-nav { display: none; }

  .hero { min-height: 80vh; padding-bottom: 60px; }
  .hero-meta {
    flex-wrap: wrap;
    gap: 32px;
    margin-top: 40px;
    padding-top: 24px;
  }
  .hero-meta > div { flex: 1 1 40%; }

  .prose-section, .property-types, .data-section,
  .agents-section, .split-section, .regions-section { padding: 80px 0; }

  .split {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .section-head { margin-bottom: 56px; }

  .types-grid, .data-grid {
    grid-template-columns: 1fr;
  }
  .regions-grid { gap: 40px; }

  .agents-banner { padding: 36px 28px 40px; margin: 32px 0 40px; }
  .image-break img { height: 280px; }
  .image-break.wide img { height: 320px; }
  .image-break figcaption { padding: 20px 24px 0; font-size: 0.95rem; }
}

@media (min-width: 901px) and (max-width: 1100px) {
  .types-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .container { padding: 0 20px; }
  .brand-name { font-size: 1rem; }
  .brand-name em { font-size: 0.72rem; }
  .hero-meta > div { flex: 1 1 100%; }
  .hero-meta .num { font-size: 1.8rem; }
  .alert-example { padding: 32px 28px; }
  .prose-section, .property-types, .data-section,
  .agents-section, .split-section, .regions-section { padding: 64px 0; }
}

/* Print */
@media print {
  .site-header, .primary-nav { display: none; }
  .hero { min-height: auto; }
  body { background: white; color: black; }
}

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