/*
Theme Name:   HVOF Divi Child
Theme URI:    https://thewowguys.com
Description:  Child theme for Hudson Valley Office Furniture. Holds custom CSS, design tokens, and site-wide overrides so updates to the parent Divi theme do not wipe customizations.
Author:       CQ Studio
Author URI:   https://creativequalitymarketing.com
Template:     Divi
Version:      1.0.0
Text Domain:  hvof-child
*/

/* =========================================================
   1. Brand design tokens (lock once, reuse everywhere)
   ========================================================= */
:root {
    --hvof-ink:        #0e0c19;   /* primary dark   */
    --hvof-ink-2:      #3c3a47;   /* secondary dark */
    --hvof-yellow:     #e7c920;   /* primary brand  */
    --hvof-yellow-hov: #d4b71c;   /* hover state    */
    --hvof-mute:       #95a0a7;   /* muted accent   */
    --hvof-bg-soft:    #f5f5f5;   /* light surface  */
    --hvof-white:      #ffffff;
    --hvof-font-head:  "IBM Plex Sans Condensed", "IBM Plex Sans", sans-serif;
    --hvof-font-body:  "IBM Plex Sans", system-ui, -apple-system, sans-serif;
}

/* =========================================================
   2. Header / logo modernization
   Goal: slimmer top bar, smaller logo, more breathing room.
   Applies to both classic Divi header and Theme Builder header.
   ========================================================= */

/* Classic Divi primary menu (fallback if TB header not used) */
#main-header {
    box-shadow: 0 1px 0 rgba(14, 12, 25, 0.06);
    transition: padding 0.25s ease, background-color 0.25s ease;
}
#main-header .container {
    padding-top: 14px !important;
    padding-bottom: 14px !important;
}
#logo {
    max-height: 44px !important;
    width: auto !important;
    transition: max-height 0.25s ease;
}
#main-header.et-fixed-header #logo {
    max-height: 36px !important;
}

/* Theme Builder header — Divi outputs the layout inside .et-l--header */
.et-l--header .et_pb_image_wrap img,
.et-l--header img.et_pb_image_wrap,
.et-l--header .et_pb_image img {
    max-height: 44px;
    width: auto;
}
.et-l--header.et_pb_section {
    padding-top: 14px !important;
    padding-bottom: 14px !important;
}

/* Tighten the menu links so the bar reads thinner */
.et-l--header .et_pb_menu .et-menu li a,
#top-menu li a,
.et_pb_menu .et-menu li a {
    font-family: var(--hvof-font-head);
    font-weight: 500;
    letter-spacing: 0.5px;
    padding-bottom: 14px;
    padding-top: 14px;
    font-size: 14px;
}

/* Sticky / scrolled state — tighter still */
.et-l--header.et_pb_sticky--effects .et_pb_image_wrap img,
.et-l--header.et_pb_sticky .et_pb_image_wrap img {
    max-height: 36px;
}

/* =========================================================
   3. Typography — applied with selector specificity high enough
   to win against Divi's per-module compiled rules. Necessary
   because Divi's font compiler does not always emit font-family
   for fonts injected via SQL outside the Visual Builder save flow.
   ========================================================= */

/* Body baseline */
body,
.et_pb_text,
.et_pb_text p,
.et_pb_blurb_description,
.et_pb_blurb_content p,
.et_pb_toggle .et_pb_toggle_content,
.et_pb_toggle .et_pb_toggle_content p,
p {
    font-family: var(--hvof-font-body), system-ui, sans-serif !important;
}

/* Headings + display type — !important required because Divi's per-module
   compiled CSS uses module-id-prefixed selectors (.et_pb_text_0 h1) which
   beat our plain class selectors on specificity. */
h1, h2, h3, h4, h5, h6,
.et_pb_module_header,
.et_pb_heading,
.et_pb_heading h1, .et_pb_heading h2, .et_pb_heading h3, .et_pb_heading h4,
.et_pb_text h1, .et_pb_text h2, .et_pb_text h3, .et_pb_text h4,
.et_pb_blurb_content h4,
.et_pb_blurb_content .et_pb_module_header,
.et_pb_toggle .et_pb_toggle_title,
.et_pb_pricing_content_top h2,
.et_pb_button {
    font-family: var(--hvof-font-head), system-ui, sans-serif !important;
}

