/*
Theme Name: Newell's Plumbing Heating & Air Conditioning
Theme URI: https://newellplumbingandheating.net/
Author: Newell's Plumbing Heating & Air Conditioning
Description: A lightweight classic theme for a family-owned plumbing, heating and air conditioning company in St. Marys, PA. Includes ready-made Home, About Us, Plumbing, Heating, Cooling and Contact page templates, a built-in contact form, and Customizer settings for business info and photos.
Version: 1.0.0
Requires at least: 5.5
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: newells
*/

/* ---------- Tokens ---------- */
:root {
	--navy: #0e2a47;
	--navy-deep: #091d33;
	--navy-soft: #173a5f;
	--copper: #b4531c;
	--copper-dk: #8f3f12;
	--ink: #17222e;
	--muted: #445566;
	--line: #d3dce5;
	--tint: #edf1f5;
	--paper: #ffffff;
	--water: #1d63a6;
	--ember: #c8381a;
	--ice: #12808f;
	--tone: var(--copper);
	--font-head: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", Arial, sans-serif;
	--font-body: "Barlow", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--wrap: 1160px;
}
.tone-water { --tone: var(--water); }
.tone-ember { --tone: var(--ember); }
.tone-ice   { --tone: var(--ice); }
.tone-neutral { --tone: var(--copper); }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font-family: var(--font-body);
	font-size: 1.0625rem;
	line-height: 1.65;
	color: var(--ink);
	background: var(--paper);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-soft); text-underline-offset: 3px; }
