/*
 * Wealth Blueprint Lab Theme Styles
 *
 * Palette: cream #faf7f2, gold #c89648, forest #1a3d2e, deep #1a1a1a, mute #8a7355, line #e5dfd1
 * Typography: Cormorant Garamond (display) + Inter (body/UI)
 */

/* ==========================================================================
   RESET & BASE
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font-family: 'Inter', system-ui, -apple-system, sans-serif;
	background: #faf7f2;
	color: #1a1a1a;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: #1a3d2e; text-decoration: underline; text-underline-offset: 2px; }
a:hover, a:focus { color: #c89648; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4, h5, h6 { font-family: 'Cormorant Garamond', serif; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; color: #1a1a1a; }

/* Screen reader utility */
.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; width: 1px; overflow: hidden; position: absolute !important;
	word-wrap: normal !important;
}
.wbl-skip-link { position: absolute; left: -9999px; }
.wbl-skip-link:focus { left: 8px; top: 8px; padding: 10px 14px; background: #1a3d2e; color: #faf7f2; z-index: 999; text-decoration: none; }

/* ==========================================================================
   LAYOUT
   ========================================================================== */
.wbl-container { max-width: 960px; margin: 0 auto; padding: 0 24px; }
@media (min-width: 768px) { .wbl-container { padding: 0 32px; } }

.wbl-main { min-height: 60vh; padding: 48px 0; }
@media (min-width: 768px) { .wbl-main { padding: 64px 0; } }

/* ==========================================================================
   SITE HEADER
   ========================================================================== */
.wbl-site-header { background: #faf7f2; padding: 24px 0; border-bottom: 1px solid #e5dfd1; }
.wbl-site-header-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.wbl-site-brand { display: flex; align-items: center; gap: 14px; }
.wbl-monogram {
	display: inline-flex; align-items: center; justify-content: center;
	width: 44px; height: 44px; border: 1.5px solid #c89648;
	color: #c89648; font-family: 'Cormorant Garamond', serif;
	font-size: 22px; font-weight: 600; letter-spacing: -0.02em;
	line-height: 1; text-decoration: none; flex-shrink: 0;
}
.wbl-monogram:hover, .wbl-monogram:focus { background: #c89648; color: #faf7f2; }
.wbl-site-title {
	font-family: 'Cormorant Garamond', serif; font-size: 20px; font-weight: 600;
	letter-spacing: -0.01em; color: #1a1a1a; text-decoration: none;
}
.wbl-site-title:hover, .wbl-site-title:focus { color: #c89648; }
.custom-logo-link img { max-height: 44px; width: auto; }

.wbl-primary-nav .wbl-nav-list {
	display: flex; gap: 28px; list-style: none; padding: 0; margin: 0;
	flex-wrap: wrap;
}
.wbl-primary-nav a {
	color: #1a1a1a; text-decoration: none;
	font-size: 14px; font-weight: 500; letter-spacing: 0.02em;
	padding: 6px 0;
}
.wbl-primary-nav a:hover, .wbl-primary-nav a:focus { color: #c89648; }
.wbl-primary-nav .current-menu-item > a,
.wbl-primary-nav .current_page_item > a { color: #c89648; }

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */
.wbl-eyebrow {
	font-family: 'Inter', sans-serif; font-size: 11px; font-weight: 500;
	letter-spacing: 0.2em; text-transform: uppercase; color: #8a7355;
	margin-bottom: 16px;
}
.wbl-section-heading {
	font-size: clamp(28px, 4vw, 38px); font-weight: 600;
	line-height: 1.15; margin-bottom: 32px; max-width: 640px;
}

/* ==========================================================================
   HERO (homepage)
   ========================================================================== */
.wbl-hero { padding: 64px 24px 48px; max-width: 800px; }
@media (min-width: 768px) { .wbl-hero { padding: 96px 32px 64px; } }
.wbl-hero-headline {
	font-size: clamp(40px, 7vw, 68px); font-weight: 600;
	line-height: 1.05; letter-spacing: -0.02em; margin: 0 0 24px;
}
.wbl-hero-lede {
	font-size: 18px; color: #3d3d3d; line-height: 1.65;
	max-width: 620px; margin: 0 0 32px;
}
@media (min-width: 768px) { .wbl-hero-lede { font-size: 20px; } }
.wbl-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 0; }

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.wbl-btn {
	display: inline-flex; align-items: center; gap: 10px;
	padding: 14px 26px;
	font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 500;
	letter-spacing: 0.02em; text-decoration: none;
	border: none; cursor: pointer;
	transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.wbl-btn-primary { background: #1a3d2e; color: #faf7f2; }
.wbl-btn-primary:hover, .wbl-btn-primary:focus { background: #0f2820; color: #faf7f2; }
.wbl-btn-secondary {
	background: transparent; color: #1a3d2e;
	border: 1px solid #1a3d2e;
}
.wbl-btn-secondary:hover, .wbl-btn-secondary:focus { background: #1a3d2e; color: #faf7f2; }

/* ==========================================================================
   FOUR RULES GRID (homepage)
   ========================================================================== */
.wbl-four-rules { padding: 48px 24px; margin-top: 32px; }
@media (min-width: 768px) { .wbl-four-rules { padding: 72px 32px; } }
.wbl-four-rules-grid {
	display: grid; gap: 32px;
	grid-template-columns: 1fr;
	margin-top: 24px;
}
@media (min-width: 640px) { .wbl-four-rules-grid { grid-template-columns: 1fr 1fr; gap: 36px 48px; } }
.wbl-rule { padding-left: 0; }
.wbl-rule-number {
	font-family: 'Cormorant Garamond', serif;
	font-size: 14px; font-weight: 500; color: #c89648;
	letter-spacing: 0.2em; margin-bottom: 8px;
}
.wbl-rule h3 {
	font-size: 22px; margin: 0 0 10px;
	color: #1a3d2e; line-height: 1.3;
}
.wbl-rule p { font-size: 15px; color: #3d3d3d; line-height: 1.65; margin: 0; }

/* ==========================================================================
   VIDEO SECTION
   ========================================================================== */
.wbl-video-section { margin: 48px auto; padding: 0 24px; }
@media (min-width: 768px) { .wbl-video-section { margin: 64px auto; padding: 0 32px; } }
.wbl-video-embed {
	position: relative; width: 100%; max-width: 960px; margin: 0 auto;
	background: #1a1a1a;
}
.wbl-video-embed iframe,
.wbl-video-embed video,
.wbl-video-embed embed,
.wbl-video-embed object {
	width: 100% !important; height: auto !important;
	aspect-ratio: 16 / 9; display: block;
}

/* ==========================================================================
   REVIEWS
   ========================================================================== */
.wbl-reviews { padding: 48px 24px 24px; }
@media (min-width: 768px) { .wbl-reviews { padding: 72px 32px 32px; } }
.wbl-reviews-grid {
	display: grid; gap: 24px;
	grid-template-columns: 1fr;
}
@media (min-width: 640px) { .wbl-reviews-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .wbl-reviews-grid { grid-template-columns: 1fr 1fr 1fr; } }
.wbl-review-card {
	background: #fff; padding: 24px 26px;
	border-left: 2px solid #c89648;
	margin: 0;
	display: flex; flex-direction: column; gap: 16px;
}
.wbl-review-rating { color: #c89648; font-size: 14px; letter-spacing: 0.1em; line-height: 1; }
.wbl-review-rating .wbl-stars-empty { color: #e5dfd1; }
.wbl-review-quote {
	font-family: 'Cormorant Garamond', serif;
	font-size: 18px; line-height: 1.5; color: #1a1a1a;
	margin: 0; font-style: italic; font-weight: 500;
}
.wbl-review-quote p { margin: 0 0 10px; }
.wbl-review-quote p:last-child { margin-bottom: 0; }
.wbl-review-attribution {
	font-size: 13px; letter-spacing: 0.02em;
	color: #8a7355; margin-top: auto;
	padding-top: 12px; border-top: 1px solid #e5dfd1;
}
.wbl-review-name {
	display: block; font-weight: 600; color: #1a1a1a;
	font-size: 13px; font-family: 'Inter', sans-serif;
}
.wbl-review-context {
	display: block; font-size: 12px; color: #8a7355;
	margin-top: 2px; font-style: italic;
	font-family: 'Cormorant Garamond', serif;
}

/* ==========================================================================
   FOOTER CTA (pre-footer section)
   ========================================================================== */
.wbl-footer-cta {
	background: #1a3d2e; color: #faf7f2;
	padding: 56px 0; margin-top: 48px;
}
@media (min-width: 768px) { .wbl-footer-cta { padding: 72px 0; } }
.wbl-footer-cta .wbl-eyebrow { color: #c89648; }
.wbl-footer-cta-heading {
	font-size: clamp(28px, 4vw, 40px);
	color: #faf7f2; margin: 0 0 14px;
}
.wbl-footer-cta-lede {
	font-size: 17px; color: #c4d1ca; line-height: 1.65;
	max-width: 560px; margin: 0 0 28px;
}
.wbl-footer-cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.wbl-footer-cta .wbl-btn-primary { background: #c89648; color: #1a1a1a; }
.wbl-footer-cta .wbl-btn-primary:hover, .wbl-footer-cta .wbl-btn-primary:focus { background: #b3843b; }

/* ==========================================================================
   SITE FOOTER
   ========================================================================== */
.wbl-site-footer {
	padding: 48px 0; border-top: 1px solid #e5dfd1;
	text-align: center;
}
.wbl-footer-tagline {
	font-family: 'Cormorant Garamond', serif; font-style: italic;
	font-size: 18px; color: #1a3d2e;
	margin-bottom: 18px;
}
.wbl-footer-nav { margin-bottom: 18px; }
.wbl-footer-nav-list {
	display: flex; gap: 24px; justify-content: center; flex-wrap: wrap;
	list-style: none; padding: 0; margin: 0;
}
.wbl-footer-nav a {
	color: #8a7355; text-decoration: none;
	font-size: 13px; letter-spacing: 0.02em;
}
.wbl-footer-nav a:hover, .wbl-footer-nav a:focus { color: #c89648; }
.wbl-footer-credit {
	font-size: 13px; color: #8a7355; letter-spacing: 0.02em;
	line-height: 1.7;
}

/* ==========================================================================
   PAGE & POST CONTENT
   ========================================================================== */
.wbl-page, .wbl-post { padding: 0 24px; max-width: 800px; }
@media (min-width: 768px) { .wbl-page, .wbl-post { padding: 0 32px; } }

.wbl-page-header, .wbl-post-header { margin-bottom: 32px; }
.wbl-page-title, .wbl-post-title {
	font-size: clamp(32px, 5vw, 48px); margin: 0;
	line-height: 1.1;
}
.wbl-post-header .wbl-eyebrow { margin-bottom: 8px; }

.wbl-post-thumbnail { margin-bottom: 32px; }

.wbl-page-content, .wbl-post-content {
	font-size: 17px; color: #1a1a1a; line-height: 1.75;
}
.wbl-page-content p, .wbl-post-content p { margin: 0 0 20px; }
.wbl-page-content h2, .wbl-post-content h2 {
	font-size: clamp(24px, 3vw, 32px); margin: 40px 0 16px;
}
.wbl-page-content h3, .wbl-post-content h3 {
	font-size: clamp(20px, 2.5vw, 26px); margin: 32px 0 12px;
}
.wbl-page-content ul, .wbl-post-content ul,
.wbl-page-content ol, .wbl-post-content ol { margin: 0 0 20px 24px; }
.wbl-page-content li, .wbl-post-content li { margin-bottom: 8px; }
.wbl-page-content blockquote, .wbl-post-content blockquote {
	margin: 32px 0; padding-left: 20px; border-left: 2px solid #c89648;
	font-family: 'Cormorant Garamond', serif; font-style: italic;
	font-size: 20px; line-height: 1.5; color: #3d3d3d;
}
.wbl-page-content code, .wbl-post-content code {
	background: #fff; border: 1px solid #e5dfd1; padding: 2px 6px;
	font-size: 0.9em; border-radius: 2px;
}
.wbl-page-content pre, .wbl-post-content pre {
	background: #1a1a1a; color: #faf7f2; padding: 20px 24px;
	overflow-x: auto; margin: 24px 0; font-size: 14px; line-height: 1.6;
}
.wbl-page-content pre code, .wbl-post-content pre code {
	background: transparent; border: none; padding: 0; color: inherit;
}
.wbl-page-content a, .wbl-post-content a {
	text-decoration: underline; text-underline-offset: 2px;
}

.wbl-post-footer {
	margin-top: 48px; padding-top: 32px; border-top: 1px solid #e5dfd1;
}
.wbl-post-footer-sig {
	font-family: 'Cormorant Garamond', serif; font-style: italic;
	font-size: 16px; color: #1a3d2e;
}
.wbl-post-footer-sig strong {
	font-family: 'Inter', sans-serif; font-style: normal;
	font-size: 14px; color: #1a1a1a;
}

/* ==========================================================================
   ARCHIVES & POST LISTS
   ========================================================================== */
.wbl-content { max-width: 800px; }
.wbl-archive-header { margin-bottom: 48px; padding: 24px 0 0; }
.wbl-archive-title {
	font-size: clamp(32px, 5vw, 44px); margin: 0;
	line-height: 1.1;
}
.wbl-archive-description { font-size: 16px; color: #3d3d3d; margin-top: 16px; }

.wbl-post-list { display: flex; flex-direction: column; gap: 40px; }
.wbl-post-card {
	padding-bottom: 36px; border-bottom: 1px solid #e5dfd1;
}
.wbl-post-card:last-child { border-bottom: none; }
.wbl-post-card-header { margin-bottom: 12px; }
.wbl-post-card-meta {
	font-family: 'Inter', sans-serif; font-size: 12px;
	letter-spacing: 0.1em; text-transform: uppercase; color: #8a7355;
	margin-bottom: 8px;
}
.wbl-post-card-title {
	font-size: clamp(24px, 3.5vw, 32px); margin: 0;
	line-height: 1.2;
}
.wbl-post-card-title a { color: #1a1a1a; text-decoration: none; }
.wbl-post-card-title a:hover, .wbl-post-card-title a:focus { color: #c89648; }
.wbl-post-card-excerpt {
	font-size: 16px; color: #3d3d3d; line-height: 1.7;
	margin: 12px 0;
}
.wbl-read-more {
	display: inline-block; font-size: 14px;
	color: #1a3d2e; text-decoration: none;
	font-weight: 500; letter-spacing: 0.02em;
	border-bottom: 1px solid #1a3d2e; padding-bottom: 2px;
}
.wbl-read-more:hover, .wbl-read-more:focus { color: #c89648; border-color: #c89648; }

.wbl-pagination {
	margin-top: 48px; padding-top: 32px; border-top: 1px solid #e5dfd1;
	font-size: 14px;
}
.wbl-pagination a, .wbl-pagination .page-numbers {
	display: inline-block; padding: 8px 14px;
	color: #1a1a1a; text-decoration: none;
	margin-right: 4px;
}
.wbl-pagination .current { font-weight: 600; color: #c89648; }
.wbl-pagination a:hover, .wbl-pagination a:focus { color: #c89648; }

/* ==========================================================================
   404
   ========================================================================== */
.wbl-404 { padding: 80px 24px; text-align: left; max-width: 640px; }
@media (min-width: 768px) { .wbl-404 { padding: 120px 32px; } }
.wbl-404-title { font-size: clamp(36px, 6vw, 56px); margin: 0 0 16px; line-height: 1.1; }
.wbl-404-lede { font-size: 17px; color: #3d3d3d; line-height: 1.65; margin: 0 0 32px; }

/* ==========================================================================
   EMPTY STATES
   ========================================================================== */
.wbl-empty {
	padding: 40px 24px; text-align: center;
	color: #8a7355; font-style: italic;
	font-family: 'Cormorant Garamond', serif; font-size: 18px;
}

/* ==========================================================================
   FAQ ACCORDION
   ========================================================================== */
.wbl-faq { padding: 48px 24px; }
@media (min-width: 768px) { .wbl-faq { padding: 72px 32px; } }

.wbl-faq-list { display: flex; flex-direction: column; max-width: 760px; }

.wbl-faq-item {
	border-bottom: 1px solid #e5dfd1;
	padding: 0;
}
.wbl-faq-item[open] { background: rgba(200, 150, 72, 0.03); }
.wbl-faq-item[open] .wbl-faq-icon { transform: rotate(45deg); }

.wbl-faq-question {
	display: flex; justify-content: space-between; align-items: flex-start;
	gap: 16px; padding: 20px 4px 20px 0;
	cursor: pointer; list-style: none;
	font-family: 'Cormorant Garamond', serif;
	font-size: clamp(18px, 2.4vw, 22px);
	font-weight: 600; color: #1a1a1a;
	line-height: 1.35; letter-spacing: -0.01em;
}
.wbl-faq-question::-webkit-details-marker { display: none; }
.wbl-faq-question:hover { color: #c89648; }
.wbl-faq-question:focus { outline: 2px solid #c89648; outline-offset: 2px; }

.wbl-faq-q-text { flex: 1; }

.wbl-faq-icon {
	display: inline-flex; align-items: center; justify-content: center;
	flex-shrink: 0;
	width: 28px; height: 28px; margin-top: 4px;
	border: 1px solid #c89648; color: #c89648;
	font-family: 'Inter', sans-serif; font-size: 16px; font-weight: 400;
	line-height: 1;
	transition: transform 0.25s ease;
}

.wbl-faq-answer {
	padding: 0 4px 24px 0;
	font-size: 16px; color: #3d3d3d; line-height: 1.7;
	max-width: 680px;
}
.wbl-faq-answer p:first-child { margin-top: 0; }
.wbl-faq-answer p:last-child { margin-bottom: 0; }
.wbl-faq-answer p { margin: 0 0 14px; }
.wbl-faq-answer a { color: #1a3d2e; text-decoration: underline; }
.wbl-faq-answer a:hover { color: #c89648; }
.wbl-faq-answer ul, .wbl-faq-answer ol { margin: 10px 0 14px 22px; }
.wbl-faq-answer li { margin-bottom: 6px; }

/* ==========================================================================
   FAQ PAGE HERO
   ========================================================================== */
.wbl-faq-page-hero {
	padding: 56px 24px 8px;
	max-width: 800px;
}
@media (min-width: 768px) { .wbl-faq-page-hero { padding: 80px 32px 8px; } }
.wbl-faq-page-hero h1 {
	font-size: clamp(36px, 5vw, 56px);
	line-height: 1.05; margin: 0 0 16px;
}
.wbl-faq-page-hero p {
	font-size: 17px; color: #3d3d3d; line-height: 1.65;
	max-width: 620px; margin: 0;
}

/* ==========================================================================
   BLOCK PATTERNS — Tools Grid
   ========================================================================== */
.wbl-tools-grid-section { padding: 48px 24px; }
@media (min-width: 768px) { .wbl-tools-grid-section { padding: 72px 32px; } }

.wbl-tools-grid { gap: 32px; margin-top: 24px; }
@media (min-width: 768px) { .wbl-tools-grid { gap: 48px; } }

.wbl-tool-card {
	background: #fff;
	border-left: 2px solid #c89648;
	padding: 28px 28px 28px 30px;
	display: flex !important; flex-direction: column; gap: 14px;
}
.wbl-tool-card h3 { margin: 0; color: #1a3d2e; line-height: 1.2; }
.wbl-tool-card p { margin: 0; color: #3d3d3d; line-height: 1.65; font-size: 16px; }
.wbl-tool-card .wp-block-buttons { margin-top: auto; padding-top: 8px; }

/* ==========================================================================
   BLOCK PATTERNS — Manifesto
   ========================================================================== */
.wbl-manifesto { background: #faf7f2; }
.wbl-manifesto-line {
	max-width: 680px; margin: 0 auto !important;
}

/* ==========================================================================
   BLOCK EDITOR — map brand color palette slugs to CSS
   WordPress generates classes like has-wbl-forest-color and
   has-wbl-forest-background-color when users pick palette colors.
   ========================================================================== */
.has-wbl-cream-color  { color: #faf7f2 !important; }
.has-wbl-gold-color   { color: #c89648 !important; }
.has-wbl-forest-color { color: #1a3d2e !important; }
.has-wbl-deep-color   { color: #1a1a1a !important; }
.has-wbl-mute-color   { color: #8a7355 !important; }
.has-wbl-line-color   { color: #e5dfd1 !important; }

.has-wbl-cream-background-color  { background-color: #faf7f2 !important; }
.has-wbl-gold-background-color   { background-color: #c89648 !important; }
.has-wbl-forest-background-color { background-color: #1a3d2e !important; }
.has-wbl-deep-background-color   { background-color: #1a1a1a !important; }
.has-wbl-mute-background-color   { background-color: #8a7355 !important; }
.has-wbl-line-background-color   { background-color: #e5dfd1 !important; }

/* Block editor button variants when wrapped in wbl-btn container classes */
.wp-block-button.wbl-btn-primary .wp-block-button__link {
	background: #1a3d2e; color: #faf7f2;
	padding: 14px 26px; border-radius: 0;
	font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 500;
	letter-spacing: 0.02em;
}
.wp-block-button.wbl-btn-primary .wp-block-button__link:hover,
.wp-block-button.wbl-btn-primary .wp-block-button__link:focus {
	background: #0f2820; color: #faf7f2;
}
.wp-block-button.wbl-btn-secondary .wp-block-button__link {
	background: transparent; color: #1a3d2e;
	border: 1px solid #1a3d2e;
	padding: 14px 26px; border-radius: 0;
	font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 500;
	letter-spacing: 0.02em;
}
.wp-block-button.wbl-btn-secondary .wp-block-button__link:hover,
.wp-block-button.wbl-btn-secondary .wp-block-button__link:focus {
	background: #1a3d2e; color: #faf7f2;
}
.comments-area { max-width: 800px; margin: 48px auto 0; padding: 32px 24px; border-top: 1px solid #e5dfd1; }
.comments-area h2, .comments-area h3 { font-size: 22px; margin-bottom: 16px; }
.comment-list { list-style: none; padding: 0; }
.comment-list .comment {
	padding: 20px 0; border-bottom: 1px solid #e5dfd1;
}
.comment-author { font-weight: 600; margin-bottom: 6px; }
.comment-metadata { font-size: 12px; color: #8a7355; margin-bottom: 10px; letter-spacing: 0.02em; }
.comment-content { font-size: 15px; line-height: 1.7; }
.comment-form label { display: block; font-size: 13px; margin-bottom: 4px; font-weight: 500; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%; max-width: 100%; padding: 10px 12px;
	border: 1px solid #e5dfd1; background: #fff;
	font-family: inherit; font-size: 15px;
	margin-bottom: 14px;
}
.comment-form .submit { background: #1a3d2e; color: #faf7f2; padding: 12px 24px; border: none; font-size: 14px; letter-spacing: 0.02em; }
