/* George's Plumbing & Heating: theme extras on top of theme.json */

html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; }
:where(a, button, input):focus-visible { outline: 3px solid var(--wp--preset--color--heat); outline-offset: 2px; }

/* ---------- Header ---------- */
.gph-topbar { font-size: 0.85rem; }
.gph-topbar a { color: inherit; }
.gph-topbar a:hover { color: var(--wp--preset--color--heat); }
.gph-header { position: sticky; top: 0; z-index: 50; box-shadow: 0 1px 0 var(--wp--preset--color--line), 0 6px 24px rgba(13, 27, 51, 0.06); }
.admin-bar .gph-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .gph-header { top: 0; } }
.gph-header .wp-block-site-logo img, .gph-header .gph-logo img { width: 200px; height: auto; display: block; }
.gph-header .wp-block-navigation-item__content { padding: 0.35rem 0; position: relative; }
.gph-header .wp-block-navigation .wp-block-navigation-item__content::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
	background: var(--wp--preset--color--heat); transform: scaleX(0); transition: transform .2s ease;
}
.gph-header .wp-block-navigation .wp-block-navigation-item__content:hover::after,
.gph-header .wp-block-navigation .current-menu-item > .wp-block-navigation-item__content::after { transform: scaleX(1); }
.gph-header .wp-block-navigation__responsive-container.is-menu-open { padding: 2rem; }
.gph-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { gap: 1.25rem; font-size: 1.25rem; }
@media (max-width: 600px) {
	.gph-header .wp-block-site-logo img, .gph-header .gph-logo img { width: 160px; }
	.gph-header .gph-call { display: none; }
	.gph-topbar .gph-hours { display: none; }
}

/* ---------- Eyebrow headings ---------- */
.is-style-gph-eyebrow {
	font-family: var(--wp--preset--font-family--body) !important;
	font-size: 0.8rem !important; font-weight: 700 !important; letter-spacing: 0.14em; text-transform: uppercase;
	color: var(--wp--preset--color--heat);
	display: flex; align-items: center; gap: .6rem;
}
.is-style-gph-eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; display: inline-block; }
.has-text-align-center.is-style-gph-eyebrow { justify-content: center; }

/* ---------- Cards ---------- */
.is-style-gph-card, .is-style-gph-accent-card {
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 8px;
	transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
	height: 100%;
}
.is-style-gph-accent-card { border-top: 4px solid var(--wp--preset--color--heat); }
.is-style-gph-card:hover, .is-style-gph-accent-card:hover {
	transform: translateY(-4px); box-shadow: 0 14px 34px rgba(13, 27, 51, 0.10); border-color: transparent;
}
.wp-block-columns > .wp-block-column > .is-style-gph-card,
.wp-block-columns > .wp-block-column > .is-style-gph-accent-card { height: 100%; }
.gph-icon { width: 52px; height: 52px; border-radius: 10px; display: grid; place-items: center;
	background: rgba(21, 73, 146, 0.08); color: var(--wp--preset--color--blue); }
.gph-icon svg { width: 28px; height: 28px; }
.gph-more a { font-weight: 700; font-size: .9rem; }
.gph-more a::after { content: " →"; transition: margin .2s; }
.gph-more a:hover::after { margin-left: 4px; }

/* ---------- Check lists ---------- */
.is-style-gph-checks { list-style: none; padding-left: 0 !important; }
.is-style-gph-checks li { position: relative; padding-left: 1.75rem; margin-bottom: .45rem; }
.is-style-gph-checks li::before {
	content: ""; position: absolute; left: 0; top: .5em; width: 1rem; height: 1rem; border-radius: 50%;
	background: var(--wp--preset--color--heat) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat;
}

/* ---------- Covers ---------- */
.is-style-gph-zoom { overflow: hidden; border-radius: 8px; }
.is-style-gph-zoom .wp-block-cover__image-background { transition: transform .6s ease; }
.is-style-gph-zoom:hover .wp-block-cover__image-background { transform: scale(1.06); }
.gph-hero h1 { text-wrap: balance; }
.gph-hero .wp-block-cover__inner-container { max-width: 1200px; }

