/*
Theme Name: Coast Neurosurgery
Theme URI: https://www.coastneurosurgery.com/
Author: Alloy Systems Inc.
Description: Custom theme for Coast Neurosurgical Associates, Long Beach, CA. Classic PHP theme with a Providers post type, Customizer-managed practice details, and starter pages created on activation.
Version: 1.5.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: coast-neurosurgery
*/

:root {
	--ink: #10263a;
	--navy: #0f3554;
	--sea: #3f729b;
	--sea-dark: #2f5a7d;
	--foam: #eef3f8;
	--sand: #f7f3ec;
	--line: #d7e0ea;
	--muted: #56697a;
	--white: #fff;
	--serif: Georgia, "Iowan Old Style", "Palatino Linotype", "Times New Roman", serif;
	--sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--wrap: 1140px;
	--radius: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--sans);
	font-size: 17px;
	line-height: 1.7;
	color: var(--ink);
	background: var(--white);
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sea-dark); }
a:hover { color: var(--navy); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.2; color: var(--navy); margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1.2em; }
ul, ol { margin: 0 0 1.2em; padding-left: 1.3em; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.narrow { max-width: 760px; }
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section--foam { background: var(--foam); }
.section--sand { background: var(--sand); }
.eyebrow { font-family: var(--sans); font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--sea-dark); font-weight: 600; margin: 0 0 .9rem; }
.screen-reader-text { position: absolute; left: -9999px; }
.skip-link:focus { left: 1rem; top: 1rem; background: var(--white); padding: .6rem 1rem; z-index: 100; }

/* Buttons */
.btn {
	display: inline-block; padding: .85rem 1.6rem; border-radius: var(--radius);
	background: var(--sea); color: var(--white); text-decoration: none; font-weight: 600;
	border: 2px solid var(--sea); transition: background .15s, border-color .15s, color .15s;
}
.btn:hover { background: var(--sea-dark); border-color: var(--sea-dark); color: var(--white); }
.btn--ghost { background: transparent; border-color: rgba(255,255,255,.7); color: var(--white); }
.btn--ghost:hover { background: var(--white); border-color: var(--white); color: var(--navy); }
.btn--outline { background: transparent; color: var(--sea-dark); }
.btn--outline:hover { background: var(--sea); color: var(--white); }

