/* ================================================================
   BLUE BINS — Global Styles
   Loaded on every page (except cart & checkout).
   Covers: fonts, CSS variables, header, nav, hamburger, footer.
   bb-global.css
   ================================================================ */

/* ── CSS Custom Properties ──────────────────────────────────────── */
:root {
  --bb-navy:   #0A1628;
  --bb-blue:   #1B6FE8;
  --bb-sky:    #3B9EFF;
  --bb-green:  #22C55E;
  --bb-gold:   #F59E0B;
  --bb-white:  #FFFFFF;
  --bb-grey:   #F3F6FB;
  --bb-muted:  #6B7280;
  --bb-border: #E5EAF2;
  --bb-danger: #EF4444;

  --ff-display: 'Sora', system-ui, sans-serif;
  --ff-body:    'DM Sans', system-ui, sans-serif;
  --ff-mono:    'DM Mono', monospace;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow-sm:   0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md:   0 4px 16px rgba(0,0,0,.10), 0 2px 6px rgba(0,0,0,.06);
  --shadow-lg:   0 16px 48px rgba(0,0,0,.15), 0 4px 16px rgba(0,0,0,.08);
  --shadow-glow: 0 0 40px rgba(27,111,232,.20);

  --transition: .2s cubic-bezier(.4,0,.2,1);
}

/* ── Base typography ────────────────────────────────────────────── */
body {
  font-family: var(--ff-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

*, *::before, *::after { box-sizing: border-box; }

/* ── Site container ─────────────────────────────────────────────── */
.site-container {
  background: #ffffff;
}

/* ================================================================
   TOP BAR
   ================================================================ */
.bb-topbar {
  background: var(--bb-navy);
  color: #fff;
}

.bb-topbar__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 8px 24px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
}

.bb-topbar__link--phone {
  margin-right: auto;
}

.bb-topbar__link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: rgba(255,255,255,.92);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
}

.bb-topbar__link:hover {
  color: #fff;
}

.bb-topbar__book {
  border-radius: 7px;
  padding: 6px 10px;
  background: var(--bb-blue);
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  font-family: var(--ff-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  cursor: pointer;
}

.bb-topbar__book:hover {
  background: var(--bb-sky);
}

/* ================================================================
   HEADER
   ================================================================ */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid rgba(10,22,40,.08);
  box-shadow: 0 1px 16px rgba(10,22,40,.06);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 200;
}

.site-header .wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}

/* ── Logo ───────────────────────────────────────────────────────── */
.title-area {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  max-width: 390px;
}

.bb-logo-link,
.title-area .custom-logo-link {
  display: block;
  line-height: 0;
}

.bb-logo,
.title-area .custom-logo {
  height: 72px !important;
  width: auto;
  display: block;
  max-width: 100%;
}

.title-area .custom-logo-link img {
  height: 72px !important;
  width: auto !important;
  max-width: 100%;
}

/* Accessible site-title text (visually hidden) */
.site-title {
  margin: 0;
}

.site-title.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ================================================================
   PRIMARY NAV
   ================================================================ */

/* Hard ul reset — defeats theme/plugin default bullets */
.nav-primary ul,
.nav-primary ul li {
  list-style: none !important;
  margin: 0;
  padding: 0;
  border: none;
  background: none;
}

.nav-primary {
  background: transparent;
  display: flex;
  align-items: center;
}

.nav-primary .genesis-nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  padding: 0;
  margin: 0;
  background: transparent;
}

.nav-primary .genesis-nav-menu li {
  margin: 0;
  padding: 0;
  background: transparent;
  position: relative;
}

.nav-primary .genesis-nav-menu > li > a {
  color: var(--bb-navy);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--ff-display);
  letter-spacing: .01em;
  padding: 8px 14px;
  border-radius: 6px;
  transition: color .2s ease, background .2s ease;
  display: block;
  white-space: nowrap;
}

.nav-primary .genesis-nav-menu > li > a:hover {
  color: var(--bb-blue);
  background: rgba(27,111,232,.06);
}

