/*
Theme Name:   SBF Divi Child
Theme URI:    https://sambeagle.co.uk
Description:  Sam Beagle Fitness child theme for Divi. Ports the "SBF New Website" design system (Inter + Mada, black/white with Champagne Gold accent) onto Divi's header, footer, buttons, forms, blog and builder modules. Adds .sbf-* helper classes for use in the Divi Builder.
Author:       Sam Beagle Fitness
Template:     Divi
Version:      1.0.0
License:      GNU General Public License v2 or later
Text Domain:  sbf-divi-child
*/

/* ==========================================================================
   1. DESIGN TOKENS  (from tokens/colors.css, typography.css, spacing.css, effects.css)
   ========================================================================== */
:root {
  /* Base palette — SBF Website Brand Style Guide */
  --sbf-black: #000000;
  --sbf-white: #FFFFFF;
  --sbf-gold: #C9B280;        /* Champagne Gold — the single signature accent */
  --sbf-charcoal: #1A1A1A;    /* Matte Charcoal */
  --sbf-grey: #E6E6E6;        /* Warm Grey */
  --sbf-bronze: #9C8658;      /* Deep Bronze — hover / links on light */

  /* Derived neutrals */
  --sbf-off-white: #F7F6F4;   /* paper */
  --sbf-grey-mid: #B8B8B8;    /* muted on dark */
  --sbf-grey-line: #D6D4CF;   /* hairline borders */
  --sbf-gold-tint: #F1EBDD;   /* faint gold wash */
  --sbf-charcoal-2: #232323;  /* raised block on charcoal */
  --sbf-ink: #2A2A2A;         /* body text */
  --sbf-muted: #6B6B6B;
  --sbf-footer-text: #7C7C7C;

  /* Type */
  --sbf-font-display: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --sbf-font-body: 'Mada', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --sbf-fs-display: clamp(3rem, 6vw, 5rem);
  --sbf-fs-h1: clamp(2.5rem, 5vw, 3.375rem);   /* 54 on the apply hero */
  --sbf-fs-h2: clamp(1.9rem, 3.4vw, 2.5rem);
  --sbf-fs-h3: 1.5rem;
  --sbf-fs-h4: 1.25rem;
  --sbf-fs-lead: 1.25rem;
  --sbf-fs-body: 1.0625rem;  /* 17 */
  --sbf-fs-sm: 0.9375rem;
  --sbf-fs-xs: 0.8125rem;
  --sbf-fs-eyebrow: 0.75rem;

  --sbf-lh-tight: 1.04;
  --sbf-lh-heading: 1.1;
  --sbf-lh-body: 1.6;

  --sbf-ls-tight: -0.02em;
  --sbf-ls-heading: -0.01em;
  --sbf-ls-eyebrow: 0.22em;
  --sbf-ls-caps: 0.08em;

  /* Layout */
  --sbf-container: 1200px;
  --sbf-container-narrow: 760px;
  --sbf-gutter: 1.5rem;
  --sbf-section-y: clamp(4rem, 9vw, 8rem);

  /* Effects */
  --sbf-radius-sm: 4px;
  --sbf-radius-md: 6px;
  --sbf-radius-lg: 10px;
  --sbf-radius-pill: 999px;
  --sbf-shadow-sm: 0 1px 2px rgba(20,18,14,0.06);
  --sbf-shadow-md: 0 6px 20px rgba(20,18,14,0.08);
  --sbf-shadow-lg: 0 22px 60px rgba(20,18,14,0.14);
  --sbf-shadow-gold: 0 10px 30px rgba(201,178,128,0.35);
  --sbf-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --sbf-dur-fast: 120ms;
  --sbf-dur: 200ms;
}

/* ==========================================================================
   2. BASE TYPOGRAPHY
   Divi writes its Customizer font choices inline; these selectors are
   specific enough to win without touching the Customizer.
   ========================================================================== */
html { scroll-behavior: smooth; }
/* Anchor targets (#programme, #proof, #pricing, #apply) land below the fixed header */
.et_pb_section[id], [id].sbf-anchor { scroll-margin-top: 80px; }