/* Eyebrow / label text — lock to condensed at small sizes */
.et_pb_text[class*="eyebrow"],
.et_pb_text:has(p[style*="letter-spacing"]) p {
    font-family: var(--hvof-font-head), system-ui, sans-serif;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* =========================================================
   4. Button refinement (square corners, brand yellow)
   ========================================================= */
.et_pb_button.hvof-cta,
.hvof-cta-yellow .et_pb_button,
a.hvof-btn {
    background-color: var(--hvof-yellow) !important;
    color: var(--hvof-ink) !important;
    border: 0 !important;
    border-radius: 4px !important;
    padding: 14px 32px !important;
    font-family: var(--hvof-font-head);
    font-weight: 600;
    letter-spacing: 1px;
    transition: background-color 0.2s ease;
}
.et_pb_button.hvof-cta:hover,
.hvof-cta-yellow .et_pb_button:hover,
a.hvof-btn:hover {
    background-color: var(--hvof-yellow-hov) !important;
}

/* =========================================================
   5. WooCommerce — full styling pass for shop, single, cart, checkout.
   ========================================================= */

/* 5.1 Default Divi/WP link buttons that don't have an explicit bg
       (the "blue ghost" buttons that appear on shop subcategory chips,
       Connect with an expert CTAs that lost their compiled style, etc.) */
.et_pb_button:not([class*="bg_color"]):not([style*="background"]),
a.et_pb_button:not([style*="background-color"]) {
    background-color: var(--hvof-yellow) !important;
    color: var(--hvof-ink) !important;
    border-color: var(--hvof-yellow) !important;
}

/* 5.2 Shop archive — page wrapper, product grid */
.woocommerce,
.woocommerce-page,
.woocommerce-products-header {
    font-family: var(--hvof-font-body), system-ui, sans-serif;
}
.woocommerce h1,
.woocommerce h2,
.woocommerce h3,
.woocommerce-products-header__title,
.woocommerce-loop-category__title,
.woocommerce-loop-product__title,
.woocommerce ul.products li.product h2,
.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-family: var(--hvof-font-head), system-ui, sans-serif !important;
    color: var(--hvof-ink);
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* 5.3 Product cards */
.woocommerce ul.products li.product {
    background: var(--hvof-white);
    border: 1px solid #ececec;
    border-radius: 6px;
    padding: 18px !important;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.woocommerce ul.products li.product:hover {
    box-shadow: 0 8px 24px rgba(14, 12, 25, 0.08);
    transform: translateY(-2px);
}

/* 5.4 Buttons — Add to cart, Read More, Update cart, Checkout, etc. */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt,
.woocommerce-page button.button.alt,
.woocommerce-page a.button,
.woocommerce ul.products li.product .button,
.woocommerce #respond input#submit,
.woocommerce #respond input#submit.alt,
.woocommerce #place_order {
    background-color: var(--hvof-yellow) !important;
    color: var(--hvof-ink) !important;
    border: 0 !important;
    border-radius: 4px !important;
    font-family: var(--hvof-font-head), system-ui, sans-serif !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px;
    padding: 12px 24px !important;
    transition: background-color 0.2s ease;
}
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce-page a.button:hover,
.woocommerce #place_order:hover {
    background-color: var(--hvof-yellow-hov) !important;
    color: var(--hvof-ink) !important;
}

/* 5.5 Prices */
.woocommerce ul.products li.product .price,
.woocommerce div.product p.price,
.woocommerce div.product span.price,
.woocommerce-Price-amount {
    color: var(--hvof-ink) !important;
    font-family: var(--hvof-font-head), system-ui, sans-serif !important;
    font-weight: 600;
}

/* 5.6 Sort dropdown + result count on shop archive */
.woocommerce-result-count,
.woocommerce-ordering select {
    font-family: var(--hvof-font-body) !important;
    color: var(--hvof-ink);
}
.woocommerce-ordering select {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 8px 12px;
}

