/*
Theme Name: Memphis Law 2026
Theme URI: https://www.memphislaw.com/
Description: Redesigned theme for Arthur Ray Law Offices — Skip Carnell. Clean, modern law firm design with dark maroon and gold palette.
Author: Memphis Law
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: memphislaw-2026
Tags: one-column, custom-menu, custom-logo, featured-images, footer-widgets, full-width-template, theme-options, translation-ready
*/

/* ============================================================
   CSS CUSTOM PROPERTIES
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
	--primary-deep:    #40030c;
	--primary:         #6b1d26;
	--primary-hover:   #6e2a1e;
	--gold:            #c9a84c;
	--gold-soft:       #d4b87a;
	--gold-dark:        #836929;
	--gold-hover:      #b8943a;
	--background:      #faf8f4;
	--foreground:      #323030;
	--cream:           #f5f0e8;
	--muted:           #f0ebe3;
	--muted-fg:        #756f6a;
	--border:          #dcd8d0;
	--white:           #ffffff;
	--card-bg:         #ffffff;

	--font-serif: 'Playfair Display';
	--font-sans:  'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

	--h1-size: 60px;
	--h2-size: 2.5rem;
	--h3-size: 1.9rem;
	--h4-size: 1.5rem;
	--h5-size: 1.25rem;
	--h6-size: 1.0625rem;

	--max-width: 1280px;
	--section-px: 1.5rem;
	--section-py: 5rem;

	--radius-sm: 4px;
	--radius:    8px;
	--radius-lg: 16px;

	--shadow-card: 0 1px 3px rgba(0,0,0,.08), 0 4px 16px rgba(0,0,0,.06);
	--shadow-lg:   0 8px 32px rgba(0,0,0,.12);

	--transition: 0.2s ease;
}

/* ============================================================
   RESET & BASE
   ============================================================ */

*, *::before, *::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	scroll-behavior: smooth;
	font-size: 16px;
}

body {
	font-family: var(--font-sans);
	font-size: 18px;
	line-height: 150%;
	color: var(--foreground);
	background-color: var(--background);
	-webkit-font-smoothing: antialiased;
}

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

a {
	color: inherit;
	text-decoration: none;
}

ul, ol {
	list-style: none;
}

button {
	cursor: pointer;
	font-family: inherit;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-serif);
	font-weight: 700;
	line-height: 1.2;
	color: var(--foreground);
	letter-spacing: -0.01em;
	margin-bottom: 0.65em;
}
h1 em, h2 em, h3 em, h4 em, h5 em, h6 em {
	font-style: normal;
	color: var(--gold);
}
h1 { font-size: var(--h1-size); line-height: 1.15; }
h2 { font-size: var(--h2-size); line-height: 1.2; }
h3 { font-size: 24px; line-height: 1.25; }
h4 { font-size: var(--h4-size); line-height: 1.3; }
h5 { font-size: var(--h5-size); line-height: 1.35; }
h6 { font-size: var(--h6-size); line-height: 1.4; }

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6,
.section-col h1,
.section-col h2,
.section-col h3,
.section-col h4,
.section-col h5,
.section-col h6 {
	margin-bottom: 0.6em;
}

.entry-content h1:first-child,
.entry-content h2:first-child,
.entry-content h3:first-child,
.entry-content h4:first-child,
.entry-content h5:first-child,
.entry-content h6:first-child,
.section-col h1:first-child,
.section-col h2:first-child,
.section-col h3:first-child,
.section-col h4:first-child,
.section-col h5:first-child,
.section-col h6:first-child {
	margin-top: 0;
}

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* Section builder compatibility */
.page-section {
	position: relative;
	overflow: hidden;
	background-repeat: no-repeat;
	padding-top: var(--d26-section-pt, 80px);
	padding-bottom: var(--d26-section-pb, 80px);
}

.page-section__overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
}

.page-section__inner {
	position: relative;
	z-index: 2;
}

.page-body-content {
	padding-top: 80px;
	padding-bottom: 80px;
}

@media screen and (max-width: 767px) {
	.page-section {
		padding-top: var(--d26-section-pt-mobile, 50px);
		padding-bottom: var(--d26-section-pb-mobile, 50px);
		background-image: var(--d26-bg-image-mobile, var(--d26-bg-image));
	}
}
/* ============================================================
   UTILITIES
   ============================================================ */
.eyebrow,
.deck {
	color: var(--gold);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 3px;
	text-transform: uppercase;
	margin-bottom: 5px;
}
.section-col .deck {
	font-size: 11px;
	letter-spacing: 1.1px;
	margin-bottom: 10px;
}
.container {
	width: 100%;
	max-width: var(--max-width);
	margin: 0 auto;
	padding: 0 var(--section-px);
}

/* Max-width preset utilities (SCSS loop equivalent) */
.max-width-250 { max-width: 250px; }
.max-width-300 { max-width: 300px; }
.max-width-350 { max-width: 350px; }
.max-width-400 { max-width: 400px; }
.max-width-450 { max-width: 450px; }
.max-width-500 { max-width: 500px; }
.max-width-550 { max-width: 550px; }
.max-width-600 { max-width: 600px; }
.max-width-650 { max-width: 650px; }
.max-width-700 { max-width: 700px; }
.max-width-750 { max-width: 750px; }
.max-width-800 { max-width: 800px; }
.max-width-850 { max-width: 850px; }
.max-width-900 { max-width: 900px; }
.max-width-950 { max-width: 950px; }
.max-width-1000 { max-width: 1000px; }
.max-width-center {
    margin-left: auto!important;
    margin-right: auto!important;
}

.flex {
	display: flex;
}
.flex-center {
	display: flex;
	align-items: center;
	justify-content: center;
}
.flex-col {
	display: flex;
	flex-direction: column;
}
.flex-mobile-col,
.flex-mobile-row {
	display: flex;
}

@media (max-width: 768px) {
	.flex-mobile-col { flex-direction: column; }
	.flex-mobile-row { flex-direction: row; }
}
.align-center { align-items: center; }
.align-start { align-items: flex-start; }
.align-end { align-items: flex-end; }
.justify-start { justify-content: flex-start; }
.justify-center { justify-content: center; }
.justify-end { justify-content: flex-end; }
.gap-10 { gap: 10px; }
.gap-15 { gap: 15px; }
.gap-20 { gap: 20px; }
.gap-25 { gap: 25px; }
.gap-30 { gap: 30px; }
.gap-40 { gap: 40px; }
.gap-50 { gap: 50px; }
.gap-60 { gap: 60px; }
.gap-70 { gap: 70px; }
.gap-80 { gap: 80px; }
.gap-90 { gap: 90px; }
.gap-100 { gap: 100px; }
.p-5 { padding: 5px; }
.p-10 { padding: 10px; }
.p-15 { padding: 15px; }
.p-20 { padding: 20px; }
.p-25 { padding: 25px; }
.p-30 { padding: 30px; }
.p-40 { padding: 40px; }
.p-50 { padding: 50px; }
.p-60 { padding: 60px; }
.p-70 { padding: 70px; }
.p-80 { padding: 80px; }
.p-90 { padding: 90px; }
.p-100 { padding: 100px; }

