/*
Theme Name: Genesiss Pediatric
Theme URI: https://genesisshospital.com/
Description: Lightweight block theme for the pediatrics department of Genesiss Multi-Speciality Hospital, BTM Layout, Bangalore. No page builder, no jQuery, self-hosted fonts.
Version: 0.2.22
Requires at least: 6.6
Requires PHP: 8.1
Author: Genesiss Multi-Speciality Hospital
License: GPL-2.0-or-later
Text Domain: genesiss-pediatric
*/

/* ---------- Base ---------- */
:root {
	--gp-radius: 26px;
	--gp-radius-sm: 16px;
	--gp-shadow: var(--wp--preset--shadow--card);
	--gp-ink: var(--wp--preset--color--ink);
	--gp-teal: var(--wp--preset--color--teal);
	--gp-line: var(--wp--preset--color--line);
}
html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { height: auto; max-width: 100%; }
:where(h1, h2, h3, h4) { text-wrap: balance; }
p { text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--gp-ink); outline-offset: 3px; border-radius: 6px; }
.screen-reader-text:focus { background: #fff; clip: auto; height: auto; padding: 1rem; position: fixed; top: 1rem; left: 1rem; width: auto; z-index: 1000; }

/* Two-tone headings: wrap a word in <mark class="gp-accent"> */
mark.gp-accent, .gp-accent { background: none; color: var(--gp-teal); }

/* Pill label above headings (rendered as <p>, never a heading) */
.gp-eyebrow {
	display: inline-block;
	margin: 0 0 1rem !important;
	padding: 0.42rem 1rem;
	border: 1px solid #d9cbb5;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.6);
	color: var(--gp-ink);
	font-size: 0.6875rem !important;
	font-weight: 800;
	letter-spacing: 0.14em;
	line-height: 1.2;
	text-transform: uppercase;
}
.has-text-align-center > .gp-eyebrow, .gp-center .gp-eyebrow { margin-inline: auto !important; }

.gp-section { position: relative; padding-block: var(--wp--preset--spacing--60); }
.gp-section--tight { padding-block: var(--wp--preset--spacing--50); }
.gp-intro { max-width: 720px; margin-inline: auto !important; }

/* Buttons */
.wp-block-button.is-style-outline > .wp-block-button__link {
	background: #fff; border: 1.5px solid var(--gp-ink); color: var(--gp-ink);
}
.wp-block-button.is-style-outline > .wp-block-button__link:hover { background: var(--gp-ink); color: #fff; }
.wp-block-button.is-style-sun > .wp-block-button__link { background: var(--wp--preset--color--sun); color: var(--gp-ink); }
.wp-block-button.is-style-sun > .wp-block-button__link:hover { background: #f5c718; }
.wp-block-button__link { transition: background-color 0.2s, color 0.2s, transform 0.2s; }
.wp-block-button__link:hover { transform: translateY(-1px); }
.gp-link-arrow a, a.gp-link-arrow {
	color: var(--gp-ink); font-size: 0.75rem; font-weight: 800; letter-spacing: 0.1em; text-decoration: none;
	text-transform: uppercase; border-bottom: 1.5px solid currentColor; padding-bottom: 2px;
}
.gp-link-arrow a::after, a.gp-link-arrow::after { content: " \2197"; }

/* ---------- Top bar + header ---------- */
.gp-topbar { background: var(--wp--preset--color--sun-soft); color: var(--gp-ink); font-size: 0.8125rem; }
.gp-topbar p { margin: 0; }
.gp-topbar a { color: inherit; text-decoration: none; }
.gp-topbar .gp-ico { display: inline-block; width: 15px; height: 15px; margin-right: 0.35rem; vertical-align: -3px; }

.gp-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 248, 236, 0.94); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; }
.admin-bar .gp-header { top: var(--wp-admin--admin-bar--height, 32px); }
.gp-header .wp-block-site-logo img { width: 168px; }
.gp-brand-sub { margin: 0 !important; font-family: var(--wp--preset--font-family--heading); font-size: 0.9rem; font-weight: 600; color: var(--gp-teal); line-height: 1; letter-spacing: 0.02em; }
.gp-header .wp-block-navigation a { color: var(--gp-ink); text-decoration: none; }
.gp-header .wp-block-navigation a:hover, .gp-header .wp-block-navigation .current-menu-item > a { color: var(--gp-teal); }
.gp-header .wp-block-navigation__submenu-container { border: 0 !important; border-radius: var(--gp-radius-sm); box-shadow: var(--gp-shadow); padding: 0.5rem !important; min-width: 240px !important; }
.gp-header .wp-block-navigation__submenu-container a { padding: 0.45rem 0.8rem !important; border-radius: 10px; }
.gp-header .wp-block-navigation__submenu-container a:hover { background: var(--wp--preset--color--teal-soft); }
/* Brand: Genesiss logo (+ Cloudnine logo on mobile) */
/* Genesis + Cloudnine side by side on every screen size (desktop here, mobile below) */
.gp-brand { display: flex; align-items: center; gap: 0.85rem; }
.gp-brand .gp-logo img { width: 168px; height: auto; display: block; }
.gp-brand-c9 { display: block; }
.gp-brand-c9 img { width: 150px; height: auto; display: block; }
.gp-brand-mascot { display: block; width: auto; height: 62px; flex: none; }
/* Narrow laptops / tablets: shrink a little so the menu still fits */
@media (min-width: 1024px) and (max-width: 1180px) {
	.gp-brand { gap: 0.6rem; }
	.gp-brand .gp-logo img { width: 140px; }
	.gp-brand-c9 img { width: 118px; }
	.gp-brand-mascot { height: 52px; }
	.gp-header .wp-block-navigation { gap: 1.1rem !important; }
}

@media (max-width: 1023px) {
	.gp-topbar .gp-hide-sm { display: none; }
	.gp-header .gp-header-cta { display: none; }
	/* Mobile: fixed compact header — Genesiss + Cloudnine side by side, menu button on the right */
	.gp-topbar { display: none; }
	.gp-header { position: fixed; left: 0; right: 0; top: 0; background: rgba(255, 255, 255, 0.97); box-shadow: 0 4px 16px -8px rgba(14, 59, 74, 0.25); }
	.admin-bar .gp-header { top: var(--wp-admin--admin-bar--height, 46px); }
	.gp-header > .wp-block-group { padding-top: 0.55rem !important; padding-bottom: 0.55rem !important; }
	.gp-header .gp-brand-sub { display: none; }
	/* No menu button on mobile: navigation is the bottom bar. The brand group takes the whole bar. */
	.gp-header > .wp-block-group > .wp-block-group:last-child { display: none; }
	.gp-header > .wp-block-group > .wp-block-group:first-child { flex: 1 1 auto; width: 100%; }
	.gp-brand { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; column-gap: 0.9rem; width: 100%; }
	.gp-brand .gp-logo { justify-self: end; }
	/* Vector (SVG) logo: sharp at any size */
	.gp-brand .gp-logo img { width: 100%; max-width: 150px; height: auto; }
	.gp-brand-mascot { height: 50px; }
	.gp-brand-c9 { display: block; justify-self: start; }
	.gp-brand-c9 img { width: 100%; max-width: 142px; height: auto; }
	body { padding-top: 74px; }
}
@media (max-width: 360px) {
	.gp-brand { column-gap: 0.6rem; }
	.gp-brand-mascot { height: 42px; }
}

/* ---------- Soft blobs (decorative, CSS only) ---------- */
.gp-blob { position: relative; isolation: isolate; }
.gp-blob::before {
	content: ""; position: absolute; z-index: -1; inset: -4% 8% 0;
	background:
		radial-gradient(40% 45% at 30% 35%, rgba(255, 216, 77, 0.55), transparent 70%),
		radial-gradient(45% 50% at 70% 70%, rgba(15, 126, 140, 0.22), transparent 70%),
		radial-gradient(35% 40% at 75% 25%, rgba(255, 140, 105, 0.22), transparent 70%);
	filter: blur(10px);
	border-radius: 48% 52% 60% 40% / 50% 45% 55% 50%;
	pointer-events: none;
}

/* ---------- Hero ---------- */
.gp-hero { padding-block: clamp(3rem, 7vw, 6rem) clamp(2rem, 5vw, 4rem); text-align: center; }
.gp-hero h1 { max-width: 900px; margin-inline: auto; }
.gp-hero .gp-hero-sub { max-width: 620px; margin-inline: auto; font-size: var(--wp--preset--font-size--lg); }
.gp-badge {
	display: inline-flex; align-items: center; gap: 1rem; margin-top: 2rem;
	padding: 0.75rem 1.25rem 0.75rem 1.5rem; border-radius: 999px; background: #fff; box-shadow: var(--gp-shadow);
}
.gp-badge strong { display: block; font-family: var(--wp--preset--font-family--heading); font-size: 2.25rem; font-weight: 600; color: var(--gp-teal); line-height: 1; }
.gp-badge span { display: block; font-size: 0.8125rem; color: var(--gp-ink); }
.gp-badge .gp-dots { display: flex; }
.gp-badge .gp-dots i, .gp-badge .gp-dots img { width: 44px; height: 44px; border-radius: 50%; border: 3px solid #fff; margin-left: -12px; display: grid; place-items: center; font-style: normal; font-size: 1.05rem; object-fit: cover; box-shadow: 0 2px 6px rgba(14, 59, 74, 0.15); }
.gp-badge .gp-dots i:nth-child(1) { background: var(--wp--preset--color--sun); }
.gp-badge .gp-dots i:nth-child(2) { background: var(--wp--preset--color--teal-soft); }
.gp-badge .gp-dots i:nth-child(3) { background: #ffd9cc; }

/* ---------- Hero carousel (6 slides, scroll-snap + small script) ---------- */
.gp-carousel { position: relative; margin-top: 0 !important; margin-bottom: 0 !important; max-width: none !important; background: var(--wp--preset--color--teal-soft); }
.gp-carousel-track { display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; overscroll-behavior-x: contain; }
.gp-carousel-track::-webkit-scrollbar { display: none; }
.gp-slide { --tint: 15, 126, 140; position: relative; flex: 0 0 100%; scroll-snap-align: start; scroll-snap-stop: always; height: clamp(520px, 44vw, 660px); overflow: hidden; display: flex; align-items: center; }
.gp-slide picture, .gp-slide picture img { position: absolute; inset: 0; width: 100%; height: 100%; }
.gp-slide picture img { object-fit: cover; object-position: 70% center; }
.gp-slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(var(--tint), 0.55) 0%, rgba(var(--tint), 0.25) 38%, rgba(var(--tint), 0) 62%); pointer-events: none; }
.gp-slide-card {
	position: relative; z-index: 2; box-sizing: border-box; width: min(560px, calc(100% - 2rem)); margin-left: max(1.5rem, calc((100vw - 1240px) / 2));
	padding: clamp(1.4rem, 3vw, 2.4rem); border-radius: 26px; background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(6px);
	box-shadow: 0 24px 60px -24px rgba(14, 59, 74, 0.45); border-top: 5px solid rgb(var(--tint));
}
.gp-slide-card > * { margin: 0; }
.gp-slide-eyebrow { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.35rem 0.85rem; border-radius: 999px; background: rgba(var(--tint), 0.12); color: var(--gp-ink); font-size: 0.6875rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.gp-inline-c9 { height: 16px; width: auto; vertical-align: middle; }
.gp-slide-title { margin-top: 0.9rem !important; font-size: clamp(1.7rem, 3.2vw, 2.9rem); line-height: 1.12; color: var(--gp-ink); }
.gp-slide-title .gp-accent { color: rgb(var(--tint)); }
.gp-slide-text { margin-top: 0.85rem !important; font-size: clamp(0.975rem, 1.25vw, 1.125rem); color: var(--gp-text); }
.gp-slide-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.4rem !important; }
.gp-slide-actions .wp-block-button__link { display: inline-block; padding: 0.85rem 1.5rem; line-height: 1.2; }
.gp-btn-sun { background: var(--wp--preset--color--sun) !important; color: var(--gp-ink) !important; }
.gp-btn-sun:hover { background: #f5c718 !important; }
.gp-btn-outline { background: #fff !important; color: var(--gp-ink) !important; box-shadow: inset 0 0 0 1.5px var(--gp-ink); }
.gp-btn-outline:hover { background: var(--gp-ink) !important; color: #fff !important; }
/* Slide themes */
.gp-theme-teal { --tint: 15, 126, 140; }
.gp-theme-pink { --tint: 196, 54, 133; }
.gp-theme-sun { --tint: 214, 150, 0; }
.gp-theme-mint { --tint: 22, 150, 110; }
.gp-theme-sky { --tint: 41, 121, 214; }
.gp-theme-coral { --tint: 226, 92, 58; }
/* Controls */
.gp-carousel-btn { position: absolute; top: 50%; z-index: 3; transform: translateY(-50%); width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.92); color: var(--gp-ink); cursor: pointer; display: grid; place-items: center; box-shadow: 0 6px 18px rgba(14, 59, 74, 0.2); }
.gp-carousel-btn svg { width: 22px; height: 22px; }
.gp-carousel-btn:hover { background: #fff; color: var(--gp-teal); }
.gp-carousel-prev { left: 1rem; }
.gp-carousel-next { right: 1rem; }
.gp-carousel-nav { position: absolute; z-index: 3; left: 50%; bottom: 1rem; transform: translateX(-50%); display: flex; align-items: center; gap: 0.6rem; padding: 0.4rem 0.7rem; border-radius: 999px; background: rgba(255, 255, 255, 0.85); }
.gp-carousel-dots { display: flex; gap: 0.4rem; }
.gp-carousel-dots button { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 999px; background: rgba(14, 59, 74, 0.3); cursor: pointer; transition: width 0.3s, background 0.3s; }
.gp-carousel-dots button[aria-selected="true"] { width: 26px; background: var(--gp-teal); }
.gp-carousel-pause { width: 26px; height: 26px; border: 0; border-radius: 50%; background: transparent; color: var(--gp-ink); font-size: 0.6rem; cursor: pointer; line-height: 1; }
.gp-carousel-pause:hover { background: rgba(14, 59, 74, 0.08); }
.gp-hero--after-carousel { padding-top: clamp(1.75rem, 4vw, 3rem) !important; }
.gp-hero--after-carousel .gp-badge { margin-top: 0; }
@media (max-width: 781px) {
	.gp-slide { height: min(600px, 150vw); align-items: flex-end; }
	.gp-slide picture img { object-position: center top; }
	.gp-slide::after { background: linear-gradient(0deg, rgba(var(--tint), 0.6) 0%, rgba(var(--tint), 0.2) 45%, rgba(var(--tint), 0) 70%); }
	/* Compact card on phones so the photo stays visible */
	.gp-slide-card { margin: 0 0.85rem 3.4rem; width: calc(100% - 1.7rem); padding: 0.95rem 1rem 1rem; border-radius: 20px; border-top-width: 4px; }
	.gp-slide-eyebrow { font-size: 0.625rem; padding: 0.28rem 0.7rem; }
	.gp-slide-title { margin-top: 0.6rem !important; font-size: clamp(1.25rem, 5.6vw, 1.6rem); }
	.gp-slide-text { display: none; }
	.gp-slide-actions { flex-wrap: nowrap; gap: 0.5rem; margin-top: 0.85rem !important; }
	.gp-slide-actions .wp-block-button__link { flex: 1 1 0; text-align: center; padding: 0.7rem 0.6rem; font-size: 0.6875rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
	.gp-carousel-btn { display: none; }
	.gp-carousel-nav { bottom: 0.9rem; }
}
@media (prefers-reduced-motion: reduce) { .gp-carousel-track { scroll-behavior: auto; } }

/* Cloudnine collaboration */
.gp-partner-strip { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 0.6rem; margin: 1.25rem 0 0 !important; font-size: 0.875rem; font-weight: 700; color: var(--gp-ink); }
.gp-partner-strip a { display: inline-flex; padding: 0.45rem 0.9rem; background: #fff; border-radius: 999px; box-shadow: var(--gp-shadow); }
.gp-partner-strip img { height: 26px; width: auto; display: block; }
.gp-partner { background: #fff; border: 1px solid var(--gp-line); border-radius: var(--gp-radius); box-shadow: var(--gp-shadow); padding: clamp(1.5rem, 5vw, 3.5rem); margin-block: var(--wp--preset--spacing--50) !important; }
.gp-partner-logos { display: flex; align-items: center; justify-content: center; gap: 1.25rem; flex-wrap: wrap; padding: clamp(1.25rem, 3vw, 2rem); border-radius: var(--gp-radius); background: var(--wp--preset--color--teal-soft); }
.gp-partner-logos img { height: 54px; width: auto; }
.gp-partner-logos span { font-family: var(--wp--preset--font-family--heading); font-size: 2rem; color: var(--gp-teal); line-height: 1; }
.gp-partner-badge { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.35rem 0.8rem; border-radius: 999px; background: var(--wp--preset--color--teal-soft); color: var(--gp-ink); font-size: 0.8125rem; font-weight: 700; }
.gp-partner-badge img { height: 18px; width: auto; }
.gp-footer-partner { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; margin-top: 1.25rem !important; font-size: 0.8125rem; }
.gp-footer-partner img { height: 26px; width: auto; }

/* Collage of three rounded tiles with tags */
.gp-collage { display: grid; grid-template-columns: 1fr 1.25fr 1.5fr; gap: clamp(0.75rem, 2vw, 1.5rem); align-items: end; margin-top: clamp(2rem, 5vw, 4rem); }
.gp-tile { position: relative; margin: 0 !important; border-radius: var(--gp-radius); overflow: hidden; box-shadow: var(--gp-shadow); }
.gp-tile img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gp-tile:nth-child(1) img { aspect-ratio: 3 / 4; }
.gp-tile:nth-child(2) { transform: translateY(-2.5rem); }
.gp-tile figcaption {
	position: absolute; right: 0.9rem; bottom: 0.9rem; margin: 0; padding: 0.35rem 0.85rem; border-radius: 999px;
	background: var(--wp--preset--color--sun-soft); color: var(--gp-ink); font-size: 0.6875rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
}
@media (max-width: 640px) {
	.gp-collage { grid-template-columns: 1fr 1fr; }
	.gp-tile:nth-child(3) { grid-column: 1 / -1; }
	.gp-tile:nth-child(2) { transform: none; }
}

/* Large intro statement */
.gp-statement { max-width: 900px; margin-inline: auto !important; font-family: var(--wp--preset--font-family--heading); font-size: clamp(1.375rem, 2.6vw, 2.125rem); font-weight: 500; line-height: 1.35; color: var(--gp-ink); }

/* ---------- Cards ---------- */
.gp-card { background: #fff; border: 1px solid var(--gp-line); border-radius: var(--gp-radius); box-shadow: var(--gp-shadow); padding: clamp(1.5rem, 3vw, 2.25rem); height: 100%; }
.gp-stat { text-align: center; }
.gp-stat .gp-num { white-space: nowrap; margin: 0 !important; font-family: var(--wp--preset--font-family--heading); font-size: clamp(2.25rem, 4vw, 3rem); font-weight: 600; color: var(--gp-ink); line-height: 1.05; }
.gp-stat .gp-stat-title { margin: 0.25rem 0 0.75rem !important; font-family: var(--wp--preset--font-family--heading); font-size: 1.125rem; color: var(--gp-ink); }
.gp-stat .gp-stat-text { margin: 0 !important; font-size: 0.875rem; }

.gp-photo-pair { position: relative; min-height: 420px; }
.gp-photo-pair figure { position: absolute; margin: 0; border-radius: var(--gp-radius); overflow: hidden; box-shadow: var(--gp-shadow); }
.gp-photo-pair figure img { display: block; width: 100%; height: 100%; object-fit: cover; }
.gp-photo-pair figure:nth-child(1) { left: 0; bottom: 0; width: 52%; height: 80%; z-index: 2; }
.gp-photo-pair figure:nth-child(2) { right: 0; top: 0; width: 58%; height: 72%; }
@media (max-width: 781px) { .gp-photo-pair { min-height: 340px; } }

.gp-checklist { list-style: none; padding: 0 !important; margin: 0; }
.gp-checklist li { position: relative; padding: 0.45rem 0 0.45rem 2.1rem; }
.gp-checklist li::before {
	content: ""; position: absolute; left: 0; top: 0.62rem; width: 1.35rem; height: 1.35rem; border-radius: 50%;
	background: var(--wp--preset--color--teal-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230F7E8C' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 62% no-repeat;
}

/* Sunny panel over a photo band ("Caring for every child") */
.gp-sunband { position: relative; border-radius: var(--gp-radius); overflow: hidden; padding: clamp(1.25rem, 4vw, 3.5rem); }
.gp-sunband > .wp-block-cover__background { border-radius: var(--gp-radius); }
.gp-sunband .wp-block-cover__inner-container { color: var(--wp--preset--color--text); }
.gp-sunpanel h2 { color: var(--gp-ink); }
.gp-sunpanel .gp-accent { color: var(--gp-teal); }
.gp-sunpanel { background: var(--wp--preset--color--sun-soft); border-radius: var(--gp-radius); padding: clamp(1.5rem, 4vw, 3rem); max-width: 860px; margin-inline: auto; box-shadow: var(--gp-shadow); }
.gp-sunpanel .gp-ages { display: flex; flex-wrap: wrap; gap: 0.6rem; padding: 0; margin: 1.25rem 0 0; list-style: none; }
.gp-sunpanel .gp-ages li { background: #fff; border-radius: 999px; padding: 0.4rem 1rem; font-size: 0.875rem; font-weight: 700; color: var(--gp-ink); }

/* Service cards */
/* Service cards: dashed outline, large line icon, photo fades in on hover (reference-style) */
.gp-services { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: clamp(1rem, 2vw, 1.75rem); }
.gp-service {
	position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column;
	min-height: clamp(260px, 26vw, 330px); padding: clamp(1.5rem, 2.4vw, 2.25rem); border-radius: var(--gp-radius);
	background: #fff; border: 1px dashed #b9c3cf; color: var(--gp-text); text-decoration: none;
	transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
}
.gp-service-body { position: relative; z-index: 2; display: flex; flex-direction: column; flex: 1; }
.gp-service .gp-service-ico { width: clamp(52px, 5vw, 66px); height: clamp(52px, 5vw, 66px); margin-bottom: auto; color: var(--gp-teal); transition: color 0.3s; }
.gp-service h3 { margin: 2rem 0 0.5rem; font-size: clamp(1.25rem, 1.8vw, 1.6rem); font-weight: 500; transition: color 0.3s; }
.gp-service p { margin: 0; font-size: clamp(0.9375rem, 1.1vw, 1.0625rem); line-height: 1.55; transition: color 0.3s; }
.gp-service-photo { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity 0.45s ease, transform 0.6s ease; }
.gp-service-shade { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(14, 59, 74, 0.35) 0%, rgba(14, 59, 74, 0.55) 45%, rgba(10, 30, 40, 0.82) 100%); opacity: 0; transition: opacity 0.45s ease; }
.gp-service::after { content: "\2197"; position: absolute; z-index: 2; top: 1.4rem; right: 1.6rem; font-size: 1.1rem; color: #fff; opacity: 0; transform: translate(-4px, 4px); transition: opacity 0.3s, transform 0.3s; }

/* Hover / keyboard focus */
.gp-service:hover, .gp-service:focus-visible { transform: translateY(-4px); border-color: transparent; box-shadow: 0 22px 44px -18px rgba(14, 59, 74, 0.45); }
.gp-service:hover::after, .gp-service:focus-visible::after { opacity: 1; transform: none; }
.gp-service:hover .gp-service-photo, .gp-service:focus-visible .gp-service-photo { opacity: 1; transform: scale(1); }
.gp-service:hover .gp-service-shade, .gp-service:focus-visible .gp-service-shade { opacity: 1; }
.gp-service:is(:hover, :focus-visible) :is(h3, p, .gp-service-ico) { color: #fff; }
/* No photo yet: fill with teal instead */
.gp-service:not(.has-photo):is(:hover, :focus-visible) { background: var(--gp-teal); }

/* Featured card: shows its photo (or teal) all the time, like the reference's highlighted card */
.gp-service.is-feature { border-color: transparent; background: var(--gp-teal); }
.gp-service.is-feature .gp-service-photo { opacity: 1; transform: scale(1); }
.gp-service.is-feature .gp-service-shade { opacity: 1; }
.gp-service.is-feature :is(h3, p) { color: #fff; }
.gp-service.is-feature .gp-service-ico { color: #fff; }
.gp-service.is-feature::after { opacity: 1; transform: none; }

/* Plain (non-link) cards, e.g. "How we care" on About: no hover photo, keep a gentle lift */
div.gp-service:hover { background: #fff; }
div.gp-service:hover :is(h3, p) { color: inherit; }
div.gp-service:hover h3 { color: var(--gp-ink); }
div.gp-service:hover .gp-service-ico { color: var(--gp-teal); }
div.gp-service::after { display: none; }

@media (max-width: 640px) {
	.gp-service { min-height: 200px; }
	.gp-service h3 { margin-top: 1.25rem; }
}
@media (hover: none) {
	/* Touch screens: no hover state, so give a small press feedback instead */
	.gp-service:active { transform: scale(0.99); }
}

/* Booking panel */
.gp-booking { background: var(--wp--preset--color--sun-soft); border-radius: var(--gp-radius); overflow: hidden; }
.gp-booking-inner { padding: clamp(1.5rem, 5vw, 4rem); }
.gp-booking-photo img { display: block; width: 100%; height: 100%; min-height: 280px; object-fit: cover; }

/* Forms (appointment plugin + generic) */
.gp-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.1rem; }
.gp-form .gp-field { display: flex; flex-direction: column; gap: 0.35rem; }
.gp-form .gp-field--full { grid-column: 1 / -1; }
.gp-form label { font-size: 0.6875rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gp-ink); }
.gp-form input, .gp-form select, .gp-form textarea {
	width: 100%; box-sizing: border-box; padding: 0.85rem 1.2rem; border: 1px solid transparent; border-radius: 999px; background: #fff;
	color: var(--gp-ink); font: inherit; font-size: 0.9375rem; appearance: none;
}
.gp-form select { background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230E3B4A' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 1rem center / 16px no-repeat; padding-right: 2.5rem; }
.gp-form textarea { border-radius: 20px; min-height: 110px; resize: vertical; }
.gp-form input:focus, .gp-form select:focus, .gp-form textarea:focus { outline: none; border-color: var(--gp-teal); box-shadow: 0 0 0 3px rgba(15, 126, 140, 0.18); }
.gp-form .gp-consent { grid-column: 1 / -1; display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.875rem; text-transform: none; letter-spacing: 0; font-weight: 500; }
.gp-form .gp-consent input { width: 18px; height: 18px; margin-top: 3px; border-radius: 4px; appearance: auto; flex: none; }
.gp-form .gp-hp { position: absolute !important; left: -9999px !important; }
.gp-form button {
	justify-self: start; border: 0; cursor: pointer; padding: 0.95rem 1.9rem; border-radius: 999px; background: var(--gp-teal); color: #fff;
	font: 800 0.75rem/1.2 var(--wp--preset--font-family--body); letter-spacing: 0.08em; text-transform: uppercase;
}
.gp-form button:hover { background: var(--wp--preset--color--teal-dark); }
.gp-form-note { grid-column: 1 / -1; margin: 0; font-size: 0.8125rem; }
.gp-notice { padding: 1rem 1.25rem; border-radius: var(--gp-radius-sm); background: #fff; border-left: 4px solid var(--gp-teal); color: var(--gp-ink); }
.gp-notice.is-error { border-left-color: var(--wp--preset--color--coral); }
.gp-notice p { margin: 0; } .gp-notice p + p { margin-top: 0.4rem; }
.gp-notice:focus { outline: 2px solid var(--gp-teal); outline-offset: 3px; }
.gp-notice .gp-ref { font-family: ui-monospace, Consolas, monospace; letter-spacing: 0.04em; font-size: 1.05em; background: var(--wp--preset--color--teal-soft); padding: 0.1em 0.45em; border-radius: 6px; }
.gp-form .gp-field-error { margin: 0; font-size: 0.8125rem; font-weight: 600; color: #b42318; }
.gp-form .has-error :is(input, select, textarea) { border-color: #b42318; box-shadow: 0 0 0 1px #b42318; }
.gp-form button[disabled] { opacity: 0.7; cursor: progress; }
@media (max-width: 640px) { .gp-form { grid-template-columns: 1fr; } }

/* Doctor cards */
.gp-doctor { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(1rem, 3vw, 2.5rem); align-items: center; }
.gp-doctor-photo { margin: 0 !important; aspect-ratio: 1; border-radius: 58% 42% 50% 50% / 50% 55% 45% 50%; overflow: hidden; background: var(--wp--preset--color--teal-soft); }
.gp-doctor-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gp-doctor h3 { margin: 0 0 0.25rem; font-size: 1.5rem; }
.gp-doctor .gp-role { margin: 0 0 0.5rem; font-size: 0.9rem; }
.gp-doctor .gp-meta { margin: 0 0 1.25rem; font-size: 0.875rem; color: var(--gp-ink); }
@media (max-width: 640px) { .gp-doctor { grid-template-columns: 1fr; text-align: center; } .gp-doctor-photo { max-width: 260px; margin-inline: auto !important; } }

/* Doctor team grid (home + Doctors page) */
.gp-doctors { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); gap: clamp(1.25rem, 2.5vw, 2rem); margin-top: 2rem; }
.gp-doc { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; padding: clamp(1.5rem, 3vw, 2.25rem) clamp(1.25rem, 2.5vw, 2rem); background: #fff; border: 1px dashed #b9c3cf; border-radius: var(--gp-radius); transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s; }
.gp-doc:hover { transform: translateY(-4px); border-color: transparent; box-shadow: 0 22px 44px -18px rgba(14, 59, 74, 0.35); }
.gp-doc-photo { display: block; width: min(100%, 230px); aspect-ratio: 1; border-radius: 58% 42% 50% 50% / 50% 55% 45% 50%; overflow: hidden; background: var(--wp--preset--color--teal-soft); }
.gp-doc-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; transition: transform 0.5s; }
.gp-doc:hover .gp-doc-photo img { transform: scale(1.04); }
.gp-doc-tag { margin: 1.25rem 0 0.4rem !important; padding: 0.3rem 0.8rem; border-radius: 999px; background: var(--wp--preset--color--sun-soft); color: var(--gp-ink); font-size: 0.6875rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.gp-doc :is(h2, h3) { margin: 0.35rem 0 0.2rem; font-size: 1.4rem; }
.gp-doc :is(h2, h3) a { color: var(--gp-ink); text-decoration: none; }
.gp-doc :is(h2, h3) a:hover { color: var(--gp-teal); }
.gp-doc .gp-role { margin: 0; font-weight: 700; color: var(--gp-teal); font-size: 0.9375rem; }
.gp-doc .gp-quals { margin: 0.35rem 0 0; font-size: 0.875rem; }
.gp-doc .gp-meta { margin: 0.6rem 0 0; font-size: 0.8125rem; color: var(--gp-ink); }
.gp-doc-hours { margin: 0.6rem 0 0 !important; padding: 0.3rem 0.8rem; border-radius: 999px; background: var(--wp--preset--color--sun-soft); color: var(--gp-ink); font-size: 0.8125rem; font-weight: 700; }
.gp-doc-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0.75rem 1.25rem; margin: auto 0 0 !important; padding-top: 1.4rem; }
.gp-doc-actions .wp-block-button__link { display: inline-block; padding: 0.75rem 1.4rem; line-height: 1.2; }
/* Core gives .wp-block-button__link height:100%; buttons placed inside text/flex rows must size to their content */
:is(p, div:not(.wp-block-button)) > a.wp-block-button__link { height: auto; }

/* Doctor popup (native <dialog>) */
.gp-popup { width: min(92vw, 640px); max-height: 90vh; padding: 0; border: 0; border-radius: 28px; background: #fff; box-shadow: 0 30px 80px -20px rgba(14, 59, 74, 0.5); overflow: hidden; }
.gp-popup[open] { display: grid; grid-template-columns: 2fr 3fr; animation: gp-pop 0.35s ease; }
.gp-popup::backdrop { background: rgba(10, 30, 40, 0.6); backdrop-filter: blur(2px); }
.gp-popup-close { position: absolute; top: 0.75rem; right: 0.75rem; z-index: 2; width: 34px; height: 34px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.92); color: var(--gp-ink); font-size: 0.95rem; cursor: pointer; box-shadow: 0 2px 8px rgba(14, 59, 74, 0.2); }
.gp-popup-close:hover { background: #fff; color: var(--gp-teal); }
.gp-popup-photo { background: linear-gradient(160deg, var(--wp--preset--color--teal-soft), #fff); min-height: 100%; }
.gp-popup-photo img { width: 100%; height: 100%; min-height: 300px; object-fit: cover; object-position: top; display: block; }
.gp-popup-body { display: flex; flex-direction: column; justify-content: center; padding: clamp(1.5rem, 4vw, 2.5rem); }
.gp-popup-body p { margin: 0; }
.gp-popup-badge { display: inline-flex; align-items: center; gap: 0.5rem; align-self: flex-start; padding: 0.35rem 0.85rem; border-radius: 999px; background: var(--wp--preset--color--teal-soft); color: var(--gp-ink); font-size: 0.75rem; font-weight: 700; }
.gp-popup-badge img { height: 18px; width: auto; }
.gp-popup-name { margin-top: 1.1rem !important; font-family: var(--wp--preset--font-family--heading); font-size: clamp(1.4rem, 3vw, 1.75rem); font-weight: 600; color: var(--gp-ink); line-height: 1.15; }
.gp-popup-role { margin-top: 0.35rem !important; font-weight: 700; color: var(--gp-teal); }
.gp-popup-quals { margin-top: 0.2rem !important; font-size: 0.9rem; }
.gp-popup-note { margin-top: 0.75rem !important; font-size: 0.875rem; color: var(--gp-ink); }
.gp-popup-actions { margin-top: 1.4rem !important; }
.gp-popup-actions .wp-block-button__link { display: block; width: 100%; text-align: center; height: auto; padding: 1rem 1.5rem; font-size: 0.8125rem; }
.gp-popup-link { margin-top: 0.75rem !important; text-align: center; font-size: 0.875rem; }
.gp-popup-link a { color: var(--gp-ink); }
@keyframes gp-pop { from { opacity: 0; transform: translateY(12px) scale(0.98); } to { opacity: 1; transform: none; } }
@media (max-width: 560px) {
	.gp-popup[open] { grid-template-columns: 1fr; width: min(92vw, 380px); overflow-y: auto; }
	.gp-popup-photo img { min-height: 0; aspect-ratio: 4 / 3; height: auto; }
	.gp-popup-body { text-align: center; }
	.gp-popup-badge { align-self: center; }
}

/* Testimonials: scroll-snap row (no slider script) */
.gp-reviews { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(min(85%, 360px), 1fr); gap: 1.25rem; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0.5rem 0.25rem 1.25rem; scrollbar-width: thin; }
.gp-review { scroll-snap-align: start; }
.gp-stars { color: var(--wp--preset--color--coral); letter-spacing: 0.15em; font-size: 1.1rem; margin: 0 0 0.75rem !important; }
.gp-review blockquote { margin: 0; font-size: 0.95rem; }
.gp-review cite { display: block; margin-top: 1.25rem; font-style: normal; font-weight: 800; color: var(--gp-ink); }
.gp-review cite small { display: block; font-weight: 500; color: var(--gp-text); }

/* Emergency band */
.gp-band { background: var(--gp-ink); color: #d9eef0; border-radius: var(--gp-radius); padding: clamp(1.75rem, 5vw, 3.5rem); overflow: hidden; position: relative; }
.gp-band h2, .gp-band .gp-eyebrow { color: #fff; }
.gp-band .gp-eyebrow { border-color: rgba(255, 255, 255, 0.35); background: transparent; }
.gp-band::after { content: ""; position: absolute; right: -60px; bottom: -80px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 216, 77, 0.35), transparent 70%); }

/* FAQ (core/details) */
.gp-faq { display: grid; gap: 0.85rem; }
.gp-faq .wp-block-details { background: #fff; border: 1px solid var(--gp-line); border-radius: 18px; padding: 1.1rem 1.4rem; box-shadow: var(--gp-shadow); }
.gp-faq .wp-block-details summary { cursor: pointer; list-style: none; position: relative; padding-right: 2.25rem; font-family: var(--wp--preset--font-family--heading); font-size: 1.125rem; font-weight: 500; color: var(--gp-ink); }
.gp-faq .wp-block-details summary::-webkit-details-marker { display: none; }
.gp-faq .wp-block-details summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: 1.75rem; height: 1.75rem; border-radius: 50%; display: grid; place-items: center; background: var(--wp--preset--color--teal-soft); color: var(--gp-teal); font-size: 1.25rem; line-height: 1; }
.gp-faq .wp-block-details[open] summary::after { content: "\2212"; background: var(--gp-teal); color: #fff; }
.gp-faq .wp-block-details > :not(summary) { margin-top: 0.75rem; margin-bottom: 0; }

/* Blog cards */
.gp-posts .wp-block-post { background: #fff; border-radius: var(--gp-radius); overflow: hidden; border: 1px solid var(--gp-line); box-shadow: var(--gp-shadow); display: flex; flex-direction: column; }
.gp-posts .wp-block-post-featured-image { margin: 0; }
.gp-posts .wp-block-post-featured-image img { aspect-ratio: 16 / 10; object-fit: cover; }
.gp-posts .gp-post-body { padding: 1.4rem 1.5rem 1.6rem; }
.gp-posts .wp-block-post-title { font-size: 1.25rem; margin: 0.35rem 0 0.6rem; }
.gp-posts .wp-block-post-title a { color: var(--gp-ink); text-decoration: none; }
.gp-posts .wp-block-post-date { font-size: 0.8125rem; }

/* ---------- Blog ---------- */
.gp-posts .wp-block-post, .gp-postcard { transition: transform 0.25s, box-shadow 0.25s; }
.gp-posts .wp-block-post:hover, .gp-postcard:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -16px rgba(14, 59, 74, 0.28); }
.gp-postcard-media, .gp-postcard { position: relative; }
.gp-postcard-media { margin: 0 !important; }
.gp-postcard-media .wp-block-post-featured-image { margin: 0; }
.gp-chip, .gp-postcard > .gp-chip {
	position: absolute; left: 1rem; top: 1rem; z-index: 2; margin: 0 !important;
	padding: 0.32rem 0.8rem; border-radius: 999px; background: var(--wp--preset--color--sun); color: var(--gp-ink);
	font-size: 0.6875rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; line-height: 1.3;
}
.gp-chip a { color: inherit; text-decoration: none; }
.gp-chip .wp-block-post-terms__separator { display: none; }
.gp-chip a:not(:first-child) { display: none; }
.gp-chip--static { position: static; display: inline-block; }
.gp-posts .gp-post-date { font-size: 0.8125rem; color: var(--wp--preset--color--text); }
.gp-posts .wp-block-post-excerpt { font-size: 0.9375rem; }
.gp-posts .wp-block-post-excerpt__more-text { display: none; }
.gp-posts .wp-block-read-more { margin-top: 0.75rem; }
.gp-post-body .wp-block-read-more::after { content: " \2197"; }
.gp-pagination { margin-top: 2.5rem; gap: 0.5rem; }
.gp-pagination a, .gp-pagination .page-numbers { padding: 0.5rem 0.9rem; border-radius: 999px; background: #fff; border: 1px solid var(--gp-line); text-decoration: none; color: var(--gp-ink); }
.gp-pagination .current { background: var(--gp-teal); color: #fff; border-color: var(--gp-teal); }

.gp-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin-top: 1.5rem; }
.gp-pills a { padding: 0.45rem 1rem; border-radius: 999px; background: #fff; border: 1px solid var(--gp-line); color: var(--gp-ink); text-decoration: none; font-size: 0.875rem; font-weight: 700; }
.gp-pills a:hover { background: var(--wp--preset--color--teal-soft); }
.gp-pills a[aria-current="page"] { background: var(--gp-teal); border-color: var(--gp-teal); color: #fff; }

.gp-postgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr)); gap: 1.5rem; margin-top: 2rem; }
.gp-postcard { background: #fff; border: 1px solid var(--gp-line); border-radius: var(--gp-radius); overflow: hidden; box-shadow: var(--gp-shadow); }
.gp-postcard-img img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.gp-postcard-body { padding: 1.4rem 1.5rem 1.6rem; }
.gp-postcard-body h3 { font-size: 1.2rem; margin: 0 0 0.5rem; }
.gp-postcard-body h3 a { color: var(--gp-ink); text-decoration: none; }
.gp-postcard-body p { font-size: 0.9375rem; margin: 0 0 0.9rem; }

.gp-postmeta { gap: 0.4rem 1.25rem; font-size: 0.875rem; color: var(--gp-ink); margin-top: 0.75rem !important; }
.gp-postmeta > * { margin: 0 !important; }
.gp-postmeta > * + *::before { content: "·"; margin-right: 1.25rem; opacity: 0.5; }
.gp-pagetitle .gp-chip--static { margin-bottom: 0.75rem !important; }
.gp-hero-img { max-width: 960px; margin: 0 auto var(--wp--preset--spacing--40) !important; overflow: hidden; }
.gp-hero-img img { width: 100%; height: auto; display: block; }

.gp-article { font-size: 1.0625rem; }
.gp-article h2 { font-size: clamp(1.5rem, 2.6vw, 1.875rem); }
.gp-article h3 { font-size: 1.25rem; margin-top: 2rem; }
.gp-article .gp-tldr { background: var(--wp--preset--color--teal-soft); border-radius: var(--gp-radius-sm); padding: 1.25rem 1.5rem; }
.gp-article .gp-tldr p { margin: 0; }
.gp-authorbox { display: flex; gap: 1.25rem; align-items: flex-start; max-width: 760px; margin: var(--wp--preset--spacing--40) auto 0 !important; padding: 1.5rem; background: #fff; border: 1px solid var(--gp-line); border-radius: var(--gp-radius); box-shadow: var(--gp-shadow); }
.gp-authorbox img { width: 72px; height: 72px; border-radius: 50%; flex: none; }
.gp-authorbox .gp-eyebrow { margin-bottom: 0.5rem !important; }
@media (max-width: 600px) { .gp-authorbox { flex-direction: column; } }

/* ---------- Inner pages ---------- */
.gp-pagetitle { position: relative; padding-block: clamp(2.5rem, 6vw, 4.5rem); text-align: center; overflow: hidden; }
.gp-pagetitle h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); margin-block: 0.25rem 0.75rem; }
.gp-crumbs { font-size: 0.8125rem; margin: 0 !important; }
.gp-crumbs a { color: var(--gp-ink); text-decoration: none; }
.gp-crumbs a:hover { color: var(--gp-teal); }
.gp-crumbs span[aria-hidden] { margin: 0 0.4rem; opacity: 0.5; }

/* Photo service cards (home page) */
.gp-pcards { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(0.85rem, 1.6vw, 1.25rem); }
.gp-pcard { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--gp-line); border-radius: var(--gp-radius); overflow: hidden; color: var(--gp-ink); text-decoration: none; box-shadow: var(--gp-shadow); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.gp-pcard-media { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--wp--preset--color--teal-soft); }
.gp-pcard-media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.gp-pcard-body { position: relative; display: flex; flex-direction: column; flex: 1; padding: 2.1rem 1.25rem 1.25rem; }
.gp-pcard-ico { position: absolute; top: -26px; left: 1.25rem; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--gp-teal); color: #fff; border: 4px solid #fff; box-shadow: 0 6px 16px -6px rgba(14, 59, 74, 0.45); }
.gp-pcard-ico svg { width: 24px; height: 24px; }
.gp-pcard h3 { margin: 0 0 0.4rem; font-size: clamp(1.125rem, 1.4vw, 1.3rem); font-weight: 600; }
.gp-pcard p { margin: 0 0 1rem; font-size: 0.9375rem; line-height: 1.5; color: var(--gp-muted, #4b5d66); }
.gp-pcard-more { margin-top: auto; font-weight: 700; font-size: 0.9375rem; color: var(--gp-teal); }
.gp-pcard-more span { display: inline-block; transition: transform 0.3s; }
.gp-pcard:hover, .gp-pcard:focus-visible { transform: translateY(-4px); box-shadow: 0 22px 44px -18px rgba(14, 59, 74, 0.45); }
.gp-pcard:hover .gp-pcard-media img, .gp-pcard:focus-visible .gp-pcard-media img { transform: scale(1.06); }
.gp-pcard:hover .gp-pcard-more span, .gp-pcard:focus-visible .gp-pcard-more span { transform: translateX(4px); }
.gp-pcard:hover .gp-pcard-ico, .gp-pcard:focus-visible .gp-pcard-ico { background: var(--wp--preset--color--sun, #FFD84D); color: var(--gp-ink); }
@media (max-width: 1099px) { .gp-pcards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 767px) { .gp-pcards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
	.gp-pcards { display: flex; gap: 0.9rem; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0.25rem 1rem 1.25rem; margin: 0 -1rem; scrollbar-width: none; }
	.gp-pcards::-webkit-scrollbar { display: none; }
	.gp-pcard { flex: 0 0 78%; scroll-snap-align: center; }
}
@media (prefers-reduced-motion: reduce) { .gp-pcard, .gp-pcard-media img, .gp-pcard-more span { transition: none; } }

.gp-service-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.gp-sidebar { position: sticky; top: 110px; display: grid; gap: 1.25rem; }
.gp-sidebar h2 { font-size: 1.25rem; margin: 0 0 0.75rem; }
.gp-sidebar ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.35rem; }
.gp-sidebar li a { display: block; padding: 0.6rem 0.9rem; border-radius: 12px; color: var(--gp-ink); text-decoration: none; font-weight: 700; font-size: 0.9375rem; }
.gp-sidebar li a:hover { background: var(--wp--preset--color--teal-soft); }
.gp-sidebar li a[aria-current="page"] { background: var(--gp-teal); color: #fff; }
.gp-consult { background: var(--wp--preset--color--sun-soft); border-radius: var(--gp-radius); padding: 1.5rem; }
.gp-consult p { margin: 0 0 0.75rem; }
.gp-consult .gp-phone { font-family: var(--wp--preset--font-family--heading); font-size: 1.5rem; font-weight: 600; color: var(--gp-ink); text-decoration: none; }
@media (max-width: 960px) { .gp-service-layout { grid-template-columns: 1fr; } .gp-sidebar { position: static; order: 2; } }

/* Header photo at the top of service / inner pages (from the page's featured image) */
.gp-page-hero { margin: 0 0 var(--wp--preset--spacing--40) !important; border-radius: var(--gp-radius); overflow: hidden; box-shadow: var(--gp-shadow); }
.gp-page-hero img { display: block; width: 100%; height: 100%; object-fit: cover; }
.gp-page-hero--wide { max-width: 1240px; margin-inline: auto !important; margin-bottom: var(--wp--preset--spacing--50) !important; }
.gp-consult-hours { display: inline-block; padding: 0.3rem 0.8rem; border-radius: 999px; background: #fff; font-size: 0.8125rem; font-weight: 700; color: var(--gp-ink); }
/* In-content figures (infographics, photos) */
.gp-content .gp-figure { margin: 2rem 0 !important; }
.gp-content .gp-figure img { display: block; width: 100%; height: auto; border-radius: var(--gp-radius-sm); box-shadow: var(--gp-shadow); }
.gp-content .gp-figure figcaption { margin-top: 0.6rem; font-size: 0.8125rem; color: var(--gp-text); text-align: center; }
.gp-content h3 { font-size: 1.25rem; margin-top: 1.75rem; }
.gp-content .gp-tldr { background: var(--wp--preset--color--teal-soft); border-radius: var(--gp-radius-sm); padding: 1.1rem 1.4rem; }
.gp-content .gp-tldr p { margin: 0; }
.gp-content > * + * { margin-top: 1.25rem; }
.gp-content h2 { font-size: clamp(1.625rem, 3vw, 2.125rem); margin-top: 2.75rem; }
.gp-content h2:first-child { margin-top: 0; }
.gp-content ul:not(.gp-checklist):not(.gp-offer) { padding-left: 1.2rem; }
.gp-content li + li { margin-top: 0.35rem; }
:is(.gp-content, .gp-table) table { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border-radius: var(--gp-radius-sm); overflow: hidden; border: 1px solid var(--gp-line); font-size: 0.9375rem; }
:is(.gp-content, .gp-table) :is(th, td) { padding: 0.75rem 1rem; text-align: left; border-bottom: 1px solid var(--gp-line); vertical-align: top; }
:is(.gp-content, .gp-table) th { background: var(--wp--preset--color--teal-soft); color: var(--gp-ink); }
:is(.gp-content, .gp-table) tr:last-child td { border-bottom: 0; }
.gp-content .wp-block-table, .wp-block-table.gp-table { overflow-x: auto; }
.wp-block-table.gp-table { margin: 1.25rem 0 2.5rem; }
.wp-block-table.gp-table a { font-weight: 700; }
.gp-lead { font-size: var(--wp--preset--font-size--lg); color: var(--gp-ink); }

.gp-offer { list-style: none; padding: 0 !important; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 1rem; }
.gp-offer li { background: #fff; border: 1px solid var(--gp-line); border-radius: var(--gp-radius-sm); padding: 1.25rem 1.25rem 1.25rem 3.4rem; position: relative; margin: 0 !important; box-shadow: var(--gp-shadow); }
.gp-offer li::before { content: counter(list-item); position: absolute; left: 1.1rem; top: 1.15rem; width: 1.75rem; height: 1.75rem; border-radius: 50%; display: grid; place-items: center; background: var(--wp--preset--color--sun); color: var(--gp-ink); font-weight: 800; font-size: 0.85rem; }
.gp-offer li strong { display: block; color: var(--gp-ink); font-family: var(--wp--preset--font-family--heading); font-weight: 500; font-size: 1.0625rem; margin-bottom: 0.2rem; }
.gp-alert { background: #fff4ef; border: 1px solid #ffd2c2; border-radius: var(--gp-radius-sm); padding: 1.25rem 1.5rem; }
.gp-alert h3 { font-size: 1.125rem; margin: 0 0 0.5rem; color: #a2391a; }
.gp-reviewed { font-size: 0.8125rem; padding: 0.85rem 1.1rem; border-radius: 12px; background: var(--wp--preset--color--teal-soft); color: var(--gp-ink); }
.gp-related { font-size: 0.9375rem; }

/* Doctor profile */
.gp-profile { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.gp-profile dl { display: grid; grid-template-columns: auto 1fr; gap: 0.6rem 1rem; margin: 1.25rem 0 0; font-size: 0.9375rem; }
.gp-profile dt { font-weight: 800; color: var(--gp-ink); }
.gp-profile dd { margin: 0; }
.gp-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; padding: 0 !important; }
.gp-tags li { margin: 0 !important; background: #fff; border: 1px solid var(--gp-line); border-radius: 999px; padding: 0.45rem 1rem; font-size: 0.875rem; font-weight: 700; color: var(--gp-ink); }
@media (max-width: 860px) { .gp-profile { grid-template-columns: 1fr; } }

/* Contact */
.gp-info { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 1.25rem; }
.gp-info .gp-card h2 { font-size: 1.125rem; margin: 0.75rem 0 0.35rem; }
.gp-info .gp-card p { margin: 0; font-size: 0.9375rem; }
.gp-info .gp-ico-lg { width: 46px; height: 46px; padding: 11px; border-radius: 50%; background: var(--wp--preset--color--teal-soft); color: var(--gp-teal); box-sizing: border-box; }
.gp-map { display: block; position: relative; border-radius: var(--gp-radius); overflow: hidden; background: var(--wp--preset--color--teal-soft); aspect-ratio: 16 / 7; min-height: 240px; }
.gp-map img { width: 100%; height: 100%; object-fit: cover; }
.gp-map span { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); background: #fff; color: var(--gp-ink); padding: 0.8rem 1.4rem; border-radius: 999px; font-weight: 800; box-shadow: var(--gp-shadow); text-decoration: none; }

/* ---------- Footer ---------- */
.gp-footer { background: var(--gp-ink); color: #c9dde0; font-size: 0.9375rem; border-radius: var(--gp-radius) var(--gp-radius) 0 0; }
.gp-footer h2 { color: #fff; font-size: 1.125rem; margin: 0 0 1rem; }
.gp-footer a { color: #e5f4f5; text-decoration: none; }
.gp-footer a:hover { color: var(--wp--preset--color--sun); }
.gp-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.5rem; }
.gp-footer .gp-footer-logo { background: #fff; border-radius: 14px; padding: 0.6rem 0.9rem; display: inline-block; }
.gp-footer .gp-footer-logo img { width: 150px; display: block; }
.gp-footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: 0.8125rem; }

/* Mobile bottom navigation (same pattern as drrajuurologist.com): Home · Doctor · Appt (raised) · WhatsApp · Call */
.gp-bottomnav { display: none; }
@media (max-width: 1023px) {
	.gp-bottomnav {
		display: flex; align-items: flex-end; justify-content: space-around;
		position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
		padding: 0.45rem 0.5rem calc(0.4rem + env(safe-area-inset-bottom));
		background: #fff; border-top: 1px solid #e5e7eb; box-shadow: 0 -6px 18px rgba(14, 59, 74, 0.08);
	}
	.gp-bottomnav a { display: flex; flex-direction: column; align-items: center; gap: 0.15rem; min-width: 56px; padding: 0.2rem 0.5rem; color: #6b7280; text-decoration: none; font-size: 0.625rem; font-weight: 600; line-height: 1.2; }
	.gp-bottomnav a:hover, .gp-bottomnav a[aria-current="page"] { color: var(--gp-ink); }
	.gp-bottomnav svg { width: 24px; height: 24px; }
	.gp-bottomnav .gp-bn-wa svg { color: #22c55e; }
	.gp-bottomnav .gp-bn-wa:hover { color: #16a34a; }
	.gp-bottomnav .gp-bn-fab { margin-top: -1.4rem; color: var(--gp-teal); font-weight: 800; }
	.gp-bn-circle {
		display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
		background: var(--gp-teal); color: #fff; border: 4px solid #fff; box-shadow: 0 8px 20px -6px rgba(15, 126, 140, 0.6);
	}
	.gp-bottomnav .gp-bn-fab:hover .gp-bn-circle { background: var(--wp--preset--color--teal-dark); }
	body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
	.cky-btn-revisit-wrapper { bottom: calc(80px + env(safe-area-inset-bottom)) !important; }
}

/* Motion preferences */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
