/*
Theme Name: BDC Hello
Theme URI: https://staging.amarillobud.com/
Description: Child theme of Hello Elementor for BDC Beverages. Layout, header, footer and global styles are managed in Elementor (Site Settings + Theme Builder). This file only holds the self-hosted heading font, the 21+ age gate and a few small helper styles.
Author: Falcon Ridge IT
Template: hello-elementor
Version: 2.0.3
Requires PHP: 8.1
License: GNU General Public License v2 or later
Text Domain: bdc-hello
*/

/* Self-hosted Oswald (used by Elementor global fonts; Google Fonts is not loaded). */
@font-face { font-family: "Oswald"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("assets/fonts/oswald-latin-var.woff2") format("woff2"); }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { -webkit-font-smoothing: antialiased; }

/* Helper classes used in the Elementor layouts (set under Advanced > CSS Classes). */
.bdc-tile { transition: transform .25s ease; }
.bdc-tile:hover { transform: translateY(-4px); }
.bdc-logo img { max-height: 70px; width: auto !important; object-fit: contain; filter: grayscale(1); opacity: .8; transition: filter .2s, opacity .2s; }
.bdc-logo img:hover { filter: none; opacity: 1; }
.bdc-gallery .gallery-item img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; height: auto; border-radius: 10px; }
.bdc-gallery .gallery-item { padding: 0 !important; }
.bdc-gallery .gallery { display: grid !important; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.bdc-gallery .gallery br { display: none; }
.bdc-gallery .gallery-item { width: auto !important; max-width: none !important; margin: 0 !important; }
@media (max-width: 767px) { .bdc-gallery .gallery { grid-template-columns: repeat(2, 1fr); } }
.bdc-map iframe { border-radius: 14px; display: block; }
.bdc-step-num .elementor-heading-title { width: 2.3rem; height: 2.3rem; border-radius: 50%; display: grid; place-items: center; }
.bdc-list ul { padding-left: 1.1rem; }
.bdc-list li { margin-bottom: .35rem; break-inside: avoid; }

/* Brands: loop grid cards, category filter chips and search box. */
.bdc-brand-card .elementor-widget-theme-post-featured-image img { height: 96px; width: auto; max-width: 100%; object-fit: contain; }
.bdc-brand-card { transition: transform .2s ease, box-shadow .2s ease; }
.bdc-brand-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(17,17,17,.12) !important; }
.bdc-filter .e-filter { gap: .5rem; flex-wrap: wrap; }
.bdc-filter .e-filter-item { font-family: "Oswald", sans-serif; text-transform: uppercase; letter-spacing: .06em; font-size: .95rem; border: 2px solid #111 !important; background: transparent; color: #111; padding: .55rem 1rem !important; border-radius: 999px !important; cursor: pointer; display: inline-flex !important; align-items: center; justify-content: center; line-height: 1 !important; text-indent: .06em; }
.bdc-filter .e-filter-item[aria-pressed="true"], .bdc-filter .e-filter-item:hover { background: #D9141E !important; border-color: #D9141E !important; color: #fff !important; }
.bdc-brand-search .elementor-search-form__container { border: 2px solid #d9d2c3; border-radius: 999px; overflow: hidden; background: #fff; min-width: 240px; }
.e-loop-item.bdc-hidden { display: none !important; }
.bdc-brand-empty { text-align: center; padding: 2rem; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .bdc-tile, .bdc-brand-card { transition: none; } }

/* ---- 21+ age gate (v1.1; z-index raised so it sits above the cookie banner and accessibility widget) ---- */
.bdc-ag-open body { overflow: hidden; }
.bdc-ag-open body::before { content: ""; position: fixed; inset: 0; z-index: 2147483645; background: rgba(17,17,17,.94); }
.bdc-ag { position: fixed; inset: 0; z-index: 2147483646; display: flex; align-items: center; justify-content: center; overflow-y: auto; padding: 1.25rem; background: rgba(17,17,17,.7); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.bdc-ag__panel { box-sizing: border-box; width: 100%; max-width: 30rem; margin: auto; background: #F7F1E6; color: #111; border-radius: 14px; border-top: 6px solid #D9141E; padding: 2.25rem 1.75rem 1.5rem; text-align: center; box-shadow: 0 24px 60px rgba(0,0,0,.45); animation: bdc-ag-in .25s ease-out; }
.bdc-ag__logo { display: block; width: min(100%, 260px); height: auto; margin: 0 auto 1.5rem; }
.bdc-ag__title { font-family: "Oswald", sans-serif; text-transform: uppercase; font-size: clamp(1.6rem, 5vw, 2.1rem); line-height: 1.1; margin: 0 0 .5rem; color: #111; font-weight: 600; }
.bdc-ag__title:focus { outline: none; }
.bdc-ag__text { margin: 0 0 1.25rem; font-size: 1rem; }
.bdc-ag__small { font-size: .9rem; color: #444; }
.bdc-ag__text a { color: #A50E17; text-decoration: underline; }
.bdc-ag__btns { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; }
.bdc-ag__btn { font: 600 1rem/1 "Oswald", sans-serif; letter-spacing: .06em; text-transform: uppercase; min-width: 9rem; min-height: 48px; padding: .9em 1.4em; border-radius: 999px; cursor: pointer; border: 2px solid #D9141E; }
.bdc-ag__yes { background: #D9141E; color: #fff; }
.bdc-ag__yes:hover { background: #A50E17; border-color: #A50E17; }
.bdc-ag__no { background: transparent; color: #A50E17; }
.bdc-ag__no:hover { background: #fff; }
.bdc-ag__btn:focus-visible, .bdc-ag__text a:focus-visible { outline: 3px solid #E2B95B; outline-offset: 3px; }
.bdc-ag__legal { margin: 1.5rem 0 0; font-size: .8rem; color: #666; }
@keyframes bdc-ag-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .bdc-ag__panel { animation: none; } }
.bdc-balance .elementor-heading-title { text-wrap: balance; }

/* Legal pages (Privacy Policy / Terms of Service) */
.bdc-legal-text code { font-size: .9em; background: #F7F1E6; padding: .05em .35em; border-radius: 4px; }
.bdc-legal-links .bdc-sep { padding: 0 .35em; }
