/* =========================================================
   Team Wieche — teamwieche.com
   Aesthetic: Apple-minimal × Bend outdoorsy lifestyle
   ========================================================= */

:root {
  /* Palette — earthy, calm, premium */
  --ink: #1d1d1f;            /* primary text (Apple ink) */
  --ink-2: #424245;          /* secondary text */
  --ink-3: #6e6e73;          /* tertiary text */
  --line: #e8e6df;           /* hairlines */
  --line-2: #d8d4c8;
  --paper: #fafaf7;          /* page background (warm white) */
  --paper-2: #f3f1ea;        /* card/section background */
  --paper-3: #ebe7dc;        /* inset background */
  --forest: #2c4a3a;         /* primary brand — deep forest */
  --forest-2: #1f3a2c;       /* darker forest */
  --sage: #6b8068;           /* secondary green */
  --walnut: #8b6f47;         /* warm wood accent */
  --sky: #4a6b7a;            /* cool accent */
  --white: #ffffff;

  /* Type */
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: "New York", "Iowan Old Style", "Apple Garamond", Georgia, "Times New Roman", serif;

  /* Layout */
  --max: 1240px;
  --max-narrow: 880px;
  --radius: 14px;
  --radius-sm: 8px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.04);
  --shadow: 0 4px 24px rgba(28, 36, 30, .06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-lg: 0 20px 60px rgba(28, 36, 30, .12);

  /* Motion */
  --ease: cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv01", "cv11";
}
img, svg { max-width: 100%; display: block; }
a { color: var(--forest); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--forest-2); }
button { font-family: inherit; cursor: pointer; }
p { margin: 0 0 1em; }

/* Type scale */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  color: var(--ink);
  margin: 0 0 .4em;
  font-weight: 600;
  letter-spacing: -0.022em;
  line-height: 1.08;
}
h1 { font-size: clamp(2.4rem, 5.4vw, 4.6rem); letter-spacing: -0.03em; font-weight: 700; }
h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); letter-spacing: -0.025em; font-weight: 600; }
h3 { font-size: clamp(1.3rem, 1.8vw, 1.6rem); }
h4 { font-size: 1.1rem; font-weight: 600; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: .76rem;
  font-weight: 600;
  color: var(--sage);
  margin: 0 0 1.2em;
}
.lede { font-size: clamp(1.1rem, 1.4vw, 1.3rem); color: var(--ink-2); line-height: 1.55; max-width: 760px; }

/* Layout helpers */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: var(--max-narrow); margin: 0 auto; padding: 0 24px; }
section { padding: clamp(64px, 9vw, 120px) 0; }
.section-sm { padding: clamp(48px, 6vw, 80px) 0; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  background: var(--forest);
  color: #fff;
  font-weight: 500;
  font-size: 1rem;
  border: 1px solid var(--forest);
  transition: all .2s var(--ease);
  letter-spacing: -.005em;
}
.btn:hover { background: var(--forest-2); border-color: var(--forest-2); color: #fff; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--forest); font-weight: 500;
  border-bottom: 1px solid transparent; padding-bottom: 2px;
}
.btn-link:hover { border-bottom-color: var(--forest); }
.btn-link svg { transition: transform .2s var(--ease); }
.btn-link:hover svg { transform: translateX(3px); }

/* Header */
header.site {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 250, 247, .82);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(232, 230, 223, .6);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 0;
}
.brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--ink);
  letter-spacing: -.015em;
  display: flex; align-items: center; gap: 10px;
}
.brand-mark {
  width: 28px; height: 28px;
  background: var(--forest);
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: 0;
}
nav.primary ul {
  display: flex; gap: 32px; list-style: none; margin: 0; padding: 0;
}
nav.primary a {
  color: var(--ink-2);
  font-size: .95rem;
  font-weight: 400;
  letter-spacing: -.005em;
}
nav.primary a:hover { color: var(--ink); }
.nav-cta { display: none; }
@media (min-width: 900px) { .nav-cta { display: inline-flex; padding: 9px 18px; font-size: .92rem; } }
.menu-toggle {
  display: inline-flex; background: none; border: 0; padding: 8px;
  color: var(--ink); width: 40px; height: 40px;
  align-items: center; justify-content: center;
}
@media (min-width: 760px) { .menu-toggle { display: none; } }
.mobile-nav {
  display: none;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.mobile-nav.open { display: block; }
.mobile-nav ul { list-style: none; margin: 0; padding: 12px 24px 20px; }
.mobile-nav li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.mobile-nav li:last-child { border-bottom: 0; }
.mobile-nav a { display: block; color: var(--ink); font-size: 1rem; padding: 8px 0; }
@media (min-width: 760px) { .mobile-nav { display: none !important; } }
@media (max-width: 759px) { nav.primary { display: none; } }

/* Hero */
.hero {
  position: relative;
  padding: clamp(80px, 12vw, 160px) 0 clamp(60px, 8vw, 100px);
  overflow: hidden;
  background:
    radial-gradient(ellipse at 80% 10%, rgba(107,128,104,.10), transparent 55%),
    radial-gradient(ellipse at 10% 90%, rgba(139,111,71,.08), transparent 50%),
    var(--paper);
}
.hero-inner { position: relative; z-index: 2; }
.hero h1 {
  max-width: 18ch;
  margin-bottom: .35em;
}
.hero h1 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--forest);
}
.hero .lede { margin-bottom: 2.2em; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero-meta {
  display: flex; gap: 8px; align-items: center;
  margin-top: 2.4em;
  color: var(--ink-3); font-size: .92rem;
}
.hero-meta strong { color: var(--ink); font-weight: 600; }
.hero-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--line-2); }