body,
body.et_divi_theme,
#et-main-area,
.et_pb_text,
.et_pb_blurb_description,
.et_pb_toggle_content,
.et_pb_tab,
.entry-content,
.et_pb_module p,
.et_pb_module li {
  font-family: var(--sbf-font-body);
  color: var(--sbf-ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body,
.et_pb_text,
.entry-content {
  font-size: var(--sbf-fs-body);
  line-height: var(--sbf-lh-body);
  font-weight: 400;
}

h1, h2, h3, h4, h5, h6,
.et_pb_module h1, .et_pb_module h2, .et_pb_module h3, .et_pb_module h4, .et_pb_module h5, .et_pb_module h6,
.et_pb_blurb h4, .et_pb_blurb .et_pb_module_header,
.et_pb_post h2.entry-title,
.entry-title,
.et_pb_slide_title,
.et_pb_toggle_title,
.et_pb_tabs_controls a,
.et_pb_countdown_timer .section p.value,
.et_pb_number_counter .percent,
.et_pb_circle_counter .percent-value,
.et_pb_pricing_heading h2 {
  font-family: var(--sbf-font-display);
  font-weight: 800;
  letter-spacing: var(--sbf-ls-tight);
  line-height: var(--sbf-lh-heading);
  color: var(--sbf-black);
  padding-bottom: 0;
}

h1, .et_pb_module h1 { font-size: var(--sbf-fs-h1); }
h2, .et_pb_module h2 { font-size: var(--sbf-fs-h2); }
h3, .et_pb_module h3 { font-size: var(--sbf-fs-h3); letter-spacing: var(--sbf-ls-heading); }
h4, .et_pb_module h4 { font-size: var(--sbf-fs-h4); letter-spacing: var(--sbf-ls-heading); }
h5, .et_pb_module h5 { font-size: 1.0625rem; letter-spacing: var(--sbf-ls-heading); }
h6, .et_pb_module h6 { font-size: 0.9375rem; letter-spacing: var(--sbf-ls-caps); text-transform: uppercase; font-weight: 600; }

.et_pb_text h1, .et_pb_text h2, .et_pb_text h3, .et_pb_text h4 { margin: 0 0 0.6em; }
.et_pb_text p { padding-bottom: 1.1em; }
.et_pb_text p:last-child { padding-bottom: 0; }

strong, b { font-weight: 600; }

a,
.et_pb_text a,
.entry-content a {
  color: var(--sbf-bronze);
  text-decoration: none;
  transition: color var(--sbf-dur) var(--sbf-ease);
}
a:hover, .et_pb_text a:hover, .entry-content a:hover { color: var(--sbf-black); }

/* Accent italic — reserved for a quote or one key phrase */
em.sbf-accent, .sbf-accent {
  font-family: var(--sbf-font-display);
  font-weight: 600;
  font-style: italic;
}

blockquote,
.et_pb_text blockquote,
.entry-content blockquote {
  font-family: var(--sbf-font-display);
  font-weight: 600;
  font-style: italic;
  font-size: 1.25rem;
  line-height: 1.4;
  color: var(--sbf-black);
  border-left: 2px solid var(--sbf-gold);
  padding: 0.25rem 0 0.25rem 1.25rem;
  margin: 1.5rem 0;
}

/* ==========================================================================
   3. LAYOUT — containers & section rhythm
   ========================================================================== */
.et_pb_row,
.et_pb_section .et_pb_row,
.container {
  max-width: var(--sbf-container);
}
.et_pb_section { padding: var(--sbf-section-y) 0; }
.et_pb_section.sbf-section--flush { padding: 0; }
.et_pb_section.sbf-section--tight { padding: 2.25rem 0; }
.et_pb_row.sbf-row--narrow { max-width: var(--sbf-container-narrow); }

/* Section surfaces — add ONE of these classes to a Divi Section.
   Each paints its own background + sets text colours for everything inside. */
.sbf-section--white,   .et_pb_section.sbf-section--white   { background-color: var(--sbf-white); }
.sbf-section--paper,   .et_pb_section.sbf-section--paper   { background-color: var(--sbf-off-white); }
.sbf-section--grey,    .et_pb_section.sbf-section--grey    { background-color: var(--sbf-grey); }
.sbf-section--gold-tint, .et_pb_section.sbf-section--gold-tint { background-color: var(--sbf-gold-tint); }
.sbf-section--charcoal, .et_pb_section.sbf-section--charcoal { background-color: var(--sbf-charcoal); }
.sbf-section--black,   .et_pb_section.sbf-section--black   { background-color: var(--sbf-black); }

.sbf-section--charcoal, .sbf-section--black,
.sbf-section--charcoal .et_pb_text, .sbf-section--black .et_pb_text,
.sbf-section--charcoal .et_pb_module p, .sbf-section--black .et_pb_module p,
.sbf-section--charcoal .et_pb_module li, .sbf-section--black .et_pb_module li {
  color: var(--sbf-grey-mid);
}
.sbf-section--charcoal h1, .sbf-section--charcoal h2, .sbf-section--charcoal h3, .sbf-section--charcoal h4,
.sbf-section--black h1, .sbf-section--black h2, .sbf-section--black h3, .sbf-section--black h4,
.sbf-section--charcoal .et_pb_module h1, .sbf-section--charcoal .et_pb_module h2, .sbf-section--charcoal .et_pb_module h3, .sbf-section--charcoal .et_pb_module h4,
.sbf-section--black .et_pb_module h1, .sbf-section--black .et_pb_module h2, .sbf-section--black .et_pb_module h3, .sbf-section--black .et_pb_module h4,
.sbf-section--charcoal blockquote, .sbf-section--black blockquote,
.sbf-section--charcoal strong, .sbf-section--black strong {
  color: var(--sbf-white);
}
.sbf-section--charcoal a, .sbf-section--black a,
.sbf-section--charcoal .et_pb_text a, .sbf-section--black .et_pb_text a { color: var(--sbf-gold); }
.sbf-section--charcoal a:hover, .sbf-section--black a:hover,
.sbf-section--charcoal .et_pb_text a:hover, .sbf-section--black .et_pb_text a:hover { color: #E3D3AC; }

/* Divi's row divider / section separators are off-brand */
.et_pb_section .et_pb_bottom_inside_divider,
.et_pb_section .et_pb_top_inside_divider { display: none; }

/* ==========================================================================
   4. BUTTONS
   The brand CTA: Champagne Gold, black text, Inter 600, tracked uppercase,
   4px radius. Hover darkens to Deep Bronze with white text. No Divi arrow.
   ========================================================================== */
.et_pb_button,
body .et_pb_button,
.et_pb_module .et_pb_button,
.et_pb_contact_submit,
.et_pb_newsletter_button,
.et_pb_promo_button,
.et_pb_pricing_table_button,
.sbf-btn,
.entry-content .sbf-btn,
input[type="submit"],
button[type="submit"],
.wp-block-button__link,
.formkit-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--sbf-font-display);
  font-weight: 600;
  font-size: var(--sbf-fs-sm);
  letter-spacing: var(--sbf-ls-caps);
  text-transform: uppercase;
  line-height: 1;
  color: var(--sbf-black);
  background: var(--sbf-gold);
  padding: 1rem 2rem;
  border: 1px solid var(--sbf-gold);
  border-radius: var(--sbf-radius-sm);
  text-decoration: none;
  cursor: pointer;
  box-shadow: none;
  transition: background var(--sbf-dur) var(--sbf-ease),
              color var(--sbf-dur) var(--sbf-ease),
              border-color var(--sbf-dur) var(--sbf-ease),
              transform var(--sbf-dur-fast) var(--sbf-ease);
}
.et_pb_button:hover,
body .et_pb_button:hover,
.et_pb_module .et_pb_button:hover,
.et_pb_contact_submit:hover,
.et_pb_newsletter_button:hover,
.et_pb_promo_button:hover,
.et_pb_pricing_table_button:hover,
.sbf-btn:hover,
.entry-content .sbf-btn:hover,
input[type="submit"]:hover,
button[type="submit"]:hover,
.wp-block-button__link:hover,
.formkit-submit:hover {
  color: var(--sbf-white);
  background: var(--sbf-bronze);
  border-color: var(--sbf-bronze);
  padding: 1rem 2rem;         /* Divi shifts padding on hover to make room for its icon — pin it */
}

/* Kill Divi's built-in button icon */
.et_pb_button:after,
body .et_pb_button:after,
.et_pb_module .et_pb_button:after,
.et_pb_button:hover:after,
.et_pb_contact_submit:after,
.et_pb_newsletter_button:after {
  display: none !important;
  content: none !important;
}

/* Variants — add as an extra CSS class on the Divi Button module */
.sbf-btn--dark, .et_pb_button.sbf-btn--dark {
  background: var(--sbf-black); border-color: var(--sbf-black); color: var(--sbf-white);
}
.sbf-btn--dark:hover, .et_pb_button.sbf-btn--dark:hover {
  background: var(--sbf-charcoal-2); border-color: var(--sbf-charcoal-2); color: var(--sbf-gold);
}
.sbf-btn--outline, .et_pb_button.sbf-btn--outline {
  background: transparent; border-color: var(--sbf-black); color: var(--sbf-black);
}
.sbf-btn--outline:hover, .et_pb_button.sbf-btn--outline:hover {
  background: var(--sbf-black); border-color: var(--sbf-black); color: var(--sbf-white);
}
.sbf-btn--outline-gold, .et_pb_button.sbf-btn--outline-gold {
  background: transparent; border-color: var(--sbf-gold); color: var(--sbf-bronze);
}
.sbf-btn--outline-gold:hover, .et_pb_button.sbf-btn--outline-gold:hover {
  background: var(--sbf-gold); border-color: var(--sbf-gold); color: var(--sbf-black);
}
.sbf-btn--on-dark, .et_pb_button.sbf-btn--on-dark {
  background: var(--sbf-white); border-color: var(--sbf-white); color: var(--sbf-black);
}
.sbf-btn--on-dark:hover, .et_pb_button.sbf-btn--on-dark:hover {
  background: var(--sbf-gold); border-color: var(--sbf-gold); color: var(--sbf-black);
}
.sbf-btn--ghost-light, .et_pb_button.sbf-btn--ghost-light {
  background: transparent; border-color: rgba(255,255,255,0.28); color: var(--sbf-white);
}
.sbf-btn--ghost-light:hover, .et_pb_button.sbf-btn--ghost-light:hover {
  background: transparent; border-color: var(--sbf-gold); color: var(--sbf-gold);
}
.sbf-btn--sm, .et_pb_button.sbf-btn--sm { padding: 0.7rem 1.25rem; font-size: var(--sbf-fs-xs); }
.sbf-btn--sm:hover, .et_pb_button.sbf-btn--sm:hover { padding: 0.7rem 1.25rem; }
.sbf-btn--lg, .et_pb_button.sbf-btn--lg { padding: 1.2rem 2.25rem; font-size: 1rem; }
.sbf-btn--lg:hover, .et_pb_button.sbf-btn--lg:hover { padding: 1.2rem 2.25rem; }
.sbf-btn--block, .et_pb_button.sbf-btn--block { width: 100%; }
.sbf-btn--lift, .et_pb_button.sbf-btn--lift { box-shadow: var(--sbf-shadow-gold); }

/* ==========================================================================
   5. HEADER  (Divi default header + Theme Builder header modules)
   Black bar, white shield mark + tracked wordmark, uppercase Inter links,
   gold on hover, last menu item styled as the gold CTA.
   ========================================================================== */
#main-header,
#main-header.et-fixed-header,
.et_header_style_left #main-header,
.et_header_style_centered #main-header,
.sbf-header {
  background: var(--sbf-black) !important;
  box-shadow: none;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
#top-header { display: none; }

#logo, #main-header #logo, .et_header_style_left #logo {
  max-height: 38px;
  width: auto;
}
#main-header .logo_container { height: 100%; }
.et_header_style_left #et-top-navigation { padding-top: 24px !important; }

#top-menu li a,
#et-top-navigation #top-menu li a,
.et_header_style_left #top-menu li a,
.et-menu li a {
  font-family: var(--sbf-font-display);
  font-weight: 600;
  font-size: var(--sbf-fs-xs) !important;
  letter-spacing: var(--sbf-ls-caps);
  text-transform: uppercase;
  color: var(--sbf-white) !important;
  opacity: 0.85;
  transition: color var(--sbf-dur) var(--sbf-ease), opacity var(--sbf-dur) var(--sbf-ease);
}
#top-menu li a:hover,
#et-top-navigation #top-menu li a:hover,
#top-menu li.current-menu-item > a,
#top-menu li.current_page_item > a {
  color: var(--sbf-gold) !important;
  opacity: 1;
}
#top-menu li { padding-right: 34px; }

/* Add the CSS class "sbf-cta" to the last menu item (Appearance → Menus → Screen Options → CSS Classes) */
#top-menu li.sbf-cta { padding-right: 0; }
#top-menu li.sbf-cta a,
.et-menu li.sbf-cta a {
  background: var(--sbf-gold);
  color: var(--sbf-black) !important;
  opacity: 1;
  padding: 11px 20px !important;
  border-radius: var(--sbf-radius-sm);
  transition: background var(--sbf-dur) var(--sbf-ease), color var(--sbf-dur) var(--sbf-ease);
}
#top-menu li.sbf-cta a:hover,
.et-menu li.sbf-cta a:hover {
  background: var(--sbf-bronze);
  color: var(--sbf-white) !important;
}
.et_header_style_left #top-menu li.sbf-cta { margin-left: 8px; }

