/* Chehalem Valley Church — Option A Soft Valley
   Valley Orange #F27C4E · Ember #B8512B · Ink #2B2622
   Soft Cream #FFF8F2 · Peach Mist #FDE8DC · Soft Sage #8FAF8E
*/

:root {
  --orange: #F27C4E;
  --orange-hover: #f58d63;
  --ember: #B8512B;
  --ink: #2B2622;
  --cream: #FFF8F2;
  --peach: #FDE8DC;
  --sage: #8FAF8E;
  --sage-deep: #7a9d79;
  --oat: var(--cream);
  --mist: var(--peach);
  --fir: var(--sage);
  --fir-deep: var(--sage-deep);
  --white: #fff;
  --muted: #4a423c;
  --footer: #d8d0c6;
  --max: 1200px;
  --header: 76px;
  --shadow: 0 18px 40px -24px rgba(43, 38, 34, 0.35);
  color-scheme: light;
}

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

* { margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: Lato, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--oat);
  line-height: 1.6;
  font-size: 17px;
  min-height: 100vh;
}

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

a { color: inherit; }

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

.skip {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 20;
  background: var(--ink);
  color: var(--oat);
  padding: 10px 14px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
}

.skip:focus { top: 10px; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
}

[id] { scroll-margin-top: calc(var(--header) + 12px); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(255, 248, 242, 0.94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(43, 38, 34, 0.08);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header);
  gap: 20px;
}

.logo img {
  height: 54px;
  width: auto;
  display: block;
}

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

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--ember); }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  border-radius: 10px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  position: relative;
}

.nav-toggle-bar::before,
.nav-toggle-bar::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-bar::before { top: -7px; }
.nav-toggle-bar::after { top: 7px; }

.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { top: 0; transform: rotate(-45deg); }

/* Buttons */
.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 900;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 14px 26px;
  border-radius: 999px;
  background: var(--orange);
  color: var(--ink);
  border: 2px solid transparent;
  transition: transform 0.15s, background 0.15s;
  text-align: center;
}

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

.btn.ghost {
  background: transparent;
  border-color: currentColor;
  color: var(--oat);
}

.btn.ghost:hover { background: rgba(255, 255, 255, 0.08); }

.btn.small { padding: 12px 20px; font-size: 13px; }

.btn.ink { background: var(--ink); color: var(--oat); }
.btn.ink:hover { background: #3a342f; }

.btn.outline {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}

.btn.outline:hover { background: rgba(43, 38, 34, 0.06); }

.textlink {
  font-weight: 900;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ember);
  text-decoration: none;
}

.textlink:hover { text-decoration: underline; }

/* Hero */
.hero {
  position: relative;
  background:
    radial-gradient(ellipse 68% 52% at 50% 32%, #fff 0%, rgba(255, 248, 242, 0) 68%),
    linear-gradient(180deg, var(--cream) 0%, var(--peach) 100%);
  color: var(--ink);
  overflow: hidden;
}

.hero .wrap {
  position: relative;
  z-index: 2;
  padding-top: 28px;
  padding-bottom: 72px;
  text-align: center;
}

.hero-mark {
  width: min(560px, 92%);
  height: auto;
  display: block;
  margin: 0 auto 4px;
}

.eyebrow {
  font-weight: 900;
  font-size: 13px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--orange);
}

.eyebrow.on-light { color: var(--ember); }

.visit-facts {
  margin-top: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 820px;
}

.visit-facts dt {
  font-weight: 900;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
}

.visit-facts dd { margin: 4px 0 0; }

.loc .visit-facts dt { color: var(--ink); }

.hero h1 {
  text-transform: uppercase;
  font-weight: 900;
  font-size: clamp(40px, 5.6vw, 72px);
  line-height: 0.98;
  letter-spacing: 0.02em;
  margin: 12px 0 16px;
  color: var(--ink);
}

.hero .sub { font-size: 22px; }

.hero .tag {
  font-family: Fraunces, Georgia, "Times New Roman", serif;
  font-style: italic;
  font-weight: 500;
  font-size: 20px;
  margin-top: 8px;
}

.hero .ctas {
  margin-top: 36px;
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Sections */
section { padding: 96px 0; }

h2 {
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: clamp(32px, 4vw, 40px);
  line-height: 1.1;
  margin: 12px 0 20px;
}

.lead { font-size: 19px; max-width: 40rem; }

.center { text-align: center; }

.welcome {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 72px;
  align-items: center;
}

.quote {
  background: var(--white);
  border-radius: 20px;
  padding: 44px;
  box-shadow: var(--shadow);
}

.quote .lbl {
  font-family: Lato, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-style: normal;
  font-weight: 900;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ember);
  margin: 0;
}

