:root {
  --bg: #fbf7f2;
  --surface: #fffdf9;
  --surface-2: #f7eee6;
  --surface-3: #f2dfd3;
  --terracotta: #a75a46;
  --terracotta-dark: #96513f;
  --blush: #dda092;
  --cream: #efd8c6;
  --plum: #70474b;
  --plum-dark: #4d3034;
  --ink: #35282b;
  --muted: #74676a;
  --line: #e8ddd5;
  --success: #356a57;
  --success-bg: #e7f2ed;
  --danger: #8c3f45;
  --danger-bg: #f8e8e8;
  --warning-bg: #fbf1d8;
  --shadow: 0 22px 55px rgba(82, 55, 49, .09);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 15px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--bg); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration-color: rgba(112,71,75,.35); text-underline-offset: 3px; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid rgba(150,81,63,.28); outline-offset: 3px; }

.container { width: min(calc(100% - 40px), var(--container)); margin: 0 auto; }
.narrow { width: min(calc(100% - 40px), 790px); margin-left: auto; margin-right: auto; }
.section { padding: 88px 0; }
.soft-section { background: #f7eee7; border-top: 1px solid rgba(112,71,75,.06); border-bottom: 1px solid rgba(112,71,75,.06); }
.center-action { display: flex; justify-content: center; margin-top: 30px; }
.skip-link { position: fixed; left: 12px; top: -60px; z-index: 9999; padding: 10px 14px; background: var(--plum-dark); color: #fff; border-radius: 10px; }
.skip-link:focus { top: 12px; }

.site-header { position: sticky; top: 0; z-index: 60; background: rgba(251,247,242,.94); backdrop-filter: blur(14px); border-bottom: 1px solid rgba(112,71,75,.08); }
.header-inner { min-height: 84px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; flex: 0 0 auto; }
.brand img { width: 150px; height: 66px; object-fit: contain; object-position: left center; }
.main-nav { margin-left: auto; display: flex; gap: 4px; align-items: center; }
.main-nav a { text-decoration: none; font-size: 14px; font-weight: 700; color: var(--plum-dark); padding: 10px 12px; border-radius: 999px; }
.main-nav a:hover, .main-nav a:focus-visible { background: #f1e5dc; outline: none; }
.menu-toggle { display: none; margin-left: auto; border: 1px solid var(--line); background: var(--surface); border-radius: 12px; padding: 9px 12px; color: var(--plum-dark); font-weight: 800; }

.quick-exit { position: fixed; z-index: 80; right: 18px; bottom: 18px; background: var(--plum-dark); color: #fff; text-decoration: none; border-radius: 999px; padding: 12px 17px; font-size: 13px; font-weight: 850; box-shadow: 0 10px 30px rgba(40,25,28,.22); }
.quick-exit:hover, .quick-exit:focus-visible { background: #352226; outline: 3px solid rgba(112,71,75,.18); }
.emergency-strip { background: #4d3034; color: #fff; font-size: 13px; }
.emergency-strip .container { padding-top: 8px; padding-bottom: 8px; text-align: center; }
.emergency-strip a { color: #fff; font-weight: 900; }

.hero { min-height: 680px; display: grid; align-items: center; overflow: hidden; position: relative; }
.hero:before { content: ""; width: 560px; height: 560px; position: absolute; right: -200px; top: -110px; border-radius: 50%; background: rgba(221,160,146,.12); filter: blur(1px); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 72px; align-items: center; padding-top: 72px; padding-bottom: 80px; position: relative; }
.eyebrow { display: inline-block; margin-bottom: 12px; color: var(--terracotta-dark); font-weight: 900; font-size: 12px; letter-spacing: .13em; text-transform: uppercase; }
h1, h2, h3 { color: var(--plum-dark); line-height: 1.1; letter-spacing: -.025em; margin-top: 0; }
h1 { font-size: clamp(42px, 5.6vw, 72px); margin-bottom: 24px; }
h2 { font-size: clamp(30px, 3.5vw, 46px); margin-bottom: 16px; }
h3 { font-size: 22px; margin-bottom: 10px; }
p { margin-top: 0; }
.lead { color: #625558; font-size: clamp(18px, 2vw, 21px); max-width: 720px; line-height: 1.75; }
.hero-copy .lead { max-width: 650px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.btn { border: 1px solid transparent; border-radius: 999px; padding: 12px 20px; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; cursor: pointer; font-weight: 850; transition: transform .18s ease, background .18s ease, border .18s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--terracotta); color: #fff; box-shadow: 0 10px 24px rgba(184,102,80,.2); }
.btn-primary:hover { background: var(--terracotta-dark); }
.btn-ghost { background: rgba(255,255,255,.55); color: var(--plum-dark); border-color: #d7c6bd; }
.btn-ghost:hover { background: #fff; }
.btn-dark { background: var(--plum-dark); color: #fff; }
.btn-dark:hover { background: #352226; }
.btn-large { min-width: 190px; min-height: 54px; }
.btn-small { padding: 9px 14px; font-size: 13px; }
.btn-full { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.privacy-note { color: var(--muted); font-size: 13px; margin-top: 20px; }
.privacy-note span { color: var(--success); font-size: 10px; margin-right: 5px; }

.hero-art { position: relative; min-height: 480px; display: flex; align-items: center; justify-content: center; flex-direction: column; }
.hero-art .halo { position: absolute; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(239,216,198,.8), rgba(239,216,198,0) 70%); }
.hero-art img { width: min(94%, 430px); position: relative; mix-blend-mode: multiply; }
.hero-message { position: relative; margin-top: -10px; background: rgba(255,253,249,.9); border: 1px solid var(--line); border-radius: 999px; padding: 12px 20px; color: var(--plum); font-weight: 850; box-shadow: var(--shadow); }

.section-heading { margin-bottom: 38px; max-width: 780px; }
.section-heading.compact { max-width: 640px; }
.section-heading p { color: var(--muted); font-size: 18px; }
.split-heading { max-width: none; display: flex; align-items: end; justify-content: space-between; gap: 30px; }
.split-heading > div { max-width: 760px; }
.text-link { color: var(--plum); font-weight: 850; white-space: nowrap; }
.cards-3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; }
.path-card, .article-card { background: rgba(255,253,249,.88); border: 1px solid rgba(112,71,75,.11); border-radius: var(--radius-lg); padding: 28px; text-decoration: none; box-shadow: 0 8px 28px rgba(82,55,49,.04); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.path-card:hover, .article-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(184,102,80,.35); }
.path-card p, .article-card p { color: var(--muted); }
.card-icon { width: 44px; height: 44px; border-radius: 15px; background: var(--surface-3); color: var(--terracotta-dark); display: inline-grid; place-items: center; font-size: 25px; font-weight: 700; margin-bottom: 24px; }
.card-link { color: var(--terracotta-dark); font-weight: 850; font-size: 14px; }
.article-tag, .resource-category { display: inline-flex; font-size: 11px; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; color: var(--terracotta-dark); margin-bottom: 16px; }

.together { padding-top: 48px; padding-bottom: 96px; }
.together-card { background: var(--plum-dark); color: #fff; border-radius: var(--radius-xl); min-height: 300px; display: grid; grid-template-columns: 170px 1fr auto; align-items: center; gap: 36px; padding: 46px 52px; box-shadow: 0 28px 70px rgba(77,48,52,.18); }
.together-card h2 { color: #fff; font-size: 52px; margin-bottom: 12px; }
.together-card .eyebrow { color: #f0c2b6; }
.together-card p { color: #eadfe0; margin-bottom: 18px; max-width: 640px; }
.together-symbol { width: 160px; height: 160px; display: grid; place-items: center; border-radius: 50%; background: #f9eee7; overflow: hidden; }
.together-symbol img { width: 142px; mix-blend-mode: multiply; }
.together-action { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.together-action .btn-dark { background: #fff; color: var(--plum-dark); }
.together-action small { color: #cdbfc1; }
.counter { display: inline-flex; align-items: baseline; gap: 8px; color: #eadfe0; }
.counter strong { color: #fff; font-size: 28px; }

.resource-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; }
.resource-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; min-height: 220px; display: flex; flex-direction: column; align-items: flex-start; }
.resource-card h2, .resource-card h3 { margin-bottom: 10px; }
.resource-card p { color: var(--muted); flex: 1; }
.resource-card small, .availability { color: var(--muted); margin-top: 8px; }
.resource-phone { color: var(--plum-dark); text-decoration: none; font-size: 28px; font-weight: 900; margin: 8px 0; }
.resource-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.resource-card-large { min-height: 280px; }
.closing-note { padding: 100px 0 110px; text-align: center; }
.closing-note .quote { font-size: clamp(30px, 4vw, 48px); color: var(--plum-dark); line-height: 1.22; font-weight: 850; margin-bottom: 18px; }
.closing-note p:last-child { color: var(--muted); }

.page-hero { padding: 88px 0 68px; background: linear-gradient(180deg, rgba(247,238,231,.65), rgba(251,247,242,0)); }
.page-hero h1 { font-size: clamp(40px, 5vw, 62px); }
.article-hero { padding-bottom: 54px; }
.alert-card { padding: 28px; border-radius: var(--radius-lg); margin-bottom: 42px; }
.danger-soft { background: var(--danger-bg); border: 1px solid #ebc7c9; }
.alert-card h2 { font-size: 28px; }
.alert-card p { margin-bottom: 0; }
.step-list { display: grid; gap: 18px; }
.step-list article { display: grid; grid-template-columns: 52px 1fr; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.step-list article > span { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); color: var(--terracotta-dark); font-weight: 900; }
.step-list h2 { font-size: 26px; margin-bottom: 8px; }
.step-list p { color: var(--muted); margin: 0; }
.article-list { display: grid; gap: 14px; }
.article-row { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; display: flex; justify-content: space-between; gap: 30px; align-items: center; text-decoration: none; }
.article-row:hover { border-color: rgba(184,102,80,.38); box-shadow: var(--shadow); }
.article-row h2 { font-size: 27px; margin-bottom: 8px; }
.article-row p { color: var(--muted); margin-bottom: 0; }
.article-row > span:last-child { font-size: 28px; color: var(--terracotta); }
.do-dont-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.do-card, .dont-card { border-radius: var(--radius-lg); padding: 30px; }
.do-card { background: #eaf3ef; border: 1px solid #cfe3d9; }
.dont-card { background: #f8ecec; border: 1px solid #ecd0d1; }
.do-card h2, .dont-card h2 { font-size: 28px; }
.do-card ul, .dont-card ul { margin: 0; padding-left: 20px; }
.do-card li, .dont-card li { margin-bottom: 12px; }
.prose { font-size: 18px; }
.prose h2 { font-size: 30px; margin-top: 46px; margin-bottom: 12px; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: #5f5356; line-height: 1.85; }
.article-body { white-space: normal; }
.article-next { background: var(--surface-2); padding: 42px 0 54px; }
.article-next .container { display: flex; justify-content: space-between; gap: 28px; align-items: center; }
.article-next p { margin: 0; color: var(--muted); }
.content-note { margin-top: 32px; background: #fff7e5; border: 1px solid #eedcab; padding: 18px 20px; border-radius: var(--radius-md); color: #655945; }

.flash-stack { display: grid; gap: 8px; padding-top: 12px; }
.flash { border-radius: 12px; padding: 12px 15px; font-size: 14px; border: 1px solid transparent; }
.flash-success { background: var(--success-bg); color: var(--success); border-color: #c8dfd5; }
.flash-danger { background: var(--danger-bg); color: var(--danger); border-color: #efc8ca; }
.flash-warning { background: var(--warning-bg); color: #705c23; border-color: #ead9a4; }
.flash-info { background: #edf1f4; color: #46555f; border-color: #d5dde2; }

.site-footer { background: #3f2a2e; color: #e8dfe0; padding: 58px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.1fr 1.2fr .7fr; gap: 50px; }
.footer-logo { width: 145px; height: 64px; object-fit: contain; object-position: left center; filter: brightness(1.65) saturate(.55); margin-bottom: 10px; }
.site-footer h2 { color: #fff; font-size: 16px; letter-spacing: 0; margin-bottom: 10px; }
.site-footer p { color: #cfc1c3; font-size: 14px; }
.site-footer a { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 34px; padding-top: 22px; font-size: 12px; color: #aa999c; }

/* Admin */
.admin-body { background: #f7f3ef; }
.admin-shell { min-height: 100vh; display: grid; grid-template-columns: 270px 1fr; }
.admin-sidebar { position: sticky; top: 0; height: 100vh; background: #3f2a2e; color: #fff; padding: 24px; display: flex; flex-direction: column; z-index: 50; }
.admin-brand { display: block; margin-bottom: 34px; background: #fbf7f2; border-radius: 16px; padding: 8px 10px; }
.admin-brand img { width: 150px; height: 62px; object-fit: contain; margin: 0 auto; }
.admin-nav { display: grid; gap: 6px; }
.admin-nav a { color: #e9dfe0; text-decoration: none; border-radius: 11px; padding: 11px 12px; font-weight: 750; }
.admin-nav a:hover { background: rgba(255,255,255,.08); color: #fff; }
.admin-user { margin-top: auto; border-top: 1px solid rgba(255,255,255,.12); padding-top: 18px; display: grid; gap: 4px; }
.admin-user small { color: #bfaeb1; overflow-wrap: anywhere; }
.admin-user .link-button { color: #fff; margin-top: 8px; }
.admin-main { min-width: 0; }
.admin-topbar { min-height: 78px; background: rgba(255,255,255,.92); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 18px; padding: 0 34px; position: sticky; top: 0; z-index: 20; backdrop-filter: blur(12px); }
.admin-topbar span { display: block; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; font-weight: 850; }
.admin-topbar strong { color: var(--plum-dark); }
.admin-content { padding: 38px; max-width: 1320px; }
.admin-heading { display: flex; align-items: end; justify-content: space-between; gap: 25px; margin-bottom: 28px; }
.admin-heading h1 { font-size: 42px; margin-bottom: 6px; }
.admin-heading p { color: var(--muted); margin: 0; }
.metric-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; margin-bottom: 24px; }
.metric-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 25px; display: grid; gap: 4px; }
.metric-card span { color: var(--muted); font-size: 13px; font-weight: 800; }
.metric-card strong { font-size: 42px; color: var(--plum-dark); line-height: 1.1; }
.metric-card small { color: var(--muted); }
.admin-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; box-shadow: 0 8px 30px rgba(82,55,49,.04); }
.admin-panel h2 { font-size: 26px; }
.check-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; color: var(--muted); }
.table-wrap { overflow-x: auto; padding: 8px; }
.admin-table { width: 100%; border-collapse: collapse; min-width: 760px; }
.admin-table th, .admin-table td { text-align: left; padding: 16px 14px; border-bottom: 1px solid #eee5df; vertical-align: middle; }
.admin-table th { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.admin-table td strong { display: block; color: var(--plum-dark); }
.admin-table td small { display: block; color: var(--muted); margin-top: 3px; }
.table-actions { display: flex; gap: 12px; justify-content: flex-end; }
.table-actions form { display: inline; }
.link-button { border: 0; background: none; padding: 0; color: var(--plum); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font: inherit; }
.danger-link { color: var(--danger); }
.status { display: inline-flex; border-radius: 999px; padding: 5px 9px; font-size: 11px; font-weight: 900; }
.status-on { background: var(--success-bg); color: var(--success); }
.status-off { background: #eee; color: #666; }
.admin-form { display: grid; gap: 19px; }
.admin-form label, .form-stack label { display: grid; gap: 7px; font-weight: 800; color: var(--plum-dark); }
.admin-form label small { color: var(--muted); font-weight: 500; }
.admin-form input, .admin-form textarea, .admin-form select, .form-stack input { width: 100%; border: 1px solid #d8cbc4; border-radius: 12px; padding: 11px 12px; background: #fffdfb; color: var(--ink); outline: none; }
.admin-form input:focus, .admin-form textarea:focus, .admin-form select:focus, .form-stack input:focus { border-color: var(--terracotta); box-shadow: 0 0 0 3px rgba(184,102,80,.1); }
.admin-form textarea { resize: vertical; min-height: 100px; }
.form-grid { display: grid; gap: 18px; }
.form-grid.two { grid-template-columns: repeat(2, minmax(0,1fr)); }
.check-label { grid-template-columns: 18px 1fr !important; align-items: center; align-self: end; min-height: 45px; }
.check-label input { width: 18px !important; height: 18px; }
.form-actions { display: flex; justify-content: flex-end; border-top: 1px solid var(--line); padding-top: 20px; }

.auth-body { min-height: 100vh; display: grid; place-items: center; background: radial-gradient(circle at 50% 15%, #f4e2d8, #fbf7f2 46%); padding: 26px; }
.auth-shell { width: min(100%, 440px); }
.auth-logo { display: block; width: 180px; margin: 0 auto 18px; }
.auth-logo img { width: 100%; }
.auth-card { background: rgba(255,255,255,.94); border: 1px solid var(--line); border-radius: var(--radius-xl); padding: 34px; box-shadow: var(--shadow); }
.auth-card h1 { font-size: 34px; margin-bottom: 10px; }
.auth-card p { color: var(--muted); }
.form-stack { display: grid; gap: 16px; margin-top: 24px; }

@media (max-width: 980px) {
  .main-nav { display: none; position: absolute; left: 20px; right: 20px; top: 76px; background: #fffdf9; border: 1px solid var(--line); border-radius: 18px; padding: 10px; box-shadow: var(--shadow); flex-direction: column; align-items: stretch; }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 12px 14px; }
  .menu-toggle { display: inline-flex; }
  .hero-grid { grid-template-columns: 1fr; gap: 22px; }
  .hero-art { min-height: 360px; order: -1; }
  .hero-art img { width: 330px; }
  .hero { min-height: auto; }
  .cards-3, .resource-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .together-card { grid-template-columns: 130px 1fr; padding: 38px; }
  .together-symbol { width: 130px; height: 130px; }
  .together-action { grid-column: 1 / -1; flex-direction: row; justify-content: center; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-sidebar { position: fixed; inset: 0 auto 0 0; width: 270px; transform: translateX(-100%); transition: transform .2s ease; box-shadow: var(--shadow); }
  .admin-sidebar.is-open { transform: translateX(0); }
  .admin-topbar .menu-toggle { margin-left: 0; }
  .admin-content { padding: 28px 22px; }
}

@media (max-width: 680px) {
  .container, .narrow { width: min(calc(100% - 28px), var(--container)); }
  .section { padding: 64px 0; }
  .header-inner { min-height: 72px; }
  .brand img { width: 126px; height: 56px; }
  .main-nav { top: 68px; left: 14px; right: 14px; }
  .quick-exit { bottom: 12px; right: 12px; padding: 10px 13px; font-size: 12px; }
  .hero-grid { padding-top: 28px; padding-bottom: 58px; }
  .hero-art { min-height: 285px; }
  .hero-art img { width: 250px; }
  .hero-message { font-size: 13px; }
  h1 { font-size: 42px; }
  h2 { font-size: 32px; }
  .lead { font-size: 17px; }
  .hero-actions { display: grid; grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .cards-3, .resource-grid, .do-dont-grid, .metric-grid, .form-grid.two, .check-grid { grid-template-columns: 1fr; }
  .path-card, .article-card, .resource-card { padding: 23px; }
  .split-heading { display: block; }
  .split-heading .text-link { display: inline-block; margin-top: 10px; }
  .together { padding-top: 24px; padding-bottom: 64px; }
  .together-card { grid-template-columns: 1fr; text-align: center; padding: 32px 22px; }
  .together-symbol { margin: 0 auto; }
  .together-card h2 { font-size: 44px; }
  .together-action { grid-column: auto; flex-direction: column; }
  .article-row { padding: 22px; }
  .article-row h2 { font-size: 23px; }
  .step-list article { grid-template-columns: 42px 1fr; gap: 14px; }
  .article-next .container { display: block; }
  .article-next .btn { margin-top: 18px; width: 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .admin-heading { display: block; }
  .admin-heading .btn { margin-top: 15px; }
  .admin-heading h1 { font-size: 36px; }
  .admin-panel { padding: 20px; }
  .auth-card { padding: 26px 22px; }
}

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