/* Dropdowns */
#top-menu li ul.sub-menu, #et-top-navigation ul.sub-menu {
  background: var(--sbf-charcoal);
  border: 1px solid rgba(255,255,255,0.08);
  border-top: 2px solid var(--sbf-gold);
  padding: 12px 0;
}
#top-menu li li a { font-size: var(--sbf-fs-xs) !important; padding: 10px 22px; width: 200px; opacity: 0.8; }
#top-menu li li a:hover { background: transparent; opacity: 1; }

/* Mobile menu */
#et_mobile_nav_menu .mobile_nav .select_page,
.mobile_menu_bar:before { color: var(--sbf-white); }
.mobile_menu_bar:hover:before { color: var(--sbf-gold); }
.et_mobile_menu {
  background: var(--sbf-black);
  border-top: 2px solid var(--sbf-gold);
}
.et_mobile_menu li a {
  font-family: var(--sbf-font-display);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: var(--sbf-ls-heading);
  text-transform: none;
  color: var(--sbf-white) !important;
  padding: 16px 5%;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.et_mobile_menu li a:hover { color: var(--sbf-gold) !important; background: rgba(255,255,255,0.04); }
.et_mobile_menu li.sbf-cta a { background: transparent; color: var(--sbf-gold) !important; }

/* Search icon / cart in header, if enabled */
#et_top_search .et_search_icon:before { color: var(--sbf-white); }

/* ==========================================================================
   6. FOOTER
   ========================================================================== */
#main-footer,
#main-footer .footer-widget,
#footer-bottom {
  background: var(--sbf-black);
  color: var(--sbf-footer-text);
}
#footer-widgets { padding-top: var(--sbf-section-y); }
#main-footer .footer-widget h4.title,
#main-footer .footer-widget .title {
  font-family: var(--sbf-font-display);
  font-weight: 600;
  font-size: var(--sbf-fs-eyebrow);
  letter-spacing: var(--sbf-ls-eyebrow);
  text-transform: uppercase;
  color: var(--sbf-gold);
  margin-bottom: 1.25rem;
}
#main-footer .footer-widget,
#main-footer .footer-widget p,
#main-footer .footer-widget li {
  font-family: var(--sbf-font-body);
  font-size: 0.9375rem;
  color: var(--sbf-footer-text);
}
#main-footer .footer-widget li:before { display: none; }
#main-footer .footer-widget li { padding-left: 0; margin-bottom: 0.5rem; }
#main-footer .footer-widget a,
#footer-info a,
#footer-bottom a { color: var(--sbf-grey-mid); }
#main-footer .footer-widget a:hover,
#footer-info a:hover,
#footer-bottom a:hover { color: var(--sbf-gold); }

#footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 1.75rem 0;
}
#footer-info {
  font-family: var(--sbf-font-body);
  font-size: 0.875rem;
  color: var(--sbf-footer-text);
  text-align: center;
  float: none;
}
#et-footer-nav { background: var(--sbf-charcoal); }
.bottom-nav li a { font-family: var(--sbf-font-display); font-size: var(--sbf-fs-xs); letter-spacing: var(--sbf-ls-caps); text-transform: uppercase; color: var(--sbf-grey-mid); }
.bottom-nav li a:hover { color: var(--sbf-gold); }

#footer-bottom .et-social-icons a { color: var(--sbf-grey-mid); }
#footer-bottom .et-social-icons a:hover { color: var(--sbf-gold); }

/* ==========================================================================
   7. BUILDER HELPER CLASSES  — the SBF component set, as CSS classes you can
   put on Divi modules (Advanced → CSS ID & Classes → CSS Class).
   ========================================================================== */

/* Eyebrow — the gold tracked label that opens a section.
   Use on a Text module containing a single short line. */
.sbf-eyebrow,
.et_pb_text.sbf-eyebrow,
.et_pb_text.sbf-eyebrow p,
.entry-content .sbf-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--sbf-font-display);
  font-weight: 600;
  font-size: var(--sbf-fs-eyebrow);
  letter-spacing: var(--sbf-ls-eyebrow);
  text-transform: uppercase;
  color: var(--sbf-bronze);
  line-height: 1.2;
  padding-bottom: 0;
}
.sbf-eyebrow::before,
.et_pb_text.sbf-eyebrow p::before,
.entry-content .sbf-eyebrow::before {
  content: "";
  width: 34px;
  height: 2px;
  background: var(--sbf-gold);
  flex: 0 0 auto;
}
.et_pb_text.sbf-eyebrow { display: block; margin-bottom: 1rem; }
.et_pb_text.sbf-eyebrow::before { display: none; }
.sbf-section--charcoal .sbf-eyebrow, .sbf-section--black .sbf-eyebrow,
.sbf-section--charcoal .et_pb_text.sbf-eyebrow p, .sbf-section--black .et_pb_text.sbf-eyebrow p,
.sbf-eyebrow--light, .et_pb_text.sbf-eyebrow--light p { color: var(--sbf-gold); }

/* Lede / intro paragraph */
.sbf-lede, .et_pb_text.sbf-lede, .et_pb_text.sbf-lede p {
  font-family: var(--sbf-font-body);
  font-weight: 300;
  font-size: var(--sbf-fs-lead);
  line-height: 1.55;
  color: var(--sbf-muted);
  max-width: 34em;
}
.sbf-section--charcoal .sbf-lede, .sbf-section--black .sbf-lede,
.sbf-section--charcoal .et_pb_text.sbf-lede p, .sbf-section--black .et_pb_text.sbf-lede p { color: var(--sbf-grey-mid); }

/* Hero — put on the Section. Black background, big Inter headline,
   Inter SemiBold sub-line, Mada Light paragraph, gold word via <span class="g">. */
.sbf-hero, .et_pb_section.sbf-hero {
  background-color: var(--sbf-black);
  padding: clamp(4rem, 8vw, 5.5rem) 0 clamp(4.5rem, 9vw, 6rem);
  color: var(--sbf-grey-mid);
}
.sbf-hero h1, .sbf-hero .et_pb_module h1 {
  font-size: var(--sbf-fs-h1);
  color: var(--sbf-white);
  margin: 1.25rem 0 0;
}
.sbf-hero--display h1, .sbf-hero--display .et_pb_module h1 { font-size: var(--sbf-fs-display); line-height: var(--sbf-lh-tight); }
.sbf-hero h1 .g, .sbf-hero .g, .sbf-gold-text { color: var(--sbf-gold); }
.sbf-hero .sbf-sub, .sbf-hero .et_pb_text.sbf-sub p {
  font-family: var(--sbf-font-display);
  font-weight: 600;
  font-size: 1.3125rem;
  line-height: 1.4;
  color: var(--sbf-white);
  margin-top: 1.375rem;
}
.sbf-hero p, .sbf-hero .et_pb_text p {
  font-weight: 300;
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--sbf-grey-mid);
  max-width: 520px;
}
.sbf-hero .et_pb_button_module_wrapper { margin-top: 1.5rem; }
.sbf-reassure, .et_pb_text.sbf-reassure p { font-size: 0.875rem; color: var(--sbf-grey-mid); margin-top: 0.875rem; }

/* Media block — rounded 10px with the deep soft shadow used on hero shots */
.sbf-shot, .et_pb_image.sbf-shot .et_pb_image_wrap, .et_pb_image.sbf-shot img {
  border-radius: var(--sbf-radius-lg);
  overflow: hidden;
}
.et_pb_image.sbf-shot .et_pb_image_wrap { box-shadow: 0 22px 60px rgba(0,0,0,0.55); display: block; }
.sbf-section--white .et_pb_image.sbf-shot .et_pb_image_wrap,
.sbf-section--paper .et_pb_image.sbf-shot .et_pb_image_wrap { box-shadow: var(--sbf-shadow-lg); }

/* Proof strip — charcoal band of oversized numbers.
   Section class: sbf-strip. Each stat is a Text module:  <p class="v">24<span>hr</span></p><p class="l">Reply time</p> */
.sbf-strip, .et_pb_section.sbf-strip { background-color: var(--sbf-charcoal); padding: 2.125rem 0; color: var(--sbf-white); }
.sbf-strip .et_pb_row { display: flex; flex-wrap: wrap; gap: 2.75rem; justify-content: center; text-align: center; }
.sbf-strip .et_pb_column { width: auto !important; margin: 0 !important; }
.sbf-stat .v, .sbf-strip .v, .et_pb_text.sbf-stat p.v, .sbf-strip .et_pb_text p.v {
  font-family: var(--sbf-font-display);
  font-weight: 800;
  font-size: 2.375rem;
  letter-spacing: var(--sbf-ls-tight);
  line-height: 1;
  color: var(--sbf-white);
  padding-bottom: 0;
}
.sbf-stat .v span, .sbf-strip .v span { color: var(--sbf-gold); }
.sbf-stat .l, .sbf-strip .l, .et_pb_text.sbf-stat p.l, .sbf-strip .et_pb_text p.l {
  font-family: var(--sbf-font-display);
  font-weight: 600;
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sbf-grey-mid);
  margin-top: 6px;
  padding-bottom: 0;
}
/* Stat on a light section */
.sbf-section--white .sbf-stat .v, .sbf-section--paper .sbf-stat .v, .sbf-section--grey .sbf-stat .v,
.sbf-section--white .et_pb_text.sbf-stat p.v, .sbf-section--paper .et_pb_text.sbf-stat p.v { color: var(--sbf-black); }
.sbf-section--white .sbf-stat .l, .sbf-section--paper .sbf-stat .l,
.sbf-section--white .et_pb_text.sbf-stat p.l, .sbf-section--paper .et_pb_text.sbf-stat p.l { color: var(--sbf-muted); }

