/* Friendly Handyman — one stylesheet for the whole site */

:root {
  --navy: #0B2E5C;
  --blue: #1D5FBF;
  --blue-dark: #164C99;
  --sky: #EEF5FC;
  --sky-2: #DCE9F8;
  --ink: #1B2533;
  --muted: #475467;
  --line: #D5E2F2;
  --sun: #FFC94A;
  --wa: #0E7A3E;
  --wa-dark: #0A6331;
  --white: #FFFFFF;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(11, 46, 92, .06), 0 8px 24px rgba(11, 46, 92, .08);
  --wrap: 1120px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

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

img, svg { display: block; max-width: 100%; }

h1, h2, h3 { color: var(--navy); line-height: 1.15; letter-spacing: -0.015em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; }

a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-dark); }

:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 700px) { .wrap { padding: 0 24px; } }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--navy); color: var(--white); padding: 10px 16px; border-radius: 8px;
}
.skip:focus { top: 12px; color: var(--white); }

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

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 24px;
  border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-weight: 700; font-size: 1.05rem; line-height: 1.2;
  text-decoration: none; text-align: center; cursor: pointer;
  transition: background-color .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 22px; height: 22px; flex: none; }
.btn-wa { background: var(--wa); color: var(--white); }
.btn-wa:hover { background: var(--wa-dark); color: var(--white); }
.btn-ghost { background: var(--white); color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn-sm { min-height: 44px; padding: 8px 18px; font-size: 1rem; }

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

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(1.4) blur(8px);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 72px; }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); }
.brand img { width: 44px; height: 44px; }
.brand-name { font-weight: 800; font-size: 1.2rem; line-height: 1.1; letter-spacing: -0.01em; }
.brand-name small { display: block; font-weight: 600; font-size: .8rem; color: var(--muted); letter-spacing: 0; }

.nav { display: none; margin-left: auto; gap: 4px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 1rem; padding: 8px 12px; border-radius: 8px; }
.nav a:hover { background: var(--sky); color: var(--blue); }
.header-cta { margin-left: auto; }
@media (min-width: 900px) {
  .nav { display: flex; }
  .header-cta { margin-left: 8px; }
}
@media (max-width: 420px) {
  .brand-name small { display: none; }
  .header-cta { padding: 8px 14px; }
}

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

section { padding: 64px 0; }
@media (min-width: 900px) { section { padding: 88px 0; } }
.tint { background: var(--sky); }

.eyebrow {
  display: inline-block; margin-bottom: 12px;
  font-size: .95rem; font-weight: 700; color: var(--blue);
  text-transform: uppercase; letter-spacing: .08em;
}
.lead { font-size: 1.2rem; color: var(--muted); max-width: 40em; }
.section-head { max-width: 46em; margin-bottom: 40px; }

/* ---------- Hero ---------- */

.hero { background: linear-gradient(180deg, var(--sky) 0%, var(--white) 100%); padding-top: 48px; }
.hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.15fr .85fr; gap: 56px; } }

.hero p.lead { color: var(--ink); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0; }
@media (max-width: 520px) { .hero-actions .btn { width: 100%; } }

.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
@media (min-width: 560px) { .ticks { grid-template-columns: 1fr 1fr; } }
.ticks li { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; }
.ticks svg { width: 24px; height: 24px; flex: none; margin-top: 2px; color: var(--wa); }

