/* =====================================================================
   Handyman Jack Jack — styles
   Brand: teal + hot pink (from the logo). Full light + dark themes that
   follow the visitor's device setting, plus a manual toggle in the nav.
   You normally won't edit this file — your words live in content.js.
   ===================================================================== */

/* ---- Theme tokens: LIGHT (default) ---- */
:root {
  --bg:#ffffff; --bg-alt:#f2fbfc; --card:#ffffff; --line:#E1EEF0;
  --ink:#12333A; --muted:#567079; --teal:#16BECF; --teal-ink:#0B7C8A;
  --pink:#EE1D8F; --pink-deep:#C9147A; --trust-bg:#12333A; --trust-ink:#cfe6ea;
  --footer-bg:#12333A; --footer-ink:#cfe6ea; --nav-bg:rgba(255,255,255,.92);
  --chip:#e2f4f6; --shadow:0 12px 34px rgba(14,154,170,.13);
  --hero:linear-gradient(180deg,#ffffff 0%,#f2fbfc 100%);
  --ph-a:#e6f3f5; --ph-b:#dceef1; --ph-text:#6b8b92; --field:#fbfeff;
  --ba-a:#dfe0e2; --ba-b:#d5d6d9; --ba-text:#7c7d82;
}
/* ---- DARK when the device asks for it ---- */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:#08191d; --bg-alt:#0b2126; --card:#0f2a30; --line:#1c3b42;
    --ink:#eaf6f7; --muted:#9db9bf; --teal:#22cfe0; --teal-ink:#6fdfec;
    --pink:#ff45a8; --pink-deep:#EE1D8F; --trust-bg:#061418; --trust-ink:#9db9bf;
    --footer-bg:#061418; --footer-ink:#9db9bf; --nav-bg:rgba(8,25,29,.9);
    --chip:#123037; --shadow:0 16px 40px rgba(0,0,0,.5);
    --hero:radial-gradient(900px 420px at 78% -10%,rgba(34,207,224,.14),transparent 60%),#0a2126;
    --ph-a:#12363d; --ph-b:#0e2a30; --ph-text:#5f8a92; --field:#0b2126;
    --ba-a:#232325; --ba-b:#2a2a2c; --ba-text:#8a8a90;
  }
}
/* ---- Manual overrides from the nav toggle ---- */
:root[data-theme="dark"] {
  --bg:#08191d; --bg-alt:#0b2126; --card:#0f2a30; --line:#1c3b42;
  --ink:#eaf6f7; --muted:#9db9bf; --teal:#22cfe0; --teal-ink:#6fdfec;
  --pink:#ff45a8; --pink-deep:#EE1D8F; --trust-bg:#061418; --trust-ink:#9db9bf;
  --footer-bg:#061418; --footer-ink:#9db9bf; --nav-bg:rgba(8,25,29,.9);
  --chip:#123037; --shadow:0 16px 40px rgba(0,0,0,.5);
  --hero:radial-gradient(900px 420px at 78% -10%,rgba(34,207,224,.14),transparent 60%),#0a2126;
  --ph-a:#12363d; --ph-b:#0e2a30; --ph-text:#5f8a92; --field:#0b2126;
  --ba-a:#232325; --ba-b:#2a2a2c; --ba-text:#8a8a90;
}

* { box-sizing:border-box; }
html { scroll-behavior:smooth; }
body {
  margin:0;
  font-family:'Poppins',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;
  color:var(--ink); background:var(--bg); line-height:1.6;
  -webkit-font-smoothing:antialiased;
  transition:background .25s ease,color .25s ease;
}
img { max-width:100%; display:block; }
a { color:var(--teal-ink); text-decoration:none; }
a:hover { color:var(--pink); }
h1,h2 { line-height:1.1; letter-spacing:-.02em; }
.icon { display:inline-block; flex:none; }
.icon svg { width:100%; height:100%; display:block; }