/* Card — white surface, hairline border, 6px radius, subtle shadow. Put on a Blurb, Text or Column. */
.sbf-card, .et_pb_module.sbf-card, .et_pb_column.sbf-card {
  background: var(--sbf-white);
  border: 1px solid var(--sbf-grey-line);
  border-radius: var(--sbf-radius-md);
  box-shadow: var(--sbf-shadow-sm);
  padding: 1.75rem;
  transition: transform var(--sbf-dur) var(--sbf-ease), box-shadow var(--sbf-dur) var(--sbf-ease);
}
.sbf-card--lift:hover { transform: translateY(-4px); box-shadow: var(--sbf-shadow-md); }
.sbf-card--dark, .et_pb_module.sbf-card--dark, .et_pb_column.sbf-card--dark {
  background: var(--sbf-charcoal-2);
  border-color: rgba(255,255,255,0.08);
  color: var(--sbf-grey-mid);
}
.sbf-card--dark h3, .sbf-card--dark h4, .sbf-card--dark .et_pb_module_header, .sbf-card--dark strong { color: var(--sbf-white); }
.sbf-card--gold, .et_pb_module.sbf-card--gold, .et_pb_column.sbf-card--gold {
  background: var(--sbf-gold-tint);
  border-color: var(--sbf-gold);
}
.sbf-card--featured, .et_pb_module.sbf-card--featured { border: 2px solid var(--sbf-gold); box-shadow: var(--sbf-shadow-gold); }

/* Testimonial — Inter SemiBold Italic quote with a gold mark. Put on a Text module. */
.sbf-testimonial, .et_pb_text.sbf-testimonial {
  position: relative;
  padding: 2rem 1.75rem 1.75rem 2.75rem;
  background: var(--sbf-grey);
  border-radius: var(--sbf-radius-md);
}
.sbf-testimonial::before, .et_pb_text.sbf-testimonial::before {
  content: "\201C";
  position: absolute;
  left: 1.1rem; top: 0.9rem;
  font-family: var(--sbf-font-display);
  font-weight: 800;
  font-size: 3rem;
  line-height: 1;
  color: var(--sbf-gold);
}
.sbf-testimonial p, .et_pb_text.sbf-testimonial p {
  font-family: var(--sbf-font-display);
  font-weight: 600;
  font-style: italic;
  font-size: 1.125rem;
  line-height: 1.45;
  color: var(--sbf-black);
}
.sbf-testimonial .name, .et_pb_text.sbf-testimonial p.name,
.sbf-tmeta, .et_pb_text.sbf-testimonial p.tmeta {
  font-family: var(--sbf-font-display);
  font-style: normal;
  font-weight: 600;
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sbf-muted);
  margin-top: 0.75rem;
  padding-bottom: 0;
}
.sbf-section--charcoal .sbf-testimonial, .sbf-section--black .sbf-testimonial { background: var(--sbf-charcoal-2); }
.sbf-section--charcoal .sbf-testimonial p, .sbf-section--black .sbf-testimonial p { color: var(--sbf-white); }
.sbf-section--charcoal .sbf-testimonial .name, .sbf-section--black .sbf-testimonial .name { color: var(--sbf-grey-mid); }

/* Divi Testimonial module — same treatment */
.et_pb_testimonial {
  background: var(--sbf-grey);
  border-radius: var(--sbf-radius-md);
  padding: 2rem 1.75rem 1.75rem 2.75rem;
}
.et_pb_testimonial::before { color: var(--sbf-gold); background: transparent; }
.et_pb_testimonial_description_inner { font-family: var(--sbf-font-display); font-weight: 600; font-style: italic; font-size: 1.125rem; line-height: 1.45; color: var(--sbf-black); }
.et_pb_testimonial_author { font-family: var(--sbf-font-display); font-weight: 600; font-size: 0.6875rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sbf-muted); margin-top: 0.75rem; }
.et_pb_testimonial_meta { font-family: var(--sbf-font-body); font-size: 0.8125rem; color: var(--sbf-muted); }

/* Badge / tag — small uppercase pill */
.sbf-badge, .sbf-tag {
  display: inline-block;
  font-family: var(--sbf-font-display);
  font-weight: 600;
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sbf-bronze);
  background: var(--sbf-gold-tint);
  border: 1px solid var(--sbf-gold);
  border-radius: var(--sbf-radius-pill);
  padding: 5px 11px;
  line-height: 1.2;
}
.sbf-badge--dark { color: var(--sbf-gold); background: transparent; border-color: rgba(201,178,128,0.5); }
.sbf-badge--ghost { color: var(--sbf-white); background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.25); }

/* Tick list — gold ticks. Put on a Text module containing a <ul>. */
.sbf-ticks ul, .et_pb_text.sbf-ticks ul { list-style: none; padding-left: 0; margin: 0; }
.sbf-ticks li, .et_pb_text.sbf-ticks li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.6rem;
  line-height: 1.5;
}
.sbf-ticks li::before, .et_pb_text.sbf-ticks li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.45em;
  width: 14px; height: 8px;
  border-left: 2px solid var(--sbf-gold);
  border-bottom: 2px solid var(--sbf-gold);
  transform: rotate(-45deg);
}
.sbf-crosses li::before, .et_pb_text.sbf-crosses li::before {
  border: 0;
  width: 12px; height: 12px; top: 0.4em;
  background:
    linear-gradient(45deg, transparent 45%, var(--sbf-grey-mid) 45%, var(--sbf-grey-mid) 55%, transparent 55%),
    linear-gradient(-45deg, transparent 45%, var(--sbf-grey-mid) 45%, var(--sbf-grey-mid) 55%, transparent 55%);
  transform: none;
}

/* Numbered steps — for genuinely sequential content only */
.sbf-step .num, .et_pb_text.sbf-step p.num {
  font-family: var(--sbf-font-display);
  font-weight: 800;
  font-size: 2.25rem;
  letter-spacing: var(--sbf-ls-tight);
  color: var(--sbf-gold);
  line-height: 1;
  padding-bottom: 0.5rem;
}

/* Gold rule / divider */
.sbf-rule, .et_pb_divider.sbf-rule:before { border-top: 2px solid var(--sbf-gold) !important; width: 34px; }
.et_pb_divider:before { border-color: var(--sbf-grey-line); }

/* Blurb (icon + heading + text) */
.et_pb_blurb .et-pb-icon { color: var(--sbf-gold); font-size: 32px; }
.et_pb_blurb .et_pb_module_header { font-size: var(--sbf-fs-h4); margin-bottom: 0.5rem; }
.et_pb_blurb_content { max-width: 100%; }

/* Toggle / accordion */
.et_pb_toggle {
  background: var(--sbf-white);
  border: 1px solid var(--sbf-grey-line);
  border-radius: var(--sbf-radius-md);
}
.et_pb_toggle.et_pb_toggle_open { border-color: var(--sbf-gold); }
.et_pb_toggle_title { font-size: var(--sbf-fs-h4) !important; }
.et_pb_toggle_title:before { color: var(--sbf-gold); }

/* Tabs */
.et_pb_tabs { border: 0; }
.et_pb_tabs_controls { background: transparent; border-bottom: 1px solid var(--sbf-grey-line); }
.et_pb_tabs_controls li { border: 0; background: transparent; }
.et_pb_tabs_controls a { font-size: var(--sbf-fs-xs) !important; font-weight: 600 !important; letter-spacing: var(--sbf-ls-caps); text-transform: uppercase; color: var(--sbf-muted) !important; }
.et_pb_tabs_controls li.et_pb_tab_active { border-bottom: 2px solid var(--sbf-gold); background: transparent; }
.et_pb_tabs_controls li.et_pb_tab_active a { color: var(--sbf-black) !important; }

/* Pricing tables */
.et_pb_pricing_table { background: var(--sbf-white); border: 1px solid var(--sbf-grey-line); border-radius: var(--sbf-radius-md); }
.et_pb_pricing_table.et_pb_featured_table { border: 2px solid var(--sbf-gold); background: var(--sbf-gold-tint); box-shadow: var(--sbf-shadow-gold); }
.et_pb_pricing_heading { background: var(--sbf-black); border-radius: var(--sbf-radius-md) var(--sbf-radius-md) 0 0; }
.et_pb_pricing_heading h2 { color: var(--sbf-white); font-size: var(--sbf-fs-h4); }
.et_pb_pricing_heading .et_pb_best_value { font-family: var(--sbf-font-display); font-size: var(--sbf-fs-eyebrow); letter-spacing: var(--sbf-ls-eyebrow); text-transform: uppercase; color: var(--sbf-gold); }
.et_pb_sum { font-family: var(--sbf-font-display); font-weight: 800; letter-spacing: var(--sbf-ls-tight); color: var(--sbf-black); }
.et_pb_pricing li:before { border-color: var(--sbf-gold); }

