/* Hunny-Do Handyman Services: site styles. No framework, no build step. */
:root {
  --red: #a42a2a;          /* shield red from the logo */
  --red-dark: #6e1414;     /* deep maroon used for headings on the old site */
  --red-tint: #f7ecea;
  --steel: #6b6f75;        /* shield border gray */
  --ink: #1f1b18;
  --ink-soft: #4a4440;
  --paper: #ffffff;
  --sand: #f7f3ee;
  --line: #e6dfd7;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(31,27,24,.06), 0 8px 24px rgba(31,27,24,.08);
  --max: 1120px;
  --font-head: "Lexend", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 17px/1.6 var(--font-body);
  padding-bottom: 76px; /* room for the mobile contact bar */
}
@media (min-width: 860px) { body { padding-bottom: 0; } }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); }
a:hover { color: var(--red-dark); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; color: var(--ink); margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.3rem, 6vw, 3.75rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1em; }
.wrap { width: min(var(--max), 100% - 32px); margin-inline: auto; }
.eyebrow { font: 600 .82rem/1 var(--font-head); letter-spacing: .12em; text-transform: uppercase; color: var(--red); margin-bottom: 14px; }
.lede { font-size: 1.15rem; color: var(--ink-soft); max-width: 46ch; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.icon { width: 1.15em; height: 1.15em; flex: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px; justify-content: center;
  padding: 14px 22px; border-radius: 999px; font: 600 1rem/1 var(--font-head);
  text-decoration: none; border: 2px solid transparent; transition: background .15s, color .15s, border-color .15s;
  min-height: 48px;
}
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-light { background: #fff; color: var(--red-dark); }
.btn-light:hover { background: var(--sand); color: var(--red-dark); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.94); backdrop-filter: saturate(1.2) blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand img { height: 52px; width: auto; }
.nav { display: none; gap: 28px; align-items: center; }
.nav a { color: var(--ink); text-decoration: none; font: 500 .98rem/1 var(--font-head); padding: 8px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--red); color: var(--ink); }
.header-cta { display: none; }
.menu-btn { display: inline-flex; align-items: center; gap: 8px; background: none; border: 1px solid var(--line); border-radius: 999px; padding: 10px 14px; font: 500 .95rem/1 var(--font-head); color: var(--ink); cursor: pointer; min-height: 44px; }
.mobile-nav { display: none; border-top: 1px solid var(--line); background: #fff; }
.mobile-nav.open { display: block; }
.mobile-nav a { display: block; padding: 16px; text-decoration: none; color: var(--ink); font: 500 1.05rem var(--font-head); border-bottom: 1px solid var(--line); }
@media (min-width: 860px) {
  .nav, .header-cta { display: flex; }
  .menu-btn, .mobile-nav, .mobile-nav.open { display: none; }
}

/* Hero */
.hero { padding: 48px 0 56px; background: linear-gradient(180deg, var(--sand), #fff); }
.hero .wrap { display: grid; gap: 36px; align-items: center; }
.hero h1 span { color: var(--red); display: block; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 18px; }
.hero-note { display: flex; align-items: center; gap: 8px; color: var(--ink-soft); font-size: .95rem; margin: 0; }
.hero-photo { position: relative; margin: 0; }
.hero-photo img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 1; object-fit: cover; width: 100%; }
.hero-photo figcaption { position: absolute; left: 14px; bottom: 14px; background: rgba(255,255,255,.95); padding: 8px 12px; border-radius: 10px; font: 500 .85rem var(--font-head); box-shadow: var(--shadow); }
@media (min-width: 860px) { .hero { padding: 80px 0 88px; } .hero .wrap { grid-template-columns: 1.1fr .9fr; gap: 56px; } }

/* Promise strip */
.promises { background: var(--red-dark); color: #fff; }
.promises ul { list-style: none; margin: 0; padding: 18px 0; display: grid; gap: 10px 28px; grid-template-columns: 1fr; }
.promises li { display: flex; align-items: center; gap: 10px; font: 500 .98rem var(--font-head); }
@media (min-width: 700px) { .promises ul { grid-template-columns: repeat(3, auto); justify-content: center; } }

/* Sections */
section { padding: 64px 0; }
@media (min-width: 860px) { section { padding: 88px 0; } }
.section-head { max-width: 680px; margin-bottom: 36px; }
.alt { background: var(--sand); }

/* Services */
.services { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .services { grid-template-columns: repeat(2, 1fr); } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.card .badge { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--red-tint); color: var(--red); margin-bottom: 16px; }
.card .badge .icon { width: 24px; height: 24px; }
.card p { color: var(--ink-soft); }
.tags { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { background: var(--sand); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; font-size: .88rem; color: var(--ink-soft); }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; counter-reset: step; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; counter-increment: step; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--red); color: #fff; font: 700 1.05rem var(--font-head); margin-bottom: 14px; }
.steps p { color: var(--ink-soft); margin: 0; }

/* Meet Rich */
.about { display: grid; gap: 36px; align-items: center; }
.about img { border-radius: var(--radius); box-shadow: var(--shadow); max-height: 560px; width: 100%; object-fit: cover; object-position: top; }
.values { display: grid; gap: 18px 28px; grid-template-columns: 1fr; margin-top: 24px; }
@media (min-width: 560px) { .values { grid-template-columns: 1fr 1fr; } }
.values h3 { display: flex; align-items: center; gap: 8px; font-size: 1.05rem; margin-bottom: 4px; }
.values h3 .icon { color: var(--red); }
.values p { color: var(--ink-soft); font-size: .97rem; margin: 0; }
@media (min-width: 860px) { .about { grid-template-columns: .8fr 1.2fr; gap: 64px; } }

/* Gallery */
.gallery { display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 700px) { .gallery { grid-template-columns: repeat(3, 1fr); gap: 14px; } }
@media (min-width: 1000px) { .gallery.full { grid-template-columns: repeat(4, 1fr); } }
.gallery button { padding: 0; border: 0; background: var(--sand); border-radius: 10px; overflow: hidden; cursor: zoom-in; aspect-ratio: 1; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.gallery button:hover img { transform: scale(1.03); }
.center { text-align: center; margin-top: 30px; }

/* Lightbox */
dialog.lightbox { border: 0; padding: 0; background: transparent; max-width: min(1100px, 96vw); max-height: 92vh; }
dialog.lightbox::backdrop { background: rgba(15,12,10,.88); }
dialog.lightbox img { max-height: 84vh; width: auto; margin: 0 auto; border-radius: 10px; }
.lb-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 10px; color: #fff; font: 500 .95rem var(--font-head); }
.lb-bar button { background: rgba(255,255,255,.14); color: #fff; border: 0; border-radius: 999px; min-width: 48px; min-height: 48px; display: inline-grid; place-items: center; cursor: pointer; }
.lb-bar button:hover { background: rgba(255,255,255,.26); }

/* Loan referral band and page */
.band { background: var(--ink); color: #fff; border-radius: var(--radius); padding: 34px; display: grid; gap: 18px; align-items: center; }
.band h2 { color: #fff; margin-bottom: 6px; }
.band p { color: #d9d2cb; margin: 0; }
@media (min-width: 860px) { .band { grid-template-columns: 1fr auto; padding: 44px 52px; } }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.contact-card dl { margin: 0; display: grid; gap: 14px; }
.contact-card dt { font: 600 .8rem var(--font-head); text-transform: uppercase; letter-spacing: .1em; color: var(--steel); }
.contact-card dd { margin: 2px 0 0; font-size: 1.05rem; }
.fine { font-size: .85rem; color: var(--steel); }
.placeholder { background: #fff6d6; outline: 1px dashed #c9a400; padding: 0 4px; border-radius: 4px; }
.loan-grid { display: grid; gap: 36px; }
@media (min-width: 860px) { .loan-grid { grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: start; } }
.checklist { list-style: none; padding: 0; margin: 20px 0; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; }
.checklist .icon { color: var(--red); margin-top: 4px; }

/* Contact */
.contact { display: grid; gap: 28px; }
@media (min-width: 860px) { .contact { grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; } }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }

/* Footer */
.site-footer { background: var(--sand); border-top: 1px solid var(--line); padding: 40px 0; font-size: .95rem; color: var(--ink-soft); }
.site-footer .wrap { display: grid; gap: 22px; }
.site-footer a { color: var(--ink-soft); }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 22px; }
@media (min-width: 860px) { .site-footer .wrap { grid-template-columns: 1fr auto; align-items: center; } }

/* Sticky mobile contact bar */
.mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -6px 18px rgba(0,0,0,.06); }
.mobile-bar .btn { padding: 12px; }
@media (min-width: 860px) { .mobile-bar { display: none; } }

/* Page header for inner pages */
.page-head { padding: 52px 0 36px; background: linear-gradient(180deg, var(--sand), #fff); }
.page-head p { max-width: 60ch; color: var(--ink-soft); font-size: 1.1rem; }
