/* ============================================================
   Buffalo's Best Cleaning — Design System
   Fresh & clean: airy whites, calm teal/blue, Helvetica
   ============================================================ */

:root {
  /* Palette */
  --bg: #f3f7f9;
  --bg-tint: #e9f1f3;
  --surface: #ffffff;
  --ink: #0f3b4c;          /* deep teal navy — headings */
  --ink-2: #335763;        /* body text */
  --ink-3: #6b8089;        /* muted / captions */
  --primary: #1f6f8b;      /* teal-blue */
  --primary-deep: #0f3b4c;
  --accent: #3aa6a0;       /* teal-green */
  --accent-soft: #d6ece9;
  --line: #d9e4e8;
  --line-soft: #e8eff2;
  --on-dark: #eef6f8;
  --on-dark-soft: #a9c6cf;

  /* Accent override hook (tweaks) */
  --accent-hue: #1f6f8b;

  /* Type */
  --sans: "Helvetica Neue", Helvetica, Arial, "Segoe UI", sans-serif;
  --mono: "SFMono-Regular", ui-monospace, "Roboto Mono", Menlo, monospace;

  /* Radius */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 32px;

  /* Shadow */
  --sh-sm: 0 1px 2px rgba(15,59,76,.06), 0 2px 6px rgba(15,59,76,.05);
  --sh-md: 0 6px 18px rgba(15,59,76,.08), 0 2px 6px rgba(15,59,76,.05);
  --sh-lg: 0 24px 60px rgba(15,59,76,.14), 0 8px 20px rgba(15,59,76,.08);

  /* Layout */
  --maxw: 1200px;
  --gutter: clamp(20px, 5vw, 64px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink-2);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  color: var(--ink);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img { max-width: 100%; display: block; }

/* ---------- Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(56px, 9vw, 120px); }
.section-tight { padding-block: clamp(40px, 6vw, 80px); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 12.5px; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--primary);
}
.eyebrow::before {
  content: ""; width: 22px; height: 2px; background: var(--accent); border-radius: 2px;
}
.eyebrow.center::before { display: none; }

.display {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  letter-spacing: -0.035em;
  line-height: 0.98;
}
.h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
.h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.28rem); color: var(--ink-2); line-height: 1.55; }
.muted { color: var(--ink-3); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-weight: 600; font-size: 1rem; letter-spacing: -0.01em;
  padding: 15px 26px; border-radius: 999px; border: 1.5px solid transparent;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 8px 20px rgba(31,111,139,.28); }
.btn-primary:hover { background: var(--primary-deep); box-shadow: 0 12px 28px rgba(15,59,76,.32); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); background: var(--surface); }
.btn-light { background: #fff; color: var(--primary-deep); }
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--sh-md); }
.btn-lg { padding: 17px 32px; font-size: 1.05rem; }
.btn-arrow svg { transition: transform .2s ease; }
.btn-arrow:hover svg { transform: translateX(4px); }

/* ---------- Cards ---------- */
.card {
  background: var(--surface); border: 1px solid var(--line-soft);
  border-radius: var(--r-lg); box-shadow: var(--sh-sm);
}

/* ---------- Image placeholder ---------- */
.ph {
  position: relative; overflow: hidden; border-radius: var(--r-lg);
  background:
    repeating-linear-gradient(135deg, #e3edf0 0 14px, #edf4f6 14px 28px);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-3);
}
.ph::after {
  content: attr(data-label);
  font-family: var(--mono); font-size: 12px; letter-spacing: .04em;
  background: rgba(255,255,255,.78); color: var(--primary-deep);
  padding: 6px 11px; border-radius: 999px; border: 1px solid var(--line);
  text-align: center; max-width: 80%;
}

/* ---------- Pills / chips ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 15px; border-radius: 999px; font-size: .9rem; font-weight: 600;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink-2);
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

.tag {
  font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  padding: 5px 11px; border-radius: 999px;
}
.tag-res { background: var(--accent-soft); color: #1f6f6b; }
.tag-com { background: #e0ecf2; color: var(--primary); }
.tag-spc { background: #eee7d9; color: #93722e; }

/* ---------- Fade-in on scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Misc ---------- */
.divider { height: 1px; background: var(--line); border: 0; }
.grid { display: grid; gap: clamp(16px, 2vw, 26px); }

@media (max-width: 860px) {
  body { font-size: 16px; }
}