/* 5.7 Single product page */
.woocommerce div.product .product_title {
    font-family: var(--hvof-font-head), system-ui, sans-serif !important;
    color: var(--hvof-ink);
    font-weight: 400;
    font-size: 36px;
    line-height: 1.2;
}
.woocommerce div.product form.cart .single_add_to_cart_button {
    background-color: var(--hvof-yellow) !important;
    color: var(--hvof-ink) !important;
    border: 0 !important;
    border-radius: 4px !important;
    padding: 14px 28px !important;
    font-family: var(--hvof-font-head), system-ui, sans-serif !important;
    font-weight: 600;
}
.woocommerce-tabs ul.tabs li.active a,
.woocommerce-tabs ul.tabs li a:hover {
    color: var(--hvof-yellow) !important;
}

/* 5.8 Cart + checkout forms */
.woocommerce table.shop_table {
    border: 1px solid #ececec;
    border-radius: 6px;
}
.woocommerce table.shop_table th {
    font-family: var(--hvof-font-head), system-ui, sans-serif !important;
    color: var(--hvof-ink);
    background: var(--hvof-bg-soft);
}
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.woocommerce-checkout #order_review .input-text {
    border: 1px solid #ddd !important;
    border-radius: 4px !important;
    padding: 10px 12px !important;
    font-family: var(--hvof-font-body), system-ui, sans-serif !important;
    background: var(--hvof-white);
}
.woocommerce form .form-row label {
    font-family: var(--hvof-font-head), system-ui, sans-serif;
    color: var(--hvof-ink);
    font-weight: 500;
}
.woocommerce-info,
.woocommerce-message,
.woocommerce-error {
    border-top-color: var(--hvof-yellow) !important;
    background: var(--hvof-bg-soft);
}

/* 5.9 My account */
.woocommerce-MyAccount-navigation ul li a {
    font-family: var(--hvof-font-head), system-ui, sans-serif;
    color: var(--hvof-ink);
}
.woocommerce-MyAccount-navigation ul li.is-active a {
    color: var(--hvof-yellow);
    border-left-color: var(--hvof-yellow);
}

/* 5.10 Override the leaked Divi accent colors in the wild */
[style*="#2b87da"],
[style*="#2EA3F2"] {
    color: var(--hvof-yellow) !important;
}

/* =========================================================
   6. Defensive — no horizontal scroll on mobile
   ========================================================= */
html, body { overflow-x: hidden; }

/* =========================================================
   7. HVOF DESIGN SYSTEM — semantic utility classes.
   Assigned to Divi sections via module_class so colors and
   layout don't depend on per-module shortcode compilation
   (which is unreliable when post_content is updated via SQL).
   ========================================================= */

/* ---- 7.1 SECTION BACKGROUND VARIANTS ---- */
.hvof-section--ink {
    background-color: var(--hvof-ink) !important;
}
.hvof-section--white {
    background-color: var(--hvof-white) !important;
}
.hvof-section--yellow {
    background-color: var(--hvof-yellow) !important;
}
.hvof-section--gray {
    background-color: var(--hvof-bg-soft) !important;
}

/* ---- 7.2 INK (black) sections — yellow eyebrow + WHITE everything else ---- */
.hvof-section--ink .et_pb_heading h1,
.hvof-section--ink .et_pb_heading h2,
.hvof-section--ink .et_pb_heading h3,
.hvof-section--ink .et_pb_heading h5,
.hvof-section--ink .et_pb_heading h6,
.hvof-section--ink .et_pb_text,
.hvof-section--ink .et_pb_text p,
.hvof-section--ink .et_pb_text li,
.hvof-section--ink .et_pb_text strong {
    color: var(--hvof-white) !important;
}
.hvof-section--ink .et_pb_heading.hvof-eyebrow h1,
.hvof-section--ink .et_pb_heading.hvof-eyebrow h2,
.hvof-section--ink .et_pb_heading.hvof-eyebrow h3,
.hvof-section--ink .et_pb_heading.hvof-eyebrow h4,
.hvof-section--ink .hvof-eyebrow .et_pb_module_heading {
    color: var(--hvof-yellow) !important;
}

