/* ==========================================================================
   Mr. Handyman of Bentonville, Rogers & Springdale — Design tokens
   Real differentiator: a genuinely VERIFIED 4.9-star / 690-review track
   record (first verified GBP in this batch) plus real, named local owners.
   Honors the real franchise brand color (red) rather than inventing one,
   but with distinct typography/layout from the other 3 builds.
   Display: Archivo (bold, geometric, distinct from Barlow Condensed,
   Bebas Neue, and Space Grotesk already used in this batch)
   ========================================================================== */

:root {
  --font-display: 'Archivo', system-ui, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --red-700: #b8102a;
  --red-600: #d81730;
  --red-50: #fdecee;
  --ink: #1c1c1e;
  --ink-soft: #55575c;
  --charcoal: #26272b;
  --paper: #f7f6f5;
  --white: #ffffff;
  --border: #e3e1df;
  --gold: #f0b429;

  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px;
  --sp-5: 24px; --sp-6: 32px; --sp-7: 48px; --sp-8: 64px; --sp-9: 96px;

  --radius: 10px;
  --max-width: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  font-size: 1rem;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.1;
  margin: 0 0 var(--sp-3);
  color: var(--ink);
}

h1 { font-size: clamp(2.25rem, 5.5vw, 3.25rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.25rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 var(--sp-4); color: var(--ink-soft); }
a { color: inherit; }
img { max-width: 100%; display: block; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 var(--sp-5); }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--red-700); color: #fff;
  padding: var(--sp-2) var(--sp-4); z-index: 100;
}
.skip-link:focus { left: 0; top: 0; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  font-family: var(--font-body); font-weight: 700; font-size: 1rem;
  padding: 14px 28px; border-radius: var(--radius);
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  min-height: 48px; transition: transform 0.15s ease;
}
.btn:focus-visible { outline: 3px solid var(--red-600); outline-offset: 2px; }
.btn-primary { background: var(--red-600); color: #fff; }
.btn-primary:hover { background: var(--red-700); transform: translateY(-1px); }
.btn-secondary { background: transparent; border-color: rgba(255,255,255,0.6); color: #fff; }
.btn-secondary:hover { border-color: #fff; }
.btn-outline { background: transparent; border-color: var(--charcoal); color: var(--charcoal); }
.btn-outline:hover { background: var(--paper); }

/* ---------- Header / Nav ---------- */

.site-header { background: var(--white); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 50; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; padding: var(--sp-3) var(--sp-5); }
.brand { font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; color: var(--ink); text-decoration: none; }
.brand span { color: var(--red-600); }
.nav-toggle { display: none; background: none; border: 2px solid var(--border); border-radius: var(--radius); padding: var(--sp-2) var(--sp-3); min-height: 44px; min-width: 44px; }
.main-nav ul { display: flex; gap: var(--sp-6); list-style: none; margin: 0; padding: 0; align-items: center; }
.main-nav a { text-decoration: none; color: var(--ink-soft); font-weight: 600; font-size: 0.95rem; }
.main-nav a[aria-current="page"] { color: var(--red-700); }
.header-cta { display: flex; align-items: center; gap: var(--sp-4); }
.header-phone { font-weight: 700; color: var(--ink); text-decoration: none; white-space: nowrap; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--border); padding: var(--sp-4) var(--sp-5); }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; align-items: flex-start; gap: var(--sp-4); }
  .header-phone { display: none; }
}

/* ---------- Hero — real verified stats front and center ---------- */

