/*
 * Hank and Sons Plumbing — theme styles.
 * Palette: deep navy #082A45, service blue #1268A5, water blue #20A5D8,
 * light bg #F4F8FB, orange CTA #F97316, dark text #172532, muted #607080,
 * success green #218657.
 */

:root {
	--hank-navy: #082A45;
	--hank-blue: #1268A5;
	--hank-water: #20A5D8;
	--hank-light: #F4F8FB;
	--hank-orange: #F97316;
	--hank-white: #FFFFFF;
	--hank-dark: #172532;
	--hank-muted: #607080;
	--hank-green: #218657;
	--hank-radius: 12px;
	--hank-shadow: 0 6px 24px rgba(8, 42, 69, 0.10);
}

/* ---------- Base ---------- */

body {
	margin: 0;
	color: var(--hank-dark);
	background: var(--hank-white);
	-webkit-font-smoothing: antialiased;
}

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

.hank-container {
	max-width: 1140px;
	margin-inline: auto;
	padding-inline: 20px;
}

.hank-main {
	padding-bottom: 64px; /* room for the mobile call bar */
}

@media (min-width: 783px) {
	.hank-main {
		padding-bottom: 0;
	}
}

/* ---------- Accessibility ---------- */

.hank-skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 100;
	background: var(--hank-navy);
	color: var(--hank-white);
	padding: 12px 20px;
	border-radius: 0 0 8px 0;
}

.hank-skip-link:focus {
	left: 0;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible {
	outline: 3px solid var(--hank-water);
	outline-offset: 2px;
}

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

/* ---------- Buttons ---------- */

.hank-btn {
	display: inline-block;
	padding: 14px 26px;
	min-height: 48px;
	border-radius: 8px;
	font-weight: 700;
	text-decoration: none;
	line-height: 1.3;
	text-align: center;
	transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.hank-btn--orange {
	background: var(--hank-orange);
	color: var(--hank-white);
}

.hank-btn--orange:hover,
.hank-btn--orange:focus {
	background: #d95f0a;
	color: var(--hank-white);
}

.hank-btn--blue {
	background: var(--hank-blue);
	color: var(--hank-white);
}

.hank-btn--blue:hover,
.hank-btn--blue:focus {
	background: var(--hank-navy);
	color: var(--hank-white);
}

.hank-btn--outline {
	background: transparent;
	color: var(--hank-blue);
	box-shadow: inset 0 0 0 2px var(--hank-blue);
}

.hank-btn--outline:hover,
.hank-btn--outline:focus {
	background: var(--hank-blue);
	color: var(--hank-white);
}

.hank-btn--outline-light {
	background: transparent;
	color: var(--hank-white);
	box-shadow: inset 0 0 0 2px var(--hank-white);
}

.hank-btn--outline-light:hover,
.hank-btn--outline-light:focus {
	background: var(--hank-white);
	color: var(--hank-navy);
}

.hank-btn--small {
	padding: 10px 18px;
	min-height: 44px;
	font-size: 0.95rem;
}

.hank-btn--large {
	padding: 18px 36px;
	font-size: 1.15rem;
}

.hank-phone-link {
	color: var(--hank-blue);
	font-weight: 700;
	text-decoration: none;
}

.hank-phone-link:hover {
	text-decoration: underline;
}

/* ---------- Top bar ---------- */

.hank-topbar {
	background: var(--hank-navy);
	color: var(--hank-white);
	font-size: 0.9rem;
}

.hank-topbar__inner {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	padding-block: 8px;
	flex-wrap: wrap;
}

.hank-topbar__phone {
	color: var(--hank-white);
	font-weight: 700;
	text-decoration: none;
	min-height: 32px;
	display: inline-flex;
	align-items: center;
}

.hank-topbar__phone:hover {
	color: var(--hank-water);
}

/* ---------- Header ---------- */

.hank-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: var(--hank-white);
	box-shadow: 0 2px 12px rgba(8, 42, 69, 0.08);
}

.hank-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding-block: 12px;
}

.hank-header__logo img {
	width: 240px;
	height: auto;
}

