/* ==========================================================================
   Marco's Locksmith - v3 site skin (2026-11-20)
   Carries the owner-approved homepage v3 language to every other page:
   near-black nav / hero / closing band / footer, white and off-white content
   sections with dark ink text, Inter 800 headings, rounded cards, gold
   actions with dark text. Loaded after main.css on every page except the
   homepage (which has its own v3-redesign.css), scoped under body.v3-site.

   How it works: main.css is almost entirely token-driven, so this file
   re-points main.css's colour tokens to a LIGHT surface on <body>, then
   re-declares the DARK token set on the regions that stay dark. Component
   rules below only fix what tokens cannot reach (hardcoded colours, fonts,
   radii) and add the shared mobile call bar.
   No markup, copy, phone number, link or schema is changed by this file.
   ========================================================================== */

body.v3-site {
  --v3-black: #15120F;
  --v3-black-soft: #211C17;
  --v3-white: #FFFFFF;
  --v3-offwhite: #F3EFE9;
  --v3-ink: #1A1510;
  --v3-ink-soft: rgba(26, 21, 16, 0.7);
  --v3-cream: #F6F1E4;
  --v3-accent: #F5A800;
  --v3-accent-hover: #FFBE2E;
  --v3-on-accent: #1A1510;
  --v3-accent-ink: #8A5A00;      /* gold-toned text on white 5.9:1, on off-white 5.2:1 */
  --v3-accent-star: #B87A00;
  --v3-green: #2E7D4F;
  --v3-border: rgba(26, 21, 16, 0.12);
  --v3-border-dark: rgba(246, 241, 228, 0.14);
  --v3-radius: 18px;
  --v3-radius-sm: 12px;
  --v3-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* main.css tokens, light surface */
  color-scheme: light;
  --color-primary: var(--v3-ink);
  --color-cream: var(--v3-ink);
  --color-text-body: rgba(26, 21, 16, 0.76);
  --color-text-muted: rgba(26, 21, 16, 0.64);
  --color-dark-text: rgba(26, 21, 16, 0.8);
  --color-bg: var(--v3-white);
  --color-bg-subtle: var(--v3-offwhite);
  --color-bg-dark: var(--v3-black);
  --color-bg-card: var(--v3-white);
  --color-border: var(--v3-border);
  --color-border-accent: rgba(138, 90, 0, 0.35);
  --color-accent: var(--v3-accent);        /* fills */
  --color-accent-dark: #D4900A;
  --color-accent-deep: var(--v3-accent-ink); /* gold-toned TEXT on light */
  --color-accent-text: var(--v3-accent-ink); /* main.css gold text colours route through this */
  --color-orange: var(--v3-accent);
  --font-display: var(--v3-sans);
  --font-bold-display: var(--v3-sans);
  --font-city-name: var(--v3-sans);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 2px rgba(26, 21, 16, 0.05);
  --shadow-md: 0 8px 20px -10px rgba(26, 21, 16, 0.22);

  background: var(--v3-white);
  color: var(--v3-ink);
  font-family: var(--v3-sans);
}

/* ---- Regions that stay dark: restore main.css's dark token set ----------- */
body.v3-site .site-nav,
body.v3-site .nav-drawer,
body.v3-site .hero,
body.v3-site .breadcrumb,
body.v3-site .cta-band,
body.v3-site .site-footer,
body.v3-site .v3-sticky-bar,
body.v3-site .v3-dark {
  color-scheme: dark;
  --color-primary: #F6F1E4;
  --color-cream: #F6F1E4;
  --color-text-body: rgba(246, 241, 228, 0.78);
  --color-text-muted: rgba(246, 241, 228, 0.6);
  --color-dark-text: rgba(235, 233, 228, 0.85);
  --color-bg: var(--v3-black);
  --color-bg-subtle: var(--v3-black-soft);
  --color-bg-card: rgba(255, 255, 255, 0.05);
  --color-border: var(--v3-border-dark);
  --color-border-accent: rgba(255, 201, 74, 0.4);
  --color-accent-deep: #FFC94A;
  --color-accent-text: #F5A800;
  color: #F6F1E4;
}

/* ---- Type ----------------------------------------------------------------- */
body.v3-site h1, body.v3-site h2, body.v3-site h3, body.v3-site h4 {
  font-family: var(--v3-sans);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-transform: none;
}
body.v3-site h2 { text-wrap: balance; }
body.v3-site .hero h1 { color: var(--v3-white); }