.hero { position: relative; background: var(--charcoal); color: #fff; padding: var(--sp-9) 0 var(--sp-8); overflow: hidden; }
.hero-bg-layer { position: absolute; inset: 0; z-index: 0; }
.hero-bg-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 1.2s ease;
}
.hero-bg-img.is-active { opacity: 1; }
.hero-bg-overlay { position: absolute; inset: 0; background: rgba(26,27,31,0.15); }
.hero .container { position: relative; z-index: 1; }
@media (prefers-reduced-motion: reduce) { .hero-bg-img { transition: none; } }
.hero-local-badge {
  position: absolute; z-index: 2; top: var(--sp-6); right: var(--sp-5);
  display: flex; align-items: center; gap: var(--sp-3);
  background: rgba(26,27,31,0.72); backdrop-filter: blur(3px);
  border: 1px solid rgba(255,255,255,0.25); border-radius: var(--radius);
  padding: var(--sp-3) var(--sp-4); max-width: 240px;
}
.hero-local-badge img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 2px solid rgba(255,255,255,0.5); }
.hero-local-badge p { margin: 0; font-size: 0.85rem; color: rgba(255,255,255,0.85); line-height: 1.3; }
.hero-local-badge strong { color: #fff; }
@media (max-width: 860px) { .hero-local-badge { display: none; } }
.hero .container { max-width: 780px; }
.hero .rating-badge {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  background: rgba(26,27,31,0.55); border: 1px solid var(--gold);
  padding: var(--sp-2) var(--sp-4); border-radius: 999px; font-weight: 700;
  color: var(--gold); margin-bottom: var(--sp-4); font-size: 0.95rem;
  backdrop-filter: blur(2px);
}
.hero h1 { color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,0.85), 0 1px 3px rgba(0,0,0,0.9); }
.hero .lede { color: rgba(255,255,255,0.95); font-size: 1.1rem; max-width: 55ch; text-shadow: 0 2px 8px rgba(0,0,0,0.85), 0 1px 3px rgba(0,0,0,0.9); }
.hero-actions { display: flex; gap: var(--sp-4); flex-wrap: wrap; margin-top: var(--sp-5); }
.hero-trust-line { color: #fff; font-size: 0.9rem; margin: var(--sp-4) 0 0; text-shadow: 0 1px 6px rgba(0,0,0,0.85); }
.hero-stats {
  display: flex; gap: var(--sp-7); flex-wrap: wrap; margin-top: var(--sp-7);
  border-top: 1px solid rgba(255,255,255,0.3); padding-top: var(--sp-6);
  background: rgba(26,27,31,0.45); backdrop-filter: blur(2px);
  margin-left: calc(var(--sp-5) * -1); margin-right: calc(var(--sp-5) * -1);
  padding-left: var(--sp-5); padding-right: var(--sp-5); padding-bottom: var(--sp-4);
  border-radius: var(--radius);
}
.hero-stat strong { display: block; font-family: var(--font-display); font-weight: 800; font-size: 2.25rem; color: var(--red-600); text-shadow: 0 2px 8px rgba(0,0,0,0.6); }
.hero-stat span { color: #fff; font-size: 0.9rem; text-shadow: 0 1px 6px rgba(0,0,0,0.85); }

/* ---------- Sections ---------- */

.section { padding: var(--sp-8) 0; }
.section-alt { background: var(--paper); }
.section-head { max-width: 62ch; margin-bottom: var(--sp-6); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow { font-family: var(--font-display); color: var(--red-700); font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.85rem; }

/* ---------- Real reviews ---------- */

.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-5); }
.review-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--sp-5); }
.review-stars { color: var(--gold); font-size: 1rem; margin-bottom: var(--sp-2); }
.review-quote { font-style: italic; color: var(--ink); margin-bottom: var(--sp-3); }
.review-author { font-weight: 700; font-size: 0.9rem; color: var(--ink-soft); }

@media (max-width: 860px) { .reviews-grid { grid-template-columns: 1fr; } }

.guarantee-line {
  text-align: center; max-width: 560px; margin: var(--sp-7) auto 0;
  padding: var(--sp-4) var(--sp-5); background: var(--red-50); border: 1px solid var(--red-600);
  border-radius: var(--radius); font-size: 0.95rem; color: var(--ink);
}
.guarantee-line strong { color: var(--red-700); }

/* ---------- Team ---------- */

.team-quote {
  background: var(--red-50); border-left: 4px solid var(--red-600);
  padding: var(--sp-6); border-radius: var(--radius); margin: var(--sp-6) 0;
  display: flex; align-items: center; gap: var(--sp-5); flex-wrap: wrap;
}
.team-quote-photo { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 3px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
.team-quote-text { flex: 1; min-width: 240px; }
.team-quote p { font-size: 1.2rem; font-style: italic; color: var(--ink); margin-bottom: var(--sp-2); }
.team-quote cite { font-style: normal; font-weight: 700; color: var(--red-700); }

.crew-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-5); }
.crew-card { text-align: center; }
.crew-avatar {
  width: 96px; height: 96px; border-radius: 50%; object-fit: cover;
  margin: 0 auto var(--sp-3); display: block;
  border: 3px solid var(--paper); box-shadow: 0 2px 10px rgba(0,0,0,0.12);
}
.crew-card h3 { font-size: 1.05rem; margin-bottom: var(--sp-1); }
.crew-card p { font-size: 0.9rem; margin-bottom: 0; }

@media (max-width: 860px) { .crew-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .crew-grid { grid-template-columns: 1fr; } }

/* ---------- Services grid ---------- */