/* Number counters */
.et_pb_number_counter .percent p, .et_pb_circle_counter .percent-value { color: var(--sbf-black); }
.et_pb_number_counter .title, .et_pb_circle_counter .et_pb_module_header { font-family: var(--sbf-font-display); font-weight: 600; font-size: 0.6875rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--sbf-muted); }

/* ==========================================================================
   8. FORMS  (Divi Contact / Email Optin, Kit embeds, WP core forms)
   ========================================================================== */
.et_pb_contact_form_container .et_pb_contact_field label,
.et_pb_newsletter label,
.sbf-form label,
.formkit-field label,
label {
  font-family: var(--sbf-font-display);
  font-weight: 600;
  font-size: var(--sbf-fs-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sbf-black);
}
.et_pb_contact_form input[type="text"],
.et_pb_contact_form input[type="email"],
.et_pb_contact_form input[type="tel"],
.et_pb_contact_form textarea,
.et_pb_contact_form select,
.et_pb_newsletter_form input,
.et_pb_contact_form .et_pb_contact_field_options_wrapper,
.sbf-form input, .sbf-form textarea, .sbf-form select,
.formkit-input,
.entry-content input[type="text"],
.entry-content input[type="email"],
.entry-content input[type="tel"],
.entry-content textarea,
.wpcf7 input[type="text"], .wpcf7 input[type="email"], .wpcf7 input[type="tel"], .wpcf7 textarea,
.gform_wrapper input[type="text"], .gform_wrapper input[type="email"], .gform_wrapper textarea {
  width: 100%;
  font-family: var(--sbf-font-body);
  font-size: 1rem;
  color: var(--sbf-ink);
  background: var(--sbf-white);
  border: 1px solid var(--sbf-grey-line);
  border-radius: var(--sbf-radius-sm);
  padding: 0.9rem 1rem;
  box-shadow: none;
  transition: border-color var(--sbf-dur) var(--sbf-ease), box-shadow var(--sbf-dur) var(--sbf-ease);
}
.et_pb_contact_form input:focus,
.et_pb_contact_form textarea:focus,
.et_pb_newsletter_form input:focus,
.sbf-form input:focus, .sbf-form textarea:focus, .sbf-form select:focus,
.formkit-input:focus,
.entry-content input:focus, .entry-content textarea:focus,
.wpcf7 input:focus, .wpcf7 textarea:focus {
  outline: none;
  border-color: var(--sbf-gold);
  box-shadow: 0 0 0 3px rgba(201,178,128,0.35);
}
.et_pb_contact_form input::placeholder, .et_pb_contact_form textarea::placeholder, .formkit-input::placeholder { color: var(--sbf-muted); }
.et_pb_contact_form .et_pb_contact_field { margin-bottom: 1rem; }
.et_pb_contact_form .et_contact_error input, .et_pb_contact_form .et_contact_error textarea { border-color: #B24A3B; }
.et_pb_contact_form .et-pb-contact-message { font-family: var(--sbf-font-body); }
.et_pb_contact_submit { margin-top: 0.5rem; }

/* Checkbox / radio */
.et_pb_contact_field_options_list .et_pb_contact_field_checkbox input + label:before,
.et_pb_contact_field_options_list .et_pb_contact_field_radio input + label:before {
  border: 1px solid var(--sbf-grey-line);
  border-radius: 3px;
}
.et_pb_contact_field_checkbox input:checked + label:before { background: var(--sbf-gold); border-color: var(--sbf-gold); }
.et_pb_contact_field_options_list label { font-family: var(--sbf-font-body); text-transform: none; letter-spacing: 0; font-weight: 400; font-size: var(--sbf-fs-sm); }

/* Form panel — put on the Contact Form / Optin module or its Column */
.sbf-panel, .et_pb_module.sbf-panel, .et_pb_column.sbf-panel {
  background: var(--sbf-white);
  border: 1px solid var(--sbf-grey-line);
  border-radius: var(--sbf-radius-md);
  box-shadow: var(--sbf-shadow-md);
  padding: 2rem;
}
.sbf-privacy, .et_pb_text.sbf-privacy p { font-size: 0.8125rem; color: var(--sbf-muted); }

/* Email optin module */
.et_pb_newsletter { background: transparent; }
.et_pb_newsletter_description h2 { font-size: var(--sbf-fs-h2); }
.et_pb_newsletter_description p { font-family: var(--sbf-font-body); }
.et_pb_newsletter_form .et_pb_newsletter_field { margin-bottom: 0.75rem; }

/* ==========================================================================
   9. BLOG — index cards + single article (matches blog/ pages in the design)
   ========================================================================== */
/* Blog module cards */
.et_pb_blog_grid .et_pb_post,
.et_pb_post {
  background: var(--sbf-white);
  border: 1px solid var(--sbf-grey-line);
  border-radius: var(--sbf-radius-md);
  overflow: hidden;
  padding: 0;
  box-shadow: var(--sbf-shadow-sm);
  transition: transform var(--sbf-dur) var(--sbf-ease), box-shadow var(--sbf-dur) var(--sbf-ease);
}
.et_pb_blog_grid .et_pb_post:hover { transform: translateY(-4px); box-shadow: var(--sbf-shadow-md); }
.et_pb_blog_grid .et_pb_post .entry-featured-image-url { margin: 0; }
.et_pb_blog_grid .et_pb_post .entry-featured-image-url img,
.et_pb_post .entry-featured-image-url img { border-radius: 0; width: 100%; display: block; }
.et_pb_blog_grid .et_pb_post .entry-title,
.et_pb_blog_grid .et_pb_post .post-content,
.et_pb_blog_grid .et_pb_post .post-meta { padding: 0 1.5rem; }
.et_pb_blog_grid .et_pb_post .entry-title { margin-top: 1.25rem; }
.et_pb_blog_grid .et_pb_post .post-content { padding-bottom: 1.5rem; }
.et_pb_post .entry-title, .et_pb_post h2.entry-title { font-size: 1.375rem; line-height: 1.2; }
.et_pb_post .entry-title a { color: var(--sbf-black); }
.et_pb_post .entry-title a:hover { color: var(--sbf-bronze); }
.et_pb_post .post-meta,
.et_pb_post .post-meta a,
.single .et_post_meta_wrapper .post-meta,
.sbf-meta {
  font-family: var(--sbf-font-display);
  font-weight: 600;
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sbf-muted);
}
.et_pb_post .post-meta a:hover { color: var(--sbf-bronze); }
.et_pb_post .post-content p { font-size: var(--sbf-fs-sm); color: var(--sbf-ink); }
.et_pb_post .more-link,
.et_pb_blog_grid .et_pb_post .more-link {
  font-family: var(--sbf-font-display);
  font-weight: 600;
  font-size: var(--sbf-fs-xs);
  letter-spacing: var(--sbf-ls-caps);
  text-transform: uppercase;
  color: var(--sbf-bronze);
  display: inline-block;
  margin-top: 0.5rem;
  border-bottom: 2px solid var(--sbf-gold);
  padding-bottom: 2px;
}
.et_pb_post .more-link:hover { color: var(--sbf-black); }

/* Category filter / pagination */
.et_pb_blog_grid .et_pb_post .post-meta a[rel="category tag"],
.sbf-cat { color: var(--sbf-bronze); }
.pagination a, .wp-pagenavi a, .wp-pagenavi span {
  font-family: var(--sbf-font-display);
  font-weight: 600;
  font-size: var(--sbf-fs-xs);
  letter-spacing: var(--sbf-ls-caps);
  text-transform: uppercase;
  color: var(--sbf-bronze);
  border: 1px solid var(--sbf-grey-line);
  border-radius: var(--sbf-radius-sm);
  padding: 0.5rem 0.9rem;
}
.wp-pagenavi span.current { background: var(--sbf-black); color: var(--sbf-white); border-color: var(--sbf-black); }

