/*
Theme Name: COR Plus
Description: Custom theme for Community Oriented Recovery Plus, Akron, Ohio.
Version: 1.0.0
Text Domain: cor-plus
*/

:root {
  --ink: #04202c;
  --deep: #062d3d;
  --teal: #044a68;
  --sea: #0f7a9c;
  --sky: #4eaac8;
  --mist: #dcebf0;
  --paper: #f5f2ea;
  --white: #fff;
  --flare: #ff8552;
  --flare-ink: #2a1206;
  --body: #243a44;
  --quiet: #566c76;
  --line: rgba(4, 32, 44, .14);
  --line-dark: rgba(255, 255, 255, .16);
  --display: "Bricolage Grotesque", "Trebuchet MS", system-ui, sans-serif;
  --text: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: min(1180px, calc(100vw - 40px));
  --radius: 20px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--body); font: 400 1.0625rem/1.65 var(--text); overflow-x: clip; }
img, svg { max-width: 100%; display: block; }
a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--sea); }
h1, h2, h3 { font-family: var(--display); color: var(--ink); line-height: 1.04; letter-spacing: -.025em; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2.7rem, 7.4vw, 5.9rem); }
h2 { font-size: clamp(2rem, 4.6vw, 3.5rem); }
h3 { font-size: 1.4rem; line-height: 1.15; letter-spacing: -.015em; }
p { margin: 0 0 1.1em; }
ul, ol { padding-left: 1.2em; }
li { margin-bottom: .45em; }
:focus-visible { outline: 3px solid var(--flare); outline-offset: 3px; border-radius: 4px; }

