/* ============================================================
   YOUR.Life — Homepage section styles
   Desktop mirrors the live Elementor build; mobile is rebuilt
   intentionally for narrow screens.
   ============================================================ */

/* ── GeneratePress full-width override ── */
.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;
}
#omega-homepage {
	width: 100%;
	max-width: 100%;
	overflow-x: hidden;
}

/* ── Content corrections (override GeneratePress + browser defaults) ──
   ID-scoped so they beat GeneratePress's own heading/link rules. */
#omega-homepage h1,
#omega-homepage h2,
#omega-homepage h3 {
	font-family: var(--font-serif);   /* all headers Playfair Display */
}
#omega-homepage em,
#omega-homepage i,
#omega-homepage .eyebrow,
#omega-homepage .hero-sub,
#omega-homepage .team-cred {
	font-style: normal;               /* no italics anywhere */
}
#omega-homepage a,
#omega-homepage a:hover {
	text-decoration: none;            /* no underlines anywhere */
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
	background: var(--brand-primary);
	padding: 92px 0 92px;
	text-align: center;
}
.hero-inner { display: flex; flex-direction: column; align-items: center; }
.hero-title {
	font-size: 90px;
	line-height: 1.07;
	color: var(--text-on-dark);
	margin: 6px 0 0;
}
.hero-sub {
	font-family: var(--font-serif);
	font-size: 23px;
	line-height: 1.45;
	color: var(--text-on-dark-soft);
	max-width: 30ch;
	margin: 26px auto 0;
}
.hero-btn { margin-top: 42px; }

/* ============================================================
   DR. MEG INTRO
   ============================================================ */
.intro { background: var(--surface); }
.intro-grid {
	display: grid;
	grid-template-columns: 45% 55%;
	align-items: center;
	gap: 40px;
}
.intro-head { font-size: 44px; line-height: 1.16; }
.intro-signoff { margin-top: 24px; }
.intro-media { display: flex; justify-content: center; }
.intro-media img {
	width: 76%;
	border-radius: var(--radius-lg);
}

/* ============================================================
   WHO YOU ARE
   ============================================================ */
.who { background: var(--surface-alt); padding: 88px 0; }
.who-title { font-size: 44px; margin-bottom: 18px; }
.who-sub {
	font-family: var(--font-serif);
	font-size: 18px;
	line-height: 1.7;
	color: var(--brand-primary);
	max-width: 620px;
}
.who-cards {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 3px;
	margin-top: 36px;
}
.who-card {
	background: var(--surface);
	padding: 44px 40px;
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.who-num {
	font-family: var(--font-serif);
	font-size: 80px;
	line-height: 1;
	color: var(--ink-deep);
	margin-bottom: 10px;
}
.who-card p {
	font-family: var(--font-serif);
	font-size: 19px;
	line-height: 1.5;
	color: var(--brand-primary);
	margin: 0;
}
.who-foot { margin-top: 40px; }

/* ============================================================
   CONDITION PATHWAYS
   ============================================================ */
.pathways { background: var(--surface); }
.pathways-head { margin-bottom: 18px; }
.pathways-title { font-size: 44px; margin-bottom: 18px; }
.pathways-sub { color: var(--text-muted); font-size: 18px; max-width: 620px; }
.pathways-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 0;
	margin-top: 30px;
}
.pathway-card {
	display: block;
	padding: 40px 32px 44px;
	border-top: 1px solid var(--brand-primary);
	border-right: 1px solid var(--brand-primary);
	background: transparent;
	transition: background-color .3s ease;
}
.pathway-card:last-child { border-right: none; }
.pathway-card:hover { background: var(--surface-hover); }
.pathway-card h3 {
	font-size: 23px;
	line-height: 1.25;
	margin-bottom: 16px;
}
.pathway-card .body-copy { font-size: 16px; margin-bottom: 22px; }
.pathway-arrow {
	display: inline-block;
	font-size: 22px;
	color: var(--brand-accent);
	transition: transform .3s ease;
}
.pathway-card:hover .pathway-arrow { transform: translateX(6px); }

/* ============================================================
   PROVEN PROCESS (navy)
   ============================================================ */
.process { background: var(--brand-primary); }
.process-head { margin-bottom: 18px; }
.process-title { font-size: 44px; color: var(--text-on-dark); margin-bottom: 18px; }
.process-sub { color: var(--text-on-dark-soft); font-size: 18px; max-width: 620px; }
.process .rule { border-top-color: var(--brand-secondary); }
.process-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 0;
	margin-top: 30px;
}
.process-card {
	padding: 32px 30px;
	border-top: 1px solid var(--border-on-dark);
	border-right: 1px solid var(--border-on-dark);
}
.process-card:last-child { border-right: none; }
.process-name {
	font-size: 43px;
	color: var(--text-on-dark);
	margin: 6px 0 18px;
}
.process-card p { color: var(--text-on-dark-soft); font-size: 16px; }

