/* =========================================================================
   Windsor Dental Centre — Joomla 6 template
   Lightweight, modern, subtle animation. Brand-driven CSS custom properties.
   ========================================================================= */

/* ---- Design tokens (overridable values injected inline from params) ---- */
:root {
	--wd-primary: #c72c2f;
	--wd-accent: #f58328;
	--wd-bg: #f6f3ed;
	--wd-ink: #1c1c1c;
	--wd-dark: #223044;
	--wd-container: 1200px;
	--wd-logo-h: 56px;
	--wd-logo-sticky-h: 44px;
	--wd-font-heading: "Poppins", system-ui, sans-serif;
	--wd-font-body: "Inter", system-ui, sans-serif;

	/* Derived neutrals */
	--wd-bg-2: #fffdf9;
	--wd-card: #ffffff;
	--wd-muted: #6b665d;
	--wd-line: rgba(28, 28, 28, 0.10);
	--wd-shadow-sm: 0 2px 8px rgba(28, 28, 28, 0.06);
	--wd-shadow-md: 0 10px 30px rgba(28, 28, 28, 0.08);
	--wd-shadow-lg: 0 20px 50px rgba(28, 28, 28, 0.12);
	--wd-radius: 14px;
	--wd-radius-sm: 9px;
	--wd-radius-pill: 999px;
	--wd-header-h: 80px;
	--wd-ease: cubic-bezier(0.16, 1, 0.3, 1);
	--wd-transition: 0.35s var(--wd-ease);
}

/* ----------------------------- Reset ----------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	font-family: var(--wd-font-body);
	font-size: 17px;
	line-height: 1.65;
	color: var(--wd-ink);
	background: var(--wd-bg);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

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

a { color: var(--wd-primary); text-decoration: none; transition: color var(--wd-transition); }
a:hover { color: var(--wd-accent); }

h1, h2, h3, h4, h5, h6 {
	font-family: var(--wd-font-heading);
	color: var(--wd-ink);
	line-height: 1.2;
	margin: 0 0 0.6em;
	font-weight: 600;
	letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.1rem, 4vw, 3.1rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
h3 { font-size: 1.35rem; }

p { margin: 0 0 1.1em; }

/* --------------------------- Utilities --------------------------------- */
.wd-container {
	width: 100%;
	max-width: var(--wd-container);
	margin-inline: auto;
	padding-inline: 24px;
}

