/* RF Handyman — bespoke build. Colors pulled directly from the real
   sales-provided logo (design-rules/style-guide.md section 4, priority
   #1): warm wood-brown + charcoal, not a guessed fallback. Hero uses a
   generated photo (no real one was retrievable — see research-notes.md)
   color-graded to match. */

:root {
  --accent: #8b6844;
  --accent-dark: #6b4f33;
  --accent-soft: #f1e8dc;
  --dark: #2b2822;
  --dark-2: #1c1a16;
  --ink: #2b2822;
  --ink-soft: #5c564a;
  --bg: #faf6ee;
  --bg-soft: #f2ebdd;
  --border: #e6dcc9;
  --radius: 8px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 2px rgba(43,40,34,0.10);
  --shadow-md: 0 12px 32px rgba(43,40,34,0.16);
  --shadow-lg: 0 24px 60px rgba(43,40,34,0.26);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --font-head: "Poppins", -apple-system, sans-serif;
  --font-body: "Inter", -apple-system, sans-serif;
}

/* Wave section dividers — design-rules/style-guide.md section 4's "wave"
   variant, picked for this client (see research-notes.md for why). A
   standalone strip between sections, never overlapping into either
   one's content, so there's no padding-safety math to get wrong (unlike
   the "diagonal" variant's clip-path+negative-margin technique). */
