/* ============================================================
   Mates Rates Handyman — modern theme
   Type: Sora (headings) + Inter (body)
   Palette: warm paper white, deep ink, single amber accent
   Rebrand: change --accent / --accent-2 below.
   ============================================================ */

:root {
  --paper: #ffffff;
  --soft: #f4f5f7;
  --ink: #14151a;
  --ink-2: #1d1f26;
  --muted: #5b5f6b;
  --faint: #8e93a1;
  --line: #e8e9ee;
  --accent: #ffb020;
  --accent-2: #ff8a3d;
  --danger: #d64545;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(20,21,26,.06), 0 4px 14px rgba(20,21,26,.06);
  --shadow-md: 0 6px 24px rgba(20,21,26,.10);
  --shadow-lg: 0 18px 48px rgba(20,21,26,.16);
  --font-head: "Sora", "Inter", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 780px; }

h1, h2, h3 { font-family: var(--font-head); letter-spacing: -0.02em; margin: 0 0 14px; line-height: 1.15; }
h1 { font-size: clamp(32px, 5.4vw, 56px); font-weight: 800; }
h2 { font-size: clamp(24px, 3.4vw, 36px); font-weight: 700; }
h3 { font-size: 17px; font-weight: 700; letter-spacing: 0; }
p { margin: 0 0 12px; }
a { color: inherit; }

/* eyebrow labels */
.eyebrow {
  display: inline-block;
  font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent-2);
  margin: 0 0 10px;
  padding: 5px 12px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
}
.eyebrow-dark { background: rgba(255,255,255,.10); color: var(--accent); }

