/*
Theme Name: NeuropsychReport
Theme URI: https://neuropsychreport.com
Author: The Reading Guru
Author URI: https://readingguru.com
Description: Informational site about neuropsychological evaluations with a state-by-state directory of providers. Powered by The Reading Guru.
Version: 1.2.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: npr
*/

:root {
	--navy: #152B73;
	--navy-dark: #0f1f55;
	--teal: #3FDABB;
	--teal-soft: #e3f9f4;
	--pink: #CC3366;
	--yellow: #F0CA32;
	--sky: #DEEEFD;
	--ink: #202832;
	--muted: #5b6573;
	--line: #dfe3ea;
	--bg: #ffffff;
	--bg-alt: #f6f9fd;
	--radius: 6px;
	--wrap: 1000px;
}

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

html { scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	font-size: 18px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}

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

a { color: var(--navy); text-underline-offset: 3px; }
a:hover { color: var(--pink); }

h1, h2, h3, h4 {
	font-family: "Calistoga", Georgia, serif;
	font-weight: 400;
	color: var(--navy);
	line-height: 1.2;
	margin: 0 0 .5em;
}
h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.25rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; }

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

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link:focus { position: static; width: auto; height: auto; clip: auto; padding: 8px; background: var(--yellow); }

/* ---------- Header ---------- */
.site-header {
	background: var(--teal);
	border-bottom: 4px solid var(--navy);
}
.site-header .wrap {
	display: flex; align-items: center; justify-content: space-between;
	gap: 16px; padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--navy); }
.brand-name {
	font-family: "Calistoga", Georgia, serif; font-size: 1.6rem; line-height: 1; color: var(--navy);
}
.powered {
	display: flex; align-items: center; gap: 8px; font-size: .8rem; color: var(--navy);
	text-decoration: none; font-weight: 600;
}
.powered img { height: 34px; width: auto; display: block; }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 22px; flex-wrap: wrap; }
.site-nav a { color: var(--navy); font-weight: 600; text-decoration: none; font-size: 1rem; }
.site-nav a:hover { color: #fff; }

/* ---------- Buttons ---------- */
.btn {
	display: inline-block; background: var(--navy); color: #fff; font-weight: 600;
	padding: 12px 22px; border-radius: 3px; text-decoration: none; font-size: 1rem;
	border: 2px solid var(--navy);
}
.btn:hover { background: var(--navy-dark); color: #fff; }
.btn-outline { background: transparent; color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }

/* ---------- Hero ---------- */
.hero { background: var(--sky); padding: 40px 0 34px; }
.hero p.lead { font-size: 1.2rem; max-width: 760px; color: var(--ink); }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.state-picker {
	background: #fff; border: 2px solid var(--navy); border-radius: var(--radius);
	padding: 18px 20px; margin-top: 24px; max-width: 480px;
}
.state-picker label { display: block; font-weight: 600; color: var(--navy); margin-bottom: 8px; }
.state-picker-row { display: flex; gap: 10px; flex-wrap: wrap; }
.state-picker select {
	flex: 1 1 200px; min-width: 0; padding: 12px 14px; font-size: 1.05rem; font-family: inherit;
	border: 2px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--ink);
}
.state-picker select:focus { outline: none; border-color: var(--teal); }
.state-picker .btn { flex: 0 0 auto; cursor: pointer; font-family: inherit; }
.hero-sub { margin-top: 14px; font-size: .95rem; }
.muted-small { color: var(--muted); font-size: .9rem; margin-top: 18px; }
.provider .areas { font-size: .95rem; margin-top: 6px; }
details ul.checklist { margin: 6px 0 4px; }

/* ---------- Sections ---------- */
.section { padding: 36px 0; }
.section.alt { background: var(--bg-alt); }
.section .intro { max-width: 760px; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-top: 24px; }
.card {
	background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px;
	border-top: 4px solid var(--teal);
}
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }

ul.checklist { padding-left: 0; list-style: none; }
ul.checklist li { padding-left: 30px; position: relative; margin-bottom: .5em; }
ul.checklist li::before {
	content: ""; position: absolute; left: 4px; top: .55em; width: 12px; height: 12px;
	border-radius: 50%; background: var(--teal);
}

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
@media (max-width: 800px) { .two-col { grid-template-columns: 1fr; gap: 0; } }