/* Single post — narrow reading column, generous rhythm */
.single-post #main-content .container { max-width: var(--sbf-container-narrow); }
.single-post #main-content .container:before { display: none; }   /* no sidebar rule */
.single-post #left-area { width: 100%; padding: 0; }
.single-post #sidebar { display: none; }
.single-post .et_post_meta_wrapper { padding-top: var(--sbf-section-y); }
.single-post h1.entry-title { font-size: var(--sbf-fs-h1); margin-bottom: 1rem; }
.single-post .et_post_meta_wrapper .post-meta { margin-bottom: 2rem; }
.single-post .et_post_meta_wrapper img.wp-post-image,
.single-post .et_featured_image img { border-radius: var(--sbf-radius-lg); width: 100%; height: auto; }
.single-post .entry-content { font-size: 1.125rem; line-height: 1.7; }
.single-post .entry-content h2 { font-size: var(--sbf-fs-h3); margin-top: 2.5rem; }
.single-post .entry-content h3 { font-size: var(--sbf-fs-h4); margin-top: 2rem; }
.single-post .entry-content p { padding-bottom: 1.25em; }
.single-post .entry-content ul, .single-post .entry-content ol { padding-left: 1.25rem; padding-bottom: 1.25em; }
.single-post .entry-content li { margin-bottom: 0.4em; }
.single-post .entry-content img { border-radius: var(--sbf-radius-md); }
.single-post .entry-content hr { border: 0; border-top: 1px solid var(--sbf-grey-line); margin: 2.5rem 0; }

/* Author box / comments — kept quiet */
#comment-wrap, .comment-body { font-family: var(--sbf-font-body); }
#comment-wrap h1, #comment-wrap h3 { font-size: var(--sbf-fs-h3); }
.comment-reply-link, #submit { font-size: var(--sbf-fs-xs); }
#commentform textarea, #commentform input { border: 1px solid var(--sbf-grey-line); border-radius: var(--sbf-radius-sm); background: var(--sbf-white); }

/* Archive / category pages */
.archive #main-content .container, .search #main-content .container { max-width: var(--sbf-container); }
.archive #left-area, .search #left-area, .archive #sidebar, .search #sidebar { width: 100%; }
.archive #sidebar, .search #sidebar { display: none; }
.archive #main-content .container:before, .search #main-content .container:before { display: none; }
.archive .et_pb_post, .search .et_pb_post { padding: 1.5rem; margin-bottom: 1.5rem; }

/* ==========================================================================
   10. WORDPRESS CORE BLOCKS (in case Gutenberg is used for posts)
   ========================================================================== */
.wp-block-quote { border-left: 2px solid var(--sbf-gold); padding-left: 1.25rem; }
.wp-block-pullquote { border-top: 2px solid var(--sbf-gold); border-bottom: 2px solid var(--sbf-gold); }
.wp-block-pullquote p { font-family: var(--sbf-font-display); font-weight: 600; font-style: italic; font-size: 1.375rem; }
.wp-block-image img { border-radius: var(--sbf-radius-md); }
.wp-block-separator { border: 0; border-top: 1px solid var(--sbf-grey-line); }
.wp-block-table td, .wp-block-table th { border: 1px solid var(--sbf-grey-line); padding: 0.75rem 1rem; font-family: var(--sbf-font-body); }
.wp-block-table th { font-family: var(--sbf-font-display); font-weight: 600; font-size: var(--sbf-fs-xs); letter-spacing: var(--sbf-ls-caps); text-transform: uppercase; background: var(--sbf-off-white); }

/* ==========================================================================
   11. ACCESSIBILITY & MOTION
   ========================================================================== */
:focus-visible {
  outline: 2px solid var(--sbf-gold);
  outline-offset: 3px;
}
.et_pb_button:focus-visible, .sbf-btn:focus-visible { outline-offset: 4px; }