/* Active / current page highlight */
.nav-primary .genesis-nav-menu .current-menu-item > a,
.nav-primary .genesis-nav-menu .current-page-ancestor > a {
  color: var(--bb-blue);
}

/* Last nav item → "Book a Bin" CTA pill */
.nav-primary .genesis-nav-menu > li:last-child > a {
  background: var(--bb-blue);
  color: #ffffff;
  border-radius: 8px;
  padding: 9px 18px;
  margin-left: 8px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.nav-primary .genesis-nav-menu > li:last-child > a::before {
  content: "";
  width: 12px;
  height: 12px;
  background-repeat: no-repeat;
  background-size: 12px 12px;
  background-position: center;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M4 6h16a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2z' stroke='white' stroke-width='2'/%3E%3Cpath d='M22 8l-10 7L2 8' stroke='white' stroke-width='2'/%3E%3C/svg%3E");
}

.nav-primary .genesis-nav-menu > li:last-child > a:hover {
  background: var(--bb-sky);
  color: #ffffff;
}

/* Dropdown sub-menus */
.nav-primary .genesis-nav-menu .sub-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 200px;
  background: #ffffff;
  border: 1px solid rgba(10,22,40,.08);
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(10,22,40,.12);
  padding: 6px;
  list-style: none;
  margin: 0;
  z-index: 300;
}

.nav-primary .genesis-nav-menu li:hover > .sub-menu,
.nav-primary .genesis-nav-menu li:focus-within > .sub-menu {
  display: block;
}

.nav-primary .genesis-nav-menu .sub-menu a {
  color: var(--bb-navy);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 6px;
  display: block;
  white-space: nowrap;
  text-decoration: none;
}

.nav-primary .genesis-nav-menu .sub-menu a:hover {
  background: rgba(27,111,232,.06);
  color: var(--bb-blue);
}

/* ================================================================
   HAMBURGER BUTTON
   ================================================================ */
.bb-hamburger {
  display: none; /* shown only at ≤768px */
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1.5px solid rgba(10,22,40,.15);
  border-radius: 8px;
  cursor: pointer;
  padding: 8px;
  flex-shrink: 0;
  transition: border-color .2s ease;
  order: 3;
}

.bb-hamburger:hover {
  border-color: var(--bb-blue);
}

.bb-hamburger__bar {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--bb-navy);
  border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease;
  transform-origin: center;
}

/* Animate bars → ✕ when open */
.bb-hamburger[aria-expanded="true"] .bb-hamburger__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.bb-hamburger[aria-expanded="true"] .bb-hamburger__bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.bb-hamburger[aria-expanded="true"] .bb-hamburger__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ================================================================
   FOOTER
   ================================================================ */
.bb-prefooter-cta {
  background:
    linear-gradient(135deg, rgba(10, 22, 40, 0.96) 0%, rgba(8, 31, 70, 0.98) 100%),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 26px);
  border-top: 1px solid rgba(255,255,255,.08);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.bb-prefooter-cta__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 52px 24px;
  text-align: center;
}

