/* ==========================================================================
   Smalley Handyman Services — single page stylesheet
   Mobile-first. No external fonts or frameworks, so the page loads instantly
   on a phone with a weak signal.
   ========================================================================== */

:root {
  --ink:        #1b232b;
  --ink-soft:   #4d5b68;
  --paper:      #ffffff;
  --paper-alt:  #f4f6f8;
  --line:       #dfe5ea;
  /* Brand orange is deliberately deep: #c2410c gives 5.19:1 against white,
     which passes WCAG AA for the text on every button. A brighter orange
     measures only 2.85:1 — unreadable on a phone in daylight.            */
  --brand:        #c2410c;
  --brand-dark:   #9a3412;
  --brand-bright: #ff6b1a;   /* decorative only — never behind text */
  --brand-on-dark:#ff8f5a;   /* brand-coloured text on dark surfaces    */
  --brand-tint:   #fff1e8;
  --focus:        #0b6bcb;
  --dark:       #1b232b;
  --dark-soft:  #2a3541;
  --radius:     12px;
  --radius-sm:  8px;
  --shadow:     0 2px 4px rgba(27, 35, 43, .06), 0 12px 28px rgba(27, 35, 43, .07);
  --wrap:       1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  /* room for the sticky mobile call bar */
  padding-bottom: 72px;
}
@media (min-width: 720px) { body { padding-bottom: 0; } }

img, svg { max-width: 100%; display: block; }
a { color: var(--brand-dark); }

h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.015em; }
h1 { font-size: clamp(1.85rem, 5.5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3.6vw, 2.1rem); }
h3 { font-size: 1.12rem; }
p  { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }

/* Visible keyboard focus everywhere */
a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 4px;
}
/* A dark blue ring vanishes on the dark sections, so switch to white there */
.site-header :focus-visible, .hero :focus-visible, .section-dark :focus-visible,
.site-footer :focus-visible, .call-bar :focus-visible {
  outline-color: #ffffff;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--brand); color: #fff; padding: .7rem 1rem; font-weight: 700;
}
.skip-link:focus { left: 0; }

/* Sticky header is ~62px tall, so anchored sections need breathing room or the
   heading lands underneath it when you click a nav link. */
section[id], main[id] { scroll-margin-top: 76px; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 1.15rem; }
.wrap-narrow { max-width: 780px; }

.section { padding: 3.25rem 0; }
@media (min-width: 720px) { .section { padding: 4.5rem 0; } }
.section-alt  { background: var(--paper-alt); }
.section-dark { background: var(--dark); color: #eef2f5; }
.section-dark h2 { color: #fff; }

.section-head { max-width: 42rem; margin-bottom: 2rem; }
.section-lede { font-size: 1.05rem; color: var(--ink-soft); }
.section-dark .section-lede { color: #c3ced8; }
.section-note {
  margin-top: 2rem; padding: 1rem 1.15rem;
  background: var(--brand-tint);
  border-left: 4px solid var(--brand);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .85rem 1.4rem;
  font-size: 1rem; font-weight: 700; font-family: inherit;
  text-decoration: none; border: 0; border-radius: var(--radius-sm);
  cursor: pointer; transition: background-color .15s ease, transform .1s ease;
}
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 16px rgba(255, 107, 26, .3); }
.btn-primary:hover { background: var(--brand-dark); }

.btn-ghost { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.5); }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.1); }