::selection { background: var(--sbf-gold); color: var(--sbf-black); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* Hide the "Powered by" / Divi back-to-top styling */
.et_pb_scroll_top { background: var(--sbf-gold); color: var(--sbf-black); border-radius: var(--sbf-radius-sm); }
.et_pb_scroll_top:before { color: var(--sbf-black); }

/* ==========================================================================
   12. RESPONSIVE
   ========================================================================== */
@media (max-width: 980px) {
  #et-top-navigation { padding-top: 20px !important; }
  .sbf-strip .et_pb_row { gap: 1.75rem; }
  .sbf-hero .et_pb_row { flex-direction: column; }
  .sbf-hero .et_pb_column { width: 100% !important; margin: 0 !important; }
  .sbf-hero .et_pb_column + .et_pb_column { margin-top: 2rem !important; }
}
@media (max-width: 767px) {
  :root { --sbf-section-y: clamp(3rem, 12vw, 4.5rem); }
  body, .et_pb_text, .entry-content { font-size: 1rem; }
  .sbf-hero h1, .sbf-hero .et_pb_module h1 { font-size: 2.375rem; }
  .sbf-hero .sbf-sub, .sbf-hero .et_pb_text.sbf-sub p { font-size: 1.125rem; }
  .sbf-card, .et_pb_module.sbf-card { padding: 1.25rem; }
  .sbf-panel, .et_pb_module.sbf-panel { padding: 1.5rem; }
  .sbf-testimonial, .et_pb_text.sbf-testimonial { padding-left: 2.25rem; }
  .sbf-stat .v, .sbf-strip .v, .et_pb_text.sbf-stat p.v { font-size: 1.875rem; }
  .et_pb_button, .sbf-btn { width: 100%; }
  .et_pb_button.sbf-btn--inline { width: auto; }
}

/* ==========================================================================
   13. SLIDE-OUT DRAWER  (assets/js/sbf-nav.js — optional, see README)
   ========================================================================== */
.sbf-burger {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px; padding: 0 9px; margin-left: 1rem;
  background: transparent; border: 1px solid rgba(255,255,255,0.28); border-radius: var(--sbf-radius-sm);
  cursor: pointer; transition: border-color var(--sbf-dur) var(--sbf-ease); vertical-align: middle;
}
.sbf-burger:hover { border-color: var(--sbf-gold); }
.sbf-burger i { display: block; height: 2px; background: var(--sbf-white); border-radius: 2px; transition: background var(--sbf-dur) var(--sbf-ease); }
.sbf-burger:hover i { background: var(--sbf-gold); }
.sbf-scrim { position: fixed; inset: 0; background: rgba(0,0,0,0.55); opacity: 0; pointer-events: none; transition: opacity 0.28s ease; z-index: 100000; }
.sbf-scrim.on { opacity: 1; pointer-events: auto; }
.sbf-drawer {
  position: fixed; top: 0; right: 0; height: 100%; width: 330px; max-width: 86vw;
  background: var(--sbf-black); color: var(--sbf-white); z-index: 100001;
  transform: translateX(100%); transition: transform 0.32s var(--sbf-ease);
  display: flex; flex-direction: column; box-shadow: -22px 0 60px rgba(0,0,0,0.5);
}
.sbf-drawer.on { transform: translateX(0); }
.sbf-dtop { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.sbf-dtop span { font-family: var(--sbf-font-display); font-weight: 600; font-size: 11px; letter-spacing: var(--sbf-ls-eyebrow); text-transform: uppercase; color: var(--sbf-gold); }
.sbf-x { background: transparent; border: 0; color: var(--sbf-white); font-size: 26px; line-height: 1; cursor: pointer; padding: 0 4px; }
.sbf-x:hover { color: var(--sbf-gold); }
.sbf-dnav { display: flex; flex-direction: column; padding: 12px 0; flex: 1; overflow-y: auto; }
.sbf-dnav a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 17px 24px;
  font-family: var(--sbf-font-display); font-weight: 800; font-size: 21px; letter-spacing: var(--sbf-ls-heading);
  color: var(--sbf-white); text-decoration: none; border-bottom: 1px solid rgba(255,255,255,0.07);
  transition: color var(--sbf-dur) var(--sbf-ease), background var(--sbf-dur) var(--sbf-ease);
}
.sbf-dnav a:hover { color: var(--sbf-gold); background: rgba(255,255,255,0.04); }
.sbf-dnav a[aria-current="page"] { color: var(--sbf-gold); box-shadow: inset 3px 0 0 var(--sbf-gold); }
.sbf-dfoot { padding: 22px 24px; border-top: 1px solid rgba(255,255,255,0.1); display: flex; flex-direction: column; gap: 12px; }
.sbf-dfoot a.cta { display: block; text-align: center; background: var(--sbf-gold); color: var(--sbf-black); font-family: var(--sbf-font-display); font-weight: 600; font-size: 13px; letter-spacing: var(--sbf-ls-caps); text-transform: uppercase; padding: 15px; border-radius: var(--sbf-radius-sm); text-decoration: none; }
.sbf-dfoot a.cta:hover { background: var(--sbf-bronze); color: var(--sbf-white); }
.sbf-dfoot small { font-size: 13px; color: var(--sbf-footer-text); text-align: center; }
.sbf-dfoot small a { color: var(--sbf-grey-mid); }
body.sbf-drawer-active #et_mobile_nav_menu { display: none; }
body.sbf-drawer-active.sbf-drawer-only #top-menu { display: none; }

/* ==========================================================================
   14. HOMEPAGE EXTRAS  (used by the Divi layout of the new home page)
   ========================================================================== */
.sbf-stats { display: flex; flex-wrap: wrap; gap: 3rem; margin-top: 2.5rem; }
.sbf-stats .sbf-stat .v { font-size: 1.75rem; }
.sbf-hero .sbf-badge--ghost { margin-bottom: 1.5rem; }
.sbf-hero .et_pb_text + .et_pb_button_module_wrapper { display: inline-block; margin-right: 0.75rem; }
.sbf-plan .plan-name { font-family: var(--sbf-font-display); font-weight: 600; font-size: var(--sbf-fs-eyebrow); letter-spacing: var(--sbf-ls-eyebrow); text-transform: uppercase; color: var(--sbf-bronze); padding-bottom: 0; }
.sbf-plan .price { font-family: var(--sbf-font-display); font-weight: 800; font-size: 2.8rem; letter-spacing: var(--sbf-ls-tight); line-height: 1; color: var(--sbf-black); margin: 1.2rem 0 1.4rem; padding-bottom: 0; }
.sbf-plan .price span { font-family: var(--sbf-font-body); font-weight: 400; font-size: 1rem; letter-spacing: 0; color: var(--sbf-muted); margin-left: 0.3rem; }
.sbf-plan ul { margin-bottom: 1.6rem !important; }
.sbf-plan li { font-size: var(--sbf-fs-sm); }
.sbf-plan .sbf-btn { margin-top: 0.25rem; }
.sbf-card--dark .sbf-ticks li { color: var(--sbf-grey-mid); }
.sbf-center, .et_pb_text.sbf-center { text-align: center; }
.sbf-center .sbf-lede { margin-left: auto; margin-right: auto; }
.sbf-heading-gap { margin-bottom: 2.5rem; }

/* Safety net: if the home page is viewed before the Divi Builder is enabled on it,
   let the sections run full-bleed and hide the default page title. */
#main-content .container:has(> #content-area .sbf-hero),
#main-content .container:has(.et_pb_section.sbf-hero) { max-width: 100%; width: 100%; padding: 0; }
#main-content .container:has(.sbf-hero) #left-area { width: 100%; padding: 0; }
#main-content .container:has(.sbf-hero) #sidebar,
#main-content .container:has(.sbf-hero):before,
#main-content .container:has(.sbf-hero) .entry-title,
#main-content .container:has(.sbf-hero) .et_post_meta_wrapper { display: none; }
#main-content .container:has(.sbf-hero) .et_pb_row { padding-left: var(--sbf-gutter); padding-right: var(--sbf-gutter); }

/* Fixes after first preview */
.sbf-hero .et_pb_button_module_wrapper { display: inline-block; margin-right: 0.75rem; margin-top: 0.5rem; }
.sbf-section--black .et_pb_text a.sbf-btn, .sbf-section--charcoal .et_pb_text a.sbf-btn,
.sbf-section--black a.sbf-btn, .sbf-section--charcoal a.sbf-btn { color: var(--sbf-black); }
.sbf-section--black .et_pb_text a.sbf-btn:hover, .sbf-section--charcoal .et_pb_text a.sbf-btn:hover,
.sbf-section--black a.sbf-btn:hover, .sbf-section--charcoal a.sbf-btn:hover { color: var(--sbf-white); }
.sbf-section--black a.sbf-btn--dark, .sbf-section--charcoal a.sbf-btn--dark { color: var(--sbf-white); }

/* Fixes after second preview */
.sbf-hero .et_pb_button, .sbf-hero .et_pb_button:hover { padding: 0.95rem 1.1rem; font-size: 0.8125rem; letter-spacing: 0.06em; }
.sbf-hero .et_pb_button_module_wrapper { margin-right: 0.5rem; }
.entry-content .sbf-btn--dark, .et_pb_text .sbf-btn--dark, a.sbf-btn--dark { background: var(--sbf-black); border-color: var(--sbf-black); color: var(--sbf-white); }
.entry-content .sbf-btn--dark:hover, .et_pb_text .sbf-btn--dark:hover, a.sbf-btn--dark:hover { background: var(--sbf-charcoal-2); border-color: var(--sbf-charcoal-2); color: var(--sbf-gold); }
.entry-content .sbf-btn--outline, .et_pb_text .sbf-btn--outline { background: transparent; color: var(--sbf-black); }
.entry-content .sbf-btn--outline-gold, .et_pb_text .sbf-btn--outline-gold { background: transparent; color: var(--sbf-bronze); }
.entry-content .sbf-btn--on-dark, .et_pb_text .sbf-btn--on-dark { background: var(--sbf-white); border-color: var(--sbf-white); color: var(--sbf-black); }

/* ==========================================================================
   15. STARTER PLAN PAGE
   ========================================================================== */
.sbf-picker { margin-top: 1.75rem; max-width: 460px; }
.sbf-picker .plab { display: block; font-family: var(--sbf-font-display); font-weight: 600; font-size: 0.6875rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--sbf-grey-mid); margin-bottom: 0.6rem; }
.sbf-picker .seg { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 6px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.14); border-radius: var(--sbf-radius-sm); margin-bottom: 0.9rem; }
.sbf-picker .seg button { font-family: var(--sbf-font-display); font-weight: 600; font-size: 0.8125rem; letter-spacing: 0.04em; padding: 0.75rem 0.5rem; background: transparent; border: 0; border-radius: 3px; color: var(--sbf-grey-mid); cursor: pointer; transition: background var(--sbf-dur) var(--sbf-ease), color var(--sbf-dur) var(--sbf-ease); }
.sbf-picker .seg button[aria-pressed="true"] { background: var(--sbf-gold); color: var(--sbf-black); }
.sbf-picker .picknote { font-size: 0.8125rem; color: var(--sbf-grey-mid); margin-top: 0.75rem; padding-bottom: 0; }
.sbf-section--paper .sbf-picker .seg, .sbf-section--white .sbf-picker .seg { background: var(--sbf-grey); border-color: var(--sbf-grey-line); }
.sbf-section--paper .sbf-picker .seg button, .sbf-section--white .sbf-picker .seg button { color: var(--sbf-muted); }
.sbf-section--paper .sbf-picker .plab, .sbf-section--paper .sbf-picker .picknote { color: var(--sbf-muted); }

.sbf-label, .et_pb_text .sbf-label { display: block; font-family: var(--sbf-font-display); font-weight: 600; font-size: 0.6875rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--sbf-bronze); margin-bottom: 0.6rem; }
.sbf-card h3 { margin-bottom: 0.5rem; }
.sbf-card p:last-child { padding-bottom: 0; }

.sbf-habits, .et_pb_text .sbf-habits { list-style: none; margin: 0; padding: 0; counter-reset: h; }
.sbf-habits li { display: flex; gap: 1rem; padding: 1.1rem 0; border-top: 1px solid var(--sbf-grey-line); }
.sbf-habits li:last-child { border-bottom: 1px solid var(--sbf-grey-line); }
.sbf-habits .n { font-family: var(--sbf-font-display); font-weight: 800; font-size: 1.375rem; color: var(--sbf-gold); line-height: 1.1; flex: 0 0 2.2rem; }
.sbf-habits strong { display: block; font-family: var(--sbf-font-display); font-weight: 700; color: var(--sbf-black); margin-bottom: 0.2rem; }
.sbf-habits .t { display: block; font-size: var(--sbf-fs-sm); color: var(--sbf-muted); }

.sbf-gallery, .et_pb_text .sbf-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.sbf-gallery figure { margin: 0; background: var(--sbf-white); border: 1px solid var(--sbf-grey-line); border-radius: var(--sbf-radius-md); overflow: hidden; box-shadow: var(--sbf-shadow-sm); }
.sbf-gallery img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.sbf-gallery figcaption { display: flex; justify-content: space-between; align-items: center; padding: 0.75rem 1rem; font-family: var(--sbf-font-display); font-weight: 700; font-size: 0.9375rem; color: var(--sbf-black); }
.sbf-gallery figcaption .tag { font-size: 0.625rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sbf-bronze); background: var(--sbf-gold-tint); border: 1px solid var(--sbf-gold); border-radius: var(--sbf-radius-pill); padding: 3px 8px; }