/* ============================================================
   CARE AT EVERY LEVEL
   ============================================================ */
.care { background: var(--surface); }
.care-grid {
	display: grid;
	grid-template-columns: 45% 55%;
	gap: 40px;
	align-items: start;
}
.care-title { font-size: 44px; margin-bottom: 20px; }
.care-lead { font-size: 18px; }
.care-intro .btn { margin-top: 8px; }
.care-tiers { padding-left: 35px; }
.care-tier {
	display: flex;
	gap: 22px;
	align-items: flex-start;
	padding: 28px 0;
	border-top: 1px solid var(--border-hairline);
	transition: padding-left .3s ease;
}
.care-tier:last-child { border-bottom: 1px solid var(--border-hairline); }
.care-tier:hover { padding-left: 12px; }
.care-tier-num {
	font-family: var(--font-serif);
	font-size: 44px;
	line-height: 1;
	color: var(--brand-secondary);
	flex-shrink: 0;
	width: 44px;
}
.care-tier-name { font-size: 24px; margin: 4px 0 10px; }
.care-tier .eyebrow { margin-bottom: 8px; }
.care-tier .body-copy { font-size: 16px; }

/* ============================================================
   MOVEMENT IS MEDICINE (split)
   ============================================================ */
.movement {
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: stretch;
}
.movement-media { min-height: 100%; }
.movement-media img { width: 100%; height: 100%; object-fit: cover; }
.movement-text {
	background: var(--brand-secondary);
	padding: 72px 135px 72px 80px;
	display: flex;
	flex-direction: column;
	justify-content: center;
}
.movement-title { font-size: 44px; margin: 4px 0 24px; }
.movement-btn { margin-top: 36px; align-self: flex-start; }

/* ============================================================
   CARE TEAM
   ============================================================ */
.team { background: var(--brand-secondary); }
.team-title { font-size: 44px; color: var(--ink-deep); margin-bottom: 18px; }
.team-sub { color: var(--text-muted); font-size: 18px; max-width: 620px; }
.team .rule { border-top-color: var(--brand-accent); }
.team-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 36px;
	margin-top: 36px;
}
.team-card { display: flex; flex-direction: column; }
.team-card img {
	width: 100%;
	border-radius: var(--radius-sm);
	margin-bottom: 22px;
}
.team-role { margin-bottom: 6px; }
.team-name { font-size: 24px; margin-bottom: 4px; }
.team-cred {
	font-family: var(--font-sans);
	font-size: 15px;
	color: var(--text-muted);
	margin-bottom: 14px;
}
.team-card .body-copy { font-size: 16px; }
.team-cta { margin-top: 50px; text-align: center; }

/* ============================================================
   PATIENT STORIES / JOURNAL HEADS
   ============================================================ */
.stories { background: var(--brand-secondary); }
.stories-title { font-size: 44px; margin-bottom: 18px; }
.stories-sub { color: var(--text-muted); font-size: 18px; max-width: 620px; }

.journal { background: var(--surface); }
.journal-title { font-size: 44px; margin-bottom: 18px; }

.journal-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 35px 30px;
	margin-top: 14px;
}
.journal-card { display: block; }
.journal-thumb {
	border-radius: var(--radius-md);
	overflow: hidden;
	margin-bottom: 18px;
	aspect-ratio: 1 / 0.66;
}
.journal-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.journal-card:hover .journal-thumb img { transform: scale(1.04); }
.journal-date {
	font-family: var(--font-sans);
	font-size: 14px;
	color: var(--text-muted);
	display: block;
	margin-bottom: 8px;
}
.journal-card-title {
	font-family: var(--font-serif);
	font-size: 19px;
	line-height: 1.35;
	color: var(--brand-accent);
	transition: color .25s ease;
}
.journal-card:hover .journal-card-title { color: var(--brand-primary); }

/* ============================================================
   FINAL CTA (navy)
   ============================================================ */
.final-cta { background: var(--brand-primary); text-align: center; }
.final-cta-inner { display: flex; flex-direction: column; align-items: center; max-width: 760px; margin: 0 auto; }
.final-cta-title { font-size: 44px; color: var(--text-on-dark); margin-bottom: 22px; }
.final-cta-sub { color: var(--text-on-dark-soft); font-size: 18px; max-width: 56ch; }
.final-cta .btn { margin-top: 36px; }

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

