/* AllHours Locksmith — Playful Pop. Layout: chunky rounded color blocks on a warm off-white page, sticky call bar on phones. */
:root {
  --bg: #FFFAF0;
  --surface: #FFFFFF;
  --ink: #1C1A3F;
  --muted: #57557A;
  --line: #EDE5D2;
  --yellow: #FFC83D;
  --yellow-deep: #E0A500;
  --pink: #FF5C8A;
  --pink-deep: #D63A69;
  --mint: #1FC59A;
  --mint-deep: #129A77;
  --sky: #4E7BFF;
  --sky-deep: #2F57D6;
  --tint-yellow: #FFF0C7;
  --tint-pink: #FFE1EA;
  --tint-mint: #D6F6EC;
  --tint-sky: #E1E9FF;
  --on-color: #1C1A3F;
  --hero: #FFC83D;
  --hero-ink: #1C1A3F;
  --footer: #1C1A3F;
  --footer-ink: #FFF6E3;
  --footer-muted: #B9B6DA;
  --font-display: "Fredoka", "Baloo 2", "Trebuchet MS", system-ui, sans-serif;
  --font-body: "DM Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --r-lg: 28px;
  --r-md: 18px;
  --r-sm: 12px;
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #15132E; --surface: #211E47; --ink: #FFF6E3; --muted: #C2BEE3; --line: #2F2B60;
    --tint-yellow: #3A3220; --tint-pink: #3E2141; --tint-mint: #173A3A; --tint-sky: #1F2B5C;
    --footer: #0D0C22; --footer-ink: #FFF6E3; --footer-muted: #A9A5D0;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #15132E; --surface: #211E47; --ink: #FFF6E3; --muted: #C2BEE3; --line: #2F2B60;
  --tint-yellow: #3A3220; --tint-pink: #3E2141; --tint-mint: #173A3A; --tint-sky: #1F2B5C;
  --footer: #0D0C22; --footer-ink: #FFF6E3; --footer-muted: #A9A5D0;
  color-scheme: dark;
}

