/* ==========================================================================
   LATCHKEY LOCKSMITHS
   Brass and navy, like the key tags on a locksmith's board. Photo hero with
   the Birmingham time in a brass tag, prices hung on key tags from a rail,
   a callout minute by minute, the jobs, the doors we work on, reviews, the
   three locksmiths, FAQ and a call band.
   ========================================================================== */

:root {
  --background: #F6F2EA;
  --card: #FFFFFF;
  --foreground: #111C2B;
  --primary-cta: #13223A;
  --primary-cta-text: #F6F2EA;
  --secondary-cta: #FFFFFF;
  --secondary-cta-text: #111C2B;
  --accent: #7C5B22;
  --background-accent: #EAE2D3;
  --radius: 0.625rem;
  --content-width: 88vw;
  --section-head-size: var(--text-7xl);
  --nav-ink: #FFFFFF;
  --nav-ink-scrolled: var(--foreground);
  --font-body: 'General Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'Literata', Georgia, serif;

  --navy: #0F1B2B;
  --brass: #C29A4B;
  --brass-hi: #E6C987;
  --brass-lo: #8A6A2E;
  --line: #E2DACB;
  --muted: #56554F;
}

@media (width >= 1600px) {
  :root { --content-width: clamp(40rem, 88vw, 98rem); }
}

.ambient { display: none; }
body { background: var(--background); }
figure, dd { margin: 0; }

h1, h2, h3 { font-family: var(--font-heading); font-weight: 700; }

.section-head h2,
.grad-head { background: none; color: var(--foreground); }

.section-head h2 { max-width: 17ch; line-height: 1.02; letter-spacing: -0.02em; }
.section-head > p { max-width: 52ch; color: var(--muted); }

.kicker { font-size: var(--text-sm); font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }

/* --- Buttons -------------------------------------------------------------- */

