/*
Theme Name: Upper Oakville Chiropractic
Theme URI: https://upperoakvillechiropractic.com
Author: Badshah Consulting Inc.
Author URI: https://badshah.consulting
Description: Single-page clinic theme converted from the original Next.js build. Navy, patient-first design with hero, four-step accordion, review carousel, services, team, FAQ accordion and a working contact form. Edit copy in inc/content.php; edit contact/brand/social details in Appearance > Customize > Clinic Details.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: uoc
*/

/* =========================================================================
   Tokens (ported from the original globals.css @theme block)
   ========================================================================= */
:root {
	--bg: #ffffff;
	--fg: #252525;
	--muted: #f4f4f5;
	--muted-fg: #71717a;
	--border: #e5e5e5;
	--primary: #3b82f6;
	--navy: #1e3a5f;
	--navy-light: #2d5a8f;
	--navy-dark: #0f1d2f;
	--navy-fg: #ffffff;
	--hero-bg: #001327;
	--section-dark: #001a34;
	--light-blue: #ecf4fd;

	--maxw: 80rem;       /* max-w-7xl */
	--radius: 1rem;      /* rounded-2xl */
	--font-sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* =========================================================================
   Reset / base
   ========================================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font-family: var(--font-sans);
	color: var(--fg);
	background: var(--bg);
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, ul, blockquote, figure { margin: 0; }
ul { list-style: none; padding: 0; }
button { font: inherit; cursor: pointer; }

:where(a, button, input, textarea, select):focus-visible {
	outline: 2px solid var(--primary);
	outline-offset: 2px;
	border-radius: 4px;
}

.uoc-skip {
	position: absolute;
	left: 0; top: 0;
	background: var(--primary);
	color: #fff;
	padding: .5rem 1rem;
	transform: translateY(-150%);
	transition: transform .2s;
	z-index: 100;
}
.uoc-skip:focus { transform: translateY(0); }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
	white-space: nowrap; border: 0; padding: 0; margin: -1px;
}

/* =========================================================================
   Layout helpers
   ========================================================================= */
.container {
	width: 100%;
	max-width: var(--maxw);
	margin-inline: auto;
	padding-inline: 1rem;
}
@media (min-width: 640px) { .container { padding-inline: 1.5rem; } }
@media (min-width: 1024px) { .container { padding-inline: 2rem; } }

.section { padding-block: 3rem; }
@media (min-width: 640px) { .section { padding-block: 4rem; } }
@media (min-width: 1024px) { .section { padding-block: 5rem; } }

.section--dark   { background: var(--section-dark); color: var(--navy-fg); }
.section--hero-bg{ background: var(--hero-bg);     color: var(--navy-fg); }
.section--navy-dark { background: var(--navy-dark); color: var(--navy-fg); }
.section--light  { background: var(--light-blue);  color: var(--fg); }

.split {
	display: grid;
	grid-template-columns: 1fr;
	gap: 3rem;
	align-items: flex-start;
}
@media (min-width: 1024px) {
	.split { grid-template-columns: 1fr 1fr; gap: 4rem; }
	.split--center { align-items: center; }
}

/* Section headings */
.h2 {
	font-size: 1.875rem;
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -0.01em;
}
@media (min-width: 640px) { .h2 { font-size: 2.25rem; } }
@media (min-width: 1024px) { .h2 { font-size: 3rem; } }
.lead { font-size: 1.125rem; }

/* =========================================================================
   Header / navigation
   ========================================================================= */
