/*!
Theme Name: Chiro
Author: Apex
Version: 1.0.0
Tested up to: 8.2
Requires PHP: 8.2
Text Domain: chiro
*/

/* =========================================
ROOT VARIABLES
========================================= */
:root {
	--primary: #0a4976;
	--primary-dark: #06314f;
	--accent: #A5372D;
	--bg: #ffffff;
	--text: #111827;
	--light: #ffffff;
}

/* =========================================
BASE ELEMENTS
========================================= */
* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

body {
	font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	color: var(--text);
	background: #ffffff;
	line-height: 1.6;
}

p {
	margin-top: 1rem;
	margin-bottom: 1rem;
}

/* =========================================
GLOBAL DEFAULT HEADINGS
========================================= */

h1 {
	font-family: "Georgia", "Times New Roman", serif;
	font-size: clamp(2.6rem, 4vw, 3.1rem);
	line-height: 1.1;
	font-weight: 500;
	color: #111827;
	max-width: 40rem;
}

h2 {
	font-family: "Georgia", "Times New Roman", serif;
	font-size: 1.8rem;
	line-height: 1.25;
	letter-spacing: 0.01em;
	font-weight: 500;
	color: #0d1a2b;
	margin-bottom: 1.2rem;
}

h3 {
	font-family: "Georgia", "Times New Roman", serif;
	font-size: 1.35rem;
	font-weight: 500;
	color: #0d1a2b;
	margin: 2rem 0 1rem;
	line-height: 1.3;
}

h4 {
	font-family: "Georgia", "Times New Roman", serif;
	font-size: 1.22rem;
	font-weight: 500;
	color: #0d1a2b;
	margin: 1.6rem 0 0.75rem;
	line-height: 1.35;
}

h5 {
	font-family: "Georgia", "Times New Roman", serif;
	font-size: 1.05rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #0d1a2b;
	margin: 1.4rem 0 0.6rem;
}

h6 {
	font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 0.9rem;
	font-weight: 700;
	color: #374151; /* slate-700 */
	text-transform: uppercase;
	letter-spacing: 0.08em;
	margin: 1.2rem 0 0.5rem;
}

h1:first-child, h2:first-child, h3:first-child, h4:first-child, h5:first-child, h6:first-child {
	margin-top: 0;
}

ul {
	padding-left: .85rem;
}

ul li {
	line-height: 1.5rem;
	color: #111827;
	position: relative;
}

ol {
	padding-left: 1.4rem;
	margin-bottom: 1.6rem;
}

ol li {
	line-height: 1.6;
	color: #111827;
}


ul li::marker {
	color: var(--accent); /* Your brand red */
}

hr {
	display: block;
    margin-block-start: 0.5em;
    margin-block-end: 0.5em;
    margin-inline-start: auto;
    margin-inline-end: auto;
    unicode-bidi: isolate;
    overflow: hidden;
    border-style: dashed;
    border-width: 1px;
	color: #dddddd;
}

/* =========================================
GLOBAL BLOCKQUOTE STYLE
========================================= */

blockquote {
	border-left: 4px solid var(--accent);
	padding: 1rem 1.5rem;
	margin: 2rem 0;
	font-style: italic;
	font-size: 1.05rem;
	line-height: 1.65;
	color: #374151; /* slate-700 */
	background: #fafafa;
	border-radius: 6px;
}

blockquote p {
	margin: 0; /* prevent double spacing */
}

blockquote footer {
	margin-top: 0.75rem;
	font-size: 0.9rem;
	font-style: normal;
	color: #6b7280; /* muted */
}

/* =========================================
CUSTOM TICK LIST STYLE
========================================= */

.tick-list {
	list-style: none;
	padding: 0;
	margin: 1.2rem 0;
}

ul.tick-list li {
	position: relative;
	padding-left: 1.9rem; /* space for tick icon */
	margin-bottom: 0.7rem;
	color: #111827;
	line-height: 1.55;
	font-size: 1rem;
}

.tick-list li::before {
	content: "✔";
	position: absolute;
	left: 0;
	top: 0.05rem;
	font-size: 1.1rem;
	color: var(--accent); /* uses your brand red */
	font-weight: 600;
}

/* GLOBAL LINK RESET (safe – does NOT affect nav underline) */
a {
	text-decoration: none;
	color: inherit;
}

a:hover {
	text-decoration: none;
}

/* =========================================
POST CONTENT
========================================= */

/* ✅ Classic Editor image alignment (fix wrapping) */
.post-content img.alignleft,
.post-content .alignleft {
  float: left;
  margin: 0.3em 1.2em 1em 0;
}

.post-content img.alignright,
.post-content .alignright {
  float: right;
  margin: 0.3em 0 1em 1.2em;
}

.post-content img {
  max-width: 100%;
  height: auto;
  display: inline-block; /* instead of block */
}

