/* Mike's Painting & Home Improvements — site styles
   Palette: deep pine (brand), painter's-tape blue (accent), chalk ground.
   One type family (Archivo) carrying hierarchy through weight and width. */

:root {
  --ink:      #101F1A;
  --pine:     #1E4D3F;
  --pine-dk:  #143A2F;
  --tape:     #2D6BE4;
  --chalk:    #F3F3EF;
  --white:    #FFFFFF;
  --line:     #DCDCD4;
  --muted:    #52615B;

  --wrap: 1120px;
  --gut: clamp(1.25rem, 4vw, 2.5rem);
  --radius: 4px;

  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  --step-1: clamp(1.15rem, 1.08rem + 0.35vw, 1.3rem);
  --step-2: clamp(1.45rem, 1.3rem + 0.7vw, 1.8rem);
  --step-3: clamp(1.9rem, 1.6rem + 1.4vw, 2.6rem);
  --step-4: clamp(2.4rem, 1.8rem + 3vw, 4.1rem);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  font-family: Archivo, "Helvetica Neue", Arial, sans-serif;
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  font-synthesis-weight: none;
}

h1, h2, h3, h4 { line-height: 1.1; margin: 0 0 .5em; font-weight: 700; letter-spacing: -0.015em; }
h1 { font-size: var(--step-4); font-weight: 800; font-stretch: 112%; }
h2 { font-size: var(--step-3); font-stretch: 108%; }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }
p  { margin: 0 0 1em; max-width: 68ch; }

a { color: var(--pine); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--tape); }
:focus-visible { outline: 3px solid var(--tape); outline-offset: 3px; border-radius: 2px; }