.site-header {
	position: fixed;
	inset: 0 0 auto 0;
	z-index: 50;
	transition: background .3s, box-shadow .3s;
}
.site-header.is-scrolled {
	background: rgba(15, 29, 47, .95);
	backdrop-filter: blur(6px);
	box-shadow: 0 10px 30px rgba(0,0,0,.25);
}
.nav {
	max-width: var(--maxw);
	margin-inline: auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 1rem 1.5rem;
	gap: 1rem;
}
@media (min-width: 1024px) { .nav { padding: 1rem 3rem; } }
.nav__logo img { height: 56px; width: 56px; border-radius: 9999px; object-fit: cover; }
.nav__logo .brand-text { color: #fff; font-weight: 700; font-size: 1.125rem; }

.nav__menu { display: none; align-items: center; gap: 2rem; }
.nav__menu a { color: rgba(255,255,255,.8); font-size: .875rem; font-weight: 500; transition: color .2s; }
.nav__menu a:hover { color: #fff; }

.nav__cta { display: none; }
.btn-pill {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	border: 1px solid rgba(255,255,255,.3);
	border-radius: 9999px;
	padding: .5rem 1.25rem;
	font-size: .875rem;
	font-weight: 500;
	color: #fff;
	transition: background .2s, color .2s;
}
.btn-pill:hover { background: #fff; color: var(--navy-dark); }
.btn-pill svg { width: 16px; height: 16px; }

.nav__toggle {
	display: inline-flex;
	background: transparent;
	border: 0;
	color: #fff;
	padding: .5rem;
	border-radius: .5rem;
}
.nav__toggle svg { width: 24px; height: 24px; }

@media (min-width: 768px) {
	.nav__menu, .nav__cta { display: flex; }
	.nav__toggle { display: none; }
}

.mobile-menu {
	position: fixed;
	inset: 64px 0 0 0;
	background: var(--navy-dark);
	padding: 1.5rem;
	display: none;
}
.mobile-menu.is-open { display: block; }
.mobile-menu a { display: block; padding: .75rem 0; color: rgba(255,255,255,.85); font-size: 1.125rem; font-weight: 500; }
.mobile-menu .btn-pill { width: 100%; justify-content: center; margin-top: 1rem; padding: .75rem 1.25rem; }
@media (min-width: 768px) { .mobile-menu { display: none !important; } }

/* =========================================================================
   Hero
   ========================================================================= */
.hero {
	background: var(--hero-bg);
	min-height: 80vh;
	display: flex;
	align-items: center;
	padding-block: 5rem;
}
.hero__inner {
	width: 100%;
	max-width: var(--maxw);
	margin-inline: auto;
	padding-inline: 1rem;
	display: grid;
	grid-template-columns: 1fr;
	gap: 3rem;
	align-items: center;
}
@media (min-width: 1024px) {
	.hero__inner { grid-template-columns: 1fr 1fr; padding-inline: 2.5rem; }
}
.hero__left { display: flex; flex-direction: column; gap: 1.5rem; }
.hero__badge { display: flex; flex-direction: column; gap: .375rem; }
.hero__badge-label { font-size: .75rem; font-weight: 500; color: rgba(255,255,255,.5); }
.hero__badge-row { display: flex; align-items: center; gap: .75rem; }
.hero__badge-row img { height: 36px; width: 36px; object-fit: contain; flex-shrink: 0; }
.hero__badge-title { font-size: .875rem; font-weight: 500; color: #fff; }
.hero__badge-sub { font-size: .75rem; color: rgba(255,255,255,.6); }
.hero h1 {
	font-size: 3rem;
	font-weight: 700;
	line-height: 1.1;
	color: #fff;
	letter-spacing: -0.02em;
}
@media (min-width: 1024px) { .hero h1 { font-size: 3.75rem; } }
.hero__subtitle { font-style: italic; line-height: 1.7; color: rgba(255,255,255,.75); }
.hero__cta {
	align-self: flex-start;
	border: 1px solid rgba(255,255,255,.3);
	background: rgba(255,255,255,.1);
	border-radius: 9999px;
	padding: .75rem 1.75rem;
	font-size: .875rem;
	font-weight: 500;
	color: #fff;
	backdrop-filter: blur(4px);
	transition: background .2s, color .2s;
}
.hero__cta:hover { background: #fff; color: var(--navy); }
.hero__image {
	position: relative;
	height: 420px;
	width: 100%;
	border-radius: var(--radius);
	overflow: hidden;
}
@media (min-width: 1024px) { .hero__image { height: 520px; } }
.hero__image img { width: 100%; height: 100%; object-fit: cover; }

/* =========================================================================
   Four steps accordion
   ========================================================================= */
.steps__head { margin-bottom: 2.5rem; display: inline-flex; flex-direction: column; }
.steps__head .h2 { color: #fff; }
.steps__head p { margin-top: 1rem; font-size: .9375rem; line-height: 1.6; color: rgba(255,255,255,.6); }

.steps-desktop {
	display: none;
	height: 480px;
	overflow: hidden;
	border-radius: var(--radius);
	border: 1px solid rgba(255,255,255,.1);
}
@media (min-width: 768px) { .steps-desktop { display: flex; } }

.step {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	text-align: left;
	flex-shrink: 0;
	width: 56px;
	overflow: hidden;
	border: 0;
	border-right: 1px solid rgba(255,255,255,.1);
	background: transparent;
	transition: width .5s ease-in-out;
}
.step:last-child { border-right: 0; }
.step.is-active { width: calc(100% - 168px); } /* 3 collapsed siblings * 56px */

.step__tab {
	position: relative;
	z-index: 2;
	display: flex;
	width: 56px;
	flex-shrink: 0;
	flex-direction: column;
	align-items: center;
	justify-content: space-between;
	padding-block: 2rem;
	height: 100%;
}
.step__num { font-size: .75rem; font-weight: 500; color: rgba(255,255,255,.4); }
.step__short {
	font-size: .75rem; font-weight: 500;
	writing-mode: vertical-rl;
	transform: rotate(180deg);
	color: rgba(255,255,255,.5);
}
.step.is-active .step__short { color: #fff; }

.step__panel {
	position: absolute;
	inset: 0 0 0 56px;
	display: flex;
	flex-direction: column;
	gap: .75rem;
	padding: 1.5rem;
	overflow: hidden;
	opacity: 0;
	pointer-events: none;
	transition: opacity .3s;
}
.step.is-active .step__panel { opacity: 1; pointer-events: auto; transition-delay: .2s; }
.step__panel h3 { font-size: 1.5rem; font-weight: 600; color: #fff; }
@media (min-width: 1024px) { .step__panel h3 { font-size: 1.875rem; } }
.step__panel p { font-size: .9375rem; line-height: 1.6; color: rgba(255,255,255,.6); }
.step__panel-img {
	position: relative;
	margin-top: .5rem;
	aspect-ratio: 1 / 1;
	max-width: 50%;
	border-radius: .75rem;
	overflow: hidden;
}
.step__panel-img img { width: 100%; height: 100%; object-fit: cover; }

/* Mobile vertical accordion */
.steps-mobile {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border-radius: var(--radius);
	border: 1px solid rgba(255,255,255,.1);
}
@media (min-width: 768px) { .steps-mobile { display: none; } }
.steps-mobile .row { border-bottom: 1px solid rgba(255,255,255,.1); }
.steps-mobile .row:last-child { border-bottom: 0; }
.steps-mobile .row__head {
	display: flex;
	width: 100%;
	align-items: center;
	justify-content: space-between;
	padding: 1rem 1.25rem;
	background: transparent;
	border: 0;
	color: #fff;
	text-align: left;
}
.steps-mobile .row__head .num { font-size: .75rem; color: rgba(255,255,255,.4); margin-right: .75rem; }
.steps-mobile .row__head .short { font-size: .875rem; font-weight: 500; }
.steps-mobile .row__head svg { width: 16px; height: 16px; color: rgba(255,255,255,.5); transition: transform .3s; }
.steps-mobile .row.is-active .row__head svg { transform: rotate(180deg); }
.steps-mobile .row__body { display: none; flex-direction: column; gap: 1rem; padding: 0 1.25rem 1.5rem; }
.steps-mobile .row.is-active .row__body { display: flex; }
.steps-mobile .row__body h3 { color: #fff; font-size: 1.25rem; font-weight: 600; }
.steps-mobile .row__body p { font-size: .9375rem; line-height: 1.6; color: rgba(255,255,255,.6); }
.steps-mobile .row__body .img { position: relative; height: 13rem; border-radius: .75rem; overflow: hidden; }
.steps-mobile .row__body .img img { width: 100%; height: 100%; object-fit: cover; }

/* =========================================================================
   Care philosophy + review carousel
   ========================================================================= */
.care h2 { color: var(--navy-fg); margin-bottom: 1rem; }
.care__desc { color: rgba(255,255,255,.8); font-size: 1.125rem; margin-bottom: 2.5rem; }
.care__badges { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.care__badge { background: #fff; border-radius: var(--radius); display: flex; align-items: center; justify-content: center; padding: .5rem .75rem; }
.care__badge img { height: 80px; width: auto; object-fit: contain; }

.carousel { display: flex; flex-direction: column; }
.carousel__card {
	border: 1px solid rgba(255,255,255,.2);
	border-radius: var(--radius);
	padding: 2rem;
	background: rgba(255,255,255,.05);
	flex: 1;
}
.carousel__quote { color: var(--navy-fg); line-height: 1.7; margin-bottom: 1.5rem; min-height: 120px; }
.carousel__person { display: flex; align-items: center; gap: .75rem; }
.carousel__avatar {
	width: 44px; height: 44px; border-radius: 9999px;
	background: rgba(255,255,255,.2);
	display: flex; align-items: center; justify-content: center;
	color: var(--navy-fg); font-weight: 600; font-size: .875rem;
}
.carousel__name { color: var(--navy-fg); font-weight: 600; font-size: .875rem; }
.carousel__city { color: rgba(255,255,255,.7); font-size: .875rem; }
.carousel__controls { display: flex; align-items: center; justify-content: space-between; margin-top: 1.5rem; }
.carousel__dots { display: flex; gap: .5rem; }
.carousel__dot { width: 8px; height: 8px; border-radius: 9999px; border: 0; background: rgba(255,255,255,.3); padding: 0; transition: background .2s; }
.carousel__dot.is-active { background: #fff; }
.carousel__nav { display: flex; gap: .75rem; }
.carousel__btn {
	width: 40px; height: 40px; border-radius: 9999px;
	border: 1px solid rgba(255,255,255,.3);
	background: transparent; color: var(--navy-fg);
	display: flex; align-items: center; justify-content: center;
	transition: background .2s;
}
.carousel__btn:hover { background: rgba(255,255,255,.1); }
.carousel__btn svg { width: 16px; height: 16px; }

/* =========================================================================
   Services
   ========================================================================= */
.services h2 { color: var(--navy-fg); margin-bottom: 1.5rem; }
.services__desc { color: #fff; font-size: 1.125rem; }
.services__list { display: flex; flex-direction: column; gap: 1rem; }
.services__list li { display: flex; align-items: center; gap: .75rem; color: var(--navy-fg); }
.services__list svg { width: 16px; height: 16px; flex-shrink: 0; color: rgba(255,255,255,.6); }

/* =========================================================================
   Team
   ========================================================================= */
.team h2 { color: var(--fg); margin-bottom: 1.5rem; }
.team__desc { color: var(--muted-fg); font-size: 1.125rem; }
.team__cards { display: flex; flex-direction: column; }
.team__card { display: flex; gap: 1.25rem; padding-block: 2rem; }
.team__card:first-child { padding-top: 0; }
.team__card:last-child { padding-bottom: 0; }
.team__photo { width: 64px; height: 64px; border-radius: 9999px; overflow: hidden; background: var(--muted); flex-shrink: 0; }
.team__photo img { width: 100%; height: 100%; object-fit: cover; }
.team__body { display: flex; flex-direction: column; gap: .5rem; }
.team__name { font-weight: 600; color: var(--fg); }
.team__role { color: var(--muted-fg); font-size: .875rem; }
.team__bio { color: var(--fg); font-size: .875rem; line-height: 1.6; }
.team__socials { display: flex; gap: .75rem; margin-top: .25rem; }
.team__socials a { color: var(--fg); transition: color .2s; }
.team__socials a:hover { color: var(--primary); }
.team__socials svg { width: 24px; height: 24px; fill: currentColor; }

/* =========================================================================
   FAQ
   ========================================================================= */
.faq__intro { display: flex; flex-direction: column; gap: 1.5rem; }
.faq__intro h2 { color: var(--navy-fg); }
.faq__intro p { color: rgba(255,255,255,.8); line-height: 1.6; }
.faq__cta {
	align-self: flex-start;
	border: 1px solid rgba(255,255,255,.4);
	border-radius: 9999px;
	padding: .5rem 1.25rem;
	font-size: .875rem;
	color: var(--navy-fg);
	transition: background .2s;
}
.faq__cta:hover { background: rgba(255,255,255,.1); }
.faq__list { border-top: 1px solid rgba(255,255,255,.1); }
.faq__item { border-bottom: 1px solid rgba(255,255,255,.1); }
.faq__q {
	display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 1rem;
	padding-block: 1.25rem; background: transparent; border: 0; text-align: left;
	font-size: 1rem; font-weight: 600; color: var(--navy-fg);
}
.faq__q svg { width: 20px; height: 20px; color: #fff; transition: transform .2s; flex-shrink: 0; }
.faq__item.is-open .faq__q svg { transform: rotate(180deg); }
.faq__a { display: none; padding-bottom: 1.25rem; font-size: .875rem; line-height: 1.6; color: rgba(255,255,255,.8); }
.faq__item.is-open .faq__a { display: block; }

/* =========================================================================
   Contact
   ========================================================================= */
.contact__head { margin-bottom: 3rem; }
.contact__head h2 { color: var(--fg); margin-bottom: 1rem; }
.contact__head p { color: var(--muted-fg); }
.contact__form { display: flex; flex-direction: column; gap: 2rem; }
.field label { display: block; font-size: .875rem; color: var(--fg); margin-bottom: .5rem; }
.field input, .field textarea {
	width: 100%;
	border: 0; border-bottom: 1px solid var(--border);
	background: transparent;
	padding: .25rem 0 .5rem;
	font: inherit; font-size: .875rem; color: var(--fg);
	transition: border-color .2s;
}
.field textarea { resize: none; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted-fg); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--fg); }
.contact__terms { display: flex; align-items: center; gap: .5rem; }
.contact__terms input { width: 16px; height: 16px; accent-color: var(--navy); }
.contact__terms label { font-size: .875rem; color: var(--muted-fg); }
.contact__terms a { text-decoration: underline; color: var(--fg); }
.btn-solid {
	align-self: flex-start;
	border: 0; border-radius: 9999px;
	background: var(--navy); color: var(--navy-fg);
	padding: .75rem 1.5rem; font-size: .875rem; font-weight: 600;
	transition: background .2s, opacity .2s;
}
.btn-solid:hover { background: var(--navy-light); }
.btn-solid:disabled { opacity: .5; cursor: not-allowed; }

.contact__info { display: flex; flex-direction: column; gap: 2rem; }
.contact__cards { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 640px) { .contact__cards { grid-template-columns: 1fr 1fr; } }
.contact__card { display: flex; flex-direction: column; gap: .5rem; }
.contact__card .icon { color: var(--fg); margin-bottom: .25rem; }
.contact__card .icon svg { width: 24px; height: 24px; }
.contact__card .title { font-weight: 600; color: var(--fg); }
.contact__card .hint { font-size: .875rem; color: var(--muted-fg); }
.contact__card a { font-size: .875rem; text-decoration: underline; color: var(--fg); }
.contact__card a.directions { font-weight: 500; text-decoration: none; display: inline-flex; align-items: center; gap: .25rem; }
.contact__card a.directions svg { width: 12px; height: 12px; }
.contact__notice { border-radius: .75rem; padding: .75rem 1rem; font-size: .875rem; }
.contact__notice--ok { background: #dcfce7; color: #166534; }
.contact__notice--error { background: #fee2e2; color: #991b1b; }
.hp { position: absolute; left: -9999px; }

/* Hours / schedule table */
.schedule__label { font-weight: 600; color: var(--fg); margin-bottom: .75rem; }
.schedule {
	border: 1px solid #9ca3af;
	border-radius: .5rem;
	overflow: hidden;
}
.schedule .day {
	display: flex; align-items: center; justify-content: space-between;
	padding: .5rem 1.5rem;
	border-bottom: 1px solid #9ca3af;
}
.schedule .day:last-child { border-bottom: 0; }
.schedule .day.is-weekend { background: var(--muted); }
.schedule .day .name { font-weight: 600; }
.schedule .day .times { text-align: right; display: flex; flex-direction: column; gap: .25rem; }
.schedule--light .name, .schedule--light .times { color: var(--fg); }
.schedule--on-dark { background: rgba(255,255,255,.03); }
.schedule--on-dark .name, .schedule--on-dark .times { color: #fff; }
.schedule--on-dark .day.is-weekend { background: rgba(255,255,255,.06); }

/* =========================================================================
   Footer
   ========================================================================= */
.site-footer { background: var(--navy-dark); color: var(--navy-fg); }
.site-footer .container { padding-block: 4rem; }
.footer__top { display: flex; flex-direction: column; gap: 1.5rem; margin-bottom: 3rem; }
.footer__logo img { width: 56px; height: 56px; border-radius: 9999px; object-fit: cover; }
.footer__nav ul { display: flex; flex-wrap: wrap; gap: .75rem 2rem; }
.footer__nav a { font-size: .875rem; color: rgba(255,255,255,.8); transition: color .2s; }
.footer__nav a:hover { color: #fff; }
.footer__mid { display: flex; flex-direction: column; gap: 2rem; }
.footer__cols { display: flex; gap: 3rem; }
.footer__col .label { font-size: .875rem; font-weight: 600; margin-bottom: .25rem; }
.footer__col .value, .footer__col a { font-size: .875rem; color: rgba(255,255,255,.7); }
.footer__col a { text-decoration: underline; }
.footer__col a:hover { color: #fff; }
.footer__socials { display: flex; gap: 1rem; }
.footer__socials a { color: rgba(255,255,255,.7); transition: color .2s; }
.footer__socials a:hover { color: #fff; }
.footer__socials svg { width: 20px; height: 20px; fill: currentColor; }
.footer__bottom {
	margin-top: 4rem; padding-top: 2rem;
	border-top: 1px solid rgba(255,255,255,.1);
	display: flex; flex-direction: column; gap: 1rem;
}
.footer__bottom p, .footer__bottom a { font-size: .875rem; color: rgba(255,255,255,.5); }
.footer__bottom a { text-decoration: underline; }
.footer__legal { display: flex; gap: 1.5rem; }

@media (min-width: 640px) {
	.footer__top { flex-direction: row; align-items: center; justify-content: space-between; }
	.footer__mid { flex-direction: row; align-items: flex-start; justify-content: space-between; }
	.footer__bottom { flex-direction: row; align-items: center; justify-content: space-between; }
}

/* Disclaimers */
.disclaimers { border-top: 1px solid var(--border); padding-top: 2rem; }
.disclaimers h2 { font-size: 1.25rem; font-weight: 600; margin-bottom: 1rem; }
.disclaimers p { font-size: .875rem; line-height: 1.6; color: var(--muted-fg); }
