/* ==========================================================================
   Caring Bear Dental — main stylesheet (single file, no build step)

   Visual design matches the current caringbeardental.com: blue fixed top bar
   with purple tabs, logo bar over the banner, full-screen uppercase menu,
   tall photo banners with purple Montserrat titles, square uppercase buttons,
   three-panel call-to-action band and a blue footer.

   Where the original fell short of WCAG 2.2 AA the change is the smallest
   possible (noted inline) so the look stays the same.
   ========================================================================== */

/* ---------- Fonts (self-hosted; drop woff2 files in assets/fonts) ---------- */
@font-face { font-family: "Lato"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/lato-400.woff2") format("woff2"); }
@font-face { font-family: "Lato"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/lato-700.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/montserrat-700.woff2") format("woff2"); }
/* Light + regular: small heading first lines ("MORE ABOUT", "GET") as on the current site. */
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 300; font-display: swap; src: url("../fonts/montserrat-300.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/montserrat-400.woff2") format("woff2"); }

/* ---------- Tokens (original site colors) ---------- */
:root {
	--blue: #067ba8;        /* primary — 4.8:1 on white */
	--blue-dark: #05698f;   /* copyright bar, hovers — 6.1:1 */
	--blue-soft: rgba(6, 123, 168, .2);
	--purple: #7d2b81;      /* secondary — 8.1:1 on white */
	--purple-dark: #6a256e;
	--plum: #331235;
	--text: #333;           /* body text — 12.6:1 */
	--muted: #5c5c5c;       /* 6.6:1 */
	--line: rgba(51, 51, 51, .1);
	--mist: #f3f7fa;
	--white: #fff;
	--success: #1e7a46;
	--error: #b3261e;

	--font-body: "Lato", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--font-head: "Montserrat", "Lato", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;

	--topbar-h: 35px;
	--bar-h: 155px;         /* logo bar at the top of the page */
	--bar-h-small: 80px;    /* condensed, after scrolling */
	--container: 1280px;
	--gutter: 40px;
	--focus: 3px solid #f5b700;
	--radius: 4px;
	--shadow: 0 2px 12px rgba(0, 0, 0, .08);
}
@media (max-width: 640px) { :root { --gutter: 20px; } }
@media (max-width: 500px) { :root { --bar-h: 85px; } }

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--topbar-h) + var(--bar-h-small) + 1rem); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
	margin: 0;
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.6;
	letter-spacing: .25px;
	color: var(--text);
	background: var(--white);
	-webkit-font-smoothing: antialiased;
}
img, svg, video, iframe { max-width: 100%; display: block; }
img { height: auto; }
h1, h2, h3, h4, h5, h6 { color: var(--blue); font-weight: 700; line-height: 1.2; margin: 0 0 .6em; }
h1, h2 { font-family: var(--font-head); }
h3, h4, h5, h6 { font-family: var(--font-body); }
h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); }
h2 { font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.25rem); }
h3 { font-size: clamp(1.25rem, 1.1rem + .6vw, 1.5rem); }
h4 { font-size: 1.15rem; }
p, ul, ol, table, figure { margin: 0 0 1.1em; }
a { color: var(--blue); text-decoration: none; transition: color .3s; }
a:hover { color: var(--purple); }
.entry a { text-decoration: underline; text-underline-offset: .15em; }  /* links in text must not rely on color alone */
:focus-visible { outline: var(--focus); outline-offset: 2px; }
address { font-style: normal; }
table { border-collapse: collapse; width: 100%; }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 1000; background: var(--purple); color: var(--white); padding: .75rem 1rem; font-weight: 700; }
.skip-link:focus { top: 1rem; color: var(--white); }
.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.icon { width: 1.1em; height: 1.1em; flex: none; }

/* ---------- Buttons (square, uppercase, letter-spaced — as on the current site) ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
	min-height: 46px; padding: 10px 25px;
	font: 700 16px/1.3 var(--font-body); letter-spacing: 2px; text-transform: uppercase; text-align: center;
	border: 2px solid transparent; border-radius: 0; cursor: pointer; text-decoration: none;
	transition: background-color .3s, color .3s, border-color .3s;
}
.btn .icon { display: none; }
.btn--lg { min-height: 50px; }
.btn--block { display: flex; width: 100%; }
.btn--accent, .btn--primary { background: var(--purple); color: var(--white); }
.btn--accent:hover, .btn--primary:hover { background: var(--purple-dark); color: var(--white); }
.btn--blue { background: var(--blue); color: var(--white); }
.btn--blue:hover { background: var(--blue-dark); color: var(--white); }
.btn--light { background: var(--white); color: var(--purple); }
.btn--light:hover { background: var(--mist); color: var(--purple-dark); }
.btn--ghost { background: transparent; color: var(--blue); border-color: currentColor; }
.btn--ghost:hover { background: var(--blue); border-color: var(--blue); color: var(--white); }
.btn--ghost-light, .btn--outline { background: transparent; color: var(--white); border-color: var(--white); font-size: 12px; font-weight: 700; padding: 8px 25px; }
.btn--ghost-light:hover, .btn--outline:hover { background: var(--white); color: var(--purple); }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: inherit; letter-spacing: inherit; text-decoration: underline; cursor: pointer; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }

/* ==========================================================================
   Header
   ========================================================================== */
.site-top { position: fixed; inset: 0 0 auto 0; z-index: 500; }
/* Logged-in users: sit below the WordPress admin bar (32px desktop, 46px phones; it scrolls away under 600px). */
.admin-bar .site-top { top: 32px; }
.admin-bar .primary-nav.is-open { top: calc(32px + var(--topbar-h) + var(--bar-h-small)); }
@media (max-width: 782px) {
	.admin-bar .site-top { top: 46px; }
	.admin-bar .primary-nav.is-open { top: calc(46px + var(--topbar-h) + var(--bar-h-small)); }
}
@media (max-width: 600px) {
	.admin-bar .site-top { top: 0; }
	.admin-bar .primary-nav.is-open { top: calc(var(--topbar-h) + var(--bar-h-small)); }
}

/* Top bar */
.topbar { height: var(--topbar-h); background: var(--blue); border-bottom: 1px solid var(--line); }
.topbar__inner { display: flex; align-items: stretch; justify-content: space-between; max-width: var(--container); height: 100%; margin: 0 auto; }
.topbar ul { display: flex; list-style: none; margin: 0; padding: 0; height: 100%; }
.topbar__social li { display: flex; border-right: 1px solid var(--line); }
.topbar__social li:first-child { border-left: 1px solid var(--line); }
.topbar__social a { display: flex; align-items: center; justify-content: center; min-width: 35px; padding: 0 10px; color: var(--plum); } /* original purple icons were 1.7:1 on blue; plum is 3.4:1 */
.topbar__social a:hover { color: var(--white); }
.topbar__social .icon { width: 15px; height: 15px; }
.topbar__social .icon--brand { width: auto; height: 14px; } /* solid glyphs at the original's 14px size */
.icon--brand { width: auto; }
.topbar__tab {
	display: flex; align-items: center; height: 100%; padding: 0 10px;
	background: var(--purple); color: var(--white); font-size: 12px; text-decoration: none;
	border-right: 1px solid rgba(51, 51, 51, .3); transition: background-color .3s;
}
.topbar__tabs li:first-child .topbar__tab { border-left: 1px solid rgba(51, 51, 51, .3); }
.topbar__tab:hover { background: var(--purple-dark); color: var(--white); }
.topbar__tab .icon { display: none; }
@media (max-width: 768px) { .topbar__tab-wrap--wide { display: none; } }