.px-0 { padding-left: 0; padding-right: 0; }
.px-5 { padding-left: 5px; padding-right: 5px; }
.px-10 { padding-left: 10px; padding-right: 10px; }
.px-15 { padding-left: 15px; padding-right: 15px; }
.px-20 { padding-left: 20px; padding-right: 20px; }
.px-25 { padding-left: 25px; padding-right: 25px; }
.px-30 { padding-left: 30px; padding-right: 30px; }
.px-40 { padding-left: 40px; padding-right: 40px; }
.px-50 { padding-left: 50px; padding-right: 50px; }
.px-60 { padding-left: 60px; padding-right: 60px; }
.px-70 { padding-left: 70px; padding-right: 70px; }
.px-80 { padding-left: 80px; padding-right: 80px; }
.px-90 { padding-left: 90px; padding-right: 90px; }
.px-100 { padding-left: 100px; padding-right: 100px; }

.py-0 { padding-top: 0; padding-bottom: 0; }
.py-5 { padding-top: 5px; padding-bottom: 5px; }
.py-10 { padding-top: 10px; padding-bottom: 10px; }
.py-15 { padding-top: 15px; padding-bottom: 15px; }
.py-20 { padding-top: 20px; padding-bottom: 20px; }
.py-25 { padding-top: 25px; padding-bottom: 25px; }
.py-30 { padding-top: 30px; padding-bottom: 30px; }
.py-40 { padding-top: 40px; padding-bottom: 40px; }
.py-50 { padding-top: 50px; padding-bottom: 50px; }
.py-60 { padding-top: 60px; padding-bottom: 60px; }
.py-70 { padding-top: 70px; padding-bottom: 70px; }
.py-80 { padding-top: 80px; padding-bottom: 80px; }
.py-90 { padding-top: 90px; padding-bottom: 90px; }
.py-100 { padding-top: 100px; padding-bottom: 100px; }

/* Tailwind-like margin utilities */
.m-0 { margin: 0; }
.m-5 { margin: 5px; }
.m-10 { margin: 10px; }
.m-15 { margin: 15px; }
.m-20 { margin: 20px; }
.m-25 { margin: 25px; }
.m-30 { margin: 30px; }
.m-40 { margin: 40px; }
.m-50 { margin: 50px; }
.m-60 { margin: 60px; }
.m-70 { margin: 70px; }
.m-80 { margin: 80px; }
.m-90 { margin: 90px; }
.m-100 { margin: 100px; }

.mx-auto { margin-left: auto; margin-right: auto; }
.mx-0 { margin-left: 0; margin-right: 0; }
.mx-5 { margin-left: 5px; margin-right: 5px; }
.mx-10 { margin-left: 10px; margin-right: 10px; }
.mx-15 { margin-left: 15px; margin-right: 15px; }
.mx-20 { margin-left: 20px; margin-right: 20px; }
.mx-25 { margin-left: 25px; margin-right: 25px; }
.mx-30 { margin-left: 30px; margin-right: 30px; }
.mx-40 { margin-left: 40px; margin-right: 40px; }
.mx-50 { margin-left: 50px; margin-right: 50px; }
.mx-60 { margin-left: 60px; margin-right: 60px; }
.mx-70 { margin-left: 70px; margin-right: 70px; }
.mx-80 { margin-left: 80px; margin-right: 80px; }
.mx-90 { margin-left: 90px; margin-right: 90px; }
.mx-100 { margin-left: 100px; margin-right: 100px; }

.my-0 { margin-top: 0; margin-bottom: 0; }
.my-5 { margin-top: 5px; margin-bottom: 5px; }
.my-10 { margin-top: 10px; margin-bottom: 10px; }
.my-15 { margin-top: 15px; margin-bottom: 15px; }
.my-20 { margin-top: 20px; margin-bottom: 20px; }
.my-25 { margin-top: 25px; margin-bottom: 25px; }
.my-30 { margin-top: 30px; margin-bottom: 30px; }
.my-40 { margin-top: 40px; margin-bottom: 40px; }
.my-50 { margin-top: 50px; margin-bottom: 50px; }
.my-60 { margin-top: 60px; margin-bottom: 60px; }
.my-70 { margin-top: 70px; margin-bottom: 70px; }
.my-80 { margin-top: 80px; margin-bottom: 80px; }
.my-90 { margin-top: 90px; margin-bottom: 90px; }
.my-100 { margin-top: 100px; margin-bottom: 100px; }

.mt-0 { margin-top: 0; }
.mt-5 { margin-top: 5px; }
.mt-10 { margin-top: 10px; }
.mt-15 { margin-top: 15px; }
.mt-20 { margin-top: 20px; }
.mt-25 { margin-top: 25px; }
.mt-30 { margin-top: 30px; }
.mt-40 { margin-top: 40px; }
.mt-50 { margin-top: 50px; }
.mt-60 { margin-top: 60px; }
.mt-70 { margin-top: 70px; }
.mt-80 { margin-top: 80px; }
.mt-90 { margin-top: 90px; }
.mt-100 { margin-top: 100px; }

.mb-0 { margin-bottom: 0; }
.mb-5 { margin-bottom: 5px; }
.mb-10 { margin-bottom: 10px; }
.mb-15 { margin-bottom: 15px; }
.mb-20 { margin-bottom: 20px; }
.mb-25 { margin-bottom: 25px; }
.mb-30 { margin-bottom: 30px; }
.mb-40 { margin-bottom: 40px; }
.mb-50 { margin-bottom: 50px; }
.mb-60 { margin-bottom: 60px; }
.mb-70 { margin-bottom: 70px; }
.mb-80 { margin-bottom: 80px; }
.mb-90 { margin-bottom: 90px; }
.mb-100 { margin-bottom: 100px; }
.rounded-5 { border-radius: 5px; }
.rounded-10 { border-radius: 10px; }
.rounded-15 { border-radius: 15px; }
.rounded-20 { border-radius: 20px; }
.rounded-full { border-radius: 100%; }
.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0,0,0,0);
	border: 0;
}