.bb-prefooter-cta__title {
  margin: 0;
  color: #ffffff;
  font-family: var(--ff-display);
  font-size: clamp(34px, 5vw, 64px);
  font-weight: 800;
  line-height: .95;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.bb-col-head {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.bb-col-head svg {
  color: #F9C62E;
  flex-shrink: 0;
}

.bb-prefooter-cta__title span {
  color: #F9C62E;
}

.bb-prefooter-cta__text {
  max-width: 620px;
  margin: 18px auto 0;
  color: rgba(255,255,255,.86);
  font-size: 18px;
  line-height: 1.55;
}

.bb-prefooter-cta__actions {
  margin-top: 24px;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.bb-prefooter-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 220px;
  padding: 12px 18px;
  border-radius: 2px;
  font-family: var(--ff-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all var(--transition);
}

.bb-prefooter-btn--primary {
  background: #F9C62E;
  color: #0A1628;
  border: 1px solid #F9C62E;
}

.bb-prefooter-btn--primary:hover {
  background: #ffd75a;
  border-color: #ffd75a;
}

.bb-prefooter-btn--outline {
  color: #ffffff;
  border: 1px solid rgba(255,255,255,.9);
}

.bb-prefooter-btn--outline:hover {
  background: rgba(255,255,255,.08);
}

.bb-btn-icon {
  flex-shrink: 0;
}

.site-footer {
  background: #03070f;
}

.bb-footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 58px 24px 36px;
  display: grid;
  grid-template-columns: minmax(240px, 1.2fr) repeat(3, minmax(170px, 1fr));
  gap: 34px;
}

.bb-footer-brand p,
.bb-footer-col li,
.bb-footer-col a {
  color: rgba(231, 237, 249, 0.76);
  font-size: 15px;
  line-height: 1.65;
}

.bb-footer-logo {
  display: block;
  width: 244px;
  height: auto;
  margin-bottom: 18px;
  filter: brightness(1.18) saturate(1.1);
}

.bb-footer-col h3 {
  margin: 0 0 14px;
  color: #ffffff;
  font-family: var(--ff-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.bb-footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.bb-footer-col li {
  margin: 0 0 8px;
}

.bb-footer-col a {
  text-decoration: none;
}

.bb-footer-col a:hover {
  color: #ffffff;
}

.bb-footer-contact strong {
  color: #ffffff;
  font-size: 18px;
}

.bb-contact-list li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: start;
  margin-bottom: 11px;
}

.bb-contact-list li svg {
  color: #F9C62E;
  margin-top: 3px;
}

.bb-footer-bottom {
  border-top: 1px solid rgba(255,255,255,.09);
}

.bb-footer-bottom .wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px 20px;
}

.bb-footer-bottom p {
  margin: 0;
  color: rgba(255,255,255,.54);
  font-size: 13px;
}

/* ================================================================
   INNER PAGE — site-inner content area
   ================================================================ */
.site-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px 64px;
}

.bb-checkout-summary {
  border: 1px solid var(--bb-border);
  border-left: 4px solid var(--bb-blue);
  border-radius: 10px;
  background: #f8fbff;
  padding: 14px 16px;
  margin-bottom: 18px;
}

.bb-checkout-summary__title {
  margin: 0 0 8px;
  font-size: 16px;
  font-family: var(--ff-display);
  color: var(--bb-navy);
}

.bb-checkout-summary__list {
  margin: 0;
  padding-left: 18px;
}

.bb-checkout-summary__list li {
  margin: 0 0 4px;
  color: #334155;
  font-size: 14px;
}

.bb-faq-page-wrap {
  max-width: 960px;
}

.bb-faq-page-header {
  margin-bottom: 20px;
}

.bb-faq-page-header p {
  margin: 10px 0 0;
  color: var(--bb-muted);
  font-size: 16px;
}

.bb-faq {
  padding: 10px 0 30px;
}

.bb-faq__grid {
  max-width: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bb-faq-item {
  background: #fff;
  border: 1px solid var(--bb-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.bb-faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--ff-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--bb-navy);
  text-align: left;
}

.bb-faq-q:hover {
  background: var(--bb-grey);
}

.bb-faq-icon {
  font-size: 22px;
  font-weight: 300;
  color: var(--bb-blue);
  flex-shrink: 0;
  transition: transform var(--transition);
}

.bb-faq-q[aria-expanded="true"] .bb-faq-icon {
  transform: rotate(45deg);
}

.bb-faq-a {
  display: none;
  padding: 14px 22px 18px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--bb-muted);
  border-top: 1px solid var(--bb-border);
}

.bb-faq-a.open {
  display: block;
}

.bb-faq-page-note {
  margin-top: 20px;
  background: #f3f6fb;
  border: 1px solid var(--bb-border);
  border-left: 4px solid var(--bb-blue);
  border-radius: 10px;
  padding: 14px 16px;
}

.bb-faq-page-note p {
  margin: 0;
  color: #334155;
  line-height: 1.6;
}

.bb-faq-page-note p + p {
  margin-top: 10px;
}

/* ================================================================
   WOOCOMMERCE BUTTON OVERRIDES
   ================================================================ */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt,
.woocommerce #respond input#submit.alt,
.wc-block-components-button,
.wc-block-cart__submit-button,
.wc-block-components-checkout-place-order-button,
.wc-block-components-form .wc-block-components-button {
  background: var(--bb-blue) !important;
  border-color: var(--bb-blue) !important;
  border-width: 2px !important;
  border-style: solid !important;
  color: #ffffff !important;
  border-radius: 50px !important;
  font-family: var(--ff-display) !important;
  font-weight: 700 !important;
  font-size: 15px !important;
  line-height: 1 !important;
  padding: 14px 28px !important;
  letter-spacing: .01em;
  text-transform: none !important;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover,
.woocommerce #respond input#submit.alt:hover,
.wc-block-components-button:hover,
.wc-block-cart__submit-button:hover,
.wc-block-components-checkout-place-order-button:hover,
.wc-block-components-form .wc-block-components-button:hover {
  background: #1457C4 !important;
  border-color: #1457C4 !important;
  color: #ffffff !important;
}

.woocommerce a.button:focus,
.woocommerce button.button:focus,
.woocommerce input.button:focus,
.woocommerce #respond input#submit:focus,
.wc-block-components-button:focus,
.wc-block-cart__submit-button:focus,
.wc-block-components-checkout-place-order-button:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(27,111,232,.25) !important;
}

/* ================================================================
   MOBILE — RESPONSIVE HEADER & NAV
   ================================================================ */
@media (max-width: 768px) {

  .bb-topbar__inner {
    padding: 8px 16px;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
  }

  .bb-topbar__link {
    font-size: 12px;
  }

  .site-header .wrap {
    position: relative;
    flex-wrap: nowrap;
    padding: 0 16px;
    min-height: 60px;
  }

  .title-area {
    max-width: calc(100% - 68px);
  }

  .bb-logo,
  .title-area .custom-logo,
  .title-area .custom-logo-link img {
    height: 40px !important;
  }

  /* Show hamburger on mobile */
  .bb-hamburger {
    display: flex;
    order: 2;
  }

  /* Nav collapses to a slide-down drawer */
  .nav-primary {
    order: 3;
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    z-index: 260;
    background: #ffffff;
    border: 1px solid rgba(10,22,40,.08);
    border-top: none;
    box-shadow: 0 14px 28px rgba(10,22,40,.18);
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease, padding .35s ease;
    padding: 0;
    pointer-events: none;
  }

  .nav-primary.bb-nav-open {
    max-height: calc(100vh - 120px);
    padding: 8px 0 12px;
    overflow-y: auto;
    pointer-events: auto;
  }

  .nav-primary .genesis-nav-menu {
    flex-direction: column;
    gap: 0;
    width: 100%;
  }

  .nav-primary .genesis-nav-menu > li {
    width: 100%;
  }

  .nav-primary .genesis-nav-menu > li > a {
    padding: 12px 16px;
    border-radius: 0;
    font-size: 15px;
    display: block;
    width: 100%;
  }

  /* Book a Bin — full-width centred button on mobile */
  .nav-primary .genesis-nav-menu > li:last-child > a {
    background: var(--bb-blue);
    color: #ffffff;
    border-radius: 8px;
    margin: 8px 16px 4px;
    width: calc(100% - 32px);
    text-align: center;
    padding: 13px 18px;
  }

  /* Sub-menus go inline on mobile */
  .nav-primary .genesis-nav-menu .sub-menu {
    position: static;
    box-shadow: none;
    border: none;
    border-radius: 0;
    padding: 0 0 4px 12px;
    background: rgba(10,22,40,.03);
  }

  .bb-prefooter-cta__inner {
    padding: 40px 16px;
  }

  .bb-prefooter-cta__text {
    font-size: 16px;
  }

  .bb-prefooter-btn {
    width: 100%;
    max-width: 340px;
  }

  .bb-footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 38px 16px 24px;
  }

  .bb-footer-logo {
    width: 220px;
  }

  .bb-footer-bottom .wrap {
    padding: 14px 16px 18px;
  }
}

@media (max-width: 480px) {
  .site-inner { padding: 32px 16px 48px; }
}