.sbf-faq details, .et_pb_text .sbf-faq details { border-top: 1px solid var(--sbf-grey-line); padding: 1rem 0; }
.sbf-faq details:last-child { border-bottom: 1px solid var(--sbf-grey-line); }
.sbf-faq summary { font-family: var(--sbf-font-display); font-weight: 700; font-size: 1.0625rem; color: var(--sbf-black); cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.sbf-faq summary::-webkit-details-marker { display: none; }
.sbf-faq summary::after { content: "+"; color: var(--sbf-gold); font-weight: 800; font-size: 1.25rem; line-height: 1; }
.sbf-faq details[open] summary::after { content: "\2013"; }
.sbf-faq details p { padding: 0.75rem 0 0; color: var(--sbf-muted); }

.sbf-steps-list, .et_pb_text .sbf-steps-list { list-style: none; padding: 0; margin: 1.25rem 0 0; counter-reset: s; }
.sbf-steps-list li { counter-increment: s; position: relative; padding: 0.55rem 0 0.55rem 2.6rem; color: var(--sbf-grey-mid); border-top: 1px solid rgba(255,255,255,0.08); }
.sbf-steps-list li::before { content: counter(s, decimal-leading-zero); position: absolute; left: 0; top: 0.55rem; font-family: var(--sbf-font-display); font-weight: 800; color: var(--sbf-gold); }

.sbf-hero h1 { margin-top: 1rem; }
.sbf-hero .sbf-badge--ghost + h1 { margin-top: 0; }
.sbf-hero h1 + .sbf-badge--ghost { display: inline-block; margin: 1.1rem 0 0; }
.sbf-final h2 { max-width: 20ch; margin: 0 auto 1rem; }

@media (max-width: 980px) { .sbf-gallery, .et_pb_text .sbf-gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .sbf-gallery, .et_pb_text .sbf-gallery { grid-template-columns: 1fr 1fr; gap: 0.75rem; } .sbf-gallery figcaption { font-size: 0.8125rem; padding: 0.5rem 0.6rem; } .sbf-gallery figcaption .tag { display: none; } }

/* Starter Plan fixes */
.sbf-crosses ul, .et_pb_text.sbf-crosses ul { list-style: none; padding-left: 0; margin: 0; }
.sbf-crosses li, .et_pb_text.sbf-crosses li { position: relative; padding-left: 1.75rem; margin-bottom: 0.6rem; line-height: 1.5; }
.sbf-strip .et_pb_row { justify-content: space-evenly; }
.sbf-strip .sbf-stat, .sbf-strip .et_pb_text.sbf-stat { text-align: center; }

/* ==========================================================================
   16. SITE FOOTER  (markup from functions.php — sbf_child_footer_markup)
   ========================================================================== */
#main-footer { background: var(--sbf-black); }
#footer-bottom, #footer-widgets { display: none !important; }
.sbf-footer { background: var(--sbf-black); color: var(--sbf-footer-text); padding: 4rem 1.5rem 2rem; font-family: var(--sbf-font-body); }
.sbf-footer__inner { max-width: var(--sbf-container); margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2.5rem; }
.sbf-footer__brand { max-width: 320px; }
.sbf-footer__logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.sbf-footer__logo img { width: 40px; height: 40px; display: block; }
.sbf-footer__logo span { font-family: var(--sbf-font-display); font-weight: 600; font-size: 0.8125rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--sbf-white); }
.sbf-footer__brand p { font-size: var(--sbf-fs-sm); line-height: var(--sbf-lh-body); color: var(--sbf-footer-text); margin: 1.1rem 0 0; padding: 0; }
.sbf-footer__cols { display: flex; gap: 4rem; flex-wrap: wrap; }
.sbf-footer__col h4 { font-family: var(--sbf-font-display); font-weight: 700; font-size: var(--sbf-fs-eyebrow); letter-spacing: var(--sbf-ls-eyebrow); text-transform: uppercase; color: var(--sbf-white); margin: 0 0 1rem; padding: 0; }
.sbf-footer__col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.sbf-footer__col li { padding: 0; margin: 0; }
.sbf-footer__col a { font-size: var(--sbf-fs-sm); color: var(--sbf-footer-text); text-decoration: none; transition: color var(--sbf-dur) var(--sbf-ease); }
.sbf-footer__col a:hover { color: var(--sbf-gold); }
.sbf-footer__bottom { max-width: var(--sbf-container); margin: 2.5rem auto 0; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.08); font-size: var(--sbf-fs-xs); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 1.5rem; }
.sbf-footer__bottom a { color: var(--sbf-grey-mid); }
.sbf-footer__bottom a:hover { color: var(--sbf-gold); }
@media (max-width: 767px) { .sbf-footer { padding: 3rem 1.25rem 1.5rem; } .sbf-footer__cols { gap: 2.5rem; } .sbf-footer__bottom { flex-direction: column; } }

/* Footer aligns with Divi's 80% row width */
.sbf-footer { padding-left: 0; padding-right: 0; }
.sbf-footer__inner, .sbf-footer__bottom { width: 80%; max-width: 1200px; }
@media (max-width: 767px) { .sbf-footer__inner, .sbf-footer__bottom { width: 90%; } }

/* Burger must sit above Divi's full-width logo container so taps reach it */
#main-header .logo_container { pointer-events: none; }
#main-header .logo_container a, #main-header .logo_container img { pointer-events: auto; }
#et-top-navigation { position: relative; z-index: 5; }
.sbf-burger { position: relative; z-index: 6; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
@media (max-width: 980px) {
  #et-top-navigation { padding-top: 14px !important; display: flex; justify-content: flex-end; align-items: center; }
  body.sbf-drawer-active #et_mobile_nav_menu { display: none !important; }
  .sbf-burger { margin-left: 0; }
  .sbf-drawer { width: 86vw; }
}
body.admin-bar .sbf-drawer { top: 32px; height: calc(100% - 32px); }
@media (max-width: 782px) { body.admin-bar .sbf-drawer { top: 46px; height: calc(100% - 46px); } }

/* ==========================================================================
   17. MOBILE POLISH  (hero, buttons, stats, section rhythm on phones)
   ========================================================================== */
.et_pb_text .sbf-stat p.v, .sbf-stat .v, .sbf-strip .et_pb_text p.v { font-family: var(--sbf-font-display) !important; font-weight: 800 !important; letter-spacing: var(--sbf-ls-tight) !important; line-height: 1 !important; }
.et_pb_text .sbf-stat p.l, .sbf-stat .l, .sbf-strip .et_pb_text p.l { font-family: var(--sbf-font-display) !important; font-weight: 600 !important; letter-spacing: 0.18em !important; text-transform: uppercase !important; }
@media (max-width: 980px) {
  .et_pb_section { padding: 3.25rem 0 !important; }
  .sbf-hero, .et_pb_section.sbf-hero { padding: 2.25rem 0 2.75rem !important; }
  .sbf-strip, .et_pb_section.sbf-strip { padding: 1.75rem 0 !important; }
  .et_pb_row { width: 90% !important; padding: 0 !important; }
  .et_pb_column { padding: 0 !important; margin-bottom: 1.5rem !important; }
  .et_pb_column:last-child { margin-bottom: 0 !important; }
  .et_pb_module { margin-bottom: 1.25rem !important; }
  .et_pb_column > .et_pb_module:last-child { margin-bottom: 0 !important; }
}
@media (max-width: 767px) {
  body, .et_pb_text, .entry-content, .et_pb_text p { font-size: 1rem !important; line-height: 1.6 !important; }
  h1, .et_pb_module h1, .sbf-hero h1, .sbf-hero .et_pb_module h1 { font-size: 2.375rem !important; line-height: 1.05 !important; }
  h2, .et_pb_module h2 { font-size: 1.75rem !important; }
  h3, .et_pb_module h3 { font-size: 1.25rem !important; }
  .sbf-hero .sbf-badge--ghost { margin-bottom: 1rem; }
  .sbf-hero h1 + .sbf-badge--ghost { margin: 0.9rem 0 0; }
  .sbf-hero .sbf-sub, .sbf-hero .et_pb_text.sbf-sub p { font-size: 1.125rem !important; }
  .sbf-hero p, .sbf-hero .et_pb_text p { font-size: 1rem !important; line-height: 1.55 !important; color: var(--sbf-grey-mid); }
  .sbf-hero .et_pb_button_module_wrapper { display: block !important; width: 100% !important; margin: 0 0 0.75rem !important; }
  .sbf-hero .et_pb_button, .sbf-hero .et_pb_button:hover, .sbf-hero a.sbf-btn { width: 100% !important; display: flex !important; justify-content: center; padding: 1rem 1.25rem !important; font-size: 0.875rem !important; letter-spacing: 0.08em !important; }
  .sbf-stats { gap: 1.5rem 1.25rem !important; margin-top: 1.75rem !important; }
  .sbf-stats .sbf-stat { flex: 1 1 42%; }
  .sbf-stats .sbf-stat .v { font-size: 1.75rem !important; }
  .sbf-stats .sbf-stat .l { font-size: 0.625rem !important; margin-top: 4px; }
  .sbf-strip .et_pb_row { gap: 1.25rem 1rem; }
  .sbf-strip .sbf-stat .v { font-size: 1.625rem !important; }
  .sbf-lede, .et_pb_text.sbf-lede p { font-size: 1.0625rem !important; }
  .sbf-heading-gap { margin-bottom: 1.5rem !important; }
  .sbf-card, .et_pb_module.sbf-card { padding: 1.25rem !important; }
  .sbf-eyebrow, .et_pb_text.sbf-eyebrow p { font-size: 0.6875rem; }
  .sbf-eyebrow::before { width: 24px; }
  .sbf-picker { max-width: none; }
  .sbf-final h2 { max-width: none; }
  .sbf-footer__cols { width: 100%; }
  #logo, #main-header #logo { max-height: 32px !important; }
}