/* The big stats numbers are h3 by structure but should be yellow */
.hvof-section--ink .hvof-stat-number .et_pb_module_heading,
.hvof-section--ink .hvof-stat-number h3 {
    color: var(--hvof-yellow) !important;
}

/* ---- 7.3 WHITE sections — yellow eyebrow + INK heading + INK body ---- */
.hvof-section--white .et_pb_heading h1,
.hvof-section--white .et_pb_heading h2,
.hvof-section--white .et_pb_heading h3,
.hvof-section--white .et_pb_text,
.hvof-section--white .et_pb_text p,
.hvof-section--white .et_pb_text li,
.hvof-section--white .et_pb_text strong {
    color: var(--hvof-ink) !important;
}
.hvof-section--white .hvof-eyebrow .et_pb_module_heading,
.hvof-section--white .et_pb_heading.hvof-eyebrow h1,
.hvof-section--white .et_pb_heading.hvof-eyebrow h2,
.hvof-section--white .et_pb_heading.hvof-eyebrow h3,
.hvof-section--white .et_pb_heading.hvof-eyebrow h4 {
    color: var(--hvof-yellow) !important;
}

/* ---- 7.4 YELLOW sections — black everything ---- */
.hvof-section--yellow .et_pb_heading h1,
.hvof-section--yellow .et_pb_heading h2,
.hvof-section--yellow .et_pb_heading h3,
.hvof-section--yellow .et_pb_heading h4,
.hvof-section--yellow .et_pb_text,
.hvof-section--yellow .et_pb_text p,
.hvof-section--yellow .et_pb_text li,
.hvof-section--yellow .et_pb_text strong {
    color: var(--hvof-ink) !important;
}

/* ---- 7.5 GRAY sections — yellow eyebrow + INK heading + INK body ---- */
.hvof-section--gray .et_pb_heading h1,
.hvof-section--gray .et_pb_heading h2,
.hvof-section--gray .et_pb_heading h3,
.hvof-section--gray .et_pb_text,
.hvof-section--gray .et_pb_text p,
.hvof-section--gray .et_pb_text li,
.hvof-section--gray .et_pb_text strong {
    color: var(--hvof-ink) !important;
}
.hvof-section--gray .hvof-eyebrow .et_pb_module_heading,
.hvof-section--gray .et_pb_heading.hvof-eyebrow h4 {
    color: var(--hvof-yellow) !important;
}

/* ---- 7.6 TYPOGRAPHIC SCALE — bigger, editorial ---- */
.hvof-h1-display .et_pb_module_heading,
.hvof-h1-display h1,
.hvof-h1-display h2 {
    font-family: var(--hvof-font-head) !important;
    font-weight: 300 !important;
    font-size: clamp(48px, 7.5vw, 120px) !important;
    line-height: 1em !important;
    letter-spacing: -0.01em !important;
}
.hvof-h2-display .et_pb_module_heading,
.hvof-h2-display h2,
.hvof-h2-display h3 {
    font-family: var(--hvof-font-head) !important;
    font-weight: 300 !important;
    font-size: clamp(36px, 5vw, 80px) !important;
    line-height: 1.05em !important;
    letter-spacing: -0.005em !important;
}
.hvof-eyebrow .et_pb_module_heading,
.hvof-eyebrow h1,
.hvof-eyebrow h2,
.hvof-eyebrow h3,
.hvof-eyebrow h4 {
    font-family: var(--hvof-font-body) !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    letter-spacing: 2.5px !important;
    text-transform: uppercase !important;
    line-height: 1.4em !important;
}
.hvof-stat-number .et_pb_module_heading,
.hvof-stat-number h3 {
    font-family: var(--hvof-font-head) !important;
    font-weight: 300 !important;
    font-size: clamp(48px, 6vw, 96px) !important;
    line-height: 1em !important;
    letter-spacing: -0.02em !important;
}