.about-box {
	background: var(--navy); color: #fff; border-radius: var(--radius); padding: 36px;
}
.about-box h2 { color: #fff; }
.about-box a { color: var(--teal); }
.about-box p { max-width: 760px; }
.about-box strong { color: var(--yellow); font-weight: 600; }
@media (max-width: 600px) { .about-box { padding: 24px; } }

.note {
	background: #fff8dc; border-left: 4px solid var(--yellow); padding: 14px 18px;
	border-radius: 0 var(--radius) var(--radius) 0; font-size: .95rem;
}

/* ---------- FAQ ---------- */
details { border-bottom: 1px solid var(--line); padding: 14px 0; }
details summary { cursor: pointer; font-weight: 600; color: var(--navy); font-size: 1.05rem; }
details[open] summary { margin-bottom: 8px; }

/* ---------- State directory ---------- */
.state-search { margin: 20px 0; max-width: 420px; }
.state-search input {
	width: 100%; padding: 12px 14px; font-size: 1rem; border: 2px solid var(--line); border-radius: var(--radius);
	font-family: inherit;
}
.state-search input:focus { outline: none; border-color: var(--teal); }

.state-grid {
	list-style: none; margin: 0; padding: 0;
	display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px;
}
.state-grid a {
	display: flex; justify-content: space-between; align-items: center;
	padding: 10px 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
	text-decoration: none; color: var(--ink); font-weight: 500;
}
.state-grid a:hover { border-color: var(--teal); background: var(--teal-soft); color: var(--navy); }
.state-grid .count {
	font-size: .8rem; background: var(--sky); color: var(--navy); border-radius: 20px; padding: 1px 9px; font-weight: 600;
}
.state-grid .count.zero { background: #f0f1f3; color: var(--muted); }

/* ---------- Provider listings ---------- */
.breadcrumb { font-size: .9rem; margin-bottom: 10px; color: var(--muted); }
.provider-list { display: grid; gap: 16px; margin-top: 24px; }
.provider {
	background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--teal);
	border-radius: var(--radius); padding: 20px 22px;
	display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px;
}
@media (max-width: 700px) { .provider { grid-template-columns: 1fr; } }
.provider h3 { margin-bottom: 2px; font-size: 1.25rem; }
.provider h3 a { text-decoration: none; }
.provider .creds { color: var(--muted); font-size: .95rem; margin-bottom: 8px; }
.provider .tags { display: flex; gap: 6px; flex-wrap: wrap; margin: 8px 0 0; }
.tag { font-size: .78rem; font-weight: 600; padding: 2px 10px; border-radius: 20px; background: var(--teal-soft); color: var(--navy); }
.tag.pink { background: #fbe7ee; color: var(--pink); }
.contact-lines { font-size: .95rem; list-style: none; padding: 0; margin: 0; }
.contact-lines li { margin-bottom: 4px; overflow-wrap: anywhere; }
.contact-lines strong { color: var(--navy); font-weight: 600; display: inline-block; min-width: 62px; }

.city-filter { margin-top: 16px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.city-filter select { padding: 8px 10px; font-size: 1rem; border: 2px solid var(--line); border-radius: var(--radius); font-family: inherit; }

.empty {
	background: var(--bg-alt); border: 2px dashed var(--line); padding: 28px; border-radius: var(--radius); text-align: center;
}

/* ---------- Page content ---------- */
.entry { max-width: 760px; }
.entry h2 { margin-top: 1.4em; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #cdd6f0; padding: 40px 0 28px; font-size: .95rem; margin-top: 0; }
.site-footer a { color: #fff; }
.site-footer .foot-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 30px; }
@media (max-width: 700px) { .site-footer .foot-grid { grid-template-columns: 1fr; } }
.site-footer img { height: 44px; width: auto; }
.site-footer .disclaimer { border-top: 1px solid rgba(255,255,255,.12); margin-top: 26px; padding-top: 16px; font-size: .72rem; line-height: 1.55; color: rgba(205,214,240,.6); }
.site-footer .disclaimer p { margin-bottom: .6em; }
.fine-print { font-size: .78rem; color: var(--muted); margin-top: 48px; }

/* Footer state links */
.site-footer .state-links { margin-top: 22px; font-size: .85rem; line-height: 1.8; color: #cdd6f0; }
.site-footer .state-links summary { font-weight: 600; color: #fff; cursor: pointer; list-style: none; }
.site-footer .state-links summary::-webkit-details-marker { display: none; }
.site-footer .state-links summary::after { content: " \25B8"; }
.site-footer .state-links[open] summary::after { content: " \25BE"; }
.site-footer .state-links .links { display: block; margin-top: 6px; }
.site-footer .state-links a { color: #cdd6f0; text-decoration: none; }
.site-footer .state-links a:hover { color: #fff; text-decoration: underline; }
/* Desktop: always open, shown as one line with a "Providers by state:" label */
.site-footer .state-links.is-desktop summary { display: inline; cursor: default; margin-right: 4px; }
.site-footer .state-links.is-desktop summary::after { content: ":"; }
.site-footer .state-links.is-desktop .links { display: inline; margin-top: 0; }

/* (Lists and FAQ share the same width and left edge as other sections.) */
@media (max-width: 700px) { .wrap { padding-left: max(25px, env(safe-area-inset-left, 0px)); padding-right: max(25px, env(safe-area-inset-right, 0px)); } }

/* Header "Find a Provider" jump: land on the headline, with the state picker below it */
#find { scroll-margin-top: 16px; }

/* Footer: slightly wider side margins */
@media (max-width: 700px) { .site-footer .wrap { padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px)); } }

/* State page: heading above the provider list */
.list-heading { font-size: 1.5rem; margin-bottom: 4px; }