/* Logo bar: transparent over the banner at the top, white once condensed. */
.site-header { height: var(--bar-h); padding: 0 var(--gutter); background: transparent; transition: height .2s, background-color .4s; }
.site-header__inner { position: relative; display: flex; align-items: center; justify-content: space-between; max-width: var(--container); height: 100%; margin: 0 auto; }
.logo { display: flex; align-items: center; height: 100%; line-height: 0; }
.logo__img { width: auto; max-height: 150px; transition: max-height .2s; }
.logo--text { font: 700 1.6rem/1 var(--font-head); color: var(--purple); text-transform: none; }
@media (max-width: 500px) { .logo__img { max-height: 80px; } }
@media (max-width: 1024px) { .site-header { background: var(--white); } }
.site-top.is-condensed .site-header, .site-top.menu-open .site-header { height: var(--bar-h-small); background: var(--white); border-bottom: 1px solid var(--line); }
.site-top.is-condensed .logo__img, .site-top.menu-open .logo__img { max-height: 75px; }

/* Menu button (shown on every screen size, as on the current site) */
/* White circle behind the icon so it stays visible over any banner photo (the bare blue
   lines disappeared into busy pictures). Over the white condensed bar the circle blends in. */
.nav-toggle {
	display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; margin-right: -4px; padding: 0;
	background: rgba(255, 255, 255, .92); border: 0; border-radius: 50%; box-shadow: 0 2px 10px rgba(0, 0, 0, .18);
	color: var(--blue); cursor: pointer; transition: background-color .3s, box-shadow .3s, color .3s;
}
.nav-toggle .icon { width: 30px; height: 30px; stroke-width: 2.5; }
.nav-toggle:hover { color: var(--purple); background: var(--white); }
.site-top.is-condensed .nav-toggle, .site-top.menu-open .nav-toggle { box-shadow: none; background: transparent; }
.nav-toggle__close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: inline-flex; }

/* Full-screen menu */
.primary-nav { display: none; }
.primary-nav.is-open {
	display: block; position: fixed; left: 0; right: 0; bottom: 0;
	top: calc(var(--topbar-h) + var(--bar-h-small));
	overflow-y: auto; overscroll-behavior: contain;
	background: rgba(255, 255, 255, .98);
	padding: 40px 20px 40px 80px;
	text-transform: uppercase; letter-spacing: 1.5px;
}
@media (max-width: 1280px) { .primary-nav.is-open { padding-left: 40px; } }
@media (max-width: 550px) { .primary-nav.is-open { padding: 20px 10px 10vh; background: var(--white); } }
.menu, .submenu, .submenu__group { list-style: none; margin: 0; padding: 0; }
.menu { max-width: var(--container); }

/* Top-level items: big uppercase blue with a left accent bar */
.menu > .menu-item {
	display: flex; flex-wrap: wrap; align-items: center;
	padding-left: 40px; border-left: 10px solid var(--blue-soft);
	font-size: 1.8rem; line-height: 60px; transition: border-color .3s;
}
.menu > .menu-item:hover, .menu > .menu-item:focus-within { border-color: var(--blue); }
.menu > .menu-item > a { flex: 1; color: rgba(6, 123, 168, .8); } /* large text: 3.4:1 passes AA */
.menu > .menu-item > a:hover, .menu > .menu-item:hover > a, .menu a[aria-current="page"] { color: var(--blue); }
@media (max-width: 1280px) { .menu > .menu-item { font-size: 1.75rem; } }
@media (max-width: 550px) { .menu > .menu-item { padding-left: 20px; border-left-width: 5px; font-size: 1.5rem; line-height: 50px; } }

.submenu-toggle {
	display: inline-flex; align-items: center; justify-content: center; width: 60px; height: 60px;
	background: none; border: 0; color: rgba(6, 123, 168, .8); cursor: pointer;
}
.submenu-toggle .icon { width: 28px; height: 28px; transition: transform .2s; }
.submenu-toggle:hover { color: var(--blue); }
.submenu-toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }
/* Top-level items with a submenu: the whole label is the button (click, tap or hover opens it). */
.menu .submenu-toggle--label {
	flex: 1; justify-content: space-between; width: auto; height: auto; min-height: 60px; padding: 0;
	font: inherit; letter-spacing: inherit; text-transform: inherit; text-align: left; line-height: inherit;
	color: rgba(6, 123, 168, .8); /* same as the link items (large text, 3.4:1) */
}
.menu .submenu-toggle--label .icon { margin-right: 16px; } /* arrow column lines up on every row */
.menu .submenu-toggle--label:hover, .menu > .menu-item:hover > .submenu-toggle--label, .menu .submenu-toggle--label[aria-expanded="true"] { color: var(--blue); }
@media (max-width: 550px) { .menu .submenu-toggle--label { min-height: 50px; } }
/* "All Services" / "All Doctors" … first link in a submenu */
.submenu > .submenu__all > a { font-weight: 700; }
.submenu { display: none; width: 100%; padding-bottom: 10px; }
.submenu-toggle[aria-expanded="true"] + .submenu { display: block; }

/* Second level (About Us, Areas Served, Our Doctors…) */
.submenu > .menu-item { padding: 0 20px; font-size: 1.5rem; line-height: 60px; }
.submenu > .menu-item > a { color: var(--blue); }       /* solid blue: smaller text needs 4.5:1 */
.submenu > .menu-item > a:hover { color: var(--purple); }
@media (max-width: 1280px) { .submenu > .menu-item { font-size: 1.25rem; line-height: 40px; } }
@media (max-width: 550px) { .submenu > .menu-item { padding-left: 10px; font-size: 1rem; line-height: 30px; } }

/* Grouped mega list (Services): purple group headings, 4 columns of small links */
.menu-item:has(> .submenu__group) { padding: 0; }
.submenu__heading { display: block; padding: 10px 20px 0; font-size: .75rem; font-weight: 700; line-height: 1.5; color: var(--purple); }
.submenu__group { display: flex; flex-wrap: wrap; padding: 0 20px; }
.submenu__group > .menu-item { flex-basis: 23%; margin-right: 2%; font-size: .8rem; line-height: 40px; }
.submenu__group a { color: var(--blue); }
.submenu__group a:hover { color: var(--purple); }
@media (max-width: 1024px) { .submenu__group > .menu-item { flex-basis: 31%; } }
@media (max-width: 768px) { .submenu__group > .menu-item { flex-basis: 45%; } }
@media (max-width: 550px) { .submenu__group { padding-left: 10px; } .submenu__group > .menu-item { flex-basis: 100%; line-height: 30px; } }

/* ==========================================================================
   Banners
   ========================================================================== */

/* Interior banner: tall photo, soft white wash, purple title bottom-left */
.banner { position: relative; isolation: isolate; display: flex; align-items: flex-end; min-height: 500px; background: var(--mist); overflow: hidden; }
.banner__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.banner::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to right bottom, rgba(255, 255, 255, .6), rgba(0, 0, 0, .1)); }
.banner__inner { width: 100%; padding-top: calc(var(--topbar-h) + var(--bar-h)); }
.banner__title {
	margin: 0; padding: 40px 0; max-width: 100%;
	font: 700 48px/56px var(--font-head); color: var(--purple);
	text-shadow: 0 0 18px rgba(255, 255, 255, .85); /* keeps the title legible over busy photos */
}
.banner__sub { margin: -24px 0 40px; font-size: 1.2rem; color: var(--text); }
@media (max-width: 768px) { .banner { min-height: 340px; } .banner__title { font-size: 32px; line-height: 40px; padding: 24px 0; } }