.container { width:100%; max-width:1200px; margin:0 auto; padding:0 28px; }
.container-narrow { max-width:800px; }
.eyebrow { font-size:12px; font-weight:700; letter-spacing:.12em; color:var(--teal-ink); }

/* ---- Buttons ---- */
.btn {
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  padding:15px 26px; border-radius:12px; font-weight:700; font-size:17px;
  cursor:pointer; border:2px solid transparent; font-family:inherit;
  transition:transform .12s ease, background .12s ease, box-shadow .12s ease;
}
.btn .icon { width:19px; height:19px; }
.btn:active { transform:translateY(1px); }
.btn-pink { background:var(--pink); color:#fff; box-shadow:0 10px 24px rgba(238,29,143,.3); }
.btn-pink:hover { background:var(--pink-deep); color:#fff; }
.btn-outline { background:var(--card); color:var(--teal-ink); border-color:var(--teal); }
.btn-outline:hover { background:var(--bg-alt); }
.btn-block { width:100%; }

/* ---- Nav ---- */
.nav { position:sticky; top:0; z-index:50; background:var(--nav-bg); backdrop-filter:blur(10px); border-bottom:1px solid var(--line); }
.nav-inner { max-width:1200px; margin:0 auto; padding:12px 28px; display:flex; align-items:center; justify-content:space-between; gap:20px; }
.brand-logo { height:200px; width:auto; }
.nav-menu { display:flex; align-items:center; gap:24px; font-weight:600; font-size:15px; }
.nav-link { color:var(--ink); }
.nav-link:hover { color:var(--pink); }
.theme-toggle { display:inline-flex; align-items:center; gap:2px; background:var(--bg-alt); border:1px solid var(--line); border-radius:999px; padding:3px; }
.theme-btn { border:none; cursor:pointer; width:32px; height:30px; border-radius:999px; display:inline-flex; align-items:center; justify-content:center; background:transparent; color:var(--muted); }
.theme-btn .icon { width:16px; height:16px; }
.theme-btn.active { background:var(--teal); color:#06272c; }
.cta-phone { display:inline-flex; align-items:center; gap:8px; background:var(--pink); color:#fff; padding:10px 18px; border-radius:999px; font-weight:700; white-space:nowrap; }
.cta-phone:hover { color:#fff; background:var(--pink-deep); }
.cta-phone .icon { width:16px; height:16px; }

/* ---- Hero ---- */
.hero { background:var(--hero); }
.hero-grid { max-width:1200px; margin:0 auto; padding:64px 28px; display:grid; grid-template-columns:1.05fr .95fr; gap:52px; align-items:center; }
.hero-eyebrow { display:inline-flex; align-items:center; gap:8px; font-size:12px; font-weight:700; letter-spacing:.1em; color:var(--teal-ink); background:var(--chip); padding:7px 14px; border-radius:999px; }
.hero-eyebrow .icon { width:14px; height:14px; }
.hero h1 { font-size:52px; line-height:1.05; font-weight:800; margin:20px 0 16px; text-wrap:balance; }
.hero-sub { font-size:18px; line-height:1.6; color:var(--muted); margin:0 0 28px; max-width:520px; }
.hero-actions { display:flex; flex-wrap:wrap; gap:14px; margin-bottom:26px; }
.hero-checks { display:flex; flex-wrap:wrap; gap:20px; }
.hero-check { display:inline-flex; align-items:center; gap:8px; font-weight:600; font-size:15px; }
.hero-check .icon { width:18px; height:18px; color:var(--teal); }
.hero-media { position:relative; }
.hero-photo { aspect-ratio:4/5; border-radius:20px; overflow:hidden; background:repeating-linear-gradient(45deg,var(--ph-a) 0 14px,var(--ph-b) 14px 28px); display:flex; align-items:center; justify-content:center; color:var(--ph-text); font-family:'Courier New',monospace; font-size:13px; text-align:center; padding:20px; border:1px solid var(--line); }
.hero-photo img { width:100%; height:100%; object-fit:cover; }
.hero-badge { position:absolute; left:-18px; bottom:36px; background:var(--card); border-radius:14px; padding:14px 18px; box-shadow:var(--shadow); display:flex; align-items:center; gap:12px; }
.hero-badge .icon { width:38px; height:38px; color:var(--teal); background:var(--chip); border-radius:10px; padding:8px; }
.hero-badge b { display:block; font-size:15px; }
.hero-badge span.sub { font-size:13px; color:var(--muted); }
.hero-rating { position:absolute; right:-14px; top:28px; background:var(--card); border-radius:14px; padding:12px 16px; box-shadow:var(--shadow); text-align:center; }
.hero-rating .stars { color:#FFC107; font-size:15px; letter-spacing:2px; }
.hero-rating .sub { font-size:12px; color:var(--muted); font-weight:600; margin-top:2px; }

/* ---- Trust strip ---- */
.trust { background:var(--trust-bg); }
.trust-grid { max-width:1200px; margin:0 auto; display:grid; grid-template-columns:repeat(4,1fr); }
.trust-item { padding:28px 20px; text-align:center; border-right:1px solid rgba(255,255,255,.08); }
.trust-item:last-child { border-right:none; }
.trust-num { font-size:32px; font-weight:800; color:var(--teal); }
.trust-label { font-size:14px; color:var(--trust-ink); }

/* ---- Sections ---- */
.section { padding:72px 28px; max-width:1200px; margin:0 auto; }
.section-alt { background:var(--bg-alt); }
.section-alt .section { }
.section h2, .sec-head h2 { font-size:36px; font-weight:800; margin:8px 0 6px; }
.section-intro { color:var(--muted); font-size:16px; margin:0 0 34px; max-width:560px; }
.sec-head { text-align:center; margin-bottom:34px; }
.sec-head .section-intro { margin:0 auto; }

/* ---- Services ---- */
.services-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(230px,1fr)); gap:14px; }
.service-card { display:flex; align-items:center; gap:14px; padding:18px; border:1px solid var(--line); border-radius:14px; background:var(--card); }
.service-icon { width:26px; height:26px; color:var(--teal-ink); flex:none; }
.service-name { font-weight:600; font-size:15px; line-height:1.3; }

/* ---- Gallery ---- */
.gallery-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(300px,1fr)); gap:18px; }
.gallery-card { border-radius:16px; overflow:hidden; background:var(--card); border:1px solid var(--line); box-shadow:var(--shadow); }
.gallery-card .ph { height:200px; background:repeating-linear-gradient(45deg,var(--ph-a) 0 14px,var(--ph-b) 14px 28px); display:flex; align-items:center; justify-content:center; color:var(--ph-text); font-family:'Courier New',monospace; font-size:12px; text-align:center; padding:16px; }
.gallery-card img { width:100%; height:200px; object-fit:cover; object-position:center 30%; }
.gallery-caption { padding:14px 16px; font-weight:600; }

/* ---- Before / After ---- */
.ba-grid { display:grid; grid-template-columns:1fr 1fr; gap:26px; max-width:1000px; margin:0 auto; }
.ba-item { }
.ba-slider { position:relative; aspect-ratio:4/3; border-radius:16px; overflow:hidden; border:1px solid var(--line); box-shadow:var(--shadow); user-select:none; touch-action:none; cursor:ew-resize; }
.ba-slider .ph { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; font-family:'Courier New',monospace; font-size:13px; }
.ba-before { background:repeating-linear-gradient(45deg,var(--ba-a) 0 16px,var(--ba-b) 16px 32px); color:var(--ba-text); }
.ba-slider img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; pointer-events:none; }
.ba-after-wrap { position:absolute; inset:0; width:50%; overflow:hidden; border-right:3px solid #fff; }
.ba-after { background:repeating-linear-gradient(45deg,var(--ph-a) 0 16px,var(--ph-b) 16px 32px); color:var(--ph-text); }
.ba-after-wrap img { width:auto; }
.ba-tag { position:absolute; top:10px; font-family:'Poppins'; font-size:11px; font-weight:700; padding:4px 10px; border-radius:999px; color:#fff; z-index:3; }
.ba-tag.before { left:10px; background:#12333A; }
.ba-tag.after { right:10px; background:var(--teal); color:#06272c; }
.ba-handle { position:absolute; top:0; bottom:0; left:50%; width:40px; transform:translateX(-50%); display:flex; align-items:center; justify-content:center; pointer-events:none; z-index:2; }
.ba-knob { width:40px; height:40px; border-radius:50%; background:var(--pink); color:#fff; display:flex; align-items:center; justify-content:center; border:3px solid #fff; box-shadow:0 4px 12px rgba(0,0,0,.3); }
.ba-knob .icon { width:20px; height:20px; }
.ba-range { position:absolute; inset:0; width:100%; height:100%; opacity:0; cursor:ew-resize; margin:0; }
.ba-caption { font-weight:600; margin-top:12px; text-align:center; }

/* ---- Reviews ---- */
.reviews-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(300px,1fr)); gap:18px; }
.review-card { background:var(--card); border:1px solid var(--line); border-radius:16px; padding:26px; box-shadow:var(--shadow); display:flex; flex-direction:column; }
.review-stars { color:#FFC107; font-size:16px; letter-spacing:2px; margin-bottom:12px; }
.review-text { font-style:italic; margin:0 0 18px; flex:1; }
.review-author { font-weight:700; color:var(--teal-ink); }
.review-location { font-size:13px; color:var(--muted); }
.reviews-cta { text-align:center; margin-top:30px; }

/* ---- Areas + map ---- */
.areas-grid { max-width:1100px; margin:0 auto; padding:72px 28px; display:grid; grid-template-columns:1fr 1fr; gap:52px; align-items:center; }
.areas-list { list-style:none; padding:0; margin:0; display:flex; flex-wrap:wrap; gap:10px; }
.areas-list li { display:inline-flex; align-items:center; gap:7px; background:var(--card); border:1px solid var(--teal); color:var(--teal-ink); padding:9px 15px; border-radius:999px; font-weight:600; font-size:14px; }
.areas-list li .icon { width:14px; height:14px; }
.map-card { border-radius:20px; overflow:hidden; border:1px solid var(--line); background:var(--card); box-shadow:var(--shadow); padding:14px; }
.map-card img { width:100%; }
.map-light, .map-dark { display:none; }
:root:not([data-theme="dark"]) .map-light { display:block; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .map-light { display:none; } :root:not([data-theme="light"]) .map-dark { display:block; } }
:root[data-theme="dark"] .map-dark { display:block; }
:root[data-theme="dark"] .map-light { display:none; }
:root[data-theme="light"] .map-light { display:block; }
:root[data-theme="light"] .map-dark { display:none; }

/* ---- FAQ ---- */
.faq-list { max-width:800px; margin:0 auto; }
.faq-item { background:var(--card); border:1px solid var(--line); border-radius:12px; margin-bottom:12px; overflow:hidden; }
.faq-q { list-style:none; cursor:pointer; padding:18px 22px; font-weight:600; font-size:16px; display:flex; justify-content:space-between; align-items:center; gap:16px; color:var(--ink); }
.faq-q::-webkit-details-marker { display:none; }
.faq-plus { color:var(--pink); font-size:24px; font-weight:700; line-height:1; flex:none; transition:transform .2s ease; }
.faq-item[open] .faq-plus { transform:rotate(45deg); }
.faq-a { padding:0 22px 20px; color:var(--muted); }

/* ---- Quote form ---- */
.quote-form { background:var(--card); border:1px solid var(--line); border-radius:16px; padding:30px; box-shadow:var(--shadow); }
.field { margin-bottom:16px; }
.field-row { display:flex; gap:16px; margin-bottom:16px; }
.field-row .field { flex:1; margin-bottom:0; }
.field label { display:block; font-weight:600; margin-bottom:6px; font-size:14px; }
.field input, .field textarea { width:100%; padding:12px 14px; border:1.5px solid var(--line); border-radius:12px; font-family:inherit; font-size:15px; color:var(--ink); background:var(--field); transition:border-color .15s ease; }
.field input:focus, .field textarea:focus { outline:none; border-color:var(--teal); }
.form-note { text-align:center; margin:14px 0 0; font-weight:600; min-height:1.2em; }
.form-note.ok { color:var(--teal-ink); }
.form-note.err { color:var(--pink-deep); }

/* ---- CTA band ---- */
.cta-band { background:linear-gradient(135deg,#16BECF,#0B7C8A); color:#fff; }
.cta-band .inner { max-width:1200px; margin:0 auto; padding:52px 28px; display:flex; align-items:center; justify-content:space-between; gap:24px; flex-wrap:wrap; }
.cta-band h2 { font-size:30px; font-weight:800; margin:0 0 6px; }
.cta-band p { margin:0; font-size:16px; color:rgba(255,255,255,.9); }
.cta-band .btn { background:var(--pink); color:#fff; box-shadow:0 12px 28px rgba(0,0,0,.2); }

/* ---- Footer ---- */
.footer { background:var(--footer-bg); color:var(--footer-ink); padding:44px 28px 96px; }
.footer-inner { max-width:1200px; margin:0 auto; display:flex; align-items:center; justify-content:center; gap:26px; flex-wrap:wrap; text-align:center; }
.footer-logo { width:150px; height:auto; background:#fff; border-radius:12px; padding:8px; }
.footer-phone { display:inline-block; color:#fff; font-size:26px; font-weight:800; }
.footer-phone:hover { color:var(--teal); }
.footer-email { display:block; color:#fff; font-size:16px; font-weight:600; margin-top:4px; word-break:break-word; }
.footer-email:hover { color:var(--teal); }
.footer-license { margin:8px 0 2px; }
.footer-copy { margin:8px 0 0; font-size:13px; opacity:.75; }

/* ---- Sticky mobile call bar ---- */
.sticky-bar { position:fixed; bottom:0; left:0; right:0; z-index:60; display:none; gap:2px; background:var(--trust-bg); padding:8px; box-shadow:0 -6px 20px rgba(0,0,0,.18); }
.sticky-btn { flex:1; text-align:center; padding:12px 4px; border-radius:12px; font-weight:700; color:#fff; font-size:15px; }
.sticky-call { background:var(--teal); color:#06272c; }
.sticky-text { background:var(--pink); }
.sticky-quote { background:#2b4a52; }

/* ---- Responsive ---- */
@media (max-width:900px) {
  .brand-logo { height:140px; }
  .nav-link { display:none; }
  .nav-menu { gap:14px; }
  .hero-grid { grid-template-columns:1fr; text-align:center; gap:30px; padding:44px 22px 48px; }
  .hero h1 { font-size:38px; }
  .hero-actions, .hero-checks, .hero-eyebrow { justify-content:center; }
  .hero-media { max-width:420px; margin:0 auto; }
  .trust-grid { grid-template-columns:1fr 1fr; }
  .trust-item:nth-child(2) { border-right:none; }
  .ba-grid { grid-template-columns:1fr; }
  .areas-grid { grid-template-columns:1fr; gap:34px; padding:52px 28px; }
  .section { padding:52px 28px; }
  .section h2, .sec-head h2 { font-size:28px; }
  .cta-band .inner { flex-direction:column; text-align:center; }
  .sticky-bar { display:flex; }
}
@media (max-width:520px) {
  .brand-logo { height:104px; }
  .trust-grid { grid-template-columns:1fr; }
  .trust-item { border-right:none; border-bottom:1px solid rgba(255,255,255,.08); }
  .trust-item:last-child { border-bottom:none; }
  .hero h1 { font-size:32px; }
  .nav-inner { padding:10px 16px; }
  .cta-phone { font-size:14px; padding:9px 14px; }
  .field-row { flex-direction:column; gap:0; }
}
