/* ============================================================
   YOUR.Life Functional Medicine — Global base styles
   Loaded on every page. Tokens mirror the live Elementor build.
   ============================================================ */

/* ── Design tokens (named by role, not hue) ── */
:root {
	--brand-primary:   #1F3A4D;   /* navy — headlines, dark sections */
	--brand-secondary: #E0D3BD;   /* sand — bands, eyebrows on dark */
	--surface:         #F5EFE6;   /* cream — primary page background */
	--surface-alt:     #C9D4DC;   /* mist — subtle alternate sections */
	--surface-hover:   #E8DDC8;   /* card hover fill */
	--brand-accent:    #8B6E55;   /* brass — eyebrows, rules, links */
	--accent-soft:     #A88B5A;   /* lighter brass — program left-line */
	--ink-deep:        #3B2F33;   /* plum — ghost numerals, team head */
	--text:            #1F3A4D;   /* body base */
	--text-muted:      rgba(31, 58, 77, 0.76);
	--text-on-dark:    #FFFFFF;
	--text-on-dark-soft: rgba(255, 255, 255, 0.77);
	--border-hairline: rgba(31, 58, 77, 0.49);   /* #1F3A4D7D */
	--border-on-dark:  rgba(255, 255, 255, 0.58); /* #FFFFFF94 */

	--font-serif: "Playfair Display", Georgia, serif;
	--font-sans:  "DM Sans", system-ui, sans-serif;

	--content-max: 1260px;
	--radius-sm: 3px;
	--radius-md: 5px;
	--radius-lg: 10px;

	--eyebrow-size: 15px;
	--eyebrow-spacing: 0.22em;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--font-sans);
	font-size: 17px;
	font-weight: 400;
	line-height: 1.7;
	color: var(--text);
	background: var(--surface);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-accent); text-decoration: none; transition: color .25s ease; }
a:hover { color: var(--brand-primary); }
button { font-family: inherit; cursor: pointer; }

/* ── Typography ── */
h1, h2, h3, h4 {
	font-family: var(--font-serif);
	font-weight: 400;
	color: var(--brand-primary);
	margin: 0;
	line-height: 1.16;
}
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

.eyebrow {
	font-family: var(--font-sans);
	font-size: var(--eyebrow-size);
	font-weight: 400;
	letter-spacing: var(--eyebrow-spacing);
	color: var(--brand-accent);
	text-transform: none;
	margin: 0 0 18px;
	display: block;
}
.eyebrow--on-dark { color: var(--brand-secondary); }

.lead {
	font-family: var(--font-serif);
	font-size: 18px;
	line-height: 1.78;
	color: var(--brand-primary);
	margin: 0 0 1.1em;
}
.lead--italic { font-style: normal; }

.body-copy { color: var(--text-muted); }
.body-copy p { margin-bottom: 1.1em; }

/* Brass rule divider (matches the 1.3px / 10%-width Elementor divider) */
.rule {
	width: 64px;
	height: 0;
	border: none;
	border-top: 1.3px solid var(--brand-secondary);
	margin: 26px 0;
}
.rule--brass { border-top-color: var(--brand-accent); }
.rule--center { margin-left: auto; margin-right: auto; }

/* Emphasis words render upright (no italics anywhere) */
h1 em, h2 em, h3 em, .lead em { font-style: normal; }

/* ── Buttons (ghost style from live build) ── */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 15px 40px;
	font-family: var(--font-sans);
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	border: 1px solid currentColor;
	border-radius: var(--radius-sm);
	background: transparent;
	transition: background-color .3s ease, color .3s ease, border-color .3s ease;
}
.btn-ghost-navy  { color: var(--brand-primary); }
.btn-ghost-navy:hover  { background: var(--brand-primary); color: var(--surface); border-color: var(--brand-primary); }
.btn-ghost-light { color: var(--text-on-dark); }
.btn-ghost-light:hover { background: var(--text-on-dark); color: var(--brand-primary); border-color: var(--text-on-dark); }

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--surface);
	border-bottom: 1px solid var(--border-hairline);
}
.nav-inner {
	max-width: var(--content-max);
	margin: 0 auto;
	padding: 0 40px;
	min-height: 78px;
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 24px;
}
.nav-logo {
	font-family: var(--font-serif);
	font-size: 24px;
	color: var(--brand-primary);
	justify-self: start;
}
.nav-logo:hover { color: var(--brand-primary); }
.nav-logo-dot { color: var(--brand-accent); }

.nav-menu { justify-self: center; }
.nav-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 30px;
	align-items: center;
}
.nav-list a {
	font-family: var(--font-sans);
	font-size: 14px;
	letter-spacing: 0.04em;
	color: var(--brand-primary);
	display: flex;
	align-items: center;
	min-height: 44px;
}
.nav-list a:hover { color: var(--brand-accent); }