.text-gold    { color: var(--gold); }
.text-gold-dark { color: var(--gold-dark); }
.text-cream   { color: var(--cream); }
.text-primary { color: var(--primary); }
.text-muted   { color: var(--muted-fg); }
.text-white   { color: var(--white); }
.text-dark    { color: var(--foreground); }
.text-center  { text-align: center; }

/* Core color utilities */
.bg-primary    { background-color: var(--primary); }
.bg-primary-deep { background-color: var(--primary-deep); }
.bg-gold       { background-color: var(--gold); }
.bg-cream      { background-color: var(--cream); }
.bg-muted      { background-color: var(--muted); }
.bg-background { background-color: var(--background); }
.bg-white      { background-color: var(--white); }

.border-primary { border-color: var(--primary); }
.border-gold    { border-color: var(--gold); }
.border-muted   { border-color: var(--border); }
.border-white   { border-color: var(--white); }

/* SVG path color utilities */
.svg-fill-primary { fill: var(--primary); }
.svg-fill-gold { fill: var(--gold); }
.svg-fill-muted { fill: var(--muted-fg); }
.svg-fill-white { fill: var(--white); }
.svg-fill-dark { fill: var(--foreground); }

.svg-stroke-primary { stroke: var(--primary); }
.svg-stroke-gold { stroke: var(--gold); }
.svg-stroke-muted { stroke: var(--muted-fg); }
.svg-stroke-white { stroke: var(--white); }
.svg-stroke-dark { stroke: var(--foreground); }

.section-label {
	display: inline-block;
	font-family: var(--font-sans);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: var(--gold);
	margin-bottom: 0.75rem;
}

.section-title {
	font-size: clamp(1.75rem, 3vw, 2.75rem);
	margin-bottom: 1rem;
}

.section-desc {
	font-size: 1.0625rem;
	color: var(--muted-fg);
	max-width: 600px;
}

/* Heading underline block (use on a plain <div> under title) */
.title-line,
.divider {
	--title-line-color: var(--gold);
	width: 4rem;
	height: 0.15rem;
	background: var(--title-line-color);
	margin: 0 0 2.5rem;
}

.title-line--sm { width: 2.5rem; height: 0.1rem; margin-bottom: 1rem; }
.title-line--lg { width: 7rem; }