.wave-divider { display: block; width: 100%; line-height: 0; }
.wave-divider svg { display: block; width: 100%; height: 70px; }
@media (max-width: 720px) {
  .wave-divider svg { height: 44px; }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3 { margin: 0; font-family: var(--font-head); font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; }

.eyebrow { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.7rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem;
  padding: 0.8rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 700; font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
  white-space: nowrap;
}
.btn-lg { padding: 1rem 1.9rem; font-size: 1.02rem; }
.btn-block { width: 100%; }
.btn-solid { background: var(--accent); color: #fff; box-shadow: var(--shadow-sm); }
.btn-solid:hover { background: var(--accent-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline-invert { background: transparent; color: #fff; border-color: rgba(255,255,255,0.55); }
.btn-outline-invert:hover { border-color: #fff; transform: translateY(-2px); }
.btn-solid-invert { background: #fff; color: var(--accent-dark); box-shadow: var(--shadow-sm); }
.btn-solid-invert:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* Header */
header#site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250,246,238,0.94);
  box-shadow: 0 1px 0 var(--border);
}
.header-inner {
  max-width: 1240px; margin: 0 auto; padding: 0.7rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
}
.logo { display: flex; align-items: center; }
.logo-img { height: 56px; width: auto; }
.logo-img-footer { height: 64px; filter: brightness(0) invert(1); opacity: 0.92; }
nav#site-nav { display: flex; gap: 1.8rem; }
nav#site-nav a { font-weight: 600; font-size: 0.92rem; color: var(--ink-soft); }
nav#site-nav a:hover { color: var(--accent); }
.header-actions { display: flex; align-items: center; gap: 1.2rem; }
.header-phone { display: flex; align-items: center; gap: 0.4rem; font-weight: 700; font-size: 0.92rem; color: var(--ink); }
.header-phone svg { color: var(--accent); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; color: var(--ink); padding: 0.3rem; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* Hero */
.hero {
  position: relative;
  background: linear-gradient(90deg, rgba(28,26,22,0.94) 0%, rgba(28,26,22,0.75) 42%, rgba(28,26,22,0.35) 70%, rgba(28,26,22,0.15) 100%), url("hero.png");
  background-size: cover;
  background-position: center;
  padding: 4rem 1.5rem 5rem;
}
.hero-grid {
  position: relative; z-index: 1;
  max-width: 1240px; margin: 0 auto;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 3rem; align-items: center;
}
.ribbon {
  display: inline-block;
  background: #fff; color: var(--accent-dark);
  font-size: 0.78rem; font-weight: 800; letter-spacing: 0.03em; text-transform: uppercase;
  padding: 0.5rem 1rem;
  border-radius: 999px 4px 999px 4px;
  margin-bottom: 1.2rem;
  box-shadow: var(--shadow-sm);
}
.hero-copy h1 { color: #fff; font-size: clamp(2rem, 3.2vw, 2.9rem); line-height: 1.12; margin-bottom: 1.1rem; text-shadow: 0 2px 16px rgba(0,0,0,0.35); }
.hero-subhead { color: rgba(255,255,255,0.9); font-size: 1.08rem; max-width: 42ch; margin-bottom: 1.8rem; text-shadow: 0 1px 8px rgba(0,0,0,0.3); }
.cta-group { display: flex; gap: 0.9rem; flex-wrap: wrap; margin-bottom: 1.6rem; }
.cta-group-center { justify-content: center; }
.hero-trust { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.hero-trust span { display: flex; align-items: center; gap: 0.4rem; color: rgba(255,255,255,0.92); font-size: 0.88rem; font-weight: 600; }
.hero-trust svg { color: #fff; flex-shrink: 0; }

.hero-form-card {
  position: relative; z-index: 1;
  background: #fff; border-radius: var(--radius-lg);
  padding: 2rem; box-shadow: var(--shadow-lg);
}
.hero-form-card .kicker { color: var(--accent); font-weight: 800; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.4rem; }
.hero-form-card h2 { font-size: 1.4rem; margin-bottom: 0.4rem; }
.form-sub { color: var(--ink-soft); font-size: 0.92rem; margin-bottom: 1.4rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
.form-field { margin-bottom: 0.9rem; }
.form-field label { display: block; font-size: 0.82rem; font-weight: 700; margin-bottom: 0.35rem; color: var(--ink); }
.form-field input, .form-field textarea {
  width: 100%; padding: 0.65rem 0.8rem; border: 1.5px solid var(--border); border-radius: var(--radius);
  font-family: var(--font-body); font-size: 0.92rem; color: var(--ink); background: #fff;
}
.form-field input:focus, .form-field textarea:focus { outline: none; border-color: var(--accent); }
.form-call { display: flex; align-items: center; justify-content: center; gap: 0.4rem; margin-top: 1rem; font-weight: 700; font-size: 0.88rem; color: var(--accent); }

/* Trust strip */
.trust-strip {
  position: relative;
  background: var(--accent);
  padding: 2.2rem 1.5rem 1.8rem;
}
.trust-strip-inner {
  max-width: 1240px; margin: 0 auto;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.2rem;
}
.trust-item { display: flex; align-items: center; gap: 0.6rem; color: #fff; font-weight: 700; font-size: 0.92rem; }
.trust-item svg { flex-shrink: 0; }

/* Sections generic */
.section-head { text-align: center; max-width: 640px; margin: 0 auto 2.6rem; }
.section-head h2 { font-size: clamp(1.7rem, 2.6vw, 2.3rem); margin-bottom: 0.6rem; }
.section-head p { color: var(--ink-soft); font-size: 1.05rem; }

/* Services */
.services { background: var(--bg-soft); padding: 4.5rem 1.5rem; }
.service-grid {
  max-width: 1240px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem;
}
.service-card {
  position: relative;
  background: #fff; border-radius: var(--radius-lg);
  padding: 1.8rem 1.6rem 2.4rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
  overflow: hidden;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.svc-icon {
  width: 50px; height: 50px; background: var(--accent-soft); color: var(--accent);
  border-radius: var(--radius); display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
}
.service-card h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.service-card p { color: var(--ink-soft); font-size: 0.88rem; }
.svc-band {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: var(--accent); color: #fff;
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase;
  text-align: center; padding: 0.45rem 0.5rem;
}

/* About */
.about {
  position: relative;
  background: var(--dark);
  padding: 5.5rem 1.5rem 4.5rem;
}
.about-grid {
  position: relative; z-index: 1;
  max-width: 1240px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: start;
}
.about-copy h2 { color: #fff; font-size: clamp(1.7rem, 2.6vw, 2.3rem); margin-bottom: 1rem; }
.about-copy p { color: rgba(255,255,255,0.78); font-size: 1.05rem; }
.why-list { display: flex; flex-direction: column; gap: 1.4rem; }
.why-item { display: flex; gap: 1rem; align-items: flex-start; }
.why-icon {
  width: 38px; height: 38px; background: var(--accent); color: #fff;
  border-radius: var(--radius); display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.why-item h3 { color: #fff; font-size: 1rem; margin-bottom: 0.3rem; }
.why-item p { color: rgba(255,255,255,0.7); font-size: 0.9rem; }

/* Service area */
.service-area { background: var(--bg); padding: 4.5rem 1.5rem; }
.area-chips { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--bg-soft); border: 1.5px solid var(--border);
  padding: 0.8rem 1.4rem; border-radius: var(--radius);
  font-weight: 700; font-size: 0.95rem; color: var(--ink);
}
.chip svg { color: var(--accent); }

/* Reviews */
.social-proof {
  position: relative;
  background: var(--accent);
  padding: 4.5rem 1.5rem;
  text-align: center;
}
.proof-inner { position: relative; z-index: 1; max-width: 1100px; margin: 0 auto; }
.social-proof h2 { color: #fff; font-size: clamp(1.7rem, 2.6vw, 2.3rem); margin-bottom: 2rem; }
.review-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem;
  margin-bottom: 2.2rem;
}
.review-card {
  background: #fff; border-radius: var(--radius-lg);
  padding: 1.6rem; text-align: left;
  box-shadow: var(--shadow-sm);
}
.quote-star { color: #d99a2b; display: inline-block; }
.review-card p { color: var(--ink); font-size: 0.95rem; margin: 0.8rem 0 1rem; line-height: 1.5; }
.review-author { font-size: 0.82rem; font-weight: 700; color: var(--ink-soft); }
.proof-links { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.proof-link {
  display: flex; align-items: center; gap: 0.6rem;
  background: #fff; color: var(--ink);
  padding: 1rem 1.6rem; border-radius: var(--radius-lg);
  font-weight: 700; box-shadow: var(--shadow-sm);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.proof-link:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.proof-link svg { color: var(--accent); }

/* Bottom CTA */
.cta-band {
  position: relative;
  background: var(--dark);
  color: #fff; text-align: center;
  padding: 5rem 1.5rem;
}
.cta-band h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); margin-bottom: 0.7rem; }
.cta-band p { font-size: 1.1rem; opacity: 0.85; margin-bottom: 2rem; }

/* Footer */
footer { background: var(--dark-2); color: rgba(255,255,255,0.75); padding: 4rem 1.5rem 1.5rem; }
.footer-grid {
  max-width: 1240px; margin: 0 auto;
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 2.5rem;
  padding-bottom: 2.5rem; border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-tagline { margin-top: 1rem; font-size: 0.9rem; line-height: 1.6; }
.footer-col h4 { color: #fff; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 1.1rem; }
.footer-col ul { display: flex; flex-direction: column; gap: 0.65rem; font-size: 0.9rem; }
address { font-style: normal; display: flex; flex-direction: column; gap: 0.7rem; font-size: 0.9rem; margin-bottom: 1rem; }
address p { display: flex; align-items: flex-start; gap: 0.5rem; }
address svg { flex-shrink: 0; margin-top: 3px; color: var(--accent); }
address a:hover { color: #fff; }
.footer-hours { font-size: 0.8rem; color: rgba(255,255,255,0.45); line-height: 1.6; margin-top: 0.6rem; }
.footer-map { max-width: 1240px; margin: 0 auto; padding: 2rem 0 0; }
.footer-map iframe { border-radius: var(--radius-lg); display: block; }
.footer-map-note { font-size: 0.78rem; color: rgba(255,255,255,0.4); line-height: 1.6; margin-top: 0.8rem; }
.footer-map-note a { text-decoration: underline; color: rgba(255,255,255,0.6); }
.footer-bottom {
  max-width: 1240px; margin: 0 auto; padding-top: 1.5rem;
  font-size: 0.82rem; color: rgba(255,255,255,0.45);
}

/* Responsive */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero { background-image: linear-gradient(180deg, rgba(28,26,22,0.55) 0%, rgba(28,26,22,0.92) 60%, rgba(28,26,22,0.97) 100%), url("hero.png"); }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .review-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  nav#site-nav {
    position: fixed; top: 65px; left: 0; right: 0; bottom: 0;
    background: #fff; flex-direction: column; padding: 2rem 1.5rem; gap: 1.4rem;
    transform: translateX(100%); transition: transform 0.3s var(--ease);
  }
  nav#site-nav.is-open { transform: translateX(0); }
  nav#site-nav a { font-size: 1.1rem; }
  .nav-toggle { display: block; }
  .header-phone { display: none; }
  .logo-img { height: 44px; }
  .form-row { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .cta-group { flex-direction: column; align-items: stretch; }
  .cta-group .btn { justify-content: center; }
  .proof-links { flex-direction: column; }
}
