/*
Theme Name: Stonehill Dental
Theme URI: https://www.stonehilldental.ca
Author: Stonehill Dental
Description: Custom, lightweight, mobile-first theme for Stonehill Dental (Hamilton, ON). No page builder required.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: stonehill
*/

/* Design tokens ------------------------------------------------------ */
:root {
	--navy: #13233d;
	--navy-2: #1c3254;
	--navy-3: #2a4570;
	--ink: #1a2230;
	--body: #3f4857;
	--muted: #6b7484;
	--line: #e4ddd2;
	--ivory: #faf7f2;
	--sand: #f1ebe1;
	--gold: #b08a55;
	--gold-2: #c9a46c;
	--white: #ffffff;
	--radius: 18px;
	--radius-sm: 10px;
	--shadow: 0 1px 2px rgba(19, 35, 61, .04), 0 12px 32px -12px rgba(19, 35, 61, .18);
	--shadow-lg: 0 30px 60px -30px rgba(19, 35, 61, .45);
	--font-display: "Fraunces", Georgia, "Times New Roman", serif;
	--font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--wrap: 1200px;
	--gutter: clamp(16px, 4vw, 40px);
	--header-h: 76px;
}

/* Base --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
	margin: 0;
	font-family: var(--font-body);
	font-size: 17px;
	line-height: 1.7;
	color: var(--body);
	background: var(--white);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}
img, svg, video, iframe { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-3); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--gold); }
h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-display);
	font-weight: 400;
	color: var(--ink);
	line-height: 1.15;
	letter-spacing: -0.01em;
	margin: 0 0 .5em;
	font-variation-settings: "opsz" 96;
}
h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
h4 { font-size: 1.15rem; }
p { margin: 0 0 1.1em; }
ul, ol { padding-left: 1.2em; }
::selection { background: var(--gold-2); color: var(--navy); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.screen-reader-text, .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:focus {
	position: fixed; top: 12px; left: 12px; z-index: 1000; width: auto; height: auto; clip: auto;
	background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px;
}

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap--narrow { max-width: 820px; }
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--ivory { background: var(--ivory); }
.section--sand { background: var(--sand); }
.section--navy { background: var(--navy); color: rgba(255,255,255,.78); }
.section--navy h2, .section--navy h3 { color: #fff; }

.eyebrow {
	display: inline-flex; align-items: center; gap: 10px;
	font-family: var(--font-body);
	font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
	color: var(--gold); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head--center .eyebrow::after { content: ""; width: 28px; height: 1px; background: currentColor; }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: var(--muted); }

/* Buttons ------------------------------------------------------------ */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 52px; padding: 0 26px;
	font: 600 .95rem/1 var(--font-body); letter-spacing: .01em;
	border-radius: 999px; border: 1px solid transparent;
	text-decoration: none; cursor: pointer;
	transition: background .25s, color .25s, border-color .25s, transform .25s, box-shadow .25s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--gold { background: var(--gold); color: #fff; }
.btn--gold:hover { background: var(--navy); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow); }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--gold); color: #fff; transform: translateY(-1px); }
.btn--ghost { border-color: rgba(255,255,255,.45); color: #fff; }
.btn--ghost:hover { background: #fff; color: var(--navy); }
.btn--outline { border-color: var(--navy); color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.link-arrow {
	display: inline-flex; align-items: center; gap: 8px;
	font-weight: 600; font-size: .92rem; color: var(--navy); text-decoration: none;
}
.link-arrow::after { content: "→"; transition: transform .25s; }
.link-arrow:hover::after { transform: translateX(4px); }

/* Utility bar -------------------------------------------------------- */
.utility {
	background: var(--navy); color: rgba(255,255,255,.75);
	font-size: .82rem;
}
.utility .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 40px; }
.utility a { color: #fff; text-decoration: none; }
.utility a:hover { color: var(--gold-2); }
.utility__items { display: flex; gap: 26px; align-items: center; }
.utility__item { display: inline-flex; align-items: center; gap: 8px; }
.utility svg { width: 14px; height: 14px; opacity: .7; }

/* Header ------------------------------------------------------------- */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(255,255,255,.94);
	-webkit-backdrop-filter: saturate(160%) blur(14px);
	backdrop-filter: saturate(160%) blur(14px);
	border-bottom: 1px solid transparent;
	transition: border-color .3s, box-shadow .3s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 8px 24px -18px rgba(19,35,61,.35); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--header-h); }
.brand { display: flex; align-items: center; text-decoration: none; flex: none; }
.brand img { height: 46px; width: auto; }
.brand__text { font-family: var(--font-display); font-size: 1.5rem; color: var(--navy); line-height: 1; }
.brand__text small { display: block; font-family: var(--font-body); font-size: .62rem; letter-spacing: .38em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav ul { list-style: none; margin: 0; padding: 0; }
.nav > ul { display: flex; align-items: center; gap: 2px; }
.nav li { position: relative; }
.nav a {
	display: flex; align-items: center; gap: 6px;
	padding: 10px 14px; border-radius: 999px;
	font-size: .93rem; font-weight: 500; color: var(--ink); text-decoration: none;
}
.nav a:hover, .nav .current-menu-item > a, .nav .current-menu-ancestor > a, .nav .current_page_item > a, .nav .current_page_ancestor > a { color: var(--gold); }
.nav .menu-item-has-children > a::after, .nav .page_item_has_children > a::after {
	content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
	transform: rotate(45deg) translateY(-2px); opacity: .6;
}
.nav .sub-menu, .nav .children {
	position: absolute; top: calc(100% + 6px); left: 0; min-width: 250px;
	background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 10px;
	box-shadow: var(--shadow-lg);
	opacity: 0; visibility: hidden; transform: translateY(6px);
	transition: opacity .2s, transform .2s, visibility .2s;
}
.nav li:hover > .sub-menu, .nav li:focus-within > .sub-menu,
.nav li:hover > .children, .nav li:focus-within > .children { opacity: 1; visibility: visible; transform: none; }
.nav .sub-menu a, .nav .children a { border-radius: 8px; padding: 10px 12px; font-size: .9rem; }
.nav .sub-menu a:hover, .nav .children a:hover { background: var(--ivory); color: var(--navy); }
.nav .sub-menu .sub-menu, .nav .children .children { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 0 10px; }

.header-cta { display: flex; align-items: center; gap: 12px; flex: none; }
.header-phone { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .93rem; color: var(--navy); text-decoration: none; }
.header-phone svg { width: 18px; height: 18px; color: var(--gold); }
.header-cta .btn { min-height: 46px; padding: 0 22px; }

.menu-toggle {
	display: none; width: 46px; height: 46px; border-radius: 50%;
	border: 1px solid var(--line); background: #fff; cursor: pointer; padding: 0;
	align-items: center; justify-content: center;
}
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
	display: block; width: 18px; height: 1.5px; background: var(--navy); position: relative; transition: transform .3s, background .3s;
}
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; }
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }
.menu-open .menu-toggle span { background: transparent; }
.menu-open .menu-toggle span::before { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

/* Mobile drawer */
.drawer {
	position: fixed; inset: 0; z-index: 60; pointer-events: none;
}
.drawer__scrim { position: absolute; inset: 0; background: rgba(19,35,61,.5); opacity: 0; transition: opacity .3s; }
.drawer__panel {
	position: absolute; top: 0; right: 0; bottom: 0; width: min(420px, 100%);
	background: #fff; display: flex; flex-direction: column;
	transform: translateX(100%); transition: transform .35s cubic-bezier(.2,.8,.2,1);
	overflow-y: auto; -webkit-overflow-scrolling: touch;
}
.menu-open .drawer { pointer-events: auto; }
.menu-open .drawer__scrim { opacity: 1; }
.menu-open .drawer__panel { transform: none; }
.drawer__head { display: flex; justify-content: space-between; align-items: center; padding: 16px; border-bottom: 1px solid var(--line); }
.drawer__close { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: #fff; font-size: 22px; line-height: 1; cursor: pointer; color: var(--navy); }
.drawer nav ul { list-style: none; margin: 0; padding: 0; }
.drawer nav > ul { padding: 8px 16px; }
.drawer nav li { border-bottom: 1px solid var(--line); }
.drawer nav li li { border: 0; }
.drawer nav a { display: block; padding: 14px 4px; color: var(--ink); text-decoration: none; font-size: 1.05rem; font-weight: 500; }
.drawer nav .sub-menu, .drawer nav .children { padding: 0 0 10px 14px; display: none; }
.drawer nav .sub-menu a, .drawer nav .children a { padding: 9px 4px; font-size: .95rem; color: var(--body); font-weight: 400; }
.drawer nav li.is-open > .sub-menu, .drawer nav li.is-open > .children { display: block; }
.drawer nav .has-sub { display: flex; align-items: center; justify-content: space-between; }
.drawer nav .sub-toggle { width: 44px; height: 44px; border: 0; background: none; cursor: pointer; color: var(--navy); font-size: 20px; }
.drawer nav li.is-open > .has-sub .sub-toggle { transform: rotate(45deg); }
.drawer__foot { margin-top: auto; padding: 20px 16px 28px; background: var(--ivory); display: grid; gap: 10px; }
.drawer__foot .btn { width: 100%; }
.drawer__meta { font-size: .9rem; color: var(--muted); margin-top: 6px; }

/* Hero --------------------------------------------------------------- */
.hero {
	position: relative; isolation: isolate; overflow: hidden;
	background: var(--navy);
	color: rgba(255,255,255,.85);
}
.hero__media { position: absolute; top: 0; bottom: 0; right: 0; left: 44%; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 55%; }
.hero::before {
	content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
	background:
		linear-gradient(90deg, var(--navy) 0%, var(--navy) 44%, rgba(19,35,61,.55) 50%, rgba(19,35,61,0) 62%),
		linear-gradient(0deg, rgba(19,35,61,.45) 0%, rgba(19,35,61,0) 30%);
}
.hero .wrap { min-height: min(82vh, 720px); display: flex; align-items: center; padding-top: 80px; padding-bottom: 120px; }
.hero__content { max-width: 520px; }
.hero__content h1 { font-size: clamp(2.3rem, 4.6vw, 3.6rem); }
.hero h1 { color: #fff; margin-bottom: 22px; }
.hero h1 em { font-style: italic; color: var(--gold-2); }
.hero .lead { color: rgba(255,255,255,.8); margin-bottom: 34px; max-width: 540px; }
.hero .eyebrow { color: var(--gold-2); }
.hero__badges { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 34px; font-size: .88rem; }
.hero__badges span { display: inline-flex; align-items: center; gap: 8px; }
.hero__badges svg { width: 18px; height: 18px; color: var(--gold-2); }

/* Quick info strip overlapping hero */
.quickbar { position: relative; z-index: 2; margin-top: -64px; }
.quickbar__grid {
	display: grid; grid-template-columns: repeat(3, 1fr);
	background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden;
}
.quickbar__item { display: flex; gap: 16px; align-items: flex-start; padding: 28px 30px; border-right: 1px solid var(--line); text-decoration: none; color: var(--body); }
.quickbar__item:last-child { border-right: 0; }
a.quickbar__item:hover { background: var(--ivory); color: var(--body); }
.quickbar__icon { flex: none; width: 46px; height: 46px; border-radius: 50%; background: var(--ivory); color: var(--gold); display: grid; place-items: center; }
.quickbar__icon svg { width: 20px; height: 20px; }
.quickbar__label, .quickbar__value { display: block; }
.quickbar__label { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 4px; }
.quickbar__value { font-family: var(--font-display); font-size: 1.2rem; color: var(--ink); line-height: 1.3; }
.quickbar__value small { display: block; font-family: var(--font-body); font-size: .85rem; color: var(--muted); margin-top: 2px; }

/* Intro / split ------------------------------------------------------ */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(36px, 6vw, 90px); align-items: center; }
.split--rev .split__media { order: 2; }
.split__media { position: relative; }
.split__media img { border-radius: var(--radius); width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.split__media--wide img { aspect-ratio: 4/3; }
.split__badge {
	position: absolute; right: -18px; bottom: 34px;
	background: var(--navy); color: #fff; border-radius: 16px; padding: 22px 24px; box-shadow: var(--shadow-lg);
	max-width: 220px;
}
.split__badge strong { display: block; font-family: var(--font-display); font-weight: 400; font-size: 2.6rem; line-height: 1; color: var(--gold-2); }
.split__badge span { font-size: .85rem; color: rgba(255,255,255,.8); }
.checklist { list-style: none; padding: 0; margin: 24px 0 32px; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist li::before {
	content: ""; flex: none; width: 22px; height: 22px; margin-top: 3px; border-radius: 50%;
	background: var(--ivory) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b08a55' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/12px no-repeat;
	border: 1px solid var(--line);
}

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); margin-top: clamp(48px, 6vw, 80px); }
.stat { padding: 30px 20px 0; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat strong { display: block; font-family: var(--font-display); font-weight: 400; font-size: clamp(2.2rem, 4vw, 3rem); color: var(--navy); line-height: 1; margin-bottom: 8px; }
.stat span { font-size: .9rem; color: var(--muted); }

/* Service cards ------------------------------------------------------ */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.cards--4 { grid-template-columns: repeat(4, 1fr); }
.card {
	position: relative; display: flex; flex-direction: column;
	background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
	padding: 32px 30px; text-decoration: none; color: var(--body);
	transition: transform .3s, box-shadow .3s, border-color .3s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; color: var(--body); }
.card__icon { width: 54px; height: 54px; border-radius: 14px; background: var(--ivory); color: var(--gold); display: grid; place-items: center; margin-bottom: 22px; transition: background .3s, color .3s; }
.card:hover .card__icon { background: var(--navy); color: var(--gold-2); }
.card__icon svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: 10px; }
.card p { font-size: .95rem; color: var(--muted); margin-bottom: 20px; }
.card .link-arrow { margin-top: auto; }
.card__list { list-style: none; padding: 0; margin: 0 0 22px; font-size: .92rem; display: grid; gap: 6px; }
.card__list li::before { content: "—"; color: var(--gold); margin-right: 8px; }

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.pillar { background: #fff; border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.pillar__top { background: var(--navy); color: #fff; padding: 34px 30px 30px; position: relative; }
.pillar__top h3 { color: #fff; margin: 0 0 8px; }
.pillar__top p { color: rgba(255,255,255,.72); margin: 0; font-size: .95rem; }
.pillar__num { position: absolute; right: 26px; top: 22px; font-family: var(--font-display); font-size: 2.4rem; color: rgba(201,164,108,.35); line-height: 1; }
.pillar__body { padding: 26px 30px 30px; display: flex; flex-direction: column; flex: 1; }
.pillar__body ul { list-style: none; padding: 0; margin: 0 0 24px; }
.pillar__body li { border-bottom: 1px solid var(--line); }
.pillar__body li a { display: flex; justify-content: space-between; padding: 11px 0; text-decoration: none; color: var(--ink); font-size: .95rem; }
.pillar__body li a::after { content: "→"; color: var(--gold); opacity: 0; transform: translateX(-6px); transition: .25s; }
.pillar__body li a:hover { color: var(--gold); }
.pillar__body li a:hover::after { opacity: 1; transform: none; }
.pillar__body .btn { margin-top: auto; align-self: flex-start; }

/* Featured (image tiles) */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tile {
	position: relative; overflow: hidden; border-radius: var(--radius); min-height: 220px;
	background: var(--navy-2); color: #fff; text-decoration: none; padding: 26px; display: flex; flex-direction: column; justify-content: flex-end;
}
.tile::before { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 90% at 100% 0%, rgba(201,164,108,.35), transparent 60%); transition: opacity .3s; }
.tile:hover { color: #fff; }
.tile:hover::before { opacity: .6; }
.tile h3 { color: #fff; position: relative; margin: 0 0 6px; }
.tile p { position: relative; margin: 0; font-size: .9rem; color: rgba(255,255,255,.72); }
.tile svg { position: absolute; top: 24px; left: 26px; width: 30px; height: 30px; color: var(--gold-2); }

/* Doctor / team ------------------------------------------------------ */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.member { background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; }
.member__photo { aspect-ratio: 1/1; background: var(--ivory); overflow: hidden; padding: 28px 28px 0; }
.member__photo img { width: 100%; height: 100%; object-fit: contain; object-position: center bottom; transition: transform .6s; }
.member:hover .member__photo img { transform: scale(1.03); }
.member__body { padding: 24px 26px 28px; }
.member__role { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); font-weight: 600; margin-bottom: 6px; }
.member h3 { margin-bottom: 12px; }
.member__bio { font-size: .94rem; color: var(--muted); }
.member__bio p:last-child { margin-bottom: 0; }
.member details summary { cursor: pointer; font-weight: 600; font-size: .9rem; color: var(--navy); list-style: none; margin-top: 8px; }
.member details summary::-webkit-details-marker { display: none; }
.member details summary::after { content: " +"; color: var(--gold); }
.member details[open] summary::after { content: " –"; }
.member details[open] summary { margin-bottom: 10px; }

.dentists { display: grid; gap: 28px; }
.dentist { display: grid; grid-template-columns: 320px 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; background: #fff; border-radius: var(--radius); padding: clamp(20px, 3vw, 36px); border: 1px solid var(--line); }
.dentist__photo { overflow: hidden; aspect-ratio: 1/1; }
.dentist__photo img { width: 100%; height: 100%; object-fit: contain; }
.dentist blockquote { margin: 22px 0 0; padding: 18px 22px; border-left: 2px solid var(--gold); background: var(--ivory); border-radius: 0 12px 12px 0; font-family: var(--font-display); font-size: 1.15rem; color: var(--ink); font-style: italic; }

/* Testimonials ------------------------------------------------------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.quote {
	background: #fff; border-radius: var(--radius); padding: 32px 30px; margin: 0;
	border: 1px solid var(--line); display: flex; flex-direction: column;
}
.section--navy .quote { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.1); }
.stars { display: flex; gap: 3px; color: var(--gold-2); margin-bottom: 16px; }
.stars svg { width: 16px; height: 16px; }
.quote p { font-family: var(--font-display); font-size: 1.12rem; line-height: 1.55; color: var(--ink); margin-bottom: 22px; }
.section--navy .quote p { color: #fff; }
.quote cite { margin-top: auto; font-style: normal; font-weight: 600; font-size: .9rem; color: var(--navy); }
.section--navy .quote cite { color: var(--gold-2); }
.quotes--masonry { display: block; columns: 3 320px; column-gap: 22px; }
.quotes--masonry .quote { break-inside: avoid; margin-bottom: 22px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.step { position: relative; padding-top: 30px; border-top: 1px solid var(--line); }
.step::before { counter-increment: step; content: "0" counter(step); position: absolute; top: -14px; left: 0; background: var(--ivory); padding-right: 12px; font-family: var(--font-display); font-size: 1.35rem; color: var(--gold); line-height: 1; }
.section:not(.section--ivory) .step::before { background: #fff; }
.step h3 { font-size: 1.2rem; }
.step p { font-size: .94rem; color: var(--muted); margin: 0; }

/* Logos */
.logos { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 20px 44px; }
.logos img { height: 54px; width: auto; filter: grayscale(1); opacity: .7; transition: .3s; object-fit: contain; }
.logos img:hover { filter: none; opacity: 1; }

/* CTA band ----------------------------------------------------------- */
.cta-band {
	position: relative; overflow: hidden; border-radius: 26px;
	background: var(--navy); color: rgba(255,255,255,.8);
	padding: clamp(40px, 6vw, 76px) clamp(24px, 6vw, 76px);
	display: grid; grid-template-columns: 1.4fr auto; gap: 32px; align-items: center;
}
.cta-band::after { content: ""; position: absolute; width: 520px; height: 520px; right: -160px; top: -220px; border-radius: 50%; border: 1px solid rgba(201,164,108,.3); box-shadow: 0 0 0 60px rgba(201,164,108,.05), 0 0 0 120px rgba(201,164,108,.04); pointer-events: none; }
.cta-band h2 { color: #fff; margin-bottom: 10px; }
.cta-band p { margin: 0; }
.cta-band .btn-row { position: relative; z-index: 1; }

/* Contact / map ------------------------------------------------------ */
.visit { display: grid; grid-template-columns: 1fr 1.2fr; gap: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #fff; }
.visit__info { padding: clamp(28px, 4vw, 52px); }
.visit__map { min-height: 420px; background: var(--sand); }
.visit__map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; }
.info-list { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 22px; }
.info-list li { display: flex; gap: 16px; }
.info-list .quickbar__icon { width: 42px; height: 42px; }
.info-list strong { display: block; color: var(--ink); font-weight: 600; margin-bottom: 2px; }
.info-list a { color: var(--body); text-decoration: none; }
.info-list a:hover { color: var(--gold); }
.hours { width: 100%; border-collapse: collapse; font-size: .95rem; }
.hours td { padding: 7px 0; border-bottom: 1px dashed var(--line); }
.hours td:last-child { text-align: right; color: var(--ink); font-weight: 500; }
.hours tr.is-today td { color: var(--gold); font-weight: 600; }
.hours-note { font-size: .85rem; color: var(--muted); margin-top: 10px; }
.getting-here { display: grid; gap: 24px; margin-top: 24px; }
.getting-here figure { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--sand); }
.getting-here img { display: block; width: 100%; height: 100%; object-fit: cover; }
.getting-here__main { position: relative; }
.getting-here__main img { height: auto; }
.getting-here__main figcaption { position: absolute; left: 16px; bottom: 16px; background: rgba(19,35,61,.86); color: #fff; font-size: .9rem; padding: 8px 14px; border-radius: 999px; }
.getting-here__side { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; }
.getting-here__side figure img { aspect-ratio: 16/9; }
.getting-here__text { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(24px, 3vw, 40px); align-self: stretch; display: flex; flex-direction: column; justify-content: center; }
.getting-here__text h3 { margin: 6px 0 12px; }
.getting-here__text ul { margin: 0; padding-left: 1.1em; display: grid; gap: 8px; color: var(--body); }

/* Page hero ---------------------------------------------------------- */
.page-hero { background: var(--ivory); padding: clamp(48px, 7vw, 96px) 0 clamp(40px, 6vw, 72px); position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%; border: 1px solid var(--line); box-shadow: 0 0 0 50px rgba(176,138,85,.04), 0 0 0 100px rgba(176,138,85,.03); pointer-events: none; }
.page-hero h1 { max-width: 900px; margin-bottom: 14px; }
.page-hero .lead { max-width: 720px; margin: 0; }
.crumbs { font-size: .84rem; color: var(--muted); margin-bottom: 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--gold); }
.crumbs span[aria-hidden] { opacity: .5; }

/* Content + sidebar layout */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(36px, 5vw, 72px); align-items: start; }
.layout--full { grid-template-columns: minmax(0, 1fr); }
.sidebar { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 18px; }
.side-card { background: var(--navy); color: rgba(255,255,255,.8); border-radius: var(--radius); padding: 30px 28px; }
.side-card h3 { color: #fff; margin-bottom: 8px; }
.side-card p { font-size: .94rem; }
.side-card .btn { width: 100%; margin-top: 8px; }
.side-card .hours td { border-color: rgba(255,255,255,.15); }
.side-card .hours td:last-child { color: #fff; }
.side-card--light { background: var(--ivory); color: var(--body); }
.side-card--light h3 { color: var(--ink); }
.side-nav { list-style: none; padding: 0; margin: 0; }
.side-nav li a { display: block; padding: 9px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); font-size: .94rem; }
.side-nav li a:hover, .side-nav li.is-current a { color: var(--gold); }

/* Prose -------------------------------------------------------------- */
.prose { font-size: 1.05rem; }
.prose > *:first-child { margin-top: 0; }
.prose h2 { font-size: clamp(1.55rem, 2.6vw, 2rem); margin: 1.8em 0 .6em; }
.prose h3 { margin: 1.6em 0 .5em; }
.prose p.lede, .prose > p:first-child { font-size: 1.2rem; color: var(--ink); }
.prose ul li, .prose ol li { margin-bottom: .45em; }
.prose ul li::marker { color: var(--gold); }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 24px; border-left: 2px solid var(--gold); font-family: var(--font-display); font-size: 1.25rem; color: var(--ink); }
.prose img { border-radius: 14px; margin: 1.5em 0; }
.prose .wp-block-image img { margin: 0; }
.prose figure { margin: 1.5em 0; }
.prose table { width: 100%; border-collapse: collapse; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: 10px 8px; text-align: left; }
.prose iframe { width: 100%; aspect-ratio: 16/9; border: 0; border-radius: 14px; }
.prose .gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.prose .gallery-grid img { margin: 0; aspect-ratio: 1/1; object-fit: cover; width: 100%; }
.alignwide { max-width: none; }
.aligncenter { margin-left: auto; margin-right: auto; }

/* Forms (Contact Form 7 + generic) */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 4vw, 44px); box-shadow: var(--shadow); }
.wpcf7 p, .form-card p { margin-bottom: 18px; }
.wpcf7 label, .form-card label { display: block; font-weight: 600; font-size: .9rem; color: var(--ink); }
input[type=text], input[type=email], input[type=tel], input[type=date], input[type=number], input[type=url], input[type=search], select, textarea {
	width: 100%; margin-top: 6px; padding: 14px 16px; min-height: 52px;
	font: 400 1rem/1.4 var(--font-body); color: var(--ink);
	background: var(--ivory); border: 1px solid var(--line); border-radius: 12px;
	transition: border-color .2s, background .2s, box-shadow .2s;
	-webkit-appearance: none; appearance: none;
}
textarea { min-height: 140px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); background: #fff; box-shadow: 0 0 0 4px rgba(176,138,85,.15); }
.wpcf7-list-item { display: inline-flex; margin: 8px 16px 0 0; font-weight: 400; }
.wpcf7-list-item label { font-weight: 400; display: inline-flex; gap: 8px; align-items: center; }
input[type=checkbox], input[type=radio] { width: 18px; height: 18px; accent-color: var(--gold); }
input[type=submit], button[type=submit] {
	min-height: 54px; padding: 0 32px; border: 0; border-radius: 999px; cursor: pointer;
	background: var(--gold); color: #fff; font: 600 1rem/1 var(--font-body);
	transition: background .25s;
}
input[type=submit]:hover, button[type=submit]:hover { background: var(--navy); }
.related-service { margin-top: 40px; padding: 22px 24px; background: var(--ivory); border-left: 3px solid var(--gold); border-radius: 12px; }
.related-service p { margin: 6px 0 0; }
.field-note { display: block; margin-top: 6px; font-size: .85rem; font-weight: 400; color: var(--muted); }
.field-note.is-error { color: #b42318; }
input[type=date] { cursor: pointer; }
input[type=date]::-webkit-calendar-picker-indicator { cursor: pointer; opacity: .7; }
.wpcf7 fieldset { border: 0; padding: 0; margin: 0 0 18px; min-width: 0; }
.wpcf7 legend { padding: 0; font-weight: 600; font-size: .9rem; color: var(--ink); }
.wpcf7-not-valid-tip { font-size: .85rem; color: #b42318; margin-top: 4px; }
.wpcf7 form .wpcf7-response-output { border-radius: 12px; padding: 14px 16px; margin: 16px 0 0; }

/* Blog --------------------------------------------------------------- */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.post-card { display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--body); transition: transform .3s, box-shadow .3s; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: var(--body); }
.post-card__img { aspect-ratio: 16/10; background: linear-gradient(135deg, var(--navy), var(--navy-3)); overflow: hidden; }
.post-card__img img { width: 100%; height: 100%; object-fit: cover; }
.post-card__body { padding: 24px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.post-card time { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.post-card h3 { margin: 10px 0 10px; font-size: 1.3rem; }
.post-card p { font-size: .94rem; color: var(--muted); }
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 48px; }
.pagination .page-numbers { min-width: 44px; height: 44px; display: grid; place-items: center; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; color: var(--ink); padding: 0 12px; }
.pagination .current { background: var(--navy); color: #fff; border-color: var(--navy); }

/* Footer ------------------------------------------------------------- */
.site-footer { background: #0d1a2e; color: rgba(255,255,255,.66); font-size: .94rem; padding-top: clamp(56px, 7vw, 90px); }
.site-footer a { color: rgba(255,255,255,.8); text-decoration: none; }
.site-footer a:hover { color: var(--gold-2); }
.site-footer h4 { font-family: var(--font-body); font-size: .76rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-2); margin-bottom: 18px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 56px; }
.footer-brand .brand__text { color: #fff; }
.footer-brand .brand__text small { color: rgba(255,255,255,.5); }
.footer-brand p { margin-top: 18px; max-width: 320px; }
.footer-brand img { height: 56px; width: auto; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-social { display: flex; gap: 10px; margin-top: 22px; }
.footer-social a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.18); display: grid; place-items: center; }
.footer-social a:hover { border-color: var(--gold-2); }
.footer-social svg { width: 16px; height: 16px; }
.site-footer .hours td { border-color: rgba(255,255,255,.1); }
.site-footer .hours td:last-child { color: #fff; }
.site-footer .hours-note { color: rgba(255,255,255,.5); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 22px 0; font-size: .84rem; }
.footer-bottom .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* Mobile action bar */
.action-bar { display: none; }

/* Reveal animation */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.js .reveal { opacity: 1; transform: none; transition: none; }
	*, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Responsive --------------------------------------------------------- */
@media (max-width: 1180px) {
	.header-phone { display: none; }
	.nav a { padding: 10px 10px; font-size: .9rem; }
}
@media (max-width: 1020px) {
	:root { --header-h: 68px; }
	.nav, .header-cta .btn { display: none; }
	.hero__media { left: 0; }
	.hero::before { background: linear-gradient(90deg, rgba(19,35,61,.92) 0%, rgba(19,35,61,.75) 55%, rgba(19,35,61,.35) 100%); }
	.menu-toggle { display: inline-flex; }
	.header-phone { display: inline-flex; }
	.header-phone span { display: none; }
	.header-phone { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); justify-content: center; }
	.utility { display: none; }
	.cards, .pillars, .posts, .team-grid, .quotes { grid-template-columns: repeat(2, 1fr); }
	.tiles, .steps, .cards--4 { grid-template-columns: repeat(2, 1fr); }
	.stats { grid-template-columns: repeat(2, 1fr); }
	.stat:nth-child(3) { border-left: 0; padding-left: 0; }
	.footer-grid { grid-template-columns: 1fr 1fr; }
	.layout { grid-template-columns: 1fr; }
	.sidebar { position: static; }
	.dentist { grid-template-columns: 240px 1fr; }
	.split__badge { right: 12px; }
}
@media (max-width: 760px) {
	body { font-size: 16px; padding-bottom: 72px; }
	.brand img { height: 40px; }
	.hero .wrap { min-height: auto; padding-top: 36px; padding-bottom: 96px; }
	.hero::before { display: none; }
	.hero__media { position: relative; left: auto; aspect-ratio: 3 / 2; z-index: 0; }
	.hero__media::after { content: ""; position: absolute; inset: auto 0 0 0; height: 40%; background: linear-gradient(0deg, var(--navy), rgba(19,35,61,0)); }
	.hero .btn-row .btn { flex: 1 1 100%; }
	.quickbar { margin-top: -48px; }
	.quickbar__grid { grid-template-columns: 1fr; }
	.quickbar__item { border-right: 0; border-bottom: 1px solid var(--line); padding: 20px 22px; }
	.quickbar__item:last-child { border-bottom: 0; }
	.split, .visit, .cta-band, .dentist, .getting-here__side { grid-template-columns: 1fr; }
	.getting-here__main figcaption { position: static; border-radius: 0; }
	.split--rev .split__media { order: 0; }
	.split__media img { aspect-ratio: 4/3; }
	.split__badge { position: static; margin-top: -40px; margin-left: 16px; display: inline-block; position: relative; }
	.cards, .pillars, .posts, .team-grid, .quotes, .tiles, .steps, .cards--4 { grid-template-columns: 1fr; }
	.stats { grid-template-columns: 1fr 1fr; }
	.stat { padding: 22px 14px 0; }
	.footer-grid { grid-template-columns: 1fr; gap: 32px; }
	.visit__map, .visit__map iframe { min-height: 300px; }
	.dentist__photo { max-width: 280px; }
	.card { padding: 26px 24px; }
	.cta-band { border-radius: 20px; }
	.cta-band .btn { flex: 1 1 100%; }

	.action-bar {
		display: grid; grid-template-columns: 1fr 1fr 1fr;
		position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
		background: #fff; border-top: 1px solid var(--line);
		padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
		box-shadow: 0 -10px 30px -15px rgba(19,35,61,.35);
		gap: 6px;
	}
	.action-bar a {
		display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
		min-height: 52px; border-radius: 12px; text-decoration: none;
		font-size: .74rem; font-weight: 600; color: var(--navy);
	}
	.action-bar a svg { width: 20px; height: 20px; color: var(--gold); }
	.action-bar a.is-primary { background: var(--navy); color: #fff; }
	.action-bar a.is-primary svg { color: var(--gold-2); }
}

.split__media--portrait img { aspect-ratio: 1/1; object-fit: contain; border-radius: 0; }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq__item { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 0 24px; }
.faq__item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary h3 { margin: 0; font-size: 1.15rem; }
.faq__item summary::after { content: "+"; flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--ivory); color: var(--gold); font-size: 1.2rem; transition: transform .25s; }
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p { margin: 0 0 22px; color: var(--muted); }
.hero__media img { width: 100%; height: 100%; }
.page-updated { font-size: .82rem; color: var(--muted); margin-top: 18px; }
p.eyebrow { margin-top: 0; }
/* Use text optical size for smaller serif headings (more open letter spacing) */
h3, h4, h5, h6, .faq__item summary h3, .quickbar__value, .pillar__top h3, .card h3, .tile h3, .member h3, .post-card h3 { font-variation-settings: "opsz" 24; letter-spacing: 0; }
.faq__item summary h3 { font-size: 1.12rem; line-height: 1.4; }
