/* clean-light - refined, trustworthy local-care template. Mobile-first.
   Editorial serif headings (Fraunces) over a crisp grotesk body (Hanken Grotesk),
   generous whitespace, soft layered depth. Accent is theme-driven (blue / charcoal),
   injected as --accent / --accent-ink / --accent-tint by the layout. */

:root {
  /* Theme accents - overridden inline per theme. These are the blue defaults. */
  --accent: #1f9be0;
  --accent-ink: #1577ac;
  --accent-tint: #eef7fd;

  --ink: #11181c;
  --ink-soft: #5b6770;
  --bg: #ffffff;
  --bg-alt: #f7f9fb;
  --line: #e8edf1;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Hanken Grotesk", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  --shadow-sm: 0 4px 14px -8px rgba(17, 24, 28, .25);
  --shadow: 0 22px 50px -28px rgba(17, 24, 28, .40);
  --radius: 18px;
  --radius-lg: 26px;
  --wrap: 1140px;
  --nav-h: 74px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 140px; }
body {
  margin: 0; color: var(--ink); background: var(--bg);
  font-family: var(--font-body); font-size: 16px; line-height: 1.65;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 {
  font-family: var(--font-display); font-weight: 600;
  line-height: 1.08; margin: 0; letter-spacing: -0.01em;
  font-optical-sizing: auto;
}

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

/* ---- Claim banner (our pitch to the owner) ---- */
.claim {
  display: flex; flex-direction: column; gap: 8px; align-items: center; text-align: center;
  background: var(--ink); color: #fff; padding: 11px 18px; font-size: 13px; line-height: 1.45;
}
.claim__text { margin: 0; }
.claim__hook { font-weight: 700; }
.claim__price { color: #fff; font-weight: 800; }
.claim__was { color: #9aa6ae; text-decoration: line-through; margin-left: 5px; }
.claim__free { font-weight: 700; }
.claim__offer { font-weight: 800; color: #5eead4; }
.claim__cta {
  display: inline-block; background: #fff; color: var(--ink); text-decoration: none; font-weight: 700;
  padding: 8px 18px; border-radius: 999px; white-space: nowrap; font-size: 13px;
  border: 0; cursor: pointer; font-family: inherit;
}
.claim__cta:hover { transform: translateY(-1px); }

/* Buy plan-picker modal */
.buy-modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 18px; }
.buy-modal[hidden] { display: none; }
.buy-modal__backdrop { position: absolute; inset: 0; background: rgba(8, 12, 20, .58); backdrop-filter: blur(2px); }
.buy-modal__card { position: relative; z-index: 1; width: 100%; max-width: 560px; background: var(--bg); border-radius: var(--radius-lg); padding: 32px 26px 26px; box-shadow: var(--shadow); text-align: center; max-height: 92vh; overflow: auto; }
.buy-modal__x { position: absolute; top: 12px; right: 14px; border: 0; background: transparent; font-size: 28px; line-height: 1; color: var(--ink-soft); cursor: pointer; }
.buy-modal__title { font-size: clamp(1.5rem, 5vw, 2rem); }
.buy-modal__sub { color: var(--ink-soft); margin: 10px 0 16px; }
.buy-modal__sub strong { color: var(--ink); }
.buy-modal__domain { display: flex; align-items: flex-start; gap: 9px; text-align: left; background: var(--accent-tint); color: var(--accent-ink); border-radius: 12px; padding: 11px 14px; font-size: 13.5px; line-height: 1.45; margin: 0 0 22px; }
.buy-modal__domain-ic { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.buy-modal__domain strong { font-weight: 800; }
.buy-modal__star { color: var(--ink-soft); font-size: 12px; }
.buy-modal__plans { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.plan { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-decoration: none; color: var(--ink); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 22px 20px; transition: border-color .15s ease, box-shadow .15s ease, transform .12s ease; }
.plan:hover { border-color: var(--accent); box-shadow: var(--shadow); transform: translateY(-2px); }
.plan--featured { border-color: var(--accent); }
.plan__badge { position: absolute; top: -11px; right: 16px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 800; padding: 3px 11px; border-radius: 999px; }
.plan__name { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.plan__price { font-family: var(--font-display); font-weight: 700; font-size: 2.2rem; line-height: 1; }
.plan__per { font-family: var(--font-body); font-size: 1rem; font-weight: 600; color: var(--ink-soft); }
.plan__was { color: var(--ink-soft); text-decoration: line-through; font-size: 14px; }
.plan__cta { margin-top: 14px; align-self: stretch; text-align: center; background: var(--bg-alt); color: var(--ink); font-weight: 700; padding: 12px; border-radius: 999px; }
.plan--featured .plan__cta { background: var(--accent); color: #fff; }
.plan:hover .plan__cta { background: var(--accent); color: #fff; }
.buy-modal__fine { color: var(--ink-soft); font-size: 12.5px; margin: 18px 0 0; }
.buy-modal__contact { color: var(--ink-soft); font-size: 12.5px; margin: 6px 0 0; }
.buy-modal__contact a { color: var(--accent-ink); font-weight: 700; }
.buy-agree { display: flex; align-items: flex-start; gap: 9px; text-align: left; font-size: 13.5px; color: var(--ink-soft); margin: 0 0 16px; padding: 8px 10px; border-radius: 10px; }
.buy-agree input { margin: 2px 0 0; width: 18px; height: 18px; flex: none; accent-color: var(--accent); cursor: pointer; }
.buy-agree a { color: var(--accent-ink); font-weight: 700; }
.buy-agree.nudge { animation: nudge .45s ease; background: var(--accent-tint); box-shadow: 0 0 0 2px var(--accent); }
@keyframes nudge { 0%,100% { transform: translateX(0); } 20% { transform: translateX(-5px); } 40% { transform: translateX(5px); } 60% { transform: translateX(-3px); } 80% { transform: translateX(3px); } }
.plan.is-locked { opacity: .5; }
@media (max-width: 460px) { .buy-modal__plans { grid-template-columns: 1fr; } }

/* ---- Sticky top bar (claim banner + nav stay pinned together) ---- */
.topbar { position: sticky; top: 0; z-index: 50; }

/* ---- Nav ---- */
.nav {
  position: relative;
  background: rgba(255,255,255,.9); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav__inner { display: flex; align-items: center; gap: 14px; min-height: var(--nav-h); }
.nav__brand { display: flex; align-items: center; margin-right: auto; font-family: var(--font-display); font-weight: 600; font-size: 18px; text-decoration: none; color: var(--ink); }
.nav__logo { height: 56px; width: auto; max-width: 210px; object-fit: contain; }
.nav__links { display: none; }
.nav__call {
  display: inline-flex; align-items: center; gap: 7px; text-decoration: none;
  font-weight: 700; color: #fff; background: var(--accent);
  padding: 10px 16px; border-radius: 999px; font-size: 14px; white-space: nowrap;
  box-shadow: 0 10px 20px -12px var(--accent);
}
.nav__call:hover { filter: brightness(1.06); }
.nav__call-ic { width: 15px; height: 15px; }
.nav__call-label { display: none; }
.nav__toggle {
  display: inline-grid; place-items: center; width: 42px; height: 42px;
  border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; color: var(--ink);
}
.nav__toggle svg { width: 22px; height: 22px; }
.nav__toggle .ic-close { display: none; }
.nav.is-open .nav__toggle .ic-open { display: none; }
.nav.is-open .nav__toggle .ic-close { display: block; }
/* mobile dropdown panel */
.nav.is-open .nav__links {
  display: flex; flex-direction: column; gap: 2px;
  position: absolute; left: 0; right: 0; top: 100%;
  background: #fff; border-bottom: 1px solid var(--line); padding: 8px 20px 16px;
  box-shadow: var(--shadow-sm);
}
.nav.is-open .nav__links a { padding: 12px 4px; text-decoration: none; color: var(--ink); font-weight: 600; border-bottom: 1px solid var(--line); }

/* ---- Hero ---- */
.hero { background: radial-gradient(120% 120% at 100% 0%, var(--accent-tint), #fff 55%); }
.hero__inner { display: grid; gap: 28px; padding-block: 40px 52px; }
.hero__copy > * { opacity: 0; animation: rise .7s cubic-bezier(.2,.7,.2,1) forwards; }
.hero__copy > :nth-child(1) { animation-delay: .05s; }
.hero__copy > :nth-child(2) { animation-delay: .14s; }
.hero__copy > :nth-child(3) { animation-delay: .23s; }
.hero__copy > :nth-child(4) { animation-delay: .32s; }
.hero__copy > :nth-child(5) { animation-delay: .41s; }
.hero__media { opacity: 0; animation: rise .8s cubic-bezier(.2,.7,.2,1) .3s forwards; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.rating { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px; font-weight: 600; color: var(--ink-soft); font-size: 14px; }
.rating__stars { color: #f5a524; letter-spacing: 1px; }
.rating__num { font-weight: 800; color: var(--ink); }
.hero h1 { font-size: clamp(2.3rem, 9vw, 4.4rem); font-weight: 600; letter-spacing: -0.02em; }
.hero__sub { font-size: clamp(1.02rem, 4vw, 1.3rem); color: var(--ink-soft); margin: 16px 0 0; max-width: 36ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero__points { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; padding: 0; margin: 24px 0 0; color: var(--ink-soft); font-weight: 600; font-size: 14.5px; }
.hero__points li { position: relative; padding-left: 24px; }
.hero__points li::before { content: ""; position: absolute; left: 0; top: 2px; width: 16px; height: 16px; background: var(--accent); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/contain no-repeat; }
.hero__img { width: 100%; height: auto; border-radius: var(--radius-lg); box-shadow: var(--shadow); }

/* ---- Buttons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; text-decoration: none; font-weight: 700; padding: 14px 24px; border-radius: 999px; transition: transform .12s ease, filter .15s ease, border-color .15s ease; }
.btn:active { transform: translateY(1px) scale(.99); }
.btn--primary { background: var(--accent); color: #fff; box-shadow: 0 14px 26px -14px var(--accent); }
.btn--primary:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn--ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent-ink); }

/* ---- Sections ---- */
.section { padding: 56px 0; }
.section--alt { background: var(--bg-alt); }
.section__head { max-width: 640px; margin: 0 auto 34px; text-align: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .22em; font-size: 12px; font-weight: 700; color: var(--accent-ink); margin: 0 0 12px; }
.section__title { font-size: clamp(1.7rem, 6vw, 2.6rem); }
.section__lead { color: var(--ink-soft); font-size: 1.06rem; margin: 12px 0 0; }

/* ---- Before / after gallery ---- */
.ba-grid { display: grid; gap: 22px; }
.ba { margin: 0; }
.ba__stage { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); touch-action: pan-y; user-select: none; }
.ba__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba__img--before { clip-path: inset(0 calc(100% - var(--pos, 50%)) 0 0); }
.ba__tag { position: absolute; top: 12px; padding: 5px 11px; border-radius: 999px; font-size: 11.5px; font-weight: 700; color: #fff; background: rgba(17,24,28,.62); backdrop-filter: blur(3px); letter-spacing: .02em; }
.ba__tag--before { left: 12px; }
.ba__tag--after { right: 12px; }
.ba__handle { position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 3px; background: #fff; transform: translateX(-50%); box-shadow: 0 0 0 1px rgba(17,24,28,.10); pointer-events: none; }
.ba__handle::after { content: ""; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 44px; height: 44px; border-radius: 50%; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2311181c' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l-4 6 4 6'/%3E%3Cpath d='M15 6l4 6-4 6'/%3E%3C/svg%3E") center / 22px no-repeat; box-shadow: var(--shadow); }
.ba__range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.ba__range:focus-visible + .ba__handle::after { outline: 3px solid var(--accent); outline-offset: 2px; }
.ba__cap { margin-top: 12px; text-align: center; font-weight: 700; }
.ba__cap-note { color: var(--ink-soft); font-weight: 500; font-style: italic; }
/* Placeholder/stock before-after marker so a sample photo is never mistaken for their work. */
.ba__sample { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); z-index: 3; padding: 5px 11px; border-radius: 999px; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: #fff; background: var(--accent); box-shadow: 0 6px 16px -8px rgba(0,0,0,.55); pointer-events: none; }

/* ---- Service cards ---- */
.cards { display: grid; gap: 16px; }
.card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; transition: transform .18s ease, box-shadow .18s ease; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card__ic { display: inline-grid; place-items: center; width: 52px; height: 52px; margin-bottom: 16px; border-radius: 14px; background: var(--accent-tint); color: var(--accent-ink); }
.card__ic svg { width: 26px; height: 26px; }
.card h3 { font-size: 1.25rem; margin-bottom: 8px; }
.card p { margin: 0; color: var(--ink-soft); }
.card__price { display: inline-block; margin: 0 0 12px; padding: 5px 12px; border-radius: 999px; background: var(--accent-tint); color: var(--accent-ink); font-weight: 800; font-size: 13px; }
.price-note { text-align: center; color: var(--ink-soft); font-size: 14.5px; margin: 26px auto 0; max-width: 640px; }

/* ---- Reviews ---- */
.reviews-wrap { position: relative; }

/* Default (<= 4 reviews): a plain responsive grid - every review is visible, no carousel. */
.reviews { display: grid; gap: 16px; grid-template-columns: 1fr; }
.review { margin: 0; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }

/* Carousel mode (> 4 reviews): horizontal, swipeable, snap-scrolling, with arrows on EVERY
   viewport (mobile included). Only .has-arrows wraps opt in - set by the template on count. */
.reviews-wrap.has-arrows .reviews { display: flex; grid-template-columns: none; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; -webkit-overflow-scrolling: touch; padding-bottom: 6px; scrollbar-width: none; }
.reviews-wrap.has-arrows .reviews::-webkit-scrollbar { display: none; }
.reviews-wrap.has-arrows .review { flex: 0 0 clamp(258px, 82%, 360px); scroll-snap-align: start; }

.reviews__arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 42px; height: 42px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); display: none; place-items: center; cursor: pointer; box-shadow: var(--shadow); }
.reviews-wrap.has-arrows .reviews__arrow { display: grid; }
.reviews__arrow:hover { border-color: var(--accent); color: var(--accent-ink); }
.reviews__arrow svg { width: 20px; height: 20px; }
.reviews__arrow--prev { left: -6px; }
.reviews__arrow--next { right: -6px; }
@media (min-width: 760px) {
  .reviews-wrap.has-arrows .review { flex-basis: clamp(300px, 31%, 360px); }
}
.review__stars { color: #f5a524; letter-spacing: 2px; font-size: 16px; }
.review blockquote { margin: 12px 0; font-size: 1.08rem; font-family: var(--font-display); font-weight: 400; line-height: 1.4; }
.review figcaption { color: var(--ink); font-weight: 700; }
.review__src { color: var(--ink-soft); font-weight: 500; }

/* ---- Contact / CTA ---- */
.section--cta { background: radial-gradient(120% 120% at 0% 100%, var(--accent-tint), #fff 55%); }
.contact { display: grid; gap: 24px; }
.contact .section__head { margin: 0; text-align: left; }
.contact__copy { max-width: 560px; }
.contact__list { list-style: none; padding: 0; margin: 22px 0 0; }
.contact__list li { display: flex; gap: 14px; padding: 9px 0; align-items: baseline; }
.contact__list span { width: 84px; color: var(--ink-soft); font-weight: 700; flex: none; }
.contact__list a { font-weight: 700; text-decoration: none; color: var(--accent-ink); word-break: break-word; }
.contact__list a:hover { text-decoration: underline; }
.contact__cta { width: 100%; }

/* ---- Footer ---- */
.foot { background: var(--ink); color: #c7d0d6; padding: 26px 0; }
.foot__inner { display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; font-size: 13.5px; }
.foot__by { opacity: .85; }
.foot__by a { color: #fff; font-weight: 700; text-decoration: none; }
.foot__by a:hover { text-decoration: underline; }

/* ---- Sticky mobile call bar (conversion) ---- */
.callbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: flex; gap: 10px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.94); backdrop-filter: blur(12px); border-top: 1px solid var(--line);
}
.callbar .btn { flex: 1; }
body { padding-bottom: 76px; } /* room for the call bar on mobile */

/* ============ Tablet ============ */
@media (min-width: 700px) {
  .claim { flex-direction: row; flex-wrap: wrap; gap: 8px 18px; justify-content: center; font-size: 13.5px; }
  .section { padding: 80px 0; }
  .ba-grid { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
  .reviews-wrap:not(.has-arrows) .reviews { grid-template-columns: repeat(2, 1fr); }
  .contact { grid-template-columns: 1.4fr auto; align-items: center; }
  .contact__cta { width: auto; }
}

/* ============ Desktop ============ */
@media (min-width: 1000px) {
  :root { --nav-h: 88px; }
  .nav__toggle { display: none; }
  .nav__links { display: flex; gap: 26px; margin-right: 18px; }
  .nav__links a { text-decoration: none; color: var(--ink-soft); font-weight: 600; font-size: 15px; }
  .nav__links a:hover { color: var(--accent-ink); }
  .nav__logo { height: 72px; max-width: 360px; }
  .nav__call-label { display: inline; }
  .hero__inner { grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; padding-block: 84px 92px; }
  .hero__sub { font-size: 1.3rem; }
  .ba-grid { grid-template-columns: repeat(3, 1fr); gap: 26px; }
  .reviews-wrap:not(.has-arrows) .reviews { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
  .callbar { display: none; }
  body { padding-bottom: 0; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .hero__copy > *, .hero__media { animation: none; opacity: 1; }
  html { scroll-behavior: auto; }
}