/*
Theme Name:     Bubs Disposal
Theme URI:      https://bubsdisposal.com
Description:    Bubs Disposal — Utah dumpster rentals, portable toilets, concrete washouts, material delivery, and metal recycling. Child theme of GeneratePress.
Author:         Bubs Disposal
Author URI:     https://bubsdisposal.com
Template:       generatepress
Version:        1.0.0
License:        GNU General Public License v2 or later
License URI:    https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:    bubs-disposal-child
Tags:           service-business, custom-colors, custom-menu, featured-images
*/

/* ================================================================
   BUBS DISPOSAL — Brand tokens
   Locked 2026-05-12. Source of truth: BRAND-BRIEF.md
   ================================================================ */
:root {
  /* Color palette */
  --bubs-navy: #3b4d62;
  --bubs-navy-deep: #2a3a4d;
  --bubs-orange: #f15922;
  --bubs-orange-deep: #c9461a;
  --bubs-off-white: #fbfaf6;
  --bubs-ink: #1a2433;
  --bubs-gray: #7a8593;
  --bubs-gray-light: #cbd1da;
  --bubs-white: #ffffff;
  --bubs-hairline: rgba(255,255,255,0.12);
  --bubs-hairline-dark: rgba(0,0,0,0.08);

  /* Typography */
  --bubs-font-heading: 'Anton', 'Montserrat Black', 'Impact', sans-serif;
  --bubs-font-body: 'Montserrat', sans-serif;
  --bubs-font-quote: 'Fraunces', serif;

  /* Layout */
  --bubs-max-width: 1500px;
  --bubs-max-width-wide: 1600px;
  --bubs-max-width-narrow: 880px;
  --bubs-content-padding: 24px;

  /* Spacing scale */
  --bubs-space-3xs: 4px;
  --bubs-space-2xs: 8px;
  --bubs-space-xs: 12px;
  --bubs-space-sm: 16px;
  --bubs-space-md: 24px;
  --bubs-space-lg: 48px;
  --bubs-space-xl: 96px;

  /* Border radius */
  --bubs-radius-pill: 50px;
  --bubs-radius-md: 4px;
  --bubs-radius-sm: 2px;

  /* Transitions */
  --bubs-transition-fast: 0.15s ease;
  --bubs-transition-base: 0.25s ease;
  --bubs-transition-slow: 0.3s cubic-bezier(0.16, 1, 0.3, 1);

  /* Shadows */
  --bubs-shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --bubs-shadow-md: 0 6px 24px -8px rgba(0,0,0,0.45);
  --bubs-shadow-orange: 0 2px 0 var(--bubs-orange-deep), 0 12px 24px -8px rgba(241,89,34,0.4);
}

/* ================================================================
   GLOBAL — Base
   ================================================================ */
html {
  background: var(--bubs-white);
  /* Stops any rogue element from causing horizontal scroll on any
     viewport. Belt-and-suspenders with body overflow-x: hidden. */
  overflow-x: hidden;
}

body {
  font-family: var(--bubs-font-body);
  color: var(--bubs-ink);
  background: var(--bubs-white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  /* Hard guarantee against horizontal scroll. Any element that tries
     to exceed viewport width gets clipped rather than triggering scroll. */
  overflow-x: hidden;
  max-width: 100vw;
}

/* Mobile safety: prevent any image/iframe/video from overflowing its
   container, which is a common source of horizontal scroll on phones. */
@media (max-width: 880px) {
  img, video, iframe, embed, object {
    max-width: 100%;
    height: auto;
  }
  /* Tables on narrow screens get a horizontal scroll on the table only,
     not the page body. */
  .bubs-svc table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* ================================================================
   TYPOGRAPHY
   ================================================================ */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4 {
  font-family: var(--bubs-font-heading);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 0.96;
  text-transform: uppercase;
  color: var(--bubs-navy);
  margin: 0 0 0.5em;
}

h1, .h1 { font-size: clamp(48px, 7vw, 108px); }
h2, .h2 { font-size: clamp(36px, 5vw, 72px); }
h3, .h3 { font-size: clamp(24px, 3vw, 38px); }
h4, .h4 { font-size: clamp(20px, 2.4vw, 30px); letter-spacing: 0.02em; }
h5 { font-size: clamp(16px, 2vw, 22px); }
h6 { font-size: clamp(14px, 1.5vw, 18px); }

p {
  font-weight: 500;
  font-size: 17px;
  margin: 0 0 18px;
}
p:last-child { margin-bottom: 0; }

p strong, strong { font-weight: 800; color: var(--bubs-navy); }

a {
  color: var(--bubs-orange);
  text-decoration: none;
  transition: color var(--bubs-transition-fast);
}
a:hover { color: var(--bubs-orange-deep); }

/* Eyebrow text (small uppercase labels above headings) */
.bubs-eyebrow {
  font-family: var(--bubs-font-body);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bubs-orange);
  display: inline-block;
  margin-bottom: 10px;
}

/* Pull quote (Fraunces italic) */
.bubs-quote {
  font-family: var(--bubs-font-quote);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(22px, 2.8vw, 32px);
  line-height: 1.35;
  color: var(--bubs-navy);
}

/* Orange chip / stamp */
.bubs-stamp {
  display: inline-block;
  padding: 5px 12px;
  background: var(--bubs-orange);
  color: var(--bubs-white);
  font-family: var(--bubs-font-body);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-radius: var(--bubs-radius-sm);
  line-height: 1.3;
}

/* ================================================================
   BUTTONS
   ================================================================ */
.bubs-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px 32px;
  background: var(--bubs-orange);
  color: var(--bubs-white) !important;
  font-family: var(--bubs-font-body);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none !important;
  border: 0;
  border-radius: var(--bubs-radius-sm);
  box-shadow: var(--bubs-shadow-orange);
  transition: transform var(--bubs-transition-fast), box-shadow var(--bubs-transition-fast), background var(--bubs-transition-fast);
  cursor: pointer;
  text-align: center;
}
.bubs-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 0 var(--bubs-orange-deep), 0 18px 30px -8px rgba(241,89,34,0.5);
  background: var(--bubs-orange-deep);
  color: var(--bubs-white) !important;
}

/* Pill variant (matches "Schedule Service" header CTA) */
.bubs-btn-pill {
  border-radius: var(--bubs-radius-pill);
  padding: 13px 32px;
  font-size: 14px;
  letter-spacing: 0.02em;
  text-transform: none;
  font-weight: 700;
  box-shadow: none;
}
.bubs-btn-pill:hover {
  box-shadow: 0 4px 12px -2px rgba(241,89,34,0.35);
}

/* Ghost / outline button */
.bubs-btn-ghost {
  background: transparent;
  color: var(--bubs-navy) !important;
  border: 2px solid var(--bubs-navy);
  box-shadow: none;
  padding: 16px 26px;
}
.bubs-btn-ghost:hover {
  background: var(--bubs-navy);
  color: var(--bubs-white) !important;
}
.bubs-btn-ghost.on-dark {
  color: var(--bubs-white) !important;
  border-color: var(--bubs-white);
}
.bubs-btn-ghost.on-dark:hover {
  background: var(--bubs-white);
  color: var(--bubs-navy) !important;
}

/* ================================================================
   ACCESSIBILITY
   ================================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

*:focus-visible {
  outline: 2px solid var(--bubs-orange);
  outline-offset: 2px;
}

.bubs-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