/* two-line Bebas "kicker + giant word" section titles become one heading */
body.v3-site .svc-title { line-height: 1.1; padding-bottom: 0; margin-bottom: 1.5rem; }
body.v3-site .svc-title-line1,
body.v3-site .svc-title-city {
  display: inline;
  font-family: var(--v3-sans);
  font-weight: 800;
  text-transform: none;
  letter-spacing: -0.02em;
  font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.6rem) !important;
  color: var(--v3-ink);
}
body.v3-site .svc-title-line1::after { content: " "; }
body.v3-site .section-heading { font-family: var(--v3-sans); font-weight: 800; letter-spacing: -0.02em; text-transform: none; color: var(--color-primary); }
body.v3-site .section-sub { color: var(--color-text-body); }

/* ---- Nav / footer ---------------------------------------------------------- */
body.v3-site .site-nav { background: var(--v3-black); border-bottom: 1px solid var(--v3-border-dark); }
body.v3-site .nav-wordmark-top, body.v3-site .nav-wordmark-bottom { font-family: var(--v3-sans); font-weight: 800; }
body.v3-site .nav-wordmark-bottom { color: var(--v3-accent); }
body.v3-site .nav-links a:hover { color: var(--v3-accent); }
body.v3-site .nav-drawer { background: var(--v3-black); }
body.v3-site .nav-drawer .drawer-cta { background: var(--v3-accent); color: var(--v3-on-accent); border-radius: var(--v3-radius-sm); font-weight: 800; }
body.v3-site .site-footer { background: var(--v3-black); color: rgba(246, 241, 228, 0.78); }
body.v3-site .site-footer a { color: rgba(246, 241, 228, 0.78); }
body.v3-site .site-footer a:hover { color: var(--v3-accent); }
body.v3-site .footer-heading { color: var(--v3-white); font-family: var(--v3-sans); font-weight: 800; }
body.v3-site .footer-bottom, body.v3-site .footer-ads-fineprint { border-color: var(--v3-border-dark); }
body.v3-site .breadcrumb { background: var(--v3-black); }

/* ---- Buttons --------------------------------------------------------------- */
body.v3-site .btn { font-family: var(--v3-sans); font-weight: 700; border-radius: var(--v3-radius-sm); text-transform: none; letter-spacing: 0; transition: transform 0.12s ease, background-color 0.18s ease, border-color 0.18s ease; -webkit-tap-highlight-color: transparent; }
body.v3-site .btn:active { transform: scale(0.97); }
body.v3-site .btn-primary { background: var(--v3-accent); color: var(--v3-on-accent) !important; border-color: var(--v3-accent); }
body.v3-site .btn-primary:hover { background: var(--v3-accent-hover); border-color: var(--v3-accent-hover); }
body.v3-site .btn-outline { background: transparent; border: 1.5px solid currentColor; color: var(--color-primary); }
body.v3-site .btn-outline:hover { background: rgba(245, 168, 0, 0.12); border-color: var(--v3-accent); color: var(--color-primary); }

/* ---- Hero (dark, gold glow) ------------------------------------------------ */
body.v3-site .hero {
  background: var(--v3-black);
  background-image: radial-gradient(60% 70% at 85% 10%, rgba(245, 168, 0, 0.17), rgba(245, 168, 0, 0) 70%);
}
body.v3-site .hero h1 { font-size: clamp(2.1rem, 1.5rem + 3vw, 3.5rem); }

/* ---- Section surfaces ------------------------------------------------------ */
body.v3-site main { background: var(--v3-white); }
body.v3-site .bg-white { background: var(--v3-white); }
/* main.css's .section-paper swaps fg/bg tokens; on a light theme that swap
   would give white text on cream, so pin it explicitly */
body.v3-site .section-paper { background: var(--v3-offwhite); color: var(--v3-ink); }
body.v3-site .section-paper .svc-title-line1,
body.v3-site .section-paper .svc-title-city,
body.v3-site .section-paper .faq-q { color: var(--v3-ink); }
body.v3-site .section-paper .section-sub,
body.v3-site .section-paper .faq-a { color: var(--v3-ink-soft); }
body.v3-site .section-paper .faq-pricing-link a { color: var(--v3-accent-ink); }

/* ---- Stat band (gold, dark text) ------------------------------------------- */
body.v3-site .stat-band { background: var(--v3-accent); }
body.v3-site .stat-band-num { font-family: var(--v3-sans); font-weight: 800; }

