/*
Theme Name: Henicle's Plumbing
Theme URI: https://heniclesplumbing.com
Description: Custom one-page theme for Henicle's Plumbing Inc., Waynesboro PA. Services, about, job photo gallery, star-rated customer reviews and a service request form, no plugins required.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: henicles
License: Proprietary
*/

:root {
	--maroon: #4f1427;
	--maroon-2: #6b1c37;
	--maroon-dark: #2a0812;
	--water: #1f8fd6;
	--water-light: #bfeaff;
	--ink: #23171b;
	--muted: #6a5a60;
	--bg: #ffffff;
	--tint: #f6f1f2;
	--line: #e8dde0;
	--star: #f5a623;
	--radius: 14px;
	--shadow: 0 10px 30px rgba(42, 8, 18, .10);
	--head: "Lilita One", "Arial Rounded MT Bold", sans-serif;
	--body: "Nunito", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; font-family: var(--body); font-size: 17px; line-height: 1.65; color: var(--ink); background: var(--bg); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--maroon-2); }
h1, h2, h3 { font-family: var(--head); font-weight: 400; line-height: 1.15; color: var(--maroon); margin: 0 0 .5em; letter-spacing: .3px; }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.3rem; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--maroon); color: #fff; padding: 8px 14px; z-index: 100; }
.skip-link:focus { left: 8px; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-weight: 800; font-size: .78rem; color: var(--water); margin: 0 0 .4em; }