.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: .25rem; list-style: none; margin: 0; padding: 0; font-size: 13px; }
.breadcrumbs li + li::before { content: "/"; margin-right: .25rem; color: var(--muted); }
.breadcrumbs a { color: var(--blue); }
.breadcrumbs [aria-current] { color: var(--muted); }
.crumb-row { padding-top: 20px; }

/* Home banner: photo with blue uppercase headline and purple button */
.hero { position: relative; isolation: isolate; display: flex; align-items: center; min-height: 680px; background: var(--mist); overflow: hidden; }
.hero__media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Slides (as on the current site): 2 s crossfade, slow 5% zoom on the showing photo */
.hero--slides .hero__img { opacity: 0; transform: scale(1); transition: opacity 2s ease, transform 0s 2s; }
.hero--slides .hero__img.is-active { opacity: 1; transform: scale(1.05); transition: opacity 2s ease, transform 8s linear; }
.hero__stack { display: grid; }
.hero__stack > .hero__copy { grid-area: 1 / 1; }
.hero--slides .hero__copy { opacity: 0; visibility: hidden; transition: opacity .9s ease, visibility 0s .9s; }
.hero--slides .hero__copy.is-active { opacity: 1; visibility: visible; transition: opacity .9s ease .5s, visibility 0s; }
/* Top-right of the photo, just under the header: the cookie notice (bottom of the screen) never covers it. */
.hero__toggle { position: absolute; right: 16px; top: calc(var(--topbar-h) + var(--bar-h) + 16px); z-index: 2; display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .9); color: var(--plum); box-shadow: 0 2px 8px rgba(0, 0, 0, .2); cursor: pointer; }
.hero__toggle:hover { background: var(--white); color: var(--purple); }
.hero__toggle:focus-visible { outline: 3px solid var(--purple); outline-offset: 3px; }
.hero__toggle svg { fill: currentColor; }
.hero__toggle .hero__toggle-play, .hero__toggle.is-paused .hero__toggle-pause { display: none; }
.hero__toggle.is-paused .hero__toggle-play { display: block; }
@media (prefers-reduced-motion: reduce) {
	.hero--slides .hero__img, .hero--slides .hero__img.is-active { transform: none; transition: opacity .3s; }
	.hero--slides .hero__copy, .hero--slides .hero__copy.is-active { transition: opacity .3s, visibility 0s; }
}
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to left, rgba(255, 255, 255, .6), rgba(255, 255, 255, 0) 60%); }
.hero__inner { padding-top: calc(var(--topbar-h) + var(--bar-h)); padding-bottom: 60px; }
.hero__copy { max-width: 500px; }
@media (min-width: 501px) {
	.hero__copy { margin-left: auto; margin-right: 5%; } /* text on the right, as on the current first slide */
	.hero__copy--left { margin-left: 0; margin-right: auto; }
}
.hero__title { margin: 0 0 .4em; font: 700 40px/1.25 var(--font-head); text-transform: uppercase; color: var(--blue); text-shadow: 0 0 16px rgba(255, 255, 255, .9); }
.hero__text { font-size: 1.25rem; color: var(--text); text-shadow: 0 0 12px rgba(255, 255, 255, .9); }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
/* Smaller screens, matching the current site's breakpoints: below 1024px the photo sits UNDER the
   solid header (not behind it) and shrinks to 520px tall, then 320px below 800px, so the photo
   keeps roughly its wide proportions instead of being cropped to two giant faces. */
@media (max-width: 1024px) {
	.hero { --hero-photo: 520px; min-height: calc(var(--topbar-h) + var(--bar-h) + var(--hero-photo)); }
	.hero__media, .hero::after { top: calc(var(--topbar-h) + var(--bar-h)); bottom: auto; height: calc(100% - var(--topbar-h) - var(--bar-h)); }
	.hero__inner { padding-bottom: 0; }
	.hero__copy { max-width: 350px; }
	.hero__text { font-size: 1.25rem; }
}
@media (max-width: 800px) {
	.hero { --hero-photo: 320px; }
	.hero__inner { padding-left: 20px; padding-right: 20px; }
	.hero__copy { max-width: 220px; margin-right: 0; }
	.hero__copy--left { margin-left: 0; }
	.hero__title { font-size: 18px; margin-bottom: 8px; }
	.hero__text { font-size: 1.05rem; line-height: 1.3; }
	.hero__actions { margin-top: .75rem; }
	.hero__actions .btn { font-size: 12px; padding: 8px 12px; min-height: 0; }
}
/* Phones: the current site HIDES the headline and button here. Deviation for accessibility/SEO:
   the page's only H1 and the main call to action must stay, so the text moves BELOW a 220px photo. */
@media (max-width: 500px) {
	.hero { --hero-photo: 220px; display: block; min-height: 0; padding-top: calc(var(--topbar-h) + var(--bar-h) + var(--hero-photo)); background: var(--white); }
	.hero__media, .hero::after { height: var(--hero-photo); }
	.hero__toggle { top: calc(var(--topbar-h) + var(--bar-h) + 10px); right: 10px; }
	.hero__inner { padding-top: 20px; padding-bottom: 30px; }
	.hero__copy { max-width: none; }
	.hero__title { font-size: 24px; }
	.hero__title, .hero__text { text-shadow: none; }
	.hero__actions .btn { font-size: 14px; padding: 12px 22px; }
}

.eyebrow { margin: 0 0 .25rem; font: 700 1rem/1.3 var(--font-body); text-transform: uppercase; letter-spacing: 1.5px; color: var(--purple); }
.eyebrow--light { color: var(--white); }

/* ==========================================================================
   Content
   ========================================================================== */
.section { padding-block: 80px; }
.section--mist { background: var(--mist); }
.section--blue { background: var(--blue); color: var(--white); }
.section--blue h2, .section--blue h3 { color: var(--white); }
.section__more { margin: 40px 0 0; text-align: center; }

.content-area { padding-block: 40px; }
.entry { min-width: 0; }
.entry h1, .entry h2 { margin-top: 1.4em; }
/* Content headings, as on the current site: Montserrat 36px bold blue, capitalised, with an
   optional small uppercase first line (<span class="heading-kicker">More about</span> Dr. Rivera). */
.entry h3 { margin: 30px 0 16px; font: 700 clamp(1.6rem, 1.2rem + 1.4vw, 2.25rem)/1.2 var(--font-head); text-transform: capitalize; color: var(--blue); }
.entry .heading-kicker { display: block; margin-bottom: 2px; font: 400 clamp(1rem, .9rem + .4vw, 1.25rem)/1.2 var(--font-head); text-transform: uppercase; color: #0076a3; }
.entry > :first-child { margin-top: 0; }
.entry ul, .entry ol { padding-left: 1.25em; }
.entry li { margin-bottom: .35em; }
.entry .alignleft { float: left; margin: .25rem 1.5rem 1rem 0; max-width: 45%; }
.has-text-align-center { text-align: center; }
.entry h4.has-text-align-center { margin: 16px 0; font: 400 24px/1.35 var(--font-body); color: var(--blue); } /* Recognition & Awards intro line */
/* Award images (Recognition & Awards): centred row of 300px images that wraps */
.entry .award-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; margin: 20px 0; }
.entry .award-row figure { flex: 0 1 300px; margin: 16px 40px; }
.entry .award-row img { display: block; width: 100%; height: auto; border-radius: 6px; box-shadow: 0 6px 18px rgba(0, 0, 0, .08); }
@media (max-width: 500px) { .entry .award-row figure { margin: 8px 0; } }
.entry .alignright { float: right; margin: .25rem 0 1rem 1.5rem; max-width: 45%; }
.entry .aligncenter { margin-inline: auto; }
.entry iframe { width: 100%; border: 0; }
.entry iframe[src*="vimeo"], .entry iframe[src*="youtube"] { aspect-ratio: 16 / 9; height: auto; margin-bottom: 1.25em; }
.entry blockquote { margin: 1.5em 0; padding: 1rem 1.25rem; border-left: 4px solid var(--purple); background: var(--mist); }
.entry table th, .entry table td { padding: .6rem .75rem; border-bottom: 1px solid var(--line); text-align: left; }
.entry__meta { color: var(--muted); font-size: 14px; }
.entry__disclaimer { margin-top: 40px; padding: 1rem; background: var(--mist); font-size: 14px; color: var(--muted); }
.entry::after { content: ""; display: table; clear: both; }
@media (max-width: 639px) { .entry .alignleft, .entry .alignright { float: none; margin: 0 0 1rem; max-width: 100%; } }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.entry .btn { text-decoration: none; }

