@media (max-width: 768px) {
    /* Brute-force the headline to shrink */
    body.home * {
        word-break: normal !important; 
    }
    body.home h1, 
    body.home .vc_custom_heading, 
    body.home .wpb_text_column h1 {
        font-size: 26px !important;
        line-height: 1.2 !important;
        letter-spacing: 0 !important;
    }

    /* Shrink the massive header spacing and logo */
    body.home .site-header, 
    body.home .inside-header {
        padding-top: 5px !important;
        padding-bottom: 5px !important;
    }
    body.home .site-logo img, 
    body.home .custom-logo {
        max-height: 60px !important;
        width: auto !important;
    }

    /* Pull the WPBakery container and search bar up */
    body.home .vc_row {
        padding-top: 10px !important;
        margin-top: 0 !important;
    }
    body.home form.search-form, 
    body.home .wp-block-search {
        margin-top: 10px !important;
    }
}
#masthead.is-fixed {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  transform: translateZ(0);
  will-change: transform;
}
body.is-sticky {
  padding-top: 100px; /* Adjust to match the exact pixel height of your header */
}
#masthead {
  position: sticky;
  top: 0;
  z-index: 99999;
  background-color: #ffffff;
  width: 100%;
  box-sizing: border-box;
  transition: none !important;
}

.custom-bebas-font, .custom-bebas-font h1, .custom-bebas-font h2 {
  font-family: 'Bebas Neue', sans-serif !important;
}

.site-footer a {
    text-decoration: none;
}
.site-footer .footer-widgets .inside-footer-widgets > div:first-child {
    margin-right: 80px;
	

}

.site-info {
    display: none;
}
.site-footer .footer-widgets-container, 
.site-footer .inside-footer-widgets {
    display: flex;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-widgets .widget {
    text-align: left; /* keeps text left-aligned inside each column */
}
.site-footer .footer-widgets-container, 
.site-footer .inside-footer-widgets {
    display: flex;
    justify-content: center;
    gap: 60px; /* Adjust this value (e.g., 60px to 80px) to control space between columns */
    max-width: 1200px;
    margin: 0 auto;
}

.footer-widgets .widget {
    text-align: left;
}

.footer-widgets .inside-footer-widgets > div:first-child {
    flex: 2; /* Expands the column width */
    max-width: 440px; /* Gives plenty of room for both paragraphs */
}

.footer-widgets .inside-footer-widgets > div:first-child p {
    max-width: 400px; /* Keeps your intro paragraph comfortably proportioned */
}
.site-footer .footer-widgets-container, 
.site-footer .inside-footer-widgets {
    display: flex;
    justify-content: center;
    gap: 50px; /* Reduced gap slightly from 60px to give columns more breathing room */
    max-width: 1250px; /* Expands the total container width slightly */
    margin: 0 auto;
}

.footer-widgets .inside-footer-widgets > div:first-child {
    flex: 2;
    max-width: 440px;
}

.footer-widgets .inside-footer-widgets > div:nth-child(2) {
    min-width: 170px; /* Ensures the Quick Links column is wide enough for "List Your Business" */
}

.footer-widgets .inside-footer-widgets > div:first-child p {
    max-width: 400px;
}


}

/* 4-Column Grid Container */
.brewery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1480px; /* Accommodates 350px cards comfortably */
    margin: 0 auto;
    padding: 20px 0;
}

/* Individual Brewery Card Styling matching your specs */
.brewery-card {
    width: 350px;
    height: 350px;
    background: #ffffff;
    border: 1px solid #E0E0E0;
    box-sizing: border-box;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    text-align: center;
    margin: 0 auto;
}

/* Logo Image Dimensions */
.brewery-flag img {
    width: 150px;
    height: 150px;
    object-fit: contain;
}

/* Typography Controls matching your spec */
.brewery-info {
    width: 100%;
}

.brewery-info h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 24px;
    font-weight: 400;
    color: #271D47;
    margin: 0 0 8px 0;
    line-height: 1.1;
    letter-spacing: 0.5px;
}

.brewery-city, .brewery-phone {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: #271D47;
    margin: 2px 0;
}

/* Pagination Styling */
.brewery-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 40px 0;
    grid-column: 1 / -1;
}

.brewery-pagination a {
    padding: 8px 14px;
    border: 1px solid #E0E0E0;
    border-radius: 4px;
    text-decoration: none;
    color: #271D47;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
    background: #fff;
    transition: all 0.2s ease;
}

.brewery-pagination a.active {
    background: #271D47;
    color: #fff;
    border-color: #271D47;
}

.brewery-pagination a:hover:not(.active) {
    background: #f7fafc;
}

/* Responsive adjustments */
@media (max-width: 1400px) {
    .brewery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 768px) {
    .brewery-grid {
        grid-template-columns: 1fr;
    }
}

.wp-block-cover.alignfull {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
}

html, body {
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}
body {
    position: relative;
    width: 100%;
}
.site-footer,
#colophon {
    position: relative !important;
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    background-color: #271D47 !important;
    box-sizing: border-box !important;
}
.site-footer .inside-footer,
#colophon .inside-footer,
.site-footer .grid-container,
#colophon .grid-container {
    max-width: 1200px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
    box-sizing: border-box !important;
    background-color: transparent !important;
}