.post-content img.aligncenter,
.post-content .aligncenter {
  margin-left: auto;
  margin-right: auto;
}

/* ✅ Captions (very common in Classic Editor) */
.post-content .wp-caption.alignleft {
  float: left;
  margin: 0.3em 1.2em 1em 0;
}

.post-content .wp-caption.alignright {
  float: right;
  margin: 0.3em 0 1em 1.2em;
}

.post-content .wp-caption img {
  margin: 0;
}

.post-content ul > li {
  margin-left: 2.5rem;
  padding-left: 0.2rem;
}




/* =========================================
HEADER / NAVIGATION
========================================= */

header {
	background: #ffffff;
	color: var(--text);
	border-bottom: 1px solid #e5e7eb;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
	position: relative;
	z-index: 20;
}

.nav {
	max-width: 1100px;
	margin: 0 auto;
	padding: 0.8rem 0.8rem;
	display: flex;
	justify-content: space-between;
	align-items: end;
}

.nav-left {
	display: flex;
	gap: 2rem;
	align-items: end;

}

.logo img {
	height: 70px;
	width: auto;
	display: block;
}

/* -------------------------
MAIN MENU
-------------------------- */

nav ul {
	list-style: none;
	display: flex;
	gap: 1.4rem;
	font-size: 0.92rem;
	font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

nav ul li a {
	position: relative;
	text-decoration: none;
	color: var(--text);
	padding-bottom: 4px;
	transition: color 0.25s ease;
}

.burger {
	display: none;
	width: 30px;
	height: 22px;
	flex-direction: column;
	justify-content: space-between;
	background: none;
	border: 0;
	padding: 0;
	cursor: pointer;
	z-index: 1001;
}

.burger span {
	height: 3px;
	width: 30px;
	background: #000;
	border-radius: 2px;
	display: block;
}

/* =========================================
UNDERLINE (NON-DROPDOWN ITEMS ONLY)
========================================= */

/* underline uses ::before so caret (▾) can use ::after */
nav ul li > a::before {
	content: "";
	position: absolute;
	bottom: 0;
	left: 0;
	width: 0;
	height: 3px;
	background: var(--accent);
	border-radius: 3px;
	transition: width 0.28s ease;
}

/* expand underline on hover + active */
nav ul li:not(.menu-item-has-children):not(.menu-item-has-children) > a:hover::before,
nav ul li:not(.menu-item-has-children):not(.menu-item-has-children) > a.active::before {
	width: 100%;
}

/* text colour on hover/active */
nav ul li > a:hover,
nav ul li > a.active {
	color: var(--accent);
}

/* ========== DROPDOWN MENU ========== */

/* Parent item */
.main-menu .menu-item-has-children {
	position: relative;
}

/* Add caret to parent link */
.main-menu .menu-item-has-children > a {
	position: relative;
	padding-right: 1rem;
}


/* Submenu panel */
.sub-menu {
	position: absolute;
	top: 100%; /* sit flush under the parent, no gap */
	left: 0;
	min-width: 220px;
	background: #ffffff;
	border: 1px solid #e5e7eb;
	box-shadow: 0 10px 25px rgba(15, 23, 42, 0.12);
	border-radius: 0.75rem;
	padding: 0;
	list-style: none;
	z-index: 30;
	overflow: hidden;
	display: none; /* hidden by default */
}

/* Submenu list items */
.sub-menu li {
	display: block;
}

.sub-menu li a {
	display: block;
	padding: 0.5rem 1.1rem;
	color: #111827;
	white-space: nowrap;
}

.sub-menu li a:hover {
	background: #f3f4f6;
	text-decoration: none;
}

@media (min-width: 471px) {
	/* Show submenu */
	.main-menu .menu-item-has-children:hover > .sub-menu,
	.main-menu .menu-item-has-children:focus-within > .sub-menu {
		display: block;
	}
}

/* Mobile NAV */
/* Mobile */
@media (max-width: 470px) {
	header .nav-left {
		width: 100%;
		justify-content: space-between;
	}

	.burger {
		display: flex;
	}

	.burger span {
		transition: .25s;
	}

	.nav-left:has(.mobile-nav.open) .burger {
		position: fixed;
		right: .4rem;
	}

	.nav-left:has(.mobile-nav.open) .burger span:first-child {
		transform: rotate(45deg) translate(7px, 7px);
	}

	.nav-left:has(.mobile-nav.open) .burger span:last-child {
		transform: rotate(-45deg) translate(7px, -7px);
	}

	.nav-left:has(.mobile-nav.open) .burger span:nth-child(2) {
		opacity: 0;
	}

	.mobile-nav {
		position: fixed;
		top: 0;
		left: auto;
		right: -100%;
		width: 80%;
		max-width: 300px;

		/* ✅ viewport-safe height stack */
		height: 100vh;
		height: 100svh;
		height: 100dvh;

		overflow-y: auto;
		overflow-x: hidden;
		-webkit-overflow-scrolling: touch;

		background: #fff;
		padding: 100px 20px 20px;
		transition: right .3s ease;
		z-index: 1000;
		box-shadow: 10px 0px 15px rgba(0, 0, 0, 0.08);
	}

	.mobile-nav.open {
		right: 0;
	}

	.main-menu {
		display: flex;
		flex-direction: column;
		gap: 20px;
		min-height: 0;
	}

	.main-menu .menu-item-has-children {
		position: relative;
	}

	.main-menu .menu-item-has-children > a {
		position: initial;
	}

	.main-menu .menu-item-has-children > a::after {
		top: 1.25em;
		z-index: 1;
	}

	/* Show submenu */
	.main-menu .menu-item-has-children.open > .sub-menu {
		display: block;
	}
/* Submenu should expand naturally — no independent scrolling */
.mobile-nav .sub-menu {
	position: relative;
	max-height: none;
	overflow: visible;

	margin-top: 0.5rem;
	padding-bottom: 0.25rem;
}

/* Ensure the whole mobile menu scrolls as one */
.mobile-nav {
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}

.mobile-nav li.menu-item {
	padding: 0;
}

}

@media (max-width: 470px) {
  .main-menu .menu-item-has-children > a::after { content: none !important; }

  .mobile-nav .menu-item-has-children { position: relative; }

  .mobile-nav .submenu-toggle{
    position:absolute;
    right:0;
    top:50%;
    transform:translateY(-50%);
    width:44px;
    height:44px;
    border:0;
    background:transparent;
    cursor:pointer;
    color: var(--accent);
    font-size:22px;
    line-height:1;
  }
}

/* Mobile submenu toggle button (single source of truth) */
@media (max-width: 470px) {

  /* Turn off the desktop pseudo + on mobile */
  .main-menu .menu-item-has-children > a::after {
    content: none !important;
    display: none !important;
  }

  /* Make room for the real button */
  .mobile-nav .menu-item-has-children > a {
    position: relative;
    padding-right: 44px;
  }

  /* The real tappable + / – button */
  .mobile-nav .submenu-toggle {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
    color: var(--accent);
    font-size: 22px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }
}

/* Never show the real toggle button on desktop */
@media (min-width: 471px) {
  .submenu-toggle { display: none !important; }
}



/* =========================================
BUTTONS
========================================= */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.75rem 1.9rem;
	border-radius: 999px;
	border: none;
	cursor: pointer;
	font-size: 0.95rem;
	font-weight: 600;
	transition: background 0.2s ease, transform 0.1s ease;
	white-space: nowrap;
	text-decoration: none;
}

