/*
Theme Name: Crow’s Pass
Theme URI: https://crowspass.com
Author: Novus Print
Description: A custom, accessible theme for the Crow’s Pass intentional living community.
Version: 3.0.1
Text Domain: crows-pass
*/

:root {
  --ink: #17231f;
  --forest: #203d32;
  --pine: #315b48;
  --moss: #758b64;
  --sage: #b9c6a5;
  --cream: #f6f2e8;
  --paper: #fffdf8;
  --clay: #b66f48;
  --gold: #d4aa62;
  --mist: #e8eee8;
  --line: rgba(23, 35, 31, .14);
  --shadow: 0 18px 55px rgba(31, 51, 42, .14);
  --radius: 24px;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.skip-link {
  position: fixed; top: 10px; left: 10px; z-index: 999;
  padding: 10px 14px; background: var(--ink); color: #fff;
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }
.container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.eyebrow {
  margin: 0 0 14px; color: var(--clay); font-size: .78rem; font-weight: 800;
  letter-spacing: .16em; text-transform: uppercase;
}
h1, h2, h3 { margin: 0; font-family: var(--serif); line-height: 1.08; font-weight: 500; }
h1 { font-size: clamp(3.2rem, 7vw, 6.9rem); letter-spacing: -.045em; }
h2 { font-size: clamp(2.35rem, 4.4vw, 4.5rem); letter-spacing: -.035em; }
h3 { font-size: clamp(1.35rem, 2vw, 1.85rem); }
p { margin: 0 0 1.1em; }
.lead { font-size: clamp(1.12rem, 1.8vw, 1.38rem); line-height: 1.55; color: #43534c; }
.section { padding: clamp(78px, 10vw, 140px) 0; }
.section-head { max-width: 790px; margin-bottom: 52px; }
.section-head .lead { margin-top: 22px; }

.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.site-header.is-scrolled {
  background: rgba(255, 253, 248, .94); border-color: var(--line);
  box-shadow: 0 8px 30px rgba(23, 35, 31, .08); backdrop-filter: blur(16px);
}
.home .site-header:not(.is-scrolled), .page .site-header:not(.is-scrolled) { color: #fff; }
.home .site-header:not(.is-scrolled) .brand-mark, .page .site-header:not(.is-scrolled) .brand-mark { color: #e4ce9f; }
.home .site-header:not(.is-scrolled) .brand-word small, .page .site-header:not(.is-scrolled) .brand-word small { color: #d5dfd5; }
.home .site-header:not(.is-scrolled) .site-nav .btn, .page .site-header:not(.is-scrolled) .site-nav .btn { background: var(--cream); color: var(--forest); }
.nav-wrap { min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
.brand-mark { width: 42px; height: 42px; color: var(--forest); }
.brand-word { font-family: var(--serif); font-size: 1.45rem; font-weight: 600; line-height: 1; }
.brand-word small { display: block; margin-top: 5px; font: 700 .57rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--pine); }
.site-nav { display: flex; align-items: center; gap: 27px; }
.site-nav a { font-size: .89rem; font-weight: 750; text-decoration: none; }
.site-nav a:not(.btn):hover { color: var(--clay); }
.nav-toggle { display: none; width: 46px; height: 46px; border: 0; border-radius: 50%; background: var(--forest); color: #fff; }
.nav-toggle span, .nav-toggle::before, .nav-toggle::after {
  content: ""; display: block; width: 20px; height: 2px; margin: 4px auto; background: currentColor; transition: .2s ease;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 22px; border: 1px solid transparent; border-radius: 999px;
  background: var(--forest); color: #fff; font-size: .9rem; font-weight: 800; text-decoration: none;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-2px); background: var(--pine); box-shadow: 0 10px 28px rgba(32, 61, 50, .22); }
.btn-light { background: var(--cream); color: var(--forest); }
.btn-light:hover { background: #fff; }
.btn-outline { border-color: rgba(255,255,255,.55); background: transparent; color: #fff; }
.btn-outline:hover { background: #fff; color: var(--forest); }

.hero {
  position: relative; min-height: 100svh; display: grid; align-items: end; overflow: hidden;
  background: var(--forest); color: #fff;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(12,28,22,.94) 0%, rgba(16,36,28,.76) 42%, rgba(20,39,31,.16) 72%),
              linear-gradient(0deg, rgba(12,25,20,.75), transparent 55%),
              url("assets/images/community-vision.jpg") center/cover no-repeat;
  transform: scale(1.01);
}
.hero::after {
  content: ""; position: absolute; right: -12vw; bottom: -28vw; width: 54vw; height: 54vw;
  border: 1px solid rgba(255,255,255,.22); border-radius: 50%; box-shadow: 0 0 0 70px rgba(255,255,255,.035), 0 0 0 140px rgba(255,255,255,.025);
}
.hero-inner { position: relative; z-index: 1; padding: 170px 0 86px; }
.hero-copy { max-width: 800px; }
.hero .eyebrow { color: #e7c895; }
.hero h1 em { color: #e9d3a9; font-style: italic; }
.hero .lead { max-width: 690px; margin: 28px 0 35px; color: rgba(255,255,255,.83); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-meta { margin-top: 68px; display: flex; flex-wrap: wrap; gap: 14px 30px; color: rgba(255,255,255,.72); font-size: .88rem; }
.hero-meta span { display: inline-flex; align-items: center; gap: 9px; }
.hero-meta i { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }

.statement { background: var(--cream); }
.statement-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(46px, 8vw, 110px); align-items: center; }
.statement-quote { font: italic clamp(2.1rem, 4vw, 4rem)/1.18 var(--serif); letter-spacing: -.03em; color: var(--forest); }
.statement-copy { padding-left: 36px; border-left: 1px solid rgba(32,61,50,.24); }

.problem-grid { display: grid; grid-template-columns: .78fr 1.22fr; gap: 70px; align-items: start; }
.problem-sticky { position: sticky; top: 125px; }
.issue-list { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.issue { display: grid; grid-template-columns: 58px 1fr; gap: 20px; padding: 30px; background: var(--paper); }
.issue-num { color: var(--clay); font: 600 1.15rem var(--serif); }
.issue p { margin: 8px 0 0; color: #59645f; }

.model { background: var(--forest); color: #fff; }
.model .section-head .lead { color: rgba(255,255,255,.72); }
.model-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.model-card {
  min-height: 390px; display: flex; flex-direction: column; justify-content: space-between;
  padding: 36px; border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius);
  background: rgba(255,255,255,.055); transition: background .2s ease, transform .2s ease;
}
.model-card:hover { background: rgba(255,255,255,.09); transform: translateY(-4px); }
.model-icon { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%; background: #e4ce9f; color: var(--forest); font: 600 1.5rem var(--serif); }
.model-card p { margin: 14px 0 0; color: rgba(255,255,255,.68); }

.impact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.impact-card { padding: 38px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.impact-card:nth-child(2) { background: var(--mist); }
.impact-card:nth-child(3) { background: #efe3d7; }
.impact-card:nth-child(4) { background: #e2e9d7; }
.impact-card .kicker { color: var(--clay); font-size: .74rem; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.impact-card h3 { margin-top: 15px; }
.impact-card p { margin: 14px 0 0; color: #56635c; }

.policy { background: #e7ede6; }
.policy-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 70px; }
.policy-list { counter-reset: policy; display: grid; gap: 14px; }
.policy-item {
  counter-increment: policy; position: relative; padding: 26px 26px 26px 78px;
  border: 1px solid rgba(32,61,50,.15); border-radius: 18px; background: rgba(255,255,255,.63);
}
.policy-item::before { content: counter(policy, decimal-leading-zero); position: absolute; left: 24px; top: 25px; color: var(--clay); font: 600 1rem var(--serif); }
.policy-item strong { display: block; font-family: var(--serif); font-size: 1.23rem; }

.journey { overflow: hidden; }
.journey-line { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.journey-line::before { content: ""; position: absolute; top: 22px; left: 5%; right: 5%; height: 1px; background: var(--line); }
.milestone { position: relative; padding-top: 58px; }
.milestone::before { content: ""; position: absolute; z-index: 1; top: 14px; left: 0; width: 17px; height: 17px; border: 6px solid var(--paper); border-radius: 50%; background: var(--clay); box-shadow: 0 0 0 1px var(--clay); }
.milestone small { color: var(--clay); font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.milestone h3 { margin-top: 8px; }
.milestone p { margin-top: 10px; color: #667069; font-size: .94rem; }

.support { padding-top: 0; }
.support-panel {
  position: relative; overflow: hidden; display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px;
  padding: clamp(42px, 7vw, 86px); border-radius: 32px; background: var(--clay); color: #fff;
}
.support-panel::after { content: ""; position: absolute; right: -90px; top: -90px; width: 330px; height: 330px; border-radius: 50%; border: 70px solid rgba(255,255,255,.08); }
.support-panel .lead { color: rgba(255,255,255,.82); }
.support-actions { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 12px; }
.support-note { font-size: .8rem; color: rgba(255,255,255,.72); }

.contact { background: var(--cream); }
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 70px; }
.contact-links { display: grid; gap: 12px; margin-top: 30px; }
.contact-links a { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 800; }
.contact-links a:hover { color: var(--clay); }
.interest-form { padding: 38px; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; margin-bottom: 7px; font-size: .79rem; font-weight: 900; letter-spacing: .05em; text-transform: uppercase; }
.field input, .field select, .field textarea {
  width: 100%; border: 1px solid #ced5cf; border-radius: 12px; background: #fbfcf9; padding: 13px 14px; color: var(--ink);
}
.field textarea { min-height: 125px; resize: vertical; }
.form-note { margin: 12px 0 0; color: #6e7771; font-size: .76rem; }
.hp-field { position: absolute; left: -9999px; }
.notice { margin-bottom: 18px; padding: 12px 14px; border-radius: 10px; background: #e5efe3; color: #294b36; font-weight: 700; }
.notice.error { background: #f8e2dc; color: #773c2c; }

.site-footer { padding: 56px 0 34px; background: #14261f; color: rgba(255,255,255,.78); }
.footer-top { display: grid; grid-template-columns: 1.2fr .8fr; gap: 50px; align-items: end; }
.site-footer .brand { color: #fff; }
.site-footer .brand-mark { color: #e4ce9f; }
.site-footer .brand-word small { color: #c8d1c2; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px 24px; }
.footer-links a { text-decoration: none; font-weight: 700; font-size: .86rem; }
.footer-bottom { display: flex; justify-content: space-between; gap: 30px; margin-top: 38px; padding-top: 25px; border-top: 1px solid rgba(255,255,255,.13); font-size: .76rem; }

.entry-wrap { padding: 150px 0 90px; }
.entry-wrap article { max-width: 780px; margin: auto; }
.entry-wrap .entry-title { margin-bottom: 30px; }

/* Interior pages */
.page-hero { position: relative; min-height: 620px; display: grid; align-items: end; overflow: hidden; padding: 170px 0 82px; background: var(--forest); color: #fff; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,28,21,.92), rgba(18,45,34,.58) 58%, rgba(18,45,34,.18)), var(--page-image) center/cover no-repeat; }
.page-hero::after { content: ""; position: absolute; inset: auto 0 0; height: 34%; background: linear-gradient(transparent, rgba(10,25,19,.55)); }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { max-width: 880px; font-size: clamp(3.2rem, 6vw, 6rem); }
.page-hero .lead { max-width: 720px; margin: 24px 0 0; color: rgba(255,255,255,.84); }
.page-hero .eyebrow { color: #edcf9c; }
.breadcrumbs { margin-bottom: 24px; font-size: .78rem; font-weight: 800; color: rgba(255,255,255,.72); }
.breadcrumbs a { text-decoration: none; }
.subnav { background: var(--forest); color: rgba(255,255,255,.8); border-top: 1px solid rgba(255,255,255,.12); }
.subnav .container { display: flex; gap: 24px; overflow-x: auto; padding-block: 17px; scrollbar-width: none; -ms-overflow-style: none; }
.subnav .container::-webkit-scrollbar { display: none; }
.subnav a { flex: none; text-decoration: none; font-size: .84rem; font-weight: 800; }
.subnav a:hover { color: #fff; }
.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(45px, 8vw, 100px); align-items: start; }
.split.reverse { grid-template-columns: 1.1fr .9fr; }
.prose { max-width: 760px; }
.prose h2 { margin-bottom: 24px; }
.prose h3 { margin: 34px 0 12px; }
.prose p, .prose li { color: #4f5d56; }
.prose ul { padding-left: 1.2em; }
.photo-frame { overflow: hidden; border-radius: 30px; background: var(--mist); box-shadow: var(--shadow); }
.photo-frame img { width: 100%; min-height: 480px; object-fit: cover; }
.photo-caption { padding: 14px 18px; color: #667069; font-size: .76rem; background: #fff; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature-card { padding: 32px; border: 1px solid var(--line); border-radius: 22px; background: #fff; }
.feature-card .number { display: inline-grid; place-items: center; width: 42px; height: 42px; margin-bottom: 26px; border-radius: 50%; background: var(--cream); color: var(--clay); font: 600 1rem var(--serif); }
.feature-card p { margin: 12px 0 0; color: #5a6760; }
.page-band { background: var(--cream); }
.page-band.green { background: var(--forest); color: #fff; }
.page-band.green .lead, .page-band.green .feature-card p { color: rgba(255,255,255,.72); }
.page-band.green .feature-card { border-color: rgba(255,255,255,.14); background: rgba(255,255,255,.06); }
.page-band.green .feature-card .number { background: #e4ce9f; color: var(--forest); }
.gallery-grid { display: grid; grid-template-columns: 1.35fr .65fr .65fr; gap: 14px; }
.gallery-grid figure { position: relative; min-height: 360px; margin: 0; overflow: hidden; border-radius: 22px; background: var(--mist); }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; }
.gallery-grid figcaption { position: absolute; inset: auto 0 0; padding: 38px 18px 16px; color: #fff; font-size: .78rem; font-weight: 800; background: linear-gradient(transparent, rgba(8,22,17,.82)); }
.full-gallery { columns: 3 300px; column-gap: 16px; }
.full-gallery figure { position: relative; break-inside: avoid; margin: 0 0 16px; overflow: hidden; border-radius: 22px; background: var(--mist); }
.full-gallery img { width: 100%; }
.full-gallery figcaption { position: absolute; inset: auto 0 0; padding: 44px 18px 16px; color: #fff; font-size: .78rem; font-weight: 800; background: linear-gradient(transparent, rgba(8,22,17,.84)); }
.visual-note { max-width: 820px; margin-top: 24px; color: #69746d; font-size: .82rem; }
.quote-panel { padding: clamp(38px, 7vw, 76px); border-radius: 30px; background: var(--clay); color: #fff; }
.quote-panel blockquote { max-width: 900px; margin: 0; font: italic clamp(2rem, 4vw, 4rem)/1.15 var(--serif); letter-spacing: -.025em; }
.resource-list { display: grid; gap: 14px; }
.resource-item { padding: 28px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.resource-item h3 { margin-bottom: 10px; }
.resource-item p { margin: 0; color: #5b6861; }
.cta-strip { padding: 48px 0; background: #e6d1bd; }
.cta-strip .container { display: flex; align-items: center; justify-content: space-between; gap: 35px; }
.cta-strip h2 { max-width: 720px; font-size: clamp(2rem, 4vw, 3.7rem); }
.updates-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.update-card { display: flex; min-height: 330px; flex-direction: column; justify-content: flex-end; padding: 30px; border-radius: 22px; background: var(--mist); }
.update-card:nth-child(2) { background: #efe3d7; }
.update-card:nth-child(3) { background: #e2e9d7; }
.update-card small { color: var(--clay); font-weight: 900; text-transform: uppercase; letter-spacing: .11em; }
.update-card h3 { margin: 12px 0; }
.update-card p { color: #58645e; }

@media (max-width: 940px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed; inset: 84px 0 auto; display: none; align-items: stretch; flex-direction: column; gap: 0;
    padding: 22px 20px 30px; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 13px 8px; font-size: 1rem; }
  .site-nav .btn { margin-top: 10px; }
  .statement-grid, .problem-grid, .policy-layout, .contact-grid, .split, .split.reverse { grid-template-columns: 1fr; }
  .problem-sticky { position: static; }
  .model-grid { grid-template-columns: 1fr; }
  .model-card { min-height: 300px; }
  .journey-line { grid-template-columns: repeat(2, 1fr); row-gap: 38px; }
  .journey-line::before { display: none; }
  .support-panel { grid-template-columns: 1fr; }
  .feature-grid, .updates-list { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid figure:first-child { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .container { width: min(100% - 28px, 1180px); }
  .section { padding: 76px 0; }
  .nav-wrap { min-height: 74px; }
  .brand-mark { width: 36px; height: 36px; }
  .brand-word { font-size: 1.25rem; }
  .site-nav { top: 74px; }
  .hero { min-height: 820px; }
  .hero::before { background: linear-gradient(0deg, rgba(12,28,22,.94) 0%, rgba(12,28,22,.58) 68%, rgba(12,28,22,.18)), url("assets/images/community-vision.jpg") 58% center/cover no-repeat; }
  .hero-inner { padding: 140px 0 50px; }
  .hero-meta { margin-top: 46px; flex-direction: column; gap: 8px; }
  .statement-copy { padding-left: 22px; }
  .issue { grid-template-columns: 42px 1fr; padding: 24px 20px; }
  .impact-grid, .journey-line, .form-row { grid-template-columns: 1fr; }
  .model-card, .impact-card, .interest-form { padding: 28px; }
  .support-panel { padding: 34px 26px; border-radius: 24px; }
  .footer-top, .footer-bottom { display: block; }
  .footer-links { justify-content: flex-start; margin-top: 30px; }
  .footer-bottom > * + * { margin-top: 10px; }
  .page-hero { min-height: 560px; padding: 135px 0 62px; }
  .photo-frame img { min-height: 330px; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-grid figure:first-child { grid-column: auto; }
  .gallery-grid figure { min-height: 280px; }
  .cta-strip .container { display: block; }
  .cta-strip .btn { margin-top: 24px; }
}

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