.hank-menu-toggle {
	display: none;
	align-items: center;
	gap: 8px;
	background: none;
	border: 2px solid var(--hank-navy);
	border-radius: 8px;
	padding: 10px 14px;
	min-height: 48px;
	cursor: pointer;
	color: var(--hank-navy);
	font-weight: 700;
	font-size: 1rem;
}

.hank-menu-toggle__bars {
	display: inline-flex;
	flex-direction: column;
	gap: 4px;
}

.hank-menu-toggle__bars span {
	display: block;
	width: 20px;
	height: 2px;
	background: currentColor;
}

.hank-nav__list {
	display: flex;
	align-items: center;
	gap: 4px;
	list-style: none;
	margin: 0;
	padding: 0;
	flex-wrap: wrap;
}

.hank-nav__list a:not(.hank-btn) {
	display: inline-flex;
	align-items: center;
	padding: 10px 12px;
	min-height: 44px;
	color: var(--hank-dark);
	text-decoration: none;
	font-weight: 600;
	font-size: 0.95rem;
	border-radius: 6px;
}

.hank-nav__list a:not(.hank-btn):hover,
.hank-nav__list a:not(.hank-btn):focus {
	color: var(--hank-blue);
	background: var(--hank-light);
}

.hank-nav__cta {
	margin-left: 8px;
}

@media (max-width: 1080px) {
	.hank-menu-toggle {
		display: inline-flex;
	}

	.hank-nav {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: var(--hank-white);
		box-shadow: var(--hank-shadow);
		border-top: 1px solid var(--hank-light);
	}

	.hank-nav.is-open {
		display: block;
	}

	.hank-nav__list {
		flex-direction: column;
		align-items: stretch;
		padding: 12px 20px 20px;
		gap: 2px;
	}

	.hank-nav__list a:not(.hank-btn) {
		width: 100%;
		padding: 14px 12px;
		min-height: 48px;
		font-size: 1.05rem;
	}

	.hank-nav__cta {
		margin: 10px 0 0;
	}

	.hank-nav__cta .hank-btn {
		display: block;
	}
}

/* ---------- Hero ---------- */