.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-5); }
.service-card { border: 1px solid var(--border); border-radius: var(--radius); padding: var(--sp-5); }
.service-card h3 { font-size: 1.1rem; margin-bottom: var(--sp-2); color: var(--red-700); }
.service-card p { margin-bottom: 0; font-size: 0.95rem; }

@media (max-width: 860px) { .services-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .services-grid { grid-template-columns: 1fr; } }

/* ---------- CTA banner ---------- */

.cta-banner { background: var(--red-600); color: #fff; padding: var(--sp-7) 0; text-align: center; }
.cta-banner h2 { color: #fff; }
.cta-banner p { color: rgba(255,255,255,0.92); }
.cta-banner .btn-row { display: flex; justify-content: center; gap: var(--sp-4); flex-wrap: wrap; }

/* ---------- Owner CTA (Stripe) ---------- */

.owner-cta { background: var(--paper); border-top: 2px dashed var(--border); border-bottom: 2px dashed var(--border); }
.owner-cta-row { display: flex; align-items: center; gap: var(--sp-7); }
.owner-cta-logo { flex: 0 0 200px; }
.owner-cta-logo img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 10px 14px rgba(22, 32, 46, 0.22)) drop-shadow(0 2px 4px rgba(22, 32, 46, 0.15));
}
.owner-cta-copy { flex: 1; }
.owner-cta-copy .eyebrow { margin: 0 0 var(--sp-2); }
.owner-cta-copy h2 { margin: 0 0 var(--sp-3); }
.owner-cta-copy p { margin: 0 0 var(--sp-4); }
.owner-cta-copy p:last-child { margin-bottom: 0; }
@media (max-width: 720px) {
  .owner-cta-row { flex-direction: column; align-items: flex-start; }
  .owner-cta-logo { flex-basis: auto; width: 150px; }
}


/* ---------- Page hero (interior pages: About, Services) ---------- */

.page-hero { background: var(--charcoal); color: #fff; padding: var(--sp-7) 0 var(--sp-8); }
.page-hero .container { max-width: 780px; }
.page-hero h1 { color: #fff; }
.page-hero .lede { color: rgba(255,255,255,0.85); font-size: 1.1rem; max-width: 55ch; margin-bottom: 0; }
.page-hero .breadcrumbs { color: rgba(255,255,255,0.6); padding: 0 0 var(--sp-4); }
.page-hero .breadcrumbs a { color: rgba(255,255,255,0.75); }

/* ---------- Breadcrumbs ---------- */

.breadcrumbs { font-size: 0.85rem; color: var(--ink-soft); padding: var(--sp-4) 0 0; }
.breadcrumbs a { color: var(--ink-soft); text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }

/* ---------- About page ---------- */

.area-list { display: flex; flex-wrap: wrap; gap: var(--sp-3); list-style: none; padding: 0; margin: 0; }
.area-list li { background: var(--charcoal); color: #fff; padding: var(--sp-2) var(--sp-4); border-radius: var(--radius); font-weight: 600; font-size: 0.85rem; }

/* ---------- Contact page ---------- */

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-7); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-form { display: flex; flex-direction: column; gap: var(--sp-4); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
label { font-weight: 700; font-size: 0.85rem; display: block; margin-bottom: var(--sp-1); }
input, textarea { width: 100%; padding: 12px 14px; border: 2px solid var(--border); border-radius: var(--radius); font-family: inherit; font-size: 1rem; }
input:focus-visible, textarea:focus-visible { outline: 3px solid var(--red-600); outline-offset: 1px; }
textarea { resize: vertical; min-height: 120px; }
.timeline-note { font-size: 0.9rem; color: var(--ink-soft); margin-top: calc(var(--sp-4) * -1); }
.form-reassurance { font-size: 0.85rem; color: var(--ink-soft); text-align: center; margin: 0; }
.form-status { font-size: 0.9rem; min-height: 1.2em; }
.form-status.success { color: #157a3d; }
.form-status.error { color: #b3261e; }
.map-embed { border: 0; width: 100%; aspect-ratio: 4/3; border-radius: var(--radius); }

/* ---------- Footer ---------- */

.site-footer { background: var(--charcoal); color: rgba(255,255,255,0.75); padding: var(--sp-7) 0 var(--sp-5); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: var(--sp-6); margin-bottom: var(--sp-6); }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-family: var(--font-display); font-size: 1.05rem; margin-bottom: var(--sp-3); }
.site-footer a { color: rgba(255,255,255,0.75); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: var(--sp-2); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.15); padding-top: var(--sp-4); font-size: 0.85rem; text-align: center; }
.footer-bottom a { text-decoration: underline; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