/* Dropdown (sub-menus from WP) */
.nav-list .menu-item-has-children { position: relative; }
.nav-list .sub-menu {
	list-style: none;
	margin: 0;
	padding: 10px 0;
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translateX(-50%) translateY(8px);
	min-width: 230px;
	background: var(--surface);
	border: 1px solid var(--border-hairline);
	border-top: 2px solid var(--brand-accent);
	border-radius: 0 0 var(--radius-sm) var(--radius-sm);
	box-shadow: 0 18px 40px rgba(31, 58, 77, 0.12);
	opacity: 0;
	visibility: hidden;
	transition: opacity .25s ease, transform .25s ease, visibility .25s;
}
.nav-list .menu-item-has-children:hover > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateX(-50%) translateY(0);
}
.nav-list .sub-menu a { padding: 8px 24px; min-height: 40px; }

.nav-cta {
	justify-self: end;
	min-height: 44px;
	padding: 12px 26px;
	font-family: var(--font-sans);
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--surface);
	background: var(--brand-primary);
	border: 1px solid var(--brand-primary);
	border-radius: var(--radius-sm);
	transition: background-color .3s ease, color .3s ease;
}
.nav-cta:hover { background: var(--brand-accent); border-color: var(--brand-accent); }

/* Hamburger — hidden on desktop */
.nav-toggle {
	display: none;
	width: 44px;
	height: 44px;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 5px;
	background: transparent;
	border: none;
	justify-self: end;
}
.nav-toggle span {
	display: block;
	width: 24px;
	height: 2px;
	background: var(--brand-primary);
	transition: transform .3s ease, opacity .3s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.nav-overlay {
	position: fixed;
	inset: 0;
	background: rgba(31, 58, 77, 0.45);
	z-index: 110;
	opacity: 0;
	transition: opacity .3s ease;
}
.nav-overlay.is-open { opacity: 1; }
.nav-drawer {
	position: fixed;
	top: 0;
	right: 0;
	height: 100%;
	width: min(82vw, 340px);
	background: var(--surface);
	z-index: 120;
	padding: 88px 32px 40px;
	transform: translateX(100%);
	transition: transform .32s cubic-bezier(.4, 0, .2, 1);
	overflow-y: auto;
	display: flex;
	flex-direction: column;
}
.nav-drawer.is-open { transform: translateX(0); }
.nav-drawer-close {
	position: absolute;
	top: 22px;
	right: 24px;
	width: 44px;
	height: 44px;
	font-size: 30px;
	line-height: 1;
	color: var(--brand-primary);
	background: transparent;
	border: none;
}
.nav-drawer-list { list-style: none; margin: 0; padding: 0; }
.nav-drawer-list li { border-bottom: 1px solid var(--border-hairline); }
.nav-drawer-list a {
	display: flex;
	align-items: center;
	min-height: 52px;
	font-family: var(--font-serif);
	font-size: 19px;
	color: var(--brand-primary);
}
.nav-drawer-list a:hover { color: var(--brand-accent); }
.nav-drawer-list .sub-menu { list-style: none; margin: 0 0 8px; padding: 0 0 0 16px; }
.nav-drawer-list .sub-menu a { font-family: var(--font-sans); font-size: 15px; min-height: 44px; }
.nav-drawer-cta {
	margin-top: 28px;
	min-height: 50px;
	padding: 14px 28px;
	font-family: var(--font-sans);
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--surface);
	background: var(--brand-primary);
	border: 1px solid var(--brand-primary);
	border-radius: var(--radius-sm);
}
.nav-drawer-cta:hover { background: var(--brand-accent); border-color: var(--brand-accent); }

body.nav-open { overflow: hidden; }

/* ============================================================
   BOOKING MODAL (GoHighLevel calendar goes in the iframe)
   ============================================================ */
