/* ---------------------------------------------------------------
   Low Key Locksmith — single-page styles (raw CSS)
   --------------------------------------------------------------- */

/* Design tokens */
:root {
  --bg: #0f172a;
  --bg-alt: #111c33;
  --surface: #ffffff;
  --surface-alt: #f4f6fb;
  --ink: #0f172a;
  --ink-soft: #475569;
  --line: #e2e8f0;
  --brand: #f4b400;
  --brand-ink: #1a1408;
  --brand-dark: #d99e00;
  --white: #ffffff;

  --container: 1080px;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
  --shadow-sm: 0 4px 14px rgba(15, 23, 42, 0.08);

  --header-h: 68px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

/* Reset / base */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

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

h1,
h2,
h3 {
  line-height: 1.15;
  margin: 0 0 0.4em;
  letter-spacing: -0.02em;
}

p {
  margin: 0 0 1em;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* Buttons */
.btn {
  --btn-bg: var(--brand);
  --btn-ink: var(--brand-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--btn-bg);
  color: var(--btn-ink);
  font-weight: 700;
  font-size: 1rem;
  padding: 12px 20px;
  border: 2px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}

.btn:hover {
  background: var(--brand-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.btn:active {
  transform: translateY(0);
}

.btn-lg {
  font-size: 1.1rem;
  padding: 15px 28px;
}

.btn-sm {
  font-size: 0.92rem;
  padding: 9px 16px;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn-ghost:hover {
  background: var(--surface-alt);
  border-color: var(--ink-soft);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--brand-dark);
  margin: 0 0 0.6em;
}

/* ---------------------------------------------------------------
   Header
   --------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--brand);
  color: var(--brand-ink);
  flex: none;
}

.brand-text {
  font-size: 1.12rem;
  letter-spacing: -0.01em;
}

.brand-text strong {
  font-weight: 800;
}

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-link {
  font-weight: 600;
  color: var(--ink-soft);
  transition: color 0.15s ease;
}

.nav-link:hover {
  color: var(--ink);
}

.nav-cta {
  margin-left: 4px;
}

/* Hamburger (hidden on desktop) */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  margin: 0 auto;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ---------------------------------------------------------------
   Hero
   --------------------------------------------------------------- */
.hero {
  background:
    radial-gradient(1200px 600px at 70% -10%, rgba(244, 180, 0, 0.18), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
  color: var(--white);
  text-align: center;
  padding: clamp(64px, 12vw, 130px) 0 clamp(72px, 13vw, 140px);
}

.hero-inner {
  max-width: 760px;
}

.hero .eyebrow {
  color: var(--brand);
}

.hero h1 {
  font-size: clamp(2.1rem, 6vw, 3.6rem);
  font-weight: 800;
}

.hero .lead {
  font-size: clamp(1.05rem, 2.4vw, 1.25rem);
  color: rgba(255, 255, 255, 0.82);
  max-width: 620px;
  margin-inline: auto;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-bottom: 1.4rem;
}

.hero .btn-ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.35);
}

.hero .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.6);
}

.hero-note {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

/* ---------------------------------------------------------------
   Sections
   --------------------------------------------------------------- */
.section {
  padding: clamp(56px, 9vw, 92px) 0;
}

.section-alt {
  background: var(--surface-alt);
}

.section-head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto clamp(36px, 6vw, 56px);
}

.section-head h2 {
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  font-weight: 800;
}

.section-sub {
  color: var(--ink-soft);
  font-size: 1.05rem;
  margin: 0;
}

/* Service cards */
.cards {
  /* display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px; */
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.card-icon {
  font-size: 2rem;
  margin-bottom: 8px;
}

.card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.3em;
}

.card p {
  color: var(--ink-soft);
  font-size: 0.96rem;
  margin: 0;
}

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.stat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
}

.stat-num {
  display: block;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.stat-label {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* Contact */
.contact-card {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(32px, 6vw, 52px);
  box-shadow: var(--shadow);
}

.contact-card h2 {
  font-size: clamp(1.6rem, 4vw, 2.3rem);
  font-weight: 800;
}

.contact-list {
  list-style: none;
  margin: 28px 0 32px;
  padding: 0;
  display: grid;
  gap: 14px;
  text-align: left;
}

.contact-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.contact-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.contact-label {
  font-weight: 700;
  color: var(--ink-soft);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.contact-list a {
  font-weight: 700;
  color: var(--brand-dark);
}

.contact-list a:hover {
  text-decoration: underline;
}

/* ---------------------------------------------------------------
   Footer
   --------------------------------------------------------------- */
.site-footer {
  background: var(--bg);
  color: rgba(255, 255, 255, 0.7);
  padding: 32px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-brand {
  color: var(--white);
}

.footer-meta {
  margin: 0;
  font-size: 0.9rem;
}

/* ---------------------------------------------------------------
   Responsive — tablet & mobile menu
   --------------------------------------------------------------- */
@media (max-width: 880px) {
  .cards {
    flex-direction: column;
  }
  /* .cards, */
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Show hamburger, hide inline nav by default */
  .nav-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 14px 20px 22px;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.2s ease, opacity 0.2s ease, visibility 0.2s ease;
  }

  .nav.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-link {
    padding: 12px 4px;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
  }

  .nav-cta {
    margin: 12px 0 0;
    width: 100%;
  }

  /* Animate hamburger into an X when open */
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

@media (max-width: 520px) {
  .cards,
  .stats {
    grid-template-columns: 1fr;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .contact-list li {
    flex-direction: column;
    gap: 2px;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition: none !important;
  }
}