/* ── TABLET (max 1024px) ── */
@media (max-width: 1024px) {
	.hero { padding: 72px 0 72px; }
	.hero-title { font-size: 64px; }
	.hero-sub { font-size: 21px; }

	.intro-grid { gap: 32px; }
	.intro-head, .who-title, .pathways-title, .process-title,
	.care-title, .movement-title, .team-title, .stories-title,
	.journal-title, .final-cta-title { font-size: 38px; }

	/* 4-col grids become 2x2 so cards keep breathing room */
	.pathways-grid { grid-template-columns: 1fr 1fr; }
	.pathway-card { border-right: 1px solid var(--brand-primary); }
	.pathway-card:nth-child(2n) { border-right: none; }
	.pathway-card:nth-child(n+3) { border-top: 1px solid var(--brand-primary); }

	.process-grid { grid-template-columns: 1fr 1fr; }
	.process-card { border-right: 1px solid var(--border-on-dark); }
	.process-card:nth-child(2n) { border-right: none; }

	.journal-grid { grid-template-columns: 1fr 1fr; gap: 32px 26px; }

	.movement-text { padding: 56px 48px; }
	.care-tiers { padding-left: 0; }
}

/* ── MOBILE (max 768px) ── */
@media (max-width: 768px) {
	.hero { padding: 56px 0 56px; }
	.hero-title { font-size: 38px; line-height: 1.18; }
	.hero-sub { font-size: 18px; margin-top: 20px; }
	.hero-btn { margin-top: 32px; width: 100%; max-width: 340px; }

	/* All headlines to a controlled mobile size */
	.intro-head, .who-title, .pathways-title, .process-title,
	.care-title, .movement-title, .team-title, .stories-title,
	.journal-title, .final-cta-title { font-size: 30px; line-height: 1.2; }

	/* Hide manual <br> stacking so headlines wrap naturally on mobile.
	   A space precedes each <br> in the markup, which becomes the word
	   separator once the break is hidden. */
	.hero-title br, .intro-head br, .who-title br, .pathways-title br,
	.process-title br, .care-title br, .team-title br, .stories-title br,
	.journal-title br, .final-cta-title br { display: none; }
	.movement-title br { display: block; }

	/* Dr. Meg: image first, then text */
	.intro-grid { grid-template-columns: 1fr; gap: 0; }
	.intro-media { order: -1; margin-bottom: 32px; }
	.intro-media img { width: 100%; max-width: 420px; }

	/* Who-you-are cards: single column, smaller numeral */
	.who { padding: 56px 0; }
	.who-cards { grid-template-columns: 1fr; gap: 2px; }
	.who-card { padding: 32px 24px; }
	.who-num { font-size: 56px; margin-bottom: 4px; }
	.who-card p { font-size: 18px; }

	/* Pathways: single column, full borders top only */
	.pathways-grid { grid-template-columns: 1fr; }
	.pathway-card {
		border-right: none !important;
		border-top: 1px solid var(--brand-primary) !important;
		padding: 32px 4px 36px;
	}

	/* Process: single column navy stack */
	.process-grid { grid-template-columns: 1fr; }
	.process-card {
		border-right: none !important;
		padding: 28px 4px;
	}
	.process-card:first-child { padding-top: 8px; }
	.process-name { font-size: 34px; }

	/* Care: stack intro above tiers */
	.care-grid { grid-template-columns: 1fr; gap: 36px; }
	.care-intro .btn { width: 100%; max-width: 340px; }
	.care-tier { gap: 16px; padding: 24px 0; }
	.care-tier:hover { padding-left: 0; }
	.care-tier-num { font-size: 36px; width: 34px; }
	.care-tier-name { font-size: 21px; }

	/* Movement: real stacked image block above sand text */
	.movement { grid-template-columns: 1fr; }
	.movement-media { height: 240px; }
	.movement-text { padding: 44px 20px; }
	.movement-btn { width: 100%; max-width: 340px; align-self: stretch; }

	/* Team: single column, centered, contained portrait width */
	.team-grid { grid-template-columns: 1fr; gap: 44px; max-width: 420px; margin-left: auto; margin-right: auto; }
	.team-cta .btn { width: 100%; max-width: 340px; }

	/* Journal: single column */
	.journal-grid { grid-template-columns: 1fr; gap: 32px; }

	.final-cta .btn { width: 100%; max-width: 340px; }

	/* Center any rule that sits under a stacked head on mobile */
	.intro .rule, .pathways .rule, .process .rule,
	.care .rule, .team .rule { margin-left: 0; }
}

/* ── SMALL MOBILE (max 480px) ── */
@media (max-width: 480px) {
	.hero-title { font-size: 33px; }
	.intro-head, .who-title, .pathways-title, .process-title,
	.care-title, .movement-title, .team-title, .stories-title,
	.journal-title, .final-cta-title { font-size: 27px; }
	.who-num { font-size: 50px; }
	.process-name { font-size: 30px; }
	.movement-media { height: 200px; }
}
