/* RD Innovation: Toronto Home Services
   Design direction: "quiet craftsmanship", warm, tactile, and confident.
   High-end through restraint (typography, whitespace, considered detail),
   not through gold foil or corporate-blue gradients.

   Palette:
   --ink / --ink-soft   warm near-black / warm charcoal text
   --paper / --paper-2  warm stone/linen backgrounds (never cold white)
   --clay / --clay-dk   terracotta accent: brick, roof tile, warmth
   --moss               deep sage, used sparingly, landscaping-adjacent
   --line                warm hairline borders

   Type:
   Fraunces: display serif, used with restraint for headlines
   Archivo: body/UI grotesk, more character than Inter/Roboto
*/

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Archivo:wght@400;500;600;700&display=swap');

:root {
  --ink: #211c17;
  --ink-soft: #5c5346;
  --ink-faint: #8a8071;
  --paper: #f6f1e7;
  --paper-2: #ede4d3;
  --card: #fffdf9;
  --clay: #b95a30;
  --clay-dk: #954324;
  --clay-light: #f3e2d5;
  --moss: #55624a;
  --ink-deep: #211c17;
  --line: #e0d6c2;
  --radius: 8px;
  --radius-lg: 14px;
  --shadow: 0 4px 18px rgba(33, 28, 23, 0.08);
  --shadow-lg: 0 20px 48px rgba(33, 28, 23, 0.16);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-weight: 600;
  font-optical-sizing: auto;
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--ink);
}

h1 { font-size: clamp(2.2rem, 4.6vw, 3.5rem); font-weight: 600; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.25rem); }
h3 { font-size: 1.2rem; font-weight: 600; letter-spacing: -0.01em; }

em, .accent-word { font-style: italic; color: var(--clay); }

p { color: var(--ink-soft); }

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

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

svg.icon { display: block; flex-shrink: 0; }

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Top bar ---------- */
.topbar {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.84rem;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 9px;
  padding-bottom: 9px;
  flex-wrap: wrap;
  gap: 6px;
}
.topbar a { color: #fff; }
.topbar .topbar-phone { font-weight: 600; }

/* ---------- Header / nav ---------- */
header.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
  transition: box-shadow 0.25s ease;
}
header.site-header.is-scrolled { box-shadow: var(--shadow); }
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
}
.logo {
  font-family: "Fraunces", serif;
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.logo span { color: var(--clay); font-style: italic; }
nav.main-nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
  align-items: center;
}
nav.main-nav a {
  position: relative;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink);
  padding: 6px 0;
  transition: color 0.15s ease;
}
nav.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1.5px;
  background: var(--clay);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s cubic-bezier(.34,1.56,.64,1);
}
nav.main-nav a:hover::after { transform: scaleX(1); }
nav.main-nav a.active { color: var(--clay-dk); }
nav.main-nav a.active::after { background: var(--clay); transform: scaleX(1); }

nav.main-nav a.nav-cta {
  background: var(--clay);
  color: #fff !important;
  padding: 11px 22px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.88rem;
  white-space: nowrap;
  transition: background 0.15s ease, transform 0.15s ease;
}
nav.main-nav a.nav-cta:hover { background: var(--clay-dk); transform: translateY(-1px); }
nav.main-nav a.nav-cta:active { transform: translateY(0); }
nav.main-nav a.nav-cta::after { display: none; }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--ink);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.96rem;
  white-space: nowrap;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform 0.18s cubic-bezier(.34,1.56,.64,1), background 0.15s ease, box-shadow 0.2s ease, border-color 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); transition-duration: 0.05s; }