.modal {
	position: fixed;
	inset: 0;
	z-index: 200;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 24px;
	background: rgba(31, 58, 77, 0.55);
}
.modal.is-open { display: flex; }
.modal-box {
	position: relative;
	width: min(680px, 100%);
	max-height: 90vh;
	background: var(--surface);
	border-radius: var(--radius-md);
	overflow: hidden;
	box-shadow: 0 30px 80px rgba(31, 58, 77, 0.35);
}
.modal-close {
	position: absolute;
	top: 10px;
	right: 14px;
	width: 44px;
	height: 44px;
	font-size: 28px;
	line-height: 1;
	color: var(--brand-primary);
	background: transparent;
	border: none;
	z-index: 2;
}
.modal-iframe {
	width: 100%;
	height: 78vh;
	border: 0;
	display: block;
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.fade-in-up, .fade-in-left, .fade-in-right {
	opacity: 0;
	transition: opacity .7s ease, transform .7s ease;
	will-change: opacity, transform;
}
.fade-in-up    { transform: translateY(24px); }
.fade-in-left  { transform: translateX(-28px); }
.fade-in-right { transform: translateX(28px); }
.fade-in-up.is-visible,
.fade-in-left.is-visible,
.fade-in-right.is-visible {
	opacity: 1;
	transform: none;
}
@media (prefers-reduced-motion: reduce) {
	.fade-in-up, .fade-in-left, .fade-in-right {
		opacity: 1 !important;
		transform: none !important;
		transition: none !important;
	}
	html { scroll-behavior: auto; }
}

/* ============================================================
   SHARED LAYOUT HELPERS
   ============================================================ */
.section { padding: 88px 0; }
.container {
	max-width: var(--content-max);
	margin: 0 auto;
	padding: 0 40px;
}

/* ============================================================
   FOOTER (identical across all pages)
   ============================================================ */
.site-footer {
	background: var(--brand-primary);
	color: var(--text-on-dark-soft);
	padding: 72px 0 32px;
}
.footer-grid {
	max-width: var(--content-max);
	margin: 0 auto;
	padding: 0 40px;
	display: grid;
	grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
	gap: 48px;
}
.footer-brand-logo {
	font-family: var(--font-serif);
	font-size: 26px;
	color: var(--text-on-dark);
	margin-bottom: 14px;
}
.footer-brand-logo span { color: var(--brand-accent); }
.footer-tagline { font-size: 15px; line-height: 1.7; max-width: 30ch; margin-bottom: 20px; }
.footer-social { display: flex; gap: 16px; }
.footer-social a { color: var(--brand-secondary); font-size: 14px; letter-spacing: 0.05em; }
.footer-social a:hover { color: var(--text-on-dark); }

.footer-col h4 {
	font-family: var(--font-sans);
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--brand-secondary);
	margin-bottom: 18px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 11px; }
.footer-col a { color: var(--text-on-dark-soft); font-size: 15px; }
.footer-col a:hover { color: var(--text-on-dark); }
.footer-col a.is-current { color: var(--brand-accent); }

.footer-contact p { font-size: 15px; line-height: 1.7; margin-bottom: 12px; }
.footer-contact a { color: var(--text-on-dark-soft); }
.footer-contact a:hover { color: var(--text-on-dark); }
.footer-book {
	display: inline-flex;
	align-items: center;
	min-height: 46px;
	margin-top: 8px;
	padding: 13px 28px;
	font-family: var(--font-sans);
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--brand-primary);
	background: var(--brand-secondary);
	border-radius: var(--radius-sm);
}
.footer-book:hover { background: var(--surface); color: var(--brand-primary); }

.footer-bottom {
	max-width: var(--content-max);
	margin: 48px auto 0;
	padding: 26px 40px 0;
	border-top: 1px solid var(--border-on-dark);
	display: flex;
	flex-wrap: wrap;
	gap: 14px 28px;
	align-items: center;
	justify-content: space-between;
	font-size: 13px;
}
.footer-bottom a { color: var(--text-on-dark-soft); }
.footer-bottom a:hover { color: var(--text-on-dark); }
.footer-legal { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-credit a { color: var(--brand-secondary); }

/* ============================================================
   GeneratePress full-width overrides
   ============================================================ */

/* Hide the default GeneratePress header site-wide. This build uses the
   hand-coded nav (.nav / #site-nav), so GP's masthead is never shown.
   Targets the wrapper, inside container, and any GP header element. */
.site-header,
#masthead,
.inside-header,
header.site-header,
.generate-page-header {
	display: none !important;
}

.site-content,
.content-area,
#primary,
.inside-article,
.entry-content,
.post,
.page {
	padding: 0 !important;
	margin: 0 !important;
	width: 100% !important;
	max-width: 100% !important;
}
.site-main,
.site,
#page {
	padding: 0 !important;
	margin: 0 !important;
	width: 100% !important;
	max-width: 100% !important;
}
.generate-back-to-top { z-index: 90; }

/* WordPress admin-bar offset for the sticky nav */
.admin-bar .nav { top: 32px; }
@media screen and (max-width: 782px) {
	.admin-bar .nav { top: 46px; }
}

/* ============================================================
   GLOBAL RESPONSIVE — nav + footer
   ============================================================ */

/* Tablet */
@media (max-width: 1024px) {
	.nav-inner { padding: 0 28px; }
	.section { padding: 72px 0; }
	.container { padding: 0 28px; }
	.footer-grid { grid-template-columns: 1fr 1fr; gap: 40px 32px; padding: 0 28px; }
	.footer-bottom { padding: 26px 28px 0; }
}

/* Mobile */
@media (max-width: 768px) {
	body { font-size: 16px; }

	.nav-inner {
		grid-template-columns: auto 1fr;
		padding: 0 20px;
		min-height: 64px;
	}
	.nav-menu,
	.nav-cta { display: none; }
	.nav-toggle { display: flex; }

	.section { padding: 56px 0; }
	.container { padding: 0 20px; }

	.footer-grid { grid-template-columns: 1fr; gap: 36px; padding: 0 20px; text-align: left; }
	.footer-bottom {
		flex-direction: column;
		align-items: flex-start;
		padding: 24px 20px 0;
	}
}

/* Small mobile */
@media (max-width: 480px) {
	.nav-drawer { width: min(88vw, 320px); }
	.modal { padding: 12px; }
	.modal-iframe { height: 82vh; }
}