/* ---- 7.7 BODY copy bigger ---- */
.hvof-body .et_pb_text,
.hvof-body .et_pb_text p,
.hvof-body p {
    font-size: clamp(17px, 1.4vw, 21px) !important;
    line-height: 1.7em !important;
}
.hvof-body .et_pb_text li,
.hvof-body li {
    font-size: clamp(17px, 1.4vw, 20px) !important;
    line-height: 1.85em !important;
    margin-bottom: 6px !important;
}

/* ---- 7.8 BUTTONS bigger, square corners ---- */
.hvof-btn-primary .et_pb_button,
.hvof-btn-primary.et_pb_button {
    background-color: var(--hvof-yellow) !important;
    color: var(--hvof-ink) !important;
    border: 0 !important;
    border-radius: 0 !important;
    padding: 24px 48px !important;
    font-family: var(--hvof-font-head) !important;
    font-weight: 600 !important;
    font-size: 16px !important;
    letter-spacing: 2px !important;
    text-transform: uppercase !important;
    transition: background-color 0.2s ease, transform 0.2s ease !important;
}
.hvof-btn-primary .et_pb_button:hover,
.hvof-btn-primary.et_pb_button:hover {
    background-color: var(--hvof-yellow-hov) !important;
    transform: translateY(-2px);
}
.hvof-btn-ghost .et_pb_button,
.hvof-btn-ghost.et_pb_button {
    background-color: transparent !important;
    color: var(--hvof-white) !important;
    border: 2px solid var(--hvof-white) !important;
    border-radius: 0 !important;
    padding: 22px 46px !important;
    font-family: var(--hvof-font-head) !important;
    font-weight: 600 !important;
    font-size: 16px !important;
    letter-spacing: 2px !important;
    text-transform: uppercase !important;
}
.hvof-btn-ghost .et_pb_button:hover,
.hvof-btn-ghost.et_pb_button:hover {
    background-color: rgba(255,255,255,0.1) !important;
}
/* hide Divi's default arrow on our buttons */
.hvof-btn-primary .et_pb_button:after,
.hvof-btn-ghost .et_pb_button:after { display: none !important; }

/* ---- 7.9 FULL-BLEED — break out of Divi's body container ---- */
.hvof-fullbleed,
.hvof-fullbleed.et_pb_section {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}
.hvof-fullbleed > .et_pb_row,
.hvof-fullbleed .et_pb_row.hvof-row-fullbleed {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}
/* Edge-to-edge 50/50 split rows: kill the gutter completely */
.hvof-row-split {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}
.hvof-row-split > .et_pb_column {
    margin-right: 0 !important;
    margin-bottom: 0 !important;
}

/* Hero column padding — generous on desktop, scales down */
.hvof-hero-text-col {
    padding: clamp(48px, 8vw, 144px) clamp(24px, 5vw, 96px) !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    min-height: 80vh !important;
}
.hvof-hero-image-col {
    min-height: 80vh !important;
    background-size: cover !important;
    background-position: center !important;
}
@media (max-width: 980px) {
    .hvof-hero-text-col, .hvof-hero-image-col { min-height: 50vh !important; }
}

/* Image columns elsewhere — fixed min-height so empty bg-image cols still render */
.hvof-image-col {
    min-height: 70vh !important;
    background-size: cover !important;
    background-position: center !important;
}
@media (max-width: 980px) {
    .hvof-image-col { min-height: 50vh !important; }
}

/* Text-block column — generous padding */
.hvof-text-col {
    padding: clamp(64px, 8vw, 144px) clamp(24px, 5vw, 96px) !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
}

/* Proof gallery — 3 images edge-to-edge */
.hvof-proof-row {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
}
.hvof-proof-row > .et_pb_column {
    margin: 0 !important;
}
.hvof-proof-tile {
    min-height: 60vh !important;
    background-size: cover !important;
    background-position: center !important;
}
@media (max-width: 980px) { .hvof-proof-tile { min-height: 40vh !important; } }

/* Generous vertical rhythm on centered statement sections */
.hvof-section--padded {
    padding-top: clamp(80px, 12vw, 200px) !important;
    padding-bottom: clamp(80px, 12vw, 200px) !important;
}