.btn-primary { background: var(--clay); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--clay-dk); box-shadow: var(--shadow-lg); }
.btn-outline { background: transparent; border-color: rgba(255,255,255,0.5); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: #fff; }
.btn-outline-dark { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-outline-dark:hover { background: var(--card); border-color: var(--ink-soft); }
.btn-block { width: 100%; text-align: center; justify-content: center; }

/* ---------- Hero ---------- */
.hero {
  background: var(--ink);
  color: #fff;
  padding: 80px 0 92px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 700px 420px at 82% -8%, rgba(185, 90, 48, 0.22) 0%, transparent 70%);
  pointer-events: none;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  position: relative;
}
.hero-eyebrow {
  display: inline-block;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.16);
  padding: 7px 16px;
  border-radius: var(--radius);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.hero h1 { color: #fff; margin-bottom: 20px; }
.hero p.lead { color: rgba(255,255,255,0.75); font-size: 1.08rem; max-width: 46ch; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 30px; }
.hero-trust { display: flex; gap: 26px; flex-wrap: wrap; font-size: 0.86rem; color: rgba(255,255,255,0.68); }
.hero-trust strong { color: #fff; display: block; font-size: 1.35rem; font-family: "Fraunces", serif; font-weight: 600; }

.hero-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-lg);
  color: var(--ink);
}
.hero-card h3 { margin-bottom: 4px; }
.hero-card p.sub { color: var(--ink-soft); font-size: 0.9rem; margin-bottom: 20px; }

/* ---------- Lead form ---------- */
.lead-form label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 6px;
  margin-top: 15px;
}
.lead-form label:first-of-type { margin-top: 0; }
.lead-form input,
.lead-form select,
.lead-form textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1.5px solid var(--line);
  border-radius: 7px;
  font-size: 0.95rem;
  font-family: inherit;
  background: var(--paper);
  color: var(--ink);
}
.lead-form input:focus,
.lead-form select:focus,
.lead-form textarea:focus {
  outline: none;
  border-color: var(--clay);
  box-shadow: 0 0 0 3px var(--clay-light);
}
.lead-form .consent {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-top: 15px;
  font-size: 0.78rem;
  color: var(--ink-soft);
}
.lead-form .consent input { width: auto; margin-top: 3px; }
.lead-form button { margin-top: 20px; }
.form-note { font-size: 0.76rem; color: var(--ink-faint); margin-top: 12px; text-align: center; }
.form-status { margin-top: 12px; font-size: 0.88rem; font-weight: 600; display: none; }
.form-status.ok { color: var(--moss); display: block; }
.form-status.err { color: var(--clay-dk); display: block; }

