/* =====================================================================
   AAA Locksmith of NYC — styles
   Typography-forward, no photography. Palette drawn from cut steel,
   brass key-blanks, and floodlit-steel security-light blue.
   ===================================================================== */

/* ---------- Design tokens ---------- */
:root {
  /* palette (BRIEF, exact) */
  --graphite:  #12161c;  /* near-black background / primary dark surface */
  --steel:     #eef1f4;  /* cold steel white — primary text on dark */
  --brass:     #c9a24b;  /* brass key accent — CTAs, key-line, focus */
  --gunmetal:  #3d4550;  /* secondary surface, card bg, dividers */
  --sec-blue:  #7fa8c9;  /* security-light blue — links/hover, focus ring */

  /* derived surfaces */
  --graphite-2: #171c24;  /* raised dark surface */
  --card-bg:    #1c222b;  /* card fill (tinted toward gunmetal) */
  --hairline:   #2a313c;  /* subtle divider */
  --steel-dim:  #c9d1d9;  /* muted body text (still AA on graphite) */
  --steel-mute: #8b95a3;  /* labels / captions */

  /* type */
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body:    "Inter", system-ui, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, "SFMono-Regular", monospace;

  /* layout */
  --wrap:      72rem;
  --gutter:    clamp(1.25rem, 5vw, 3rem);
  --radius:    4px;
  --section-y: clamp(4rem, 9vw, 7rem);
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--graphite);
  color: var(--steel);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { margin: 0; line-height: 1.08; font-family: var(--font-display); }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Focus / skip link ---------- */
:focus-visible {
  outline: 2px solid var(--sec-blue);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3.5rem;
  z-index: 100;
  background: var(--brass);
  color: var(--graphite);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  padding: 0.6rem 1rem;
  border-radius: var(--radius);
  transition: top 0.15s ease;
}
.skip-link:focus { top: 1rem; }

/* ---------- Shared: eyebrow / section title ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 1rem;
}
.eyebrow--on-brass { color: var(--graphite); opacity: 0.72; }

.section { padding-block: var(--section-y); }

.section__title {
  font-weight: 700;
  font-size: clamp(1.8rem, 4.5vw, 2.9rem);
  letter-spacing: -0.02em;
  margin-bottom: 2.5rem;
  max-width: 18ch;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 48px;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: background-color 0.12s ease, color 0.12s ease, border-color 0.12s ease;
}
.btn__num {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.92rem;
  letter-spacing: -0.01em;
}

.btn--brass {
  background: var(--brass);
  color: var(--graphite);
}
.btn--brass:hover,
.btn--brass:focus-visible { background: #d8b360; }

.btn--ghost {
  color: var(--steel);
  border-color: var(--gunmetal);
  background: transparent;
}
.btn--ghost:hover,
.btn--ghost:focus-visible {
  border-color: var(--sec-blue);
  color: var(--sec-blue);
}

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--graphite) 92%, transparent);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--hairline);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 64px;
}

.wordmark {
  display: inline-grid;
  line-height: 1;
  text-decoration: none;
  color: var(--steel);
}
.wordmark__aaa {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.12rem;
  letter-spacing: -0.01em;
}
.wordmark__nyc {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass);
  margin-top: 0.22rem;
}

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

.nav__toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 44px;
  padding: 0.4rem 0.6rem;
  background: transparent;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  color: var(--steel);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}
.nav__toggle-bars {
  position: relative;
  width: 18px;
  height: 2px;
  background: currentColor;
  transition: background-color 0.15s ease;
}
.nav__toggle-bars::before,
.nav__toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: currentColor;
  transition: transform 0.2s ease;
}
.nav__toggle-bars::before { top: -6px; }
.nav__toggle-bars::after  { top: 6px; }
.nav__toggle[aria-expanded="true"] .nav__toggle-bars { background: transparent; }
.nav__toggle[aria-expanded="true"] .nav__toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__toggle-bars::after  { transform: translateY(-6px) rotate(-45deg); }

.nav__menu {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.nav__menu > li > a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.85rem;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--steel-dim);
  border-radius: var(--radius);
  transition: color 0.12s ease;
}
.nav__menu > li > a:hover,
.nav__menu > li > a:focus-visible { color: var(--steel); }

.nav__phone { margin-left: 0.5rem; }
.nav__call {
  display: inline-grid;
  gap: 0.1rem;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--brass);
  border-radius: var(--radius);
  text-decoration: none;
  min-height: 44px;
  align-content: center;
  transition: background-color 0.12s ease, color 0.12s ease;
}
.nav__call-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass);
}
.nav__call-num {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.86rem;
  color: var(--steel);
}
.nav__call:hover,
.nav__call:focus-visible { background: var(--brass); }
.nav__call:hover .nav__call-label,
.nav__call:hover .nav__call-num,
.nav__call:focus-visible .nav__call-label,
.nav__call:focus-visible .nav__call-num { color: var(--graphite); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(120% 90% at 82% -10%, color-mix(in srgb, var(--sec-blue) 12%, transparent), transparent 60%),
    var(--graphite);
  padding-top: clamp(3.5rem, 8vw, 6rem);
  padding-bottom: clamp(5rem, 10vw, 8rem);
  overflow: hidden;
}
.hero__inner { max-width: 54rem; }

.hero__title {
  font-weight: 700;
  font-size: clamp(2.4rem, 8vw, 5rem);
  letter-spacing: -0.03em;
  margin-block: 0.5rem 1.5rem;
}
.hero__title-line { display: block; }
.hero__title-accent { display: block; color: var(--brass); }

.hero__lede {
  color: var(--steel-dim);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  max-width: 40ch;
  margin-bottom: 2.25rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}
.hero .btn--brass { flex-direction: column; align-items: flex-start; gap: 0.15rem; }
.hero .btn--brass .btn__label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.12em; font-family: var(--font-mono); font-weight: 500; }
.hero .btn--brass .btn__num { font-size: 1.02rem; }

/* cut-key divider */
.keyline--divider {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 40px;
  pointer-events: none;
}
.keyline__svg {
  width: 100%;
  height: 100%;
}
.keyline__svg use { fill: none; stroke: var(--brass); stroke-width: 2; stroke-linejoin: miter; }