.btn-primary {
	background: var(--accent);
	color: #ffffff !important;
}

.btn-primary:hover {
	background: #b84237;
	transform: translateY(-1px);
}

/* =========================================
INTERNAL PAGE HERO
========================================= */
.inner-hero {
	background: linear-gradient(
		to bottom,
		#f6f7fb 0%,
		#e9f1ff 55%,
		#ffffff 100%
	);
	border-bottom: 1px solid #e5e7eb;
}

.inner-hero-inner {
	max-width: 1100px;
	margin: 0 auto;
	padding: 4rem 1.25rem 3.5rem;
}

.inner-hero-eyebrow {
	font-family: "Georgia", "Times New Roman", serif;
	font-size: 0.9rem;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: #6b7280;
	margin-bottom: 0.6rem;
}


/* Header action buttons */
.nav-actions {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.nav-cta {
	font-size: 0.9rem;
	padding: 0.6rem 1.4rem;
}

/* Mobile: buttons shrink a bit and sit side-by-side full width */
@media (max-width: 600px) {
	.nav-actions {
		width: 100%;
		margin-top: 0.75rem;
	}

	.nav-cta {
		flex: 1; /* each button takes ~50% width */
		justify-content: center;
		text-align: center;
		padding: 0.55rem 0.8rem;
		font-size: 0.85rem;
	}
}


/* =========================================
INTERNAL PAGE MAIN CONTENT
========================================= */

main {
	background: #ffffff;
}

.inner-main-section {
	background: #ffffff;
}

.inner-main-inner {
	max-width: 1100px;
	margin: 0 auto;
	padding: 4rem 1.25rem 6rem;
	display: block;
}

.inner-main-inner:has(.inner-main-right) {
	display: grid;
	grid-template-columns: 3fr 1fr;
	grid-gap: 3rem;
	align-items: flex-start;
}


.inner-main-right .widget:not(:last-child) {
	margin-bottom: 1rem;
}

.inner-main-right2 {
	align-items: right;
	margin-bottom: 1rem;
}

/* WHY CHOOSE US LIST */

.why-list {
	list-style: none;
	padding: 0;
	margin-top: 1rem;
}

.why-item {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin-bottom: 0.75rem;
	color: #111827;
}

.why-icon {
	width: 34px;
	height: 34px;
	border-radius: 999px;
	background: #f3f4f6;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 1rem;
}

/* =========================================
FOOTER
========================================= */

.footer-chiro {
	background: linear-gradient(
		to bottom,
		#ffffff 0%,
		#dff0ff 30%,
		#a8c9ee 100%
	);
	padding: 3rem 1.25rem;
	color: #0f1f2a;
	font-size: 0.95rem;
}

.footer-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 2.5rem;
	max-width: 1100px;
	margin: 0 auto;
}

