/* ==========================================================================
   Big Dog Bins — styles.css
   Brand: bold, local, blue-collar. Red bins, Cooper-Black-style lettering.
   ========================================================================== */

:root {
  --red: #CE1B22;
  --red-dark: #A5141A;
  --charcoal: #1A1A1A;
  --ink: #2A2A2A;
  --bg: #F7F3EC;
  --kraft: #E4DAC8;
  --white: #FFFFFF;
  --stone: #6B6B6B;

  --font-display: 'Alfa Slab One', 'Arial Black', sans-serif;
  --font-serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-ui: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --container: 1200px;
  --gap: clamp(1.5rem, 4vw, 4rem);
  --radius: 14px;
  --shadow: 0 12px 30px rgba(26, 26, 26, 0.12);
  --shadow-lg: 0 24px 60px rgba(26, 26, 26, 0.22);
  --header-h: 76px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font-family: var(--font-serif);
  font-optical-sizing: auto;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip; /* guard against accidental horizontal scroll */
}
img { max-width: 100%; display: block; height: auto; }
a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.05; margin: 0 0 0.5em; }
h1, h2 { font-family: var(--font-display); font-weight: 400; letter-spacing: -0.01em; overflow-wrap: break-word; }
h2 { text-wrap: balance; }
h3 { font-family: var(--font-serif); font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1rem; }
ul { margin: 0; padding: 0; list-style: none; }

.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section--dark { background: var(--charcoal); color: var(--white); }
.section--dark h2 { color: var(--white); }

.sr-only, .hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -3rem; z-index: 200;
  background: var(--red); color: #fff; padding: 0.6rem 1rem; border-radius: 0 0 8px 8px;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; text-decoration: none; }

:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 4px; }
.section--dark :focus-visible { outline-color: #fff; }

/* ---------- Typographic helpers ---------- */
.eyebrow {
  display: inline-block; font-family: var(--font-ui); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.78rem;
  color: var(--red); margin-bottom: 0.9rem;
}
.eyebrow--light { color: #ff6b6f; }
.hl { color: var(--red); }
.section--dark .hl { color: #ff6b6f; }

.section__head { max-width: 720px; margin: 0 auto clamp(2rem, 5vw, 3.5rem); text-align: center; }
.section__head h2 { font-size: clamp(2rem, 5vw, 3.25rem); }
.section__sub { font-size: 1.15rem; color: var(--stone); }
.section--dark .section__sub { color: rgba(255,255,255,0.75); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--font-ui); font-weight: 700; font-size: 1rem;
  padding: 0.85rem 1.6rem; border-radius: 50px; border: 2px solid transparent;
  cursor: pointer; transition: transform 0.12s ease, background 0.18s ease, color 0.18s ease, box-shadow 0.18s;
  text-decoration: none; line-height: 1; white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--red); color: #fff; box-shadow: 0 8px 20px rgba(206,27,34,0.3); }
.btn--primary:hover { background: var(--red-dark); color: #fff; }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.6); }
.btn--ghost:hover { background: #fff; color: var(--charcoal); border-color: #fff; }
.situation .btn--ghost, .area .btn--ghost { color: var(--charcoal); border-color: var(--charcoal); }
.btn--lg { padding: 1.05rem 2rem; font-size: 1.08rem; }
.btn--sm { padding: 0.6rem 1.1rem; font-size: 0.92rem; }
.btn--block { width: 100%; }

/* ---------- Wordmark ---------- */
.wordmark { display: inline-flex; align-items: center; text-decoration: none; }
.wordmark:hover { text-decoration: none; }
.wordmark__badge {
  font-family: var(--font-display); color: #fff; background: var(--red);
  padding: 0.34em 0.6em; border-radius: 10px; font-size: 1.15rem; line-height: 1;
  letter-spacing: 0.01em; box-shadow: 0 3px 0 rgba(0,0,0,0.18);
  border: 2px solid #fff; text-shadow: 0 2px 0 rgba(0,0,0,0.15);
}
.wordmark__badge--footer { font-size: 1.35rem; display: inline-block; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(247,243,236,0.92); backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(26,26,26,0.08);
  transition: box-shadow 0.2s;
}
.site-header.is-scrolled { box-shadow: 0 6px 20px rgba(26,26,26,0.10); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: var(--header-h); }
.nav { display: flex; align-items: center; }
.nav__menu { display: flex; gap: 1.6rem; align-items: center; }
.nav__menu a {
  font-family: var(--font-ui); font-weight: 600; color: var(--charcoal);
  font-size: 0.98rem; padding: 0.4rem 0; position: relative;
}
.nav__menu a::after {
  content: ''; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px;
  background: var(--red); transition: width 0.2s;
}
.nav__menu a:hover { text-decoration: none; }
.nav__menu a:hover::after { width: 100%; }
.header__cta { display: flex; align-items: center; gap: 1rem; }
.header__phone { display: inline-flex; align-items: center; gap: 0.45rem; font-family: var(--font-ui); font-weight: 700; color: var(--charcoal); font-size: 0.98rem; white-space: nowrap; }
.header__phone .ico { color: var(--red); }
.header__phone:hover { color: var(--red); text-decoration: none; }
.nav__menu-cta { display: none; } /* shown only inside the mobile menu */
.nav__toggle {
  display: none; flex-direction: column; gap: 5px; background: none; border: 0;
  padding: 8px; cursor: pointer;
}
.nav__toggle-bar { width: 26px; height: 3px; background: var(--charcoal); border-radius: 2px; transition: transform 0.2s, opacity 0.2s; }
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Grid utilities ---------- */
.grid { display: grid; gap: var(--gap); }
.grid--2 { grid-template-columns: 1fr 1fr; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--center { align-items: center; }

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; overflow: hidden; }
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(20,20,20,0.86) 0%, rgba(20,20,20,0.62) 45%, rgba(20,20,20,0.28) 100%);
}
.hero__content {
  position: relative; z-index: 1;
  padding: clamp(4.5rem, 12vw, 9rem) 0 clamp(3.5rem, 9vw, 7rem);
}
.hero h1 { font-size: clamp(2.1rem, 6.4vw, 5rem); color: #fff; margin-bottom: 1rem; max-width: 53rem; }
.hero__lead { font-size: clamp(1.1rem, 2.2vw, 1.4rem); max-width: 46rem; color: rgba(255,255,255,0.92); margin-bottom: 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-ui); font-weight: 700; font-size: 0.82rem;
  text-transform: uppercase; letter-spacing: 0.1em;
  padding: 0.5rem 1rem; border-radius: 50px; margin-bottom: 1.4rem;
}
.badge--years { background: var(--red); color: #fff; box-shadow: 0 6px 16px rgba(206,27,34,0.4); }

/* ---------- Situation ---------- */
.situation__media img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4/3; object-fit: cover; }
.situation__text h2 { font-size: clamp(1.9rem, 4.4vw, 3rem); }
.situation__text { position: relative; }
.situation__text::before {
  content: ''; position: absolute; left: -1.2rem; top: 2.6rem; bottom: 0.5rem; width: 5px;
  background: var(--red); border-radius: 4px;
}

/* ---------- Steps / How it works ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); list-style: none; }
.step {
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius); padding: 2.2rem 1.8rem; position: relative;
}
.step__num {
  font-family: var(--font-display); font-size: 1.5rem; color: #fff;
  background: var(--red); width: 3.2rem; height: 3.2rem; border-radius: 50%;
  display: grid; place-items: center; margin-bottom: 1.2rem;
  box-shadow: 0 8px 18px rgba(206,27,34,0.4);
}
.step h3 { color: #fff; font-size: 1.4rem; }
.step p { color: rgba(255,255,255,0.75); margin-bottom: 0; }

/* ---------- Features ---------- */
.features { margin-bottom: clamp(2.5rem, 6vw, 4rem); }
.feature {
  background: #fff; border-radius: var(--radius); padding: 2.2rem 1.9rem;
  box-shadow: var(--shadow); border-top: 5px solid var(--red);
}
.feature__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 3.4rem; height: 3.4rem; border-radius: 14px;
  background: rgba(206,27,34,0.10); color: var(--red); margin-bottom: 1.2rem;
}
.feature__icon svg { width: 1.7rem; height: 1.7rem; }

/* Inline icon (phone in header / menu) */
.ico { width: 1.05em; height: 1.05em; vertical-align: -0.18em; }
.feature h3 { font-size: 1.4rem; }
.feature p { color: var(--stone); margin-bottom: 0; }

/* ---------- Spec strip ---------- */
.spec {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem 2.5rem;
  background: var(--charcoal); color: #fff; border-radius: var(--radius);
  padding: 2.2rem clamp(1.6rem, 4vw, 3rem); box-shadow: var(--shadow-lg);
}
.spec__item { display: flex; flex-direction: column; }
.spec__value { font-family: var(--font-display); font-size: clamp(2rem, 5vw, 2.8rem); color: #ff6b6f; line-height: 1; }
.spec__label { font-family: var(--font-ui); font-size: 0.9rem; color: rgba(255,255,255,0.72); margin-top: 0.4rem; }
.spec__divider { width: 1px; align-self: stretch; background: rgba(255,255,255,0.18); }
.spec__cta { margin-left: auto; text-align: right; }
.spec__cta p { color: rgba(255,255,255,0.82); margin-bottom: 0.8rem; font-size: 0.98rem; }

/* ---------- Success band ---------- */
.success { background: var(--red); color: #fff; padding: clamp(3rem, 7vw, 5.5rem) 0; }
.success__inner { max-width: 900px; margin-inline: auto; text-align: center; }
.success__quote { font-family: var(--font-serif); font-weight: 500; font-size: clamp(1.4rem, 3.2vw, 2.15rem); line-height: 1.35; margin-bottom: 1.2rem; }
.success__tag { font-family: var(--font-display); font-size: clamp(1.2rem, 2.6vw, 1.7rem); margin: 0; }

/* ---------- About ---------- */
.about__media img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4/3; object-fit: cover; }
.about__text h2 { font-size: clamp(1.9rem, 4.4vw, 3rem); }

/* ---------- Stats ---------- */
.stats { padding: clamp(3rem, 7vw, 5rem) 0; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; text-align: center; }
.stat__num { font-family: var(--font-display); font-size: clamp(2.6rem, 6vw, 4rem); color: #ff6b6f; display: block; line-height: 1; }
.stat__label { font-family: var(--font-ui); font-size: 0.95rem; color: rgba(255,255,255,0.75); display: block; margin-top: 0.6rem; }

/* ---------- Service area ---------- */
.area__inner { max-width: 680px; margin-inline: auto; text-align: center; }
.area__inner h2 { font-size: clamp(1.9rem, 4.4vw, 3rem); }
.area__inner p { font-size: 1.15rem; color: var(--stone); margin-bottom: 1.8rem; }

/* ---------- Quote / form ---------- */
.quote { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.quote__grid { align-items: start; }
.quote__intro h2 { font-size: clamp(2rem, 4.6vw, 3.2rem); color: #fff; }
.quote__intro p { color: rgba(255,255,255,0.8); font-size: 1.12rem; }
.quote__points { margin: 1.5rem 0 2rem; display: grid; gap: 0.7rem; }
.quote__points li { position: relative; padding-left: 1.9rem; color: rgba(255,255,255,0.9); }
.quote__points li::before {
  content: '✓'; position: absolute; left: 0; top: 0; color: #fff; font-weight: 700;
  background: var(--red); width: 1.4rem; height: 1.4rem; border-radius: 50%;
  display: grid; place-items: center; font-size: 0.85rem;
}

.quote__form-wrap { background: #fff; color: var(--ink); border-radius: var(--radius); padding: clamp(1.6rem, 4vw, 2.6rem); box-shadow: var(--shadow-lg); }
.form__row { margin-bottom: 1.1rem; }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form label { font-family: var(--font-ui); font-weight: 600; font-size: 0.92rem; display: block; margin-bottom: 0.4rem; color: var(--charcoal); }
.req { color: var(--red); }
.form input, .form select, .form textarea {
  width: 100%; font-family: var(--font-ui); font-size: 1rem; color: var(--ink);
  padding: 0.8rem 0.9rem; border: 1.5px solid #d8d2c6; border-radius: 10px;
  background: #fbfaf7; transition: border-color 0.15s, box-shadow 0.15s;
}
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(206,27,34,0.15);
}
.form textarea { resize: vertical; min-height: 90px; }
/* Only flag fields after the user has interacted, never on first paint */
.form input:user-invalid, .form select:user-invalid { border-color: var(--red); }
.form__status { margin: 1rem 0 0; font-family: var(--font-ui); font-weight: 600; font-size: 0.95rem; }
.form__status.is-error { color: var(--red-dark); }
.form__status.is-success { color: #1a7a3c; }
#formSubmit[disabled] { opacity: 0.6; cursor: progress; }

/* ---------- Footer ---------- */
.site-footer { background: #141414; color: rgba(255,255,255,0.72); }
.footer__inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2.5rem; padding: clamp(3rem, 6vw, 4.5rem) 0; }
.footer__brand p { margin-top: 1.1rem; max-width: 42ch; }
.footer__col h3 { color: #fff; font-family: var(--font-ui); font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 1rem; }
.footer__col ul { display: grid; gap: 0.6rem; }
.footer__col a { color: rgba(255,255,255,0.72); }
.footer__col a:hover { color: #fff; }
.footer__bar { border-top: 1px solid rgba(255,255,255,0.1); }
.footer__bar-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; padding: 1.3rem 0; font-size: 0.86rem; }
.footer__bar p { margin: 0; }
.footer__credit a { color: #ff6b6f; }

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed; right: clamp(1rem, 3vw, 2rem); bottom: clamp(1rem, 3vw, 2rem);
  z-index: 95; width: 3rem; height: 3rem; border-radius: 50%; border: 2px solid #fff;
  background: var(--red); color: #fff; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 22px rgba(26,26,26,0.28);
  opacity: 0; transform: translateY(10px); transition: opacity 0.25s ease, transform 0.25s ease, background 0.18s;
}
.back-to-top.is-visible { opacity: 1; transform: translateY(0); }
.back-to-top:hover { background: var(--red-dark); }
.back-to-top svg { width: 1.4rem; height: 1.4rem; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
  .grid--2, .grid--3, .steps, .stats__grid { grid-template-columns: 1fr; }
  .stats__grid { grid-template-columns: 1fr 1fr; gap: 2.2rem 1rem; }
  .steps { gap: 1.4rem; }
  .situation .grid--2 { direction: ltr; }
  .situation__media { order: -1; }
  .spec__cta { margin-left: 0; text-align: left; width: 100%; }
  .spec__divider { display: none; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .container { width: min(100% - 4rem, var(--container)); } /* 2rem side margins on mobile */
  .nav__toggle { display: flex; }
  .nav__menu {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); padding: 0.5rem 1.25rem 1.25rem;
    border-bottom: 1px solid rgba(26,26,26,0.1); box-shadow: var(--shadow);
    transform: translateY(-120%); transition: transform 0.25s ease, visibility 0.25s ease;
    visibility: hidden; z-index: 90;
  }
  .nav__menu.is-open { transform: translateY(0); visibility: visible; }
  .nav__menu li { border-bottom: 1px solid rgba(26,26,26,0.08); }
  .nav__menu a { display: block; padding: 0.9rem 0; font-size: 1.05rem; }
  .nav__menu a::after { display: none; }
  .nav__menu-cta { display: block; border-bottom: 0; }
  .nav__menu-cta:first-of-type { margin-top: 0.5rem; }
  .nav__menu-cta a { font-family: var(--font-ui); font-weight: 700; color: var(--charcoal); }
  .nav__menu-cta .btn { color: #fff; padding: 0.85rem 1.6rem; margin-top: 0.4rem; }
  .nav__menu-cta .btn:hover { color: #fff; }
  .header__cta { display: none; }
  .form__grid { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
  .footer__bar-inner { flex-direction: column; }
}

@media (max-width: 400px) {
  .header__cta .btn--sm { padding: 0.55rem 0.9rem; font-size: 0.85rem; }
  .wordmark__badge { font-size: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
