/* site.css: all shared styles for Health4Everyone */
:root {
	--ink: #0f2b2e;
	--ink-soft: #3d5a5c;
	--leaf: #17806a;
	--leaf-dark: #0f5c4c;
	--mist: #e8f4f0;
	--coral: #e85a43;
	--coral-dark: #c9432d;
	--sun: #ffd36b;
	--paper: #fbfdfc;
	--line: #cfe3dc;
	--serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
	--sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--wrap: 1180px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--sans); line-height: 1.65; color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; display: block; }
a { color: var(--leaf-dark); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--coral); outline-offset: 2px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .75rem 1rem; z-index: 2000; }
.skip:focus { left: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.5rem; }

/* Type */
h1, h2, h3 { font-family: var(--serif); line-height: 1.15; color: var(--ink); font-weight: 700; }
h1 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); margin-bottom: 1rem; }
h3 { font-size: 1.35rem; margin-bottom: .5rem; }
p { max-width: 68ch; }
.lead { font-size: 1.2rem; color: var(--ink-soft); }

/* Header + nav */
header.site { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 1000; }
.bar { display: flex; align-items: center; justify-content: space-between; height: 84px; }
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--ink); font-family: var(--serif); font-weight: 700; font-size: 1.4rem; }
.brand img { width: 52px; height: 52px; }
nav.main ul { list-style: none; display: flex; gap: .25rem; }
nav.main li { position: relative; }
nav.main a { display: block; padding: .7rem .9rem; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; border-radius: 6px; }
nav.main a:hover, nav.main a[aria-current="page"] { color: var(--leaf-dark); background: var(--mist); }
nav.main .sub { display: none; position: absolute; top: 100%; left: 0; min-width: 200px; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 8px 24px rgba(15,43,46,.12); padding: .35rem; flex-direction: column; gap: 0; z-index: 1001; }
nav.main li:hover > .sub, nav.main li:focus-within > .sub { display: flex; }
nav.main .has-sub > a::after { content: ""; display: inline-block; margin-left: .4rem; width: .4rem; height: .4rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.burger { display: none; background: none; border: 0; padding: .6rem; cursor: pointer; }
.burger span { display: block; width: 26px; height: 3px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: transform .25s, opacity .25s; }
.burger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Buttons */
.btn { display: inline-block; padding: .9rem 1.8rem; background: var(--coral); color: #fff; text-decoration: none; font-weight: 700; border: 2px solid var(--coral); border-radius: 999px; cursor: pointer; font-size: 1rem; font-family: inherit; transition: background .2s, border-color .2s; }
.btn:hover { background: var(--coral-dark); border-color: var(--coral-dark); }
.btn.alt { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn.alt:hover { background: var(--ink); color: #fff; }

/* Hero */
.hero { background: var(--mist); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 3rem; padding-top: 4.5rem; padding-bottom: 4.5rem; }
.hero h1 { margin-bottom: 1.25rem; }
.hero p { font-size: 1.2rem; color: var(--ink-soft); margin-bottom: 2rem; }
.hero svg { width: 100%; height: auto; }
.page-head { background: var(--mist); padding: 3.5rem 0 3rem; border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); margin-bottom: .75rem; }
.page-head p { font-size: 1.15rem; color: var(--ink-soft); }

/* Sections */
section.block { padding: 4.5rem 0; }
section.tint { background: var(--mist); }
.rows { margin-top: 2rem; border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: 96px 1fr; gap: 2rem; padding: 2rem 0; border-bottom: 1px solid var(--line); align-items: start; }
.row .ico { width: 80px; height: 80px; border-radius: 50%; background: var(--mist); display: grid; place-items: center; }
.row .ico svg { width: 44px; height: 44px; }
.row p { color: var(--ink-soft); font-size: 1.1rem; }
.cta { background: var(--leaf-dark); color: #fff; border-radius: 28px; padding: 3.5rem 2rem; text-align: center; }
.cta h2 { color: #fff; }
.cta p { margin: 0 auto 1.75rem; color: #d7efe8; font-size: 1.15rem; }

/* About */
.mv { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 2rem; }
.mv div { border-left: 5px solid var(--leaf); padding: .25rem 0 .25rem 1.25rem; }
.mv div:last-child { border-left-color: var(--coral); }
.mv h3 { margin-bottom: .35rem; }

/* Board */
.board-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 2rem; margin-top: 2rem; }
.person { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.person .photo { aspect-ratio: 1 / 1; background: var(--mist); display: grid; place-items: center; font-family: var(--serif); font-size: 3.5rem; color: var(--leaf-dark); }
.person img.photo { width: 100%; height: auto; object-fit: cover; }
.person .info { padding: 1.25rem 1.25rem 1.5rem; }
.person .role { color: var(--leaf-dark); font-weight: 600; margin-bottom: .5rem; }
.person .bio { color: var(--ink-soft); font-size: .95rem; }

/* Resources */
.res-nav { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.res-nav a { padding: .5rem 1.1rem; border: 2px solid var(--leaf); border-radius: 999px; text-decoration: none; font-weight: 600; }
.res-nav a:hover { background: var(--leaf); color: #fff; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.5rem; margin-top: 1.75rem; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 1.5rem; }
.card p { color: var(--ink-soft); font-size: .98rem; }
.tag { display: inline-block; margin-top: .75rem; background: var(--sun); color: var(--ink); font-size: .8rem; font-weight: 700; padding: .15rem .7rem; border-radius: 999px; }
.hotline { display: grid; gap: .25rem; }
.hotline strong { font-family: var(--serif); font-size: 1.6rem; }
.note { margin-top: 2rem; padding: 1rem 1.25rem; background: #fff7df; border-left: 5px solid var(--sun); border-radius: 6px; font-size: .95rem; max-width: 80ch; }
.tips { margin-top: 1.75rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.5rem; }
.tips li { list-style: none; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 1.5rem; }
.tips h3 { color: var(--leaf-dark); }
.tips p { color: var(--ink-soft); font-size: .98rem; }

/* Partners */
.logos { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.5rem; margin-top: 2rem; }
.logo-slot { display: grid; place-items: center; text-align: center; min-height: 140px; padding: 1.25rem; border: 2px dashed var(--line); border-radius: 14px; background: #fff; color: var(--ink-soft); text-decoration: none; font-weight: 600; }
a.logo-slot:hover { border-color: var(--leaf); color: var(--leaf-dark); }

/* Contact form */
.form { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 2rem; max-width: 640px; margin-top: 2rem; }
.field { margin-bottom: 1.25rem; }
.field label { display: block; font-weight: 600; margin-bottom: .35rem; }
.field input, .field select, .field textarea { width: 100%; padding: .75rem .9rem; font: inherit; color: inherit; border: 1.5px solid #9fbfb6; border-radius: 8px; background: #fff; }
.field textarea { min-height: 150px; resize: vertical; }
.msg { display: none; margin-top: 1rem; padding: 1rem; border-radius: 8px; }
.msg.ok { background: #dff3e8; color: #135c36; }
.msg.err { background: #fde3df; color: #8a2414; }

/* Footer */
footer.site { background: var(--ink); color: #e3f0ec; padding: 3.5rem 0 2rem; margin-top: 3rem; }
.foot { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2rem; }
footer.site h3 { color: #fff; font-size: 1.1rem; }
footer.site p { margin-bottom: .4rem; }
footer.site a { color: #fff; }
.copy { max-width: none; margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,.18); font-size: .85rem; opacity: .8; }

/* One orchestrated entrance: hero only */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.hero .copy-col > * { animation: rise .6s ease both; }
.hero .copy-col > *:nth-child(2) { animation-delay: .1s; }
.hero .copy-col > *:nth-child(3) { animation-delay: .2s; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* Mobile */
@media (max-width: 860px) {
	.bar { height: 68px; }
	.brand { font-size: 1.15rem; }
	.brand img { width: 40px; height: 40px; }
	.burger { display: block; }
	nav.main { display: none; position: fixed; top: 68px; left: 0; right: 0; bottom: 0; background: #fff; overflow-y: auto; padding: .5rem 1rem 2rem; z-index: 999; }
	nav.main.active { display: block; }
	nav.main ul { flex-direction: column; gap: 0; }
	nav.main li { border-bottom: 1px solid var(--line); }
	nav.main a { padding: 1rem .5rem; border-radius: 0; }
	nav.main .sub { display: none; position: static; box-shadow: none; border: 0; padding: 0 0 .5rem 1rem; }
	nav.main li:hover > .sub, nav.main li:focus-within > .sub { display: none; }
	nav.main li.open > .sub { display: flex; }
	.hero .wrap { grid-template-columns: 1fr; gap: 2rem; padding-top: 2.5rem; padding-bottom: 2.5rem; }
	.row { grid-template-columns: 1fr; gap: 1rem; }
	.mv { grid-template-columns: 1fr; }
	section.block { padding: 3rem 0; }
	.form { padding: 1.25rem; }
}
