/* ============================================================
   Clean section system (replaces Divi's et_pb_section/row/column
   scaffolding). Values taken from the live site's computed styles.
   ============================================================ */

.s { position: relative; }

/* Site-wide container — mirrors the header's .nav-container EXACTLY at every viewport
   (width:90% capped at 1440; below 1365 it goes full width with 15px inset). Using the
   same rule, not a fixed 72px pad, so content lines up with the header at ALL widths,
   not just at 1440px. */
.s > .s-container,
.ac-container {
	width: 90%;
	max-width: 1440px;
	margin: 0 auto;
}
@media (max-width: 1365px) {
	.s > .s-container,
	.ac-container { width: 100%; padding-left: 15px; padding-right: 15px; }
}

/* Vertical rhythm (from live computed section padding) */
.s--pt-0  { padding-top: 0; }
.s--pt-27 { padding-top: 27px; }
.s--pt-30 { padding-top: 30px; }
.s--pt-40 { padding-top: 40px; }
.s--pt-60 { padding-top: 60px; }
.s--pt-70 { padding-top: 70px; }
.s--pt-80 { padding-top: 80px; }
.s--pt-hero { padding-top: 167px; } /* fixed header is 138px tall; clears it + ~35px like the live site */
/* Restores the 27px/27px vertical padding Divi put on each content .et_pb_row.
   Add to text sections that in Divi had a single content row so the clean section
   keeps the original inner rhythm. */
.s--rowpad > .s-container { padding-top: 27px; padding-bottom: 27px; }
.s--pb-0  { padding-bottom: 0; }
.s--pb-27 { padding-bottom: 27px; }
.s--pb-30 { padding-bottom: 30px; }
.s--pb-40 { padding-bottom: 40px; }
.s--pb-54 { padding-bottom: 54px; }
.s--pb-60 { padding-bottom: 60px; }
.s--pb-70 { padding-bottom: 70px; }
.s--pb-80 { padding-bottom: 80px; }

/* Backgrounds */
.s--dark   { background-color: #153b37; }
.s--dark2  { background-color: #1a4a45; }
.s--light  { background-color: #ffffff; }
.s--mist   { background-color: #f1f6f5; }
.s--tint   { background-color: rgba(241,240,239,0.36); }
.s--diamond-bg {
	background-color: #ffffff;
	background-image: url('/wp-content/uploads/2026/02/BG-DIAMOND_1.webp');
	background-repeat: repeat;
	background-size: 5px;
}

/* Two-column (image + text) layout */
.s-2col {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 60px;
	align-items: center;
}
.s-2col--bottom { align-items: end; }
/* 1/3 + 2/3 bio layout (matches Divi's 1_3/2_3 columns, 72px gutter); image left, text top-aligned */
.s-2col--13 { grid-template-columns: 384fr 840fr; gap: 72px; align-items: start; }

/* ---- HERO: dark section + image faded into green on the right ---- */
.s-hero { overflow: hidden; }
.s-hero__bg {
	position: absolute;
	top: 0; right: 0; bottom: 0;
	width: 60%;
	background-image:
		linear-gradient(100deg, #153b37 20%, rgba(21,59,55,0) 100%),
		url('/wp-content/uploads/2026/05/Cleveland-Hero-1.avif');
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	z-index: 0;
	pointer-events: none;
}
.s-hero > .s-container { position: relative; z-index: 1; }

/* ---- PRF: full-bleed image with green gradient overlay, TRUE parallax ---- */
.s-prf {
	background-image:
		linear-gradient(180deg, rgba(21,59,55,0.84) 0%, rgba(21,59,55,0.89) 100%),
		url('/wp-content/uploads/2024/03/PRF-Injection.jpg');
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	background-attachment: fixed;
}

/* Generic image column: image fills the column, centered */
.s-col-img { text-align: center; }
.s-imgwrap { display: block; width: 100%; }
.s-imgwrap > img { display: block; width: 100%; height: auto; }

/* ---- .diamond-frame : reusable, editable image effect ----
   Wrap an image in .diamond-frame to get: the image at 80% width (centered),
   a coral diamond sitting BEHIND it at the left edge (::before), and the
   TMJ-ICON.svg diamond hung off the bottom-right corner (::after).
   Tweak the two pseudo-elements below to restyle every instance at once. */
.diamond-frame {
	position: relative;
	display: inline-block;
	max-width: 80%;
	vertical-align: bottom;
}
.diamond-frame > img { display: block; width: 100%; height: auto; position: relative; z-index: 1; }
.diamond-frame::before {
	content: "";
	position: absolute;
	left: 0; top: 50%;
	width: 100px; height: 100px;
	background: #e8a087;
	transform: translate(-50%, -50%) rotate(45deg);
	z-index: 0;
}
.diamond-frame::after {
	content: "";
	position: absolute;
	right: 0; bottom: 0;
	width: 122px; height: 122px;
	background-image: url('/wp-content/uploads/2026/01/TMJ-ICON.svg');
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
	transform: translateX(50%);
	z-index: 2;
}

/* Bio band: breathing room above the CTA buttons (not the hero) */
.s--dark:not(.s-hero) .hero-buttons { margin-top: 2rem; }

/* ---- LOCATION pages (shared frame across every /<city>/ page) ----
   Same white-rounded-card-on-green layout the blog single uses (.ac-card-*
   scaffold lives in blog.css but its frame/title are gated to .single-post).
   .s-loc re-applies that frame for the page context so every location page
   only needs its own H1 + .info-content + the (identical) contact sidebar. */
.s-loc { padding: 150px 0 60px; }
.s-loc .ac-card-row { background: #ffffff; }
.s-loc .ac-loc-title h1 {
	font-family: "Gilda Display", Georgia, "Times New Roman", serif;
	font-size: 40px;
	line-height: 40px;
	font-weight: 500;
	color: #333333;
	/* 76px reproduces the live title block + the empty featured-image slot above the body */
	margin: 0 0 76px;
}
@media (max-width: 980px) {
	.s-loc { padding: 110px 0 40px; }
	.s-loc .ac-loc-title h1 { font-size: 32px; line-height: 1.1; }
}

@media (max-width: 900px) {
	.s > .s-container, .ac-container { padding-left: 24px; padding-right: 24px; }
	.s-2col { grid-template-columns: 1fr; gap: 32px; }
	/* Mobile: header is ~70px (super-header hidden) — no need for 167px */
	.s--pt-hero { padding-top: 90px; }
	/* Mobile hero image becomes a static block on top — drop the fade gradient,
	   cap the height (185px = desktop cap - 75), center the photo, add space below.
	   The fixed height + cover means NO photo is ever taller than this, any device. */
	.s-hero__bg {
		position: relative;
		width: 100%;
		height: 185px;
		margin-bottom: 28px;
		background-image: url('/wp-content/uploads/2026/05/Cleveland-Hero-1.avif');
		background-position: center center;
	}
	/* Keep the framed image at 80% on mobile; shrink the diamonds to fit */
	.diamond-frame { max-width: 80%; }
	.diamond-frame::before { width: 64px; height: 64px; }
	.diamond-frame::after { width: 82px; height: 82px; }
}