.hank-hero {
	background: linear-gradient(160deg, var(--hank-light) 0%, #e6f1f8 100%);
	padding-block: 56px;
}

.hank-hero__grid {
	display: grid;
	gap: 40px;
	align-items: center;
}

@media (min-width: 900px) {
	.hank-hero__grid {
		grid-template-columns: 1.1fr 1fr;
	}
}

.hank-hero__copy h1 {
	color: var(--hank-navy);
	font-size: clamp(1.9rem, 4vw, 2.8rem);
	line-height: 1.15;
	margin: 0 0 16px;
}

.hank-hero__lead {
	color: var(--hank-muted);
	font-size: 1.1rem;
	margin: 0 0 24px;
}

.hank-hero__actions {
	display: flex;
	gap: 14px;
	flex-wrap: wrap;
	margin-bottom: 26px;
}

.hank-hero__trust {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 10px;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.hank-hero__trust li {
	display: flex;
	align-items: center;
	gap: 8px;
	font-weight: 600;
	color: var(--hank-dark);
}

.hank-icon--check {
	color: var(--hank-green);
	flex: none;
}

.hank-hero__media img {
	border-radius: var(--hank-radius);
	box-shadow: var(--hank-shadow);
	width: 100%;
	object-fit: cover;
}

/* ---------- Sections ---------- */

.hank-section {
	padding-block: 64px;
}

.hank-section--light {
	background: var(--hank-light);
}

.hank-section--navy {
	background: var(--hank-navy);
	color: var(--hank-white);
}

.hank-section--navy .hank-section__title {
	color: var(--hank-white);
}

.hank-section__title {
	color: var(--hank-navy);
	font-size: clamp(1.5rem, 3vw, 2.1rem);
	margin: 0 0 12px;
}

.hank-section__intro {
	color: var(--hank-muted);
	max-width: 720px;
	margin: 0 0 32px;
}

/* ---------- Service cards ---------- */

.hank-cards {
	display: grid;
	gap: 24px;
	grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
}

.hank-card {
	background: var(--hank-white);
	border-radius: var(--hank-radius);
	overflow: hidden;
	box-shadow: var(--hank-shadow);
	display: flex;
	flex-direction: column;
}

.hank-card__media img {
	aspect-ratio: 3 / 2;
	object-fit: cover;
	width: 100%;
}

.hank-card__body {
	padding: 20px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	flex: 1;
}

.hank-card__body h3 {
	margin: 0;
	font-size: 1.2rem;
}

.hank-card__body h3 a {
	color: var(--hank-navy);
	text-decoration: none;
}

.hank-card__body h3 a:hover {
	color: var(--hank-blue);
	text-decoration: underline;
}

.hank-card__body p {
	color: var(--hank-muted);
	margin: 0;
	flex: 1;
	font-size: 0.97rem;
}

.hank-card__body .hank-btn {
	align-self: flex-start;
}

/* ---------- Reviews ---------- */

.hank-reviews__inner {
	text-align: center;
	display: grid;
	justify-items: center;
	gap: 18px;
}

.hank-reviews__badge {
	display: grid;
	justify-items: center;
	gap: 8px;
}

.hank-icon--star {
	color: #FBBF24;
}

.hank-reviews__text {
	font-size: 1.3rem;
	font-weight: 700;
	margin: 0;
}

/* ---------- Service area ---------- */

.hank-area__list {
	list-style: none;
	margin: 0 0 20px;
	padding: 0;
	display: grid;
	gap: 12px;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.hank-area__list li {
	display: flex;
	align-items: center;
	gap: 8px;
	font-weight: 600;
}

.hank-icon--pin {
	color: var(--hank-blue);
	flex: none;
}

.hank-area__note {
	color: var(--hank-muted);
	margin: 0 0 20px;
}

/* ---------- FAQ ---------- */

.hank-faq__container {
	max-width: 860px;
}

.hank-faq {
	display: grid;
	gap: 12px;
}

.hank-faq__item {
	background: var(--hank-light);
	border-radius: 10px;
	padding: 0;
	border: 1px solid #e2ecf4;
}

.hank-faq__item summary {
	cursor: pointer;
	font-weight: 700;
	color: var(--hank-navy);
	padding: 18px 20px;
	list-style-position: outside;
	min-height: 48px;
}

.hank-faq__item[open] summary {
	border-bottom: 1px solid #e2ecf4;
}

.hank-faq__item p {
	padding: 16px 20px;
	margin: 0;
	color: var(--hank-dark);
}

/* ---------- Pricing ---------- */

.hank-pricing__grid {
	display: grid;
	gap: 40px;
}

@media (min-width: 900px) {
	.hank-pricing__grid {
		grid-template-columns: 1.2fr 1fr;
	}
}

.hank-pricing__table {
	width: 100%;
	border-collapse: collapse;
	background: var(--hank-white);
	border-radius: var(--hank-radius);
	overflow: hidden;
	box-shadow: var(--hank-shadow);
}

.hank-pricing__table th,
.hank-pricing__table td {
	text-align: left;
	padding: 12px 16px;
	border-bottom: 1px solid #e2ecf4;
}

.hank-pricing__table thead th {
	background: var(--hank-navy);
	color: var(--hank-white);
}

.hank-pricing__table tbody tr:nth-child(even) {
	background: var(--hank-light);
}

.hank-pricing__estimate-list {
	list-style: none;
	margin: 0 0 24px;
	padding: 0;
	display: grid;
	gap: 10px;
}

.hank-pricing__estimate-list li {
	padding: 10px 14px;
	background: var(--hank-light);
	border-left: 4px solid var(--hank-water);
	border-radius: 6px;
}

.hank-pricing__disclaimer {
	margin-top: 32px;
	color: var(--hank-muted);
	font-size: 0.92rem;
	border-top: 1px solid #e2ecf4;
	padding-top: 20px;
}

/* ---------- Contact ---------- */

.hank-contact__grid {
	display: grid;
	gap: 40px;
	align-items: center;
}

@media (min-width: 900px) {
	.hank-contact__grid {
		grid-template-columns: 1.1fr 1fr;
	}
}

.hank-contact__list {
	list-style: none;
	margin: 0 0 16px;
	padding: 0;
	display: grid;
	gap: 10px;
}

.hank-contact__label {
	font-weight: 700;
	color: var(--hank-navy);
	margin-right: 6px;
}

.hank-contact__note {
	background: #fff7ed;
	border-left: 4px solid var(--hank-orange);
	padding: 12px 16px;
	border-radius: 6px;
	color: var(--hank-dark);
}

.hank-contact__actions {
	display: flex;
	gap: 14px;
	flex-wrap: wrap;
	margin-top: 18px;
}

.hank-contact__media img {
	border-radius: var(--hank-radius);
	box-shadow: var(--hank-shadow);
	width: 100%;
	object-fit: cover;
}

/* ---------- Final CTA ---------- */

.hank-final-cta {
	background: linear-gradient(140deg, var(--hank-navy) 0%, var(--hank-blue) 100%);
	color: var(--hank-white);
}

.hank-final-cta__inner {
	text-align: center;
	display: grid;
	justify-items: center;
	gap: 14px;
	max-width: 760px;
}

.hank-final-cta h2 {
	color: var(--hank-white);
	font-size: clamp(1.6rem, 3.4vw, 2.3rem);
	margin: 0;
}

.hank-final-cta p {
	margin: 0;
	color: #d7e7f2;
	font-size: 1.08rem;
}

/* ---------- Footer ---------- */

.hank-footer {
	background: var(--hank-navy);
	color: #c9d9e6;
}

.hank-footer a {
	color: var(--hank-white);
	text-decoration: none;
}

.hank-footer a:hover {
	color: var(--hank-water);
	text-decoration: underline;
}

.hank-footer__grid {
	display: grid;
	gap: 40px;
	padding-block: 56px 32px;
}

@media (min-width: 780px) {
	.hank-footer__grid {
		grid-template-columns: 1.4fr 1fr 1fr;
	}
}

.hank-footer__brand img {
	margin-bottom: 14px;
}

.hank-footer__phone a {
	font-size: 1.25rem;
	font-weight: 700;
}

.hank-footer__note,
.hank-footer__license {
	font-size: 0.88rem;
	color: #9db4c6;
}

.hank-footer__heading {
	color: var(--hank-white);
	font-size: 1rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	margin: 0 0 12px;
}

.hank-footer__col + .hank-footer__col .hank-footer__heading {
	margin-top: 0;
}

.hank-footer__col ul {
	list-style: none;
	margin: 0 0 22px;
	padding: 0;
	display: grid;
	gap: 8px;
}

.hank-footer__bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.14);
	padding-block: 18px;
	font-size: 0.88rem;
}

/* ---------- Mobile call bar ---------- */

.hank-mobile-call-bar {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: 60;
	display: none;
}

.hank-mobile-call-bar a {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	background: var(--hank-orange);
	color: var(--hank-white);
	font-weight: 700;
	font-size: 1.02rem;
	text-decoration: none;
	padding: 15px 16px;
	min-height: 52px;
}

.hank-mobile-call-bar a:hover,
.hank-mobile-call-bar a:focus {
	background: #d95f0a;
}

@media (max-width: 782px) {
	.hank-mobile-call-bar {
		display: block;
	}
}


/* ---------- Content niceties ---------- */

.hank-main .wp-block-post-content a {
	color: var(--hank-blue);
}

.hank-image-credits li {
	margin-bottom: 8px;
}

/* Breadcrumbs */
.hank-breadcrumbs {
	max-width: var(--wp--style--global--wide-size, 1200px);
	margin: 0 auto;
	padding: 14px clamp(16px, 4vw, 32px) 0;
	font-size: 0.88rem;
	color: var(--wp--preset--color--slate, #55636f);
}

.hank-breadcrumbs a {
	color: var(--wp--preset--color--navy, #082a45);
	text-decoration: none;
}

.hank-breadcrumbs a:hover,
.hank-breadcrumbs a:focus {
	text-decoration: underline;
}

.hank-breadcrumbs__sep {
	margin: 0 6px;
	color: var(--wp--preset--color--slate, #55636f);
}

.hank-breadcrumbs [aria-current="page"] {
	font-weight: 600;
}
