/* City Locksmiths shared styles (hand written, not built by Tailwind) */

/* Header logo. Markup lives between LOGO:START and LOGO:END on every page.
   To swap in an image logo later, edit city-locksmiths-notes/partials/logo.html
   and run city-locksmiths-notes/tailwind/apply_logo.py */
.cl-logo { display: inline-flex; align-items: center; gap: 0.55rem; color: #fff; text-decoration: none; }
.cl-logo__mark { display: grid; place-items: center; width: 2.4rem; height: 2.4rem; color: #c06cf0; flex-shrink: 0; }
.cl-logo__key { width: 100%; height: 100%; transform: rotate(-12deg); stroke-width: 2.25; }
.cl-logo__type { display: inline-flex; flex-direction: column; align-items: flex-end; line-height: 1; }
.cl-logo .cl-logo__city { font-family: 'Unbounded', 'Manrope', sans-serif; font-weight: 800; font-size: 1.6rem; letter-spacing: 0.05em; transform: skewX(-8deg); margin-right: 0.1rem; }
.cl-logo .cl-logo__sub { font-family: 'Comfortaa', 'Manrope', sans-serif; font-weight: 700; font-size: 0.78rem; letter-spacing: 0.02em; color: #d8b4fe; margin-top: 0.2rem; }
.cl-logo:hover .cl-logo__mark { color: #d8b4fe; }
@media (min-width: 640px) {
    .cl-logo__mark { width: 2.75rem; height: 2.75rem; }
    .cl-logo .cl-logo__city { font-size: 1.9rem; }
    .cl-logo .cl-logo__sub { font-size: 0.9rem; }
}

/* Mobile call bar */
.cl-callbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
    display: grid; grid-template-columns: 1.55fr 1fr; gap: 0.5rem;
    padding: 0.5rem 0.75rem calc(0.5rem + env(safe-area-inset-bottom));
    background: rgba(7, 9, 17, 0.95); border-top: 1px solid rgba(255, 255, 255, 0.08);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.cl-callbar a {
    display: flex; align-items: center; justify-content: center; gap: 0.5rem;
    min-height: 3rem; border-radius: 0.75rem; font-weight: 700; font-size: 0.95rem; text-decoration: none;
    transition: background-color 0.2s ease, transform 0.1s ease;
}
.cl-callbar a:active { transform: scale(0.98); }
.cl-callbar__call { background: #9900cc; color: #fff; }
.cl-callbar__call:hover { background: #8224e3; }
.cl-callbar__wa { background: #25d366; color: #04130a; }
.cl-ico { width: 1.15rem; height: 1.15rem; flex-shrink: 0; }
@media (max-width: 1023px) {
    body { padding-bottom: calc(4rem + env(safe-area-inset-bottom)); }
}
@media (min-width: 1024px) {
    .cl-callbar { display: none; }
}

/* Type and interaction details */
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
a, button, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid #d8b4fe; outline-offset: 3px; border-radius: 4px; }
a[href^="tel:"]:active, button:active { transform: scale(0.98); }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto !important; }
    *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
    .reveal { opacity: 1 !important; transform: none !important; }
}