/* Stats strip */
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: clamp(48px, 6vw, 80px);
}
@media (min-width: 720px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat {
  background: var(--paper);
  padding: 28px 24px;
  text-align: left;
}
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  font-weight: 600;
  letter-spacing: -.03em;
  color: var(--ink);
  line-height: 1;
}
.stat-num span { color: var(--sage); }
.stat-label {
  margin-top: 10px;
  font-size: .88rem;
  color: var(--ink-3);
  letter-spacing: -.005em;
}

/* Section headers */
.section-head {
  margin-bottom: clamp(40px, 5vw, 64px);
  max-width: 760px;
}
.section-head h2 + .lede { margin-top: .8em; }

/* Card grid */
.grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1080px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }

/* Neighborhood card */
.nhood-card {
  display: flex; flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
  text-decoration: none;
  color: var(--ink);
}
.nhood-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--line-2);
  color: var(--ink);
}
.nhood-card .media {
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--paper-2), var(--paper-3));
  position: relative;
  overflow: hidden;
}
.nhood-card .media-svg {
  position: absolute; inset: 0; width: 100%; height: 100%;
}
.nhood-card .body {
  padding: 22px 24px 26px;
}
.nhood-card h3 {
  margin-bottom: 6px;
  font-size: 1.3rem;
  letter-spacing: -.02em;
}
.nhood-card .tag {
  font-size: .76rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--sage);
  font-weight: 600;
  margin-bottom: 14px;
}
.nhood-card .blurb {
  color: var(--ink-2);
  font-size: .96rem;
  margin-bottom: 16px;
  line-height: 1.5;
}
.nhood-card .meta {
  display: flex; gap: 16px; font-size: .82rem; color: var(--ink-3);
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.nhood-card .meta strong { color: var(--ink); font-weight: 600; }

/* Feature row (lifestyle / about) */
.feature-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
@media (min-width: 880px) { .feature-row { grid-template-columns: 1.05fr 1fr; } }
.feature-row.reverse > :first-child { order: 2; }
@media (min-width: 880px) { .feature-row.reverse > :first-child { order: 0; } }
.feature-art {
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--paper-2), var(--paper-3));
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  border: 1px solid var(--line);
}
.feature-art svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.feature-text h2 { margin-bottom: .5em; }
.feature-text .lede { margin-bottom: 1.4em; }

/* IDX placeholder */
.idx-shell {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(40px, 5vw, 64px);
  text-align: center;
}
.idx-shell .badge {
  display: inline-block;
  background: var(--white);
  border: 1px solid var(--line);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: .8rem;
  color: var(--ink-2);
  margin-bottom: 18px;
}

/* Testimonials */
.quote {
  background: var(--paper-2);
  border-radius: var(--radius-lg);
  padding: clamp(32px, 4vw, 48px);
  border: 1px solid var(--line);
}
.quote blockquote {
  margin: 0 0 18px;
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 1.6vw, 1.5rem);
  line-height: 1.4;
  color: var(--ink);
  letter-spacing: -.005em;
}
.quote cite {
  font-style: normal;
  color: var(--ink-3);
  font-size: .9rem;
  letter-spacing: -.005em;
}
.quote cite strong { color: var(--ink); font-weight: 600; display: block; margin-bottom: 2px; }

