/* Peninsula Locksmith. Bold red / blue / purple on near-black, pill buttons, heavy type. */
:root {
  --red: #e5000f;
  --red-dark: #b8000c;
  --blue: #0077cc;
  --purple: #4200b3;
  --ink: #171717;
  --ink-2: #2a2a2a;
  --text: #1f1f1f;
  --muted: #5c5c66;
  --line: #e6e6ea;
  --alt: #f5f5f7;
  --white: #ffffff;
  --radius: 18px;
  --wrap: 1180px;
  --font: 'Figtree', 'Avenir Next', Avenir, system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 18px; line-height: 1.6; color: var(--text); background: var(--white); }
img { max-width: 100%; height: auto; }
a { color: var(--purple); text-underline-offset: 3px; }
h1, h2, h3, h4 { line-height: 1.12; font-weight: 900; letter-spacing: -0.02em; color: var(--ink); margin: 0 0 0.5em; }
h1 { font-size: clamp(2.2rem, 5vw, 4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: 1.3rem; font-weight: 800; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 820px; }
.muted { color: var(--muted); }
.icon { width: 1.1em; height: 1.1em; flex: none; vertical-align: -0.15em; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.8rem; font-weight: 800; color: var(--red); margin-bottom: 0.75em; }

/* Buttons */
.btn { white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: 0.5em; padding: 0.8em 1.5em; border-radius: 9999px; font-weight: 800; font-size: 1rem; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .15s, background .15s; font-family: inherit; }
.btn:hover { transform: translateY(-1px); }
.btn-red { background: var(--red); color: var(--white); border-color: var(--red); }
.btn-red:hover { background: var(--red-dark); border-color: var(--red-dark); }
.btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,.7); }
.btn-outline:hover { background: rgba(255,255,255,.1); }
.btn-white { background: var(--white); color: var(--purple); }
.btn-sm { padding: 0.55em 1.1em; font-size: 0.95rem; }
.btn-lg { padding: 0.95em 1.8em; font-size: 1.1rem; }
.btn-block { width: 100%; }

/* Top bar and header */
.topbar { background: var(--ink); color: #d6d6d6; font-size: 0.85rem; }
.topbar .wrap { display: flex; justify-content: space-between; gap: 1em; padding-top: 8px; padding-bottom: 8px; flex-wrap: wrap; }
.topbar a { color: var(--white); font-weight: 800; text-decoration: none; }
.site-header { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.logo-mark { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--red); color: var(--white); }
.logo-icon { width: 24px; height: 24px; }
.logo-text { font-size: 1.15rem; font-weight: 500; letter-spacing: -0.01em; line-height: 1; }
.logo-text strong { font-weight: 900; margin-left: 4px; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.nav > ul > li > a { white-space: nowrap; display: inline-flex; align-items: center; gap: 4px; padding: 10px 12px; font-weight: 700; color: var(--ink); text-decoration: none; border-radius: 9999px; }
.nav > ul > li > a:hover, .nav a[aria-current] { background: var(--alt); }
.has-menu { position: relative; }
.chev { width: 16px; height: 16px; }
.submenu { display: none !important; position: absolute; top: 100%; left: 0; min-width: 240px; background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 8px !important; box-shadow: 0 18px 40px rgba(0,0,0,.12); flex-direction: column; }
.submenu a { display: block; padding: 8px 12px; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 600; }
.submenu a:hover { background: var(--alt); }
.has-menu:hover .submenu, .has-menu:focus-within .submenu { display: flex !important; }
.header-cta { display: flex; align-items: center; gap: 10px; }
.menu-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--ink); }
.menu-toggle .icon { width: 28px; height: 28px; }

/* Hero */
.hero { background: radial-gradient(circle at 85% 20%, rgba(66,0,179,.55), transparent 45%), radial-gradient(circle at 100% 100%, rgba(229,0,15,.45), transparent 40%), var(--ink); color: var(--white); }
.hero-inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; padding-top: 80px; padding-bottom: 80px; }
.hero h1 { color: var(--white); }
.hero .lede { font-size: 1.25rem; color: #e4e4e8; max-width: 640px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin: 28px 0 18px; }
.hero-actions.center { justify-content: center; }
.hero-phone { font-size: 1.5rem; font-weight: 900; margin: 0; }
.hero-phone a { color: var(--white); text-decoration: none; }
.hero-art { display: grid; place-items: center; }
.hero-icon { width: min(300px, 70%); height: auto; color: var(--white); opacity: .9; stroke-width: 1.2; padding: 40px; border-radius: 50%; background: linear-gradient(135deg, var(--purple), var(--red)); box-shadow: 0 30px 80px rgba(229,0,15,.35); }
.trustbar { background: var(--purple); color: var(--white); font-weight: 700; font-size: 0.95rem; }
.trustbar .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding-top: 14px; padding-bottom: 14px; }
.trustbar span { display: inline-flex; align-items: center; gap: 6px; }