.title-line--gold { --title-line-color: var(--gold); }
.title-line--gold-soft { --title-line-color: var(--gold-soft); }
.title-line--primary { --title-line-color: var(--primary); }
.title-line--primary-deep { --title-line-color: var(--primary-deep); }
.title-line--muted { --title-line-color: #d6cec3; }
.title-line--white { --title-line-color: var(--white); }

.title-line--gradient-gold {
	background: linear-gradient(90deg, var(--gold-soft) 0%, var(--gold) 100%);
}

.title-line--gradient-primary {
	background: linear-gradient(90deg, var(--primary) 0%, var(--primary-deep) 100%);
}

.title-line--gradient-light {
	background: linear-gradient(90deg, #f1e4c6 0%, var(--gold-soft) 100%);
}

.divider--center,
.title-line--center { margin-left: auto; margin-right: auto; }
h1:has(+ .title-line),
h2:has(+ .title-line),
h3:has(+ .title-line),
h4:has(+ .title-line),
h5:has(+ .title-line),
h6:has(+ .title-line) {
	margin-bottom: 10px;
}

/* Buttons */
.btn {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.75rem 1.75rem;
	border-radius: var(--radius-sm);
	font-family: var(--font-sans);
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1;
	border: 2px solid transparent;
	transition: background-color var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
	white-space: nowrap;
}

.btn-gold {
	background: var(--gold);
	color: var(--primary-deep);
	border-color: var(--gold);
}
.btn-gold:hover {
	background: var(--gold-hover);
	border-color: var(--gold-hover);
	color: var(--primary-deep);
}

.btn-outline-gold {
	background: transparent;
	color: var(--gold);
	border-color: var(--gold);
}
.btn-outline-gold:hover {
	background: var(--gold);
	color: var(--primary-deep);
}

.btn-outline-white {
	background: transparent;
	color: var(--white);
	border-color: rgba(255,255,255,0.5);
}
.btn-outline-white:hover {
	background: rgba(255,255,255,0.1);
	border-color: var(--white);
}

.btn-primary {
	background: var(--primary);
	color: var(--white);
	border-color: var(--primary);
}
.btn-primary:hover {
	background: var(--primary-hover);
	border-color: var(--primary-hover);
}

.btn-red {
	background: #6b1d26;
	color: var(--white);
	border-color: #6b1d26;
}
.btn-red:hover {
	background: #571720;
	border-color: #571720;
	color: var(--white);
}

.btn-outline-red {
	background: transparent;
	color: #6b1d26;
	border-color: #6b1d26;
}
.btn-outline-red:hover {
	background: color-mix(in srgb, #6b1d26 12%, transparent);
	color: #6b1d26;
	border-color: #6b1d26;
}

/* Phone icon for classic .btn buttons */
.btn-phone::before {
	content: "";
	width: 0.95em;
	height: 0.95em;
	flex: 0 0 0.95em;
	background-color: currentColor;
	mask-image: url("../images/icon-phone-mask.svg");
	mask-repeat: no-repeat;
	mask-position: center;
	mask-size: contain;
	-webkit-mask-image: url("../images/icon-phone-mask.svg");
	-webkit-mask-repeat: no-repeat;
	-webkit-mask-position: center;
	-webkit-mask-size: contain;
}

/* Arrow link button */
.link-arrow {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	font-family: var(--font-sans);
	font-size: 1.125rem;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0.01em;
	color: var(--link-arrow-color, var(--primary));
	text-decoration: none;
	transition: color .2s ease;
}
.section-col .link-arrow {
	font-size: 14px;
}
.link-arrow::after {
	content: "\2192";
	font-size: 1em;
	line-height: 1;
	transform: translateX(0);
	transition: transform .2s ease;
}

.link-arrow:hover {
	color: var(--link-arrow-hover, var(--gold));
}

.link-arrow:hover::after {
	transform: translateX(4px);
}

/* Color variants */
.link-arrow-primary {
	--link-arrow-color: var(--primary);
	--link-arrow-hover: var(--gold);
}

.link-arrow-gold {
	--link-arrow-color: var(--gold);
	--link-arrow-hover: var(--gold-soft);
}

.link-arrow-white {
	--link-arrow-color: var(--white);
	--link-arrow-hover: var(--gold-soft);
}

.link-arrow-dark {
	--link-arrow-color: var(--foreground);
	--link-arrow-hover: var(--primary);
}

/* Variant can be set on wrapper or directly on link */
.link-arrow-primary .link-arrow,
.link-arrow-gold .link-arrow,
.link-arrow-white .link-arrow,
.link-arrow-dark .link-arrow {
	color: var(--link-arrow-color, var(--primary));
}

.link-arrow-primary .link-arrow:hover,
.link-arrow-gold .link-arrow:hover,
.link-arrow-white .link-arrow:hover,
.link-arrow-dark .link-arrow:hover {
	color: var(--link-arrow-hover, var(--gold));
}

@media (max-width: 768px) {
	.link-arrow {
		font-size: 1rem;
	}
}

/* ============================================================
   UNIVERSAL BUTTONS (main / second, regular / small)
   Works on <a> directly OR on wrapper that contains <a>/<button>
   ============================================================ */
.btn-group {
    display: inline-flex;
	flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
}
.btn-group.center {
    justify-content: center;
}
.btnx,
a.btnx,
button.btnx,
.nf-form-content :where(input[type="submit"], input[type="button"], button[type="submit"]) {
	--ui-btn-bg: var(--gold);
	--ui-btn-bg-hover: var(--gold-hover);
	--ui-btn-text: var(--primary-deep);
	--ui-btn-border: var(--gold);
	--ui-btn-icon: none;
	--ui-btn-py: 0.78rem;
	--ui-btn-px: 1.5rem;
	--ui-btn-font-size: 0.9375rem;
	--ui-btn-radius: 6px;
	--ui-btn-border-w: 2px;
	--ui-btn-shadow: 0 4px 14px rgba(0,0,0,0.08);
}

.nf-form-content :where(input[type="submit"], input[type="button"], button[type="submit"]) {
	--ui-btn-bg: var(--primary);
	--ui-btn-bg-hover: var(--primary-hover);
	--ui-btn-text: var(--white);
	--ui-btn-border: var(--primary);
}

:where(a, button).btnx,
.btnx > :where(a, button),
.nf-form-content :where(input[type="submit"], input[type="button"], button[type="submit"]) {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.52rem;
	padding: var(--ui-btn-py) var(--ui-btn-px);
	background: var(--ui-btn-bg);
	color: var(--ui-btn-text);
	border: var(--ui-btn-border-w) solid var(--ui-btn-border);
	border-radius: var(--ui-btn-radius);
	font-family: var(--font-sans);
	font-size: var(--ui-btn-font-size);
	font-weight: 700;
	line-height: 1;
	text-decoration: none;
	white-space: nowrap;
	box-shadow: var(--ui-btn-shadow);
	appearance: none;
	transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

:where(a, button).btnx:hover,
.btnx > :where(a, button):hover,
.nf-form-content :where(input[type="submit"], input[type="button"], button[type="submit"]):hover {
	background: var(--ui-btn-bg-hover);
	border-color: var(--ui-btn-bg-hover);
}

:where(a, button).btnx:focus-visible,
.btnx > :where(a, button):focus-visible,
.nf-form-content :where(input[type="submit"], input[type="button"], button[type="submit"]):focus-visible {
	outline: 2px solid color-mix(in srgb, var(--ui-btn-bg) 70%, white 30%);
	outline-offset: 2px;
}

.nf-form-content .submit-wrap input[type="submit"].ninja-forms-field.nf-element,
.nf-form-content input[type="submit"].ninja-forms-field.nf-element,
.nf-form-content input[type="button"].ninja-forms-field.nf-element,
.nf-form-content button[type="submit"].ninja-forms-field.nf-element {
	background: var(--primary);
	color: var(--white);
	border-color: var(--primary);
	border-width: 2px;
	border-style: solid;
	border-radius: 6px;
	box-shadow: 0 4px 14px rgba(0,0,0,0.08);
	font-family: var(--font-sans);
	font-size: 0.9375rem;
	font-weight: 700;
	line-height: 1;
	padding: 0.78rem 1.5rem;
	height: auto;
	width: auto;
	appearance: none;
	-webkit-appearance: none;
	transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.nf-form-content .submit-wrap input[type="submit"].ninja-forms-field.nf-element:hover,
.nf-form-content input[type="submit"].ninja-forms-field.nf-element:hover,
.nf-form-content input[type="button"].ninja-forms-field.nf-element:hover,
.nf-form-content button[type="submit"].ninja-forms-field.nf-element:hover {
	background: var(--primary-hover);
	border-color: var(--primary-hover);
	color: var(--white);
}

/* Second button: ghost */
.btnx-second {
	--ui-btn-bg: transparent;
	--ui-btn-bg-hover: color-mix(in srgb, var(--gold) 15%, transparent);
	--ui-btn-text: var(--gold);
	--ui-btn-border: var(--gold);
	--ui-btn-shadow: none;
}

/* Explicit ghost styling fallback to avoid theme cascade conflicts */
:where(a, button).btnx.btnx-second,
.btnx.btnx-second > :where(a, button),
.btnx > :where(a, button).btnx-second {
	background: transparent;
	color: var(--gold);
	border-color: var(--gold);
	box-shadow: none;
}

:where(a, button).btnx.btnx-second:hover,
.btnx.btnx-second > :where(a, button):hover,
.btnx > :where(a, button).btnx-second:hover {
	background: color-mix(in srgb, var(--gold) 15%, transparent);
	border-color: var(--gold);
	color: var(--gold);
}

/* White color modifier for dark backgrounds */
.btnx-white {
	--ui-btn-bg: var(--white);
	--ui-btn-bg-hover: #f2f2f2;
	--ui-btn-text: var(--primary-deep);
	--ui-btn-border: var(--white);
}

.btnx-second.btnx-white {
	--ui-btn-bg: transparent;
	--ui-btn-bg-hover: rgba(255,255,255,0.14);
	--ui-btn-text: var(--white);
	--ui-btn-border: rgba(255,255,255,0.75);
}

/* Red color modifier */
.btnx-primary {
	--ui-btn-bg: var(--primary);
	--ui-btn-bg-hover: var(--primary-hover);
	--ui-btn-text: var(--white);
	--ui-btn-border: var(--primary);
}

:where(a, button).btnx.btnx-red,
.btnx.btnx-red > :where(a, button),
.btnx > :where(a, button).btnx-red {
	background: var(--primary);
	color: var(--white);
	border-color: var(--primary);
}

:where(a, button).btnx.btnx-red:hover,
.btnx.btnx-red > :where(a, button):hover,
.btnx > :where(a, button).btnx-red:hover {
	background: var(--primary-hover);
	color: var(--white);
	border-color: var(--primary-hover);
}

/* Red/primary ghost modifier */
.btnx-ghost-red,
.btnx-second.btnx-red,
.btnx-second.btnx-primary {
	--ui-btn-bg: transparent;
	--ui-btn-bg-hover: color-mix(in srgb, var(--primary) 12%, transparent);
	--ui-btn-text: var(--primary);
	--ui-btn-border: var(--primary);
	--ui-btn-shadow: none;
}

:where(a, button).btnx.btnx-ghost-red,
.btnx.btnx-ghost-red > :where(a, button),
.btnx > :where(a, button).btnx-ghost-red {
	background: transparent;
	color: var(--primary);
	border-color: var(--primary);
	box-shadow: none;
}

:where(a, button).btnx.btnx-ghost-red:hover,
.btnx.btnx-ghost-red > :where(a, button):hover,
.btnx > :where(a, button).btnx-ghost-red:hover {
	background: color-mix(in srgb, var(--primary) 12%, transparent);
	color: var(--primary);
	border-color: var(--primary);
}

:where(a, button).btnx.btnx-second.btnx-red,
.btnx.btnx-second.btnx-red > :where(a, button),
.btnx.btnx-second > :where(a, button).btnx-red,
.btnx.btnx-red > :where(a, button).btnx-second,
:where(a, button).btnx.btnx-second.btnx-primary,
.btnx.btnx-second.btnx-primary > :where(a, button),
.btnx.btnx-second > :where(a, button).btnx-primary,
.btnx.btnx-primary > :where(a, button).btnx-second {
	background: transparent;
	color: var(--primary);
	border-color: var(--primary);
	box-shadow: none;
}

:where(a, button).btnx.btnx-second.btnx-red:hover,
.btnx.btnx-second.btnx-red > :where(a, button):hover,
.btnx.btnx-second > :where(a, button).btnx-red:hover,
.btnx.btnx-red > :where(a, button).btnx-second:hover,
:where(a, button).btnx.btnx-second.btnx-primary:hover,
.btnx.btnx-second.btnx-primary > :where(a, button):hover,
.btnx.btnx-second > :where(a, button).btnx-primary:hover,
.btnx.btnx-primary > :where(a, button).btnx-second:hover {
	background: color-mix(in srgb, var(--primary) 12%, transparent);
	color: var(--primary);
	border-color: var(--primary);
}

:where(a, button).btnx.btnx-second.btnx-white,
.btnx.btnx-second.btnx-white > :where(a, button),
.btnx.btnx-second > :where(a, button).btnx-white,
.btnx.btnx-white > :where(a, button).btnx-second {
	background: transparent;
	color: var(--white);
	border-color: rgba(255,255,255,0.75);
}

:where(a, button).btnx.btnx-second.btnx-white:hover,
.btnx.btnx-second.btnx-white > :where(a, button):hover,
.btnx.btnx-second > :where(a, button).btnx-white:hover,
.btnx.btnx-white > :where(a, button).btnx-second:hover {
	background: rgba(255,255,255,0.14);
	color: var(--white);
	border-color: rgba(255,255,255,0.9);
}

/* Small size */
.btnx-small {
	--ui-btn-py: 0.56rem;
	--ui-btn-px: 1rem;
	--ui-btn-font-size: 0.8125rem;
	--ui-btn-radius: 5px;
}

/* Optional icons before text */
:where(a, button).btnx::before,
.btnx > :where(a, button)::before {
	content: "";
	width: 1em;
	height: 1em;
	flex: 0 0 1em;
	background-color: currentColor;
	mask-image: var(--ui-btn-icon);
	mask-repeat: no-repeat;
	mask-position: center;
	mask-size: contain;
	-webkit-mask-image: var(--ui-btn-icon);
	-webkit-mask-repeat: no-repeat;
	-webkit-mask-position: center;
	-webkit-mask-size: contain;
	display: none;
}

.btnx-icon-phone :where(a, button)::before,
:where(a, button).btnx-icon-phone::before,
.btnx-icon-calendar :where(a, button)::before,
:where(a, button).btnx-icon-calendar::before,
.btnx-icon-arrow :where(a, button)::before,
:where(a, button).btnx-icon-arrow::before {
	display: inline-block;
}

.btnx-icon-phone {
	--ui-btn-icon: url("../images/icon-phone-mask.svg");
}

.btnx-icon-calendar {
	--ui-btn-icon: url("../images/icon-calendar-mask.svg");
}

.btnx-icon-arrow {
	--ui-btn-icon: url("../images/icon-arrow-mask.svg");
}

/* Direct mask fallback: avoid dependency on --ui-btn-icon parsing */
:where(a, button).btnx-icon-phone::before,
.btnx-icon-phone > :where(a, button)::before {
	mask-image: url("../images/icon-phone-mask.svg");
	-webkit-mask-image: url("../images/icon-phone-mask.svg");
}

:where(a, button).btnx-icon-calendar::before,
.btnx-icon-calendar > :where(a, button)::before {
	mask-image: url("../images/icon-calendar-mask.svg");
	-webkit-mask-image: url("../images/icon-calendar-mask.svg");
}

:where(a, button).btnx-icon-arrow::before,
.btnx-icon-arrow > :where(a, button)::before {
	mask-image: url("../images/icon-arrow-mask.svg");
	-webkit-mask-image: url("../images/icon-arrow-mask.svg");
}

/* ============================================================
   TOP BAR
   ============================================================ */

.top-bar {
	background: var(--primary-deep);
	color: rgba(255,255,255,0.8);
	font-size: 0.8125rem;
	padding: 0.5rem 0;
}

.top-bar .container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.top-bar__address,
.top-bar__phones {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.top-bar__phones {
	gap: 1.25rem;
}

.top-bar a {
	color: rgba(255,255,255,0.8);
	transition: color var(--transition);
}
.top-bar a:hover { color: var(--gold); }

.top-bar svg {
	flex-shrink: 0;
	color: var(--gold);
}
/* Breadcrumbs */
nav.breadcrumbs {
	font-size: 12px;
	margin-bottom: 20px;
	display: block;
}
nav.breadcrumbs a {
	color: white;
	text-decoration: none;
}
.breadcrumbs__current {
	color: var(--gold);
}
/* ============================================================
   MAIN HEADER / NAVIGATION
   ============================================================ */

.site-header {
	background: #ffffff;
	position: sticky;
	top: 0;
	z-index: 100;
	box-shadow: 0 2px 12px rgba(0,0,0,.25);
}

.site-header .container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	padding-top: 0.875rem;
	padding-bottom: 0.875rem;
}

/* Logo */
.site-logo {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	text-decoration: none;
	flex-shrink: 0;
}

.site-logo__img {
	max-height: 56px;
	width: auto;
}

.site-logo__monogram {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: 2px solid #6b1d26;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--font-serif);
	font-size: 1.125rem;
	font-weight: 700;
	color: #6b1d26;
	flex-shrink: 0;
}
.footer-brand .site-logo__monogram {
	color: var(--gold);
	border-color: var(--gold);
}
.site-logo__text {
	display: flex;
	flex-direction: column;
}

.site-logo__firm {
	font-family: var(--font-serif);
	font-size: 18px;
	font-weight: 700;
	color: #6b1d26;
	line-height: 1.2;
}

.site-logo__tagline {
	font-size: 0.6875rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	line-height: 150%;
}

/* Primary Nav */
.primary-nav {
	display: flex;
	align-items: center;
	gap: 0.25rem;
}

.primary-nav ul {
	display: flex;
	align-items: center;
	gap: 0.125rem;
}

.primary-nav a {
	display: block;
	padding: 0.5rem 0.875rem;
	color: #424242;
	font-size: 0.9rem;
	font-weight: 500;
	border-radius: var(--radius-sm);
	transition: color var(--transition), background-color var(--transition);
}
.primary-nav a:hover,
.primary-nav .current-menu-item > a,
.primary-nav .current-page-ancestor > a {
	color: var(--gold);
	background: rgba(255,255,255,0.06);
}

.header-cta {
	margin-left: 0.75rem;
}

/* Hamburger */
.menu-toggle {
	display: none;
	flex-direction: column;
	gap: 5px;
	padding: 0.5rem;
	background: none;
	border: none;
	color: var(--red);
}

.menu-toggle__bar {
	display: block;
	width: 24px;
	height: 2px;
	background: currentColor;
	transition: transform var(--transition), opacity var(--transition);
}

/* Mobile nav drawer */
.mobile-nav {
	display: block;
	background: var(--white);
	border-top: 1px solid var(--border);
	box-shadow: 0 8px 22px rgba(0,0,0,.08);
	padding: 0;
	overflow: hidden;
	max-height: 0;
	opacity: 0;
	transform: translateY(-8px);
	visibility: hidden;
	pointer-events: none;
	transition: max-height .28s ease, opacity .2s ease, transform .24s ease, visibility 0s linear .28s;
}

.mobile-nav.is-open {
	padding: 1rem 0;
	max-height: 70vh;
	opacity: 1;
	transform: translateY(0);
	visibility: visible;
	pointer-events: auto;
	transition: max-height .32s ease, opacity .24s ease, transform .24s ease;
}

@media (prefers-reduced-motion: reduce) {
	.mobile-nav,
	.mobile-nav.is-open {
		transition: none;
		transform: none;
	}
}

.mobile-nav ul {
	display: flex;
	flex-direction: column;
}

.mobile-nav .menu a {
	display: block;
	padding: 0.875rem 1.5rem;
	color: var(--primary);
	font-size: 1rem;
	font-weight: 500;
	border-bottom: 1px solid var(--border);
	transition: color var(--transition), background-color var(--transition);
}
.mobile-nav .menu a:hover {
	color: var(--primary-deep);
	background: var(--cream);
}

.mobile-nav__cta {
	padding: 1rem 1.5rem;
	background: var(--white);
	border-top: 1px solid var(--border);
}

.mobile-nav__cta .btn {
	width: 100%;
	justify-content: center;
}

/* WordPress menu styles */
.primary-nav .menu { list-style: none; }
.primary-nav .sub-menu {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	background: var(--primary-deep);
	min-width: 200px;
	border-radius: var(--radius-sm);
	box-shadow: var(--shadow-lg);
	padding: 0.5rem 0;
}
.primary-nav .menu-item-has-children {
	position: relative;
}
.primary-nav .menu-item-has-children:hover .sub-menu {
	display: block;
}
.primary-nav .sub-menu a {
	padding: 0.625rem 1rem;
	border-radius: 0;
}

/* ============================================================
   PREFOOTER
   ============================================================ */

.prefooter {
	background: linear-gradient(120deg, #e8b548 0%, #d89518 100%);
}

.prefooter__content {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 30px;
	padding: 60px 0;
	color: #330b0f;
}
.prefooter__content .btnx {
	align-self: center;
}
.prefooter__icon {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	flex: 0 0 56px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: rgba(126, 64, 10, 0.14);
	color: #5b1017;
}

.prefooter__text {
	min-width: 0;
	margin-right: auto;
}

.prefooter__text h2 {
	font-size: var(--h2-size);
	margin-bottom: 15px;
	color: var(--primary-deep);
}

.prefooter__text p {
	color: var(--primary-deep);
}

.prefooter__text a {
	color: inherit;
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 3px;
}


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

.site-footer {
	background: var(--primary-deep);
	color: rgba(255,255,255,0.7);
}

.footer-main {
	padding: 3.5rem 0;
}

.footer-main .container {
	display: grid;
	grid-template-columns: 1.5fr 1fr 1fr;
	gap: 3rem;
}

.footer-brand__logo {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin-bottom: 1.25rem;
	text-decoration: none;
}

.footer-brand__firm {
	font-family: var(--font-serif);
	font-size: 18px;
	font-weight: 700;
	color: var(--white);
}

.footer-brand__tagline {
	font-size: 0.6875rem;
	color: var(--gold);
	text-transform: uppercase;
	letter-spacing: 0.08em;
}

.footer-brand p {
	font-size: 0.875rem;
	line-height: 1.65;
	margin-bottom: 1.25rem;
}

/* .footer-phones {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
} */

/* .footer-phones a {
	font-size: 0.875rem;
	color: rgba(255,255,255,0.7);
	transition: color var(--transition);
}
.footer-phones a:hover { color: var(--gold); }

.footer-phones strong {
	color: var(--white);
} */

.footer-col h4 {
	font-family: var(--font-sans);
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: var(--gold);
	margin-bottom: 1rem;
}

.footer-nav ul {
	display: flex;
	flex-direction: column;
	gap: 0.625rem;
}

.footer-nav a {
	font-size: 0.875rem;
	color: rgba(255,255,255,0.65);
	transition: color var(--transition);
}
.footer-nav a:hover { color: var(--white); }

.footer-address {
	font-size: 0.875rem;
	line-height: 1.7;
}
.footer-address p {
	margin-bottom: 10px;
}
.footer-bottom {
	border-top: 1px solid rgba(255,255,255,0.08);
	padding: 1.25rem 0;
}

.footer-bottom .container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	flex-wrap: wrap;
}

.footer-bottom p {
	font-size: 0.8125rem;
	color: rgba(255,255,255,0.45);
	margin: 0;
	line-height: 150%;
}

.footer-bottom a {
	color: rgba(255,255,255,0.55);
	transition: color var(--transition);
}
.footer-bottom a:hover { color: var(--gold); }

/* ============================================================
   INTERIOR PAGES
   ============================================================ */

#hero {
  position: relative;
  background-image: radial-gradient(ellipse at 30% 20%, oklch(42% .12 20) 0%, transparent 60%), linear-gradient(160deg, oklch(32% .1 20) 0%, oklch(20% .08 22) 100%);
  color: #fff;
}

#hero > * {
  position: relative;
  z-index: 2;
}

#hero:after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 80% 80%, oklch(60% .15 22 / .25), transparent 50%);
}

#hero .section-header {
  max-width: 1280px;
  margin-bottom: 0;
}

#hero .deck {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  padding: 8px 20px;
  border: 1px solid color-mix(in oklab, var(--gold) 40%, transparent);
  border-radius: 999px;
  background: rgb(209 153 54 / 15%);
  color: #e1bf80;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2.4px;
  line-height: 1;
  text-transform: uppercase;
}

