/**
Theme Name: J.L. Gonzalez Produce
Author: StudioMGD
Author URI: https://www.studiomgd.com
Description: Astra child theme for J.L. Gonzalez Produce, wholesale Mexican produce importer in Chicago.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: jl-gonzalez-produce
Template: astra
*/

/* Google Fonts (moved from Customizer > Additional CSS; must stay before all other rules) */
@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;600&display=swap');


.site-branding {
	margin: -10px 0 -37px 0;
}

.ast-logo-title-inline .site-logo-img {padding-right:0;}

.site-footer .dh-flabel{margin:0 0 12px;font-family:'IBM Plex Mono',monospace;font-size:12px;letter-spacing:.16em;text-transform:uppercase;color:#147D3A}
.site-footer .site-primary-footer-wrap p{font-size:15px;line-height:1.6;color:#3F483F;margin:0}
.site-footer .site-primary-footer-wrap a{color:#17201A;text-decoration:none}
.site-footer .site-primary-footer-wrap .widget_nav_menu ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}
@media (min-width:922px){.site-primary-footer-wrap .site-footer-section+.site-footer-section{border-left:1px solid #D8D0BF;padding-left:28px}}
.site-below-footer-wrap{font-family:'IBM Plex Mono',monospace;font-size:12px;letter-spacing:.08em;text-transform:uppercase;color:#4F574F}

/* Product pages: the white content card starts exactly where the page header image ends (all breakpoints) */
.fl-row.productColumn[data-node] .fl-row-content-wrap {border-radius: 0 0 7px 7px; margin: 0;}
body:has(.fl-builder-content > .fl-row.productColumn:first-child) .dh-page-header {margin-bottom: 0;}

/* Astra header: small laptops (1080-1279px) - tighter menu item spacing so the primary menu stays on one line */
@media (min-width: 1080px) and (max-width: 1279px) {
  #ast-desktop-header .ast-builder-menu-1 .main-header-menu > .menu-item > .menu-link { padding-left: 7px; padding-right: 7px; }
}

/* Shared typography utility classes (previously only in the Home page CSS) – used on all Beaver Builder pages */
.dh-eyebrow, .dh-eyebrow p { font-family: var(--ds-font-mono); font-size: var(--ds-text-xs); letter-spacing: 0.16em; margin: 0; }
.dh-h-xxl, .dh-h-xxl .fl-heading { font-family: var(--ds-font-heading); font-weight: var(--ds-weight-black); font-size: clamp(2.5rem, 5vw, 4.5rem); letter-spacing: -0.035em; line-height: 0.95; }
.dh-h-xl, .dh-h-xl .fl-heading { font-family: var(--ds-font-heading); font-weight: var(--ds-weight-black); font-size: clamp(2.25rem, 4vw, 3.5rem); letter-spacing: -0.03em; line-height: 1; }
.dh-h-md, .dh-h-md .fl-heading { font-family: var(--ds-font-heading); font-weight: var(--ds-weight-black); font-size: var(--ds-text-2xl); letter-spacing: -0.02em; line-height: 1.1; }
.dh-t-lg { font-size: var(--ds-text-lg); }
.dh-t-base { font-size: var(--ds-text-base); }
.dh-t-sm { font-size: var(--ds-text-sm); }

/* Hero slider (.dh-hero): keep slide text left-aligned on tablets and phones too.
   Beaver Builder centers "Left"/"Right" text positions below 769px by default. */
@media (max-width: 768px) {
	.dh-hero .fl-slide-text-left .fl-slide-content-wrap,
	.dh-hero .fl-slide-text-right .fl-slide-content-wrap {
		text-align: left;
	}
}

/* ==========================================================================
   Moved from Customizer > Additional CSS (Dec 2026)
   ========================================================================== */

/* Header phone link with handset icon */
.dh-phone{display:inline-flex;align-items:center;gap:8px;font-weight:600;color:#17201A;text-decoration:none}
.dh-phone:hover{color:#147D3A}
.dh-phone-ico{display:inline-block;width:18px;height:18px;flex:none;background-color:#147D3A;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2a1 1 0 0 1 1-.25 11.4 11.4 0 0 0 3.6.57 1 1 0 0 1 1 1V20a1 1 0 0 1-1 1A17 17 0 0 1 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.25.2 2.45.57 3.57a1 1 0 0 1-.25 1z'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2a1 1 0 0 1 1-.25 11.4 11.4 0 0 0 3.6.57 1 1 0 0 1 1 1V20a1 1 0 0 1-1 1A17 17 0 0 1 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.25.2 2.45.57 3.57a1 1 0 0 1-.25 1z'/%3E%3C/svg%3E") center/contain no-repeat}
.dh-phone--icon{justify-content:center;width:40px;height:40px}
.dh-phone--icon .dh-phone-ico{width:22px;height:22px}

/* Desktop header (Header A, Solid ledger): one line, white background, logo inline with the menu */
/* 1080px = Astra header breakpoint (astra_header_break_point filter in child functions.php returns 1079) */
@media (min-width: 1080px) {
  .ast-desktop .ast-primary-header-bar.main-header-bar {
    padding-top: 0;
    padding-bottom: 0;
    background-color: #FFFFFF;
    border-bottom: 1px solid #D8D0BF;
  }
  .ast-primary-header-bar .site-primary-header-wrap { min-height: 72px; height: 72px; }
  /* Menu box exactly as tall as its content, so it centers on the same line as the phone and button */
  .ast-desktop .ast-primary-header-bar #ast-hf-menu-1,
  .ast-desktop .ast-primary-header-bar #ast-hf-menu-1 > .menu-item { height: auto; line-height: 1 !important; }
  .ast-desktop .ast-primary-header-bar #ast-hf-menu-1 > .menu-item > .menu-link { height: auto; line-height: 1 !important; padding-top: 12px; padding-bottom: 12px; }
  .ast-header-html-1 .ast-builder-html-element,
  .ast-header-html-1 .ast-builder-html-element p { display: flex; align-items: center; margin: 0; line-height: 1; }
  .ast-primary-header-bar .site-branding { height: 72px; padding: 0; margin: 0; align-items: center; position: relative; z-index: 20; }
  .ast-primary-header-bar .site-logo-img { padding-top: 0; }
  .ast-desktop .ast-primary-header-bar .site-logo-img .custom-logo { width: 220px; max-width: 220px; height: auto; }
  /* 30px between menu items */
  #ast-hf-menu-1 > li > a { padding-left: 12px; padding-right: 12px; }
  /* Contact is already the green button, hide the duplicate menu item in the desktop header */
  #ast-hf-menu-1 > li.menu-item-30 { display: none; }
  /* Divider between the menu and the phone / button group, 40px on each side */
  .ast-header-html-1 { display: flex; align-items: center; margin-left: 25px; }
  .ast-header-html-1::before { content: ""; width: 1px; height: 28px; background: #D8D0BF; margin-right: 40px; }
  .ast-header-button-1 { margin-left: 32px; }
  /* Rectangular button with slightly rounded corners */
  .ast-header-button-1 .ast-custom-button {
    border-radius: 2px;
    height: 46px;
    padding: 0 22px;
    display: inline-flex;
    align-items: center;
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
  }
}

/* Footer: logo and tagline stacked on two lines, centered */
.site-above-footer-wrap .ast-builder-grid-row { grid-template-columns: 1fr !important; justify-items: center; row-gap: 14px; }
.site-above-footer-wrap .site-footer-section { justify-content: center; text-align: center; }
.site-above-footer-wrap .ast-builder-html-element,
.site-above-footer-wrap .ast-builder-html-element p { text-align: center !important; }
/* Line under the logo row uses the same color as the old column dividers */
.site-primary-footer-wrap[data-section="section-primary-footer-builder"] { border-top-color: #D8D0BF; }
/* Remove the vertical dividers between footer columns */
@media (min-width: 922px) {
  .site-primary-footer-wrap .site-footer-section + .site-footer-section { border-left: 0; }
}

/* Footer spacing and typography */
/* Same space above the logo and below the tagline */
.site-above-footer-wrap[data-section="section-above-footer-builder"] { padding-top: 40px !important; padding-bottom: 40px !important; }
/* Column labels: bold, a little larger, 20px below each (same as Menu) */
.site-footer .site-primary-footer-wrap .dh-flabel { font-size: 16px; font-weight: 700; margin: 0 0 20px !important; }
.site-footer .site-primary-footer-wrap .footer-widget-area[data-section="sidebar-widgets-footer-widget-3"] .dh-flabel { margin-bottom: 0 !important; }
/* Tighter footer menu */
.site-footer .site-primary-footer-wrap .widget_nav_menu ul { gap: 6px; }
.site-footer .site-primary-footer-wrap .widget_nav_menu li,
.site-footer .site-primary-footer-wrap .widget_nav_menu li a { line-height: 1.3; }
/* Copyright row half as tall */
.site-below-footer-wrap[data-section="section-below-footer-builder"] { padding-top: 0 !important; padding-bottom: 0 !important; min-height: 0; }
.site-below-footer-wrap[data-section="section-below-footer-builder"] .ast-builder-grid-row { min-height: 54px; }

/* No underline on text links anywhere on the site, including hover and focus */
a, a:hover, a:focus, a:visited,
.entry-content a, .entry-content a:hover,
.fl-builder-content a, .fl-builder-content a:hover { text-decoration: none; }
/* Smaller copyright text */
.site-below-footer-wrap .ast-footer-copyright,
.site-below-footer-wrap .ast-footer-copyright p { font-size: 12px; }

/* Home, Featured products (#products) */
/* 993-1280px: photo on the left, text and product list stacked on the right */
/* 992px and below: columns stacked, photo aligned with the left edge of the text */
@media (min-width: 993px) and (max-width: 1280px) {
  #products > .fl-row-content-wrap > .fl-row-content > .fl-col-group { display: grid !important; grid-template-columns: 42% 58%; }
  #products .fl-col { width: auto !important; max-width: none !important; float: none !important; margin-left: 0 !important; }
  #products .fl-node-7eri3hu8x1o2 { grid-column: 1; grid-row: 1 / span 2; }
  #products .fl-node-yaido7kfq0wr { grid-column: 2; grid-row: 1; }
  #products .fl-node-h3b6qnpa0g5i { grid-column: 2; grid-row: 2; }
  #products .fl-node-yaido7kfq0wr > .fl-col-content { padding: 72px 64px 32px 24px !important; }
  #products .fl-node-h3b6qnpa0g5i > .fl-col-content { padding: 0 64px 72px 24px !important; }
  #products .fl-node-yaido7kfq0wr > .fl-col-content { margin-left: 0 !important; }
}
@media (max-width: 992px) {
  #products .fl-node-26r8x1scimyo { left: 68px !important; right: 68px !important; }
  #products .fl-node-26r8x1scimyo img { object-position: left bottom !important; }
}
@media (max-width: 768px) {
  #products .fl-node-26r8x1scimyo { left: 44px !important; right: 44px !important; }
}

/* dh-footer-separator: line under the footer logo/tagline limited to the width of the footer columns (1200px grid row) */
.site-primary-footer-wrap[data-section="section-primary-footer-builder"] { border-top-width: 0 !important; }
.site-primary-footer-wrap .site-primary-footer-inner-wrap { position: relative; }
.site-primary-footer-wrap .site-primary-footer-inner-wrap::before { content: ""; position: absolute; left: 0; right: 0; top: -28px; height: 1px; background: #D8D0BF; }
@media (max-width: 921px) { .site-primary-footer-wrap .site-primary-footer-inner-wrap::before { top: -24px; } }
@media (max-width: 544px) { .site-primary-footer-wrap .site-primary-footer-inner-wrap::before { top: -20px; } }

/* Copyright row: same background as the footer, separated by a line limited to the width of the footer columns above (1200px grid row) */
.site-below-footer-wrap[data-section="section-below-footer-builder"] { border-top-width: 0 !important; background-color: #E9E2D3 !important; }
.site-below-footer-wrap .ast-builder-grid-row { position: relative; }
.site-below-footer-wrap .ast-builder-grid-row::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: #D8D0BF; }

/* Footer: center the content whenever a footer row collapses to a single column */
/* Primary footer is one column on phones (Astra mobile breakpoint, 544px and below) */
@media (max-width: 544px) {
  .site-primary-footer-wrap .site-footer-section { justify-content: center; text-align: center; }
  .site-footer .site-primary-footer-wrap .footer-widget-area,
  .site-footer .site-primary-footer-wrap .widget,
  .site-footer .site-primary-footer-wrap .widget p,
  .site-footer .site-primary-footer-wrap .widget li { text-align: center !important; }
  .site-footer .site-primary-footer-wrap .widget_nav_menu ul { align-items: center; }
}
/* Copyright row is always a single column */
.site-below-footer-wrap .site-footer-section { justify-content: center; text-align: center; }
.site-below-footer-wrap .ast-footer-copyright,
.site-below-footer-wrap .ast-footer-copyright p { text-align: center !important; }

/* Labels font: Barlow Condensed replaces IBM Plex Mono site-wide
   (overrides the rules in the child theme style.css and the page header inline CSS) */
.site-footer .dh-flabel,
.site-below-footer-wrap,
body .dh-page-header__breadcrumb { font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif; }

/* Headings font: Archivo 700 replaces Bricolage Grotesque site-wide
   (overrides the page header title rule from the child theme functions.php) */
body .dh-page-header .dh-page-header__title { font-family: 'Archivo', 'Arial Narrow', sans-serif; font-weight: 700; }

/* Barlow Condensed labels: about 2px larger than the old IBM Plex Mono sizes (Barlow Condensed renders smaller) */
.fl-builder-content .dh-eyebrow,
.fl-builder-content .dh-eyebrow p,
.fl-builder-content .bb-eyebrow,
.fl-builder-content .dh-ledger li span,
.fl-builder-content .dh-sub p { font-size: 15px !important; }
.dh-page-header__breadcrumb,
.dh-page-header__breadcrumb a,
.dh-page-header__breadcrumb span { font-size: 13px !important; }
.site-footer .site-primary-footer-wrap .dh-flabel { font-size: 18px; }
.site-above-footer-wrap .ast-builder-html-element p { font-size: 14px !important; }
.site-below-footer-wrap .ast-footer-copyright,
.site-below-footer-wrap .ast-footer-copyright p { font-size: 14px; }

/* Header: Astra's generated CSS still shows the desktop header from 922px; the breakpoint filter moves it to 1080px, so hide the desktop header and show the mobile one in between */
@media (min-width: 922px) and (max-width: 1079px) {
  #ast-desktop-header { display: none !important; }
  #ast-mobile-header { display: block !important; }
  /* Match the 921px-and-below mobile header bar height (Astra's tablet padding only applies up to 921px) */
  .ast-header-break-point #masthead #ast-mobile-header .ast-primary-header-bar.main-header-bar { padding-top: 10px; padding-bottom: 10px; }
}

/* Header: transitional desktop widths (1080-1279px) - icon-only phone, tighter menu spacing so everything stays on one row */
@media (min-width: 1080px) and (max-width: 1279px) {
  #ast-desktop-header .dh-phone { font-size: 0; gap: 0; width: 40px; height: 40px; justify-content: center; }
  #ast-desktop-header .dh-phone .dh-phone-ico { width: 22px; height: 22px; }
  #ast-desktop-header .main-header-menu > .menu-item > .menu-link { padding-left: 10px; padding-right: 10px; }
  #ast-desktop-header .ast-header-html-1 { margin-left: 10px; }
  #ast-desktop-header .ast-custom-button { white-space: nowrap; }
}

/* Header: very narrow phones - shrink logo and trigger so the hamburger stays on screen */
@media (max-width: 379px) {
  #ast-mobile-header .custom-logo-link img { max-width: 130px; height: auto; }
  #ast-mobile-header .menu-toggle { padding-left: 8px; padding-right: 8px; }
  #ast-mobile-header .ast-header-html-2 { margin-right: 4px; }
}
@media (max-width: 300px) {
  #ast-mobile-header .custom-logo-link img { max-width: 110px; }
}

/* Home fact ledger (under the hero slider), desktop: equal-height boxes, dividers at 70% of box height */
@media (min-width: 993px) {
  .dh-facts.fl-node-5hx3qe1v82gj .fl-col > .fl-col-content { height: 100%; border-left: 0; position: relative; }
  .dh-facts.fl-node-5hx3qe1v82gj .fl-col + .fl-col > .fl-col-content::before {
    content: "";
    position: absolute;
    left: 0;
    top: 15%;
    width: 1px;
    height: 70%;
    background: #D8D0BF;
  }
}

/* Home fact ledger, tablet and mobile (2x2): all four boxes the same height, vertical divider at 70% of box height */
@media (max-width: 992px) {
  .dh-facts.fl-node-5hx3qe1v82gj .fl-col-group { display: grid !important; grid-template-columns: 1fr 1fr; grid-auto-rows: 1fr; }
  /* Beaver Builder clearfix pseudo-elements would take grid cells */
  .dh-facts.fl-node-5hx3qe1v82gj .fl-col-group::before,
  .dh-facts.fl-node-5hx3qe1v82gj .fl-col-group::after { display: none; }
  .dh-facts.fl-node-5hx3qe1v82gj .fl-col-group > .fl-col { width: 100% !important; max-width: none !important; flex: none !important; }
  .dh-facts.fl-node-5hx3qe1v82gj .fl-col > .fl-col-content { height: 100%; position: relative; }
  .dh-facts.fl-node-5hx3qe1v82gj .fl-col:nth-child(2n) > .fl-col-content { border-left: 0; }
  .dh-facts.fl-node-5hx3qe1v82gj .fl-col:nth-child(2n) > .fl-col-content::before {
    content: "";
    position: absolute;
    left: 0;
    top: 15%;
    width: 1px;
    height: 70%;
    background: #D8D0BF;
  }
}


/* JL Gonzalez: keep the logo inline with the header row (cancel the child theme logo overhang onto the hero slider) */
.site-branding { margin: 0; }

/* JL Gonzalez: keep the header button label on one line */
.ast-header-button-1 .ast-custom-button { white-space: nowrap; }