/* Contact section */
.contact-card {
  background: var(--forest);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(40px, 6vw, 80px);
  background-image:
    radial-gradient(ellipse at 90% 10%, rgba(255,255,255,.06), transparent 55%),
    radial-gradient(ellipse at 10% 100%, rgba(0,0,0,.15), transparent 60%);
}
.contact-card h2 { color: #fff; }
.contact-card .lede { color: rgba(255,255,255,.78); }
.contact-card .btn { background: #fff; color: var(--forest); border-color: #fff; }
.contact-card .btn:hover { background: var(--paper-2); border-color: var(--paper-2); color: var(--forest); }
.contact-card .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.contact-card .contact-grid {
  display: grid; grid-template-columns: 1fr; gap: 32px;
  margin-top: 2.2em;
}
@media (min-width: 760px) { .contact-card .contact-grid { grid-template-columns: 1.2fr 1fr; } }
.contact-card form { display: grid; gap: 12px; }
.contact-card label {
  display: block; font-size: .82rem; color: rgba(255,255,255,.7);
  margin-bottom: 6px; letter-spacing: -.005em;
}
.contact-card input, .contact-card textarea, .contact-card select {
  width: 100%;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  color: #fff;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.contact-card input::placeholder, .contact-card textarea::placeholder { color: rgba(255,255,255,.5); }
.contact-card input:focus, .contact-card textarea:focus, .contact-card select:focus {
  outline: none;
  border-color: rgba(255,255,255,.5);
  background: rgba(255,255,255,.12);
}
.contact-card textarea { resize: vertical; min-height: 120px; }
.contact-meta {
  font-size: .9rem; line-height: 1.7;
}
.contact-meta strong { color: #fff; font-weight: 600; display: block; margin-bottom: 2px; font-size: 1rem; }
.contact-meta a { color: #fff; border-bottom: 1px solid rgba(255,255,255,.3); }
.contact-meta a:hover { border-bottom-color: #fff; color: #fff; }
.contact-meta .row { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.contact-meta .row:last-child { border-bottom: 0; }

/* FAQ accordion */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 22px 0; }
.faq summary {
  list-style: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--ink);
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  letter-spacing: -.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-size: 1.6rem; color: var(--sage); font-weight: 300;
  transition: transform .2s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { color: var(--ink-2); padding-top: 12px; font-size: 1rem; line-height: 1.6; }
.faq details > div p:last-child { margin-bottom: 0; }

/* Footer */
footer.site {
  background: var(--paper-2);
  padding: 80px 0 40px;
  border-top: 1px solid var(--line);
  margin-top: 80px;
}
.foot-grid {
  display: grid; grid-template-columns: 1fr; gap: 40px;
  margin-bottom: 56px;
}
@media (min-width: 760px) { .foot-grid { grid-template-columns: 1.4fr repeat(3, 1fr); } }
.foot-col h4 {
  font-size: .82rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 16px; font-family: var(--font-sans); font-weight: 600;
}
.foot-col ul { list-style: none; margin: 0; padding: 0; }
.foot-col li { margin-bottom: 10px; }
.foot-col a { color: var(--ink-2); font-size: .95rem; }
.foot-col a:hover { color: var(--ink); }
.foot-brand p { color: var(--ink-3); font-size: .9rem; line-height: 1.6; max-width: 38ch; }
.foot-fine {
  padding-top: 28px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px;
  color: var(--ink-3); font-size: .82rem;
}
.foot-fine .legal { display: flex; gap: 18px; flex-wrap: wrap; }
.foot-fine a { color: var(--ink-3); }

/* Page hero (interior pages) */
.page-hero {
  padding: clamp(80px, 10vw, 140px) 0 clamp(40px, 5vw, 64px);
  background:
    radial-gradient(ellipse at 80% 20%, rgba(107,128,104,.08), transparent 55%),
    var(--paper);
}
.page-hero .breadcrumb {
  font-size: .85rem; color: var(--ink-3); margin-bottom: 18px;
}
.page-hero .breadcrumb a { color: var(--ink-3); }
.page-hero .breadcrumb a:hover { color: var(--ink); }
.page-hero h1 { font-size: clamp(2.2rem, 4.4vw, 3.8rem); }

/* Neighborhood detail blocks */
.nhood-quick {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden;
  margin: 32px 0 48px;
}
@media (min-width: 720px) { .nhood-quick { grid-template-columns: repeat(4, 1fr); } }
.nhood-quick .item { background: var(--paper); padding: 22px 20px; }
.nhood-quick .item .k { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-3); margin-bottom: 6px; }
.nhood-quick .item .v { font-size: 1.15rem; font-weight: 600; color: var(--ink); letter-spacing: -.015em; }

.prose { max-width: 760px; }
.prose h2 { margin-top: 2em; margin-bottom: .5em; }
.prose h3 { margin-top: 1.6em; margin-bottom: .4em; font-size: 1.25rem; }
.prose p, .prose ul, .prose ol { font-size: 1.06rem; color: var(--ink-2); line-height: 1.68; }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 1.2em; }
.prose li { margin-bottom: 8px; }
.prose blockquote {
  border-left: 3px solid var(--sage);
  padding: 4px 0 4px 18px;
  margin: 1.5em 0;
  color: var(--ink-2);
  font-family: var(--font-serif);
  font-size: 1.18rem;
  font-style: italic;
}
.prose a { border-bottom: 1px solid var(--line-2); }
.prose a:hover { border-bottom-color: var(--forest); }

/* Highlight callout */
.callout {
  background: var(--paper-2);
  border-left: 3px solid var(--sage);
  border-radius: var(--radius-sm);
  padding: 24px 26px;
  margin: 32px 0;
}
.callout h4 { margin-bottom: 6px; color: var(--ink); }
.callout p:last-child { margin-bottom: 0; }
.callout p { color: var(--ink-2); }

/* Utility */
.divider { height: 1px; background: var(--line); margin: 0; }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.muted { color: var(--ink-3); }

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