.footer-heading {
	font-family: "Georgia", "Times New Roman", serif;
	font-size: 1rem;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	margin-bottom: 1rem;
	color: #0d2530;
}

.blog-sidebar ul,
.footer-col ul {
	list-style: none;
	padding: 0;
	font-size: 0.9rem;
}

.blog-sidebar ul li,
.footer-col ul li {
	margin-bottom: 0.45rem;
}

.blog-sidebar ul a,
.footer-col ul a {
	color: #0d2530;
}

.blog-sidebar ul a:hover,
.footer-col ul a:hover {
	text-decoration: underline;
}

.footer-contact-block {
	margin-bottom: 1rem;
	line-height: 1.45;
}

.footer-contact-line {
	margin-bottom: 1rem;
	font-size: 0.9rem;
}

.footer-contact-line span {
	font-weight: 600;
}

.footer-bottom {
	background: #a8c9ee;
	color: #0f1f2a;
	text-align: center;
	padding: 0.9rem 1rem;
	font-size: 0.85rem;
	letter-spacing: 0.02em;
}



/* =========================================
 AUTHOR BOX
========================================= */

.author-box {
  margin-top: 3rem;
  padding: 1.25rem;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.05);
}

.author-box__inner {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1.25rem;
  align-items: start;
}

/* Avatar */
.author-box__avatar img {
  width: 140px;
  height: 140px;
  border-radius: 12px;
  object-fit: cover;
  display: block;
}

/* Right column stack */
.author-box__content {
  display: flex;
  flex-direction: column;
}

/* Tight header spacing */
.author-box__kicker {
  margin: 0;
  font-size: 0.85rem;
  color: #6b7280;
  line-height: 1.2;
}

.author-box__name {
  margin: 0.15rem 0 0;
}

.author-box__meta {
  margin: 0.25rem 0 0;
  color: #6b7280;
  font-size: 0.85rem;
}

/* Bio sits directly under meta */
.author-box__bio {
  margin-top: 0.75rem;
  font-size: 0.85rem;
}

/* Links */
.author-box__links {
  margin-top: 0.5rem;
  font-size: 0.85rem;
}

/* Mobile: stack */
@media (max-width: 240px) {
  .author-box__inner {
    grid-template-columns: 1fr;
  }

  .author-box__avatar img {
    width: 96px;
    height: 96px;
  }
}




/* =========================================
GOOGLE REVIEWS SECTION
========================================= */

.reviews-section {
	background: #ffffff;
}

.reviews-inner {
	max-width: 1100px;
	margin: 0 auto;
	padding: 6rem 1.25rem 6rem;
	text-align: center;
}

/* Heading uses global h2 font stack */
.reviews-heading {
	margin-bottom: 0.5rem;
}

.reviews-subheading {
	font-size: 0.98rem;
	color: #4b5563;
	max-width: 42rem;
	margin: 0 auto 2.5rem;
}

/* Cards layout */
.reviews-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 2rem;
}

/* Individual review card */
.review-card {
	background: #ffffff;
	border-radius: 22px;
	padding: 2rem 2.1rem 2.3rem;
	text-align: left;
	box-shadow: 0 18px 45px rgba(15, 23, 42, 0.06),
		0 2px 6px rgba(15, 23, 42, 0.04);
	border: 1px solid rgba(148, 163, 184, 0.25);
}

/* Top row: avatar + name/location */
.review-header {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin-bottom: 1rem;
}

.review-avatar {
	width: 52px;
	height: 52px;
	border-radius: 999px;
	background: #e5f0ff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 600;
	color: var(--primary-dark);
	font-size: 1.1rem;
}

.review-name {
	font-weight: 600;
	color: #111827;
	font-size: 1.02rem;
}

.review-location {
	font-size: 0.85rem;
	color: #6b7280;
}

/* Stars + text */
.review-stars {
	color: #f5b31a;
	font-size: 1.1rem;
	letter-spacing: 0.08em;
	margin-bottom: 0.9rem;
}

