/* ============================================================
   BUSY BEE ROOFING — Greater Toronto Area
   Editorial, print-like system: warm cream, deep charcoal,
   honey yellow. Sharp corners, 1px rules, mono UI labels.
   ============================================================ */

:root {
  --cream:      #fbf8f2;
  --charcoal:   #2e3030;
  --honey-pale: #fff4d7;
  --honey:      #e8a41c;
  --border:     #d5cdb6;
  --muted:      #8f8c80;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --mono:  "Space Mono", "Courier New", monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; border-radius: 0 !important; }

html { scroll-behavior: smooth; }

body {
  background: var(--cream);
  color: var(--charcoal);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--honey); color: var(--charcoal); }

img { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 32px; }

/* ---------- mono UI labels ---------- */
.kicker, nav a, .btn, .svc-num, .foot-label, .marquee-track, .tag, .form-note {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 11px;
}

.kicker { color: var(--muted); display: flex; align-items: center; gap: 12px; }
.kicker::before { content: ""; width: 32px; height: 1px; background: var(--honey); }

/* ---------- header ---------- */
header {
  position: sticky; top: 0; z-index: 50;
  background: var(--cream);
  border-bottom: 1px solid var(--border);
}
.hd {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 32px; max-width: 1240px; margin: 0 auto;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-name {
  font-family: var(--mono);
  text-transform: uppercase; letter-spacing: 0.18em;
  font-size: 13px; font-weight: 700;
}
.brand-name em { font-style: normal; color: var(--honey); }
nav { display: flex; gap: 28px; }
nav a { color: var(--charcoal); position: relative; padding-bottom: 2px; }
nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 0; height: 1px; background: var(--honey);
  transition: width 0.25s ease;
}
nav a:hover::after, nav a.active::after { width: 100%; }
nav a.active { color: var(--muted); }
.hd-contact { display: flex; align-items: center; gap: 20px; }
.hd-area { font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.hd-phone {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em;
  border: 1px solid var(--charcoal); padding: 7px 14px;
  transition: background 0.2s ease, color 0.2s ease;
}
.hd-phone:hover { background: var(--charcoal); color: var(--cream); }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  border: 1px solid var(--charcoal);
  background: var(--charcoal); color: var(--cream);
  padding: 14px 26px;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
}
.btn:hover { background: var(--honey); border-color: var(--honey); color: var(--charcoal); }
.btn.ghost { background: transparent; color: var(--charcoal); }
.btn.ghost:hover { background: var(--charcoal); color: var(--cream); border-color: var(--charcoal); }
.btn.honey { background: var(--honey); border-color: var(--honey); color: var(--charcoal); }
.btn.honey:hover { background: var(--charcoal); border-color: var(--charcoal); color: var(--cream); }

/* ---------- hero ---------- */
.hero { padding: 96px 0 72px; }
.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(44px, 7.2vw, 96px);
  line-height: 1.04;
  letter-spacing: -0.01em;
  margin: 26px 0 30px;
  max-width: 14ch;
}
.hero h1 em { font-style: italic; color: var(--honey); }
.hero p.lede { max-width: 46ch; font-size: 16px; }
.hero-cta { display: flex; gap: 16px; margin-top: 36px; flex-wrap: wrap; }

.hero-figure { position: relative; border-top: 1px solid var(--border); }
.hero-figure img {
  width: 100%; height: clamp(320px, 52vh, 560px);
  object-fit: cover;
  opacity: 0; transition: opacity 0.35s ease-in-out;
}
.hero-figure img.loaded { opacity: 1; }
.hero-caption {
  position: absolute; left: 32px; bottom: 24px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--cream);
  text-shadow: 0 1px 8px rgba(0,0,0,0.55);
}

/* ---------- marquee ---------- */
.marquee {
  background: var(--charcoal); color: var(--cream);
  overflow: hidden; border-top: 1px solid var(--charcoal);
  padding: 14px 0;
}
.marquee-track {
  display: inline-flex; gap: 48px; white-space: nowrap;
  animation: marquee 30s linear infinite;
  font-size: 12px;
}
.marquee-track em { font-family: var(--serif); font-style: italic; text-transform: none; letter-spacing: 0.02em; font-size: 14px; color: var(--honey); }
.marquee-track .sep { color: var(--honey); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
section { padding: 96px 0; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; margin-bottom: 56px; flex-wrap: wrap; }
.sec-head h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(30px, 4vw, 48px); line-height: 1.1;
}
.sec-head h2 em { font-style: italic; color: var(--honey); }