.quote p {
  font-family: Fraunces, Georgia, "Times New Roman", serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(22px, 2.4vw, 26px);
  line-height: 1.35;
  margin: 14px 0 24px;
}

/* Cards */
.cards-sec { background: var(--mist); }

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 36px;
}

.card {
  background: var(--white);
  border-radius: 18px;
  padding: 34px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card .ico {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(242, 124, 78, 0.15);
  display: grid;
  place-items: center;
}

.card h3 {
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 19px;
}

.card p { flex: 1; color: var(--muted); }

/* Pillars */
.pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 2px solid var(--ink);
  margin-top: 36px;
}

.pillar { padding: 28px 24px 8px 0; }

.pillar + .pillar {
  padding-left: 24px;
  border-left: 1px solid rgba(43, 38, 34, 0.15);
}

.pillar h3 {
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ember);
  margin-bottom: 8px;
  font-size: 15px;
}

.pillar h3 a { text-decoration: none; }
.pillar h3 a:hover { text-decoration: underline; }

.pillar p { font-size: 15px; color: var(--muted); }

.pillars-more { margin-top: 28px; }

/* Location */
.loc {
  background: var(--sage);
  color: var(--ink);
}

.loc h2 { color: var(--ink); }

.loc .grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 56px;
  align-items: center;
}

.loc .status {
  display: inline-block;
  max-width: 100%;
  background: rgba(43, 38, 34, 0.08);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 14px;
  margin-bottom: 8px;
}

.loc .dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--ink);
  vertical-align: middle;
}

.loc address {
  font-style: normal;
  font-size: 22px;
  font-weight: 700;
  margin: 18px 0 6px;
}

.loc .near { opacity: 0.85; margin-bottom: 26px; }

.map {
  border-radius: 18px;
  overflow: hidden;
  height: 340px;
  background: var(--fir-deep);
}

.map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* New here */
.newhere-wrap { padding-top: 72px; padding-bottom: 36px; }

.newhere {
  background: var(--orange);
  color: var(--ink);
  border-radius: 20px;
  padding: 40px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.newhere h2 {
  font-size: clamp(22px, 3vw, 26px);
  margin: 0 0 6px;
}

.newhere p { max-width: 40rem; }

/* Footer */
.site-footer {
  background: var(--ink);
  color: var(--footer);
  padding: 72px 0 28px;
  font-size: 15px;
}

.fgrid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
}

.site-footer img { height: 56px; width: auto; }

.footer-tag { margin-top: 16px; max-width: 280px; }

.footer-h {
  color: var(--oat);
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 12px;
  margin: 0 0 12px;
  line-height: 1.3;
}

.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--orange); }

.site-footer address { font-style: normal; }

.site-footer ul { list-style: none; display: grid; gap: 6px; }

.footer-sun { margin-top: 12px; }

.legal {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 48px;
  padding-top: 20px;
  font-size: 13px;
  opacity: 0.75;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

/* Inner pages */
.page-hero {
  position: relative;
  background: linear-gradient(180deg, var(--cream) 0%, var(--peach) 100%);
  color: var(--ink);
  overflow: hidden;
}

.page-hero .wrap {
  position: relative;
  z-index: 2;
  padding-top: 56px;
  padding-bottom: 64px;
  max-width: 860px;
}

.page-hero h1 {
  text-transform: uppercase;
  font-weight: 900;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 0.98;
  letter-spacing: 0.02em;
  margin: 14px 0 18px;
}

.page-hero .lede {
  font-size: 20px;
  max-width: 38rem;
  color: var(--ink);
}

.page-hero .eyebrow { color: var(--ember); }

.prose { max-width: 44rem; }
.prose p + p { margin-top: 16px; }

.stack { display: grid; gap: 28px; }

.purpose-band .quote { max-width: 760px; }

/* About pillars */
.pillar-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 28px;
}

.pillar-card {
  background: var(--white);
  border-radius: 18px;
  padding: 32px;
  box-shadow: var(--shadow);
}

.pillar-card h3 {
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ember);
  font-size: 18px;
  margin-bottom: 12px;
}

.scripture {
  font-family: Fraunces, Georgia, "Times New Roman", serif;
  font-style: italic;
  font-weight: 500;
  font-size: 18px;
  line-height: 1.45;
  margin: 18px 0 0;
  color: var(--ink);
}

.scripture cite {
  display: block;
  margin-top: 12px;
  font-family: Lato, system-ui, sans-serif;
  font-style: normal;
  font-weight: 900;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ember);
}

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