.btn { height: 3.1rem; padding-inline: 1.4rem 0.5rem; border-radius: 999px; font-size: var(--text-base); font-weight: 600; }
.btn--arrow .btn__icon { width: 2.1rem; height: 2.1rem; border-radius: 50%; background: linear-gradient(145deg, var(--brass-hi), var(--brass) 55%, var(--brass-lo)); color: var(--navy); }
.btn--arrow .btn__icon svg { width: 1rem; height: 1rem; }
.primary-button, .secondary-button { box-shadow: none; }
.secondary-button { border: 1px solid var(--foreground); }
.primary-button:hover { background: #0B1626; }

/* --- Nav ------------------------------------------------------------------ */

.navbar--bar .navbar__bar {
  background: rgba(15, 27, 43, 0.72);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(230, 201, 135, 0.22);
  border-radius: 999px;
  padding-left: 1.4rem;
}

body.past-hero .navbar--bar .navbar__bar { background: rgba(15, 27, 43, 0.94); }
body.past-hero .navbar__links a { color: #fff; }

.navbar__brand { display: inline-flex; align-items: center; gap: 0.55rem; color: #fff !important; font-family: var(--font-heading); font-size: 1.35rem; font-weight: 700; }

/* A brass key tag as the mark. */
.navbar__brand::before {
  content: '';
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, #F6F2EA 0 44%, transparent 45%), linear-gradient(145deg, var(--brass-hi), var(--brass) 55%, var(--brass-lo));
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2);
}

.navbar__links a { color: #fff; }
.navbar__toggle { color: #fff; background: transparent; border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 50%; }
.navbar--bar .navbar__actions .btn { height: 2.7rem; }

/* --- Hero ----------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: max(100svh, 44rem);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  background: var(--navy);
  color: #fff;
}

.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% center; }

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 18, 30, 0.92) 0%, rgba(10, 18, 30, 0.7) 45%, rgba(10, 18, 30, 0.15) 100%),
    linear-gradient(0deg, rgba(10, 18, 30, 0.8) 0%, rgba(10, 18, 30, 0) 50%);
}

.hero__inner { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; gap: 1.35rem; padding-block: 9rem 6.5rem; }
.hero .kicker { color: var(--brass-hi); }
.hero__title { max-width: 13ch; font-size: clamp(3.1rem, 6.2vw, 6.6rem); line-height: 1; letter-spacing: -0.025em; }
.hero__lede { max-width: 46ch; font-size: var(--text-xl); line-height: 1.55; color: rgba(255, 255, 255, 0.86); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hero .secondary-button { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.55); }

.open-now { display: flex; align-items: center; gap: 1rem; margin-top: 0.75rem; max-width: 34rem; font-size: var(--text-base); color: rgba(255, 255, 255, 0.86); }
.open-now b { color: #fff; font-weight: 600; }

.open-now__tag {
  display: grid;
  place-items: center;
  flex: none;
  width: 4.4rem;
  height: 4.4rem;
  border-radius: 50%;
  background: #F6F2EA;
  color: var(--navy);
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 0 0 5px var(--brass), 0 0 0 6px var(--brass-lo), 0 12px 24px -10px rgba(0, 0, 0, 0.6);
}

/* --- Prices on key tags ------------------------------------------------------ */

.tag-rail {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1rem;
  padding-top: 1.1rem;
}

/* The brass rail the tags hang from. */
.tag-rail::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 9px;
  border-radius: 5px;
  background: linear-gradient(180deg, var(--brass-hi), var(--brass) 45%, var(--brass-lo));
  box-shadow: 0 6px 12px -6px rgba(0, 0, 0, 0.45);
}

.keytag { --drop: 2.2rem; --tilt: -4deg; position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; }
.keytag:nth-child(2) { --drop: 3.4rem; --tilt: 3deg; }
.keytag:nth-child(3) { --drop: 1.6rem; --tilt: -2deg; }
.keytag:nth-child(4) { --drop: 3rem; --tilt: 4deg; }
.keytag:nth-child(5) { --drop: 2rem; --tilt: -3deg; }
.keytag:nth-child(6) { --drop: 3.6rem; --tilt: 2deg; }

.keytag__string { width: 2px; height: var(--drop); background: #6F6456; }

.keytag__disc {
  position: relative;
  display: grid;
  place-items: center;
  align-content: center;
  width: min(100%, 10.5rem);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #FFFDF7, #F1EADC 70%);
  box-shadow: 0 0 0 7px var(--brass), 0 0 0 8px var(--brass-lo), inset 0 0 0 1px rgba(0, 0, 0, 0.05), 0 22px 30px -18px rgba(15, 27, 43, 0.55);
  transform: rotate(var(--tilt));
  transform-origin: 50% -0.5rem;
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* The punched hole the string goes through. */
.keytag__disc::before {
  content: '';
  position: absolute;
  top: 0.7rem;
  left: 50%;
  width: 0.7rem;
  height: 0.7rem;
  margin-left: -0.35rem;
  border-radius: 50%;
  background: var(--background);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.35);
}

.keytag:hover .keytag__disc { transform: rotate(0deg); }
.keytag__disc strong { font-family: var(--font-heading); font-size: clamp(1.9rem, 2.6vw, 2.6rem); line-height: 1; color: var(--navy); }
.keytag__disc span { margin-top: 0.35rem; font-size: var(--text-sm); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.keytag > p { margin-top: 1.4rem; max-width: 12rem; font-size: var(--text-sm); line-height: 1.4; color: var(--muted); }

/* --- A callout, minute by minute ------------------------------------------------ */

.log { padding-block: 4.5rem; background: var(--navy); color: #fff; }
.log__head { display: flex; flex-direction: column; align-items: flex-start; gap: 0.7rem; margin-bottom: 2.75rem; }
.log__head .kicker { color: var(--brass-hi); }
.log__head h2 { font-size: var(--text-6xl); line-height: 1.02; }

.log__list { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.25rem; }
.log__list::before { content: ''; position: absolute; left: 0; right: 0; top: 1.05rem; height: 1px; background: rgba(230, 201, 135, 0.4); }
.log__list li { position: relative; padding-top: 3rem; }
.log__list li::before { content: ''; position: absolute; top: 0.55rem; left: 0; width: 1rem; height: 1rem; border-radius: 50%; background: var(--navy); box-shadow: 0 0 0 3px var(--brass); }
.log__list time { display: block; font-family: var(--font-heading); font-size: var(--text-4xl); font-weight: 700; color: var(--brass-hi); font-variant-numeric: tabular-nums; line-height: 1; }
.log__list h3 { margin-top: 0.6rem; font-family: var(--font-body); font-size: var(--text-lg); font-weight: 600; }
.log__list p { margin-top: 0.25rem; font-size: var(--text-sm); line-height: 1.45; color: rgba(255, 255, 255, 0.75); }

/* --- Jobs ----------------------------------------------------------------------- */

.jobs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.job { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.job img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
.job:hover img { transform: scale(1.04); }
.job__body { position: relative; z-index: 1; display: grid; gap: 0.35rem; padding: 1.15rem 1.25rem 1.35rem; background: var(--card); }
.job h3 { font-size: var(--text-2xl); }
.job p { font-size: var(--text-base); line-height: 1.5; color: var(--muted); }

/* --- Doors --------------------------------------------------------------------- */

.doors { padding-block: 4.5rem; background: #ECE5D8; border-block: 1px solid var(--line); }
.doors__inner { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 2.3fr); gap: 2.5rem; align-items: center; }
.doors__copy h2 { margin: 0.8rem 0 1rem; font-size: var(--text-5xl); line-height: 1.05; }
.doors__copy p:not(.kicker) { font-size: var(--text-lg); line-height: 1.5; color: var(--muted); }
.doors__row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.75rem; }
.doors__row figure { display: flex; flex-direction: column; gap: 0.55rem; }
.doors__row img { width: 100%; aspect-ratio: 3 / 4.4; object-fit: cover; border-radius: 8px; }
.doors__row figcaption { font-size: var(--text-sm); font-weight: 600; }

/* --- Reviews ------------------------------------------------------------------- */

.reviews { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr); gap: 1rem; }
.review { display: flex; flex-direction: column; gap: 1rem; padding: 1.6rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.review blockquote { margin: 0; font-size: var(--text-lg); line-height: 1.55; }
.review--lead { background: var(--navy); border-color: var(--navy); color: #fff; }
.review--lead blockquote { font-family: var(--font-heading); font-size: var(--text-3xl); line-height: 1.25; }
.review__who { display: flex; align-items: center; gap: 0.75rem; margin-top: auto; font-size: var(--text-sm); color: var(--muted); }
.review--lead .review__who { color: rgba(255, 255, 255, 0.75); }
.review__who strong { display: block; font-size: var(--text-base); color: var(--foreground); }
.review--lead .review__who strong { color: #fff; }
.review__who img { width: 2.6rem; height: 2.6rem; border-radius: 50%; object-fit: cover; }
.stars { display: flex; gap: 0.2rem; color: #B7862F; }
.review--lead .stars { color: var(--brass-hi); }
.stars svg { width: 1rem; height: 1rem; fill: currentColor; }

/* --- Team ------------------------------------------------------------------------ */

.section--flush { padding-top: 1rem; }
.team { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.person { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.person img { width: 100%; aspect-ratio: 4 / 4.6; object-fit: cover; object-position: center 25%; }
.person div { padding: 1rem 1.2rem 1.2rem; border-top: 3px solid var(--brass); }
.person h3 { font-size: var(--text-2xl); }
.person p { margin-top: 0.2rem; font-size: var(--text-sm); color: var(--muted); }

/* --- FAQ ------------------------------------------------------------------------- */

.faq { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.faq__intro { position: sticky; top: 7rem; }
.faq__intro h2 { margin-top: 0.8rem; font-size: var(--section-head-size); line-height: 1.02; max-width: 12ch; }
.accordion__item { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.accordion__trigger h3 { font-size: var(--text-2xl); }
.accordion .badge-num { width: 2.1rem; height: 2.1rem; }
.accordion .badge-num svg { width: 1rem; height: 1rem; transition: transform 0.3s; }
.accordion__item[data-open='true'] .badge-num svg { transform: rotate(45deg); }
.accordion__panel p { color: var(--muted); }

/* --- Call band ---------------------------------------------------------------------- */

.call-band { position: relative; margin-top: 2rem; background: var(--navy); color: #fff; }
.call-band__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.call-band::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 18, 30, 0.94) 0%, rgba(10, 18, 30, 0.82) 55%, rgba(10, 18, 30, 0.55) 100%); }
.call-band__inner { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 2.5rem; align-items: center; padding-block: 5.5rem; }
.call-band .kicker { color: var(--brass-hi); }
.call-band h2 { margin: 0.8rem 0 1rem; font-size: var(--text-7xl); line-height: 1.02; max-width: 14ch; }
.call-band p:not(.kicker) { max-width: 44ch; font-size: var(--text-lg); line-height: 1.55; color: rgba(255, 255, 255, 0.84); }
.call-band__actions { display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; }
.call-band .secondary-button { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.55); }

.call-band__phone {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 1rem 1.6rem 1.1rem;
  border-radius: 14px;
  background: linear-gradient(145deg, var(--brass-hi), var(--brass) 55%, var(--brass-lo));
  color: var(--navy);
  font-family: var(--font-heading);
  font-size: clamp(1.9rem, 3vw, 2.8rem);
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 24px 40px -24px rgba(0, 0, 0, 0.7);
}

.call-band__phone span { font-family: var(--font-body); font-size: var(--text-sm); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }

/* --- Footer ------------------------------------------------------------------------ */

.site-footer { padding-block: 4.5rem 3rem; border-radius: 0; background: #0B1522; color: #fff; }
.footer-top { display: grid; grid-template-columns: 1fr auto; gap: 3rem; align-items: start; }
.footer-brand { font-family: var(--font-heading); font-size: var(--text-5xl); font-weight: 700; line-height: 1.05; }
.footer-nav { display: grid; grid-template-columns: repeat(3, minmax(9rem, auto)); gap: 2.5rem; }
.footer-nav h3 { margin-bottom: 1rem; font-family: var(--font-body); font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brass-hi); }
.footer-nav ul { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-nav a { font-size: var(--text-lg); color: rgba(255, 255, 255, 0.86); transition: color 0.2s; }
.footer-nav a:hover { color: #fff; }
.footer-legal-bar { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, 0.14); font-size: var(--text-base); color: rgba(255, 255, 255, 0.72); }
.footer-legal-bar div { display: flex; gap: 1.25rem; }

/* --- Laptop and below ---------------------------------------------------------------- */

@media (width <= 1100px) {
  .tag-rail { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 2.5rem; }
  .tag-rail::before { display: none; }
  .keytag__string { height: 1.4rem; }
  .keytag__string::before { content: ''; display: block; width: 0.8rem; height: 0.8rem; margin: -0.4rem 0 0 -0.35rem; border-radius: 50%; background: linear-gradient(145deg, var(--brass-hi), var(--brass-lo)); }
  .jobs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .doors__inner { grid-template-columns: minmax(0, 1fr); }
  .reviews { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .review--lead { grid-column: 1 / -1; }
}

@media (width <= 900px) {
  .log__list { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .log__list::before { left: 0.5rem; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
  .log__list li { display: grid; grid-template-columns: 5.2rem minmax(0, 1fr); column-gap: 0.75rem; padding: 0 0 1.4rem 2rem; }
  .log__list li::before { top: 0.35rem; }
  .log__list time { grid-row: span 2; font-size: var(--text-3xl); }
  .log__list h3 { margin-top: 0; }
  .faq, .call-band__inner { grid-template-columns: minmax(0, 1fr); }
  .faq__intro { position: static; }
}

@media (width <= 768px) {
  .hero { min-height: 0; }
  /* The copy spans the full width on a phone, so the scrim has to as well. */
  .hero::after { background: linear-gradient(180deg, rgba(10, 18, 30, 0.62) 0%, rgba(10, 18, 30, 0.84) 32%, rgba(10, 18, 30, 0.92) 100%); }
  .hero__inner { padding-block: 7.5rem 3rem; }
  .hero__title { font-size: clamp(2.7rem, 12.5vw, 3.8rem); }
  .hero__lede { font-size: var(--text-lg); }
  .open-now { gap: 0.8rem; font-size: var(--text-sm); }
  .open-now__tag { width: 3.8rem; height: 3.8rem; font-size: 1rem; }

  .tag-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.25rem 0.75rem; }
  .keytag__disc { width: min(100%, 9rem); }
  .keytag > p { margin-top: 1.2rem; }

  .log { padding-block: 3.5rem; }
  .log__head h2 { font-size: var(--text-6xl); }

  .jobs { grid-template-columns: minmax(0, 1fr); }
  .doors { padding-block: 3.5rem; }
  .doors__row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .doors__row figure:last-child { grid-column: 1 / -1; }
  .doors__row figure:last-child img { aspect-ratio: 16 / 10; }

  .reviews { grid-template-columns: minmax(0, 1fr); }
  .review--lead blockquote { font-size: var(--text-2xl); }
  .team { grid-template-columns: minmax(0, 1fr); }
  .person img { aspect-ratio: 4 / 3.6; }

  .faq__intro h2, .call-band h2 { font-size: var(--text-6xl); }
  .call-band__inner { padding-block: 4rem; }
  .call-band__phone { width: 100%; }
  .call-band__actions .btn { width: 100%; }

  .footer-top { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .footer-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
  .footer-brand { font-size: var(--text-4xl); }
}