/* ---------- service rows ---------- */
.svc { border-top: 1px solid var(--border); }
.svc:last-child { border-bottom: 1px solid var(--border); }
.svc a {
  display: grid; grid-template-columns: 70px 1fr 1.4fr 40px;
  gap: 24px; align-items: baseline;
  padding: 26px 8px;
  transition: background 0.2s ease;
}
.svc a:hover { background: var(--honey-pale); }
.svc-num { color: var(--honey); font-size: 13px; }
.svc-title { font-family: var(--serif); font-size: 22px; font-weight: 500; }
.svc-desc { color: #55574f; font-size: 14px; }
.svc-arrow { font-family: var(--mono); font-size: 16px; justify-self: end; transition: transform 0.2s ease; }
.svc a:hover .svc-arrow { transform: translateX(6px); }

/* ---------- dark pane ---------- */
.pane-dark { background: var(--charcoal); color: var(--cream); }
.pane-dark .kicker { color: var(--honey); }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid #4a4d48; }
.why-cell { padding: 36px 28px; border-left: 1px solid #4a4d48; }
.why-cell:first-child { border-left: none; }
.why-cell .svc-num { display: block; margin-bottom: 18px; }
.why-cell h3 { font-family: var(--serif); font-weight: 500; font-size: 20px; margin-bottom: 12px; }
.why-cell p { font-size: 14px; color: #c9c6ba; }

/* ---------- two-column feature ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split figure { border: 1px solid var(--border); padding: 10px; background: #fff; }
.split figcaption { font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); padding-top: 10px; }
.split figure img { opacity: 0; transition: opacity 0.35s ease-in-out; width: 100%; }
.split figure img.loaded { opacity: 1; }
.split h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 3.4vw, 42px); line-height: 1.12; margin: 20px 0 20px; }
.split h2 em { font-style: italic; color: var(--honey); }
.split p { margin-bottom: 14px; }

/* ---------- service area ---------- */
.area { border-top: 1px solid var(--border); }
.area-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.cities { columns: 2; column-gap: 40px; list-style: none; margin-top: 24px; }
.cities li {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 9px 0; border-bottom: 1px solid var(--border);
  display: flex; justify-content: space-between;
}
.cities li span { color: var(--honey); }

/* ---------- CTA band ---------- */
.cta { background: var(--honey-pale); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.cta-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 64px; align-items: start; }
.cta h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(32px, 4vw, 52px); line-height: 1.08; margin: 20px 0 18px; }
.cta h2 em { font-style: italic; }
.cta-phone { font-family: var(--mono); font-size: 20px; letter-spacing: 0.08em; display: inline-block; margin: 10px 0 4px; border-bottom: 2px solid var(--honey); padding-bottom: 2px; }
.cta small { color: var(--muted); font-size: 13px; display: block; margin-top: 10px; }

/* quote form — bottom-border-only inputs */
.quote label { display: block; margin-bottom: 22px; }
.quote .lbl { font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 4px; }
.quote input, .quote select, .quote textarea {
  width: 100%; border: none; border-bottom: 1px solid var(--muted);
  background: transparent; padding: 8px 2px;
  font-family: Georgia, serif; font-size: 15px; color: var(--charcoal);
  transition: border-color 0.3s ease;
  resize: vertical;
}
.quote input:focus, .quote select:focus, .quote textarea:focus {
  outline: none; border-bottom: 2px solid var(--honey);
}
.form-note { color: var(--muted); margin-top: 14px; text-transform: none; letter-spacing: 0.04em; font-size: 11px; }

/* ---------- footer ---------- */
footer { background: var(--charcoal); color: var(--cream); }
.ft { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding: 72px 32px 48px; max-width: 1240px; margin: 0 auto; }
.foot-label { color: var(--honey); display: block; margin-bottom: 16px; }
.ft p, .ft li { font-size: 14px; color: #c9c6ba; }
.ft ul { list-style: none; }
.ft li { padding: 4px 0; }
.ft a:hover { color: var(--honey); }
.ft-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.ft-bottom {
  border-top: 1px solid #4a4d48;
  padding: 20px 32px; max-width: 1240px; margin: 0 auto;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
}

/* ---------- about page ---------- */
.page-hero { padding: 96px 0 64px; border-bottom: 1px solid var(--border); }
.page-hero h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(44px, 7vw, 88px); line-height: 1.05; margin-top: 26px;
}
.page-hero h1 em { font-style: italic; color: var(--honey); }

.values { border-top: 1px solid var(--border); }
.value-row {
  display: grid; grid-template-columns: 70px 1fr 1.4fr; gap: 24px;
  padding: 28px 8px; border-bottom: 1px solid var(--border);
  align-items: baseline;
}
.value-row h3 { font-family: var(--serif); font-size: 22px; font-weight: 500; }
.value-row p { color: #55574f; font-size: 14px; }

.cred-band { background: var(--charcoal); color: var(--cream); }
.cred-band .kicker { color: var(--honey); }
.cred-list { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid #4a4d48; }
.cred-item { padding: 28px 24px; border-left: 1px solid #4a4d48; }
.cred-item:first-child { border-left: none; }
.cred-item .svc-num { display: block; margin-bottom: 12px; }
.cred-item strong { font-family: var(--serif); font-weight: 500; font-size: 17px; display: block; margin-bottom: 6px; }
.cred-item span { font-size: 13px; color: #c9c6ba; }

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

/* ---------- mobile-only components ---------- */
.hd-call { display: none; }
.mobile-bar { display: none; }
a { -webkit-tap-highlight-color: transparent; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .why-grid, .cred-list { grid-template-columns: 1fr 1fr; }
  .why-cell:nth-child(3), .cred-item:nth-child(3) { border-left: none; border-top: 1px solid #4a4d48; }
  .cred-item:nth-child(4) { border-top: 1px solid #4a4d48; }
  .split, .area-grid, .cta-grid { grid-template-columns: 1fr; gap: 40px; }
  .ft { grid-template-columns: 1fr 1fr; }
  .hd-area { display: none; }
}
/* sticky thumb bar — phones and small tablets */
@media (max-width: 768px) {
  body { padding-bottom: 54px; }
  .mobile-bar {
    display: grid; grid-template-columns: 1.5fr 1fr;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    border-top: 1px solid var(--charcoal);
    padding-bottom: env(safe-area-inset-bottom, 0);
    background: var(--cream);
  }
  .mobile-bar a {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.08em;
    font-size: 12px; padding: 17px 8px; min-height: 52px;
  }
  .mobile-bar .mb-call { background: var(--honey); color: var(--charcoal); font-weight: 700; }
  .mobile-bar .mb-est  { background: var(--charcoal); color: var(--cream); }
}

@media (max-width: 640px) {
  .wrap { padding: 0 20px; }
  .hd { padding: 10px 16px; gap: 12px; }
  .brand-name { font-size: 10px; letter-spacing: 0.1em; white-space: nowrap; }
  .brand svg { width: 24px; height: 24px; }
  nav { gap: 2px; }
  nav a { font-size: 10px; white-space: nowrap; padding: 10px 5px; }
  .nav-est { display: none; } /* sticky bar covers this on mobile */
  .hd-phone { display: none; }
  .hd-call {
    display: flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; flex: none;
    border: 1px solid var(--charcoal); background: var(--honey);
  }
  /* comfortable tap targets & no iOS zoom on form focus */
  .btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; text-align: center; }
  .hero-cta { flex-direction: column; gap: 12px; }
  .hero-cta .btn { width: 100%; }
  .quote input, .quote select, .quote textarea { font-size: 16px; padding: 10px 2px; }
  .quote .btn { width: 100%; }
  .svc a { grid-template-columns: 40px 1fr; padding: 22px 4px; }
  .svc-desc { grid-column: 2; }
  .svc-arrow { display: none; }
  .value-row { grid-template-columns: 44px 1fr; }
  .value-row p { grid-column: 2; }
  .why-grid, .cred-list { grid-template-columns: 1fr; }
  .why-cell, .cred-item { border-left: none !important; border-top: 1px solid #4a4d48; }
  .why-cell:first-child, .cred-item:first-child { border-top: none; }
  .hero { padding: 56px 0 44px; }
  .hero h1 { font-size: clamp(38px, 11vw, 52px); }
  .hero-figure img { height: 240px; }
  .hero-caption { left: 20px; bottom: 14px; }
  section { padding: 60px 0; }
  .sec-head { margin-bottom: 36px; }
  .cities { columns: 1; }
  .cta-phone { font-size: 17px; }
  .ft { grid-template-columns: 1fr; gap: 28px; padding: 56px 20px 40px; }
  .ft-bottom { padding: 18px 20px; }
}
