/* Desert EZ Key Locksmith. Tokens from the logo: navy, action blue, white, and the gold swoosh used sparingly. */
:root {
  --navy: #0e2454;
  --navy-2: #16316f;
  --blue: #1f56c9;
  --blue-dark: #1846a8;
  --tint: #eef3fc;
  --tint-2: #dfe9fa;
  --ink: #0f1b33;
  --muted: #4a5878;
  --line: #d9e2f0;
  --white: #fff;
  --sun: #f4b400;
  --good: #15803d;
  --bad: #b42318;

  --display: 'Barlow Semi Condensed', 'Arial Narrow', system-ui, sans-serif;
  --text: 'Barlow', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --r-sm: 6px;
  --r: 10px;
  --wrap: 1180px;
  --gap: clamp(1rem, 2.5vw, 2rem);
  --section: clamp(3rem, 7vw, 5.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body { margin: 0; font: 400 1.0625rem/1.6 var(--text); color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 0.18em; }
a:hover { color: var(--blue-dark); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { margin: 0 0 0.6em; color: var(--navy); line-height: 1.12; }
p { margin: 0 0 1em; }
ul, ol { padding: 0; margin: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.narrow { width: min(100% - 2.5rem, 780px); }
.skip { position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff; padding: 0.75rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; }
.muted { color: var(--muted); }
.small { font-size: 0.9375rem; }

/* Type */
.display { font-family: var(--display); font-weight: 800; font-style: italic; font-size: clamp(2.25rem, 5.4vw, 4rem); letter-spacing: -0.01em; line-height: 1.02; text-wrap: balance; }
.h2 { font-family: var(--display); font-weight: 700; font-size: clamp(1.75rem, 3.4vw, 2.5rem); text-wrap: balance; display: flex; align-items: center; gap: 0.5rem; }
.h3 { font-family: var(--display); font-weight: 700; font-size: 1.375rem; display: flex; align-items: center; gap: 0.45rem; }
.lede { font-size: clamp(1.125rem, 1.6vw, 1.25rem); color: var(--ink); max-width: 60ch; }
.ico { flex: none; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem; min-height: 48px; padding: 0.7rem 1.25rem; border-radius: var(--r-sm); border: 2px solid transparent; font-weight: 600; font-size: 1.0625rem; text-decoration: none; cursor: pointer; transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease; touch-action: manipulation; white-space: nowrap; }
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-dark); color: #fff; }
.btn--ghost { background: #fff; color: var(--navy); border-color: var(--navy); }
.btn--ghost:hover { background: var(--tint); color: var(--navy); }
.btn--lg { min-height: 56px; padding: 0.85rem 1.6rem; font-size: 1.125rem; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.5rem 0 1rem; }

/* Open / closed */
.status { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.9375rem; color: var(--muted); margin: 0; }
.status .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--line); flex: none; }
.status.is-open .dot { background: var(--sun); box-shadow: 0 0 0 4px rgb(244 180 0 / 0.22); }
.status.is-open { color: var(--ink); }
.status--hero { font-size: 1rem; }

/* Header */
.top { position: sticky; top: 0; z-index: 50; background: rgb(255 255 255 / 0.96); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.top-row { display: flex; align-items: center; gap: 1.5rem; min-height: 76px; }
.brand img { width: 150px; height: auto; }
.nav { margin-left: auto; }
.nav ul { display: flex; gap: 0.25rem; }
.nav a { display: block; padding: 0.6rem 0.75rem; color: var(--ink); text-decoration: none; font-weight: 500; border-radius: var(--r-sm); }
.nav a:hover { background: var(--tint); color: var(--navy); }
.nav a[aria-current] { color: var(--blue); box-shadow: inset 0 -2px 0 var(--blue); border-radius: 0; }
.top-call { display: flex; align-items: center; gap: 1rem; }
.top-call .status { max-width: 13rem; line-height: 1.25; }
.menu-btn { display: none; margin-left: auto; align-items: center; gap: 0.4rem; min-height: 44px; padding: 0.5rem 0.85rem; background: none; border: 1px solid var(--line); border-radius: var(--r-sm); cursor: pointer; font-weight: 600; color: var(--navy); }
.mnav { border-top: 1px solid var(--line); }
.mnav a { display: block; padding: 0.95rem 1.25rem; color: var(--ink); text-decoration: none; font-weight: 600; border-bottom: 1px solid var(--line); }

@media (max-width: 1080px) { .top-call .status { display: none; } }
@media (max-width: 900px) {
  .nav, .top-call { display: none; }
  .menu-btn { display: inline-flex; }
  .brand img { width: 128px; }
  .top-row { min-height: 66px; }
}

/* Mobile call bar */
.callbar { display: none; }
@media (max-width: 900px) {
  .callbar { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; position: fixed; inset: auto 0 0 0; z-index: 60; padding: 0.6rem 0.75rem calc(0.6rem + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgb(14 36 84 / 0.08); }
  .callbar .btn { width: 100%; }
  body { padding-bottom: 76px; }
}

/* Breadcrumbs */
.crumbs ol { display: flex; flex-wrap: wrap; gap: 0.35rem; padding-top: 1.1rem; font-size: 0.9375rem; color: var(--muted); }
.crumbs li + li::before { content: '/'; margin-right: 0.35rem; color: var(--line); }
.crumbs a { color: var(--muted); }

/* Hero + page heads */
.hero { padding: clamp(2rem, 5vw, 4rem) 0 var(--section); background: linear-gradient(180deg, var(--tint) 0, #fff 85%); }
.hero-grid, .phead-grid { display: grid; grid-template-columns: 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
@media (min-width: 1000px) { .hero-grid { grid-template-columns: 1fr 1.05fr; } .phead-grid { grid-template-columns: 1.1fr 1fr; } }
.hero h1 { position: relative; padding-bottom: 0.35em; }
.hero h1::after { content: ''; position: absolute; left: 0; bottom: 0; width: 7.5rem; height: 6px; border-radius: 6px; background: var(--sun); transform: skewX(-20deg); }
.hero-photo, .phead-photo { margin: 0; }
.hero-photo img, .phead-photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--r); }
.phead { padding: clamp(1.25rem, 3vw, 2.5rem) 0 var(--section); }
.phead--plain { padding-top: 1.5rem; padding-bottom: clamp(2rem, 4vw, 3rem); }
.phead .lede + .lede { margin-top: -0.25rem; }

/* Sections */
.section { padding: var(--section) 0 0; }
.section:last-of-type { padding-bottom: var(--section); }
.split-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 0.5rem 2rem; margin-bottom: 1.75rem; }
.split-head .h2 { margin: 0; }
.split-head p { margin: 0; max-width: 48ch; }
.more { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 600; text-decoration: none; }
.two-col { display: grid; gap: clamp(2rem, 4vw, 4rem); }
@media (min-width: 960px) { .two-col { grid-template-columns: 1.6fr 1fr; align-items: start; } }

/* Picker */
.tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 1.25rem; }
.tabs button { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 48px; padding: 0.6rem 1.15rem; border: 2px solid var(--line); background: #fff; border-radius: 999px; font-weight: 600; color: var(--navy); cursor: pointer; transition: border-color 0.15s ease, background-color 0.15s ease; }
.tabs button:hover { border-color: var(--blue); }
.tabs button[aria-selected='true'] { background: var(--navy); border-color: var(--navy); color: #fff; }
.panel + .panel { margin-top: 2.5rem; }
.js .panel + .panel { margin-top: 0; }
.panel-sub { color: var(--muted); max-width: 64ch; }
.svc-list { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.svc { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; transition: border-color 0.15s ease; }
.svc:hover { border-color: var(--blue); color: var(--ink); }
.svc img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.svc-body { display: grid; gap: 0.25rem; padding: 0.9rem 1rem 1.1rem; }
.svc-body strong { font-family: var(--display); font-size: 1.3rem; color: var(--navy); }
.svc-body span { color: var(--muted); font-size: 0.975rem; line-height: 1.45; }

/* Steps: a real sequence */
.steps { display: grid; gap: 1rem; counter-reset: step; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.steps li { counter-increment: step; position: relative; padding: 1.25rem 1.25rem 1.1rem; background: var(--tint); border-radius: var(--r); }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 2.1rem; height: 2.1rem; margin-bottom: 0.7rem; border-radius: 50%; background: var(--navy); color: #fff; font: 700 1.05rem var(--display); }
.steps h3 { font-family: var(--display); font-size: 1.25rem; margin-bottom: 0.3rem; }
.steps p { margin: 0; color: var(--muted); font-size: 0.975rem; }
.prose .steps { grid-template-columns: 1fr; }
@media (min-width: 640px) { .prose .steps { grid-template-columns: repeat(3, 1fr); } }

/* Why */
.why-grid { display: grid; gap: clamp(2rem, 4vw, 4rem); align-items: center; }
@media (min-width: 1000px) { .why-grid { grid-template-columns: 1fr 1.15fr; } }
.why-photo { margin: 0; }
.why-photo img { border-radius: var(--r); aspect-ratio: 4 / 3.4; object-fit: cover; }
.promises { display: grid; gap: 1.1rem; margin-top: 1.5rem; }
.promises li { display: grid; grid-template-columns: 2.5rem 1fr; gap: 0.75rem; align-items: start; }
.promises .ico { width: 2.5rem; height: 2.5rem; padding: 0.5rem; border-radius: 50%; background: var(--tint); color: var(--blue); }
.promises strong { display: block; color: var(--navy); font-size: 1.0625rem; }
.promises span { color: var(--muted); font-size: 0.975rem; }
@media (min-width: 700px) { .narrow .promises { grid-template-columns: 1fr 1fr; } }

/* Route: the valley west to east */
.area { }
.route { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(88px, 1fr); overflow-x: auto; padding: 1.25rem 0.25rem 0.75rem; scrollbar-width: thin; }
.route::before { content: ''; position: absolute; left: 1.5rem; right: 1.5rem; top: calc(1.25rem + 9px); height: 4px; border-radius: 4px; background: repeating-linear-gradient(90deg, var(--navy) 0 18px, transparent 18px 26px); }
.route a { position: relative; display: grid; justify-items: center; gap: 0.55rem; padding: 0 0.25rem 0.5rem; text-decoration: none; color: var(--ink); font-weight: 600; text-align: center; line-height: 1.2; font-size: 0.95rem; min-height: 44px; }
.route .stop { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 4px solid var(--navy); transition: background-color 0.15s ease, transform 0.15s ease; }
.route a:hover .stop { background: var(--blue); border-color: var(--blue); }
.route a:hover { color: var(--blue); }
.route [aria-current] .stop { background: var(--sun); border-color: var(--navy); transform: scale(1.25); }
.route [aria-current] .route-name { color: var(--navy); }
.two-col .route { grid-auto-flow: row; grid-auto-columns: auto; padding: 0; overflow: visible; }
.two-col .route::before { left: 10px; right: auto; top: 0.6rem; bottom: 0.6rem; width: 4px; height: auto; background: repeating-linear-gradient(180deg, var(--navy) 0 14px, transparent 14px 20px); }
.two-col .route a { grid-template-columns: 22px 1fr; justify-items: start; align-items: center; text-align: left; padding: 0.3rem 0; gap: 0.75rem; }

.area-cards { display: grid; gap: 0.9rem; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); margin-top: 2rem; }
.area-card { display: grid; gap: 0.2rem; height: 100%; padding: 1.1rem 1.2rem; border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; color: var(--ink); }
.area-card:hover { border-color: var(--blue); color: var(--ink); }
.area-card strong { font-family: var(--display); font-size: 1.35rem; color: var(--navy); }
.area-card span { font-size: 0.95rem; }

/* Brands */
.brands-grid { display: grid; gap: 2rem; padding: clamp(1.5rem, 3vw, 2.5rem); background: var(--tint); border-radius: var(--r); }
@media (min-width: 900px) { .brands-grid { grid-template-columns: 1fr 1fr; } }
.chips { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.chips span { padding: 0.35rem 0.75rem; background: #fff; border: 1px solid var(--line); border-radius: 999px; font-size: 0.95rem; font-weight: 500; }

/* Content pages */
.prose { max-width: 70ch; }
.prose .h2, .prose h2 { margin-top: 1.75em; }
.prose > .h2:first-child, .prose > h2:first-child { margin-top: 0; }
.prose h2:not(.h2) { font-family: var(--display); font-weight: 700; font-size: 1.75rem; }
.prose ul, .prose ol { margin: 0 0 1.2em; padding-left: 1.25rem; }
.prose ul { list-style: disc; }
.prose ol:not(.steps) { list-style: decimal; }
.prose ol.steps { padding-left: 0; }
.prose li { margin-bottom: 0.4em; }
.prose li::marker { color: var(--blue); }
.side { display: grid; gap: 1rem; }
@media (min-width: 960px) { .side { position: sticky; top: 100px; } }
.note, .ready, .where { padding: 1.25rem 1.35rem; border-radius: var(--r); background: var(--tint); }
.note p:last-child, .where p:last-child { margin: 0; }
.ready { background: #fff; border: 1px solid var(--line); }
.ready ul { display: grid; gap: 0.55rem; }
.ready li { display: grid; grid-template-columns: 20px 1fr; gap: 0.6rem; align-items: start; }
.ready .ico { color: var(--good); margin-top: 0.2rem; }
.kinds { display: grid; gap: 1.25rem; }
@media (min-width: 960px) { .kinds { grid-template-columns: repeat(3, 1fr); } }
.kind-block { padding: 1.4rem; border: 1px solid var(--line); border-radius: var(--r); }
.kind-block .ico { color: var(--blue); }
.links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; }
.links a { font-weight: 600; display: inline-block; padding: 0.35rem 0; }
.related { }
.related .h3 { margin-bottom: 0.5rem; }

/* FAQ */
.faq-list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { position: relative; padding: 1.1rem 2.5rem 1.1rem 0; font-weight: 600; font-size: 1.0625rem; cursor: pointer; list-style: none; color: var(--navy); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; position: absolute; right: 0.4rem; top: 50%; width: 12px; height: 12px; border-right: 2.5px solid var(--blue); border-bottom: 2.5px solid var(--blue); transform: translateY(-75%) rotate(45deg); transition: transform 0.2s ease; }
.faq details[open] summary::after { transform: translateY(-25%) rotate(-135deg); }
.faq details p { margin: 0 0 1.2rem; color: var(--ink); max-width: 68ch; }

/* Text form */
.tform { display: grid; gap: 1rem; grid-template-columns: 1fr; padding: clamp(1.25rem, 3vw, 2rem); border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
@media (min-width: 640px) { .tform { grid-template-columns: 1fr 1fr; } .field--wide { grid-column: 1 / -1; } .tform .field:first-child { grid-column: 1 / -1; } }
.field { display: grid; gap: 0.35rem; }
.field label { font-weight: 600; color: var(--navy); }
.opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 0.7rem 0.85rem; font-size: 1rem; border: 1.5px solid #b9c6dc; border-radius: var(--r-sm); background: #fff; }
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgb(31 86 201 / 0.18); }
.tform-foot { display: grid; gap: 0.6rem; justify-items: start; }
.hint { margin: 0; font-size: 0.9rem; color: var(--muted); }
.tform-msg { margin: 0; font-weight: 600; color: var(--navy); }

/* Blog */
.posts { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.post-card { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: var(--ink); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.post-card:hover { border-color: var(--blue); color: var(--ink); }
.post-card img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.post-body { display: grid; gap: 0.35rem; padding: 1rem 1.15rem 1.25rem; }
.post-body time { font-size: 0.875rem; color: var(--muted); }
.post-body strong { font-family: var(--display); font-size: 1.35rem; line-height: 1.15; color: var(--navy); }
.post-body span { color: var(--muted); font-size: 0.975rem; line-height: 1.45; }
.article { padding-top: 1.5rem; }
.article .display { font-size: clamp(2rem, 4.5vw, 3.1rem); }
.meta { color: var(--muted); }
.article-photo { margin-block: 1.5rem 2rem; }
.article-photo img { border-radius: var(--r); aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.article .prose { font-size: 1.125rem; max-width: 760px; }
.article aside { margin-top: 2rem; }

/* CTA band */
.cta { margin-top: var(--section); background: var(--navy); color: #fff; padding: clamp(2.5rem, 5vw, 3.75rem) 0; }
.cta .h2 { color: #fff; }
.cta p { color: #d5def0; max-width: 54ch; }
.cta-grid { display: grid; gap: 1.5rem; align-items: center; }
@media (min-width: 900px) { .cta-grid { grid-template-columns: 1.3fr auto; } }
.cta .status { color: #d5def0; }
.cta .status.is-open { color: #fff; }
.cta .btn--ghost { background: transparent; color: #fff; border-color: #fff; }
.cta .btn--ghost:hover { background: rgb(255 255 255 / 0.1); color: #fff; }
.cta .btn--primary { background: #fff; color: var(--navy); }
.cta .btn--primary:hover { background: var(--tint); color: var(--navy); }
/* Footer */
.foot { position: relative; background: #0a1a3d; color: #c9d4ea; padding: 3.5rem 0 1.5rem; font-size: 0.975rem; }
.cta + .foot { padding-top: 3rem; border-top: 1px solid rgb(255 255 255 / 0.08); }
.foot a { color: #fff; text-decoration: none; }
.foot a:hover { text-decoration: underline; color: #fff; }
.foot-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 700px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr 0.8fr; } }
.foot-brand img { width: 170px; background: #fff; padding: 0.6rem 0.8rem; border-radius: var(--r-sm); margin-bottom: 1rem; }
.foot-contact { display: grid; gap: 0.4rem; }
.foot-contact a { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 600; font-size: 1.1rem; }
.foot-h { font: 700 1.15rem var(--display); color: #fff; margin-bottom: 0.75rem; }
.foot ul { display: grid; gap: 0.15rem; }
.foot ul a { display: inline-block; padding: 0.3rem 0; }
.foot-base { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid rgb(255 255 255 / 0.12); font-size: 0.875rem; color: #9fb0d0; }
.foot-base p { margin: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* Phones: compact service rows, vertical route */
@media (max-width: 599px) {
  .svc-list { grid-template-columns: 1fr; gap: 0.6rem; }
  .svc { flex-direction: row; align-items: stretch; }
  .svc img { width: 104px; aspect-ratio: auto; height: auto; min-height: 96px; flex: none; }
  .svc-body { padding: 0.7rem 0.9rem; align-content: center; }
  .svc-body strong { font-size: 1.15rem; }
  .svc-body span { font-size: 0.925rem; }
  .route { grid-auto-flow: row; grid-auto-columns: auto; padding: 0; overflow: visible; }
  .route::before { left: 10px; right: auto; top: 0.6rem; bottom: 0.6rem; width: 4px; height: auto; background: repeating-linear-gradient(180deg, var(--navy) 0 14px, transparent 14px 20px); }
  .route a { grid-template-columns: 22px 1fr; justify-items: start; align-items: center; text-align: left; padding: 0.35rem 0; gap: 0.75rem; font-size: 1.0625rem; }
  .actions .btn { flex: 1 1 100%; }
}