/* ---------- Services ---------- */
.services { background: var(--graphite-2); }

.cards {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
.card {
  background: var(--card-bg);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem 1.75rem;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.card:hover { border-color: var(--brass); transform: translateY(-2px); }
.card__icon {
  display: inline-flex;
  width: 44px;
  height: 44px;
  color: var(--brass);
  margin-bottom: 1.1rem;
}
.card__icon svg { width: 100%; height: 100%; }
.card__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.22rem;
  letter-spacing: -0.01em;
  margin-bottom: 0.4rem;
}
.card__desc { color: var(--steel-mute); font-size: 0.95rem; }

/* ---------- About ---------- */
.about__grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
}
.about__body p {
  font-size: clamp(1.05rem, 1.8vw, 1.22rem);
  line-height: 1.7;
  color: var(--steel-dim);
  max-width: 62ch;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.95rem;
  border: 1px solid var(--brass);
  border-radius: 999px;
  background: color-mix(in srgb, var(--brass) 10%, transparent);
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--steel);
  line-height: 1.3;
}
.chip__mark { display: inline-flex; width: 22px; height: 22px; color: var(--brass); flex: none; }

/* ---------- Not affiliated with AAA ---------- */
.disclaimer-section { background: var(--graphite); }
.disclaimer {
  background: var(--brass);
  color: var(--graphite);
  border-radius: 8px;
  overflow: hidden;
}
.disclaimer__keyline {
  height: 26px;
  background: var(--graphite);
}
.disclaimer__keyline svg { width: 100%; height: 100%; }
.disclaimer__keyline use { fill: none; stroke: var(--brass); stroke-width: 2.5; stroke-linejoin: miter; }
.disclaimer__keyline--flip { transform: scaleY(-1); }

.disclaimer__body { padding: clamp(1.75rem, 5vw, 3rem); }
.disclaimer__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 4vw, 2.4rem);
  letter-spacing: -0.02em;
  color: var(--graphite);
  margin-bottom: 1rem;
  max-width: 22ch;
}
.disclaimer__text {
  font-size: clamp(1rem, 1.6vw, 1.12rem);
  line-height: 1.6;
  max-width: 62ch;
  color: color-mix(in srgb, var(--graphite) 88%, transparent);
}
.disclaimer__note {
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--graphite);
  font-weight: 500;
}

/* ---------- Contact ---------- */
.contact { background: var(--graphite-2); }
.contact__grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
}
.contact__pitch {
  color: var(--steel-dim);
  font-size: 1.08rem;
  max-width: 34ch;
  margin-bottom: 2rem;
}
.contact .btn--brass { flex-direction: column; align-items: flex-start; gap: 0.15rem; }
.contact .btn--brass .btn__label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.12em; font-family: var(--font-mono); font-weight: 500; }
.contact .btn--brass .btn__num { font-size: 1.02rem; }

