/*
Theme Name: Bourbon Bit Energy (Astra Child)
Theme URI: https://www.bourbonbitenergy.com
Template: astra
Author: Bourbon Bit Energy
Description: Child theme for Astra that applies the Bourbon Bit Energy design — editorial serif headlines, navy and copper palette, service cards, approach band, project story and Insights. Includes a one-click starter site (all pages built from editable blocks), a pattern library of every design section, the seal wordmark, a designed footer and a built-in contact form. Requires the free Astra theme.
Version: 1.0.0
Requires at least: 6.2
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bourbon-bit-astra
*/

/* ==========================================================================
   Tokens — linked to Astra's Global Colors (Customize → Global → Colors)
   ========================================================================== */
:root {
	--bb-accent: var(--ast-global-color-0, #b76d36);
	--bb-ink: var(--ast-global-color-2, #183246);
	--bb-paper: var(--ast-global-color-4, #f6f5f1);
	--bb-line: var(--ast-global-color-6, #d9dedf);
	--bb-muted: var(--ast-global-color-7, #61717b);
	--bb-deep: var(--ast-global-color-8, #112936);
	--bb-gold: #e0ac76;
	--bb-serif: "Libre Caslon Display", Georgia, serif;
	--bb-sans: "DM Sans", Arial, sans-serif;
	--bb-pad: 5%;
}
@media (min-width: 1500px) {
	:root { --bb-pad: max(5%, calc(50vw - 675px)); }
}

body.bb-site { -webkit-font-smoothing: antialiased; }
body.bb-site h1, body.bb-site h2 { font-family: var(--bb-serif); font-weight: 400; letter-spacing: -1.2px; }
body.bb-site h3, body.bb-site h4, body.bb-site h5, body.bb-site h6 { font-family: var(--bb-sans); font-weight: 500; letter-spacing: 0; }

/* ==========================================================================
   Header (Astra Header Builder)
   ========================================================================== */
.bb-site .ast-primary-header-bar,
.bb-site .ast-primary-header-bar.main-header-bar,
.bb-site #ast-mobile-header .ast-primary-header-bar { background: var(--bb-paper); border-bottom: 1px solid var(--bb-line); }
.bb-site .ast-primary-header-bar .site-primary-header-wrap { min-height: 94px; }
.bb-site #masthead .site-primary-header-wrap.ast-container,
.bb-site #ast-mobile-header .site-primary-header-wrap.ast-container { max-width: none; padding-left: var(--bb-pad); padding-right: var(--bb-pad); }
.bb-site .main-header-menu > .menu-item > .menu-link { font-size: 14px; color: var(--bb-ink); padding: 8px 0; margin: 0 11px; border-bottom: 2px solid transparent; line-height: 1.5; }
.bb-site .main-header-menu > .menu-item:last-child > .menu-link { margin-right: 0; }
.bb-site .main-header-menu > .menu-item > .menu-link:hover { color: var(--bb-ink); border-color: var(--bb-line); }
.bb-site .main-header-menu > .current-menu-item > .menu-link,
.bb-site .main-header-menu > .current_page_parent > .menu-link,
.bb-site .main-header-menu > .current-menu-ancestor > .menu-link { color: var(--bb-ink); border-color: var(--bb-accent); }
.bb-site .main-header-menu .sub-menu { background: var(--bb-paper); border: 1px solid var(--bb-line); }

.bb-wordmark { display: inline-flex; gap: 13px; align-items: center; line-height: 1.15; color: var(--bb-ink); text-decoration: none; }
.bb-wordmark:hover, .bb-wordmark:focus { color: var(--bb-ink); }
.bb-seal { border: 1px solid var(--bb-accent); width: 46px; height: 46px; display: grid; place-items: center; font-family: Georgia, serif; font-size: 30px; color: var(--bb-accent); flex: none; }
.bb-wordmark-text strong { display: block; font-family: Georgia, serif; letter-spacing: 2px; font-size: 19px; font-weight: 700; }
.bb-wordmark-text small { display: block; font-size: 11px; letter-spacing: 5px; margin-top: 6px; }

/* Mobile menu */
.bb-site .ast-mobile-header-content, .bb-site .ast-mobile-popup-content { background: var(--bb-paper); }
.bb-site .ast-header-break-point .main-header-menu .menu-link { border-bottom: 1px solid var(--bb-line); color: var(--bb-ink); }
.bb-site .ast-header-break-point .main-header-menu .current-menu-item > .menu-link { color: var(--bb-accent); }

/* ==========================================================================
   Full-width designed pages — reset Astra/core spacing around our sections
   ========================================================================== */
.bb-site .entry-content > .wp-block-group[class*="bb-"] { margin: 0; max-width: none; }
.bb-site .entry-content > .wp-block-group[class*="bb-"]:first-child { margin-top: 0; }
.bb-site.page .site-content > .ast-container { padding-left: 0; padding-right: 0; }
.bb-site.page .entry-header + .entry-content, .bb-site.page .ast-article-single { margin: 0; padding: 0; }
.bb-site [class*="bb-"] > * { margin-block-start: 0; }

.bb-site .bb-section,
.bb-site .bb-hero,
.bb-site .bb-page-hero,
.bb-site .bb-strip,
.bb-site .bb-closing { padding-left: var(--bb-pad); padding-right: var(--bb-pad); }

.bb-site .bb-section p, .bb-site .bb-hero p, .bb-site .bb-page-hero p { max-width: 700px; }

.bb-site .bb-eyebrow, .bb-site .bb-eyebrow a { text-transform: uppercase; letter-spacing: 2.6px; font-size: 12px; font-weight: 700; color: var(--bb-accent); margin-bottom: 22px; text-decoration: none; }
.bb-site .bb-section h2, .bb-site .bb-closing h2, .bb-site .bb-hero h2 { font-size: clamp(37px, 3.5vw, 56px); line-height: 1.04; letter-spacing: -1.6px; margin-bottom: 22px; color: inherit; }
.bb-site .bb-section h3 { font-size: 22px; line-height: 1.3; margin-bottom: 14px; color: inherit; }
.bb-site .bb-link { margin: 8px 0 0; }
.bb-site .bb-link a, .bb-site .bb-read-more { display: inline-block; font-size: 14px; color: var(--bb-ink); text-decoration: none; border-bottom: 1px solid var(--bb-accent); padding-bottom: 4px; }
.bb-site .bb-link a:hover, .bb-site .bb-read-more:hover { color: var(--bb-accent); }

/* Buttons */
.bb-site .wp-block-button .wp-block-button__link { background: var(--bb-ink); color: #fff; border: 1px solid var(--bb-ink); border-radius: 0; padding: 14px 24px; font-size: 14px; font-weight: 400; line-height: 1.4; transition: background .2s, color .2s; }
.bb-site .wp-block-button .wp-block-button__link:hover { background: transparent; color: var(--bb-ink); }
.bb-site .wp-block-button.is-style-bb-text .wp-block-button__link { background: none; color: var(--bb-ink); border: 0; border-bottom: 1px solid var(--bb-accent); padding: 0 0 4px; }
.bb-site .wp-block-button.is-style-bb-text .wp-block-button__link:hover { color: var(--bb-accent); }
.bb-site .wp-block-button.is-style-outline .wp-block-button__link { background: transparent; color: var(--bb-ink); }
.bb-site .bb-dark .wp-block-button .wp-block-button__link { background: var(--bb-gold); border-color: var(--bb-gold); color: #132e3f; }

/* ==========================================================================
   Hero
   ========================================================================== */
.bb-site .bb-hero { padding-top: 78px; padding-bottom: 66px; }
.bb-site .bb-split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 6%; align-items: center; }
.bb-site .bb-hero h1 { font-size: clamp(48px, 5.6vw, 88px); line-height: 1.04; letter-spacing: -1.6px; max-width: 970px; margin-bottom: 25px; color: var(--bb-ink); }
.bb-site .bb-hero h1 em { font-style: normal; color: var(--bb-accent); }
.bb-site .bb-lead { font-size: 19px; line-height: 1.65; color: var(--bb-muted); max-width: 610px; }
.bb-site .bb-actions { gap: 25px; align-items: center; margin-top: 30px; }
.bb-site .bb-hero-photo { position: relative; height: 560px; margin: 0; overflow: hidden; background: #dce2e3; }
.bb-site .bb-hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }

/* Strip */
.bb-site .bb-strip { border-top: 1px solid var(--bb-line); border-bottom: 1px solid var(--bb-line); padding-top: 22px; padding-bottom: 22px; display: flex; justify-content: space-between; gap: 20px; }
.bb-site .bb-strip p { margin: 0; font-size: 13px; letter-spacing: 1px; text-transform: uppercase; }

/* ==========================================================================
   Sections, cards, steps
   ========================================================================== */
.bb-site .bb-section { padding-top: 80px; padding-bottom: 80px; }
.bb-site .bb-section-ruled { border-top: 1px solid var(--bb-line); }
.bb-site .bb-section-head { display: flex; justify-content: space-between; gap: 40px; align-items: flex-end; margin-bottom: 36px; }
.bb-site .bb-section-head h2 { max-width: 640px; margin: 0; }
.bb-site .bb-section-head > p { max-width: 350px; color: var(--bb-muted); margin: 0; }
.bb-site .bb-section-head > .bb-link { margin: 0; }

.bb-site .bb-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; list-style: none; margin: 0; padding: 0; }
.bb-site .bb-card, .bb-site .bb-posts .wp-block-post { padding: 30px 0; border-top: 1px solid var(--bb-line); margin: 0; }
.bb-site .bb-number { color: var(--bb-accent); font-size: 13px; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 28px; }
.bb-site .bb-card > p:not(.bb-number):not(.bb-link), .bb-site .bb-posts .wp-block-post-excerpt { color: var(--bb-muted); font-size: 15px; }
.bb-site .bb-posts .wp-block-post-title { font-size: 22px; line-height: 1.3; margin: 0 0 14px; }
.bb-site .bb-posts .wp-block-post-title a { color: var(--bb-ink); text-decoration: none; }
.bb-site .bb-posts .wp-block-post-title a:hover { color: var(--bb-accent); }
.bb-site .bb-posts .wp-block-post-terms { margin-bottom: 22px; }
.bb-site .bb-posts .wp-block-post-excerpt__excerpt { margin-bottom: 12px; }
.bb-site .bb-posts .wp-block-post-excerpt__more-text { display: none; }

.bb-site .bb-dark { background: var(--bb-ink); color: #fff; }
.bb-site .bb-dark h2, .bb-site .bb-dark h3 { color: #fff; }
.bb-site .bb-dark p { color: #c4d0d5; }
.bb-site .bb-dark .bb-eyebrow { color: var(--bb-gold); }
.bb-site .bb-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 35px; margin-top: 35px; }
.bb-site .bb-step { border-top: 1px solid #6a7a85; padding-top: 20px; }
.bb-site .bb-dark .bb-step-num { font-family: Georgia, serif; font-size: 40px; line-height: 1.3; color: var(--bb-gold); margin-bottom: 20px; }
.bb-site .bb-step p:last-child { font-size: 15px; }

.bb-site .bb-feature { display: grid; grid-template-columns: 1fr 1fr; gap: 6%; align-items: center; }
.bb-site .bb-photo-placeholder { min-height: 390px; background: linear-gradient(135deg, #304959, #142b3b); border: 1px solid #557080; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 35px; }
.bb-site .bb-photo-placeholder p { margin: 0; max-width: 330px; }
.bb-site .bb-placeholder-label { font-size: 12px; letter-spacing: 3px; text-transform: uppercase; color: var(--bb-gold); font-weight: 700; }
.bb-site .bb-placeholder-text { font-family: Georgia, serif; font-size: 28px; line-height: 1.3; color: #e1e8e9; margin: 16px 0 !important; }
.bb-site .bb-placeholder-hint { font-size: 13px; color: #9fb1ba; }
.bb-site .bb-feature > .wp-block-image { margin: 0; min-height: 390px; position: relative; overflow: hidden; }
.bb-site .bb-feature > .wp-block-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Closing band */
.bb-site .bb-closing { padding-top: 65px; padding-bottom: 65px; border-top: 1px solid var(--bb-line); display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.bb-site .bb-closing h2 { max-width: 750px; margin: 0; color: var(--bb-ink); }
.bb-site .bb-closing .wp-block-buttons { flex: none; margin: 0; }

/* ==========================================================================
   Interior pages
   ========================================================================== */
.bb-site .bb-page-hero { padding-top: 78px; padding-bottom: 54px; border-bottom: 1px solid var(--bb-line); }
.bb-site .bb-page-hero h1 { font-size: clamp(44px, 4.6vw, 72px); line-height: 1.04; letter-spacing: -1.6px; margin-bottom: 25px; color: var(--bb-ink); max-width: 970px; }
.bb-site .bb-page-hero .bb-lead { margin-bottom: 0; }

.bb-site .bb-narrow { max-width: 950px; margin-left: auto; margin-right: auto; }
.bb-site .bb-narrow > * { max-width: 760px; }
.bb-site .bb-narrow p, .bb-site .bb-narrow li { font-size: 17px; }
.bb-site .bb-narrow h2 { font-size: clamp(30px, 2.6vw, 40px); letter-spacing: -1px; margin-top: 52px; margin-bottom: 16px; }
.bb-site .bb-narrow h3 { margin-top: 32px; margin-bottom: 10px; }
.bb-site .bb-narrow > :first-child { margin-top: 0; }
.bb-site .bb-narrow h2[id] { scroll-margin-top: 30px; }
.bb-site .bb-narrow ul { padding-left: 22px; margin-left: 0; }
.bb-site .bb-narrow li { margin: 10px 0; }
.bb-site .bb-narrow li::marker { color: var(--bb-accent); }
.bb-site .bb-narrow .wp-block-quote, .bb-site.single-post .entry-content .wp-block-quote { font-family: Georgia, serif; font-size: 27px; line-height: 1.45; border: 0; border-left: 2px solid var(--bb-accent); padding: 0 0 0 25px; margin: 40px 0; font-style: normal; background: none; }
.bb-site .bb-narrow .wp-block-quote p, .bb-site.single-post .entry-content .wp-block-quote p { font-size: inherit; color: var(--bb-ink); }
.bb-site .bb-note { font-size: 14px !important; background: #e9e6dd; padding: 14px 20px; color: #5a574e; }
.bb-site .bb-faq { margin-top: 10px; }
.bb-site .wp-block-details { border-bottom: 1px solid var(--bb-line); padding: 20px 0; margin: 0; }
.bb-site .wp-block-details summary { cursor: pointer; font-weight: 500; font-size: 18px; }
.bb-site .wp-block-details > p { margin: 14px 0 0; color: var(--bb-muted); }

.bb-site .bb-body-grid { display: grid; grid-template-columns: 1.8fr 1fr; gap: 9%; }
.bb-site .bb-aside { border-top: 3px solid var(--bb-accent); padding-top: 25px; align-self: start; }
.bb-site .bb-aside p { font-size: 15px; }
.bb-site .bb-aside-note { color: var(--bb-muted); border-top: 1px solid var(--bb-line); padding-top: 18px; margin-top: 28px; }

/* Contact form */
.bb-form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.bb-form label { font-size: 14px; display: block; color: var(--bb-ink); }
.bb-site .bb-form input[type="text"], .bb-site .bb-form input[type="email"], .bb-site .bb-form input[type="tel"], .bb-site .bb-form select, .bb-site .bb-form textarea { width: 100%; background: transparent; padding: 12px; border: 1px solid #aab5b7; border-radius: 0; margin-top: 7px; color: var(--bb-ink); font: inherit; box-shadow: none; }
.bb-form .full { grid-column: 1 / -1; }
.bb-form textarea { min-height: 150px; resize: vertical; }
.bb-site .bb-form .btn { justify-self: start; background: var(--bb-ink); color: #fff; border: 1px solid var(--bb-ink); border-radius: 0; padding: 14px 24px; font-size: 14px; cursor: pointer; }
.bb-site .bb-form .btn:hover { background: transparent; color: var(--bb-ink); }
.bb-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.bb-form .form-output { grid-column: 1 / -1; padding: 15px 18px; background: #e6ede7; margin: 0; max-width: none; border-left: 3px solid #4f7a5a; }
.bb-form .form-output.is-error { background: #f3e4dc; border-left-color: var(--bb-accent); }

/* ==========================================================================
   Blog & posts (Astra templates)
   ========================================================================== */
.bb-site.blog .site-content > .ast-container,
.bb-site.archive .site-content > .ast-container,
.bb-site.single-post .site-content > .ast-container { padding-top: 60px; padding-bottom: 60px; }
.bb-site.single-post .entry-title { font-size: clamp(40px, 4vw, 64px); line-height: 1.06; letter-spacing: -1.4px; }
.bb-site.single-post .entry-content { font-size: 17px; }
.bb-site.single-post .entry-content li::marker { color: var(--bb-accent); }
.bb-site.blog .ast-article-post .ast-article-inner, .bb-site.archive .ast-article-post .ast-article-inner { background: transparent; box-shadow: none; border-radius: 0; border-top: 1px solid var(--bb-line); padding-left: 0; padding-right: 0; }
.bb-site.blog .ast-article-post .post-content, .bb-site.archive .ast-article-post .post-content { padding-left: 0; padding-right: 0; }
.bb-site.blog .entry-title a, .bb-site.archive .entry-title a { color: var(--bb-ink); }
.bb-site.blog .ast-article-post .entry-title, .bb-site.archive .ast-article-post .entry-title { font-family: var(--bb-sans); font-weight: 500 !important; font-size: 21px; line-height: 1.3; letter-spacing: 0; }
.bb-site.blog .ast-article-post .cat-links a, .bb-site.archive .ast-article-post .cat-links a { text-transform: uppercase; letter-spacing: 2px; font-size: 11px; font-weight: 700; }

/* ==========================================================================
   Footer
   ========================================================================== */
.bb-footer { padding: 45px var(--bb-pad) 25px; background: var(--bb-deep); color: #d4dfe2; }
.bb-foot-top { display: flex; justify-content: space-between; gap: 40px; margin-bottom: 38px; }
.bb-footer .bb-wordmark, .bb-footer .bb-wordmark:hover { color: #d4dfe2; }
.bb-footer .bb-seal { border-color: var(--bb-gold); color: var(--bb-gold); }
.bb-footer-logo { display: inline-block; line-height: 0; }
.bb-footer-logo img { width: 260px; max-width: 100%; height: auto; }
.bb-site .site-logo-img img.custom-logo { max-height: none; }
.bb-foot-tagline { margin: 20px 0 0; color: #d4dfe2; }
.bb-footer-menu { display: flex; gap: 30px; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; font-size: 14px; }
.bb-footer-menu a { color: #d4dfe2; text-decoration: none; }
.bb-footer-menu a:hover { color: #fff; border-bottom: 1px solid var(--bb-gold); }
.bb-foot-note { font-size: 12px; border-top: 1px solid #435761; padding-top: 20px; margin: 0; color: #d4dfe2; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1000px) {
	.bb-site .bb-steps { grid-template-columns: 1fr 1fr; }
	.bb-site .bb-grid { gap: 20px; }
	.bb-site .bb-hero-photo { height: 480px; }
	.bb-site .main-header-menu > .menu-item > .menu-link { margin: 0 7px; font-size: 13px; }
}
@media (max-width: 760px) {
	:root { --bb-pad: 6%; }
	.bb-site .bb-hero, .bb-site .bb-section { padding-top: 48px; padding-bottom: 48px; }
	.bb-site .bb-page-hero { padding-top: 48px; padding-bottom: 40px; }
	.bb-site .bb-split, .bb-site .bb-feature, .bb-site .bb-body-grid, .bb-site .bb-grid { grid-template-columns: 1fr; }
	.bb-site .bb-split { gap: 32px; }
	.bb-site .bb-feature { gap: 35px; }
	.bb-site .bb-body-grid { gap: 45px; }
	.bb-site .bb-hero h1 { font-size: 52px; }
	.bb-site .bb-page-hero h1 { font-size: 44px; }
	.bb-site .bb-hero-photo { height: 360px; }
	.bb-site .bb-section-head { display: block; }
	.bb-site .bb-section-head > p, .bb-site .bb-section-head > .bb-link { margin-top: 22px; }
	.bb-site .bb-strip { flex-wrap: wrap; }
	.bb-site .bb-strip p { font-size: 11px; }
	.bb-site .bb-closing, .bb-foot-top { display: block; }
	.bb-site .bb-closing { padding-top: 48px; padding-bottom: 48px; }
	.bb-site .bb-closing .wp-block-buttons { margin-top: 25px; }
	.bb-footer-menu { margin-top: 25px; gap: 18px; }
	.bb-form { grid-template-columns: 1fr; }
	.bb-site .bb-photo-placeholder { min-height: 300px; }
	.bb-site .bb-narrow .wp-block-quote { font-size: 22px; }
}