.wd-skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 1000;
	background: var(--wd-primary);
	color: #fff;
	padding: 10px 16px;
	border-radius: 0 0 var(--wd-radius-sm) 0;
}
.wd-skip-link:focus { left: 0; color: #fff; }

/* --------------------------- Buttons ----------------------------------- */
.wd-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5em;
	font-family: var(--wd-font-heading);
	font-weight: 600;
	font-size: 0.97rem;
	line-height: 1;
	padding: 0.85em 1.6em;
	border-radius: var(--wd-radius-pill);
	border: 2px solid transparent;
	cursor: pointer;
	transition: transform var(--wd-transition), box-shadow var(--wd-transition), background var(--wd-transition), color var(--wd-transition);
	white-space: nowrap;
}
.wd-btn--accent { background: var(--wd-accent); color: #fff; box-shadow: 0 6px 18px rgba(245, 131, 40, 0.32); }
.wd-btn--accent:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 10px 26px rgba(245, 131, 40, 0.42); }
.wd-btn--primary { background: var(--wd-primary); color: #fff; box-shadow: 0 6px 18px rgba(199, 44, 47, 0.28); }
.wd-btn--primary:hover { color: #fff; transform: translateY(-2px); }
.wd-btn--outline { background: transparent; color: var(--wd-ink); border-color: var(--wd-line); }
.wd-btn--outline:hover { border-color: var(--wd-primary); color: var(--wd-primary); transform: translateY(-2px); }

/* --------------------------- Top bar ----------------------------------- */
.wd-topbar {
	background: var(--wd-dark);
	color: rgba(255, 255, 255, 0.85);
	font-size: 0.86rem;
}
.wd-topbar__inner {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 28px;
	min-height: 42px;
	flex-wrap: wrap;
}
.wd-topbar__info { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.wd-topbar__item { display: inline-flex; align-items: center; gap: 7px; color: rgba(255, 255, 255, 0.85); }
.wd-topbar__item:hover { color: #fff; }
.wd-topbar__item svg { width: 15px; height: 15px; fill: var(--wd-accent); flex: 0 0 auto; }
.wd-topbar__social { display: inline-flex; gap: 6px; }
.wd-topbar__social a { display: inline-flex; padding: 6px; border-radius: 50%; transition: background var(--wd-transition); }
.wd-topbar__social a svg { width: 15px; height: 15px; fill: rgba(255, 255, 255, 0.85); transition: fill var(--wd-transition); }
.wd-topbar__social a:hover { background: rgba(255, 255, 255, 0.12); }
.wd-topbar__social a:hover svg { fill: #fff; }

/* --------------------------- Header ------------------------------------ */
.wd-header {
	background: var(--wd-bg);
	border-bottom: 1px solid transparent;
	position: relative;
	z-index: 100;
	transition: box-shadow var(--wd-transition), background var(--wd-transition), padding var(--wd-transition);
}
.wd-header__inner {
	display: flex;
	align-items: center;
	gap: 28px;
	min-height: var(--wd-header-h);
	padding-top: 16px;
}
.wd-logo { display: inline-flex; align-items: center; }
.wd-logo__img { max-height: var(--wd-logo-h); width: auto; transition: max-height var(--wd-transition); }

.wd-nav { margin-left: auto; }
.wd-header__actions { display: flex; align-items: center; gap: 14px; }

/* Sticky header behaviour */
.has-sticky-header .wd-header.is-sticky {
	position: fixed;
	top: 0; left: 0; right: 0;
	background: color-mix(in srgb, var(--wd-bg) 88%, #fff);
	backdrop-filter: saturate(140%) blur(10px);
	box-shadow: var(--wd-shadow-sm);
	animation: wdSlideDown 0.4s var(--wd-ease);
}
.has-sticky-header .wd-header.is-sticky .wd-header__inner { min-height: 64px; padding-top: 0; }
.has-sticky-header .wd-header.is-sticky .wd-logo__img { max-height: var(--wd-logo-sticky-h); }
.has-sticky-header.header-pinned { padding-top: var(--wd-header-h); }

@keyframes wdSlideDown {
	from { transform: translateY(-100%); }
	to { transform: translateY(0); }
}

/* --------------------------- Main menu --------------------------------- */
.wd-nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	align-items: center;
	gap: 4px;
}
.wd-nav ul ul { display: none; }
.wd-nav > ul > li { position: relative; }
.wd-nav > ul > li > a,
.wd-nav > ul > li > span {
	display: inline-block;
	padding: 10px 14px;
	font-family: var(--wd-font-heading);
	font-weight: 500;
	font-size: 0.98rem;
	color: var(--wd-ink);
	position: relative;
}
.wd-nav > ul > li > a::after {
	content: "";
	position: absolute;
	left: 14px; right: 14px;
	bottom: 4px;
	height: 2px;
	background: var(--wd-accent);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform var(--wd-transition);
	border-radius: 2px;
}
.wd-nav > ul > li > a:hover { color: var(--wd-primary); }
.wd-nav > ul > li > a:hover::after,
.wd-nav > ul > li.current > a::after,
.wd-nav > ul > li.active > a::after { transform: scaleX(1); }
.wd-nav > ul > li.current > a,
.wd-nav > ul > li.active > a { color: var(--wd-primary); }

/* Dropdowns */
.wd-nav li.parent > a,
.wd-nav li.deeper > a { padding-right: 24px; }
.wd-nav li.parent > a::before {
	content: "";
	position: absolute;
	right: 8px; top: 50%;
	width: 6px; height: 6px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: translateY(-70%) rotate(45deg);
	opacity: 0.6;
}
.wd-nav > ul > li.parent:hover > ul,
.wd-nav > ul > li.parent:focus-within > ul {
	display: block;
	position: absolute;
	top: 100%; left: 0;
	min-width: 220px;
	background: var(--wd-card);
	border-radius: var(--wd-radius-sm);
	box-shadow: var(--wd-shadow-md);
	padding: 8px;
	animation: wdFadeUp 0.25s var(--wd-ease);
	z-index: 50;
}
.wd-nav ul ul li a {
	display: block;
	padding: 9px 12px;
	border-radius: var(--wd-radius-sm);
	color: var(--wd-ink);
	font-size: 0.95rem;
	font-family: var(--wd-font-heading);
	font-weight: 500;
}
.wd-nav ul ul li a:hover { background: var(--wd-bg); color: var(--wd-primary); }

@keyframes wdFadeUp {
	from { opacity: 0; transform: translateY(8px); }
	to { opacity: 1; transform: translateY(0); }
}

/* --------------------------- Mobile nav -------------------------------- */
.wd-nav-toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 44px; height: 44px;
	background: transparent;
	border: 0;
	cursor: pointer;
	padding: 10px;
}
.wd-nav-toggle__bar {
	display: block;
	height: 2px;
	width: 100%;
	background: var(--wd-ink);
	border-radius: 2px;
	transition: transform var(--wd-transition), opacity var(--wd-transition);
}
.wd-nav-toggle[aria-expanded="true"] .wd-nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.wd-nav-toggle[aria-expanded="true"] .wd-nav-toggle__bar:nth-child(2) { opacity: 0; }
.wd-nav-toggle[aria-expanded="true"] .wd-nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.wd-mobile-nav {
	display: none;
	background: var(--wd-bg-2);
	border-bottom: 1px solid var(--wd-line);
	padding: 16px 24px 24px;
}
.wd-mobile-nav.is-open { display: block; animation: wdFadeUp 0.3s var(--wd-ease); }
.wd-mobile-nav ul { list-style: none; margin: 0; padding: 0; }
.wd-mobile-nav ul a,
.wd-mobile-nav ul span {
	display: block;
	padding: 12px 6px;
	border-bottom: 1px solid var(--wd-line);
	font-family: var(--wd-font-heading);
	font-weight: 500;
	color: var(--wd-ink);
}
.wd-mobile-nav ul ul a { padding-left: 22px; font-weight: 400; font-size: 0.95rem; }
.wd-mobile-nav__cta { margin-top: 18px; width: 100%; }

/* --------------------------- Hero -------------------------------------- */
.wd-hero {
	position: relative;
	display: flex;
	align-items: center;
	background-color: var(--wd-ink);
	overflow: hidden;
}
.wd-hero--standard { min-height: 560px; }
.wd-hero--tall { min-height: 680px; }
.wd-hero--full { min-height: calc(100vh - var(--wd-header-h)); }

/* Dedicated background layer (so parallax can transform it independently) */
.wd-hero__bg {
	position: absolute;
	inset: 0;
	z-index: 0;
	background-color: var(--wd-ink);
	background-image: var(--wd-hero-img);
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}
/* Extra vertical room only when JS parallax is actually running */
.wd-hero.parallax-active .wd-hero__bg {
	top: -20%;
	bottom: -20%;
	will-change: transform;
}

.wd-hero__overlay { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.wd-hero.text-light .wd-hero__overlay {
	background: linear-gradient(90deg, rgba(20,18,16,1) 0%, rgba(20,18,16,.6) 55%, rgba(20,18,16,0) 100%);
}
.wd-hero.text-dark .wd-hero__overlay {
	background: linear-gradient(90deg, rgba(246,243,237,1) 0%, rgba(246,243,237,.6) 55%, rgba(246,243,237,0) 100%);
}
.wd-hero.align-center.text-light .wd-hero__overlay { background: rgba(20,18,16,1); }
.wd-hero.align-center.text-dark .wd-hero__overlay { background: rgba(246,243,237,1); }

.wd-hero__inner { position: relative; z-index: 2; width: 100%; padding-block: 64px; }
.wd-hero__content { max-width: 640px; }
.wd-hero.align-center .wd-hero__content { max-width: 760px; margin-inline: auto; text-align: center; }

.wd-hero.text-light, .wd-hero.text-light .wd-hero__title { color: #fff; }
.wd-hero.text-dark, .wd-hero.text-dark .wd-hero__title { color: var(--wd-ink); }

.wd-hero__eyebrow {
	text-transform: uppercase;
	letter-spacing: 0.14em;
	font-size: 0.82rem;
	font-weight: 600;
	font-family: var(--wd-font-heading);
	color: var(--wd-accent);
	margin: 0 0 16px;
}
.wd-hero.text-dark .wd-hero__eyebrow { color: var(--wd-primary); }

.wd-hero__title { font-size: clamp(2.4rem, 5vw, 3.7rem); line-height: 1.08; margin: 0 0 0.45em; }
.wd-hero__sub { font-size: clamp(1.05rem, 1.6vw, 1.27rem); line-height: 1.55; max-width: 54ch; margin: 0 0 1.7em; opacity: 0.96; }
.wd-hero.align-center .wd-hero__sub { margin-inline: auto; }

.wd-hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.wd-hero.align-center .wd-hero__actions { justify-content: center; }

/* Outline button styled for use on the hero photo */
.wd-btn--on-hero { background: transparent; border-color: rgba(255,255,255,0.65); color: #fff; }
.wd-btn--on-hero:hover { background: #fff; border-color: #fff; color: var(--wd-ink); transform: translateY(-2px); }
.wd-hero.text-dark .wd-btn--on-hero { border-color: var(--wd-line); color: var(--wd-ink); }
.wd-hero.text-dark .wd-btn--on-hero:hover { background: var(--wd-primary); border-color: var(--wd-primary); color: #fff; }

/* Hero entrance animation (above the fold, runs on load) */
.anim-on .wd-hero__eyebrow,
.anim-on .wd-hero__title,
.anim-on .wd-hero__sub,
.anim-on .wd-hero__actions {
	opacity: 0;
	transform: translateY(22px);
	animation: wdHeroIn 0.8s var(--wd-ease) forwards;
}
.anim-on .wd-hero__title { animation-delay: 0.08s; }
.anim-on .wd-hero__sub { animation-delay: 0.16s; }
.anim-on .wd-hero__actions { animation-delay: 0.24s; }
@keyframes wdHeroIn { to { opacity: 1; transform: none; } }

/* --------------------------- Section heading --------------------------- */
.wd-section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.wd-eyebrow {
	text-transform: uppercase;
	letter-spacing: 0.14em;
	font-size: 0.82rem;
	font-weight: 600;
	font-family: var(--wd-font-heading);
	color: var(--wd-accent);
	margin: 0 0 12px;
}
.wd-section-title { font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin: 0 0 0.4em; }
.wd-section-intro { font-size: 1.12rem; line-height: 1.6; opacity: 0.9; margin: 0; }

/* --------------------------- Home welcome ------------------------------ */
.wd-welcome { padding: 96px 0; }
.wd-welcome--light { background: var(--wd-bg); }
.wd-welcome--alt { background: var(--wd-bg-2); }
.wd-welcome--dark { background: var(--wd-dark); color: rgba(255, 255, 255, 0.82); }

.wd-welcome__grid { display: grid; grid-template-columns: 1fr 1.35fr; gap: 64px; align-items: start; }
.wd-welcome__heading { font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.12; margin: 0; }
.wd-welcome--dark .wd-welcome__heading { color: #fff; }

.wd-welcome__body { font-size: 1.1rem; line-height: 1.75; }
.wd-welcome__body p { margin: 0 0 1.15em; }
.wd-welcome__body p:last-child { margin-bottom: 0; }
.wd-welcome__body a { font-weight: 500; }
.wd-welcome--dark .wd-welcome__body a { color: var(--wd-accent); }

.wd-welcome__actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-top: 52px; }
.wd-welcome--dark .wd-btn--outline { border-color: rgba(255, 255, 255, 0.4); color: #fff; }
.wd-welcome--dark .wd-btn--outline:hover { border-color: #fff; color: var(--wd-accent); }

@media (max-width: 860px) {
	.wd-welcome__grid { grid-template-columns: 1fr; gap: 22px; }
	.wd-welcome { padding: 64px 0; }
}

/* --------------------------- Home services ----------------------------- */
.wd-services { padding: 92px 0; }
.wd-services--light { background: var(--wd-bg); }
.wd-services--alt { background: var(--wd-bg-2); }
.wd-services--dark { background: var(--wd-dark); color: rgba(255, 255, 255, 0.82); }
.wd-services--dark .wd-section-title,
.wd-services--dark .wd-svc__title { color: #fff; }

.wd-services__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 44px;
}
.wd-svc { text-align: center; color: inherit; display: block; }
a.wd-svc { transition: transform var(--wd-transition); }

.wd-svc__badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 86px;
	height: 86px;
	border-radius: 50%;
	background: var(--wd-card);
	box-shadow: var(--wd-shadow-sm);
	margin-bottom: 22px;
	transition: transform var(--wd-transition), box-shadow var(--wd-transition), background var(--wd-transition);
}
.wd-svc__icon { width: 38px; height: 38px; color: var(--wd-primary); }
.wd-services--dark .wd-svc__badge { background: rgba(255, 255, 255, 0.08); box-shadow: none; }
.wd-services--dark .wd-svc__icon { color: var(--wd-accent); }

a.wd-svc:hover .wd-svc__badge { transform: translateY(-5px); box-shadow: var(--wd-shadow-md); }
a.wd-svc:hover .wd-svc__title { color: var(--wd-primary); }
.wd-services--dark a.wd-svc:hover .wd-svc__title { color: var(--wd-accent); }

.wd-svc__title { font-size: 1.32rem; margin: 0 0 0.5em; }
.wd-svc__text { opacity: 0.9; margin: 0 auto; max-width: 34ch; }

.wd-services__actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-top: 60px; }
.wd-services--dark .wd-btn--outline { border-color: rgba(255, 255, 255, 0.4); color: #fff; }
.wd-services--dark .wd-btn--outline:hover { border-color: #fff; color: var(--wd-accent); }

@media (max-width: 880px) {
	.wd-services__grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; gap: 48px; }
}

/* --------------------------- Testimonials ------------------------------ */
.wd-testimonials { padding: 80px 0; background: var(--wd-bg-2); }
/* strip trailing margin the module may add below its last element */
.wd-testimonials .moduletable:last-child,
.wd-testimonials .wd-container > :last-child,
.wd-testimonials .moduletable > :last-child { margin-bottom: 0; }

/* --------------------------- Sections ---------------------------------- */
.wd-main { padding: 56px 0; }
.wd-main--empty { padding: 0; }
.wd-content { min-width: 0; }

.wd-layout { display: grid; gap: 40px; align-items: start; }
.wd-layout.has-left { grid-template-columns: 300px minmax(0, 1fr); }
.wd-layout.has-right { grid-template-columns: minmax(0, 1fr) 300px; }
.wd-layout.has-left.has-right { grid-template-columns: 280px minmax(0, 1fr) 280px; }

.wd-main-top, .wd-main-bottom { margin-bottom: 32px; }

/* --------------------------- Blog listing ------------------------------ */
.wd-blog { padding: 72px 0 88px; }
.wd-blog__head { max-width: 760px; margin: 0 0 52px; }
.wd-blog__title { font-size: clamp(2rem, 3.8vw, 2.9rem); margin: 0.2em 0 0.45em; }
.wd-blog__intro { font-size: 1.12rem; line-height: 1.7; color: var(--wd-muted); }
.wd-blog__intro p:last-child { margin-bottom: 0; }
.wd-blog__empty { color: var(--wd-muted); }

.wd-blog__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }

.wd-post-card {
	background: var(--wd-card);
	border-radius: var(--wd-radius);
	overflow: hidden;
	box-shadow: var(--wd-shadow-sm);
	display: flex;
	flex-direction: column;
	transition: transform var(--wd-transition), box-shadow var(--wd-transition);
}
.wd-post-card:hover { transform: translateY(-4px); box-shadow: var(--wd-shadow-md); }
.wd-post-card__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; }
.wd-post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.55s var(--wd-ease); }
.wd-post-card:hover .wd-post-card__media img { transform: scale(1.04); }
.wd-post-card__body { padding: 24px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.wd-post-card__title { font-size: 1.25rem; line-height: 1.25; margin: 0 0 0.55em; }
.wd-post-card__title a { color: var(--wd-primary); }
.wd-post-card__title a:hover { color: var(--wd-accent); }
.wd-post-card__meta { font-size: 0.86rem; color: var(--wd-muted); margin: 0 0 0.85em; }
.wd-post-card__intro { color: var(--wd-muted); margin: 0 0 1.3em; }
.wd-post-card__more { margin-top: auto; align-self: flex-start; font-family: var(--wd-font-heading); font-weight: 500; font-size: 0.92rem; }

.wd-blog__pagination { margin-top: 52px; display: flex; justify-content: center; }
.wd-blog__pagination ul { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.wd-blog__pagination .page-link {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 40px; height: 40px; padding: 0 12px;
	border: 1px solid var(--wd-line); border-radius: var(--wd-radius-sm);
	font-family: var(--wd-font-heading); font-weight: 500; font-size: 0.92rem;
}
.wd-blog__pagination a.page-link:hover { border-color: var(--wd-primary); color: var(--wd-primary); }
.wd-blog__pagination .active .page-link { background: var(--wd-primary); color: #fff; border-color: var(--wd-primary); }
.wd-blog__pagination .disabled .page-link { opacity: 0.45; }
/* Joomla's prev/next/first/last use an icon font we don't load — supply glyphs */
.wd-blog__pagination [class*="icon-"] { font-style: normal; line-height: 1; }
.wd-blog__pagination [class*="icon-"]::before { font-family: inherit; }
.wd-blog__pagination .icon-angle-left::before,
.wd-blog__pagination .icon-chevron-left::before { content: "\2039"; }
.wd-blog__pagination .icon-angle-right::before,
.wd-blog__pagination .icon-chevron-right::before { content: "\203A"; }
.wd-blog__pagination .icon-angles-left::before,
.wd-blog__pagination .icon-angle-double-left::before,
.wd-blog__pagination .icon-first::before,
.wd-blog__pagination .icon-step-backward::before { content: "\00AB"; }
.wd-blog__pagination .icon-angles-right::before,
.wd-blog__pagination .icon-angle-double-right::before,
.wd-blog__pagination .icon-last::before,
.wd-blog__pagination .icon-step-forward::before { content: "\00BB"; }

@media (max-width: 960px) { .wd-blog__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .wd-blog__grid { grid-template-columns: 1fr; } }

/* --------------------------- Services accordion ------------------------ */
.wd-services-page { padding: 72px 0 88px; }

/* Optional image beside the nav */
.wd-svc-top--media { display: grid; grid-template-columns: 1fr 0.82fr; gap: 52px; align-items: center; margin-bottom: 44px; }
.wd-svc-top--media.img-left { grid-template-columns: 0.82fr 1fr; }
.wd-svc-top--media.img-left .wd-svc-top__main { order: 2; }
.wd-svc-top--media.img-left .wd-svc-top__media { order: 1; }
.wd-svc-top--media .wd-blog__head,
.wd-svc-top--media .wd-svc-nav { margin-bottom: 0; }
.wd-svc-top--media .wd-blog__head { margin-bottom: 28px; }
.wd-svc-top__media img { width: 100%; border-radius: var(--wd-radius); box-shadow: var(--wd-shadow-sm); }

@media (max-width: 782px) {
	.wd-svc-top--media, .wd-svc-top--media.img-left { grid-template-columns: 1fr; gap: 28px; }
	.wd-svc-top--media.img-left .wd-svc-top__main { order: 1; }
	.wd-svc-top--media.img-left .wd-svc-top__media { order: 2; }
}

.wd-svc-nav { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 36px; }
.wd-svc-nav__link {
	display: inline-flex; align-items: center;
	padding: 9px 18px;
	border: 1px solid var(--wd-line);
	border-radius: var(--wd-radius-pill);
	font-family: var(--wd-font-heading);
	font-weight: 500;
	font-size: 0.92rem;
	color: var(--wd-ink);
	background: var(--wd-card);
	transition: background var(--wd-transition), color var(--wd-transition), border-color var(--wd-transition);
}
.wd-svc-nav__link:hover,
.wd-svc-nav__link.is-active { background: var(--wd-primary); border-color: var(--wd-primary); color: #fff; }

.wd-accordion { display: flex; flex-direction: column; gap: 52px; }

.wd-svc-panel { scroll-margin-top: 110px; }

/* Header = warm-dark colour band with the photo overlapping (left by default) */
.wd-svc-panel__header {
	position: relative;
	display: flex;
	align-items: center;
	width: 100%;
	min-height: 300px;
	padding: 38px 56px 38px 408px;
	border: 0;
	border-radius: var(--wd-radius);
	background: var(--wd-dark);
	color: #fff;
	text-align: left;
	cursor: pointer;
	font: inherit;
	transition: box-shadow var(--wd-transition);
}
.wd-svc-panel.is-open .wd-svc-panel__header { box-shadow: var(--wd-shadow-md); }

.wd-svc-panel__media {
	position: absolute;
	left: 36px; top: -24px; bottom: -24px;
	width: 312px;
	border-radius: var(--wd-radius);
	box-shadow: var(--wd-shadow-lg);
	background-size: cover;
	background-position: center;
	transition: transform 0.5s var(--wd-ease);
}
.wd-svc-panel__header:hover .wd-svc-panel__media { transform: scale(1.02); }

/* Alternate the image side: even panels get the photo on the right */
.wd-accordion .wd-svc-panel:nth-child(even) .wd-svc-panel__header { padding: 38px 408px 38px 56px; }
.wd-accordion .wd-svc-panel:nth-child(even) .wd-svc-panel__media { left: auto; right: 36px; }

.wd-svc-panel__bar { display: flex; align-items: center; gap: 26px; width: 100%; }
.wd-svc-panel__titles { flex: 1; min-width: 0; }
.wd-svc-panel__title { display: block; font-family: var(--wd-font-heading); font-weight: 600; font-size: clamp(1.4rem, 2.3vw, 1.9rem); line-height: 1.15; color: #fff; }
.wd-svc-panel__title::after { content: ""; display: block; width: 46px; height: 3px; border-radius: 3px; background: var(--wd-accent); margin: 16px 0 14px; }
.wd-svc-panel__tagline { display: block; color: rgba(255, 255, 255, 0.82); font-size: 1.04rem; line-height: 1.55; }

.wd-svc-panel__chev {
	flex: 0 0 auto;
	width: 16px; height: 16px;
	border-right: 2px solid var(--wd-accent);
	border-bottom: 2px solid var(--wd-accent);
	transform: rotate(45deg);
	transition: transform var(--wd-transition);
	margin-top: -8px;
}
.wd-svc-panel.is-open .wd-svc-panel__chev { transform: rotate(-135deg); margin-top: 4px; }

.wd-svc-panel__body {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.45s var(--wd-ease);
	background: var(--wd-card);
	border: 1px solid var(--wd-line);
	border-radius: var(--wd-radius);
	margin-top: 14px;
	box-shadow: var(--wd-shadow-sm);
}
.wd-svc-panel__content { padding: 32px 40px 38px; }
.wd-svc-panel__content > :first-child { margin-top: 0; }
.wd-svc-panel__content img { height: auto; border-radius: var(--wd-radius-sm); }
.no-js .wd-svc-panel__body { max-height: none; }

@media (max-width: 720px) {
	.wd-svc-panel__header,
	.wd-accordion .wd-svc-panel:nth-child(even) .wd-svc-panel__header { display: block; min-height: 0; padding: 0; }
	.wd-svc-panel__media,
	.wd-accordion .wd-svc-panel:nth-child(even) .wd-svc-panel__media { position: static; width: auto; height: 200px; top: auto; bottom: auto; left: auto; right: auto; border-radius: var(--wd-radius) var(--wd-radius) 0 0; }
	.wd-svc-panel__bar { padding: 24px 24px 28px; }
	.wd-svc-panel__content { padding: 26px 22px 30px; }
}

/* --------------------------- Team page --------------------------------- */
.wd-team { padding: 72px 0 88px; }
.wd-team__list { display: flex; flex-direction: column; gap: 80px; }
.wd-team-member { display: grid; grid-template-columns: 0.82fr 1fr; gap: 56px; align-items: center; }
.wd-team-member:nth-child(even) .wd-team-member__media { order: 2; }
.wd-team-member:nth-child(even) .wd-team-member__text { order: 1; }
.wd-team-member__media img { width: 100%; display: block; border-radius: var(--wd-radius); box-shadow: var(--wd-shadow-md); }
.wd-team-member__role {
	text-transform: uppercase;
	letter-spacing: 0.14em;
	font-size: 0.82rem;
	font-weight: 600;
	font-family: var(--wd-font-heading);
	color: var(--wd-accent);
	margin: 0 0 10px;
}
.wd-team-member__name { font-size: clamp(1.7rem, 3vw, 2.3rem); margin: 0 0 0.6em; }
.wd-team-member__bio { line-height: 1.75; }
.wd-team-member__bio p:last-child { margin-bottom: 0; }
.wd-team-member__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }

@media (max-width: 800px) {
	.wd-team-member { grid-template-columns: 1fr; gap: 26px; }
	.wd-team-member:nth-child(even) .wd-team-member__media,
	.wd-team-member:nth-child(even) .wd-team-member__text { order: 0; }
	.wd-team__list { gap: 60px; }
}

/* --------------------------- Contact page ------------------------------ */
/* let the contact layout use the full content width, not the 800px reading column */
.wd-article__content:has(.wd-contact__grid) { max-width: var(--wd-container); }
/* lighter hero overlay on the contact page (bright daytime location photo) */
.wd-article:has(.wd-contact__grid) .wd-article__hero-overlay {
	background: linear-gradient(180deg, rgba(20,18,16,.06) 0%, rgba(20,18,16,.16) 45%, rgba(20,18,16,.55) 100%);
}
.wd-contact__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 60px; align-items: start; }
.wd-contact__photo { width: 100%; display: block; border-radius: var(--wd-radius); box-shadow: var(--wd-shadow-md); margin-bottom: 32px; }
.wd-contact__block { margin-bottom: 30px; }
.wd-contact__block h2, .wd-contact__block h3 {
	font-size: 1.2rem;
	margin: 0 0 0.9rem;
	padding-bottom: 0.55rem;
	border-bottom: 1px solid var(--wd-line);
}
.wd-contact-hours { list-style: none; margin: 0; padding: 0; max-width: 360px; }
.wd-contact-hours li { display: flex; justify-content: space-between; gap: 16px; padding: 5px 0; }
.wd-contact-hours li span:last-child { color: var(--wd-ink); white-space: nowrap; }
.wd-contact__map iframe { width: 100%; height: 260px; border: 0; border-radius: var(--wd-radius-sm); display: block; }

.wd-contact__form {
	background: var(--wd-card);
	border: 1px solid var(--wd-line);
	border-radius: var(--wd-radius);
	box-shadow: var(--wd-shadow-sm);
	padding: 34px 36px;
}
/* gentle styling for plain form fields (your form plugin may override) */
.wd-contact__form input:not([type="submit"]):not([type="button"]):not([type="checkbox"]):not([type="radio"]),
.wd-contact__form select,
.wd-contact__form textarea {
	width: 100%;
	padding: 11px 14px;
	border: 1px solid var(--wd-line);
	border-radius: var(--wd-radius-sm);
	background: #fff;
	font: inherit;
	color: var(--wd-ink);
}
.wd-contact__form input:focus, .wd-contact__form select:focus, .wd-contact__form textarea:focus {
	outline: none;
	border-color: var(--wd-primary);
	box-shadow: 0 0 0 3px rgba(199, 44, 47, 0.12);
}

@media (max-width: 820px) {
	.wd-contact__grid { grid-template-columns: 1fr; gap: 36px; }
}

/* --------------------------- Single article ---------------------------- */
.wd-article__hero {
	position: relative;
	display: flex;
	align-items: flex-end;
	min-height: 460px;
	background: var(--wd-dark);
	overflow: hidden;
	border-radius: var(--wd-radius);
	border: 1px solid var(--wd-line);
	box-shadow: var(--wd-shadow-sm);
}
.wd-article__hero-bg { position: absolute; inset: 0; background-image: var(--wd-hero-img); background-size: cover; background-position: center; }
.wd-article__hero.parallax-active .wd-article__hero-bg { top: -16%; bottom: -16%; will-change: transform; }
.wd-article__hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,18,16,.2) 0%, rgba(20,18,16,.45) 45%, rgba(20,18,16,.88) 100%); }
.wd-article__hero-inner { position: relative; z-index: 2; padding-block: 50px; color: #fff; width: 100%; }
.wd-article__crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 0.86rem; margin-bottom: 18px; color: rgba(255,255,255,.8); }
.wd-article__crumbs a { color: rgba(255,255,255,.8); }
.wd-article__crumbs a:hover { color: #fff; }
.wd-article__crumb-sep { opacity: 0.5; }
.wd-article__title { color: #fff; font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.1; margin: 0; max-width: 20ch; }
.wd-article__title--plain { color: var(--wd-ink); max-width: 22ch; }
.wd-article__meta { margin: 18px 0 0; color: rgba(255,255,255,.85); }
.wd-article__meta--plain { color: var(--wd-muted); }
.wd-article__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

.wd-article__head { padding: 64px 0 0; }
.wd-article__body { padding: 56px 0 80px; }
.wd-article__content { max-width: 800px; }
.wd-article__content img { height: auto; border-radius: var(--wd-radius-sm); }
.wd-article__content h2, .wd-article__content h3 { margin-top: 1.7em; }
.wd-article__tags { margin-top: 2.5em; }

/* Anchor jumps clear the sticky header (e.g. /services#orthodontics) */
:target { scroll-margin-top: 96px; }
.wd-article__content [id] { scroll-margin-top: 96px; }
/* Section divider above each service heading on the Services page */
.wd-article__content h2[id] { padding-top: 1.4em; border-top: 1px solid var(--wd-line); }
.wd-article__content h2[id]:first-child { padding-top: 0; border-top: 0; }

@media (max-width: 600px) { .wd-article__hero { min-height: 360px; } .wd-article__hero-inner { padding-block: 36px; } }

/* --------------------------- Cards ------------------------------------- */
.card, .moduletable.card, .wd-features__col, .wd-banner .moduletable {
	background: var(--wd-card);
	border-radius: var(--wd-radius);
	box-shadow: var(--wd-shadow-sm);
	padding: 28px;
	transition: transform var(--wd-transition), box-shadow var(--wd-transition);
}
.wd-features__col:hover { transform: translateY(-4px); box-shadow: var(--wd-shadow-md); }

.moduletable .module-title, .moduletable h3 { margin-top: 0; }

/* --------------------------- Features grid ----------------------------- */
.wd-features { padding: 64px 0; }
.wd-features__grid { display: grid; gap: 26px; }
.wd-features__grid.cols-1 { grid-template-columns: 1fr; }
.wd-features__grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.wd-features__grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.wd-features__grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

/* --------------------------- Footer ------------------------------------ */
.wd-footer { background: var(--wd-dark); color: rgba(255, 255, 255, 0.78); }
.wd-footer__top { padding: 56px 0 40px; }
.wd-footer a { color: rgba(255, 255, 255, 0.85); }
.wd-footer a:not(.wd-btn):hover { color: var(--wd-accent); }
.wd-footer h1, .wd-footer h2, .wd-footer h3, .wd-footer .module-title { color: #fff; font-size: 1.1rem; margin-bottom: 1rem; }
.wd-footer__grid { display: grid; gap: 36px; }
.wd-footer__grid.cols-1 { grid-template-columns: 1fr; }
.wd-footer__grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.wd-footer__grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.wd-footer__grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.wd-footer ul { list-style: none; margin: 0; padding: 0; }
.wd-footer ul li { margin-bottom: 8px; }

/* Settings-driven footer columns */
.wd-footer__cols { display: grid; grid-template-columns: 1fr 1fr 1.1fr; gap: 48px; }
.wd-footer__heading {
	color: #fff;
	font-size: 1.15rem;
	margin: 0 0 1.1rem;
	padding-bottom: 0.6rem;
	border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}
.wd-foot-hours { list-style: none; margin: 0; padding: 0; }
.wd-foot-hours li { display: flex; justify-content: space-between; gap: 16px; padding: 5px 0; line-height: 1.75; }
.wd-foot-hours li:first-child { padding-top: 0; }
.wd-foot-hours__time { color: #fff; white-space: nowrap; }
.wd-footer__btn { margin-top: 24px; }
.wd-foot-address { font-style: normal; line-height: 1.75; margin: 0 0 1.1rem; }
.wd-foot-contact { margin: 0 0 0.4rem; }
.wd-footer__col--map { display: flex; flex-direction: column; align-items: flex-start; }
.wd-foot-map__link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 12px;
	font-weight: 500;
	font-family: var(--wd-font-heading);
	font-size: 0.92rem;
}
.wd-foot-map { width: 100%; border: 0; border-radius: var(--wd-radius-sm); display: block; }

@media (max-width: 880px) {
	.wd-footer__cols { grid-template-columns: 1fr; gap: 36px; }
}

.wd-footer__bottom { border-top: 1px solid rgba(255, 255, 255, 0.12); padding: 20px 0; font-size: 0.88rem; }
.wd-footer__bottom-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.wd-footer__copy { margin: 0; }
.wd-footer__social { display: inline-flex; gap: 8px; }
.wd-footer__social a { display: inline-flex; padding: 7px; border-radius: 50%; background: rgba(255, 255, 255, 0.08); transition: background var(--wd-transition); }
.wd-footer__social a svg { width: 16px; height: 16px; fill: rgba(255, 255, 255, 0.85); transition: fill var(--wd-transition); }
.wd-footer__social a:hover { background: var(--wd-accent); }
.wd-footer__social a:hover svg { fill: #fff; }

/* --------------------------- Scroll reveal ----------------------------- */
.anim-on [data-reveal] {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity 0.7s var(--wd-ease), transform 0.7s var(--wd-ease);
	will-change: opacity, transform;
}
.anim-on [data-reveal].is-visible { opacity: 1; transform: none; }
.anim-on [data-reveal][data-reveal-delay="1"] { transition-delay: 0.08s; }
.anim-on [data-reveal][data-reveal-delay="2"] { transition-delay: 0.16s; }
.anim-on [data-reveal][data-reveal-delay="3"] { transition-delay: 0.24s; }

/* --------------------------- Responsive -------------------------------- */
@media (max-width: 991px) {
	.wd-nav, .wd-header__search, .wd-header__cta { display: none; }
	.wd-nav-toggle { display: flex; }
	.wd-header__actions { margin-left: auto; }
	.wd-layout.has-left, .wd-layout.has-right, .wd-layout.has-left.has-right { grid-template-columns: 1fr; }
	.wd-features__grid.cols-3, .wd-features__grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
	.wd-footer__grid.cols-3, .wd-footer__grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
	body { font-size: 16px; }
	.wd-container { padding-inline: 18px; }
	.wd-topbar__info { gap: 14px; }
	.wd-topbar__address { display: none; }
	.wd-hero--standard { min-height: 460px; }
	.wd-hero--tall { min-height: 520px; }
	.wd-hero__inner { padding-block: 48px; }
	.wd-hero__actions .wd-btn { flex: 1 1 auto; }
	/* widen the left-fade overlay so left-aligned text stays legible on mobile */
	.wd-hero.text-light .wd-hero__overlay { background: linear-gradient(90deg, rgba(20,18,16,1) 0%, rgba(20,18,16,.8) 75%, rgba(20,18,16,.45) 100%); }
	.wd-hero.text-dark .wd-hero__overlay { background: linear-gradient(90deg, rgba(246,243,237,1) 0%, rgba(246,243,237,.8) 75%, rgba(246,243,237,.45) 100%); }
	.wd-features__grid.cols-2, .wd-features__grid.cols-3, .wd-features__grid.cols-4 { grid-template-columns: 1fr; }
	.wd-footer__grid.cols-2, .wd-footer__grid.cols-3, .wd-footer__grid.cols-4 { grid-template-columns: 1fr; }
}

/* --------------------------- Reduced motion ---------------------------- */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
	.anim-on [data-reveal] { opacity: 1; transform: none; }
}