img { max-width: 100%; height: auto; display: block; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
.skip {
  position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff;
  padding: .75rem 1rem; z-index: 999;
}
.skip:focus { left: 0; }

/* ---------- Header ---------- */
.topbar {
  background: var(--ink); color: #D6E0DB;
  font-size: .875rem; padding: .5rem 0;
}
.topbar .wrap { display: flex; flex-wrap: wrap; gap: .35rem 1.5rem; align-items: center; justify-content: space-between; }
.topbar a { color: #fff; }
.topbar .hours { color: #9FB3AB; }

.masthead { border-bottom: 1px solid var(--line); background: var(--white); position: sticky; top: 0; z-index: 50; }
.masthead .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 76px; }

.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--ink); }
.brand .chips { display: grid; grid-template-columns: repeat(2, 11px); grid-auto-rows: 11px; gap: 3px; flex: none; }
.brand .chips i { display: block; border-radius: 1px; }
.brand .chips i:nth-child(1) { background: var(--pine); }
.brand .chips i:nth-child(2) { background: var(--tape); }
.brand .chips i:nth-child(3) { background: #C9D4CE; }
.brand .chips i:nth-child(4) { background: var(--ink); }
.brand b { display: block; font-size: 1.0625rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.brand span { display: block; font-size: .75rem; color: var(--muted); font-weight: 500; }

.nav ul { display: flex; gap: 1.6rem; list-style: none; margin: 0; padding: 0; }
.nav a { text-decoration: none; font-weight: 600; font-size: .95rem; padding: .35rem 0; display: inline-block; border-bottom: 2px solid transparent; }
.nav a:hover { border-bottom-color: var(--tape); }
.nav a[aria-current="page"] { border-bottom-color: var(--pine); }

.navtoggle {
  display: none; background: none; border: 1px solid var(--line); border-radius: var(--radius);
  padding: .55rem .7rem; font: inherit; font-weight: 600; cursor: pointer; align-items: center; gap: .5rem;
}

@media (max-width: 900px) {
  .navtoggle { display: inline-flex; }
  .nav { display: none; width: 100%; }
  .masthead .wrap { flex-wrap: wrap; padding-block: .75rem; }
  .nav[data-open="true"] { display: block; }
  .nav ul { flex-direction: column; gap: 0; padding-bottom: .5rem; }
  .nav li + li { border-top: 1px solid var(--line); }
  .nav a { padding: .85rem 0; width: 100%; border-bottom: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: inherit; font-weight: 700; line-height: 1.2;
  padding: .95rem 1.5rem; border-radius: var(--radius);
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn-primary { background: var(--pine); color: #fff; }
.btn-primary:hover { background: var(--pine-dk); color: #fff; }
.btn-ghost { border-color: currentColor; color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-light { background: #fff; color: var(--pine); }
.btn-light:hover { background: var(--chalk); color: var(--pine-dk); }
.btn-lg { padding: 1.1rem 1.9rem; font-size: 1.0625rem; }

/* ---------- Hero ---------- */
.hero { background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.hero .wrap { display: grid; gap: clamp(2rem, 5vw, 4rem); padding-block: clamp(3rem, 7vw, 5.5rem); }
@media (min-width: 900px) { .hero .wrap { grid-template-columns: 1.15fr .85fr; align-items: center; } }
.hero h1 { color: #fff; max-width: 17ch; text-wrap: balance; }
.hero .kicker {
  display: inline-block; font-size: .8125rem; font-weight: 700; letter-spacing: .06em;
  color: #9FE6CE; margin-bottom: 1.25rem;
}
.hero p.lede { color: #D3DDD8; font-size: var(--step-1); max-width: 46ch; }
.hero .actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.hero .proof { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 1rem 2rem; font-size: .875rem; color: #9FB3AB; }
.hero .proof b { color: #fff; display: block; font-size: 1.4rem; font-weight: 800; letter-spacing: -.02em; }

/* Photo slot — swap the background-image for a real project photo */
.shot {
  aspect-ratio: 4 / 3; border-radius: var(--radius); background: #22322C center/cover no-repeat;
  display: grid; place-items: center; color: #7D948B; font-size: .8125rem; text-align: center; padding: 1rem;
  border: 1px dashed #3C4E47;
}
.shot img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }

/* ---------- Sections ---------- */
section { padding-block: clamp(3rem, 6vw, 5rem); }
.section-chalk { background: var(--chalk); }
.section-head { max-width: 62ch; margin-bottom: 2.5rem; }
.section-head p { color: var(--muted); font-size: var(--step-1); }

.cols { display: grid; gap: clamp(1.5rem, 4vw, 3rem); }
@media (min-width: 820px) { .cols-2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 820px) { .cols-3 { grid-template-columns: repeat(3, 1fr); } }

/* Service blocks — the chip encodes the category, not decoration */
.service { border-top: 3px solid var(--pine); padding-top: 1.1rem; }
.service:nth-child(2) { border-top-color: var(--tape); }
.service:nth-child(3) { border-top-color: #8A9B93; }
.service h3 { margin-bottom: .35rem; }
.service p { color: var(--muted); margin-bottom: .75rem; }
.service ul { margin: 0; padding-left: 1.1rem; color: var(--muted); }
.service li { margin-bottom: .3rem; }

/* Credentials */
.creds { list-style: none; margin: 0; padding: 0; display: grid; gap: .65rem; }
@media (min-width: 700px) { .creds { grid-template-columns: 1fr 1fr; gap: .65rem 2rem; } }
.creds li { display: flex; gap: .65rem; align-items: flex-start; }
.creds svg { flex: none; margin-top: .25rem; color: var(--pine); }

.award {
  background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--tape);
  padding: 1.25rem 1.5rem; border-radius: var(--radius);
}
.award p:last-child { margin-bottom: 0; }

/* CTA band */
.band { background: var(--pine); color: #fff; }
.band h2 { color: #fff; }
.band p { color: #CFE3DA; }
.band .actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 1.25rem; max-width: 640px; }
.field { display: grid; gap: .4rem; }
.field label { font-weight: 600; font-size: .9375rem; }
.field .hint { font-size: .8125rem; color: var(--muted); }
.field input, .field select, .field textarea {
  font: inherit; color: var(--ink); background: var(--white);
  border: 1px solid #B9BFBB; border-radius: var(--radius); padding: .8rem .9rem; width: 100%;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { border-color: var(--tape); }
.field[data-invalid="true"] input,
.field[data-invalid="true"] textarea { border-color: #B3261E; }
.err { color: #B3261E; font-size: .8125rem; font-weight: 600; }
.two-up { display: grid; gap: 1.25rem; }
@media (min-width: 620px) { .two-up { grid-template-columns: 1fr 1fr; } }

/* Choice chips — tap targets sized for thumbs */
.choices { display: flex; flex-wrap: wrap; gap: .6rem; }
.choices input { position: absolute; opacity: 0; pointer-events: none; }
.choices label {
  border: 1.5px solid var(--line); border-radius: 999px; padding: .6rem 1.1rem;
  cursor: pointer; font-weight: 600; font-size: .9375rem; background: #fff; user-select: none;
}
.choices input:checked + label { background: var(--pine); border-color: var(--pine); color: #fff; }
.choices input:focus-visible + label { outline: 3px solid var(--tape); outline-offset: 2px; }

/* Photo upload */
.dropzone {
  border: 2px dashed #B9BFBB; border-radius: var(--radius); padding: 1.75rem 1.25rem;
  text-align: center; background: #fff; cursor: pointer;
}
.dropzone[data-drag="true"] { border-color: var(--tape); background: #F0F5FF; }
.dropzone strong { display: block; }
.dropzone span { font-size: .8125rem; color: var(--muted); }
.previews { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .9rem; padding: 0; list-style: none; }
.previews li { position: relative; }
.previews img { width: 84px; height: 84px; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--line); }
.previews button {
  position: absolute; top: -7px; right: -7px; width: 24px; height: 24px; border-radius: 50%;
  border: none; background: var(--ink); color: #fff; cursor: pointer; font-size: 15px; line-height: 1;
}
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.formstatus { padding: 1rem 1.15rem; border-radius: var(--radius); font-weight: 600; }
.formstatus[data-tone="ok"]   { background: #E7F3EC; border: 1px solid #9CC9AE; color: #14462B; }
.formstatus[data-tone="bad"]  { background: #FCECEA; border: 1px solid #E3A9A3; color: #8C1D18; }

/* Contact detail list */
.detail { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.35rem; }
.detail dt, .detail .lbl { font-size: .75rem; font-weight: 700; color: var(--muted); letter-spacing: .04em; }
.detail .val { font-size: var(--step-1); font-weight: 600; }
.detail a { font-weight: 700; }

/* ---------- Footer ---------- */
.foot { background: var(--ink); color: #A9BBB4; padding-block: 3rem 6.5rem; font-size: .9375rem; }
.foot h4 { color: #fff; font-size: .8125rem; letter-spacing: .05em; margin-bottom: .85rem; }
.foot a { color: #fff; }
.foot .cols { grid-template-columns: 1fr; }
@media (min-width: 760px) { .foot .cols { grid-template-columns: 1.3fr 1fr 1fr; } }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.foot .legal { border-top: 1px solid #2A3A34; margin-top: 2.5rem; padding-top: 1.5rem; font-size: .8125rem; }
@media (min-width: 760px) { .foot { padding-bottom: 3rem; } }

/* ---------- Sticky mobile call bar ---------- */
.callbar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 60;
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  background: var(--line); box-shadow: 0 -2px 12px rgba(0,0,0,.14);
  padding-bottom: env(safe-area-inset-bottom);
}
.callbar a {
  background: var(--pine); color: #fff; text-decoration: none; font-weight: 700;
  padding: 1rem .5rem; text-align: center; display: flex; align-items: center; justify-content: center; gap: .5rem;
}
.callbar a + a { background: var(--ink); }
@media (min-width: 760px) { .callbar { display: none; } }

.breadcrumb { font-size: .8125rem; color: var(--muted); padding-top: 1.5rem; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: .4rem; color: #B0BAB5; }

.todo {
  border: 2px dashed var(--tape); background: #F2F6FF; border-radius: var(--radius);
  padding: 1.5rem; margin-block: 1.5rem;
}
.todo h3 { margin-bottom: .5rem; }
.todo p:last-child { margin-bottom: 0; }

/* ---------- Quote player ----------
   All quotes are present in the HTML so crawlers and AI assistants read every
   one. JavaScript only changes which is *shown*; without it, they stack. */
.quotes .wrap > h2 { margin-bottom: .35rem; }
.quotes .googlelink { color: var(--muted); margin-bottom: 2.25rem; }

.quotebox { display: grid; gap: 1.5rem; }
@media (min-width: 820px) { .quotebox { grid-template-columns: 1fr 1fr; } }

.quotebox[data-mode="carousel"] { display: block; position: relative; min-height: 15rem; }
.quotebox[data-mode="carousel"] .quote { display: none; }
.quotebox[data-mode="carousel"] .quote[data-active="true"] { display: block; }

.quote { margin: 0; border-left: 3px solid var(--tape); padding-left: 1.5rem; }
.quote blockquote { margin: 0; }
.quote blockquote p {
  font-size: var(--step-2); line-height: 1.35; font-weight: 600;
  letter-spacing: -.015em; margin-bottom: .85rem; text-wrap: balance;
}
.quote figcaption { color: var(--muted); font-size: .9375rem; }
.quote figcaption b { display: block; color: var(--ink); font-weight: 700; }

.quotebox[data-mode="carousel"] .quote blockquote p { font-size: var(--step-3); max-width: 20ch; }
@media (min-width: 820px) {
  .quotebox[data-mode="carousel"] .quote blockquote p { max-width: 26ch; }
}

.quotedots { display: flex; gap: .5rem; margin-top: 2rem; padding: 0; list-style: none; }
.quotedots button {
  width: 2.25rem; height: 2.25rem; padding: 0; border: none; background: none;
  cursor: pointer; display: grid; place-items: center;
}
.quotedots button::before {
  content: ""; width: 10px; height: 10px; border-radius: 50%;
  background: #C3C8C5; transition: background-color .15s ease;
}
.quotedots button[aria-selected="true"]::before { background: var(--pine); }
.quotedots button:hover::before { background: var(--tape); }

.stars { display: inline-flex; gap: 2px; color: #E8A33D; vertical-align: -2px; }

/* ---------- Review cards (testimonials page) ---------- */
.reviews { display: grid; gap: 1.5rem; }
@media (min-width: 820px) { .reviews { grid-template-columns: 1fr 1fr; } }

.review {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.5rem 1.6rem;
}
.review blockquote { margin: 0 0 1rem; }
.review blockquote p { font-size: 1.05rem; line-height: 1.55; margin: 0; }
.review .who { font-weight: 700; margin: 0; }
.review .reply {
  margin-top: 1.1rem; padding-top: 1.1rem; border-top: 1px solid var(--line);
  font-size: .9375rem; color: var(--muted);
}
.review .reply b { display: block; color: var(--ink); font-size: .8125rem; margin-bottom: .3rem; }
.review .reply p { margin: 0; }

/* ---------- FAQ ---------- */
.faqnav { background: var(--chalk); border-radius: var(--radius); padding: 1.25rem 1.5rem; margin-bottom: 3rem; }
.faqnav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 2rem; }
.faqnav a { font-weight: 600; }

.faqgroup { padding-block: 0 2.75rem; }
.faqgroup h2 {
  font-size: var(--step-2); padding-bottom: .6rem; margin-bottom: 1.75rem;
  border-bottom: 2px solid var(--pine);
}
.faq { margin-bottom: 2.25rem; scroll-margin-top: 6rem; }
.faq h3 { font-size: var(--step-1); font-weight: 700; margin-bottom: .6rem; }
.faq p { color: var(--muted); }
.faq p:first-of-type { color: var(--ink); font-weight: 500; }
.faq p:last-child { margin-bottom: 0; }

/* ---------- Services page ---------- */
.lede-2 { font-size: var(--step-1); color: var(--muted); max-width: 62ch; margin-bottom: 2rem; }

.qlist { margin: 1.25rem 0 1.5rem; display: grid; gap: 1rem; }
@media (min-width: 760px) { .qlist { grid-template-columns: 12rem 1fr; gap: 1rem 2rem; } }
.qlist dt { font-weight: 700; }
.qlist dd { margin: 0; color: var(--muted); }
@media (max-width: 759px) { .qlist dt { margin-bottom: .2rem; } }

.svcgrid { display: grid; gap: 1.25rem 2rem; }
@media (min-width: 620px) { .svcgrid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .svcgrid { grid-template-columns: repeat(3, 1fr); } }
.svc { border-top: 2px solid var(--line); padding-top: .9rem; }
.svc h3 { font-size: 1.0625rem; margin-bottom: .3rem; }
.svc p { color: var(--muted); font-size: .9375rem; margin: 0; }

/* ---------- Policy pages ---------- */
.policy-date { color: var(--muted); font-size: .9375rem; }
.policy section { padding-block: 0 2rem; }
.policy h2 { font-size: var(--step-1); font-weight: 700; margin-bottom: .65rem; scroll-margin-top: 6rem; }
.policy p { max-width: 72ch; }
.policy section { scroll-margin-top: 6rem; }

/* ---------- Gallery ---------- */
.gallery { display: grid; gap: 1.5rem; }
@media (min-width: 620px) { .gallery { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
.gallery figure { margin: 0; }
.gallery img {
  width: 100%; height: auto; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--chalk);
}
.gallery figcaption { font-size: .875rem; color: var(--muted); margin-top: .6rem; }

/* Before / after */
.ba { margin: 0 0 2.75rem; }
.ba-pair { display: grid; gap: 1rem; }
@media (min-width: 620px) { .ba-pair { grid-template-columns: 1fr 1fr; } }
.ba-half { position: relative; }
.ba-half img {
  width: 100%; height: auto; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--chalk);
}
.ba-tag {
  position: absolute; top: .65rem; left: .65rem; z-index: 1;
  background: var(--ink); color: #fff; font-size: .75rem; font-weight: 700;
  letter-spacing: .04em; padding: .3rem .6rem; border-radius: 2px;
}
.ba figcaption { margin-top: .85rem; color: var(--muted); max-width: 68ch; }
.ba figcaption b { display: block; color: var(--ink); margin-bottom: .2rem; }

/* Hero and recent-work photo slots, now holding real images */
.shot { border: none; padding: 0; }
.shot img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }
figure.shot { margin: 0; aspect-ratio: 4 / 3; }

/* ---------- Star rating ---------- */
.rating {
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem;
  margin: 0 0 1.5rem;
}
.rating .stars { display: inline-flex; gap: 1px; color: #E8A33D; }
.rating-text { font-size: 1.0625rem; }
.rating-text b { font-size: 1.25rem; font-weight: 800; letter-spacing: -.02em; }

/* ---------- Numbered process steps ---------- */
.steps { list-style: none; counter-reset: step; margin: 2rem 0 0; padding: 0; display: grid; gap: 1.5rem; }
@media (min-width: 760px) { .steps { grid-template-columns: 1fr 1fr; gap: 2rem 3rem; } }
.steps li { counter-increment: step; position: relative; padding-left: 3rem; }
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 2.15rem; height: 2.15rem; border-radius: 50%;
  background: var(--pine); color: #fff;
  display: grid; place-items: center;
  font-weight: 800; font-size: .9375rem;
}
.steps h3 { font-size: 1.0625rem; margin-bottom: .35rem; }
.steps p { color: var(--muted); margin: 0; font-size: .9375rem; }