.review-text {
	font-size: 0.96rem;
	color: #111827;
	line-height: 1.7;
}

/* MOBILE: make reviews a horizontal slider */
@media (max-width: 760px) {

	.reviews-grid {
		display: flex; /* row instead of grid */
		overflow-x: auto; /* horizontal scroll */
		scroll-snap-type: x mandatory; /* snap between cards */
		-webkit-overflow-scrolling: touch;
		gap: 1.25rem;
		padding-bottom: 1rem;
	}

	.review-card {
		flex: 0 0 85%; /* show ~1 card at a time */
		max-width: 85%;
		scroll-snap-align: center;
		margin: 0; /* let gap control spacing */
	}
}

@media (max-width: 760px) {
	.reviews-inner {
		padding-left: 1.25rem;
		padding-right: 1.25rem;
	}
}

/* =========================================
RESPONSIVE BREAKPOINTS
========================================= */

/* ========== RESPONSIVE ========== */

@media (max-width: 900px) {
	.footer-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 2rem;
	}
}

@media (max-width: 1035px) {
	.nav {
		flex-direction: column;
		align-items: flex-start;
	}

	nav ul {
		flex-wrap: wrap;
		gap: 1rem;
		font-size: 0.9rem;
	}

	.nav-left {
		flex-wrap: wrap;
		gap: 1.25rem;
	}

	.inner-hero-inner {
		padding: 3rem 1.25rem 3rem;
	}

	.inner-main-inner:has(.inner-main-right) {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 560px) {
	.footer-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 600px) {
	nav ul {
		gap: 0.9rem;
	}
}

@media (max-width: 380px) {
	nav ul li a {
		font-size: 0.8rem;
	}
}

/* =========================================
HOME PAGE HERO
========================================= */

.hero {
	background-image: linear-gradient(
		to left,
		rgba(255, 255, 255, 0) 0%,
		rgba(255, 255, 255, 0.85) 45%,
		rgba(255, 255, 255, 1) 100%
	),
		url("/wp-content/uploads/2025/12/chiro-hero2.webp");
	background-size: cover;
	background-position: right center;
	background-repeat: no-repeat;
	background-blend-mode: soft-light;
	padding: 5rem 1.25rem 6rem;
}

.hero {
	position: relative;
	z-index: 1;
}

.hero::before {
	content: "";
	position: absolute;
	top: -25px; /* moves it above the hero */
	left: 0;
	width: 100%;
	height: 25px; /* thickness of the shadow */
	pointer-events: none;

	background: linear-gradient(
		to top,
		rgba(0, 0, 0, 0.08) 0%,
		rgba(0, 0, 0, 0.00) 100%
	);
	z-index: -1;
}

.hero-inner {
	max-width: 1100px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	text-align: left;
}

.hero-eyebrow {
	font-family: "Georgia", "Times New Roman", serif;
	font-size: 0.95rem;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: #4b5563;
	margin-bottom: 1.1rem;
}

.hero-title-block {
	margin-bottom: 1.6rem;
}

.hero-title-large {
	font-family: "Georgia", "Times New Roman", serif;
	font-size: 3.4rem;
	line-height: 1.1;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #0d1a2b;
}

.hero-title-large + .hero-title-large {
	margin-top: 0.4rem;
}

.hero-lead {
	font-size: 1rem;
	max-width: 26rem;
	margin-bottom: 1.8rem;
	color: #111827;
}

.hero-logos {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1.75rem;
	margin-bottom: 2rem;
}

.hero-logos img {
	max-height: 40px;
	width: auto;
	display: block;
}

.hero-logos img {
	max-height: 44px;
	width: auto;
}

/* Mobile: shrink health-fund logos to ~50–60% */
@media (max-width: 600px) {
	.hero-logos img {
		max-height: 28px;
	}
}

.hero-cta {
	margin-top: 0.25rem;
}

@keyframes fadeInLeft {
	0% {
		opacity: 0;
		transform: translateX(-40px);
	}
	100% {
		opacity: 1;
		transform: translateX(0);
	}
}

.animate-fade-left {
	opacity: 0;
	animation: fadeInLeft 0.9s ease-out forwards;
}

.delay-1 {
	animation-delay: 0.25s;
}

.delay-2 {
	animation-delay: 0.45s;
}

.delay-3 {
	animation-delay: 0.65s;
}


/* =========================================
HOME INTRO SECTION
========================================= */


.intro-eyebrow {
	font-family: "Georgia", "Times New Roman", serif;
	font-size: 0.9rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	margin-bottom: 0.3rem;
	color: #4b5563;
}

.intro-heading {
	font-family: "Georgia", "Times New Roman", serif;
	font-size: 2rem;
	line-height: 1.25;
	margin-bottom: 1.1rem;
	color: #0d1a2b;
}

.intro-cta {
	margin-top: 1rem;
}

/* ========== AWARD STRIP ========== */

.award-band {
	background: radial-gradient(
		circle,
		#dce7f7 0%, /* dark centre */ #e9f1ff 15%, /* light transition much earlier */ #ffffff 34% /* white starts sooner and dominates the edges */
	);

	padding: 8rem 1.25rem;
}

.award-inner {
	max-width: 800px;
	margin: 0 auto;
}

.award-grid {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 2.5rem;
	align-items: center;
}

/* Badge keeps original size */
.award-badge img {
	width: auto;
	max-width: 180px;
	height: auto;
	display: block;
}

/* Text */

.award-eyebrow {
	font-family: "Georgia", "Times New Roman", serif;
	font-size: 0.95rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	margin-bottom: 0.3rem;
	color: #4b5563;
}

.award-heading {
	font-family: "Georgia", "Times New Roman", serif;
	font-size: 2rem;
	line-height: 1.25;
	margin-bottom: 1rem;
}

@media (max-width: 800px) {
	.award-grid {
		grid-template-columns: 1fr;
		text-align: center;
	}

	.award-badge img {
		max-width: 160px;
		margin: 0 auto;
	}

	.award-copy {
		text-align: left;
	}
}


/* =========================================
HISTORY SECTION (IMAGE LEFT, TEXT RIGHT)
========================================= */

.history-band {
	position: relative;
	padding: 5rem 1.25rem;
	overflow: hidden; /* prevents flipped bg from spilling out */

}

.history-inner {
	max-width: 1100px;
	margin: 0 auto;
	display: flex;
	justify-content: flex-end; /* push content to the right */
}

.history-content {
	width: 75%; /* requested text width */
	max-width: 640px;
	padding-left: 2rem;
}

.history-cta {
	margin-top: 1rem;
}

/* RESPONSIVE */
@media (max-width: 900px) {
	.history-inner {
		justify-content: center;
	}

	.history-content {
		width: 100%;
		max-width: 600px;
		text-align: left;
		padding-left: 0;
	}

	.history-band {
		background-position: center top;
		background-size: cover;
		padding: 3rem 1.25rem;
	}
}

.history-inner {
	max-width: 1100px;
	margin: 0 auto;
	display: flex;
	justify-content: flex-end;
}

.history-content {
	width: 65%;
	max-width: 640px;
	padding-left: 2rem;
	position: relative; /* enables absolute positioning */
}

/* --- ACA LOGO STYLING (DESKTOP) --- */
.aca-logo {
	position: absolute;
	left: -360px;
	top: 50%;
	transform: translateY(-50%);
	width: 280px; /* desktop size */
	height: auto;
	opacity: 0.9;
}

/* --- MOBILE FALLBACK: LOGO ABOVE TEXT --- */
@media (max-width: 900px) {
	.aca-logo {
		position: static;
		transform: none;
		margin-bottom: 1.2rem;
		display: block;
		width: 150px; /* <<< mobile size (adjust as needed) */
		height: auto;
		opacity: 1; /* optional: make sharper on mobile */
	}

	.history-content {
		padding-left: 0;
		width: 100%;
	}
}


/* =========================================
FAQ SECTION (MATCHES TEAM CARD STYLE)
========================================= */

.faq-band {
	background: #f7fafc; /* soft grey/blue like other sections */
}

.faq-inner {
	max-width: 1100px;
	margin: 0 auto;
}

.faq-heading {
	text-align: center;
	margin-bottom: 2.5rem;
}

.faq-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 2rem;
}

