/* Thank You Handyman: design tokens */
:root {
  --green: #2E9B3F;        /* brand green from the original speech-bubble logo */
  --green-deep: #1D6B2B;   /* text-safe green for buttons and links */
  --tape: #F6C90E;         /* tape-measure yellow, used sparingly */
  --ink: #17211B;          /* green-tinted near black */
  --ink-soft: #4A564E;
  --paper: #FFFFFF;
  --plaster: #F2F4F0;      /* cool off-white section tint */
  --line: #DDE3DC;
  --radius-s: 6px;
  --radius-l: 14px;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  font-feature-settings: "cv11", "ss01";
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { line-height: 1.12; margin: 0; letter-spacing: -0.022em; }
p { margin: 0; }
a { color: var(--green-deep); }
:focus-visible { outline: 3px solid var(--tape); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  font-weight: 600; font-size: 1rem; text-decoration: none; white-space: nowrap;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--green-deep); color: #fff; }
.btn-primary:hover { background: #155322; }
.btn-ghost { border: 2px solid var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-light { background: #fff; color: var(--ink); margin-top: 40px; }
.btn-light:hover { background: var(--tape); }
.btn svg { width: 18px; height: 18px; fill: currentColor; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand-mark { width: 38px; height: 34px; flex: none; }
.brand-name { font-weight: 800; font-size: 1.125rem; letter-spacing: -0.02em; }
.nav { display: flex; gap: 26px; }
.nav a { color: var(--ink-soft); text-decoration: none; font-weight: 500; font-size: .9688rem; }
.nav a:hover { color: var(--ink); }
.btn-call { background: var(--green-deep); color: #fff; min-height: 44px; padding: 0 18px; }
.btn-call:hover { background: #155322; }
.menu-btn { display: none; }

/* Hero */
.hero { padding: clamp(40px, 7vw, 96px) 0 clamp(48px, 7vw, 88px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.rating { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink-soft); font-size: .9375rem; margin-bottom: 22px; }
.rating strong { color: var(--ink); }
.stars { color: #E7A500; letter-spacing: 2px; font-size: 1rem; }
.hero h1 { font-size: clamp(2.5rem, 5.6vw, 4.25rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1.02; max-width: 12ch; }
.lede { font-size: clamp(1.125rem, 1.6vw, 1.3125rem); color: var(--ink-soft); line-height: 1.5; max-width: 34em; }
.hero .lede { margin-top: 22px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-meta { margin-top: 22px; font-size: .9375rem; color: var(--ink-soft); }

.hero-visual { position: relative; padding-bottom: 44px; }
.hero-visual img { border-radius: var(--radius-l); aspect-ratio: 4 / 3.3; object-fit: cover; width: 100%; }

/* The to-do list: the one memorable element */
.todo {
  position: absolute; left: -36px; bottom: 0; width: min(300px, 78%);
  background: #FFFDF2; color: var(--ink);
  border-radius: var(--radius-s);
  padding: 18px 20px 16px;
  box-shadow: 0 1px 0 rgba(23,33,27,.08), 0 18px 40px -12px rgba(23,33,27,.35);
  background-image: repeating-linear-gradient(to bottom, transparent 0 33px, #E4E8F2 33px 34px);
  background-position: 0 46px;
  transform: rotate(-2deg);
}
.todo::before { /* tape strip holding the list */
  content: ""; position: absolute; top: -12px; left: 50%; width: 86px; height: 24px;
  transform: translateX(-50%) rotate(3deg);
  background: var(--tape); opacity: .92;
  background-image: repeating-linear-gradient(90deg, rgba(23,33,27,.55) 0 1px, transparent 1px 8px);
  background-size: 100% 7px; background-repeat: no-repeat;
}
.todo-title { font-weight: 700; font-size: .9375rem; margin-bottom: 6px; }
.todo ul { list-style: none; margin: 0; padding: 0; }
.todo li { display: flex; align-items: center; gap: 10px; height: 34px; font-size: .9375rem; position: relative; }
.box { width: 18px; height: 18px; border: 2px solid var(--ink); border-radius: 4px; flex: none; position: relative; }
.box::after {
  content: ""; position: absolute; left: 4px; top: 0; width: 6px; height: 11px;
  border: solid var(--green); border-width: 0 3px 3px 0; transform: rotate(45deg) scale(0);
  transform-origin: center;
  animation: check .35s cubic-bezier(.3,1.6,.5,1) forwards;
  animation-delay: calc(.7s + var(--i) * .45s);
}
.todo li::after { /* strike-through */
  content: ""; position: absolute; left: 28px; right: 0; top: 50%; height: 2px; background: var(--ink-soft);
  transform: scaleX(0); transform-origin: left;
  animation: strike .35s ease-out forwards;
  animation-delay: calc(.85s + var(--i) * .45s);
}
.todo-foot { font-weight: 700; color: var(--green-deep); font-size: .9375rem; margin-top: 8px; opacity: 0; animation: fade .4s ease forwards; animation-delay: 2.8s; }
@keyframes check { to { transform: rotate(45deg) scale(1); } }
@keyframes strike { to { transform: scaleX(1); } }
@keyframes fade { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .box::after, .todo li::after, .todo-foot { animation: none; }
  .box::after { transform: rotate(45deg) scale(1); }
  .todo li::after { transform: scaleX(1); }
  .todo-foot { opacity: 1; }
}

/* Promises */
.promises { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.promise-row { display: grid; grid-template-columns: repeat(3, 1fr); }
.promise { display: flex; gap: 16px; padding: 30px 28px 30px 0; }
.promise + .promise { padding-left: 28px; border-left: 1px solid var(--line); }
.promise svg { width: 30px; height: 30px; flex: none; fill: none; stroke: var(--green); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; margin-top: 2px; }
.promise h2 { font-size: 1.125rem; font-weight: 700; letter-spacing: -0.01em; }
.promise p { color: var(--ink-soft); font-size: .9688rem; margin-top: 4px; }

/* Sections */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-tint { background: var(--plaster); }
.section-dark { background: var(--ink); color: #fff; }
.section-head { max-width: 640px; margin-bottom: clamp(32px, 4vw, 52px); }
.section-head h2, .about-copy h2, .area-grid h2 { font-size: clamp(2rem, 3.6vw, 2.875rem); font-weight: 800; }
.section-head p { margin-top: 14px; color: var(--ink-soft); font-size: 1.125rem; }
.section-dark .section-head p { color: #B9C4BC; }

/* Services */
.svc-tabs { display: inline-flex; gap: 4px; padding: 4px; background: var(--plaster); border-radius: 999px; margin-bottom: 36px; }
.svc-tabs button {
  font: inherit; font-weight: 600; font-size: .9688rem; border: 0; background: transparent; color: var(--ink-soft);
  padding: 10px 20px; border-radius: 999px; cursor: pointer; min-height: 44px;
}
.svc-tabs button[aria-selected="true"] { background: var(--ink); color: #fff; }
.svc-panel { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px 32px; }
.svc-panel[hidden] { display: none; }
.svc-group h3 { font-size: 1.0625rem; font-weight: 700; padding-bottom: 12px; border-bottom: 2px solid var(--ink); margin-bottom: 6px; }
.svc-group ul { list-style: none; padding: 0; margin: 0; }
.svc-group li { padding: 9px 0 9px 26px; border-bottom: 1px solid var(--line); position: relative; font-size: .9688rem; }
.svc-group li::before {
  content: ""; position: absolute; left: 2px; top: 15px; width: 12px; height: 12px;
  border: 2px solid var(--green); border-radius: 3px;
}

/* Recent work */
.before-after { margin: 0 0 20px; background: #fff; border-radius: var(--radius-l); padding: 16px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; align-items: center; }
.ba-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ba { position: relative; }
.ba img { border-radius: 8px; aspect-ratio: 3 / 3.4; object-fit: cover; width: 100%; }
.ba-tag { position: absolute; left: 10px; top: 10px; background: #fff; color: var(--ink); font-size: .8125rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.ba-tag-after { background: var(--green-deep); color: #fff; }
.before-after figcaption { font-size: 1.125rem; color: var(--ink-soft); padding-right: 12px; max-width: 26em; }
.before-after figcaption strong { color: var(--ink); display: block; font-size: 1.5rem; letter-spacing: -0.02em; margin-bottom: 6px; }

.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(220px, 26vw, 340px); grid-auto-flow: dense; gap: 20px; }
.gallery figure { margin: 0; display: flex; flex-direction: column; min-height: 0; }
.gallery img { border-radius: 10px; width: 100%; flex: 1; min-height: 0; object-fit: cover; }
.gallery .g-wide { grid-column: span 2; }
.gallery figcaption { font-size: .9375rem; font-weight: 500; padding-top: 8px; color: var(--ink-soft); }

/* About */
.about-grid { display: grid; grid-template-columns: .8fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.about-photo img { border-radius: var(--radius-l); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.about-copy .lede { margin-top: 20px; color: var(--ink); }
.about-copy p + p { margin-top: 16px; }
.about-copy > p { max-width: 36em; color: var(--ink-soft); }
.about-copy > .lede { color: var(--ink); }
.facts { list-style: none; padding: 0; margin: 32px 0 0; border-top: 1px solid var(--line); }
.facts li { padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--ink-soft); }
.facts strong { color: var(--ink); }

/* Reviews */
.reviews { columns: 3 300px; column-gap: 20px; }
.reviews blockquote { break-inside: avoid; margin: 0 0 20px; padding: 26px 26px 22px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius-l); }
.reviews blockquote p { font-size: 1.1875rem; line-height: 1.45; letter-spacing: -0.01em; }
.reviews blockquote::before { content: "★★★★★"; display: block; color: var(--tape); letter-spacing: 2px; font-size: .875rem; margin-bottom: 12px; }
.reviews footer { margin-top: 16px; font-weight: 600; font-size: .9375rem; }
.reviews footer span { display: block; font-weight: 400; color: #9FAEA4; }

/* Steps: a real sequence, so numbered */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; counter-reset: step; }
.steps li { counter-increment: step; border-top: 2px solid var(--ink); padding-top: 22px; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--tape); font-weight: 800; margin-bottom: 18px; }
.steps h3 { font-size: 1.3125rem; font-weight: 700; }
.steps p { margin-top: 8px; color: var(--ink-soft); max-width: 30em; }

/* Area */
.area-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; align-items: start; }
.area-grid p { margin-top: 14px; color: var(--ink-soft); font-size: 1.125rem; max-width: 26em; }
.towns { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.towns li { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-weight: 500; font-size: .9688rem; }

/* FAQ */
.faq-wrap { display: grid; grid-template-columns: 1fr 1.6fr; gap: 48px; align-items: start; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; font-weight: 600; font-size: 1.125rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; border: solid var(--ink); border-width: 0 2px 2px 0; transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq details p { padding: 0 40px 22px 0; color: var(--ink-soft); max-width: 40em; }

/* Contact: tape-measure edge */
.contact { background: var(--green-deep); color: #fff; padding: clamp(56px, 8vw, 96px) 0; position: relative; }
.contact::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 22px; background-color: var(--tape);
  background-image:
    repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 80px),
    repeating-linear-gradient(90deg, var(--ink) 0 1px, transparent 1px 40px),
    repeating-linear-gradient(90deg, var(--ink) 0 1px, transparent 1px 10px);
  background-size: 100% 14px, 100% 10px, 100% 6px;
  background-repeat: no-repeat;
}
.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: end; }
.contact h2 { font-size: clamp(2.125rem, 4.4vw, 3.5rem); font-weight: 800; letter-spacing: -0.035em; max-width: 14ch; }
.contact-grid > div > p { margin-top: 14px; font-size: 1.1875rem; color: #D3E8D6; }
.contact-actions { display: flex; flex-direction: column; gap: 8px; }
.contact-big { color: #fff; font-size: clamp(2rem, 4.2vw, 3.25rem); font-weight: 800; letter-spacing: -0.03em; text-decoration: none; line-height: 1.1; }
.contact-big:hover { color: var(--tape); }
.contact-mail { color: #fff; font-size: 1.125rem; font-weight: 500; overflow-wrap: anywhere; }
.contact-hours { color: #D3E8D6; }

/* Footer */
.site-footer { background: var(--ink); color: #B9C4BC; padding: 56px 0 28px; font-size: .9688rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 2fr 1.4fr 1fr; gap: 32px; }
.footer-brand { color: #fff; font-weight: 800; font-size: 1.125rem; margin-bottom: 8px; }
.footer-h { color: #fff; font-weight: 600; margin-bottom: 8px; }
.footer-base { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); font-size: .875rem; }

.mobile-call { display: none; }

/* ---------- Tablet ---------- */
@media (max-width: 1024px) {
  .nav { gap: 18px; }
  .svc-panel { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .header-call { display: none; }
  .menu-btn {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; border: 0; background: transparent; padding: 10px; cursor: pointer;
  }
  .menu-btn span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s; }
  .menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav {
    position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 16px;
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.0625rem; color: var(--ink); }

  .hero-grid { grid-template-columns: 1fr; }
  .hero h1 { max-width: 14ch; }
  .hero-visual { margin-top: 8px; }
  .todo { left: 12px; }

  .promise-row { grid-template-columns: 1fr; }
  .promise, .promise + .promise { padding: 22px 0; border-left: 0; }
  .promise + .promise { border-top: 1px solid var(--line); }

  .before-after { grid-template-columns: 1fr; }
  .about-grid, .area-grid, .faq-wrap, .contact-grid { grid-template-columns: 1fr; }
  .about-photo { max-width: 520px; }
  .about-photo img { aspect-ratio: 4 / 3; }
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}

/* ---------- Phone ---------- */
@media (max-width: 600px) {
  body { font-size: 1rem; padding-bottom: 72px; }
  .brand-name { font-size: 1rem; }
  .hero-actions .btn { flex: 1 1 100%; }
  .todo { width: 82%; padding: 16px 16px 14px; }
  .svc-tabs { display: flex; width: 100%; }
  .svc-tabs button { flex: 1; padding: 10px 8px; }
  .svc-panel { grid-template-columns: 1fr; gap: 32px; }
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 240px; gap: 12px; }
  .hero-visual { padding-bottom: 0; }
  .hero-visual img { aspect-ratio: 4 / 3; }
  .todo { position: relative; left: auto; bottom: auto; margin: -56px 0 0 14px; }
  .before-after { padding: 10px; gap: 16px; }
  .before-after figcaption { padding: 0 6px 8px; }
  .reviews { columns: 1; }
  .footer-grid { grid-template-columns: 1fr; }

  .mobile-call {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60;
    min-height: 54px; border-radius: 999px; background: var(--green-deep); color: #fff;
    font-weight: 700; text-decoration: none; box-shadow: 0 10px 30px -8px rgba(23,33,27,.5);
  }
  .mobile-call svg { width: 20px; height: 20px; fill: currentColor; }
}