/* Top bar + header */
.topbar { background: var(--navy); color: #d5e3ea; font-size: .88rem; }
.topbar .wrap { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0; flex-wrap: wrap; }
.topbar a { color: var(--white); text-decoration: none; font-weight: 600; }
.site-header { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 88px; }
.brand { text-decoration: none; display: flex; align-items: center; gap: .8rem; }
.brand img { height: 60px; max-height: 60px; width: auto; }
.footer-logo { height: 64px; width: auto; margin-bottom: 1.1rem; }
.brand__name { font-family: var(--serif); font-size: 1.35rem; color: var(--navy); line-height: 1.1; }
.brand__name small { display: block; font-family: var(--sans); font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--sea-dark); margin-top: .2rem; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.75rem; align-items: center; }
.nav a { text-decoration: none; color: var(--ink); font-weight: 500; font-size: .98rem; padding: .4rem 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav .current-menu-item > a, .nav .current_page_item > a { border-bottom-color: var(--sea); color: var(--navy); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: var(--radius); padding: .5rem .75rem; font: inherit; cursor: pointer; color: var(--navy); }

/* Hero */
.hero {
	position: relative; color: var(--white);
	background: linear-gradient(120deg, #0b2a44 0%, #0f3554 45%, #3f729b 100%);
	background-size: cover; background-position: center;
}
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,30,50,.82) 0%, rgba(8,30,50,.45) 60%, rgba(8,30,50,.2) 100%); }
.hero .wrap { position: relative; padding: clamp(4rem, 11vw, 8.5rem) 0; }
.hero h1 { color: var(--white); max-width: 15ch; }
.hero p.lead { font-size: 1.2rem; max-width: 52ch; color: #dbe8ee; }
.hero .eyebrow { color: #a9c2d8; }
.hero__actions { display: flex; gap: .9rem; flex-wrap: wrap; margin-top: 1.8rem; }

.page-hero { background: var(--navy); color: var(--white); padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.page-hero h1 { color: var(--white); margin: 0; }
.page-hero .eyebrow { color: #a9c2d8; }

/* Cards */
.grid { display: grid; gap: 1.5rem; }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.grid--5 { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.team-photo { width: 100%; border-radius: var(--radius); margin: 0 0 2rem; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.9rem; border-top: 3px solid var(--sea); }
.card h3 { margin-bottom: .5rem; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card ul { color: var(--muted); }

/* Providers */
.provider { text-decoration: none; color: inherit; display: block; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .2s, transform .2s; }
.provider:hover { box-shadow: 0 12px 30px rgba(15,53,84,.12); transform: translateY(-2px); }
.provider__photo { aspect-ratio: 4 / 5; background: linear-gradient(160deg, var(--foam), #cfdcea); display: grid; place-items: center; font-family: var(--serif); font-size: 3rem; color: var(--sea-dark); }
.provider__photo img { width: 100%; height: 100%; object-fit: cover; }
.provider__body { padding: 1.1rem 1.3rem 1.4rem; }
.provider__body h3 { margin: 0 0 .2rem; font-size: 1.2rem; }
.provider__body span { color: var(--muted); font-size: .92rem; }
.provider-single { display: grid; grid-template-columns: minmax(220px, 340px) 1fr; gap: 3rem; align-items: start; }
.provider-single .provider__photo { border-radius: var(--radius); overflow: hidden; }

/* Content */
.entry > *:first-child { margin-top: 0; }
.entry h2 { margin-top: 1.6em; }
.entry h3 { margin-top: 1.4em; }
.entry blockquote { margin: 1.5em 0; padding: 1.2rem 1.5rem; border-left: 3px solid var(--sea); background: var(--foam); font-family: var(--serif); font-size: 1.1rem; }
.entry .alignwide { max-width: var(--wrap); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }

/* Contact */
.info-list { list-style: none; padding: 0; margin: 0; }
.info-list li { padding: .9rem 0; border-bottom: 1px solid var(--line); }
.info-list strong { display: block; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--sea-dark); margin-bottom: .2rem; }
.info-list a { color: var(--navy); font-weight: 600; text-decoration: none; }
.map { border: 0; width: 100%; height: 420px; border-radius: var(--radius); }

.cta { background: var(--sea-dark); color: var(--white); text-align: center; }
.cta h2 { color: var(--white); }
.cta p { color: #dbe6f1; max-width: 56ch; margin-inline: auto; }
.cta .hero__actions { justify-content: center; }
.cta .btn { background: var(--white); color: var(--navy); border-color: var(--white); }
.cta .btn:hover { background: var(--foam); }

/* Footer */
.site-footer { background: #0b2438; color: #b9c9d4; font-size: .95rem; }
.site-footer .wrap { padding: 3.5rem 0 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; }
.site-footer h4 { color: var(--white); font-family: var(--sans); font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; margin-bottom: 1rem; }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .4rem; }
.footer-brand { font-family: var(--serif); font-size: 1.4rem; color: var(--white); margin-bottom: .6rem; }
.footer-legal { border-top: 1px solid rgba(255,255,255,.12); margin-top: 2.5rem; padding-top: 1.2rem; font-size: .85rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; }

@media (max-width: 860px) {
	.nav-toggle { display: block; }
	.nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-bottom: 1px solid var(--line); }
	.nav.is-open { display: block; }
	.nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: .5rem 1.25rem 1rem; }
	.nav a { display: block; padding: .8rem 0; border-bottom: 1px solid var(--line); }
	.split, .provider-single, .footer-grid { grid-template-columns: 1fr; }
	.topbar .wrap { justify-content: center; text-align: center; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