.contact__details {
  display: grid;
  gap: 1.25rem;
}
.contact__item {
  display: grid;
  gap: 0.35rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--hairline);
}
.contact__item:last-child { border-bottom: 0; padding-bottom: 0; }
.contact__label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--steel-mute);
}
.contact__value {
  font-size: 1.1rem;
  font-style: normal;
  color: var(--steel);
  text-decoration: none;
  line-height: 1.45;
}
.contact__value--mono { font-family: var(--font-mono); font-size: 1.02rem; }
a.contact__value:hover,
a.contact__value:focus-visible { color: var(--sec-blue); }
.contact__link { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 600; color: var(--brass); }
.contact__link:hover,
.contact__link:focus-visible { color: var(--sec-blue); }
.contact__ext { transition: transform 0.15s ease; }
.contact__link:hover .contact__ext { transform: translateX(3px); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--graphite);
  border-top: 1px solid var(--hairline);
  padding-block: clamp(2.5rem, 5vw, 3.5rem);
}
.footer__inner {
  display: grid;
  gap: 1.5rem;
}
.wordmark--footer .wordmark__aaa { font-size: 1.05rem; }
.footer__contact {
  display: grid;
  gap: 0.4rem;
}
.footer__address {
  font-style: normal;
  color: var(--steel-dim);
  font-size: 0.95rem;
}
.footer__phone {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--steel);
  text-decoration: none;
  width: max-content;
}
.footer__phone:hover,
.footer__phone:focus-visible { color: var(--brass); }
.footer__disclaimer {
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--steel-mute);
  max-width: 60ch;
  padding-top: 1.25rem;
  border-top: 1px solid var(--hairline);
}
.footer__copy {
  font-size: 0.8rem;
  color: var(--steel-mute);
}

/* ---------- Scroll reveal (progressive enhancement) ---------- */
/* JS adds .reveal-ready to <html>; only then do we hide-until-reveal.
   No-JS keeps everything visible. */
.reveal-ready .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal-ready .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive: tablet & up ---------- */
@media (min-width: 40rem) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .hero__actions { align-items: stretch; }
}

@media (min-width: 60rem) {
  .cards { grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
  .about__grid { grid-template-columns: 0.85fr 1.15fr; align-items: start; gap: 3.5rem; }
  .contact__grid { grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
  .footer__inner {
    grid-template-columns: auto 1fr;
    align-items: baseline;
    column-gap: 3rem;
    row-gap: 1.25rem;
  }
  .footer__brand { grid-row: span 1; }
  .footer__disclaimer { grid-column: 1 / -1; }
  .footer__copy { grid-column: 1 / -1; }
}

/* ---------- Mobile nav ---------- */
@media (max-width: 47.99rem) {
  .nav__menu {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--graphite-2);
    border-bottom: 1px solid var(--hairline);
    padding: 0.5rem var(--gutter) 1.25rem;
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
    transition: max-height 0.25s ease, visibility 0s linear 0.25s;
  }
  .site-header { position: sticky; }
  .header-inner { position: relative; }
  .nav__menu.is-open {
    max-height: 80vh;
    visibility: visible;
    transition: max-height 0.28s ease, visibility 0s;
  }
  .nav__menu > li > a {
    min-height: 52px;
    padding-inline: 0;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--hairline);
    border-radius: 0;
    position: relative;
    color: var(--steel);
  }
  /* cut-key active-state underline on mobile */
  .nav__menu > li > a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 0;
    height: 3px;
    background-image: repeating-linear-gradient(
      90deg,
      var(--brass) 0 8px,
      transparent 8px 10px,
      var(--brass) 10px 14px,
      transparent 14px 20px
    );
    transition: width 0.2s ease;
  }
  .nav__menu > li > a:hover::after,
  .nav__menu > li > a:focus-visible::after,
  .nav__menu > li > a[aria-current="true"]::after { width: 56px; }

  .nav__phone { margin: 1rem 0 0; }
  .nav__call { width: 100%; }
}

/* ---------- Desktop: hide toggle, show inline menu ---------- */
@media (min-width: 48rem) {
  .nav__toggle { display: none; }
  .nav__menu {
    position: static;
    max-height: none;
    visibility: visible;
    overflow: visible;
    flex-direction: row;
  }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  /* content must appear instantly, never hidden */
  .reveal-ready .reveal { opacity: 1 !important; transform: none !important; }
}
