/* Sam The Safe Locksmith - design system
   Palette: deep navy + brass on warm paper ground. Single light theme by design. */

@font-face {
  font-family: 'Bitter';
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url('/fonts/bitter-latin.woff2') format('woff2');
}

:root {
  /* sampled from the brand logo: plate #00253C-#012743, lettering #F3C447, dial shading #DEA016 */
  --navy: #0B2A44;
  --navy-deep: #051C30;
  --navy-soft: #17395C;
  --brass: #A87F1A;
  --brass-bright: #F3C447;
  --brass-pale: #F9ECC4;
  --ground: #F7F4EE;
  --panel: #FFFFFF;
  --ink: #1D2433;
  --muted: #5C6575;
  --line: #E5DFD2;
  --danger: #A93226;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(22, 36, 61, 0.06), 0 8px 24px rgba(22, 36, 61, 0.08);
  --font-display: 'Bitter', Georgia, 'Times New Roman', serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --wrap: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--ground);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-soft); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--brass); }
:focus-visible { outline: 3px solid var(--brass-bright); outline-offset: 2px; }

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--navy);
  line-height: 1.2;
  text-wrap: balance;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(1.9rem, 4.5vw, 2.9rem); font-weight: 700; }
h2 { font-size: clamp(1.45rem, 3vw, 2rem); font-weight: 700; margin-top: 1.6em; }
h3 { font-size: 1.2rem; font-weight: 600; margin-top: 1.4em; }
p { margin: 0 0 1em; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 62ch; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
main .wrap { max-width: 980px; }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 0.6em;
}