#hero .deck::before {
	content: "";
	width: 17px;
    height: 17px;
    flex: 0 0 17px;
	background: url("../images/law-gold.svg") center / contain no-repeat;
}

#hero .deck svg {
	display: none;
}

#hero h1 {
  color: #fff;
}

.page-content {
	padding: 4rem 0;
}

.page-content .entry-content {
	max-width: 800px;
	margin: 0 auto;
	font-size: 1rem;
	line-height: 1.75;
}

.entry-content h2 { font-size: 1.75rem; margin: 2rem 0 0.75rem; color: var(--primary); }
.entry-content h3 { font-size: 1.375rem; margin: 1.5rem 0 0.625rem; color: var(--primary); }
.entry-content p  { margin-bottom: 1.25rem; }
.entry-content ul,
.entry-content ol { margin: 0 0 1.25rem 1.5rem; }
.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }
.entry-content li { margin-bottom: 0.5rem; }
.entry-content a  { color: var(--primary); text-decoration: underline; }
.entry-content a:hover { color: var(--gold); }


.internal-page-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: 2rem;
	padding-top: 80px;
	padding-bottom: 80px;
}

.internal-page-main {
	min-width: 0;
}

.internal-page-main h2 {
	position: relative;
	padding-bottom: 0.6rem;
	margin-bottom: 1.25rem;
	color: var(--primary);
}
.internal-page-main h3:not(:first-child) {
	margin-top: 25px;
}
.internal-page-main h4:not(:first-child) {
	margin-top: 20px;
}
.internal-page-main h2:not(:first-child) {
	margin-top: 30px;
}
.internal-page-main h2::after {
	content: "";
	display: block;
	width: 64px;
	height: 1px;
	margin-top: 0.5rem;
	background: var(--gold);
}
.internal-page-main h3,
.internal-page-main h4,
.internal-page-main h5,
.internal-page-main h6 {
	color: var(--primary);
}