.wrap { width: var(--wrap); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--white); padding: 10px 16px; z-index: 100; border-radius: 8px; }
.skip:focus { left: 12px; }
.eyebrow { font: 600 .8rem/1.3 var(--text); letter-spacing: .16em; text-transform: uppercase; color: var(--sea); margin: 0 0 1.1em; }
.lede { font-size: clamp(1.15rem, 2vw, 1.45rem); line-height: 1.45; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .55em; padding: .9em 1.45em; border-radius: 999px; font-weight: 700; text-decoration: none; border: 2px solid transparent; cursor: pointer; font-family: var(--text); font-size: 1rem; line-height: 1.2; transition: transform .18s ease, background .18s ease, color .18s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-flare { background: var(--flare); color: var(--flare-ink); }
.btn-flare:hover { background: #ff9c72; color: var(--flare-ink); }
.btn-ghost { border-color: var(--line-dark); color: var(--white); }
.btn-ghost:hover { background: var(--white); color: var(--ink); }
.btn-ink { background: var(--ink); color: var(--white); }
.btn-ink:hover { background: var(--teal); color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6em; }

/* Header */
.site-head { position: sticky; top: 0; z-index: 50; background: rgba(4, 32, 44, .94); backdrop-filter: blur(10px); color: var(--white); }
.head-in { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--white); text-decoration: none; min-width: 0; }
.brand:hover { color: var(--white); }
.brand svg { width: 46px; height: 46px; flex: none; }
.brand-name { font: 700 1.02rem/1.08 var(--display); letter-spacing: -.01em; }
.brand-name span { display: block; color: var(--sky); font-size: .9em; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav > a, .nav-group > button { color: var(--white); background: none; border: 0; font: 500 .98rem var(--text); padding: 10px 13px; border-radius: 10px; cursor: pointer; text-decoration: none; }
.nav > a:hover, .nav-group > button:hover, .nav-group:focus-within > button { background: rgba(255, 255, 255, .1); color: var(--white); }
.nav > a[aria-current="page"] { color: var(--sky); }
.nav-group { position: relative; }
.nav-menu { position: absolute; top: 100%; left: 0; min-width: 280px; background: var(--white); border-radius: 14px; padding: 10px; box-shadow: 0 24px 50px rgba(0, 0, 0, .3); display: none; }
.nav-group:hover .nav-menu, .nav-group:focus-within .nav-menu { display: block; }
.nav-menu a { display: block; padding: 9px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; font-size: .97rem; }
.nav-menu a:hover { background: var(--mist); color: var(--ink); }
.head-call { margin-left: 8px; padding: .68em 1.1em; white-space: nowrap; }
.nav-toggle { display: none; background: none; border: 2px solid var(--line-dark); color: var(--white); border-radius: 10px; padding: 8px 13px; font: 600 .95rem var(--text); cursor: pointer; }

/* Hero */
.hero { position: relative; background: radial-gradient(900px 620px at 82% 10%, #0d6a8a 0%, transparent 62%), var(--ink); color: var(--white); overflow: hidden; isolation: isolate; }
.hero h1 { color: var(--white); max-width: 15ch; }
.hero .eyebrow { color: var(--flare); }
.hero .lede { color: #d6e7ed; max-width: 40em; }
.hero-in { position: relative; padding: clamp(64px, 10vw, 128px) 0 clamp(64px, 9vw, 112px); }
.hero-compass { position: absolute; z-index: -1; right: -130px; top: 50%; width: min(70vw, 720px); aspect-ratio: 1; transform: translateY(-50%); color: rgba(255, 255, 255, .34); }
.hero-compass svg { width: 100%; height: 100%; }
.needle { transform-origin: 50% 50%; transform: rotate(var(--needle, 28deg)); transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.hero-home h1 { font-size: clamp(3.1rem, 9.6vw, 7.6rem); max-width: 11ch; }
.hero-short .hero-in { padding: clamp(52px, 7vw, 92px) 0 clamp(48px, 6vw, 78px); }
.hero-short h1 { font-size: clamp(2.5rem, 6vw, 4.8rem); max-width: 18ch; }
.crumb { font-size: .9rem; margin: 0 0 1.4em; color: #a9c6d1; }
.crumb a { color: inherit; }

/* Coordinates strip */
.strip { background: var(--flare); color: var(--flare-ink); font-weight: 600; }
.strip-in { display: flex; flex-wrap: wrap; gap: 8px 30px; justify-content: space-between; padding: 14px 0; font-size: .98rem; }
.strip a { color: inherit; }

/* Bands */
.band { padding: clamp(64px, 9vw, 116px) 0; }
.band-mist { background: var(--mist); }
.band-white { background: var(--white); }
.band-ink { background: var(--ink); color: #d6e7ed; }
.band-ink h2, .band-ink h3 { color: var(--white); }
.band-ink a:not(.btn) { color: var(--sky); }
.band-ink .eyebrow { color: var(--flare); }
.band-teal { background: linear-gradient(140deg, var(--teal), var(--deep)); color: #e3f0f4; }
.band-teal h2, .band-teal h3 { color: var(--white); }
.band-teal a:not(.btn) { color: #bfe6f2; }
.band-teal .eyebrow { color: var(--flare); }
.band-tight { padding: clamp(44px, 6vw, 74px) 0; }
.head-block { max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.split-wide { grid-template-columns: 5fr 7fr; }
.prose { max-width: 720px; }
.prose h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); margin-top: 1.5em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.5em; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cards-2 { grid-template-columns: repeat(2, 1fr); }
.card { position: relative; display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; text-decoration: none; color: var(--body); transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.band-white .card { background: var(--paper); }
.band-ink .card, .band-teal .card { background: rgba(255, 255, 255, .06); border-color: var(--line-dark); color: #d6e7ed; }
a.card:hover { transform: translateY(-5px); border-color: var(--sea); box-shadow: 0 22px 44px rgba(4, 32, 44, .14); color: var(--body); }
.band-ink a.card:hover, .band-teal a.card:hover { color: var(--white); background: rgba(255, 255, 255, .11); border-color: var(--sky); }
.card h3 { margin-bottom: .5em; }
.card p:last-child { margin-bottom: 0; }
.card .go { margin-top: auto; padding-top: 14px; font-weight: 700; color: var(--teal); }
.band-ink .card .go, .band-teal .card .go { color: var(--flare); }

/* Care ladder */
.ladder { display: grid; gap: 0; border-top: 1px solid var(--line-dark); counter-reset: rung; }
.rung { display: grid; grid-template-columns: 90px 1.1fr 1.5fr auto; gap: 20px; align-items: center; padding: 30px 8px; border-bottom: 1px solid var(--line-dark); text-decoration: none; color: #d6e7ed; transition: background .2s ease, padding .2s ease; }
.rung:hover { background: rgba(255, 255, 255, .06); padding-left: 20px; color: var(--white); }
.rung-code { font: 700 2.3rem/1 var(--display); color: var(--flare); }
.rung h3 { margin: 0; color: var(--white); font-size: clamp(1.3rem, 2.4vw, 1.9rem); }
.rung p { margin: 0; }
.rung-arrow { font-size: 1.6rem; color: var(--sky); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; list-style: none; padding: 0; margin: 0; counter-reset: s; }
.steps li { counter-increment: s; border-top: 3px solid var(--ink); padding-top: 18px; margin: 0; }
.band-ink .steps li, .band-teal .steps li { border-color: var(--flare); }
.steps li::before { content: "0" counter(s); display: block; font: 700 1rem var(--display); color: var(--sea); margin-bottom: 26px; }
.band-ink .steps li::before, .band-teal .steps li::before { color: var(--flare); }

/* Callout */
.callout { border-left: 5px solid var(--flare); background: var(--white); padding: 20px 24px; border-radius: 0 14px 14px 0; margin: 1.6em 0; }
.callout p:last-child { margin-bottom: 0; }
.tick { list-style: none; padding: 0; }
.tick li { position: relative; padding-left: 30px; }
.tick li::before { content: ""; position: absolute; left: 2px; top: .42em; width: 13px; height: 13px; border-radius: 50%; border: 3px solid var(--flare); }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; font: 600 1.2rem/1.3 var(--display); color: var(--ink); padding: 18px 34px 18px 0; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-size: 1.7rem; color: var(--sea); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }

/* Form */
.lead-card { background: var(--white); color: var(--body); border-radius: var(--radius); padding: clamp(24px, 3.4vw, 40px); box-shadow: 0 30px 70px rgba(0, 0, 0, .22); }
.lead-card h3 { font-size: 1.7rem; }
.lead-form label { display: block; font-weight: 600; font-size: .95rem; color: var(--ink); margin-bottom: 14px; }
.lead-form input[type=text], .lead-form input[type=tel], .lead-form input[type=email], .lead-form select, .lead-form textarea { display: block; width: 100%; margin-top: 6px; padding: 12px 14px; border: 1.5px solid #b4c6cd; border-radius: 10px; font: 400 1rem var(--text); color: var(--ink); background: var(--white); }
.lead-form input:focus, .lead-form select:focus, .lead-form textarea:focus { outline: 3px solid var(--sky); outline-offset: 0; border-color: var(--teal); }
.lead-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.lead-hp { position: absolute !important; left: -9999px; height: 1px; overflow: hidden; }
.lead-note { font-size: .86rem; line-height: 1.45; color: var(--quiet); margin: 12px 0 0; }
.lead-form .btn { width: 100%; justify-content: center; margin-top: 4px; }
.lead-msg { padding: 16px 18px; border-radius: 12px; margin-bottom: 16px; font-weight: 600; display: none; }
.lead-ok { background: #e2f4e6; color: #17461f; }
.lead-bad { background: #fde8e2; color: #7a2410; }
.lead-warn { background: #fdf1d3; color: #5e4306; }
.lead-card[data-state=sent] .lead-ok, .lead-card[data-state=saved] .lead-warn, .lead-card[data-state=error] .lead-bad { display: block; }
.lead-card[data-state=sent] .lead-form, .lead-card[data-state=saved] .lead-form { display: none; }

/* Footer */
.site-foot { background: var(--ink); color: #b9d0d9; font-size: .98rem; padding: 72px 0 34px; }
.site-foot a { color: #dcebf0; text-decoration: none; }
.site-foot a:hover { color: var(--flare); text-decoration: underline; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 34px; }
.foot-grid h2 { font: 600 .8rem var(--text); letter-spacing: .14em; text-transform: uppercase; color: var(--sky); margin-bottom: 14px; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; }
.foot-grid .brand { margin-bottom: 18px; }
.crisis { margin-top: 44px; padding: 18px 22px; border: 1px solid var(--line-dark); border-radius: 14px; color: var(--white); }
.crisis a { color: var(--flare); font-weight: 700; }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 30px; font-size: .88rem; }

/* Mobile call bar */
.call-bar { display: none; }

@media (max-width: 1040px) {
  .nav-toggle { display: inline-block; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--ink); padding: 12px 20px 24px; flex-direction: column; align-items: stretch; max-height: calc(100vh - 76px); overflow-y: auto; }
  .nav.open { display: flex; }
  .nav-menu { position: static; display: block; background: none; box-shadow: none; padding: 0 0 8px 12px; min-width: 0; }
  .nav-menu a { color: #d6e7ed; }
  .nav-menu a:hover { background: rgba(255, 255, 255, .08); color: var(--white); }
  .nav-group > button { width: 100%; text-align: left; color: var(--sky); font-weight: 700; pointer-events: none; }
  .head-call { margin: 10px 0 0; justify-content: center; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .split, .split-wide, .cards, .cards-2, .steps { grid-template-columns: 1fr; }
  .rung { grid-template-columns: 64px 1fr; gap: 8px 14px; padding: 24px 4px; }
  .rung-code { font-size: 1.6rem; }
  .rung p { grid-column: 2; }
  .rung-arrow { display: none; }
  .hero-compass { right: -44%; width: 118vw; opacity: .55; }
  .call-bar { display: flex; position: sticky; bottom: 0; z-index: 40; background: var(--flare); }
  .call-bar a { flex: 1; text-align: center; padding: 15px 8px; color: var(--flare-ink); font-weight: 700; text-decoration: none; }
}
@media (max-width: 520px) {
  body { font-size: 1rem; }
  .lead-row, .foot-grid { grid-template-columns: 1fr; }
  .brand-name { font-size: .92rem; }
  .brand svg { width: 40px; height: 40px; }
  .btn-row .btn { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