/* Card style to echo the chiropractor cards */
.faq-card {
	background: #ffffff;
	border-radius: 24px;
	padding: 2rem 2.25rem;
	box-shadow: 0 24px 60px rgba(15, 23, 42, 0.06);
	border: 1px solid #e5e7eb;
}

.faq-question {
	width: 100%;
	background: none;
	border: none;
	padding: 1.25rem 1.5rem;
	text-align: left;
	font-size: 1.1rem;
	font-weight: 400;
	color: #0d1a2b;
	display: flex;
	justify-content: space-between;
	cursor: pointer;
}

/* CTA row under FAQs */

.faq-cta-row {
	margin-top: 2.5rem;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1rem;
	font-size: 0.95rem;
}

.faq-cta-row p {
	margin: 0;
}

/* Responsive tweaks */

@media (max-width: 900px) {
	.faq-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.faq-card {
		padding: 1.75rem 1.75rem;
	}

	.faq-cta-row {
		flex-direction: column;
		text-align: center;
	}
}

/* =========================================
FAQ ACCORDION
========================================= */

.faq-band {
	background: #f7fafc;
	padding: 6rem 1.25rem;
}

.faq-inner {
	max-width: 900px;
	margin: 0 auto;
}

.faq-heading {
	text-align: center;
	margin-bottom: 2.5rem;
}