.internal-page-main h3 { font-size: var(--h3-size); }
.internal-page-main h4 { font-size: var(--h4-size); }
.internal-page-main h5 { font-size: var(--h5-size); }
.internal-page-main h6 { font-size: var(--h6-size); }

.internal-page-content {
	padding-top: 0;
	padding-bottom: 0;
	margin-bottom: 2rem;
}

.internal-page-section + .internal-page-section {
	margin-top: 2rem;
}

.internal-page-sidebar {
	min-width: 0;
	position: relative;
}

.internal-page-sidebar .widget-area {
	display: flex;
	flex-direction: column;
	gap: 25px;
	position: sticky;
	top: 90px;
}

.internal-page-sidebar .toc.toc-h2 {
	background: #fff;
	border: 1px solid #e4d8c9;
	border-radius: 10px;
	padding: 30px;
	box-shadow: 0 1px 0 rgba(64, 3, 12, 0.02);
}

.internal-page-sidebar .toc__title {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 2px;
	text-transform: uppercase;
	margin-bottom: 5px;
	color: var(--primary);
}

.internal-page-sidebar .toc__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.internal-page-sidebar .toc__item + .toc__item {
	margin-top: 5px;
}

.internal-page-sidebar .toc__link {
	display: inline-block;
	font-size: 14px;
	line-height: 1.35;
	font-weight: 400;
	color: #4c4845;
	text-decoration: none;
	transition: color var(--transition);
}