/* Purple intro band with swoop edge (current site's "fullwidth interior" block) */
html { overflow-x: clip; } /* lets full-bleed bands use 100vw without a sideways scrollbar */
.intro-band {
	position: relative; width: 100vw; margin: -40px 0 40px calc(50% - 50vw);
	padding: 60px var(--gutter) 0; color: var(--white);
	/* Purple stops 20px short of the bottom (where the swoop image is white) so no sliver shows at fractional widths. */
	background: linear-gradient(var(--purple), var(--purple)) top / 100% calc(100% - 20px) no-repeat;
}
.entry > .intro-band:first-child { margin-top: -40px; } /* sits right under the banner */
.intro-band::after {
	content: ""; display: block; height: auto; aspect-ratio: 1920 / 141;
	margin: 30px calc(-1 * var(--gutter)) 0; background: url("../img/swoop.jpg") center top / 100% 100% no-repeat;
}
.intro-band__inner { display: flex; flex-wrap: wrap; gap: 20px 36px; max-width: var(--container); margin: 0 auto; }
.entry .intro-band__title { flex: 0 1 448px; margin: 0; color: var(--white); font: 700 35.2px/1.1 var(--font-head); text-transform: capitalize; }
.intro-band__title span { display: block; font-size: 21.6px; font-weight: 300; text-transform: uppercase; }
.intro-band__body { flex: 1 1 400px; }
.intro-band__body p { margin: 0; font-size: 19.2px; line-height: 1.6; color: var(--white); }
/* Links in the purple band: light brand blue (5.7:1 on purple; the original's #067BA8 was 1.7:1 and
   nearly invisible), bold + underlined so they don't rely on colour alone next to the white text. */