/* Accordion wrapper */
.faq-accordion {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}


.inner-main-left p:empty,
.faq-accordion br {
	display: none;
}

/* Accordion item card */
.faq-item {
	background: #ffffff;
	border-radius: 18px;
	border: 1px solid #e5e7eb;
	box-shadow: 0 12px 36px rgba(15, 23, 42, 0.05);
	overflow: hidden;
}

/* Accordion button */


.faq-icon {
	font-size: 1.4rem;
	line-height: 1;
	transition: transform 0.25s ease;
	color: var(--accent);
}

/* Hidden answer area */
.faq-answer {
	max-height: 0;
	overflow: hidden;
	background: #ffffff;
	transition: max-height 0.3s ease;
}

.faq-answer {
	font-size: 1rem;
	color: #111827;
	padding-left: 1rem;
	padding-right: 0.4rem;
	margin-left: 1rem;
	margin-right: 0.4rem;
}


/* Active state */
.faq-item.active .faq-answer {
	max-height: 200vH;
}

.faq-item.active .faq-icon {
	transform: rotate(45deg);
}

/* =========================================
OUR CHIROPRACTORS SECTION (blog-card style)
========================================= */

.team-band {
	padding: 4.5rem 1.25rem 5rem;
	background: #ffffff;
}

.team-inner {
	max-width: 1100px;
	margin: 0 auto;
}

.section-heading-center {
	text-align: center;
	margin-bottom: 2.75rem;
}

/* Centered two-column layout */
.team-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr); /* two equal columns */
	gap: 2.5rem;

	max-width: 900px; /* total width of both cards */
	margin: 0 auto; /* center the grid */
}

/* Card wrapper */
.team-card {
	background: #ffffff;
	border-radius: 22px;
	border: 1px solid rgba(148, 163, 184, 0.25);
	box-shadow: 0 18px 45px rgba(15, 23, 42, 0.06),
		0 2px 6px rgba(15, 23, 42, 0.04);
	overflow: hidden; /* ensures image radius is clean */
	display: flex;
	flex-direction: column;
}

/* IMAGE block — rectangular like posts */
.post-image {
	width: 100%;
	height: 240px; /* choose height to match your posts */
	border-radius: 18px 18px 0 0;
	overflow: hidden;
}

/* IMAGE — grayscale effect */
.post-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;

	filter: grayscale(100%);
	transition: filter 0.3s ease, transform 0.25s ease;
}

.team-card:hover .post-image img {
	filter: grayscale(0%);
	transform: scale(1.02);
}

/* BODY */
.post-body {
	padding: 1.9rem 1.9rem 2.3rem;
}

/* Title */
.post-title {
	font-family: "Georgia", "Times New Roman", serif;
	font-size: 1.25rem;
	letter-spacing: 0.03em;
	margin-bottom: 0.9rem;
	color: #0d1a2b;
}

/* Excerpt */
.post-excerpt {
	font-size: 0.95rem;
	line-height: 1.7;
	color: #111827;
	margin-bottom: 1.1rem;
}

/* Read More */
.post-link {
	font-size: 0.93rem;
	font-weight: 600;
	color: var(--accent);
	text-decoration: none;
}

.post-link:hover {
	text-decoration: underline;
}

/* Responsive */
@media (max-width: 900px) {
	.team-grid {
		grid-template-columns: 1fr;
	}
}


/* =========================================
FINAL CTA BAND
========================================= */

.final-cta-band {
	background: #ffffff;
	padding: 10rem 1.25rem 10rem;
	border-top: 1px solid #e5e7eb;
}

.final-cta-inner {
	max-width: 900px;
	margin: 0 auto;
	text-align: center;
}

.final-cta-heading {
	font-family: "Georgia", "Times New Roman", serif;
	font-size: 2rem;
	line-height: 1.25;
	letter-spacing: 0.01em;
	font-weight: 500;
	color: #0d1a2b;
	margin-bottom: 1.2rem;

}

.final-cta-text {
	font-size: 1rem;
	color: #111827;
	max-width: 42rem;
	margin: 0 auto 2rem;
}

/* Buttons row */
.final-cta-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 1rem;
	margin-bottom: 1.5rem;
}

.final-cta-btn {
	min-width: 210px;
}

/* Outline button using your existing colours */
.btn-outline {
	background: transparent;
	border: 2px solid var(--accent); /* same red as primary CTA */
	color: var(--accent);
}

.btn-outline:hover {
	background: var(--accent);
	color: #ffffff;
}

/* Small note under buttons */
.final-cta-note {
	font-size: 0.9rem;
	color: #4b5563;
}

/* Responsive tweak */
@media (max-width: 600px) {
	.final-cta-band {
		padding: 3rem 1.25rem 3.5rem;
	}

	.final-cta-heading {
		font-size: 1.5rem;
	}
}