*, *::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: none !important; transition: none !important; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 17px; line-height: 1.65; padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
@media (min-width: 900px) { body { padding-bottom: 0; } }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--bg); }
img, svg { max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.1; letter-spacing: -0.01em; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2.3rem, 6vw, 4rem); }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.3rem; }
p { margin: 0; }
.wrap { max-width: 1160px; margin: 0 auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.prose { max-width: 66ch; }
.prose > * + * { margin-top: 1rem; }
.prose h2 { margin-top: 2.2rem; font-size: clamp(1.45rem, 2.6vw, 1.9rem); }
.muted { color: var(--muted); }
.eyebrow { font-family: var(--font-display); font-weight: 600; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 16px; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 6px; }
.ico { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -0.18em; }

/* header */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: var(--bg); border-bottom: 2px solid var(--line); }
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 44px; height: 44px; flex: none; }
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: 1.35rem; line-height: 1; }
.brand-name small { display: block; font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-top: 3px; font-weight: 500; }
.nav { display: none; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; align-items: center; }
.nav a { display: block; padding: 8px 14px; border-radius: 999px; text-decoration: none; font-weight: 500; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--tint-yellow); }
.head-call { display: none; }
.menu { position: relative; }
.menu summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 999px; background: var(--tint-yellow); font-weight: 600; font-family: var(--font-display); }
.menu summary::-webkit-details-marker { display: none; }
.menu-panel { position: absolute; right: 0; top: calc(100% + 10px); width: min(320px, calc(100vw - 32px)); background: var(--surface); border: 2px solid var(--line); border-radius: var(--r-md); padding: 10px; box-shadow: 0 10px 0 var(--line); }
.menu-panel a { display: block; padding: 11px 14px; border-radius: 12px; text-decoration: none; font-weight: 500; }
.menu-panel a:hover { background: var(--tint-yellow); }
.menu-panel .sub { font-size: .8rem; color: var(--muted); padding: 10px 14px 4px; font-family: var(--font-display); letter-spacing: .06em; text-transform: uppercase; }
@media (min-width: 980px) {
  .nav { display: block; }
  .head-call { display: inline-flex; }
  .menu { display: none; }
}

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; text-decoration: none; padding: 14px 24px; border-radius: 18px; border: 0; cursor: pointer; transition: transform .12s ease, box-shadow .12s ease; line-height: 1.1; }
.btn:active { transform: translateY(4px); }
.btn-call { background: var(--pink); color: #fff; box-shadow: 0 6px 0 var(--pink-deep); }
.btn-call:active { box-shadow: 0 2px 0 var(--pink-deep); }
.btn-yellow { background: var(--yellow); color: var(--on-color); box-shadow: 0 6px 0 var(--yellow-deep); }
.btn-yellow:active { box-shadow: 0 2px 0 var(--yellow-deep); }
.btn-ghost { background: transparent; color: inherit; border: 2.5px solid currentColor; padding: 11.5px 21.5px; }
.btn-sm { font-size: .98rem; padding: 10px 18px; border-radius: 14px; }
.btn-num { font-variant-numeric: tabular-nums; }

/* hero */
.hero { background: var(--hero); color: var(--hero-ink); position: relative; overflow: hidden; }
.hero-grid { display: grid; gap: 36px; padding-block: 44px 64px; position: relative; z-index: 1; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.15fr .85fr; align-items: center; padding-block: 72px 88px; } }
.hero h1 { color: var(--hero-ink); }
.hero h1 .pop { display: inline-block; background: var(--pink); color: #fff; padding: 0 .28em; border-radius: .3em; transform: rotate(-2.5deg); }
.hero-lead { font-size: 1.15rem; max-width: 34ch; margin-top: 18px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero .btn-ghost { color: var(--hero-ink); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; padding: 0; list-style: none; }
.chips li { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.55); padding: 7px 14px; border-radius: 999px; font-weight: 500; font-size: .95rem; color: var(--hero-ink); }
.blob { position: absolute; border-radius: 50%; z-index: 0; }
.blob.b1 { width: 340px; height: 340px; background: #FFD970; right: -120px; top: -140px; }
.blob.b2 { width: 160px; height: 160px; background: #FFB627; left: -60px; bottom: -70px; }
.hero-card { position: relative; justify-self: center; width: min(400px, 100%); }
.hero-card .card { background: #FFFFFF; color: #1C1A3F; border-radius: var(--r-lg); padding: 24px; box-shadow: 0 10px 0 #E0A500; transform: rotate(2deg); }
.hero-card .card h2 { font-size: 1.35rem; color: #1C1A3F; }
.hero-card .row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 2px dashed #EFE6CF; }
.hero-card .row:last-child { border-bottom: 0; }
.hero-card .dot { width: 40px; height: 40px; border-radius: 14px; display: grid; place-items: center; flex: none; }
.hero-card .row strong { display: block; font-family: var(--font-display); font-weight: 600; }
.hero-card .row span { font-size: .92rem; color: #57557A; }
.sticker { position: absolute; font-family: var(--font-display); font-weight: 600; border-radius: 999px; padding: 9px 16px; white-space: nowrap; }
.sticker.s1 { background: var(--pink); color: #fff; left: -14px; bottom: -22px; transform: rotate(-7deg); box-shadow: 0 5px 0 var(--pink-deep); }
.sticker.s2 { background: var(--mint); color: #0B3B2E; right: -10px; top: -22px; transform: rotate(8deg); box-shadow: 0 5px 0 var(--mint-deep); }
.wave { display: block; width: 100%; height: 40px; color: var(--bg); position: relative; z-index: 1; margin-top: -40px; }

/* page hero (inner pages) */
.page-hero { background: var(--hero); color: var(--hero-ink); position: relative; overflow: hidden; }
.page-hero .wrap { padding-block: 36px 60px; position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(2rem, 5vw, 3.3rem); max-width: 22ch; margin-top: 14px; }
.page-hero p.lead { font-size: 1.12rem; max-width: 56ch; margin-top: 14px; }
.crumbs { font-size: .9rem; display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.crumbs li + li::before { content: "›"; margin-right: 6px; opacity: .6; }
.crumbs a { text-decoration: none; border-bottom: 1.5px solid rgba(28,26,63,.35); }

/* sections */
section.band { padding-block: 64px; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 30px; }
.section-head p { max-width: 52ch; color: var(--muted); }
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.svc { display: flex; flex-direction: column; gap: 10px; text-decoration: none; padding: 24px; border-radius: var(--r-lg); background: var(--surface); border: 2px solid var(--line); transition: transform .15s ease, box-shadow .15s ease; min-width: 0; }
.svc:hover { transform: translateY(-4px) rotate(-.5deg); box-shadow: 0 8px 0 var(--line); }
.svc .badge { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; }
.svc .badge .ico { width: 26px; height: 26px; }
.svc p { color: var(--muted); font-size: .98rem; }
.svc .more { margin-top: auto; font-weight: 600; font-family: var(--font-display); display: inline-flex; align-items: center; gap: 6px; }
.c-yellow { background: var(--yellow); color: var(--on-color); }
.c-pink { background: var(--pink); color: #fff; }
.c-mint { background: var(--mint); color: #0B3B2E; }
.c-sky { background: var(--sky); color: #fff; }
.t-yellow { background: var(--tint-yellow); }
.t-pink { background: var(--tint-pink); }
.t-mint { background: var(--tint-mint); }
.t-sky { background: var(--tint-sky); }

.steps { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li { padding: 26px; border-radius: var(--r-lg); position: relative; counter-increment: step; }
.steps li::before { content: counter(step); font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--bg); margin-bottom: 14px; }
.steps h3 { margin-bottom: 6px; }

.split { display: grid; gap: 36px; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 360px; align-items: start; } }
.aside { position: relative; display: grid; gap: 18px; }
@media (min-width: 900px) { .aside { position: sticky; top: calc(96px + env(safe-area-inset-top, 0px)); } }
.panel { background: var(--surface); border: 2px solid var(--line); border-radius: var(--r-lg); padding: 24px; }
.panel h2, .panel h3 { font-size: 1.3rem; margin-bottom: 10px; }
.call-panel { background: var(--pink); color: #fff; border: 0; box-shadow: 0 8px 0 var(--pink-deep); }
.call-panel .btn { width: 100%; background: #fff; color: #1C1A3F; box-shadow: 0 6px 0 rgba(0,0,0,.18); margin-top: 14px; }
.call-panel .big { font-family: var(--font-display); font-weight: 600; font-size: 1.9rem; font-variant-numeric: tabular-nums; display: block; margin-top: 4px; text-decoration: none; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; }
.ticks li .ico { color: var(--mint-deep); margin-top: 4px; }
.ticks.two { grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.list-box { border-radius: var(--r-lg); padding: 26px; margin-top: 2rem; }
.list-box h2 { margin-top: 0 !important; margin-bottom: 16px; }

.areas { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.areas a { display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border-radius: 999px; text-decoration: none; background: var(--surface); border: 2px solid var(--line); font-weight: 500; transition: background .15s ease; }
.areas a:hover { background: var(--tint-mint); border-color: var(--mint); }

.faq { display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 2px solid var(--line); border-radius: var(--r-md); padding: 0 20px; }
.faq summary { cursor: pointer; font-family: var(--font-display); font-weight: 600; font-size: 1.12rem; padding: 18px 0; list-style: none; display: flex; justify-content: space-between; gap: 14px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--pink); flex: none; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding-bottom: 18px; color: var(--muted); }

.cta-band { background: var(--ink); color: var(--bg); border-radius: var(--r-lg); padding: 40px 28px; display: grid; gap: 20px; position: relative; overflow: hidden; }
@media (min-width: 800px) { .cta-band { grid-template-columns: 1fr auto; align-items: center; padding: 48px; } }
.cta-band h2 { color: var(--bg); }
.cta-band p { color: var(--bg); opacity: .85; margin-top: 8px; }
.cta-band .ring { position: absolute; width: 220px; height: 220px; border: 26px solid var(--yellow); border-radius: 50%; right: -80px; top: -90px; opacity: .9; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; position: relative; }

.nap { display: grid; gap: 14px; }
.nap-row { display: flex; gap: 12px; align-items: flex-start; }
.nap-row .dot { width: 40px; height: 40px; border-radius: 14px; display: grid; place-items: center; flex: none; }
.nap-row strong { display: block; font-family: var(--font-display); font-weight: 600; }
.nap-row a { overflow-wrap: anywhere; }
.hours { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.hours td { padding: 8px 0; border-bottom: 2px dashed var(--line); }
.hours td:last-child { text-align: right; font-weight: 600; }

form.quote { display: grid; gap: 14px; }
form.quote label { font-weight: 600; font-size: .95rem; display: grid; gap: 6px; }
form.quote input, form.quote select, form.quote textarea { font: inherit; font-size: 1rem; padding: 13px 14px; border-radius: 14px; border: 2px solid var(--line); background: var(--bg); color: var(--ink); width: 100%; }
form.quote input:focus, form.quote select:focus, form.quote textarea:focus { border-color: var(--sky); outline: none; }
.form-note { font-size: .92rem; color: var(--muted); }
.form-msg { font-weight: 600; color: var(--mint-deep); }

/* footer */
.site-footer { background: var(--footer); color: var(--footer-ink); margin-top: 72px; padding-block: 56px 32px; }
.foot-grid { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.site-footer h2 { font-size: 1.1rem; margin-bottom: 14px; color: var(--yellow); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { text-decoration: none; color: var(--footer-ink); }
.site-footer a:hover { text-decoration: underline; }
.site-footer .small { color: var(--footer-muted); font-size: .9rem; }
.site-footer .brand-name small { color: var(--footer-muted); }
.foot-base { margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.14); display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; }

/* mobile call bar */
.callbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; background: var(--surface); border-top: 2px solid var(--line); padding: 10px var(--gutter-r) calc(10px + env(safe-area-inset-bottom, 0px)) var(--gutter-l); display: flex; gap: 10px; }
.callbar .btn { flex: 1; font-size: 1.05rem; padding: 13px 10px; }
.callbar .btn-sms { flex: 0 0 auto; background: var(--tint-yellow); color: var(--ink); box-shadow: 0 4px 0 var(--line); }
@media (min-width: 900px) { .callbar { display: none; } }