.entry .intro-band a { color: #9fe0f7; font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .2em; }
.entry .intro-band a:hover, .entry .intro-band a:focus-visible { color: var(--white); text-decoration-thickness: 3px; }
@media (max-width: 768px) { .entry .intro-band__title { font-size: 28px; } .intro-band__body p { font-size: 17px; } }

/* Contact page: text left, form in a blue box right */
.contact-cols { display: grid; gap: 40px; align-items: start; }
@media (min-width: 900px) { .contact-cols { grid-template-columns: 1fr 1fr; } }
.contact-cols__text { padding: 0 20px; }
.contact-line { margin: 1em 0; }
.contact-line a { color: var(--purple); text-decoration: none; }
.contact-line a:hover { text-decoration: underline; }
.contact-cols__form { padding: 20px; border-radius: 10px; background: #0076a3; color: var(--white); }
.contact-cols__form .form { gap: 14px; }
.contact-cols__form .field label { color: var(--white); font-size: 14px; }
.contact-cols__form .field input, .contact-cols__form .field select, .contact-cols__form .field textarea { border: 0; min-height: 40px; padding: 10px; color: #000; }
.contact-cols__form .field textarea { min-height: 100px; }
.contact-cols__form .field__hint, .contact-cols__form .form__req-note { color: var(--white); font-size: 13px; }
.contact-cols__form .field__error { color: var(--white); background: var(--error); padding: 2px 8px; justify-self: start; }
.contact-cols__form [type="submit"] { background: transparent; border: 2px solid var(--white); color: var(--white); min-height: 44px; padding: 8px 25px; font-size: 12px; }
.contact-cols__form [type="submit"]:hover { background: var(--white); color: #0076a3; }
.entry .contact-cols__form a { color: var(--white); }

/* "Your ZIP code: [ ] Go" directions form (Our Office) */
.directions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 1.5em; }
.directions label { font-weight: 400; }
.directions input[type="text"] { width: 160px; min-height: 44px; padding: 8px 10px; font: inherit; color: var(--text); border: 1px solid #8a8a8a; border-radius: 0; }
.directions input[type="text"]:focus-visible { outline: var(--focus); outline-offset: 1px; }

/* ---------- Smile gallery (before/after cards, same layout and behaviour as the current site) ----------
   > 1280px : centred 1200px row, 293px cards spaced evenly (4 + 3).
   920–1280 : two columns, card at the start of each column.
   ≤ 920px  : both photos stacked with "Before"/"After" labels (also on touch screens, which can't hover).
   Desktop  : the "after" photo shows; hover or keyboard focus fades in the "before" photo. */
/* Services index (/services/): rounded photo + blue name, 4 / 3 / 2 columns as on the current site */
.entry .svc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 20px; margin: 40px 0 0; padding: 0; list-style: none; }
.entry .svc-grid li { margin: 0 0 40px; padding: 0; }
.entry .svc-grid li::before { content: none; }
.entry .svc-card { display: block; color: var(--blue); text-decoration: none; }
.entry .svc-card__img { display: block; width: 100%; height: 240px; object-fit: cover; border-radius: 5px; }
.entry .svc-card__title { margin: 10px 0 0; font: 700 1.5rem/1.25 var(--font-head); color: inherit; text-transform: capitalize; transition: color .3s; }
.entry .svc-card:hover, .entry .svc-card:focus-visible { color: var(--purple); }
.entry .svc-card:focus-visible { outline: 3px solid var(--purple); outline-offset: 4px; }
@media (max-width: 1280px) { .entry .svc-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 980px) { .entry .svc-grid { grid-template-columns: repeat(2, 1fr); } .entry .svc-card__title { font-size: 1.25rem; } }
@media (max-width: 550px) { .entry .svc-card__img { height: 125px; } .entry .svc-card__title { font-size: 1.1rem; } }

/* Dental Library index (/library/): blue group heading, purple link list, round photo on the right */
.entry .library-groups { margin-top: 40px; }
.entry .library-group { display: flow-root; margin: 0 0 40px; }
.entry .library-group h2 { margin: 30px 0 0; font: 700 28px/1.2 var(--font-head); color: var(--blue); text-transform: capitalize; }
.entry .library-group__img { float: right; width: 240px; height: 240px; margin: 0 0 0 24px; border-radius: 50%; object-fit: cover; }
.entry .library-group ul { margin: 0; padding: 0; list-style: none; }
.entry .library-group li { margin: 8px 0; padding: 0; font-size: 1.1rem; line-height: 1.6; }
.entry .library-group li::before { content: none; }
.entry .library-group a { color: var(--purple); text-decoration: none; }
.entry .library-group a:hover, .entry .library-group a:focus-visible { color: var(--plum); text-decoration: underline; }
@media (max-width: 600px) { .entry .library-group__img { width: 110px; height: 110px; margin-left: 16px; } .entry .library-group h2 { font-size: 22px; } }
.entry .smile-gallery { display: flex; flex-wrap: wrap; justify-content: space-evenly; max-width: 1200px; margin: 40px auto 0; padding: 0; list-style: none; }
.entry .smile-item { flex: 0 0 auto; margin: 0 0 80px; padding: 0; }
.smile-card { position: relative; display: flex; flex-direction: column; width: 293px; max-width: 100%; background: var(--white); box-shadow: 10px 10px 40px rgba(0, 0, 0, .1); }
.smile-card:focus-visible { outline: var(--focus); outline-offset: 4px; }
.smile-card__photos { position: relative; }
.entry .smile-card__img { display: block; width: 100%; height: auto; border-radius: 0; }
.entry .smile-card__img--before { position: absolute; inset: 0; height: 100%; object-fit: cover; opacity: 0; transition: opacity .3s ease; }
.entry .smile-card__label {
	position: absolute; left: 0; right: 0; bottom: -35px; z-index: 2; margin: 0; padding: 3px;
	background: var(--blue); color: var(--white); font: 700 1.1rem/1.4 var(--font-body); text-align: center; transform: translateY(-3px);
}
.smile-card__label--before { display: none; }
.smile-card:hover .smile-card__img--before, .smile-card:focus-visible .smile-card__img--before { opacity: 1; }
.smile-card:hover .smile-card__label--before, .smile-card:focus-visible .smile-card__label--before { display: block; }
.smile-card:hover .smile-card__label--after, .smile-card:focus-visible .smile-card__label--after { display: none; }

@media (max-width: 1280px) {
	.entry .smile-gallery { justify-content: center; }
	.entry .smile-item { flex-basis: 48%; }
	.entry .smile-item:nth-child(odd) { padding-right: 10px; }
	.entry .smile-item:nth-child(even) { padding-left: 10px; }
}

@media (max-width: 920px), (hover: none) {
	.entry .smile-gallery { justify-content: space-around; }
	.entry .smile-item { flex-basis: auto; padding: 0 !important; }
	.smile-card { background: #f3f3f3; box-shadow: none; }
	.smile-card__photos { display: contents; }
	.entry .smile-card__img--before { position: relative; inset: auto; height: auto; opacity: 1; order: 1; }
	.entry .smile-card__label { position: relative; bottom: auto; width: 200px; transform: none; }
	.entry .smile-card__label--before { display: block; order: 2; margin: -13px auto -8px; }
	.entry .smile-card__img--after { order: 3; }
	.entry .smile-card__label--after { display: block; order: 4; margin: -13px auto 0; }
	.smile-card:hover .smile-card__label--after, .smile-card:focus-visible .smile-card__label--after { display: block; }
}

@media (max-width: 768px) {
	.entry .smile-gallery { justify-content: center; }
	.entry .smile-item { margin-bottom: 20px; border-bottom: 1px dotted var(--purple); }
	.smile-card { width: 335px; padding: 20px; text-align: center; }
}
/* ---------- Our Doctors list (same layout as the current site) ----------
   Two columns; full, uncropped 300px portrait; big blue name; bio; purple "Read More". */
.entry .staff-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: 60px 25px; list-style: none; margin: 0; padding: 0; }
.entry .staff-list__item { display: flex; flex-direction: column; align-items: flex-start; margin: 0; padding: 0 13px; }
.entry .staff-list__photo { margin-bottom: 20px; }
.entry .staff-list__photo img { width: 300px; max-width: 100%; height: auto; border-radius: 0; }
.entry .staff-list__name { margin: 0 0 .3em; font: 700 clamp(1.75rem, 1.3rem + 1.4vw, 2.25rem)/1.2 var(--font-head); color: var(--blue); }
.entry .staff-list__item p { margin: 0 0 1.25em; }
.entry .staff-list .btn { margin-top: auto; text-decoration: none; }

/* ---------- Service page layout blocks (Invisalign, CEREC, Emergency Treatment FAQ) ---------- */

/* Video beside a blue text panel, with the original's drop shadow. */
.entry .svc-video { display: flex; margin: 60px 0; box-shadow: 6px 5px 8px #bfbfbf; }
.entry .svc-video__player { flex: 0 0 47%; aspect-ratio: 16 / 9; }
.entry .svc-video__player iframe { width: 100%; height: 100%; margin: 0; aspect-ratio: auto; }
.entry .svc-video__text { flex: 1; display: flex; align-items: center; padding: 0 40px; background: var(--blue); color: var(--white); }
.entry .svc-video__text p { margin: 16px 0; color: var(--white); }
@media (max-width: 768px) { .entry .svc-video { flex-direction: column; } .entry .svc-video__text { padding: 20px; } }

/* Photo and text side by side, swapping sides on every other row. */
.entry .alt-row { display: flex; align-items: center; justify-content: space-between; gap: 30px; margin: 0 0 30px; }
.entry .alt-row__media, .entry .alt-row__text { flex: 1 1 48%; min-width: 0; }
.entry .alt-row__media img { width: 100%; max-width: 500px; height: auto; border-radius: 0; }
.entry .alt-row--reverse .alt-row__media { order: 2; text-align: right; }
.entry .alt-row--reverse .alt-row__media img { margin-left: auto; }
.entry .alt-row h3 { margin: 0 0 16px; font-size: 1.4rem; }
.entry .alt-row p:last-child { margin-bottom: 0; }
@media (max-width: 768px) {
	.entry .alt-row { flex-direction: column; align-items: stretch; gap: 16px; }
	.entry .alt-row--reverse .alt-row__media { order: 0; }
}
/* Inside an FAQ answer the rows sit in a narrower column. */
.faq__answer .alt-row { margin-bottom: 24px; }

/* Blue band: centred heading, short purple divider, text. */
.entry .svc-band { margin: 30px 0; padding: 20px 40px; background: var(--blue); color: var(--white); text-align: center; box-shadow: 6px 5px 8px #bfbfbf; }
.entry .svc-band h2 { margin: 0 0 10px; font: 400 clamp(1.5rem, 1.2rem + 1vw, 2rem)/1.2 var(--font-head); color: var(--white); text-transform: none; }
.entry .svc-band h2::after { content: ""; display: block; width: 150px; height: 3px; margin: 12px auto 0; background: var(--purple); }
.entry .svc-band p { margin: 16px 0; color: var(--white); }

/* ---------- Google reviews ([cb_google_reviews]) ---------- */
.home-reviews { max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter) 40px; }
.home-reviews .greviews { margin-top: 0; }
.greviews { max-width: var(--container); margin: 40px auto; text-align: left; }
.greviews__title { text-align: center; }
.greviews__summary { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 12px; margin: 0 0 30px; font-weight: 700; color: var(--text); }
.greviews__avg { font: 700 2.5rem/1 var(--font-head); color: var(--blue); }
.greviews__stars { color: #e3a008; letter-spacing: 2px; font-size: 1.2rem; } /* decorative: the rating is also given as text */
.greviews__stars-off { color: #cfd4da; }
.greviews__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 24px; list-style: none; margin: 0; padding: 0; }
.greview { display: flex; flex-direction: column; margin: 0; padding: 22px; background: var(--white); border: 1px solid var(--line); box-shadow: 0 2px 12px rgba(0, 0, 0, .05); }
.greview__head { display: flex; align-items: center; gap: 12px; }
.greview__avatar { display: flex; align-items: center; justify-content: center; flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--purple); color: var(--white); font: 700 1rem var(--font-body); }
.greview__who { display: flex; flex-direction: column; line-height: 1.3; }
.greview__name { font-weight: 700; color: var(--text); }
.greview__date { font-size: 13px; color: var(--muted); }
.greview__rating { margin: 12px 0 6px; }
.greview__text { margin: 0; padding: 0; border: 0; background: none; }
.entry .greview__text { margin: 0; padding: 0; border: 0; background: none; }
.greview__text p { margin: 0; }
.greview__reply { margin-top: 12px; font-size: 14px; color: var(--muted); }
.greview__reply summary { cursor: pointer; font-weight: 700; color: var(--blue); }
.greviews__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 20px; margin: 30px 0 0; }
.greviews__source { font-size: 14px; color: var(--muted); }
.entry .greviews .btn { text-decoration: none; }
.greviews__preview-note { margin: 0 0 20px; padding: 10px 14px; border: 2px dashed #b45309; background: #fff7ed; color: #7c2d12; font-weight: 700; text-align: center; } /* admin-only preview banner */
.greviews__preview-note--inline { margin: 0; font-size: 14px; font-weight: 400; }

/* "Return to Our Services" link (current site's breadcrumb module) */
.back-link { padding: 20px 0 40px; }
.back-link a { text-decoration: none; }
.back-link a:hover { text-decoration: underline; }

/* ==========================================================================
   Home page sections (same order and look as the current home page)
   ========================================================================== */
.btn--sm { min-height: 44px; padding: 8px 25px; font-size: 12px; font-weight: 700; }
.btn--outline-purple { background: transparent; color: var(--purple); border-color: var(--purple); }
.btn--outline-purple:hover { background: var(--purple); color: var(--white); }
.kicker { margin: 0 0 .1em; font: 400 24px/1.25 var(--font-body); text-transform: uppercase; }
.home-content h2 { font-size: clamp(2rem, 1.5rem + 2vw, 3rem); text-transform: capitalize; margin-bottom: .4em; }
.home-content p { margin-bottom: 1em; }
.home-content .btn-row { margin-top: 1.5rem; }

/* Welcome: text + video */
.home-welcome { display: grid; gap: 40px; align-items: center; max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto; padding: 100px var(--gutter); }
.home-welcome h3 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); }
.home-welcome__text p { font-size: 1.2rem; }
/* Links inside home page text must not rely on colour alone (WCAG 1.4.1): underline them, like links in page text. */
.home-welcome__text p:not(.btn-row) a:not(.btn), .home-membership p a:not(.btn), .home-membership li a:not(.btn),
.home-split__text p:not(.btn-row) a:not(.btn), .home-cta__inner p a:not(.btn), .home-features p a:not(.btn) { text-decoration: underline; text-underline-offset: 2px; }
@media (min-width: 900px) { .home-welcome { grid-template-columns: minmax(0, 1fr) 400px; gap: 60px; } }

/* Click-to-play video (player only loads on click) */
.video-facade { position: relative; overflow: hidden; background: var(--mist); }
.video-facade img { width: 100%; height: 100%; object-fit: cover; }
.video-facade iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; }
.video-facade__play { position: absolute; inset: 50% auto auto 50%; transform: translate(-50%, -50%); display: flex; align-items: center; justify-content: center; width: 76px; height: 76px; border: 3px solid var(--white); border-radius: 50%; background: var(--purple); color: var(--white); cursor: pointer; box-shadow: 0 4px 18px rgba(0, 0, 0, .3); }
.video-facade__play:hover { background: var(--purple-dark); }
.video-facade__play .icon { width: 34px; height: 34px; margin-left: 4px; }

/* Membership plans + why choose us (centered headings) */
.home-membership { max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter) 40px; }
.home-membership h2 { text-align: center; font-size: clamp(1.75rem, 1.4rem + 1.5vw, 2.5rem); font-weight: 600; text-transform: none; margin-top: 1.2em; }
.home-membership h3 { text-align: center; }
.home-membership iframe { width: 100%; border: 0; margin: 20px 0 40px; }
.checklist { list-style: none; padding: 0; }
.checklist li::before { content: "\2713"; margin-right: .5em; color: var(--blue); font-weight: 700; }