/* Header */
.topbar {
  background: var(--navy-deep);
  color: #CBD4E4;
  font-size: 0.85rem;
  padding: 6px 0;
}
.topbar .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.site-header {
  background: var(--navy);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 12px rgba(15, 26, 46, 0.35);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 12px;
  padding-bottom: 12px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  white-space: nowrap;
}
.brand svg { flex: none; }
.brand:hover { color: var(--brass-bright); }
.nav { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.nav a { color: #E8ECF4; text-decoration: none; font-size: 0.95rem; font-weight: 500; }
.nav a:hover { color: var(--brass-bright); }
.btn {
  display: inline-block;
  background: var(--brass-bright);
  color: var(--navy-deep);
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 999px;
  text-decoration: none;
  border: 2px solid transparent;
  transition: background 0.15s ease;
  white-space: nowrap;
}
.btn:hover { background: #F8D468; color: var(--navy-deep); }
.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-lg { font-size: 1.1rem; padding: 13px 28px; }

/* Hero */
.hero { background: linear-gradient(180deg, var(--navy) 0%, var(--navy-soft) 100%); color: #fff; padding: 56px 0 64px; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 44px; align-items: center; }
.hero h1 { color: #fff; }
.hero .lead { color: #C9D2E2; }
.hero-media img { border-radius: var(--radius); border: 3px solid var(--brass-bright); box-shadow: var(--shadow); }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin: 22px 0 18px; }
.hero .btn-outline { color: #fff; border-color: #ffffff66; }
.hero .btn-outline:hover { background: #ffffff1a; color: #fff; }
.trust-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 0.92rem; color: #C9D2E2; }
.trust-list li::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--brass-bright); margin-right: 8px; vertical-align: 1px; }

/* Sections */
section.band { padding: 52px 0; }
section.band-alt { background: var(--panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
section.band-navy { background: var(--navy); color: #DCE3EF; }
section.band-navy h2, section.band-navy h3 { color: #fff; }

/* Cards */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.card img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card h3 { margin: 0; }
.card p { margin: 0; font-size: 0.95rem; color: var(--muted); flex: 1; }
.card a.cardlink { font-weight: 600; text-decoration: none; margin-top: 10px; }
.card a.cardlink::after { content: ' \2192'; }

/* Steps */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 10px; }
.step { counter-increment: step; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--brass);
  display: block;
  margin-bottom: 6px;
}
.step h3 { margin: 0 0 6px; font-size: 1.05rem; }
.step p { margin: 0; font-size: 0.92rem; color: var(--muted); }

/* Content pages */
.page-hero { background: var(--navy); color: #fff; padding: 40px 0; }
.page-hero h1 { color: #fff; margin: 0; }
.page-hero .lead { color: #C9D2E2; margin: 10px 0 0; }
.breadcrumbs { font-size: 0.85rem; margin: 0 0 10px; color: #9FACC4; }
.breadcrumbs a { color: #C9D2E2; }
.breadcrumbs span[aria-current] { color: var(--brass-bright); }
article.content { padding: 44px 0 10px; }
article.content h2 { scroll-margin-top: 90px; }
article.content ul { padding-left: 1.3em; }
article.content li { margin-bottom: 0.4em; }
figure { margin: 28px 0; }
figure img { border-radius: var(--radius); box-shadow: var(--shadow); }
figcaption { font-size: 0.85rem; color: var(--muted); margin-top: 8px; }
.img-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 28px 0; }
.img-row figure { margin: 0; }
.callout {
  background: var(--brass-pale);
  border-left: 4px solid var(--brass);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 16px 20px;
  margin: 24px 0;
}
.callout p:last-child { margin: 0; }

/* Tables */
.tablewrap { overflow-x: auto; margin: 24px 0; }
table { border-collapse: collapse; width: 100%; font-size: 0.95rem; background: var(--panel); }
th, td { text-align: left; padding: 10px 14px; border: 1px solid var(--line); }
th { background: var(--navy); color: #fff; font-weight: 600; }
td { font-variant-numeric: tabular-nums; }

/* FAQ */
.faq { padding: 10px 0 40px; }
.faq details {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0;
  margin-bottom: 10px;
  box-shadow: var(--shadow);
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-family: var(--font-display);
  color: var(--navy);
  padding: 15px 20px;
  list-style: none;
  position: relative;
  padding-right: 44px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.3rem;
  color: var(--brass);
}
.faq details[open] summary::after { content: '\2212'; }
.faq details > div { padding: 0 20px 16px; color: var(--ink); }
.faq details > div p:last-child { margin-bottom: 0; }

/* Service area */
.city-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.city-links a {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 16px;
  text-decoration: none;
  font-size: 0.92rem;
  color: var(--navy);
  font-weight: 500;
}
.city-links a:hover { border-color: var(--brass); color: var(--brass); }

/* CTA band */
.cta-band { background: var(--navy); color: #fff; text-align: center; padding: 52px 0; }
.cta-band h2 { color: #fff; margin-top: 0; }
.cta-band p { color: #C9D2E2; max-width: 56ch; margin: 0 auto 22px; }

/* Footer */
.site-footer { background: var(--navy-deep); color: #A9B4C9; font-size: 0.92rem; padding: 48px 0 28px; }
.site-footer .wrap { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 32px; }
.site-footer h3 { color: #fff; font-size: 1rem; margin: 0 0 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 7px; }
.site-footer a { color: #C3CCDD; text-decoration: none; }
.site-footer a:hover { color: var(--brass-bright); }
.footer-bottom {
  max-width: var(--wrap); margin: 36px auto 0; padding: 18px 20px 0;
  border-top: 1px solid #2A3A57;
  display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  font-size: 0.82rem; color: #7A8AA5;
}
.footer-brand { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: #fff; margin-bottom: 8px; display: flex; gap: 8px; align-items: center; }

/* Floating contact buttons */
.float-contact {
  position: fixed;
  right: 16px;
  bottom: 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  z-index: 80;
}
.fc-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(5, 28, 48, 0.35);
  transition: transform 0.12s ease;
}
.fc-circle:hover, .fc-book:hover { transform: translateY(-2px); }
.fc-call { background: #fff; }
.fc-call svg { fill: var(--brass); }
.fc-sms { background: var(--brass-bright); }
.fc-sms svg { fill: var(--navy-deep); }
.fc-book {
  background: var(--brass-bright);
  color: var(--navy-deep);
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 999px;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(5, 28, 48, 0.35);
  transition: transform 0.12s ease;
}
.fc-book svg { fill: var(--navy-deep); flex: none; }
.fc-circle, .fc-book { border: none; cursor: pointer; font-family: var(--font-body); }
.fc-panel {
  position: relative;
  width: min(320px, calc(100vw - 32px));
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(5, 28, 48, 0.35);
  padding: 18px 18px 14px;
}
.fc-panel h3 { margin: 0 0 4px; font-size: 1.05rem; }
.fc-sub { font-size: 0.85rem; color: var(--muted); margin: 0 0 10px; }
.fc-panel textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  font: inherit;
  font-size: 0.9rem;
  resize: vertical;
  color: var(--ink);
  background: var(--ground);
}
.fc-actions { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.fc-actions .btn { font-size: 0.88rem; padding: 9px 16px; }
.fc-alt { font-size: 0.8rem; color: var(--muted); margin: 10px 0 0; }
.fc-close {
  position: absolute;
  top: 8px;
  right: 10px;
  border: none;
  background: none;
  font-size: 1.4rem;
  color: var(--muted);
  cursor: pointer;
  line-height: 1;
}
.fc-formpanel { max-height: min(78vh, 640px); overflow-y: auto; }
.fc-formpanel label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy);
  margin-top: 9px;
}
.fc-formpanel input[type="text"],
.fc-formpanel input[type="tel"],
.fc-formpanel input[type="email"],
.fc-formpanel textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  font: inherit;
  font-size: 0.9rem;
  color: var(--ink);
  background: var(--ground);
  margin-top: 3px;
}
.fc-formpanel input[type="file"] { display: block; margin-top: 4px; font-size: 0.82rem; width: 100%; }
.fc-filenote { font-size: 0.78rem; color: var(--muted); margin: 4px 0 0; }
.fc-hp { position: absolute; left: -9999px; height: 1px; width: 1px; opacity: 0; }
@media print { .float-contact { display: none; } }
@media (prefers-reduced-motion: reduce) { .fc-circle, .fc-book { transition: none; } }

/* Utility */
.center { text-align: center; }
.mt-0 { margin-top: 0; }

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .site-footer .wrap { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .grid-3, .grid-2, .steps, .img-row { grid-template-columns: 1fr; }
  .site-footer .wrap { grid-template-columns: 1fr; }
  .nav { display: none; }
  .topbar { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