.internal-page-sidebar .toc__link:hover,
.internal-page-sidebar .toc__link:focus-visible {
	color: var(--primary);
	text-decoration: underline;
}

#custom_html-2 .custom-html-widget {
	padding: 30px;
	border-radius: 10px;
	background: #751f29;
	color: #fff;
}

#custom_html-2 .custom-html-widget > .deck {
    color: var(--gold);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 5px;
}

#custom_html-2 .custom-html-widget > h2 {
	margin: 0 0 20px;
	padding: 0;
	font-size: 24px;
	letter-spacing: 0;
	color: #fff;
}

#custom_html-2 .custom-html-widget > p {
	margin: 0 0 1.15rem;
	color: #f4eaed;
	font-size: 14px;
	line-height: 1.45;
}

#custom_html-2 .custom-html-widget > .flex.gap-15 {
	align-items: flex-start;
	margin-bottom: 0.95rem;
}

#custom_html-2 .custom-html-widget > .flex.gap-15:last-of-type {
	margin-bottom: 0;
}

#custom_html-2 .custom-html-widget .contact-icon-wrap {
	width: 36px;
	height: 36px;
	flex: 0 0 36px;
	border-radius: 8px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: rgba(201, 168, 76, 0.12);
	color: var(--gold);
}

#custom_html-2 .custom-html-widget .contact-icon-wrap svg {
	width: 20px;
	height: 20px;
	stroke: currentColor;
}

#custom_html-2 .custom-html-widget .contact-text-wrap {
	min-width: 0;
	flex: 1 1 auto;
}



#custom_html-2 .custom-html-widget a,
#custom_html-2 .custom-html-widget p {
	margin: 0;
	line-height: 140%;
	font-size: 14px;
	font-weight: 600;
	color: #fff;
	text-decoration: none;
	word-break: break-word;
}

