/* L.A.'s Finest Media Group — theme styles
   Colors and fonts live in theme.json; this file adds the brand details. */

:root {
	--lfmg-ink: #0E0C0B;
	--lfmg-ivory: #F7F2EA;
	--lfmg-cream: #F5EEE2;
	--lfmg-muted: #CFC6B8;
	--lfmg-dim: #A9A094;
	--lfmg-gold: #D4B26A;
	--lfmg-gold-line: #C9A85E;
	--lfmg-gold-deep: #7D5F17;
	--lfmg-rule-dark: #4A3F2A;
	--lfmg-rule-ivory: #D9CDB5;
	--lfmg-burgundy: #7A1F35;
	--lfmg-charcoal: #2A2422;
	--lfmg-display: "Cormorant Garamond", Georgia, serif;
	--lfmg-gold-grad: linear-gradient(90deg, #E8CD85 0%, #CDA750 50%, #AE8636 100%);
}

html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { -webkit-font-smoothing: antialiased; }
:where(.wp-site-blocks) > * { margin-block-start: 0; }
.wp-site-blocks { padding-top: 0; }
img { max-width: 100%; height: auto; }

/* ---------- Header ---------- */
.lfmg-header-wrap { position: sticky; top: 0; z-index: 50; }
.admin-bar .lfmg-header-wrap { top: 32px; }
@media (max-width: 782px) { .admin-bar .lfmg-header-wrap { top: 0; } }
.lfmg-header {
	background: rgba(14, 12, 11, 0.96);
	border-bottom: 1px solid var(--lfmg-rule-dark);
	backdrop-filter: blur(6px);
}
.lfmg-header > .lfmg-header-inner { max-width: 1180px; margin-inline: auto; padding-block: 0.85rem; }
.lfmg-brand { gap: 0.85rem; }
.lfmg-brand .wp-block-image { margin: 0; }
.lfmg-brand img { width: 54px; height: 40px; object-fit: contain; display: block; }
.lfmg-wordmark {
	margin: 0; font-size: 0.75rem; letter-spacing: 0.22em; text-transform: uppercase; line-height: 1.35;
}
.lfmg-wordmark a { color: var(--lfmg-cream); text-decoration: none; }
.lfmg-nav { font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase; gap: 1.6rem; }
.lfmg-nav a { color: var(--lfmg-muted); text-decoration: none; }
.lfmg-nav a:hover { color: var(--lfmg-gold); }
.lfmg-nav .wp-block-navigation__responsive-container.is-menu-open {
	background: var(--lfmg-ink) !important; color: var(--lfmg-cream) !important; padding: 2rem;
}
.lfmg-nav .wp-block-navigation__responsive-container-open,
.lfmg-nav .wp-block-navigation__responsive-container-close { color: var(--lfmg-gold); }

/* Outline (secondary) button */
.wp-block-button.lfmg-btn-outline .wp-block-button__link {
	background: transparent; color: var(--lfmg-gold); border: 1px solid var(--lfmg-gold-line);
	font-weight: 500; letter-spacing: 0.18em; font-size: 0.8rem; padding: 0.9rem 1.3rem;
}
.wp-block-button.lfmg-btn-outline .wp-block-button__link:hover { background: rgba(212, 178, 106, 0.1); color: #EBD08E; }
.lfmg-ivory .wp-block-button.lfmg-btn-outline .wp-block-button__link { color: var(--lfmg-gold-deep); border-color: var(--lfmg-gold-deep); }

/* Gold primary button */
.wp-block-button:not(.lfmg-btn-outline) .wp-block-button__link {
	background: var(--lfmg-gold-grad); color: #1B1614;
	box-shadow: 0 12px 40px rgba(205, 167, 80, 0.22);
	transition: filter 0.2s, transform 0.2s;
}
.wp-block-button:not(.lfmg-btn-outline) .wp-block-button__link:hover { filter: brightness(1.06); transform: translateY(-1px); color: #1B1614; }
.wp-block-button.lfmg-btn-wide { width: 100%; max-width: 500px; }
.wp-block-button.lfmg-btn-wide .wp-block-button__link { width: 100%; }
.wp-block-button__link:focus-visible, .lfmg-faq summary:focus-visible, a:focus-visible { outline: 2px solid var(--lfmg-gold); outline-offset: 3px; }

/* ---------- Sections ---------- */
.lfmg-section { padding-block: clamp(4rem, 9vw, 6.5rem); margin: 0 !important; }
.lfmg-dark { background-color: var(--lfmg-ink); color: var(--lfmg-cream); }
.lfmg-ivory { background-color: var(--lfmg-ivory); color: #1B1614; }
.lfmg-ivory p, .lfmg-ivory li { color: var(--lfmg-charcoal); }
.lfmg-ivory a { color: var(--lfmg-burgundy); }
.lfmg-glow-tr { background: radial-gradient(ellipse 70% 80% at 85% 0%, rgba(122, 31, 53, 0.32), rgba(14, 12, 11, 0) 70%), var(--lfmg-ink); }
.lfmg-glow-bl { background: radial-gradient(ellipse 60% 70% at 15% 100%, rgba(122, 31, 53, 0.28), rgba(14, 12, 11, 0) 70%), var(--lfmg-ink); }
.lfmg-glow-top { background: radial-gradient(ellipse 70% 80% at 50% 0%, rgba(122, 31, 53, 0.34), rgba(14, 12, 11, 0) 70%), var(--lfmg-ink); }
.lfmg-hero { padding-top: clamp(3.5rem, 8vw, 5.5rem); padding-bottom: 4rem; }

/* Headings: italic accent words */
.lfmg-dark :is(h1, h2, h3) em { color: var(--lfmg-gold); }
.lfmg-ivory :is(h1, h2, h3) em { color: var(--lfmg-burgundy); }
.lfmg-ivory :is(h1, h2, h3) { color: #1B1614; }
.lfmg-lead { font-size: 1.2rem; max-width: 640px; }
/* Keep left-aligned intro text on the same left edge as the heading above it */
.lfmg-section.is-layout-constrained > .lfmg-lead:not(.has-text-align-center) { margin-left: max(0px, calc((100% - 1180px) / 2)) !important; }
.lfmg-dark .lfmg-lead { color: #DDD4C6; }
.lfmg-note { font-size: 0.875rem; color: var(--lfmg-dim) !important; }
.lfmg-ivory .lfmg-note { color: #6B625B !important; }

/* Eyebrow label with leading rule */
.lfmg-eyebrow {
	display: flex; align-items: center; gap: 0.9rem;
	font-size: 0.8rem !important; font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase;
	color: var(--lfmg-gold) !important; margin-bottom: 1.25rem !important;
}
.lfmg-eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; flex: none; }
.lfmg-eyebrow.has-text-align-center { justify-content: center; }
.lfmg-ivory .lfmg-eyebrow { color: var(--lfmg-gold-deep) !important; }

/* Gold-framed images and cards */
.lfmg-frame { border: 1px solid #6B5A36; padding: 12px; margin-bottom: 0; box-sizing: border-box; }
.lfmg-ivory .lfmg-frame { border-color: #C9B88F; background: #fff; }
.lfmg-frame img { display: block; width: 100%; }
.lfmg-frame figcaption, .lfmg-caption {
	font-family: var(--lfmg-display); font-style: italic; font-size: 1.1rem; text-align: center;
	color: var(--lfmg-burgundy) !important; margin-top: 0.9rem;
}
.lfmg-dark .lfmg-frame figcaption { color: var(--lfmg-gold) !important; }

/* Hero chat mock */
.lfmg-chat { border: 1px solid #6B5A36; padding: 12px; }
.lfmg-chat-inner { background: var(--lfmg-ivory); color: #1B1614; padding: 1.75rem; gap: 0.85rem; }
.lfmg-chat-inner p { margin: 0; }
.lfmg-chat-meta { font-size: 0.75rem !important; letter-spacing: 0.2em; text-transform: uppercase; color: var(--lfmg-gold-deep) !important; }
.lfmg-bubble { background: #fff; border: 1px solid #E5DCCB; padding: 0.9rem 1.1rem; font-size: 1rem; color: var(--lfmg-charcoal); }
.lfmg-bubble small { display: block; color: #6B625B; font-size: 0.8rem; }
.lfmg-bubble-me { background: var(--lfmg-burgundy); border-color: var(--lfmg-burgundy); color: var(--lfmg-ivory) !important; align-self: flex-end; max-width: 80%; }
.lfmg-chat-foot { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid #E5DCCB; padding-top: 0.9rem; font-size: 0.875rem; }
.lfmg-chat-foot strong { font-family: var(--lfmg-display); font-size: 1.4rem; color: var(--lfmg-burgundy); font-weight: 600; }

/* Stats bar */
.lfmg-stats { border-top: 1px solid var(--lfmg-rule-dark); border-bottom: 1px solid var(--lfmg-rule-dark); gap: 0 !important; margin-top: 3.5rem !important; }
.lfmg-stats > .wp-block-column { text-align: center; padding: 1.75rem 1rem; }
.lfmg-stats > .wp-block-column + .wp-block-column { border-left: 1px solid var(--lfmg-rule-dark); }
@media (max-width: 781px) { .lfmg-stats > .wp-block-column + .wp-block-column { border-left: 0; border-top: 1px solid var(--lfmg-rule-dark); } }
.lfmg-stat-num { font-family: var(--lfmg-display); font-size: 2.6rem !important; line-height: 1; color: var(--lfmg-gold) !important; margin: 0; }
.lfmg-stat-label { font-size: 0.75rem !important; letter-spacing: 0.18em; text-transform: uppercase; color: var(--lfmg-muted) !important; margin: 0.6rem 0 0 !important; }

/* Big-number stat cards (ivory) */
.lfmg-card { background: #fff; border: 1px solid #E5DCCB; padding: 2rem; }
.lfmg-card .lfmg-big { font-family: var(--lfmg-display); font-size: 4rem !important; line-height: 1; color: var(--lfmg-burgundy) !important; margin: 0; }
.lfmg-card p { margin: 0.8rem 0 0; }
.lfmg-card .lfmg-note { font-size: 0.8rem; }

/* Roman-numeral pain list */
.lfmg-roman { list-style: none; padding: 0; margin: 0; counter-reset: roman; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); column-gap: 3rem; }
.lfmg-roman li { counter-increment: roman; display: flex; gap: 1.1rem; padding: 1.1rem 0; border-top: 1px solid #E5DCCB; }
.lfmg-roman li::before { content: counter(roman, lower-roman) "."; font-family: var(--lfmg-display); font-style: italic; font-size: 1.4rem; line-height: 1.2; color: var(--lfmg-burgundy); min-width: 1.8rem; }

/* Hairline grid (the system) */
.lfmg-hairgrid { gap: 1px !important; background: var(--lfmg-rule-dark); border: 1px solid var(--lfmg-rule-dark); }
.lfmg-hairgrid > * { background: var(--lfmg-ink); padding: 2.25rem; margin: 0 !important; }
.lfmg-num { font-family: var(--lfmg-display); font-size: 1.75rem !important; color: var(--lfmg-gold) !important; margin: 0 0 0.4rem !important; line-height: 1; }
.lfmg-hairgrid h3 { margin: 0 0 0.6rem; }
.lfmg-hairgrid p:not(.lfmg-num) { color: var(--lfmg-muted); font-size: 1rem; margin: 0; }

/* Ruled service list (ivory) */
.lfmg-ruled > * { border-top: 1px solid var(--lfmg-rule-ivory); padding-top: 1.6rem; margin: 0 !important; }
.lfmg-ruled h3 { color: var(--lfmg-burgundy) !important; margin: 0 0 0.5rem; }
.lfmg-ruled p { font-size: 1rem; margin: 0; }

/* Steps */
.lfmg-steps > * { border-top: 1px solid #6B5A36; padding-top: 1.4rem; margin: 0 !important; }
.lfmg-steps .lfmg-num { font-size: 2.6rem !important; }
.lfmg-steps h3 { font-family: var(--wp--preset--font-family--body); font-size: 1.1rem; font-weight: 500; letter-spacing: 0.03em; margin: 0.6rem 0 0.4rem; }
.lfmg-steps p:not(.lfmg-num) { color: var(--lfmg-muted); font-size: 1rem; margin: 0; }

/* Before / after table */
.lfmg-table { border: 1px solid var(--lfmg-rule-dark); overflow-x: auto; margin-top: 4rem; }
.lfmg-table table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 1rem; }
.lfmg-table caption { text-align: left; padding: 1.75rem 2rem 0.5rem; font-family: var(--lfmg-display); font-size: 2rem; color: var(--lfmg-cream); }
.lfmg-table th, .lfmg-table td { padding: 1.1rem 2rem; text-align: left; border-top: 1px solid var(--lfmg-rule-dark); }
.lfmg-table thead th { border-top: 0; font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 500; color: var(--lfmg-dim); }
.lfmg-table thead th:last-child { color: var(--lfmg-gold); }
.lfmg-table tbody th { font-weight: 400; }
.lfmg-table td:nth-child(2) { color: var(--lfmg-dim); }

/* Quote */
.lfmg-quote { border-top: 1px solid var(--lfmg-rule-ivory); border-bottom: 1px solid var(--lfmg-rule-ivory); padding: 1.4rem 0 !important; margin: 1.75rem 0 0 !important; border-left: 0 !important; }
.lfmg-quote p { font-family: var(--lfmg-display); font-size: 1.7rem !important; line-height: 1.3; color: #1B1614 !important; }
.lfmg-quote em { color: var(--lfmg-burgundy); }
.lfmg-small-caps { font-size: 0.8rem !important; letter-spacing: 0.18em; text-transform: uppercase; }

/* Calculator */
.lfmg-calc { display: flex; flex-wrap: wrap; gap: 3.5rem; align-items: center; }
.lfmg-calc-inputs { flex: 1 1 26rem; min-width: 0; display: flex; flex-direction: column; gap: 1.6rem; }
.lfmg-calc-field label { display: flex; justify-content: space-between; gap: 1rem; font-size: 1rem; margin-bottom: 0.4rem; }
.lfmg-calc-field output { color: var(--lfmg-gold); font-weight: 500; }
.lfmg-calc-field input[type="range"] { width: 100%; height: 28px; accent-color: var(--lfmg-gold); }
.lfmg-calc-result { flex: 1 1 22rem; min-width: 0; border: 1px solid #6B5A36; padding: 12px; }
.lfmg-calc-result-inner { background: #151210; padding: 2.25rem; display: flex; flex-direction: column; gap: 1.4rem; }
.lfmg-calc-label { margin: 0; font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--lfmg-dim); }
.lfmg-calc-big { margin: 0.3rem 0 0; font-family: var(--lfmg-display); font-size: 4.2rem; line-height: 1; color: var(--lfmg-gold); }
.lfmg-calc-mid { margin: 0.3rem 0 0; font-family: var(--lfmg-display); font-size: 2.5rem; line-height: 1; }
.lfmg-calc-row { border-top: 1px solid var(--lfmg-rule-dark); padding-top: 1.3rem; }
.lfmg-calc-cta {
	display: flex; justify-content: center; gap: 0.6rem; background: var(--lfmg-gold-grad); color: #1B1614 !important;
	text-decoration: none; font-weight: 600; font-size: 0.875rem; letter-spacing: 0.16em; text-transform: uppercase; padding: 1.1rem 1.5rem; border-radius: 2px;
}

/* Pricing */
.lfmg-price { border: 1px solid var(--lfmg-rule-dark); padding: 2rem; display: flex; flex-direction: column; gap: 0.6rem; margin: 0 !important; }
.lfmg-price.is-featured { border-color: var(--lfmg-gold-line); background: radial-gradient(ellipse 90% 60% at 50% 0%, rgba(122, 31, 53, 0.30), rgba(14, 12, 11, 0) 80%), #121010; }
.lfmg-price h3 { margin: 0; font-size: 2rem; font-weight: 500; }
.lfmg-price p { margin: 0; }
.lfmg-price .lfmg-amount { font-family: var(--lfmg-display); font-size: 2.75rem !important; line-height: 1; color: var(--lfmg-gold) !important; margin-top: 0.4rem; }
.lfmg-price ul { color: #DDD4C6; font-size: 0.95rem; padding-left: 1.2rem; margin: 0.6rem 0 1rem; display: flex; flex-direction: column; gap: 0.4rem; }
.lfmg-price .wp-block-buttons { margin-top: auto; }
.lfmg-price .wp-block-button, .lfmg-price .wp-block-button__link { width: 100%; }
.lfmg-badge { align-self: flex-start; border: 1px solid var(--lfmg-gold-line); color: var(--lfmg-gold) !important; font-size: 0.7rem !important; letter-spacing: 0.2em; text-transform: uppercase; padding: 0.3rem 0.65rem; }
.lfmg-fit h3 { font-size: 1.7rem; }
.lfmg-fit > * { border-top: 1px solid #6B5A36; padding-top: 1.5rem; margin: 0 !important; }
.lfmg-fit ul { color: #DDD4C6; font-size: 1rem; }
.lfmg-fit > *:last-child h3, .lfmg-fit > *:last-child ul { color: var(--lfmg-dim); }

/* FAQ */
.lfmg-faq { border-top: 1px solid var(--lfmg-rule-ivory); padding: 1.3rem 0; margin-top: 0 !important; margin-bottom: 0 !important; }
.lfmg-faq:last-of-type { border-bottom: 1px solid var(--lfmg-rule-ivory); }
.lfmg-faq summary {
	list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 1rem;
	font-family: var(--lfmg-display); font-size: 1.5rem; font-weight: 600; color: #1B1614;
}
.lfmg-faq summary::-webkit-details-marker { display: none; }
.lfmg-faq summary::after { content: "+"; color: var(--lfmg-burgundy); transition: transform 0.2s; }
.lfmg-faq[open] summary::after { transform: rotate(45deg); }
.lfmg-faq p { margin: 0.75rem 0 0; }

/* Footer */
.lfmg-footer { border-top: 1px solid var(--lfmg-rule-dark); padding-block: 3rem; font-size: 0.875rem; color: var(--lfmg-dim); }
.lfmg-footer p { color: var(--lfmg-dim); margin: 0; }
.lfmg-footer a { color: var(--lfmg-muted); }
.lfmg-footer .wp-block-image img { width: 86px; height: 64px; object-fit: contain; }
.lfmg-footer-nav { gap: 1.25rem; font-size: 0.875rem; }

/* Blog / page content */
.lfmg-content { padding-block: clamp(3rem, 7vw, 5rem); }
.lfmg-content .wp-block-post-content a { text-decoration: underline; }
.lfmg-post-card { border-top: 1px solid var(--lfmg-rule-dark); padding-top: 1.5rem; }
.lfmg-post-card h2 { font-size: 1.9rem; margin: 0.4rem 0; }
.lfmg-post-card h2 a { color: var(--lfmg-cream); text-decoration: none; }
.lfmg-post-card h2 a:hover { color: var(--lfmg-gold); }
.wp-block-post-date { color: var(--lfmg-dim); font-size: 0.8rem; letter-spacing: 0.18em; text-transform: uppercase; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	* { transition: none !important; }
}

.screen-reader-text { border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal !important; }
.lfmg-caption.has-text-align-left { text-align: left; }

/* Mobile header: keep the wordmark on two lines and let the menu carry the links */
.lfmg-wordmark { white-space: nowrap; }
@media (max-width: 600px) {
	.lfmg-header .wp-block-buttons { display: none; }
	.lfmg-wordmark { font-size: 0.68rem; }
}
.has-text-align-center { text-align: center; }
.has-text-align-left { text-align: left; }