a:hover { color: var(--copper-dk); }
h1, h2, h3 {
	font-family: var(--font-head);
	font-weight: 700;
	line-height: 1.08;
	letter-spacing: 0.005em;
	margin: 0 0 0.5em;
	color: var(--navy);
}
h1 { font-size: clamp(2.4rem, 5.2vw, 4rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.6rem; }
p { margin: 0 0 1.1em; }
address { font-style: normal; }
ul { padding: 0; margin: 0; list-style: none; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--navy); color: #fff; padding: 12px 18px; z-index: 100; }
.skip-link:focus { left: 0; }
:focus-visible { outline: 3px solid var(--water); outline-offset: 2px; }
.topbar :focus-visible, .hero :focus-visible, .page-hero :focus-visible,
.cta-band :focus-visible, .section--navy :focus-visible, .site-footer :focus-visible { outline-color: #fff; }

/* ---------- Buttons ---------- */
.btn {
	display: inline-block;
	font-family: var(--font-head);
	font-weight: 700;
	font-size: 1.2rem;
	letter-spacing: 0.02em;
	line-height: 1;
	padding: 15px 26px;
	border: 2px solid var(--copper);
	background: var(--copper);
	color: #fff;
	text-decoration: none;
	border-radius: 3px;
	cursor: pointer;
	transition: background-color .15s, border-color .15s, color .15s;
}
.btn:hover { background: var(--copper-dk); border-color: var(--copper-dk); color: #fff; }
.btn--sm { font-size: 1.05rem; padding: 11px 18px; }
.btn--light { background: #fff; border-color: #fff; color: var(--navy); }
.btn--light:hover { background: var(--tint); border-color: var(--tint); color: var(--navy); }
.btn--ghost { background: transparent; border-color: rgba(255,255,255,.7); color: #fff; }
.btn--ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.btn-stack { display: flex; flex-direction: column; gap: 12px; }
.btn-stack .btn { text-align: center; }
.link-strong { font-weight: 700; color: var(--navy); }

/* ---------- Top bar + header ---------- */
.topbar { background: var(--navy-deep); color: #e4ecf4; font-size: .95rem; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { text-decoration: underline; color: #fff; }
.topbar__in { display: flex; justify-content: space-between; gap: 16px; padding-top: 8px; padding-bottom: 8px; }

.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.header__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 84px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); }
.brand__logo { max-height: 64px; width: auto; }
.brand__mark {
	display: grid; place-items: center; width: 46px; height: 46px;
	background: var(--navy); color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 2rem;
	border-bottom: 5px solid var(--copper);
}
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name { font-family: var(--font-head); font-weight: 700; font-size: 1.9rem; color: var(--navy); }
.brand__sub { font-size: .8rem; font-weight: 600; color: var(--muted); }

.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav .menu { display: flex; gap: 26px; }
.site-nav .menu a {
	display: block; padding: 8px 0; font-weight: 600; color: var(--ink); text-decoration: none;
	border-bottom: 3px solid transparent;
}
.site-nav .menu a:hover { border-bottom-color: var(--copper); color: var(--ink); }
.site-nav .current-menu-item > a, .site-nav .current_page_item > a { border-bottom-color: var(--copper); }

.nav-toggle { display: none; background: none; border: 2px solid var(--navy); width: 46px; height: 46px; border-radius: 3px; cursor: pointer; padding: 0; }
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
	display: block; width: 22px; height: 2px; background: var(--navy); margin: 0 auto; position: relative;
}
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -7px; }
.nav-toggle__bars::after { top: 7px; }

/* ---------- Home hero ---------- */
.hero { background: var(--navy); color: #fff; }
.hero__in { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: stretch; padding-top: 0; padding-bottom: 0; }
.hero__text { padding: 72px 0; }
.hero h1 { color: #fff; margin-bottom: .4em; }
.hero__lead { font-size: 1.1rem; max-width: 58ch; color: #dbe6f1; }
.hero__lead a, .hero a:not(.btn) { color: #fff; }
.tagline { font-family: var(--font-head); font-weight: 600; font-size: 1.35rem; color: #f2a679; margin: 0 0 .6em; }
.hero__media, .page-hero__media { margin: 0; min-height: 360px; }
.hero__media .media-img, .page-hero__media .media-img { height: 100%; width: 100%; object-fit: cover; }

.facts { background: #fff; border-bottom: 1px solid var(--line); }
.facts__in { display: grid; grid-template-columns: repeat(4, 1fr); }
.facts li { padding: 22px 20px; border-left: 1px solid var(--line); display: flex; flex-direction: column; }
.facts li:first-child { border-left: 0; padding-left: 0; }
.facts strong { font-family: var(--font-head); font-size: 1.45rem; color: var(--navy); line-height: 1.1; }
.facts span { color: var(--muted); font-size: .95rem; }

/* ---------- Inner page hero ---------- */
.page-hero { background: var(--navy); color: #fff; border-bottom: 8px solid var(--tone); }
.page-hero__in { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: stretch; }
.page-hero__text { padding: 64px 0; align-self: center; }
.page-hero h1 { color: #fff; font-size: clamp(2.2rem, 4.4vw, 3.4rem); }
.page-hero--simple { padding: 56px 0; }
.page-hero--simple h1 { margin: 0; }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section--tint { background: var(--tint); }
.section--navy { background: var(--navy); color: #e4ecf4; }
.section--navy h2 { color: #fff; }
.section-title { margin-bottom: 1em; }

.split { display: grid; grid-template-columns: 1.25fr .75fr; gap: 56px; align-items: start; }
.split--media { grid-template-columns: 1fr 1fr; align-items: center; }
.split--form { grid-template-columns: 1.1fr .9fr; }

.prose { max-width: 68ch; }
.prose--narrow { margin-left: auto; margin-right: auto; }
.prose h2 { margin-top: 0; }
.prose a { font-weight: 600; }

.media { margin: 0; }
.media-img { width: 100%; object-fit: cover; }
.media--wide .media-img { aspect-ratio: 3 / 2; }
.media--tall .media-img { aspect-ratio: 4 / 5; }
.media--empty {
	display: grid; place-items: center; text-align: center; padding: 24px; color: #cfdbe8; font-size: .9rem;
	background: repeating-linear-gradient(135deg, var(--navy-soft) 0 14px, #12335a 14px 28px);
	min-height: 240px;
}
.media--wide.media--empty { aspect-ratio: 3 / 2; }
.media--tall.media--empty { aspect-ratio: 4 / 5; }
.section--tint .media--empty, .section .media--empty { color: #e4ecf4; }

/* Cards (home services) */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card { background: #fff; border: 1px solid var(--line); border-top: 8px solid var(--tone); border-radius: 4px; display: flex; flex-direction: column; }
.card__media { aspect-ratio: 16 / 10; }
.card__media .media-img { height: 100%; aspect-ratio: 16 / 10; }
.card__media.media--empty { min-height: 0; aspect-ratio: 16 / 10; }
.card__body { padding: 24px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.card__body p { color: var(--muted); }
.card__body .link-strong { margin-top: auto; }

/* Values */
.values { display: flex; flex-direction: column; }
.value { padding: 0 0 28px; margin: 0 0 28px; border-bottom: 1px solid #c3cfdb; }
.value:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.value h2 { font-size: 1.9rem; margin-bottom: .35em; }
.value p { margin: 0; }

/* Aside box */
.aside-box { background: var(--tint); border-left: 8px solid var(--tone); padding: 28px; }
.aside-box__title { font-size: 1.7rem; margin-bottom: .7em; }
.aside-box__phone { font-family: var(--font-head); font-weight: 700; font-size: 2.4rem; line-height: 1; margin: 0; }
.aside-box__phone a { color: var(--navy); text-decoration: none; }

/* Service items */
.service-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; margin-top: 40px; }
.service-item { background: #fff; border-top: 6px solid var(--tone); padding: 26px 28px 20px; border-radius: 0 0 4px 4px; }
.service-item h3 { margin-bottom: .4em; }
.service-item p { color: var(--muted); }
.closing { margin: 40px 0 0; font-size: 1.15rem; font-weight: 500; }
.closing a { font-weight: 700; }

/* Brands */
.brands { display: flex; flex-wrap: wrap; gap: 14px; }
.brands li {
	font-family: var(--font-head); font-weight: 700; font-size: 1.6rem; color: var(--navy);
	padding: 16px 28px; border: 2px solid var(--line); border-radius: 3px;
}

/* CTA band */
.cta-band { background: var(--copper); color: #fff; }
.cta-band__in { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; padding-top: 44px; padding-bottom: 44px; }
.cta-band h2 { color: #fff; margin: 0; }
.cta-band p { margin: .4em 0 0; }

/* Reviews */
.reviews-embed { max-width: 100%; overflow-x: auto; }
.reviews-empty { background: var(--tint); padding: 28px; border-left: 8px solid var(--copper); display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; margin: 0; }

/* Service area */
.pills { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 28px; }
.pills li { border: 1px solid rgba(255,255,255,.4); padding: 8px 16px; border-radius: 3px; font-weight: 600; color: #fff; }
.on-navy a { color: #fff; font-weight: 600; }

/* Contact */
.contact-card { background: #fff; padding: 28px; border-top: 8px solid var(--copper); border-radius: 0 0 4px 4px; }
.contact-card h2 { font-size: 1.9rem; }
.map { margin-top: 20px; }
.map iframe { width: 100%; aspect-ratio: 4 / 3; border: 0; display: block; }

.form p { margin: 0 0 18px; }
.form label { display: block; font-weight: 600; margin-bottom: 6px; }
.form .req { font-weight: 400; color: var(--muted); font-size: .9rem; }
.form input[type="text"], .form input[type="tel"], .form input[type="email"], .form textarea {
	width: 100%; font: inherit; color: var(--ink); background: #fff;
	border: 1px solid #7a8a9b; border-radius: 3px; padding: 12px 14px;
}
.form input:focus, .form textarea:focus { border-color: var(--navy); outline: 3px solid var(--water); outline-offset: 0; }
.form__note { font-size: .9rem; color: var(--muted); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { padding: 16px 20px; border-left: 8px solid; margin-bottom: 24px; background: #fff; }
.notice--ok { border-color: #1e7a3c; }
.notice--err { border-color: var(--ember); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: #d5dfea; }
.site-footer a { color: #fff; }
.footer__grid { display: grid; grid-template-columns: 1.1fr 1.1fr .8fr; gap: 48px; padding-top: 56px; padding-bottom: 48px; }
.footer__name { font-family: var(--font-head); font-weight: 700; font-size: 1.6rem; color: #fff; line-height: 1.1; }
.footer__note { color: #f2a679; font-weight: 600; }
.footer__col p { margin-bottom: .9em; }
.footer__legal { font-size: .95rem; }
.social li { margin-bottom: 10px; }
.social a { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; }
.social a:hover { text-decoration: underline; }
.footer__bar { border-top: 1px solid rgba(255,255,255,.16); font-size: .92rem; }
.footer__bar-in { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 18px; padding-bottom: 18px; }
.footer__bar .menu { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer__bar .menu a { text-decoration: none; }
.footer__bar .menu a:hover { text-decoration: underline; }
.footer__bar p { margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
	.hero__in, .page-hero__in, .split, .split--media, .split--form { grid-template-columns: 1fr; gap: 36px; }
	.hero__text { padding: 48px 0 8px; }
	.hero__media, .page-hero__media { min-height: 280px; margin: 0 -24px; }
	.page-hero__text { padding: 44px 0 8px; }
	.cards { grid-template-columns: 1fr; }
	.facts__in { grid-template-columns: 1fr 1fr; }
	.facts li:nth-child(3) { border-left: 0; padding-left: 0; }
	.footer__grid { grid-template-columns: 1fr; gap: 28px; }
	.media--tall .media-img, .media--tall.media--empty { aspect-ratio: 3 / 2; }
}
@media (max-width: 880px) {
	.nav-toggle { display: block; }
	.site-nav {
		display: none; position: absolute; left: 0; right: 0; top: 100%;
		background: #fff; border-bottom: 1px solid var(--line);
		flex-direction: column; align-items: stretch; gap: 0; padding: 12px 24px 24px;
	}
	.site-nav.is-open { display: flex; }
	.site-nav .menu { flex-direction: column; gap: 0; }
	.site-nav .menu a { padding: 14px 0; border-bottom: 1px solid var(--line); }
	.nav-call { margin-top: 16px; text-align: center; }
	.header__in { min-height: 72px; }
	.topbar__in { flex-direction: column; gap: 2px; align-items: flex-start; }
	.section { padding: 52px 0; }
}
@media (max-width: 520px) {
	.brand__sub { display: none; }
	.btn-row .btn { width: 100%; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; scroll-behavior: auto !important; }
}