.btn-call { background: var(--brand); color: #fff; }
.btn-call:hover { background: var(--brand-dark); }

.btn-wide { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(27, 35, 43, .97);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.header-inner {
  display: flex; align-items: center; gap: 1rem;
  min-height: 62px; padding-top: .5rem; padding-bottom: .5rem;
}
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: #fff; }
.brand-mark { width: 34px; height: 34px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-size: 1rem; letter-spacing: -.01em; }
.brand-text small { font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--brand-on-dark); font-weight: 700; }

.site-nav { display: none; margin-left: auto; gap: 1.5rem; }
.site-nav a { color: #c8d3dd; text-decoration: none; font-size: .93rem; font-weight: 600; }
.site-nav a:hover { color: #fff; }

/* min 44px tall so it clears the recommended touch-target size */
.btn-header { margin-left: auto; padding: .72rem 1rem; font-size: .92rem; }

@media (min-width: 860px) {
  .site-nav { display: flex; margin-left: auto; }
  .btn-header { margin-left: 0; }
}

/* ---------- Hero ---------- */
.hero {
  /* Solid fallback colour: guarantees the dark background even if a browser
     doesn't render the gradients, and gives text a known contrast base. */
  background-color: #1b232b;
  background-image:
    radial-gradient(1100px 420px at 78% -10%, rgba(255,107,26,.22), transparent 62%),
    linear-gradient(170deg, #1b232b 0%, #232f3b 100%);
  color: #fff;
  padding: 3rem 0 2.75rem;
}
@media (min-width: 720px) { .hero { padding: 5rem 0 4.25rem; } }

.hero-inner { max-width: 46rem; }
.eyebrow {
  font-size: .78rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--brand-on-dark); margin-bottom: 1rem;
}
.hero h1 { color: #fff; margin-bottom: .85rem; }
.hero-lede { font-size: 1.1rem; color: #c9d4de; max-width: 38rem; }
.hero-lede strong { color: #fff; }

.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.75rem 0 1.5rem; }
.hero-actions .btn { flex: 1 1 auto; min-width: 13rem; }

.trust-strip {
  display: flex; flex-wrap: wrap; gap: .5rem .6rem; list-style: none;
  padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,.14);
}
.trust-strip li {
  font-size: .86rem; font-weight: 600; color: #dbe4ec;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  padding: .3rem .75rem; border-radius: 999px;
}
.trust-strip li::before { content: "✓"; color: var(--brand-on-dark); font-weight: 900; margin-right: .4rem; }

/* ---------- Service cards ---------- */
.service-grid {
  display: grid; gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 620px) { .service-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .service-grid { grid-template-columns: repeat(3, 1fr); } }

.service-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.35rem 1.5rem;
  box-shadow: var(--shadow);
}
.service-card h3 {
  padding-bottom: .6rem; margin-bottom: .8rem;
  border-bottom: 2px solid var(--brand-tint);
  color: var(--ink);
}
.service-card ul { list-style: none; }
.service-card li {
  position: relative; padding-left: 1.35rem; margin-bottom: .45rem;
  font-size: .95rem; color: var(--ink-soft);
}
.service-card li::before {
  content: ""; position: absolute; left: 0; top: .58em;
  width: .5rem; height: .5rem; border-radius: 50%; background: var(--brand);
}

/* ---------- Why me ---------- */
.why-grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 620px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .why-grid { grid-template-columns: repeat(4, 1fr); } }
.why-item h3 { color: var(--ink); }
.why-item h3::before {
  content: ""; display: block; width: 2rem; height: 3px;
  background: var(--brand); border-radius: 2px; margin-bottom: .7rem;
}
.why-item p { font-size: .95rem; color: var(--ink-soft); }

/* ---------- Steps ---------- */
.steps { list-style: none; display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.5rem 1.35rem;
}
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.2rem; height: 2.2rem; border-radius: 50%;
  background: var(--brand); color: #fff; font-weight: 800;
  margin-bottom: .85rem;
}
.steps h3 { margin-bottom: .35rem; }
.steps p { margin: 0; font-size: .95rem; color: var(--ink-soft); }

/* ---------- Areas ---------- */
.area-list {
  list-style: none; display: flex; flex-wrap: wrap; gap: .55rem;
}
.area-list li {
  position: relative; background: var(--paper); border: 1px solid var(--line);
  border-radius: 999px; padding: .45rem 1rem .45rem 1.85rem;
  font-size: .93rem; font-weight: 600;
}
/* CSS dot rather than an emoji pin, so it looks identical on every device */
.area-list li::before {
  content: ""; position: absolute; left: .85rem; top: 50%;
  width: .5rem; height: .5rem; margin-top: -.25rem;
  border-radius: 50%; background: var(--brand);
}

/* ---------- FAQ ---------- */
.faq {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius-sm); margin-bottom: .65rem;
  padding: .95rem 1.15rem;
}
.faq summary {
  cursor: pointer; font-weight: 700; font-size: 1rem;
  list-style: none; display: flex; justify-content: space-between; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand); font-size: 1.4rem; line-height: 1; font-weight: 700; }
.faq[open] summary::after { content: "–"; }
.faq p { margin: .8rem 0 0; font-size: .95rem; color: var(--ink-soft); }

/* ---------- Contact ---------- */
/* No contact form in this brochure, so the details get the full width */
.contact-direct { max-width: 34rem; }

.contact-big {
  display: block; text-decoration: none;
  background: var(--brand); color: #fff;
  border-radius: var(--radius); padding: 1.35rem 1.5rem;
  margin-bottom: 1rem;
}
.contact-big:hover { background: var(--brand-dark); }
/* Pure white: anything dimmer on this orange drops under the 4.5:1 threshold.
   Visual hierarchy is carried by size and letter-spacing instead. */
.contact-big .contact-label { color: #fff; }
.contact-big .contact-value { font-size: clamp(1.5rem, 5vw, 2rem); font-weight: 800; letter-spacing: -.02em; display: block; }

.contact-label {
  display: block; font-size: .74rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: #93a3b2;
}
.contact-line {
  display: block; text-decoration: none; color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.14);
  padding: .85rem 0;
}
.contact-line:hover .contact-value-sm { color: var(--brand-on-dark); }
.contact-value-sm { display: block; font-weight: 600; word-break: break-word; }

/* Closing reassurance under the contact details */
.contact-cta {
  margin-top: 1.5rem; padding-top: 1.5rem;
  color: #c3ced8; font-size: .95rem;
}

/* ---------- Footer ---------- */
.site-footer { background: #131a21; color: #9dabb8; padding: 2.5rem 0 1.5rem; font-size: .93rem; }
.footer-inner { display: grid; gap: 1.5rem; }
@media (min-width: 720px) { .footer-inner { grid-template-columns: 1.6fr 1fr; align-items: start; } }
.footer-brand { color: #fff; font-weight: 800; font-size: 1.05rem; margin-bottom: .3rem; }
.footer-sub { max-width: 34rem; margin: 0; }
.footer-contact p { margin: 0 0 .35rem; }
.footer-contact a { color: #fff; text-decoration: none; font-weight: 600; }
.footer-contact a:hover { color: var(--brand-on-dark); }
.footer-bottom { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,.1); }
.footer-bottom p { margin: 0; font-size: .84rem; }

/* ---------- Sticky mobile call bar ---------- */
.call-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: var(--brand); text-align: center;
  box-shadow: 0 -3px 14px rgba(0,0,0,.2);
}
.call-bar a {
  display: block; padding: 1rem; color: #fff;
  font-weight: 800; text-decoration: none; font-size: 1.02rem;
}
@media (min-width: 720px) { .call-bar { display: none; } }

/* ---------- Print (customers do print quotes and invoices) ---------- */
@media print {
  .site-header, .call-bar, .hero-actions { display: none; }
  body { padding-bottom: 0; font-size: 12pt; }
  .section, .hero { padding: 1rem 0; }
  .section-dark, .hero { background: #fff !important; color: #000 !important; }
  .section-dark h2, .contact-line, .contact-value-sm { color: #000 !important; }
  a { color: #000; text-decoration: none; }
}