/* Buttons */
.btn { display: inline-block; font-weight: 800; text-decoration: none; padding: .85em 1.5em; border-radius: 999px; border: 2px solid transparent; cursor: pointer; font-size: 1rem; font-family: var(--body); transition: transform .15s, box-shadow .15s, background .15s; }
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--maroon); color: #fff; box-shadow: 0 6px 18px rgba(79, 20, 39, .3); }
.btn--primary:hover { background: var(--maroon-2); }
.btn--ghost { border-color: #fff; color: #fff; }
.btn--ghost:hover { background: rgba(255, 255, 255, .12); }
.btn--call { background: var(--water); color: #fff; padding: .6em 1.2em; }

/* Top bar + header */
.topbar { background: var(--maroon-dark); color: #f3e4e8; font-size: .85rem; }
.topbar__inner { display: flex; gap: 20px; justify-content: space-between; padding: 6px 0; flex-wrap: wrap; }
.topbar__phone { color: #fff; font-weight: 800; text-decoration: none; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 8px 0; }
.brand img, .custom-logo { height: 84px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 22px; }
.site-nav .menu { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; }
.site-nav .menu a { text-decoration: none; color: var(--ink); font-weight: 700; }
.site-nav .menu a:hover { color: var(--water); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span:not(.screen-reader-text) { display: block; width: 26px; height: 3px; margin: 5px 0; background: var(--maroon); border-radius: 2px; }

/* Hero */
.hero { position: relative; overflow: hidden; color: #fff; background:
	radial-gradient(circle at 85% 20%, rgba(31, 143, 214, .35), transparent 45%),
	linear-gradient(135deg, var(--maroon-dark), var(--maroon) 55%, var(--maroon-2)); }
.hero__inner { position: relative; padding: clamp(60px, 10vw, 120px) 0; max-width: 720px; margin-left: max(16px, (100% - 1180px) / 2); }
.hero h1 { color: #fff; text-shadow: 0 3px 0 var(--maroon-dark), 0 6px 18px rgba(0, 0, 0, .3); }
.hero .eyebrow { color: var(--water-light); }
.hero__lead { font-size: 1.2rem; color: #f3e4e8; max-width: 600px; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; margin: 26px 0; }
.hero__cta .btn--primary { background: var(--water); box-shadow: 0 6px 18px rgba(31, 143, 214, .45); }
.hero__points { list-style: none; padding: 0; margin: 0; display: flex; gap: 22px; flex-wrap: wrap; font-weight: 700; }
.hero__points li::before { content: "✓"; color: var(--water-light); margin-right: 6px; }
/* Animated water falling straight down */
.hero__stream { position: absolute; right: 13%; top: 0; bottom: 0; width: 30px; }
.hero__stream::before { content: ""; position: absolute; top: 0; left: -14px; right: -14px; height: 22px; background: linear-gradient(90deg, #2a0812, #c46e88 60%, #3a0c1b); border-radius: 0 0 6px 6px; }
.hero__stream span { position: absolute; top: 22px; bottom: 0; left: 0; right: 0; border-radius: 0 0 20px 20px; background:
	repeating-linear-gradient(180deg, rgba(255, 255, 255, 0) 0 70px, rgba(255, 255, 255, .22) 82px, rgba(255, 255, 255, 0) 94px),
	linear-gradient(90deg, #0b5fa8, #3fb0ef 25%, #e8f8ff 42%, #5cc4f5 55%, #0a4f91);
	background-size: 100% 94px, 100% 100%; animation: flow 1s linear infinite; opacity: .9; }
@keyframes flow { to { background-position: 0 94px, 0 0; } }
@media (prefers-reduced-motion: reduce) { .hero__stream span { animation: none; } }

/* Sections */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section--tint { background: var(--tint); }
.section__head { text-align: center; max-width: 680px; margin: 0 auto 44px; }
.section__head p { color: var(--muted); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(22px, 3vw, 34px); }

/* Services */
.services { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px; }
.service { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; transition: transform .2s, box-shadow .2s, border-color .2s; }
.service:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--water); }
.service__icon { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 16px; background: linear-gradient(135deg, #e6f4fc, #fff); color: var(--water); margin-bottom: 14px; box-shadow: inset 0 0 0 1px #cfe8f7; }
.service h3 { margin-bottom: .35em; }
.service p { margin: 0; color: var(--muted); font-size: .97rem; }

/* About */
.about { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: center; }
.about__values { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.about__values li { background: #fff; border-left: 5px solid var(--water); border-radius: 10px; padding: 16px 20px; box-shadow: var(--shadow); }
.about__values strong { display: block; font-family: var(--head); font-weight: 400; color: var(--maroon); font-size: 1.15rem; }
.about__values span { color: var(--muted); }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.gallery__item { position: relative; display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--tint); }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery__item:hover img { transform: scale(1.06); }
.gallery__cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 16px 12px; color: #fff; font-weight: 800; background: linear-gradient(transparent, rgba(42, 8, 18, .85)); }
.gallery__item--ph { background: linear-gradient(135deg, var(--maroon-2), var(--maroon-dark)); }
.gallery__item--ph::before { content: ""; position: absolute; left: 50%; top: 18%; width: 18px; height: 52%; transform: translateX(-50%); border-radius: 0 0 10px 10px; background: linear-gradient(90deg, #0b5fa8, #e8f8ff 45%, #0a4f91); opacity: .55; }
.admin-hint { margin-top: 16px; padding: 12px 16px; background: #fff8e1; border: 1px dashed #e0b84d; border-radius: 10px; font-size: .9rem; }

/* Reviews */
.stars { color: var(--star); letter-spacing: 2px; font-size: 1.2rem; white-space: nowrap; }
.star--empty { color: #d9cfd2; }
.star--half { background: linear-gradient(90deg, var(--star) 50%, #d9cfd2 50%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rating-summary { font-size: 1.1rem; color: var(--ink) !important; }
.reviews { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; margin-bottom: 40px; }
.review { margin: 0; background: #fff; border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); position: relative; }
.review::after { content: "”"; position: absolute; right: 18px; top: -6px; font-family: var(--head); font-size: 5rem; color: var(--tint); }
.review__text { margin: 10px 0; }
.review footer { font-weight: 800; color: var(--maroon); }
.reviews__empty { text-align: center; color: var(--muted); margin-bottom: 30px; }
.review-form { max-width: 720px; margin: 0 auto; }
.star-input { border: 0; padding: 0; margin: 0 0 14px; }
.star-input legend { font-weight: 700; font-size: .93rem; padding: 0; margin-bottom: 2px; }
.star-input__stars { display: inline-flex; flex-direction: row-reverse; }
.star-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-input label { font-size: 2.3rem; line-height: 1; color: #d9cfd2; cursor: pointer; padding: 0 3px; margin: 0; transition: color .1s, transform .1s; }
.star-input label:hover, .star-input label:hover ~ label, .star-input input:checked ~ label { color: var(--star); }
.star-input label:hover { transform: scale(1.15); }
.star-input input:focus-visible + label { outline: 2px solid var(--water); border-radius: 4px; }

/* Forms */
form label { display: block; font-weight: 700; font-size: .93rem; margin-bottom: 14px; }
input[type=text], input[type=email], input[type=tel], select, textarea { display: block; width: 100%; margin-top: 6px; padding: 12px 14px; font: inherit; font-weight: 400; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--water); box-shadow: 0 0 0 4px rgba(31, 143, 214, .15); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.req { color: #c0392b; }
.form-note { font-size: .85rem; color: var(--muted); margin: 10px 0 0; }
.hp-hp { position: absolute; left: -9999px; }
.notice { padding: 12px 16px; border-radius: 10px; margin-bottom: 16px; font-weight: 700; }
.notice--ok { background: #e6f6ec; color: #1e6b3a; }
.notice--err { background: #fdecea; color: #a23b2c; }

/* Contact */
.contact { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: start; }
.contact__info { display: grid; gap: 20px; }
.contact__info h3 { font-size: 1.1rem; margin: 18px 0 4px; }
.contact__info h3:first-child { margin-top: 0; }
.contact__info p { margin: 0; color: var(--muted); }
.contact__phone { font-family: var(--head); font-size: 2rem; color: var(--water); text-decoration: none; }
.hours { width: 100%; border-collapse: collapse; font-size: .95rem; }
.hours th { text-align: left; font-weight: 700; padding: 4px 0; }
.hours td { text-align: right; color: var(--muted); }
.hours .is-today th, .hours .is-today td { color: var(--water); font-weight: 800; }
.map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4 / 3; }
.map iframe { width: 100%; height: 100%; border: 0; }

/* Footer */
.site-footer { background: var(--maroon-dark); color: #e9d6dc; padding-top: 56px; }
.site-footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.site-footer h3 { color: #fff; }
.site-footer a { color: #fff; }
.site-footer address { font-style: normal; }
.site-footer__logo { width: 220px; background: #fff; border-radius: 12px; padding: 10px; margin-bottom: 14px; }
.hours--footer td { color: #e9d6dc; }
.site-footer__legal { border-top: 1px solid rgba(255, 255, 255, .12); padding: 16px 0; font-size: .85rem; }
.mobile-call { display: none; }

/* Inner pages */
.content { max-width: 820px; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(20, 4, 9, .92); display: grid; place-items: center; padding: 20px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-height: 82vh; width: auto; border-radius: 10px; }
.lightbox__cap { color: #fff; font-weight: 700; text-align: center; }
.lightbox__close { position: absolute; top: 14px; right: 20px; font-size: 2.6rem; background: none; border: 0; color: #fff; cursor: pointer; }

/* Responsive */
@media (max-width: 960px) {
	.about, .contact { grid-template-columns: 1fr; }
	.site-footer__grid { grid-template-columns: 1fr 1fr; }
	.hero__stream { right: 5%; opacity: .45; }
}
@media (max-width: 820px) {
	.nav-toggle { display: block; }
	.site-nav { position: absolute; top: 100%; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; padding: 16px; border-bottom: 1px solid var(--line); display: none; }
	.site-nav.is-open { display: flex; }
	.site-nav .menu { flex-direction: column; gap: 0; }
	.site-nav .menu a { display: block; padding: 12px 4px; border-bottom: 1px solid var(--line); }
	.brand img, .custom-logo { height: 56px; }
	.topbar__hours { display: none; }
}
@media (max-width: 600px) {
	.form-row, .site-footer__grid { grid-template-columns: 1fr; }
	.hero__stream { display: none; }
	.mobile-call { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--water); color: #fff; text-align: center; font-weight: 800; padding: 14px; text-decoration: none; box-shadow: 0 -4px 16px rgba(0, 0, 0, .2); }
	body { padding-bottom: 52px; }
}