/* ---------- Stats strip ---------- */
.gph-stat .gph-stat-num { font-family: var(--wp--preset--font-family--heading); font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 800; line-height: 1; color: var(--wp--preset--color--white); margin: 0; }
.gph-stat p { margin: 0; }

/* ---------- Posts ---------- */
.gph-post-card .wp-block-post-featured-image img { aspect-ratio: 16/10; object-fit: cover; border-radius: 8px 8px 0 0; }
.gph-post-card .wp-block-post-featured-image { margin: 0; overflow: hidden; }
.gph-post-card .wp-block-post-title a { color: var(--wp--preset--color--navy); }
.gph-post-card .wp-block-post-title a:hover { color: var(--wp--preset--color--heat); }
.wp-block-gallery.has-nested-images figure.wp-block-image img { border-radius: 6px; }

/* ---------- Team ---------- */
.gph-team .wp-block-group { text-align: center; }
.gph-avatar { width: 72px; height: 72px; margin: 0 auto .75rem; border-radius: 50%; display: grid; place-items: center;
	background: var(--wp--preset--color--blue); color: #fff; font-family: var(--wp--preset--font-family--heading); font-weight: 800; font-size: 1.5rem; }

/* ---------- Logos row ---------- */
.gph-logos img { max-height: 110px; width: auto; filter: grayscale(1); opacity: .8; transition: .2s; }
.gph-logos img:hover { filter: none; opacity: 1; }

/* ---------- Footer ---------- */
.gph-footer a { color: #c7d2e0; }
.gph-footer a:hover { color: var(--wp--preset--color--heat); }
.gph-footer ul { list-style: none; padding-left: 0; }
.gph-footer li { margin-bottom: .4rem; }
.gph-footer .gph-logo img { width: 210px; height: auto; }

/* ---------- Map ---------- */
.gph-map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; border-radius: 8px; display: block; }

/* ---------- Layout fixes ---------- */
.wp-block-post-content > .alignfull { margin-block-start: 0; margin-block-end: 0; }
.gph-hero > .wp-block-cover__inner-container { width: 100%; max-width: 1200px; margin-inline: auto; }

/* ---------- Responsive grids ---------- */
@media (max-width: 1000px) {
	.is-layout-grid.wp-block-group, .wp-block-post-template.is-layout-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (max-width: 640px) {
	.is-layout-grid.wp-block-group, .wp-block-post-template.is-layout-grid { grid-template-columns: minmax(0, 1fr) !important; }
	.gph-stats { flex-wrap: wrap !important; row-gap: 1.5rem; }
	.gph-stats > .wp-block-column { flex-basis: calc(50% - 1rem) !important; flex-grow: 0; }
	.gph-hero { min-height: 520px !important; }
}
.gph-hero.has-custom-content-position > .wp-block-cover__inner-container { width: 100% !important; }
.wp-site-blocks > * + * { margin-block-start: 0; }
.gph-hero > .wp-block-cover__inner-container > * { width: 100%; max-width: 1200px; margin-left: auto !important; margin-right: auto !important; }
.gph-map { background: var(--wp--preset--color--mist); border-radius: 8px; min-height: 380px; height: 100%; }
.gph-hero > .wp-block-cover__inner-container { margin-left: auto !important; margin-right: auto !important; }
@media (max-width: 640px) {
	.wp-block-columns.gph-stats.is-not-stacked-on-mobile { flex-wrap: wrap !important; }
	.wp-block-columns.gph-stats.is-not-stacked-on-mobile > .wp-block-column { flex: 0 0 calc(50% - 1rem) !important; }
}
@media (max-width: 640px) {
	.gph-topbar .gph-tagline { display: none; }
	.gph-topbar .wp-block-group { justify-content: center !important; }
	.gph-hero .wp-block-cover__background { background: rgba(13, 27, 51, 0.8) !important; opacity: 1 !important; }
}