.section { padding: 88px 0; }
.section-sub { color: var(--muted); max-width: 560px; font-size: 17px; margin-bottom: 40px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 24px; border-radius: 999px;
  font-family: var(--font-body); font-size: 15px; font-weight: 600;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, opacity .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-lg { padding: 16px 30px; font-size: 16px; }
.btn-amber {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #201503;
  box-shadow: 0 6px 20px color-mix(in srgb, var(--accent-2) 40%, transparent);
}
.btn-amber:hover { box-shadow: 0 10px 28px color-mix(in srgb, var(--accent-2) 55%, transparent); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.btn-ghost:hover { border-color: #fff; }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-full { width: 100%; }

/* ---------- header ---------- */
.header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.header.scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }
.header-row { display: flex; align-items: center; gap: 24px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-head); font-weight: 700; font-size: 17px; }
.brand-logo { height: 44px; width: auto; display: block; border-radius: 10px; }
.brand-text {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 19px;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.brand-mark {
  width: 38px; height: 38px; border-radius: 11px;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #201503;
}
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { text-decoration: none; color: var(--muted); font-size: 15px; font-weight: 500; transition: color .15s ease; }
.nav a:hover { color: var(--ink); }
.header-cta { display: flex; align-items: center; gap: 16px; }
.header-phone { font-weight: 700; font-size: 15px; text-decoration: none; }
.header-phone:hover { color: var(--accent-2); }

/* ---------- hero ---------- */
.hero {
  background:
    radial-gradient(900px 480px at 85% -10%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 60%),
    radial-gradient(700px 420px at -10% 110%, color-mix(in srgb, var(--accent-2) 14%, transparent), transparent 55%),
    var(--ink);
  color: #fff;
  padding: 88px 0 96px;
  overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 40px; } }
.hero .hl {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .lede { color: rgba(255,255,255,.72); font-size: clamp(16px, 2vw, 19px); max-width: 520px; margin: 18px 0 28px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.stats { display: flex; gap: 44px; margin: 44px 0 0; padding: 26px 0 0; border-top: 1px solid rgba(255,255,255,.14); }
.stats div { margin: 0; }
.stats dt { font-family: var(--font-head); font-size: 30px; font-weight: 800; color: var(--accent); }
.stats dd { margin: 2px 0 0; font-size: 13.5px; color: rgba(255,255,255,.6); }

.hero-media { position: relative; }
.hero-img {
  width: 100%; display: block; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3.1; object-fit: cover;
  /* To show the ENTIRE photo uncropped instead, use:
     aspect-ratio: auto; object-fit: contain; background: var(--ink-2); */
}
.float-card {
  position: absolute; display: flex; flex-direction: column; gap: 1px;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(8px);
  border-radius: 14px; padding: 12px 18px;
  box-shadow: var(--shadow-md);
  color: var(--ink);
}
.float-card-1 { top: 22px; left: -18px; }
.float-card-2 { bottom: 26px; right: -14px; }
.float-card-num { font-family: var(--font-head); font-weight: 800; font-size: 17px; color: var(--accent-2); }
.float-card-label { font-size: 12px; color: var(--muted); }
@media (max-width: 900px) { .float-card-1 { left: 10px; } .float-card-2 { right: 10px; } }

/* ---------- trust strip ---------- */
.trust { padding: 0; margin-top: -44px; position: relative; z-index: 5; }
.trust-row {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 26px 32px;
}
@media (max-width: 900px) { .trust-row { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .trust-row { grid-template-columns: 1fr; } }
.trust-item strong { display: block; font-family: var(--font-head); font-size: 15px; margin-bottom: 3px; }
.trust-item span { font-size: 13.5px; color: var(--muted); }

/* ---------- service cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.card {
  position: relative;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
  overflow: hidden;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.card-num {
  font-family: var(--font-head); font-weight: 800; font-size: 14px;
  color: var(--faint); letter-spacing: .08em;
  display: inline-block; margin-bottom: 14px;
  transition: color .22s ease;
}
.card:hover .card-num { color: var(--accent-2); }
.card p { color: var(--muted); font-size: 15px; margin: 0; }
.cards-3 { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.stars { color: var(--accent); letter-spacing: 3px; margin-bottom: 10px; font-size: 15px; }
.reviewer { font-size: 13px; color: var(--faint); font-weight: 500; }

/* ---------- dark section / steps ---------- */
.section-dark {
  background:
    radial-gradient(700px 380px at 90% 0%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 60%),
    var(--ink);
  color: #fff;
}
.dark-h2 { color: #fff; }
.steps { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }
.steps li {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--radius-lg); padding: 28px;
  transition: background .2s ease, border-color .2s ease;
}
.steps li:hover { background: rgba(255,255,255,.09); border-color: color-mix(in srgb, var(--accent) 50%, transparent); }
.steps h3 { color: #fff; }
.steps p { color: rgba(255,255,255,.65); font-size: 15px; margin: 0; }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 12px;
  font-family: var(--font-head); font-weight: 800; font-size: 17px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #201503;
  margin-bottom: 18px;
}

/* ---------- why me ---------- */
.why-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 860px) { .why-grid { grid-template-columns: 1fr; } }
.checklist { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 14px; }
.checklist li { position: relative; padding-left: 34px; color: var(--ink); }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 3px;
  width: 20px; height: 20px; border-radius: 7px;
  background: color-mix(in srgb, var(--accent) 22%, transparent);
  clip-path: polygon(14% 44%, 0 58%, 41% 100%, 100% 16%, 86% 3%, 40% 70%);
}
.guarantee-card {
  background: var(--ink); color: #fff;
  border-radius: var(--radius-lg); padding: 36px 32px;
  box-shadow: var(--shadow-lg);
  background-image: radial-gradient(300px 200px at 90% 0%, color-mix(in srgb, var(--accent) 25%, transparent), transparent 70%);
}
.guarantee-card svg { color: var(--accent); margin-bottom: 16px; }
.guarantee-card p { color: rgba(255,255,255,.7); margin: 0; }

/* ---------- gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.gallery-item { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.gallery-item img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block;
  transition: transform .45s ease;
}
.gallery-item:hover img { transform: scale(1.05); }

/* ---------- faq ---------- */
.section-soft { background: var(--soft); }
.faq-item {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--paper); padding: 4px 22px; margin-bottom: 12px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.faq-item[open] { border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); box-shadow: var(--shadow-sm); }
.faq-item summary {
  cursor: pointer; list-style: none;
  font-family: var(--font-head); font-weight: 700; font-size: 16px;
  padding: 16px 30px 16px 0; position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-size: 22px; font-weight: 400; color: var(--accent-2);
  transition: transform .2s ease;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item p { color: var(--muted); padding: 0 0 16px; margin: 0; font-size: 15px; }

/* ---------- service area map ---------- */
.map-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  background: var(--paper);
  max-width: 560px;
  margin: 0 auto;
}
.area-map { width: 100%; display: block; }
a.map-wrap { display: block; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
a.map-wrap:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.map-caption { text-align: center; font-size: 13.5px; color: var(--faint); margin: 14px 0 0; }

/* ---------- chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  border: 1px solid var(--line); background: var(--paper);
  border-radius: 999px; padding: 7px 16px; font-size: 14px; color: var(--muted);
  transition: border-color .15s ease, color .15s ease;
}
.chip:hover { border-color: var(--accent); color: var(--ink); }

/* ---------- quote form ---------- */
.quote-grid { display: grid; grid-template-columns: 1.9fr 1fr; gap: 24px; align-items: start; }
@media (max-width: 860px) { .quote-grid { grid-template-columns: 1fr; } }
.form {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 32px; box-shadow: var(--shadow-sm);
}
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .row { grid-template-columns: 1fr; } }
.field { margin-bottom: 18px; }
label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
input, select, textarea {
  width: 100%; padding: 13px 15px;
  border: 1px solid var(--line); border-radius: 12px;
  font: inherit; color: var(--ink); background: var(--soft);
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
input:hover, select:hover, textarea:hover { border-color: #d4d6de; }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--accent);
  background: #fff; box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent);
}
.invalid input, .invalid select, .invalid textarea { border-color: var(--danger); background: #fff; }
.error { display: none; margin: 6px 0 0; font-size: 13px; color: var(--danger); font-weight: 500; }
.invalid .error { display: block; }
.hint { margin: 5px 0 0; font-size: 12px; color: var(--faint); text-align: right; }
.hint.over { color: var(--danger); }
.form-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 6px; }
.fine { font-size: 12.5px; color: var(--faint); margin: 16px 0 0; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; overflow: hidden; }

.side { display: grid; gap: 18px; }
.side-box {
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 26px; background: var(--soft);
}
.side-box-dark {
  background: var(--ink); color: #fff; border-color: transparent;
  background-image: radial-gradient(260px 180px at 90% 0%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%);
}
.side-box-dark p { color: rgba(255,255,255,.7); }
.side-box p { color: var(--muted); font-size: 15px; }
.side-phone { font-family: var(--font-head); font-weight: 800; font-size: 22px; text-decoration: none; }
.side-phone:hover { color: var(--accent-2); }
.side-hours { font-size: 13px; color: var(--faint); margin: 4px 0 0; }

.success-box {
  border: 1px solid var(--line); border-left: 5px solid var(--accent);
  border-radius: var(--radius-lg); padding: 30px; margin-top: 24px;
  background: var(--paper); box-shadow: var(--shadow-sm);
}
.success-box p { color: var(--muted); }
.success-box .btn { margin: 8px 12px 0 0; }

/* ---------- footer ---------- */
.footer {
  background:
    radial-gradient(600px 300px at 100% 0%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 60%),
    var(--ink);
  color: rgba(255,255,255,.62);
  padding: 64px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 48px;
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 36px; } }
.footer-col h4 {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 16px;
}
.footer-brand-col { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.footer-logo { height: 42px; width: auto; border-radius: 10px; }
.footer-name { font-family: var(--font-head); font-weight: 700; font-size: 17px; color: #fff; }
.footer-tag { font-size: 14px; margin: 0; max-width: 300px; line-height: 1.6; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a, .footer-contact a {
  color: rgba(255,255,255,.62);
  text-decoration: none;
  font-size: 15px;
  transition: color .15s ease;
}
.footer-links a:hover, .footer-contact a:hover { color: var(--accent); }
.footer-phone { font-family: var(--font-head); font-weight: 700; font-size: 19px !important; color: #fff !important; }
.footer-contact { margin: 0 0 16px; line-height: 1.9; }
.footer-wa { padding: 11px 20px; font-size: 14px; }
.footer-hours { font-size: 13px; color: rgba(255,255,255,.4); margin: 14px 0 0; }
.footer-bar { border-top: 1px solid rgba(255,255,255,.12); padding: 18px 0 22px; }
.footer-bar-row {
  display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  font-size: 13px; color: rgba(255,255,255,.42);
}
.footer-bar-row a { color: rgba(255,255,255,.6); text-decoration: none; }
.footer-bar-row a:hover { color: var(--accent); }

/* ---------- scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- landing pages ---------- */
.page-hero {
  background:
    radial-gradient(800px 400px at 88% -10%, color-mix(in srgb, var(--accent) 20%, transparent), transparent 60%),
    var(--ink);
  color: #fff;
  padding: 64px 0 72px;
}
.page-hero .lede { color: rgba(255,255,255,.72); font-size: 17px; max-width: 660px; margin: 0 0 14px; }
.page-hero h1 { font-size: clamp(30px, 4.6vw, 46px); max-width: 820px; }
.page-hero .badges { margin-top: 36px; }
.page-hero .badges li { color: rgba(255,255,255,.6); }
.cta-band { text-align: center; }
.cta-band p { color: rgba(255,255,255,.7); max-width: 520px; margin: 0 auto 22px; }
.cta-band .hero-actions { justify-content: center; }
.chip-link { text-decoration: none; cursor: pointer; }
.chip-link:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.footer-links { display: flex; flex-direction: column; gap: 10px; }

.card h3 a { color: inherit; text-decoration: none; }
.card h3 a:hover { color: var(--accent-2); }