@media (max-width: 768px) {
    /* Force inner content padding on the cover/hero container holding the search block */
    .wp-block-cover__inner-container, 
    .wp-block-cover {
        padding-left: 20px !important;
        padding-right: 20px !important;
        box-sizing: border-box !important;
    }
    
    .wp-block-search {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .wp-block-search__inside-wrapper {
        width: 100% !important;
        box-sizing: border-box !important;
    }
}

@media (max-width: 768px) {
    /* Target whatever class wraps your 4 directory regional cards */
    .wp-block-columns, .regional-cards-wrapper {
        padding-left: 12px !important;
        padding-right: 12px !important;
        box-sizing: border-box !important;
    }
    
    /* Force text and buttons inside regional cards to absolute center */
    .regional-card, .wp-block-column {
        text-align: center !important;
    }
}


}
@media (max-width: 600px) {

  /* 1. Bigger headline */
  .tcbf-hero h1,
  .tcbf-hero .tcbf-hero__title,
  .tcbf-hero .elementor-heading-title,
  .hero-wrap h1,
  .hero-wrap .elementor-heading-title {
    font-size: clamp(48px, 14vw, 64px) !important;
    line-height: 1.02 !important;
    text-wrap: balance;
  }

  /* 2. Smaller, tighter subhead */
  .tcbf-hero p,
  .tcbf-hero .tcbf-hero__sub,
  .hero-wrap p {
    font-size: 18px !important;
    line-height: 1.4 !important;
    text-wrap: balance;
  }

  /* 3. Hide the manual line break that strands "or" */
  .tcbf-hero p br,
  .hero-wrap p br {
    display: none;
  }

  /* 4. Shorter search placeholder text so it fits */
  .tcbf-hero input::placeholder,
  .hero-wrap input::placeholder {
    font-size: 14px;
  }

  /* 5. Pills: two even columns */
  .tcbf-hero-links .tcbf-pills {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    max-width: 340px;
  }
  .tcbf-hero-links .tcbf-pill {
    text-align: center;
    padding: 9px 8px;
    font-size: 13px;
    white-space: nowrap;
  }
}
@media (max-width: 600px) {
  .tcbf-hero.wp-block-cover {
    min-height: 0 !important;
    padding-top: 24px !important;
    padding-bottom: 32px !important;
  }
}
.woocommerce-product-gallery__trigger,
.zoomImg {
    display: none !important;
}

.woocommerce-product-gallery__image a {
    pointer-events: none;
    cursor: default;
}
/* ===== Brand colors ===== */
:root {
  --tcbf-purple: #271D47;
  --tcbf-gold: #D97706;
  --tcbf-cream: #FCF6EA;
}

/* ===== Nav CTA button: List Your Brewery ===== */
.main-navigation .main-nav ul li.nav-cta {
  display: flex;
  align-items: center;
}
.main-navigation .main-nav ul li.nav-cta > a {
  background-color: var(--tcbf-purple) !important;
  color: var(--tcbf-cream) !important;
  padding: 0 22px !important;
  line-height: 44px !important;
  border-radius: 4px;
  font-weight: 600;
  margin-left: 12px;
}
.main-navigation .main-nav ul li.nav-cta:hover > a,
.main-navigation .main-nav ul li.nav-cta > a:focus {
  background-color: var(--tcbf-gold) !important;
  color: var(--tcbf-purple) !important;
}

/* Mobile menu: full-width button */
.main-navigation.toggled .main-nav ul li.nav-cta > a {
  display: block;
  text-align: center;
  margin: 10px 20px;
}

/* ===== Nav link colors ===== */
.main-navigation .main-nav ul li:not(.nav-cta) > a {
  color: var(--tcbf-purple) !important;
  font-weight: 500;
}
.main-navigation .main-nav ul li:not(.nav-cta):hover > a {
  color: var(--tcbf-gold) !important;
}
/* Current page: purple text plus a gold underline */
.main-navigation .main-nav ul li[class*="current-menu-"]:not(.nav-cta) > a {
  color: var(--tcbf-purple) !important;
  box-shadow: inset 0 -3px 0 var(--tcbf-gold);
}
/* Newsletter form: center at 440px */
.tcbf-newsletter-form {
  width: 100%;
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
}
.tcbf-newsletter-form > * {
  width: 100% !important;
  max-width: 100% !important;
}
/* Newsletter email field: white background */
body .wp-block-cover input[type="email"],
body .wp-block-cover input[type="text"],
body .wp-block-cover [class*="jetpack-subscriptions"] input,
body .tcbf-newsletter-form input {
  background: #FFFFFF !important;
  background-color: #FFFFFF !important;
  color: #271D47 !important;
  border: 1px solid #271D47 !important;
}
body .wp-block-cover input[type="email"]::placeholder,
body .tcbf-newsletter-form input::placeholder {
  color: #6B6580 !important;
  opacity: 1 !important;
}

/* Footer links: gold on hover */
.site-footer a:hover,
.site-footer a:focus,
.site-footer .widget a:hover,
.site-footer .widget a:focus,
#colophon a:hover,
#colophon a:focus {
  color: #D97706 !important;
}
/* Bolder hero headline on phones and tablets */
@media (max-width: 768px) {
  html body.home .wp-block-cover h1 {
    font-size: clamp(44px, 11.5vw, 64px) !important;
    line-height: 1.02 !important;
    letter-spacing: 0.01em !important;
    text-wrap: balance;
  }
  html body.home .wp-block-cover h1 + p {
    font-size: 18px !important;
    line-height: 1.4 !important;
    text-wrap: balance;
  }
}