/* =========================================
FEATURE ARTICLES / POSTS
========================================= */

.articles-section {
	background: #ffffff;
}

.articles-inner {
	max-width: 1100px;
	margin: 0 auto;
	padding: 10rem 1.25rem 5rem;
}

.articles-heading {
	text-align: center;
	margin-bottom: 0.5rem;
}

.articles-subheading {
	text-align: center;
	font-size: 0.98rem;
	color: #4b5563;
	max-width: 40rem;
	margin: 0 auto 2.8rem;
}

/* Grid of 4 cards */
.articles-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1.8rem;
}

/* Card surface */
.article-card {
	background: #ffffff;
	border-radius: 22px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	box-shadow: 0 18px 45px rgba(15, 23, 42, 0.06),
		0 2px 6px rgba(15, 23, 42, 0.04);
	border: 1px solid rgba(148, 163, 184, 0.22);
}

/* Feature image */
.article-image-wrap {
	display: block;
	overflow: hidden;
}

.article-image-wrap img {
	display: block;
	width: 100%;
	height: 170px;
	object-fit: cover;
	transition: transform 0.35s ease;
}

/* Subtle zoom on hover */
.article-card:hover .article-image-wrap img {
	transform: scale(1.04);
}

/* Card content */
.article-body {
	padding: 1.5rem 1.7rem 1.8rem;
	font-size: 14px;
	color: #4b5563;
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}

.article-title {
	font-size: 1.05rem;
	margin-bottom: 0.5rem;
}

.article-title a {
	color: #111827;
	text-decoration: none;
}

.article-title a:hover {
	text-decoration: underline;
}

.article-excerpt {
	font-size: 0.92rem;
	color: #4b5563;
	margin-bottom: 1.3rem;
}

/* "Read more" link */
.article-link {
	margin-top: auto;
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--accent);
	text-decoration: none;
}

.article-card:hover .article-link {
	text-decoration: underline;
}

.post-content img {
	max-width: 100%;
	width: auto;
	height: auto;
	display: block;
	margin-right: 1em;
}

.post-content img.aligncenter {
	margin-inline: auto;
}

.post-content img:not(:last-child) {
	padding-bottom: 1rem;
}

.post-content iframe[src*="youtu.be"],
.post-content iframe[src*="youtube.com"] {
	width: 100%;
	aspect-ratio: 1.6;
	height: auto;
}

.inner-main-left h2:not(:first-child),
.post-content h2 {
	margin-top: 2.5rem;
}

.inner-main-left a {
	color: var(--accent);
}

/* =========================================
DEFAULT CONTENT IMAGE STYLING
========================================= */

.inner-main-left img {
	border-radius: 10px;
	max-width: 100%;
	height: auto;
}



/* Contact form */
.wpcf7-form {
	display: grid;
	grid-gap: .5rem;
}

.wpcf7-form .wpcf7-form-control {
	width: 100%;
}

.wpcf7-form .wpcf7-form-control:not(.wpcf7-submit) {
	padding: .5rem;
	font-family: inherit;
	border-radius: .5rem;
	border: solid 1px #767676;
}

.table-price {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 2rem;
}
.table-price th, .table-price td {
	padding: 12px;
	text-align: left;
	border-bottom: 1px solid #ddd;
}
.table-price th {
	background-color: #2b2b2b;
	color: white;
}

.table-price tr:hover {
	background-color: #f1f1f1;
}

body.page .inner-main-left img {
	max-width: 100%;
	height: auto;
}

.row {
	display: grid;
	grid-gap: 2rem;
}

iframe {
	border: initial;
}

/* Responsive layout */
@media (min-width: 769px) {
	.row {
		grid-template-columns: repeat(attr(data-col type(<number>), 2), 1fr);
	}
	
	.row img {
		max-width: 100%;
		height: auto;
	}
}

@media (max-width: 1024px) {
	.articles-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.articles-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.article-image-wrap img {
		height: 190px;
	}
}

/* =========================================
HOME: RESPONSIVE
========================================= */

@media (max-width: 900px) {
	.hero {
		padding: 4rem 1.25rem 4.5rem;
		background-position: center right;
	}

	.hero-inner {
		align-items: flex-start;
		text-align: left;
	}

	.hero-title-large {
		font-size: 2.6rem;
	}
}

@media (max-width: 768px) {
	.hero {
		background-position: center;
	}

	.hero-logos {
		gap: 1.2rem;
	}

	.intro-grid {
		grid-template-columns: minmax(0, 1fr);
		text-align: left;
	}

	.intro-image {
		max-width: 320px;
	}
}

@media (max-width: 560px) {
	.hero-title-large {
		font-size: 2.2rem;
	}

	.hero-lead {
		max-width: 100%;
	}
}