#custom_html-2 .custom-html-widget .contact-text-wrap .deck {
	font-size: 11px;
    line-height: 1.2;
    letter-spacing: 2px;
	color: var(--gold);
}

#custom_html-2 .custom-html-widget .contact-text-wrap a:hover,
#custom_html-2 .custom-html-widget .contact-text-wrap a:focus-visible {
	color: #fff;
	text-decoration: underline;
	text-underline-offset: 2px;
}

#custom_html-2 .custom-html-widget hr {
	border: 0;
	border-top: 1px solid rgba(255, 255, 255, 0.18);
	margin: 1rem 0;
}

.internal-page-main .note {
	margin: 1.25rem 0;
	padding: 1.125rem 1.25rem;
	border-left: 4px solid var(--gold);
	background: #f7f3ea;
	color: #3f3b39;
	line-height: 1.6;
}

.internal-page-main .note > *:last-child {
	margin-bottom: 0;
}

.internal-page-main .note strong,
.internal-page-main .note b {
	color: var(--primary);
	font-weight: 700;
}

/* ============================================================
   SCROLL TO TOP
   ============================================================ */

.scroll-top {
	position: fixed;
	bottom: 1.5rem;
	right: 1.5rem;
	width: 44px;
	height: 44px;
	background: var(--primary);
	color: var(--white);
	border: none;
	border-radius: 50%;
	display: none;
	align-items: center;
	justify-content: center;
	box-shadow: 0 2px 12px rgba(0,0,0,.25);
	transition: background-color var(--transition), transform var(--transition);
	z-index: 50;
}
.scroll-top.visible { display: flex; }
.scroll-top:hover { background: var(--gold); color: var(--primary-deep); transform: translateY(-2px); }

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

@media (max-width: 1024px) {
	:root {
		--section-py: 4rem;
		--h1-size: 48px;
		--h2-size: 2.15rem;
		--h3-size: 1.7rem;
		--h4-size: 1.35rem;
		--h5-size: 1.125rem;
		--h6-size: 1rem;
	}

	.footer-main .container {
		grid-template-columns: 1fr 1fr;
	}
	.internal-page-layout {
		grid-template-columns: minmax(0, 1fr) 280px;
	}
}

@media (max-width: 1200px) {
	.primary-nav { display: none; }
	.menu-toggle  { display: flex; }
	.site-logo {
		margin-right: auto;
	}
}

@media (max-width: 768px) {
	:root {
		--section-py: 3rem;
		--section-px: 20px;
		--h1-size: 36px;
		--h2-size: 1.8rem;
		--h3-size: 1.45rem;
		--h4-size: 1.25rem;
		--h5-size: 1.0625rem;
		--h6-size: 0.9375rem;
	}
	.top-bar .container {
		justify-content: center;
		text-align: center;
	}
	.top-bar__address { display: none; }

	.practice-cards { max-width: 100%; }

	.form-row { grid-template-columns: 1fr; }

	.footer-main .container {
		grid-template-columns: 1fr;
		gap: 2rem;
	}

	.footer-bottom .container { flex-direction: column; }

	.prefooter__content {
		flex-wrap: wrap;
		padding-top: 50px;
		padding-bottom: 50px;
	}

	.internal-page-layout {
		grid-template-columns: 1fr;
		padding-top: 50px;
		padding-bottom: 50px;
	}

	.internal-page-sidebar .widget-area {
		position: static;
	}
}
.mobile-nav__cta {
	display: none;
}
@media (max-width: 530px) {
	.btn.header-cta {
		display: none;
	}
	.mobile-nav__cta {
		display: block;
	}
}
@media (max-width: 480px) {
	h1, h2 {
		letter-spacing: -0.005em;
	}
}

/* ============================================================
   PAGE SECTIONS BUILDER
   ============================================================ */

.page-section {
	position: relative;
}

/* Overlay element for image backgrounds */
.page-section__overlay {
	position: absolute;
	inset: 0;
	pointer-events: none;
	z-index: 0;
}

/* Inner wrapper for full-width sections (no max-width container) */
.page-section__inner--full {
	position: relative;
	z-index: 1;
}

/* Contained inner wrapper (same as .container but explicit for sections) */
.page-section > .container {
	position: relative;
	z-index: 1;
}

/* Column grid */
.section-cols {
	display: grid;
	gap: 2rem;
	align-items: start;
}

.section-cols--1 { grid-template-columns: 1fr; }
.section-cols--2 { grid-template-columns: 1fr 1fr; }
.section-cols--3 { grid-template-columns: 1fr 1fr 1fr; }

/* Column content resets */
.section-col > *:first-child { margin-top: 0; }
.section-col > *:last-child  { margin-bottom: 0; }

.section-col h1, .section-col h2, .section-col h3,
.section-col h4, .section-col h5, .section-col h6 {
	margin-bottom: 0.75rem;
}

.section-col p  { font-size: 14px; margin-bottom: 1rem; line-height: 160%; }
.section-col ul,
.section-col ol { margin: 0 0 1rem 1.5rem; }
.section-col ul { list-style: disc; }
.section-col ol { list-style: decimal; }
.section-col a:not(.btnx):not(.link-arrow)  { color: var(--primary); text-decoration: underline; }
.section-col a:not(.btnx):not(.link-arrow):hover { color: var(--gold); }

.section-col img {
	max-width: 100%;
	height: auto;
	border-radius: var(--radius);
}

/* Legacy ACF sections */
.full-width {
	position: relative;
	background-repeat: no-repeat;
	background-size: cover;
	background-position: center;
	background-image: var(--ml2026-bg-image-desktop);
}

.full-width > .container {
	position: relative;
	z-index: 1;
}

.section-header {
	margin-bottom: 2rem;
}

header.section-header h2 {
	font-size: var(--h2-size);
}
header.section-header h3 {
	font-size: var(--h3-size);
}
header.section-header h4 {
	font-size: var(--h4-size);
}
header.section-header h5 {
	font-size: var(--h5-size);
}
.grid-row {
	display: flex;
	flex-wrap: wrap;
	gap: 2rem;
}

.grid-row > div {
	flex: 1 1 0;
	min-width: 0;
}

@media (max-width: 767px) {
	.full-width {
		background-image: var(--ml2026-mobile-bg, var(--ml2026-bg-image-desktop));
	}

	.grid-row {
		gap: 1.25rem;
	}

	.grid-row > div {
		flex-basis: 100%;
	}
}

/* Responsive: stack columns on tablet/mobile */
@media (max-width: 900px) {
	.section-cols--3 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
	.section-cols--2,
	.section-cols--3 { grid-template-columns: 1fr; }
}