/* ---------- Sections ---------- */
section { padding: 84px 0; }
.section-alt { background: var(--paper-2); }
.section-head { text-align: center; max-width: 600px; margin: 0 auto 50px; }
.section-head .eyebrow {
  display: inline-block;
  color: var(--clay-dk);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-head p { margin-top: 14px; }

/* ---------- Services grid ---------- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.service-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}
.service-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
  border-color: var(--clay);
}
.service-card:hover .service-icon { transform: scale(1.08) rotate(-3deg); background: var(--clay); color: #fff; }
.service-card.featured { border-color: var(--clay); background: var(--clay-light); }
.service-icon {
  width: 50px; height: 50px;
  border-radius: var(--radius);
  background: var(--paper-2);
  color: var(--clay-dk);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  transition: transform 0.3s cubic-bezier(.34,1.56,.64,1), background 0.25s ease, color 0.25s ease;
}
.service-card.featured .service-icon { background: var(--card); }
.service-card h3 { margin-bottom: 9px; }
.service-card p { font-size: 0.92rem; margin-bottom: 16px; }
.service-tag {
  display: inline-block;
  background: var(--clay);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 14px;
}
.service-card a.card-link { font-weight: 600; color: var(--ink); font-size: 0.88rem; border-bottom: 1px solid var(--line); padding-bottom: 1px; }
.service-card a.card-link:hover { color: var(--clay-dk); border-color: var(--clay); }

.spotlight {
  background: var(--card);
  border: 1px solid var(--clay);
  border-radius: var(--radius-lg);
  padding: 34px;
  display: flex;
  gap: 26px;
  align-items: flex-start;
  margin-bottom: 22px;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.spotlight:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.spotlight-icon {
  width: 66px; height: 66px;
  border-radius: var(--radius);
  background: var(--clay-light);
  color: var(--clay-dk);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: transform 0.3s cubic-bezier(.34,1.56,.64,1);
}
.spotlight:hover .spotlight-icon { transform: scale(1.06) rotate(-3deg); }
.spotlight h3 { font-size: 1.5rem; margin-bottom: 9px; }
.spotlight p { margin-bottom: 14px; }

.secondary-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 22px;
}

/* ---------- Process ---------- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
  counter-reset: step;
}
.process-step { text-align: center; }
.process-step .num {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: "Fraunces", serif;
  font-weight: 600;
  margin: 0 auto 16px;
  transition: transform 0.25s cubic-bezier(.34,1.56,.64,1), background 0.25s ease;
}
.process-step:hover .num { transform: scale(1.12); background: var(--clay); }
.process-step h3 { font-size: 1.05rem; margin-bottom: 7px; }
.process-step p { font-size: 0.88rem; }

/* ---------- Service area ---------- */
.area-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 26px;
}
.area-chip {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 9px 18px;
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 600;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.area-chip:hover { border-color: var(--clay); transform: translateY(-2px); box-shadow: var(--shadow); }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--ink);
  color: #fff;
  text-align: center;
}
.cta-band h2 { color: #fff; margin-bottom: 14px; }
.cta-band p { color: rgba(255,255,255,0.68); max-width: 52ch; margin: 0 auto 30px; }
.cta-band .hero-actions { justify-content: center; }

/* ---------- Footer ---------- */
footer.site-footer {
  background: #171310;
  color: rgba(255,255,255,0.68);
  padding: 58px 0 26px;
  font-size: 0.88rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 38px;
}
.footer-grid h4 { color: #fff; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 15px; font-family: "Archivo", sans-serif; font-weight: 700; }
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 9px; }
.footer-grid a:hover { color: #fff; }
.footer-logo { font-family: "Fraunces", serif; font-weight: 600; font-size: 1.35rem; color: #fff; margin-bottom: 10px; }
.footer-logo em { font-style: italic; color: var(--clay); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.8rem;
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  background: var(--ink);
  color: #fff;
  padding: 58px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 600px 360px at 50% -20%, rgba(185, 90, 48, 0.2) 0%, transparent 70%);
  pointer-events: none;
}
.page-hero h1 { color: #fff; margin-bottom: 12px; position: relative; }
.page-hero p { color: rgba(255,255,255,0.7); max-width: 56ch; margin: 0 auto; position: relative; }
.breadcrumb { font-size: 0.82rem; color: rgba(255,255,255,0.55); margin-bottom: 16px; position: relative; }
.breadcrumb a { text-decoration: underline; text-underline-offset: 2px; }

.two-col {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 48px;
  align-items: start;
}
.checklist { list-style: none; margin-top: 18px; }
.checklist li {
  padding-left: 30px;
  position: relative;
  margin-bottom: 13px;
  color: var(--ink-soft);
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 16px;
  height: 16px;
  background-color: var(--clay);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / contain no-repeat;
}
.sticky-form { position: sticky; top: 100px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .spotlight { flex-direction: column; }
  .secondary-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .sticky-form { position: static; }
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(.16,.84,.44,1);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  * { scroll-behavior: auto !important; }
}

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 46px;
  height: 46px;
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(12px) scale(0.9);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s cubic-bezier(.34,1.56,.64,1), background 0.15s ease;
  z-index: 60;
}
.back-to-top.is-visible { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.back-to-top:hover { background: var(--clay); transform: translateY(-3px) scale(1.05); }

@media (max-width: 640px) {
  nav.main-nav { display: none; }
  .menu-toggle { display: block; }
  header.site-header.nav-open nav.main-nav {
    display: block;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 12px 24px 20px;
  }
  header.site-header.nav-open nav.main-nav ul { flex-direction: column; align-items: flex-start; gap: 14px; }
  .service-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .topbar .container { justify-content: center; text-align: center; }
  .hero { padding: 54px 0 64px; }
}