/* ---- Closing band ---------------------------------------------------------- */
body.v3-site .cta-band { background: var(--v3-black); background-image: radial-gradient(60% 120% at 50% 0%, rgba(245, 168, 0, 0.14), rgba(245, 168, 0, 0) 70%); color: var(--v3-white); }
body.v3-site .cta-band h2 { color: var(--v3-white); }
body.v3-site .cta-band p { color: rgba(246, 241, 228, 0.78); }

/* ---- FAQ ------------------------------------------------------------------- */
body.v3-site .faq-q { font-family: var(--v3-sans); font-weight: 700; }

/* ---- Links on light surfaces ---------------------------------------------- */
body.v3-site .star-glyph { color: var(--v3-accent-star); }
body.v3-site .hero .star-glyph,
body.v3-site .cta-band .star-glyph { color: var(--v3-accent); }

/* ---- Desktop floating call button ----------------------------------------- */
body.v3-site .call-fab { display: none; border-color: var(--v3-accent); }
@media (min-width: 900px) { body.v3-site .call-fab { display: flex; } }

/* ---- Sticky mobile call bar (same component as the homepage) -------------- */
body.v3-site .v3-sticky-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: flex; gap: 0.55rem;
  padding: 0.6rem 0.75rem calc(0.6rem + env(safe-area-inset-bottom, 0px));
  background: rgba(21, 18, 15, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--v3-border-dark);
  box-shadow: 0 -10px 28px -12px rgba(0, 0, 0, 0.55);
}
body.v3-site .v3-sticky-bar a {
  display: flex; align-items: center; justify-content: center; gap: 0.4rem;
  min-height: 56px; border-radius: 14px; font-weight: 700; font-size: 0.92rem; text-decoration: none;
  transition: transform 0.12s ease; -webkit-tap-highlight-color: transparent;
}
body.v3-site .v3-sticky-bar a:active { transform: scale(0.97); }
body.v3-site .v3-sticky-bar .v3-sticky-call {
  flex: 1 1 auto; justify-content: flex-start; gap: 0.7rem; padding: 0 0.9rem 0 0.55rem;
  background: var(--v3-accent); color: var(--v3-on-accent);
  box-shadow: 0 6px 18px -6px rgba(245, 168, 0, 0.55);
}
body.v3-site .v3-sticky-icon {
  position: relative; flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--v3-on-accent); color: var(--v3-accent);
}
body.v3-site .v3-sticky-icon::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--v3-on-accent); opacity: 0; }
body.v3-site .v3-sticky-label { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
body.v3-site .v3-sticky-kicker { display: flex; align-items: center; gap: 0.35rem; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.01em; opacity: 0.85; }
body.v3-site .v3-sticky-kicker .v3-dot { width: 7px; height: 7px; border-radius: 50%; background: #1F7A44; flex: 0 0 auto; }
body.v3-site .v3-sticky-num { font-size: 1.06rem; font-weight: 800; white-space: nowrap; }
body.v3-site .v3-sticky-bar .v3-sticky-text { flex: 0 0 auto; padding: 0 1rem; background: transparent; border: 1.5px solid rgba(246, 241, 228, 0.4); color: var(--v3-white); }
body.v3-site .v3-sticky-text svg { width: 18px; height: 18px; }
@media (max-width: 359px) {
  body.v3-site .v3-sticky-kicker { display: none; }
  body.v3-site .v3-sticky-num { font-size: 0.98rem; }
}
@media (min-width: 900px) { body.v3-site .v3-sticky-bar { display: none; } }
@media (max-width: 899px) {
  body.v3-site .site-footer { padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
}

/* ---- Browser surfaces ------------------------------------------------------ */
body.v3-site ::selection { background: var(--v3-accent); color: var(--v3-on-accent); }
body.v3-site a:focus-visible,
body.v3-site button:focus-visible,
body.v3-site summary:focus-visible,
body.v3-site input:focus-visible,
body.v3-site select:focus-visible,
body.v3-site textarea:focus-visible { outline: 2px solid var(--v3-accent-ink); outline-offset: 2px; }
body.v3-site .site-nav :focus-visible,
body.v3-site .nav-drawer :focus-visible,
body.v3-site .hero :focus-visible,
body.v3-site .cta-band :focus-visible,
body.v3-site .site-footer :focus-visible,
body.v3-site .v3-sticky-bar :focus-visible { outline-color: var(--v3-accent-hover); }

@media (prefers-reduced-motion: no-preference) {
  body.v3-site .v3-sticky-bar { animation: v3-bar-in 0.45s cubic-bezier(0.22, 1, 0.36, 1) 0.25s both; }
  body.v3-site .v3-sticky-icon::after { animation: v3-ring 2.4s ease-out 1.2s infinite; }
}
@keyframes v3-bar-in { from { transform: translateY(100%); } to { transform: translateY(0); } }
@keyframes v3-ring { 0% { transform: scale(1); opacity: 0.55; } 70%, 100% { transform: scale(1.55); opacity: 0; } }

/* ---- Components whose colours main.css hardcodes --------------------------- */
body.v3-site .service-card-rich { background: var(--v3-white); border: 1px solid var(--v3-border); border-radius: var(--v3-radius); overflow: hidden; box-shadow: var(--shadow-sm); }
body.v3-site .breadcrumb-sep, body.v3-site .breadcrumb-item { color: rgba(246, 241, 228, 0.62); }
body.v3-site .hiw-arrow { color: rgba(26, 21, 16, 0.62); }

/* make/service "doc" heroes: main.css zeroes the container's side padding here */
body.v3-site .doc-hero-content { padding-left: var(--container-padding); padding-right: var(--container-padding); }
/* one-colour headlines, as on the homepage */
body.v3-site .hero h1, body.v3-site .hero h1 * { color: var(--v3-white); }
body.v3-site .why-choose-brand { color: inherit; }
body.v3-site .svc-title-city { color: var(--v3-ink); }
body.v3-site .hero .svc-title-line1, body.v3-site .hero .svc-title-city,
body.v3-site .cta-band .svc-title-line1, body.v3-site .cta-band .svc-title-city { color: var(--v3-white); }
/* condensed display numerals/labels were tuned for Oswald/Bebas; Inter needs normal tracking */
body.v3-site [class*="stat-num"], body.v3-site [class*="-title"], body.v3-site [class*="-heading"] { letter-spacing: -0.01em; }

@media (max-width: 599px) { body.v3-site .cta-band .btn { display: flex; justify-content: center; margin: 0.6rem 0 0; } }
/* split "doc" hero (make pages): its grid spans the full viewport, so line
   the text and the photo up with the site container instead of the screen edge */
@media (min-width: 769px) {
  body.v3-site .doc-hero-split .doc-hero-content { max-width: none; padding-left: max(var(--container-padding), calc((100vw - var(--container-max)) / 2 + var(--container-padding))); padding-right: 0; }
  body.v3-site .doc-hero-split .doc-hero-bg { margin-right: max(var(--container-padding), calc((100vw - var(--container-max)) / 2 + var(--container-padding))); }
}
/* a few service heroes have per-photo mobile rules that zero the text
   padding with higher specificity; keep the gutter on every doc hero */
@media (max-width: 768px) {
  body.v3-site .doc-hero .doc-hero-content { padding-left: var(--container-padding) !important; padding-right: var(--container-padding) !important; }
}
/* city hero: the big city name was sized for a condensed face; in Inter a
   long name ("Hillsborough") ran past the screen on phones */
body.v3-site .city-hero-left, body.v3-site .city-hero-grid > * { min-width: 0; }
body.v3-site .city-hero-heading { overflow-wrap: break-word; }
@media (max-width: 599px) {
  body.v3-site .city-hero-heading .city-name-gold { font-size: clamp(2.2rem, 11.5vw, 3.4rem); line-height: 1.05; }
}

/* ---- 2026-11-20 audit follow-ups ------------------------------------------ */
/* phones: headline and call button before the photo (the photo-first order
   pushed the hero call button below the first screen on city pages) */
@media (max-width: 768px) {
  body.v3-site .city-hero-right { order: 2; }
}
/* 48px tap target for the menu button */
body.v3-site .nav-hamburger { min-width: 48px; min-height: 48px; align-items: center; justify-content: center; }
/* the page no longer loads Oswald/Bebas; keep the footer number on the page face */
body.v3-site .footer-phone { font-family: var(--v3-sans); font-weight: 800; }
/* link block from a city hub to that city's own service pages */
body.v3-site .v3-city-services { margin-top: 2.5rem; text-align: center; }
body.v3-site .v3-city-services .section-heading { font-size: 1.25rem; margin-bottom: 1rem; }