/* Beliefs accordion — native details, no JS */
.beliefs-sec { background: var(--peach); }

.belief {
  background: var(--white);
  border-radius: 14px;
  margin-top: 12px;
  box-shadow: 0 10px 24px -20px rgba(43, 38, 34, 0.45);
}

.belief summary {
  padding: 18px 22px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 15px;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.belief summary::-webkit-details-marker { display: none; }

.belief summary::after {
  content: "+";
  color: var(--ember);
  font-size: 24px;
  font-weight: 400;
  line-height: 1;
  flex: none;
}

.belief[open] summary::after { content: "\2013"; }

.belief-body {
  padding: 0 22px 20px;
  color: var(--muted);
  max-width: 46rem;
}

/* Events */
.sunday {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 32px;
  align-items: center;
  background: var(--white);
  border-radius: 20px;
  padding: 40px;
  box-shadow: var(--shadow);
}

.sunday .when {
  background: var(--mist);
  border-radius: 16px;
  padding: 28px;
}

.sunday .time {
  font-weight: 900;
  font-size: clamp(48px, 6vw, 72px);
  letter-spacing: 0.02em;
  line-height: 1;
  text-transform: uppercase;
}

.sunday .when p { margin-top: 10px; color: var(--muted); }

.sunday address {
  font-style: normal;
  font-weight: 700;
  margin-top: 16px;
  color: var(--ink);
}

.sunday .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.chip {
  display: inline-block;
  max-width: 100%;
  margin-top: 18px;
  background: rgba(43, 38, 34, 0.06);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 15px;
}

.calendar-frame {
  margin-top: 28px;
  background: var(--white);
  border-radius: 18px;
  overflow: hidden;
  min-height: 720px;
  box-shadow: var(--shadow);
}

.calendar-frame iframe {
  width: 100%;
  height: 820px;
  border: 0;
  display: block;
}

.frame-note { margin-top: 16px; color: var(--muted); }
.frame-note a { color: var(--ember); font-weight: 700; }

/* Give */
.give-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 40px;
  align-items: start;
}

.give-copy p + p { margin-top: 14px; }

.give-copy .actions { margin-top: 22px; }

.give-frame {
  background: var(--white);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
  min-height: 640px;
}

.give-frame iframe {
  width: 100%;
  height: 1200px;
  border: 0;
  display: block;
}

.fine { font-size: 15px; color: var(--muted); margin-top: 16px; }

/* 404 */
.missing {
  text-align: center;
  padding-top: 48px;
  padding-bottom: 24px;
}

.missing h1 { margin-bottom: 12px; }

.missing .ctas {
  margin-top: 28px;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 860px) {
  :root { --header: 68px; }

  .wrap { padding: 0 20px; }

  .nav-toggle { display: inline-flex; order: 1; }

  .nav-cluster { gap: 8px; }

  .nav-cluster > .btn { order: 2; }

  .nav-links {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--oat);
    border-bottom: 1px solid rgba(43, 38, 34, 0.08);
    padding: 8px 20px 18px;
  }

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

  .nav-links a {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid rgba(43, 38, 34, 0.08);
  }

  .logo img { height: 46px; }

  .hero .wrap { padding-top: 12px; padding-bottom: 48px; }
  .hero .sub { font-size: 18px; }
  .hero .tag { font-size: 18px; }

  section { padding: 64px 0; }

  .welcome,
  .loc .grid,
  .fgrid,
  .pillar-cards,
  .sunday,
  .give-layout { grid-template-columns: 1fr; gap: 28px; }

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

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

  .pillar,
  .pillar + .pillar {
    padding: 20px 16px 8px 0;
    border-left: 0;
  }

  .pillar:nth-child(even) { padding-left: 16px; }

  .newhere {
    flex-direction: column;
    text-align: center;
    padding: 32px 24px;
  }

  .visit-facts { grid-template-columns: 1fr; }

  .quote { padding: 28px; }

  .page-hero .wrap { padding-top: 36px; padding-bottom: 48px; }

  .legal { flex-direction: column; }
}

@media (max-width: 420px) {
  .logo img { height: 40px; }
  .nav-cluster > .btn.small {
    padding: 10px 12px;
    letter-spacing: 0.04em;
  }
}

@media (max-width: 520px) {
  .pillars { grid-template-columns: 1fr; }
  .pillar:nth-child(even) { padding-left: 0; }
  .btn { width: 100%; }
  .nav-cluster .btn { width: auto; }
  .hero .ctas .btn,
  .sunday .actions .btn,
  .missing .ctas .btn,
  .newhere .btn { width: auto; }
}

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