/* =========================================================
   LucKey Locksmith — Core Stylesheet
   Design tokens: charcoal/navy + brass, Oswald + Inter
   ========================================================= */

:root{
  --ink:        #191C20;
  --navy:       #16233D;
  --navy-2:     #1E304F;
  --navy-3:     #223655;
  --brass:      #C89A4B;
  --brass-deep: #A87830;
  --brass-pale: #E7D3A6;
  --paper:      #F2EFE6;
  --paper-2:    #EAE5D6;
  --white:      #FFFFFF;
  --ink-soft:   #4B5560;
  --ink-faint:  #6E7680;
  --line:       rgba(22,35,61,0.14);
  --line-dark:  rgba(242,239,230,0.16);
  --danger:     #9A3324;

  --font-head: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --container: 1180px;
  --radius: 3px;
  --shadow: 0 10px 30px rgba(15,20,30,0.16);
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *, *::before, *::after{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body{
  margin:0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img{ max-width:100%; display:block; }
h1,h2,h3,h4{ font-family: var(--font-head); font-weight:600; line-height:1.12; margin:0 0 .5em; color: var(--navy); letter-spacing:.2px; }
h1{ font-size: clamp(2.1rem, 4.4vw, 3.4rem); }
h2{ font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3{ font-size: 1.28rem; }
p{ margin:0 0 1em; color: var(--ink-soft); }
a{ color: var(--navy); text-decoration: none; }
ul,ol{ margin:0 0 1em; padding-left:1.2em; color:var(--ink-soft); }
li{ margin-bottom:.35em; }

.container{ max-width: var(--container); margin:0 auto; padding:0 24px; }
section{ padding: 68px 0; }
.section-tight{ padding: 44px 0; }

/* focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible{
  outline: 3px solid var(--brass);
  outline-offset: 2px;
}

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:.5em;
  font-family: var(--font-head); font-weight:600; letter-spacing:.4px;
  font-size:1rem; padding: .85em 1.6em; border-radius: var(--radius);
  border: 2px solid transparent; cursor:pointer; text-align:center;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn-primary{ background: var(--brass); color: var(--navy); border-color: var(--brass); }
.btn-primary:hover{ background: var(--brass-deep); border-color: var(--brass-deep); color: var(--white); }
.btn-outline{ background: transparent; color: var(--white); border-color: rgba(255,255,255,.55); }
.btn-outline:hover{ background: rgba(255,255,255,.12); border-color: var(--white); }
.btn-dark{ background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn-dark:hover{ background: var(--navy-2); }
.btn-block{ width:100%; }

/* ---------- Header ---------- */
.site-header{
  position: sticky; top:0; z-index: 500;
  background: var(--navy);
  border-bottom: 1px solid var(--line-dark);
}
.header-inner{
  display:flex; align-items:center; justify-content:space-between;
  padding: 12px 24px; max-width: var(--container); margin:0 auto; gap: 20px;
}
.brand{ display:flex; align-items:center; gap:.6em; flex-shrink:0; }
.brand img{ height: 40px; width:auto; }
.brand-text{ display:none; }

.primary-nav{ display:none; }
.primary-nav ul{ display:flex; align-items:center; gap: 26px; list-style:none; margin:0; padding:0; }
.primary-nav > ul > li{ position:relative; margin:0; }
.primary-nav a{
  color: var(--paper); font-family: var(--font-head); font-weight:500;
  font-size: .98rem; letter-spacing:.3px; padding: 10px 2px; display:inline-block;
}
.primary-nav > ul > li > a{ border-bottom: 2px solid transparent; }
.primary-nav > ul > li:hover > a, .primary-nav > ul > li > a:focus-visible{ border-bottom-color: var(--brass); }

.has-mega{ position: relative; }
.mega{
  display:none; position:absolute; top:100%; left:0; background: var(--navy-2);
  border:1px solid var(--line-dark); box-shadow: var(--shadow); padding: 18px; min-width: 620px;
  grid-template-columns: repeat(3, 1fr); gap: 6px 26px;
}
.has-mega:hover .mega, .has-mega:focus-within .mega{ display:grid; }
.mega a{ font-family: var(--font-body); font-weight:400; font-size:.92rem; padding:6px 4px; border-radius:2px; }
.mega a:hover{ background: rgba(200,154,75,.14); }
.mega-col-title{ font-family: var(--font-head); color: var(--brass); font-size:.82rem; letter-spacing:1px; margin: 4px 4px 2px; text-transform: uppercase; }
.mega-viewall{ grid-column: 1 / -1; border-top:1px solid var(--line-dark); margin-top:8px; padding-top:10px; font-weight:600; color: var(--brass); }

.header-actions{ display:flex; align-items:center; gap:14px; }
.phone-link{
  color: var(--white); font-family: var(--font-head); font-weight:600; font-size:1.05rem;
  display:flex; align-items:center; gap:.4em; white-space:nowrap;
}
.phone-link svg{ width:18px; height:18px; fill: var(--brass); }
.header-cta{ display:none; }

.menu-toggle{
  display:flex; align-items:center; justify-content:center;
  width:44px; height:44px; background:transparent; border:1px solid var(--line-dark); border-radius:3px; color:var(--white);
  cursor:pointer;
}
.menu-toggle svg{ width:22px; height:22px; fill:none; stroke: currentColor; stroke-width:2; }

/* Mobile nav drawer */
.mobile-nav{
  position: fixed; inset:0; background: var(--navy); z-index: 900;
  transform: translateX(100%); transition: transform .25s ease;
  overflow-y:auto; padding: 18px;
}
.mobile-nav.is-open{ transform: translateX(0); }
.mobile-nav-top{ display:flex; justify-content:space-between; align-items:center; margin-bottom: 18px; }
.mobile-nav-top img{ height:34px; }
.mobile-close{ width:44px; height:44px; background:transparent; border:1px solid var(--line-dark); border-radius:3px; color:var(--white); display:flex; align-items:center; justify-content:center; cursor:pointer; }
.mobile-close svg{ width:20px; height:20px; stroke:currentColor; fill:none; stroke-width:2; }
.mobile-nav ul{ list-style:none; margin:0; padding:0; }
.mobile-nav > ul > li{ border-bottom: 1px solid var(--line-dark); }
.mobile-nav a{ color: var(--paper); font-family: var(--font-head); font-size:1.1rem; padding: 14px 4px; display:block; }
.mobile-group-toggle{ width:100%; display:flex; align-items:center; justify-content:space-between; background:none; border:none; text-align:left; cursor:pointer; padding:14px 4px; color:var(--paper); font-family: var(--font-head); font-size:1.1rem; }
.mobile-group-toggle svg{ width:16px; height:16px; stroke:var(--brass); fill:none; stroke-width:2; transition: transform .2s ease; }
.mobile-group-toggle[aria-expanded="true"] svg{ transform: rotate(180deg); }
.mobile-submenu{ display:none; list-style:none; margin:0 0 8px; padding-left:14px; border-left:2px solid var(--brass); }
.mobile-submenu.is-open{ display:block; }
.mobile-submenu a{ font-family: var(--font-body); font-size:.98rem; padding: 10px 4px; }
.mobile-nav-cta{ margin-top:20px; display:flex; flex-direction:column; gap:12px; }

body.nav-open{ overflow:hidden; }

/* sticky mobile bottom CTA */
.mobile-sticky-cta{
  position: fixed; left:0; right:0; bottom:0; z-index:400;
  display:flex; background: var(--navy); border-top:1px solid var(--line-dark);
  box-shadow: 0 -6px 20px rgba(0,0,0,.25);
}
.mobile-sticky-cta a{
  flex:1; text-align:center; padding: 13px 8px; font-family: var(--font-head);
  font-weight:600; letter-spacing:.3px; font-size:.95rem;
}
.mobile-sticky-cta a.call{ background: var(--brass); color: var(--navy); }
.mobile-sticky-cta a.req{ color: var(--white); border-left:1px solid var(--line-dark); }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs{ font-size:.85rem; padding: 14px 0; color: var(--ink-faint); }
.breadcrumbs a{ color: var(--ink-faint); }
.breadcrumbs a:hover{ color: var(--navy); }
.breadcrumbs .sep{ margin:0 .5em; color: var(--brass-deep); }

/* ---------- Hero ---------- */
.hero{
  position: relative; background: var(--navy); color: var(--white); overflow:hidden;
}
.hero-grid{ display:grid; grid-template-columns:1fr; }
.hero-media{ position:relative; min-height: 300px; }
.hero-media video, .hero-media img{ width:100%; height:100%; object-fit:cover; position:absolute; inset:0; }
.hero-media::after{ content:""; position:absolute; inset:0; background: linear-gradient(180deg, rgba(22,35,61,.15), rgba(22,35,61,.85)); }
.hero-copy{ position:relative; padding: 54px 24px 46px; max-width: var(--container); margin:0 auto; width:100%; }
.hero-eyebrow{ color: var(--brass); font-family: var(--font-head); letter-spacing:2px; font-size:.85rem; margin-bottom:10px; }
.hero h1{ color:var(--white); max-width:15ch; }
.hero-sub{ color: var(--paper); max-width:52ch; font-size:1.08rem; }
.hero-actions{ display:flex; flex-wrap:wrap; gap:14px; margin-top:22px; }
.hero-badges{ display:flex; flex-wrap:wrap; gap:10px 22px; margin-top:28px; padding-top:22px; border-top:1px solid var(--line-dark); }
.hero-badge{ font-family: var(--font-head); font-size:.86rem; letter-spacing:.4px; color: var(--paper); display:flex; align-items:center; gap:.5em; }
.hero-badge svg{ width:16px; height:16px; fill: var(--brass); }

/* ---------- Page header (for interior pages) ---------- */
.page-header{ background: var(--navy); color: var(--white); padding: 40px 0 34px; }
.page-header h1{ color: var(--white); margin-bottom:8px; }
.page-header p{ color: var(--paper); max-width: 62ch; margin:0; }
.page-header .breadcrumbs{ color: rgba(242,239,230,.7); padding-top:0; padding-bottom:14px; }
.page-header .breadcrumbs a{ color: rgba(242,239,230,.7); }

/* ---------- Section headings ---------- */
.section-head{ max-width: 62ch; margin-bottom: 34px; }
.section-head .kicker{ font-family: var(--font-head); color: var(--brass-deep); letter-spacing:1.6px; font-size:.82rem; margin-bottom:8px; text-transform:uppercase; }
.section-alt{ background: var(--paper-2); }
.section-dark{ background: var(--navy); color: var(--paper); }
.section-dark h2, .section-dark h3{ color: var(--white); }
.section-dark p{ color: rgba(242,239,230,.82); }

/* ---------- Cards / grids ---------- */
.grid{ display:grid; gap: 22px; }
.grid-2{ grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); }
.grid-3{ grid-template-columns: repeat(auto-fit, minmax(260px,1fr)); }
.grid-4{ grid-template-columns: repeat(auto-fit, minmax(230px,1fr)); }

.spec-card{
  background: var(--white); border:1px solid var(--line); border-top:3px solid var(--brass);
  padding: 26px 24px; display:flex; flex-direction:column; gap:10px;
}
.spec-card .num{ font-family: var(--font-head); color: var(--brass-deep); font-size:.8rem; letter-spacing:1px; }
.spec-card h3{ margin-bottom:4px; }
.spec-card a.card-link{ margin-top:auto; font-family: var(--font-head); font-weight:600; color: var(--navy); font-size:.92rem; }
.spec-card a.card-link::after{ content:" ›"; }

.media-card{ background: var(--white); border:1px solid var(--line); overflow:hidden; display:flex; flex-direction:column; }
.media-card .thumb{ aspect-ratio: 4/3; overflow:hidden; }
.media-card .thumb img{ width:100%; height:100%; object-fit:cover; transition: transform .3s ease; }
.media-card:hover .thumb img{ transform: scale(1.04); }
.media-card .body{ padding: 20px 22px 24px; display:flex; flex-direction:column; gap:8px; flex:1; }
.media-card .tag{ font-family: var(--font-head); font-size:.76rem; letter-spacing:1.2px; color: var(--brass-deep); text-transform:uppercase; }
.media-card a.card-link{ margin-top:auto; font-family: var(--font-head); font-weight:600; color: var(--navy); font-size:.92rem; }
.media-card a.card-link::after{ content:" ›"; }

/* two-col feature */
.feature{ display:grid; grid-template-columns:1fr; gap: 34px; align-items:center; }
.feature img{ border:1px solid var(--line); }
.feature-reverse .feature-media{ order:2; }
.feature ul.check{ list-style:none; padding:0; margin:0 0 1.2em; }
.feature ul.check li{ position:relative; padding-left:1.7em; margin-bottom:.6em; color: var(--ink-soft); }
.feature ul.check li::before{ content:"✓"; position:absolute; left:0; color: var(--brass-deep); font-weight:700; }

/* ---------- Trust strip ---------- */
.trust-strip{ background: var(--navy); color:var(--paper); padding: 20px 0; }
.trust-strip .container{ display:flex; flex-wrap:wrap; gap: 18px 34px; justify-content:center; align-items:center; }
.trust-strip .item{ font-family: var(--font-head); font-size:.92rem; letter-spacing:.3px; display:flex; align-items:center; gap:.5em; }
.trust-strip svg{ width:18px; height:18px; fill: var(--brass); }

/* ---------- FAQ ---------- */
.faq-item{ border-bottom:1px solid var(--line); }
.faq-q{
  width:100%; text-align:left; background:none; border:none; cursor:pointer;
  display:flex; justify-content:space-between; align-items:center; gap: 16px;
  padding: 18px 2px; font-family: var(--font-head); font-size:1.05rem; color: var(--navy);
}
.faq-q svg{ width:18px; height:18px; flex-shrink:0; stroke: var(--brass-deep); fill:none; stroke-width:2; transition: transform .2s ease; }
.faq-q[aria-expanded="true"] svg{ transform: rotate(45deg); }
.faq-a{ display:none; padding: 0 2px 20px; max-width:70ch; }
.faq-a.is-open{ display:block; }

/* ---------- Forms ---------- */
.form-card{ background: var(--white); border:1px solid var(--line); padding: 28px; }
.form-card h3{ margin-bottom:4px; }
.form-row{ display:grid; grid-template-columns:1fr; gap:16px; margin-top:16px; }
.form-row.cols-2{ grid-template-columns: 1fr; }
@media(min-width:560px){ .form-row.cols-2{ grid-template-columns: 1fr 1fr; } }
label{ display:block; font-family: var(--font-head); font-size:.85rem; letter-spacing:.3px; color: var(--navy); margin-bottom:6px; }
input, select, textarea{
  width:100%; border:1px solid var(--line); background: var(--paper); padding: .78em .9em;
  font-family: var(--font-body); font-size:1rem; color: var(--ink); border-radius:2px;
}
input:focus, select:focus, textarea:focus{ background: var(--white); border-color: var(--brass-deep); }
.required-note{ font-size:.8rem; color: var(--ink-faint); margin-top:14px; }
.form-msg{ margin-top:14px; padding:12px 14px; border-left:3px solid var(--brass); background: var(--paper-2); font-size:.92rem; display:none; }
.form-msg.is-visible{ display:block; }
.form-msg.error{ border-color: var(--danger); }

/* ---------- Locations / services index chips ---------- */
.chip-list{ display:flex; flex-wrap:wrap; gap:10px; }
.chip{ border:1px solid var(--line); padding: 9px 16px; font-family: var(--font-head); font-size:.9rem; color: var(--navy); background: var(--white); }
.chip:hover{ border-color: var(--brass-deep); background: var(--paper-2); }

/* ---------- Footer ---------- */
.site-footer{ background: var(--navy); color: rgba(242,239,230,.78); padding: 56px 0 26px; }
.footer-grid{ display:grid; grid-template-columns: 1.3fr repeat(4, 1fr); gap: 30px; }
.footer-brand img{ height:38px; margin-bottom:14px; }
.footer-brand p{ color: rgba(242,239,230,.68); max-width: 32ch; }
.footer-col h4{ color: var(--brass); font-family: var(--font-head); font-size:.85rem; letter-spacing:1.2px; text-transform:uppercase; margin-bottom:14px; }
.footer-col ul{ list-style:none; margin:0; padding:0; }
.footer-col li{ margin-bottom:9px; }
.footer-col a{ color: rgba(242,239,230,.78); font-size:.92rem; }
.footer-col a:hover{ color: var(--white); }
.footer-phone{ display:flex; align-items:center; gap:.5em; font-family: var(--font-head); color:var(--white); font-size:1.15rem; margin-bottom:8px; }
.footer-phone svg{ width:18px; height:18px; fill: var(--brass); }
.footer-bottom{ border-top:1px solid var(--line-dark); margin-top:40px; padding-top:22px; display:flex; flex-wrap:wrap; gap:12px 26px; justify-content:space-between; font-size:.84rem; color: rgba(242,239,230,.55); }
.footer-bottom a{ color: rgba(242,239,230,.65); }

/* ---------- Utility ---------- */
.text-center{ text-align:center; }
.mt-0{ margin-top:0; }
.small{ font-size:.9rem; }
.divider{ height:1px; background: var(--line); border:none; margin: 40px 0; }
.eyebrow-key{ display:inline-flex; align-items:center; gap:.5em; font-family: var(--font-head); color:var(--brass-deep); letter-spacing:1.2px; font-size:.8rem; text-transform:uppercase; }
.sr-only{ position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; }
.skip-link{ position:absolute; left:-999px; top:0; background:var(--brass); color:var(--navy); padding:10px 16px; z-index:1000; font-family: var(--font-head); }
.skip-link:focus{ left:10px; top:10px; }

/* keyway divider motif */
.keyway-divider{ display:flex; align-items:center; justify-content:center; gap:10px; margin: 8px 0 30px; color: var(--brass-deep); }
.keyway-divider::before, .keyway-divider::after{ content:""; height:1px; background: var(--line); flex:1; }
.keyway-divider svg{ width:22px; height:22px; }

/* 404 */
.error-page{ padding: 100px 0; text-align:center; }
.error-page .code{ font-family: var(--font-head); font-size: 5rem; color: var(--brass-deep); line-height:1; }

/* ---------- Responsive ---------- */
@media (min-width: 900px){
  .brand-text{ display:block; }
  .primary-nav{ display:block; }
  .header-cta{ display:inline-flex; }
  .menu-toggle{ display:none; }
  .mobile-sticky-cta{ display:none; }
  .hero-grid{ grid-template-columns: 1.05fr .95fr; align-items:stretch; min-height: 560px; }
  .hero-copy{ padding: 74px 48px 74px 0; margin:0 0 0 auto; max-width: 640px; }
  .hero-media{ min-height: auto; }
  .feature{ grid-template-columns: 1fr 1fr; }
  .footer-grid{ grid-template-columns: 1.3fr repeat(4,1fr); }
}
@media (max-width: 899px){
  .footer-grid{ grid-template-columns: 1fr 1fr; }
  .footer-brand{ grid-column: 1 / -1; }
  body{ padding-bottom: 58px; } /* room for sticky cta */
}
@media (max-width: 560px){
  .footer-grid{ grid-template-columns: 1fr; }
}