/* Specials banner */
.home-specials { padding: 40px var(--gutter); background: rgba(6, 123, 168, .25); }
.home-specials img { max-width: 900px; width: 100%; margin: 0 auto; }

/* Photo call-to-action with colored wash (oral health / growing family) */
.home-cta { position: relative; isolation: isolate; display: flex; align-items: center; justify-content: center; min-height: 560px; padding: 80px var(--gutter); text-align: center; color: var(--white); overflow: hidden; }
.home-cta__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.home-cta::before { content: ""; position: absolute; inset: 0; z-index: -1; }
.home-cta--blue { background: var(--blue-dark); }      /* solid fallback so white text is readable before the photo loads */
.home-cta--purple { background: var(--purple-dark); }
.home-cta--blue::before { background: rgba(6, 123, 168, .65); }
.home-cta--purple::before { background: rgba(125, 43, 129, .65); }
.home-cta__inner { max-width: 800px; }
.home-cta h2 { color: var(--white); }
.home-cta p { font-size: clamp(1.15rem, 1rem + .6vw, 1.5rem); }
.home-cta .kicker { margin-bottom: 0; }

/* Meet our doctors: photo half + buttons */
.home-doctors { display: grid; min-height: 700px; }
.home-doctors__media img { width: 100%; height: 100%; object-fit: cover; }
.home-doctors__text { align-self: center; padding: 80px var(--gutter); }
.home-doctors .kicker { color: #0076a3; }
.home-doctors__list { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 20px; justify-items: start; }
@media (min-width: 900px) { .home-doctors { grid-template-columns: 1fr 1fr; } .home-doctors__text { padding-left: 80px; } }
@media (max-width: 899px) { .home-doctors { min-height: 0; } .home-doctors__media img { height: 360px; } }

/* Featured services on blue */
.home-features { background: var(--blue); color: var(--white); padding: 100px 20px 60px; }
.home-features__inner { max-width: var(--container); margin: 0 auto; }
.home-features h2, .home-features h3 { color: var(--white); }
.home-features__list { display: grid; gap: 40px; list-style: none; margin: 40px 0 0; padding: 0; }
.home-features__list li { display: flex; flex-direction: column; align-items: flex-start; }
.home-features__list img { width: 55px; height: 55px; margin-bottom: 1rem; }
.home-features__list h3 { margin: 0 0 .5rem; font-size: 24px; font-weight: 400; text-transform: uppercase; }
.home-features__list .btn { margin-top: auto; }
@media (min-width: 900px) { .home-features__list { grid-template-columns: repeat(3, 1fr); gap: 60px; } }

/* Full-width image splits (affordable solutions / advanced technology) */
.home-split { position: relative; isolation: isolate; display: flex; align-items: center; min-height: 700px; padding: 60px var(--gutter); color: var(--white); overflow: hidden; background: var(--blue); }
.home-split--left { background: var(--purple); }
.home-split__pic { display: contents; }
.home-split__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; }
.home-split--right { justify-content: flex-end; }
.home-split__text { max-width: 600px; }
.home-split__text--panel { padding: 40px; background: #0075a4; }
.home-split h2 { color: var(--white); }
.home-split p { font-size: 1.2rem; }
@media (min-width: 1100px) { .home-split--left .home-split__text { margin-left: max(0px, calc((100% - var(--container)) / 2)); } }
@media (max-width: 899px) {
	/* Phones: photo on top, text on a solid brand color (the current site swaps to a mobile crop) */
	.home-split { flex-direction: column; align-items: stretch; min-height: 0; padding: 0; }
	.home-split__bg { position: static; height: auto; aspect-ratio: 800 / 650; object-position: center bottom; } /* phone crop (mobilebg) */
	.home-split__text { max-width: none; padding: 40px var(--gutter); }
	.home-split--left .home-split__text { background: var(--purple); }
}

/* Contact our office: map + blue panel */
.home-contact { display: grid; }
.home-contact__map .map { height: 100%; min-height: 400px; border: 0; }
.home-contact__panel { padding: 60px var(--gutter); background: #0076a3; color: var(--white); }
.home-contact__panel h2 { color: var(--white); }
.home-contact__panel a { color: var(--white); }
.home-contact__cols { display: grid; gap: 20px; margin: 10px 0 20px; text-transform: uppercase; font-size: 14px; font-weight: 700; }
.home-contact__nap address a, .home-contact__nap address { display: block; }
/* Tap targets (WCAG 2.5.8 / Lighthouse): address, phone and email were 17 px tall with 2 px between them. */
.home-contact__nap a { display: inline-block; min-height: 24px; padding: 6px 0; }
.home-contact__nap address a { display: block; }
.home-contact__nap .icon { display: none; }
.home-contact__nap p { margin: 4px 0 0; } /* small gap between the phone and email tap targets */
.hours--panel { font-size: 14px; }
.hours--panel th, .hours--panel td { border: 0; padding: 0; font-weight: 700; }
.home-contact .hours--panel tr.is-today th, .home-contact .hours--panel tr.is-today td { color: var(--white); text-decoration: underline; }
.home-contact__cta { margin: 10px 0 15px; font-size: 14px; font-weight: 700; }
@media (min-width: 900px) { .home-contact { grid-template-columns: 47% 53%; } .home-contact__cols { grid-template-columns: 1fr 1fr; } }

/* Follow us tiles */
.home-follow { padding: 100px 20px 60px; text-align: center; }
.home-follow .kicker { color: #0076a3; }
.social-tiles { display: grid; gap: 30px; max-width: var(--container); margin: 40px auto 0; padding: 0; list-style: none; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.social-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .4rem; min-height: 200px; padding: 20px; color: var(--white); font-size: 28px; text-decoration: none; transition: filter .3s; }
.social-tile:hover { color: var(--white); filter: brightness(.9); }
.social-tile .icon { width: 30px; height: 30px; }
.social-tile .icon--brand { width: auto; height: 30px; }
.social-tile--facebook { background: #3b5998; }
.social-tile--google { background: #cc3b29; }
.social-tile--instagram { background: #b5307a; }
.social-tile--blog { background: var(--blue); }

/* Content with sidebar (contact page) */
.layout { display: grid; gap: 40px; }
.side-card { padding: 1.5rem; border: 1px solid var(--line); background: var(--white); }
.side-card--accent { background: var(--blue); color: var(--white); border-color: var(--blue); display: grid; gap: .75rem; }
.side-card--accent p { margin: 0; }
.side-card__title { font-size: 1.25rem; margin-bottom: .5rem; text-transform: uppercase; }
.side-card--accent .side-card__title { color: var(--white); margin: 0; }
.side-card address { margin-bottom: 1rem; }
.side-card address a, .visit address a { display: inline-flex; gap: .5rem; align-items: flex-start; }
.side-card address .icon, .visit address .icon { margin-top: .25em; }

/* Hours */
.hours { font-size: 15px; }
.hours th, .hours td { padding: .3rem 0; border-bottom: 1px solid var(--line); text-align: left; font-weight: 400; }
.hours td { text-align: right; }
.hours tr.is-today th, .hours tr.is-today td { font-weight: 700; color: var(--purple); }

/* Cards (hub pages, blog) */
.cards { display: grid; gap: 30px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); list-style: none; margin: 30px 0 0; padding: 0; }
@media (min-width: 900px) { .cards--3 { grid-template-columns: repeat(3, 1fr); } }
.card { position: relative; display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); overflow: hidden; transition: box-shadow .3s; }
.card:hover, .card:focus-within { box-shadow: var(--shadow); }
.card__media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.card__body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.card__body > p:last-child { margin-bottom: 0; }
.card__title { font-size: 1.15rem; margin-bottom: .4rem; }
.card__link { color: var(--blue); text-decoration: none; }
.card__link::after { content: ""; position: absolute; inset: 0; }
.card__link:hover { color: var(--purple); }
.card__link:focus-visible { outline: none; }
.card:has(.card__link:focus-visible) { outline: var(--focus); outline-offset: 3px; }
.card__meta { color: var(--muted); font-size: 14px; margin-bottom: .5rem; }
.card__more { margin-top: auto; color: var(--purple); font-weight: 700; text-transform: uppercase; letter-spacing: 2px; font-size: 13px; }
.card--plain { border-top: 4px solid var(--purple); }
.hub { margin-top: 40px; }
.hub .cards { margin-top: 0; }

/* FAQ */
.faq { margin-top: 40px; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 0; cursor: pointer; font-weight: 700; color: var(--blue); list-style: none; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary .icon { transition: transform .2s; color: var(--purple); }
.faq__item[open] summary .icon { transform: rotate(180deg); }
.faq__answer { padding: 0 0 1rem; }

/* ==========================================================================
   Call-to-action band (current site's three colored panels)
   ========================================================================== */
.cta-panels { position: relative; isolation: isolate; min-height: 300px; display: flex; align-items: flex-end; background: var(--white) url("../img/cta-background.jpg") center / 100% 100% no-repeat; color: var(--white); } /* stretched to fill, as on the current site, so the whole curved top shows */
/* Columns span the full width (like the current site) so each one stays on its stretched colour panel at any screen size. */
.cta-panels__grid { display: grid; grid-template-columns: repeat(3, 30.5%); justify-content: space-between; width: 100%; padding: 100px 20px 40px; }
.cta-panel { position: relative; padding: 0 40px; }
/* White on the light-blue panel is 3.2:1 — fine for the big heading; the small button label gets a thin dark halo so the colour right behind the letters passes 4.5:1. */
.cta-panel:nth-child(3) .btn { text-shadow: 0 0 1px #004a66, 0 0 2px #004a66, 0 0 3px #004a66; }
.cta-panel:nth-child(3) .btn:hover { text-shadow: none; }
.cta-panel h2 { margin: 0 0 .9rem; color: var(--white); font: 700 36px/1.2 var(--font-head); text-transform: capitalize; }
@media (max-width: 900px) {
	.cta-panels { background-image: none; }
	.cta-panels__grid { grid-template-columns: 1fr; padding: 0; }
	.cta-panel { padding: 30px var(--gutter); }
	.cta-panel:nth-child(1) { background: #0076a3; }
	.cta-panel:nth-child(2) { background: var(--purple); }
	.cta-panel:nth-child(3) { background: #0383b5; }
	.cta-panel:nth-child(3) .btn { text-shadow: none; }
	.cta-panel h2 { font-size: 28px; }
}

/* Map facade */
.map { position: relative; min-height: 360px; overflow: hidden; background: var(--mist); border: 1px solid var(--line); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map__placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem; padding: 1.5rem; text-align: center; }
.map__placeholder > .icon { width: 40px; height: 40px; color: var(--purple); }
.map__placeholder p { margin: 0; }
.map__placeholder a:not(.btn) { color: var(--blue-dark); text-decoration: underline; text-underline-offset: 2px; } /* 4.4:1 → 5.7:1 on the map background */
.map__note { font-size: 14px; color: var(--muted); }
.contact__map { padding-bottom: 80px; }

/* Contact + form */
.contact { display: grid; gap: 40px; padding-block: 40px 80px; }
@media (min-width: 1024px) { .contact { grid-template-columns: minmax(0, 1fr) 360px; gap: 60px; } }
.contact__info { display: grid; gap: 1.25rem; align-content: start; }
.form { display: grid; gap: 1.1rem; }
.form__row { display: grid; gap: 1.1rem; }
@media (min-width: 640px) { .form__row { grid-template-columns: 1fr 1fr; } }
.form__req-note { margin: 0; font-size: 14px; color: var(--muted); }
.field { display: grid; gap: .35rem; }
.field label { font-weight: 700; color: var(--text); }
.field input, .field select, .field textarea {
	width: 100%; min-height: 48px; padding: .7rem .85rem; font: inherit; color: var(--text);
	background: var(--white); border: 1px solid #8a8a8a; border-radius: 0;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: var(--focus); outline-offset: 1px; border-color: var(--blue); }
.field [aria-invalid="true"] { border-color: var(--error); box-shadow: 0 0 0 1px var(--error); }
.field__hint { margin: 0; font-size: 14px; color: var(--muted); }
.field__error { margin: 0; font-size: 14px; font-weight: 700; color: var(--error); }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form [type="submit"] { justify-self: start; }
.form.is-sending [type="submit"] { opacity: .7; pointer-events: none; }
.notice { padding: 1rem 1.25rem; font-weight: 700; margin: 0; }
.notice--success { background: #e7f6ed; color: var(--success); border: 1px solid #b7e1c7; }
.notice--error { background: #fdecea; color: var(--error); border: 1px solid #f5c2bd; }
.form__status:focus { outline: none; }

/* Search, pagination, post navigation */
.search-form { display: flex; gap: .5rem; margin-bottom: 40px; max-width: 560px; }
.search-form label { flex: 1; }
.search-field { width: 100%; min-height: 46px; padding: .7rem .85rem; font: inherit; border: 1px solid #8a8a8a; }
.search-submit { min-height: 46px; padding: 0 1.25rem; border: 0; background: var(--purple); color: var(--white); font: 700 14px var(--font-body); letter-spacing: 2px; text-transform: uppercase; cursor: pointer; }
.search-results { padding-left: 1.25rem; }
.search-results h2 { font-size: 1.25rem; margin-bottom: .25rem; }
.pagination .nav-links, .post-navigation .nav-links { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 40px; }
.pagination .page-numbers { display: inline-flex; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; padding: 0 .75rem; border: 1px solid var(--line); }
.pagination .current { background: var(--blue); color: var(--white); border-color: var(--blue); }
.post-navigation .nav-links { justify-content: space-between; }
.post-navigation a { display: block; max-width: 32ch; }
.post-nav__label { display: block; font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: 1.5px; }

/* ==========================================================================
   Footer (blue band + darker copyright bar)
   ========================================================================== */
.site-footer { color: var(--white); background: var(--blue); border-top: 3px solid var(--white); } /* full-width, as on the current site */
.site-footer a { color: var(--white); }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.site-footer__grid {
	display: grid; gap: 40px; max-width: calc(1280px + 40px); margin: 0 auto; padding: 80px 20px;
}
@media (min-width: 900px) { .site-footer__grid { grid-template-columns: repeat(3, 1fr); } }
.site-footer__title { margin: 0 0 15px; color: var(--white); font: 400 24px/1.2 var(--font-body); text-transform: uppercase; }
.site-footer address { margin-bottom: 1em; }
.site-footer address a { display: block; }
.site-footer address .icon { display: none; }
.footer-menu, .legal-menu { list-style: none; padding: 0; margin: 0; }
.footer-menu li { margin-bottom: .4rem; }
.site-footer .hours { font-size: 16px; }
.site-footer .hours th, .site-footer .hours td { border: 0; padding: .1rem 0; }
.site-footer .hours td { text-align: right; padding-left: 1rem; }
.site-footer .hours tr.is-today th, .site-footer .hours tr.is-today td { color: var(--white); font-weight: 700; }
.site-footer__legal {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .25rem 1rem;
	padding: 20px; background: var(--blue-dark); font-size: 12px; text-align: center;
}
.site-footer__legal p { margin: 0; }
.legal-menu { display: flex; flex-wrap: wrap; gap: .25rem 1rem; }

/* ---------- Announcement popup (home page) ---------- */
.cb-popup { width: min(600px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 0; border: 0; background: var(--white); color: var(--text); box-shadow: 0 20px 60px rgba(0, 0, 0, .4); overflow: auto; }
.cb-popup::backdrop { background: rgba(0, 0, 0, .75); }
.cb-popup__inner { position: relative; padding: 50px 40px 40px; text-align: center; }
.cb-popup__close { position: absolute; top: 10px; right: 10px; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; background: none; border: 0; color: var(--blue); cursor: pointer; }
.cb-popup__close .icon { width: 30px; height: 30px; stroke-width: 3; }
.cb-popup__close:hover { color: var(--purple); }
.cb-popup__title, .cb-popup__text { margin: 0 0 1.2em; font: 700 21px/1.25 var(--font-body); color: var(--blue); }
.cb-popup__img { width: 100%; height: auto; margin: 0 auto; }
@media (max-width: 500px) { .cb-popup__inner { padding: 50px 20px 24px; } .cb-popup__title, .cb-popup__text { font-size: 18px; } }
@media (prefers-reduced-motion: no-preference) {
	.cb-popup[open] { animation: cb-popup-in .25s ease-out; }
	@keyframes cb-popup-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
}

/* ---------- Consent ---------- */
.consent { position: fixed; z-index: 600; inset: auto 1rem 1rem 1rem; max-width: 560px; margin-left: auto; background: var(--white); color: var(--text); border: 1px solid var(--line); box-shadow: 0 12px 40px rgba(0, 0, 0, .2); }
.consent__inner { padding: 1.25rem 1.35rem; max-height: 75vh; overflow-y: auto; }
.consent__title { font-size: 1.15rem; margin-bottom: .5rem; }
.consent__text { font-size: 14px; }
.consent__actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.consent__actions .btn { min-height: 44px; padding: .5rem 1rem; font-size: 13px; letter-spacing: 1px; flex: 1 1 auto; }
.consent__prefs fieldset { border: 0; padding: 0; margin: 0 0 1rem; display: grid; gap: .75rem; }
.switch { display: flex; gap: .65rem; align-items: flex-start; font-size: 14px; }
.switch input { width: 1.25rem; height: 1.25rem; margin-top: .15rem; accent-color: var(--blue); flex: none; }
.consent__gpc { font-size: 14px; color: var(--muted); margin: .75rem 0 0; }

/* ---------- Block editor palette classes (global-styles is dequeued) ---------- */
.has-blue-color { color: var(--blue) !important; }
.has-purple-color { color: var(--purple) !important; }
.has-plum-color { color: var(--plum) !important; }
.has-ink-color { color: var(--text) !important; }
.has-white-color { color: var(--white) !important; }
.has-blue-background-color { background-color: var(--blue) !important; }
.has-purple-background-color { background-color: var(--purple) !important; }
.has-plum-background-color { background-color: var(--plum) !important; }
.has-mist-background-color { background-color: var(--mist) !important; }
.has-white-background-color { background-color: var(--white) !important; }
.has-text-align-center { text-align: center; }
.has-text-align-right { text-align: right; }

/* ---------- Print ---------- */
@media print {
	.site-top, .consent, .cta-panels, .map { display: none !important; }
	.banner, .hero { min-height: 0; background: none !important; }
	.banner__inner, .hero__inner { padding-top: 0; }
	a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .8em; }
}

/* ---------- Windows high contrast ---------- */
@media (forced-colors: active) {
	.btn, .card, .side-card, .topbar__tab { border: 1px solid CanvasText; }
}