.chat-card {
  background: var(--white); border-radius: 24px; box-shadow: var(--shadow);
  border: 1px solid var(--line); padding: 20px; max-width: 440px; margin: 0 auto; width: 100%;
}
.chat-top { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.chat-top img { width: 40px; height: 40px; }
.chat-top strong { display: block; color: var(--navy); line-height: 1.2; }
.chat-top span { font-size: .9rem; color: var(--muted); }
.bubble { border-radius: 16px; padding: 10px 14px; margin-bottom: 10px; font-size: 1rem; max-width: 88%; }
.bubble.you { background: #DDF6E4; margin-left: auto; border-bottom-right-radius: 4px; }
.bubble.me { background: var(--sky); border-bottom-left-radius: 4px; }
.bubble .photo-row { display: flex; gap: 6px; margin-top: 8px; }
.bubble .photo-row span { width: 54px; height: 54px; border-radius: 8px; background: linear-gradient(135deg, #b9d3f1, #8fb4e3); }
.chat-note { font-size: .85rem; color: var(--muted); text-align: center; margin: 8px 0 0; }

.qr-box { display: none; }
@media (min-width: 900px) {
  .qr-box {
    display: flex; gap: 16px; align-items: center;
    margin: 20px auto 0; max-width: 440px; padding: 16px;
    border: 1px dashed var(--line); border-radius: var(--radius); background: var(--white);
  }
  .qr-box img { width: 104px; height: 104px; flex: none; }
  .qr-box p { margin: 0; font-size: 1rem; color: var(--muted); }
  .qr-box strong { color: var(--navy); display: block; }
}

/* ---------- Steps ---------- */

.steps { display: grid; gap: 20px; counter-reset: step; list-style: none; padding: 0; margin: 0; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.steps li { background: var(--white); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.steps li::before {
  counter-increment: step; content: "0" counter(step);
  display: inline-grid; place-items: center; width: 48px; height: 48px; margin-bottom: 16px;
  border-radius: 14px; background: var(--blue); color: var(--white); font-weight: 800; font-size: 1.1rem;
}
.steps p { margin: 0; color: var(--muted); }

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

.cards { display: grid; gap: 16px; }
@media (min-width: 600px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards { grid-template-columns: repeat(4, 1fr); gap: 20px; } }
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: var(--white); }
.card .icon {
  width: 52px; height: 52px; border-radius: 14px; margin-bottom: 16px;
  display: grid; place-items: center; background: var(--sky); color: var(--blue);
}
.card .icon svg { width: 28px; height: 28px; }
.card p { margin: 0; color: var(--muted); font-size: 1.02rem; }
.card .tag { display: inline-block; margin-top: 12px; font-size: .85rem; font-weight: 700; color: var(--blue); background: var(--sky); padding: 3px 10px; border-radius: 999px; }

/* ---------- Not offered ---------- */

.specialist { display: grid; gap: 32px; align-items: start; }
@media (min-width: 900px) { .specialist { grid-template-columns: .9fr 1.1fr; gap: 56px; } }
.x-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
@media (min-width: 560px) { .x-list { grid-template-columns: 1fr 1fr; } }
.x-list li {
  display: flex; gap: 10px; align-items: center;
  background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; font-weight: 600;
}
.x-list svg { width: 20px; height: 20px; flex: none; color: #B42318; }

/* ---------- Prices ---------- */

.prices { display: grid; gap: 16px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .prices { grid-template-columns: repeat(4, 1fr); gap: 20px; } }
.price {
  background: var(--white); border: 2px solid var(--line); border-radius: var(--radius);
  padding: 24px 16px; text-align: center;
}
.price.featured { border-color: var(--blue); }
.price .amount { display: block; font-size: clamp(2.2rem, 6vw, 3rem); font-weight: 800; color: var(--navy); line-height: 1; margin-bottom: 8px; }
.price .what { display: block; font-weight: 700; }
.price .detail { display: block; font-size: .95rem; color: var(--muted); }
.price-notes { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 12px; }
@media (min-width: 800px) { .price-notes { grid-template-columns: 1fr 1fr; } }
.price-notes li { display: flex; gap: 10px; align-items: flex-start; }
.price-notes svg { width: 24px; height: 24px; flex: none; margin-top: 2px; color: var(--blue); }

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

.about { display: grid; gap: 32px; align-items: center; }
@media (min-width: 800px) { .about { grid-template-columns: 340px 1fr; gap: 56px; } }
.about-photo { border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); max-width: 340px; margin: 0 auto; width: 100%; aspect-ratio: 4 / 5; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.promise { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.promise li { display: flex; gap: 12px; align-items: flex-start; }
.promise svg { width: 24px; height: 24px; flex: none; margin-top: 2px; color: var(--wa); }

/* ---------- Area ---------- */

.area { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .area { grid-template-columns: 1fr 1fr; gap: 56px; } }
.towns { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.towns li { background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 6px 16px; font-weight: 600; font-size: 1rem; }
.towns li.home { background: var(--blue); border-color: var(--blue); color: var(--white); }
.radius { max-width: 380px; margin: 0 auto; width: 100%; }

/* ---------- FAQ ---------- */

.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 44px 20px 0; position: relative;
  font-weight: 700; font-size: 1.15rem; color: var(--navy);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 12px; height: 12px; margin-top: -9px;
  border-right: 3px solid var(--blue); border-bottom: 3px solid var(--blue); transform: rotate(45deg);
  transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -3px; }
.faq details p { color: var(--muted); padding-right: 44px; }

/* ---------- Final call to action ---------- */

.cta { background: var(--navy); color: var(--white); text-align: center; }
.cta h2 { color: var(--white); }
.cta p { color: #C9D8EE; max-width: 36em; margin-left: auto; margin-right: auto; }
.cta .hero-actions { justify-content: center; }
.cta a.mail { color: var(--white); }

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

.site-footer { background: #071F40; color: #B8C8E0; padding: 48px 0 40px; font-size: 1rem; }
.site-footer a { color: var(--white); }
.footer-grid { display: grid; gap: 28px; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer .brand { color: var(--white); margin-bottom: 12px; }
.site-footer .brand-name small { color: #B8C8E0; }
.site-footer h3 { color: var(--white); font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.footer-base { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 32px; padding-top: 20px; font-size: .92rem; }

/* ---------- Sticky WhatsApp bar on phones ---------- */

.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .97); border-top: 1px solid var(--line);
  box-shadow: 0 -6px 20px rgba(11, 46, 92, .08);
}
.mobile-bar .btn { width: 100%; }
@media (max-width: 899px) { body { padding-bottom: 76px; } }
@media (min-width: 900px) { .mobile-bar { display: none; } }

/* ---------- Simple pages (privacy, 404) ---------- */

.page { padding: 56px 0 80px; }
.page .wrap { max-width: 780px; }
.page h2 { font-size: 1.5rem; margin-top: 1.6em; }
.page ul { padding-left: 1.2em; }
.page li { margin-bottom: .4em; }

/* About section shows the logo until there's a photo of Logan */
.about-photo--logo { aspect-ratio: 1 / 1; max-width: 280px; box-shadow: none; }
.about-photo--logo img { object-fit: contain; }