.page-head { background: var(--ink); color: var(--white); padding: 64px 0 56px; background-image: radial-gradient(circle at 90% 10%, rgba(66,0,179,.5), transparent 45%); }
.page-head h1 { color: var(--white); }
.page-head .lede { color: #e4e4e8; font-size: 1.2rem; max-width: 760px; margin: 0; }
.byline { margin: 18px 0 0; font-size: 0.9rem; color: #b9b9c2; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.2em 0 1.6em; font-size: 0.98rem; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { background: var(--alt); font-weight: 800; }
.prose ol { padding-left: 1.3em; }

/* Sections */
.section { padding: 72px 0; }
.section-alt { background: var(--alt); }
.prose h2 { margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.4em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 0.4em; }
.prose > p:first-child { font-size: 1.15rem; }
.kind-home .prose > h2 { text-align: left; }
.nearby { margin-top: 48px; }

/* Cards */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; margin: 28px 0 40px; }
.card { display: flex; flex-direction: column; gap: 8px; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--text); background: var(--white); transition: border-color .15s, box-shadow .15s, transform .15s; }
.card:hover { border-color: var(--red); box-shadow: 0 14px 30px rgba(0,0,0,.08); transform: translateY(-2px); }
.card strong { font-size: 1.2rem; font-weight: 900; color: var(--ink); }
.card-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: linear-gradient(135deg, var(--purple), var(--red)); color: var(--white); }
.card-icon .icon { width: 26px; height: 26px; }
.card-text { color: var(--muted); font-size: 0.98rem; }
.card-link { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-weight: 800; color: var(--red); }

.pill-list { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 32px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 10px 16px; border-radius: 9999px; background: var(--alt); color: var(--ink); text-decoration: none; font-weight: 700; border: 1px solid var(--line); }
.pill:hover { border-color: var(--blue); color: var(--blue); }

.call-band { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin: 48px 0; padding: 36px 40px; border-radius: 24px; background: linear-gradient(120deg, var(--red), var(--purple)); color: var(--white); }
.call-band h2 { color: var(--white); margin: 0 0 6px; }
.call-band p { margin: 0; color: #f3eefe; }

/* FAQ */
.faq { margin-top: 24px; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: 16px; margin-bottom: 12px; }
.faq summary { list-style: none; cursor: pointer; padding: 20px 24px; font-weight: 800; font-size: 1.08rem; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq details[open] summary .chev { transform: rotate(180deg); }
.faq-a { padding: 0 24px 8px; color: var(--muted); }

/* Closing */
.closing { background: var(--ink); color: var(--white); text-align: center; padding: 80px 0; background-image: radial-gradient(circle at 50% 120%, rgba(229,0,15,.5), transparent 55%); }
.closing h2 { color: var(--white); }
.closing p { color: #d6d6d6; font-size: 1.15rem; }

/* Blog */
.post-list { display: grid; gap: 18px; margin-top: 24px; }
.post-card { display: flex; flex-direction: column; gap: 6px; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--text); }
.post-card strong { font-size: 1.3rem; font-weight: 900; color: var(--ink); }
.post-card:hover { border-color: var(--red); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.form-card { display: grid; gap: 14px; padding: 32px; border-radius: 24px; background: var(--alt); border: 1px solid var(--line); }
.form-card h2 { margin: 0; }
.form-card label { display: grid; gap: 6px; font-weight: 700; font-size: 0.95rem; }
.form-card input, .form-card select, .form-card textarea { font: inherit; font-weight: 400; padding: 12px 18px; border-radius: 9999px; border: 1px solid #cfcfd6; background: var(--white); color: var(--text); }
.form-card textarea { border-radius: 18px; }
.form-card input:focus, .form-card select:focus, .form-card textarea:focus { outline: 3px solid rgba(0,119,204,.35); border-color: var(--blue); }
.hp { position: absolute; left: -9999px; }
.fineprint { font-size: 0.85rem; color: var(--muted); margin: 0; }

/* Footer */
.site-footer { background: #0e0e0e; color: #bdbdc4; padding: 64px 0 100px; font-size: 0.95rem; }
.site-footer a { color: #e8e8ec; text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.site-footer .logo { color: var(--white); margin-bottom: 16px; }
.site-footer h4 { color: var(--white); font-size: 1rem; margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.disclosure { margin-top: 40px; padding-top: 24px; border-top: 1px solid #2c2c2c; font-size: 0.85rem; color: #9a9aa3; }
.copyright { font-size: 0.85rem; color: #8a8a92; margin: 0; }
.mobile-call { display: none; }

/* Responsive */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; padding-top: 56px; padding-bottom: 56px; }
  .hero-art { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 1100px) {
  .menu-toggle { display: block; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--line); display: none; box-shadow: 0 20px 30px rgba(0,0,0,.08); }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; padding: 12px 20px 20px; }
  .submenu { position: static; display: flex !important; box-shadow: none; border: 0; padding: 0 0 0 12px !important; min-width: 0; }
  .site-header { position: sticky; }
}
@media (max-width: 640px) {
  body { font-size: 17px; }
  .topbar .wrap > span:first-child { display: none; }
  .header-cta .btn { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .call-band { padding: 28px 24px; }
  .section { padding: 52px 0; }
  .trustbar .wrap { flex-direction: column; }
  .mobile-call { display: block; position: fixed; left: 0; right: 0; bottom: 0; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.96); border-top: 1px solid var(--line); z-index: 60; }
  .hero-actions .btn { flex: 1 1 100%; }
}
