/*
Theme Name: Biteback Premium
Theme URI: https://bitebacktick.com/
Author: Bite Back
Description: Custom theme for Bite Back Tick & Mosquito Control. Hand-built, no page builder. Design system tokens live here; components live in assets/css/.
Version: 0.22.30
Text Domain: biteback-premium
*/

:root {
  /* Brand palette (from the live design system) */
  --bb-navy: #081a2a;
  --bb-navy2: #0d2438;
  --bb-deep: #06131f;
  --bb-ink: #0f172a;
  --bb-body: #263447;
  --bb-muted: #4a6070;
  --bb-blue: #0f7fa1;
  --bb-teal: #1aa7c7;
  --bb-sky: #64d8f2;
  --bb-ice: #edf9fc;
  --bb-ice2: #f6fcff;
  --bb-silver: #e6edf3;
  --bb-gold: #f5b942;
  --bb-star: #f8c33d;
  --bb-green: #27b968;
  --bb-green-deep: #137442;
  --bb-line: rgba(15, 23, 42, .10);
  --bb-line2: rgba(15, 23, 42, .16);

  /* Radii */
  --bb-r-sm: 14px;
  --bb-r-md: 22px;
  --bb-r-lg: 28px;
  --bb-r-xl: 34px;

  /* Shadows */
  --bb-shadow-sm: 0 12px 28px rgba(2, 12, 27, .10);
  --bb-shadow-md: 0 12px 30px rgba(2, 12, 27, .10);
  --bb-shadow-lg: 0 22px 56px rgba(2, 12, 27, .16);
  --bb-shadow-xl: 0 34px 80px rgba(2, 12, 27, .24);

  /* Type */
  --bb-font-body: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --bb-font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --bb-font-head: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --bb-fs-h1: clamp(2.4rem, 6vw, 4.1rem);
  --bb-fs-h2: clamp(1.9rem, 4.5vw, 2.7rem);
  --bb-fs-h3: clamp(1.25rem, 2.5vw, 1.5rem);
  --bb-fs-lead: clamp(1.03rem, 1.6vw, 1.13rem);
  --bb-fs-body: 1rem;
  --bb-fs-small: .875rem;

  /* Spacing */
  --bb-space-1: .5rem;
  --bb-space-2: 1rem;
  --bb-space-3: 1.5rem;
  --bb-space-4: 2.5rem;
  --bb-space-5: 4rem;
  --bb-space-6: 6rem;
  --bb-container: 1200px;

  --bb-speed: 180ms;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--bb-font-body);
  font-size: var(--bb-fs-body);
  line-height: 1.6;
  color: var(--bb-body);
  background: #e9f3fa;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--bb-font-head);
  color: var(--bb-ink);
  letter-spacing: -.03em;
  line-height: 1.05;
  margin: 0 0 var(--bb-space-2);
}
h1 { font-size: var(--bb-fs-h1); font-weight: 900; }
h2 { font-size: var(--bb-fs-h2); font-weight: 800; }
h3 { font-size: var(--bb-fs-h3); font-weight: 700; }

p { margin: 0 0 var(--bb-space-2); }
a { color: var(--bb-blue); }
img { max-width: 100%; height: auto; }

:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(31, 182, 213, .35);
  border-radius: 6px;
}

.bbp-container {
  width: min(var(--bb-container), 100% - 2.5rem);
  margin-inline: auto;
}

.bbp-section { padding: var(--bb-space-6) 0; }
body.bbp-flush .bbp-section { padding: 0; }
/* wpautop leaves an empty paragraph in front of block-level content
   that starts with a section or div; it must not take up space. */
.bbp-designed > p:empty { display: none; }
.bbp-section--ice { background: var(--bb-ice); }
.bbp-section--ice2 { background: var(--bb-ice2); }

.bbp-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: var(--bb-fs-small);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--bb-blue);
}
.bbp-eyebrow::before {
  content: "";
  width: .55rem; height: .55rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--bb-sky), var(--bb-teal));
}

.bbp-lead { font-size: var(--bb-fs-lead); line-height: 1.65; }

.bbp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  border: 0;
  border-radius: 999px;
  padding: .9rem 1.7rem;
  font: 700 1rem var(--bb-font-body);
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--bb-speed) ease, box-shadow var(--bb-speed) ease, background var(--bb-speed) ease;
}
.bbp-btn:active { transform: translateY(1px); }

.bbp-btn--quote {
  color: #fff;
  background: linear-gradient(180deg, #1f6fa8 0%, #0b3764 52%, #04182d 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55), inset 0 -2px 0 rgba(0,0,0,.19), 0 6px 14px rgba(2,12,27,.25);
}
.bbp-btn--quote:hover { box-shadow: inset 0 1px 0 rgba(255,255,255,.55), inset 0 -2px 0 rgba(0,0,0,.19), 0 10px 22px rgba(2,12,27,.3); }

.bbp-btn--call {
  color: #fff;
  background: linear-gradient(140deg, #27b968, #137442);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 5px 12px rgba(2,12,27,.2);
}
.bbp-btn--ghost {
  color: var(--bb-navy);
  background: #fff;
  border: 1px solid var(--bb-line2);
}

/* Article / page content */
.bbp-content { max-width: 760px; }
.bbp-content h2 { margin-top: var(--bb-space-4); }
.bbp-content h3 { margin-top: var(--bb-space-3); }
.bbp-content ul, .bbp-content ol { margin: 0 0 var(--bb-space-2); padding-left: 1.4rem; }
.bbp-content li { margin-bottom: .4rem; }
.bbp-content blockquote {
  margin: var(--bb-space-3) 0;
  padding: var(--bb-space-2) var(--bb-space-3);
  background: var(--bb-ice2);
  border-left: 4px solid var(--bb-teal);
  border-radius: 0 var(--bb-r-sm) var(--bb-r-sm) 0;
}

.bbp-skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--bb-navy);
  color: #fff;
  padding: .6rem 1rem;
  z-index: 200;
}
.bbp-skip:focus { left: .5rem; top: .5rem; }

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

/* Address handoff note (quote bridge) */
.bbp-address-note { max-width: 880px; margin: 0 auto 1rem; border-radius: 14px; padding: .9rem 1.1rem; font-size: .98rem; line-height: 1.45; }
.bbp-address-note--ok { background: #eaf7ee; border: 1px solid #bfe3cc; color: #14532d; }
.bbp-address-note--copy { background: #fdf6e3; border: 1px solid #ecd9a0; color: #5b4a12; }
.bbp-address-note--copy p { margin: 0 0 .6rem; }
.bbp-address-note__row { display: flex; gap: .6rem; flex-wrap: wrap; }
.bbp-address-note__row input { flex: 1 1 260px; padding: .65rem .8rem; border: 1px solid #c9d4cc; border-radius: 10px; font: inherit; background: #fff; color: #12242f; }
.bbp-address-note__row button { padding: .65rem 1.1rem; border: 0; border-radius: 10px; background: #177245; color: #fff; font-weight: 700; cursor: pointer; }
