/* Brissy Locksmith — production styles */

:root {
  --ink: #0e1419;
  --ink-soft: #2a333c;
  --paper: #e4e9ee;
  --paper-deep: #cfd7df;
  --brass: #a67c3d;
  --brass-bright: #c49a52;
  --brass-dim: #7a5c2e;
  --white: #f7f9fb;
  --shade: rgba(14, 20, 25, 0.55);
  --shade-heavy: rgba(14, 20, 25, 0.72);

  --font-display: "Bricolage Grotesque", Georgia, serif;
  --font-body: "Sora", "Segoe UI", sans-serif;

  --spine: 3.25rem;
  --pad: clamp(1.25rem, 4vw, 3.5rem);
  --max: 72rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --radius: 2px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    linear-gradient(135deg, rgba(166, 124, 61, 0.07) 0%, transparent 42%),
    linear-gradient(color-mix(in srgb, var(--ink) 4.5%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--ink) 4.5%, transparent) 1px, transparent 1px),
    linear-gradient(180deg, var(--paper) 0%, var(--paper-deep) 100%);
  background-size: auto, 48px 48px, 48px 48px, auto;
  background-attachment: fixed;
  padding-left: var(--spine);
  min-height: 100vh;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--brass-dim);
}

:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--white);
  padding: 0.75rem 1rem;
  z-index: 100;
}

.skip-link:focus {
  left: var(--spine);
}

/* ——— Left spine ——— */
.spine {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: var(--spine);
  background: var(--ink);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
}

.spine__text {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--brass-bright);
  white-space: nowrap;
}

/* ——— Top bar ——— */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.85rem var(--pad);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 10%, transparent);
}

.topbar__brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--ink);
}

.topbar__nav {
  display: flex;
  gap: 1.25rem;
  margin-left: auto;
  font-size: 0.88rem;
  font-weight: 500;
}

.topbar__nav a {
  text-decoration: none;
  opacity: 0.75;
  transition: opacity 0.25s var(--ease), color 0.25s var(--ease);
}

.topbar__nav a:hover {
  opacity: 1;
  color: var(--brass-dim);
}

.topbar__phone {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--brass-dim);
  white-space: nowrap;
}

/* ——— Buttons ——— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.55rem;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  border: 1.5px solid transparent;
  border-radius: var(--radius);
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-2px);
  color: inherit;
}

.btn--primary {
  background: var(--brass);
  color: var(--ink);
  border-color: var(--brass);
}

.btn--primary:hover {
  background: var(--brass-bright);
  border-color: var(--brass-bright);
  color: var(--ink);
}

.btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: color-mix(in srgb, var(--white) 55%, transparent);
}

.btn--ghost:hover {
  border-color: var(--white);
  color: var(--white);
  background: color-mix(in srgb, var(--white) 10%, transparent);
}

.section-kicker {
  margin: 0 0 0.65rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass-dim);
}

/* ——— HERO ——— */
.hero {
  position: relative;
  min-height: min(100vh, 56rem);
  min-height: 100svh;
  display: grid;
  align-items: end;
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 55% 40%;
  transform: scale(1.06);
  animation: hero-drift 22s var(--ease) infinite alternate;
  will-change: transform;
}

.hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, var(--shade-heavy) 0%, var(--shade) 42%, transparent 72%),
    linear-gradient(0deg, rgba(14, 20, 25, 0.78) 0%, transparent 48%);
}

.hero__content {
  position: relative;
  z-index: 1;
  padding: clamp(5rem, 12vh, 8rem) var(--pad) clamp(2.5rem, 6vh, 4rem);
  max-width: 40rem;
  color: var(--white);
}

.hero__brand {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 8vw, 5.25rem);
  line-height: 0.92;
  letter-spacing: -0.04em;
  color: var(--white);
  opacity: 0;
  transform: translateY(1.5rem);
  animation: rise 0.9s var(--ease) 0.15s forwards;
}

.hero__title {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.35rem, 3.2vw, 1.85rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
  max-width: 18ch;
  opacity: 0;
  transform: translateY(1.25rem);
  animation: rise 0.9s var(--ease) 0.35s forwards;
}

.hero__lede {
  margin: 0 0 1.75rem;
  font-weight: 300;
  font-size: 1.05rem;
  line-height: 1.55;
  max-width: 32ch;
  color: color-mix(in srgb, var(--white) 88%, transparent);
  opacity: 0;
  transform: translateY(1rem);
  animation: rise 0.9s var(--ease) 0.5s forwards;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  opacity: 0;
  transform: translateY(1rem);
  animation: rise 0.9s var(--ease) 0.65s forwards;
}

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hero-drift {
  from {
    transform: scale(1.06) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.12) translate3d(-1.5%, 1%, 0);
  }
}

/* ——— ABOUT ——— */
.about {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding: clamp(4rem, 10vh, 7rem) var(--pad);
  max-width: calc(var(--max) + var(--pad) * 2);
  margin: 0 auto;
  overflow: hidden;
}

.about__watermark {
  position: absolute;
  right: -2%;
  top: 8%;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(8rem, 22vw, 16rem);
  line-height: 0.8;
  letter-spacing: -0.06em;
  color: color-mix(in srgb, var(--ink) 5%, transparent);
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.about__copy {
  position: relative;
  z-index: 1;
}

.about__copy h2 {
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 4.5vw, 3.15rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
  max-width: 12ch;
}

.about__copy > p {
  margin: 0 0 1rem;
  color: var(--ink-soft);
  max-width: 38ch;
}

.about__facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin: 2.25rem 0 0;
  padding: 1.5rem 0 0;
  border-top: 1px solid color-mix(in srgb, var(--ink) 14%, transparent);
}

.about__facts dt {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass-dim);
  margin-bottom: 0.4rem;
}

.about__facts dd {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.98rem;
  line-height: 1.35;
  letter-spacing: -0.015em;
}

.about__facts a {
  text-decoration: none;
}

.about__facts a:hover {
  color: var(--brass-dim);
  text-decoration: underline;
}

.about__figure {
  position: relative;
  z-index: 1;
  margin: 0;
  justify-self: end;
  width: min(100%, 28rem);
  /* Asymmetric clip — lock-pin silhouette feel */
  clip-path: polygon(8% 0, 100% 0, 100% 92%, 0 100%, 0 12%);
  transform: translateX(4%) rotate(1.5deg);
}

.about__figure img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  filter: contrast(1.05) saturate(0.92);
}

.about__figure figcaption {
  position: absolute;
  left: 10%;
  bottom: 6%;
  right: 8%;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--white);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
}

/* ——— SERVICES ——— */
.services {
  position: relative;
  padding: clamp(3.5rem, 9vh, 6rem) 0 clamp(4rem, 10vh, 7rem);
  background: var(--ink);
  color: var(--white);
  margin-left: calc(var(--spine) * -1);
  padding-left: var(--spine);
}

.services::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -2.5rem;
  height: 2.5rem;
  background: var(--ink);
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
}

.services__intro {
  padding: 0 var(--pad) clamp(2.5rem, 5vh, 3.5rem);
  max-width: calc(var(--max) + var(--pad) * 2);
  margin: 0 auto;
}

.services__intro .section-kicker {
  color: var(--brass-bright);
}

.services__intro h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  letter-spacing: -0.035em;
  line-height: 1.05;
  max-width: 14ch;
}

.services__intro > p {
  margin: 0;
  color: color-mix(in srgb, var(--white) 70%, transparent);
  max-width: 36ch;
  font-weight: 300;
}

.services__list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid color-mix(in srgb, var(--white) 12%, transparent);
}

.service {
  display: grid;
  grid-template-columns: 5rem minmax(0, 1fr) minmax(10rem, 22rem);
  gap: clamp(1rem, 3vw, 2.5rem);
  align-items: center;
  padding: clamp(1.75rem, 4vh, 2.75rem) var(--pad);
  max-width: calc(var(--max) + var(--pad) * 2);
  margin: 0 auto;
  border-bottom: 1px solid color-mix(in srgb, var(--white) 12%, transparent);
  /* Stagger like lock tumblers */
  padding-left: calc(var(--pad) + (var(--i) * 1.15rem));
  opacity: 0;
  transform: translateX(-1.25rem);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.service.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.service__index {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.65rem;
  letter-spacing: -0.03em;
  color: var(--brass);
  line-height: 1;
}

.service__body h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  letter-spacing: -0.025em;
}

.service__body p {
  margin: 0;
  font-weight: 300;
  font-size: 0.98rem;
  color: color-mix(in srgb, var(--white) 72%, transparent);
  max-width: 42ch;
}

.service__visual {
  overflow: hidden;
  aspect-ratio: 5 / 3.4;
  clip-path: polygon(6% 0, 100% 0, 94% 100%, 0 100%);
}

.service__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
  filter: saturate(0.85) contrast(1.05);
}

.service:hover .service__visual img {
  transform: scale(1.06);
}

.services__cta {
  text-align: center;
  padding: clamp(3rem, 8vh, 5rem) var(--pad) 0;
  max-width: 36rem;
  margin: 0 auto;
}

.services__cta > p:first-child {
  margin: 0 0 1.15rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.services__cta .btn--primary {
  width: 100%;
  max-width: 28rem;
}

.services__address {
  margin: 1.25rem 0 0;
  font-size: 0.9rem;
  color: color-mix(in srgb, var(--white) 65%, transparent);
}

.services__address a {
  text-decoration: none;
}

.services__address a:hover {
  color: var(--brass-bright);
}

/* ——— FOOTER ——— */
.footer {
  padding: 2rem var(--pad) 2.5rem;
  border-top: 1px solid color-mix(in srgb, var(--ink) 12%, transparent);
  display: grid;
  gap: 0.65rem;
}

.footer__brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.footer__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.footer__meta a {
  text-decoration: none;
  font-weight: 500;
}

.footer__copy {
  margin: 0.5rem 0 0;
  font-size: 0.78rem;
  color: color-mix(in srgb, var(--ink) 45%, transparent);
}

/* ——— Reveal helpers ——— */
.reveal {
  opacity: 0;
  transform: translateY(1.5rem);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ——— Responsive ——— */
@media (max-width: 960px) {
  .about {
    grid-template-columns: 1fr;
  }

  .about__figure {
    width: 100%;
    max-width: 26rem;
    justify-self: start;
    transform: none;
    order: -1;
  }

  .about__facts {
    grid-template-columns: 1fr;
    gap: 1.1rem;
  }

  .service {
    grid-template-columns: 3.5rem 1fr;
    grid-template-rows: auto auto;
    padding-left: var(--pad);
  }

  .service__visual {
    grid-column: 1 / -1;
    max-width: 22rem;
  }
}

@media (max-width: 720px) {
  :root {
    --spine: 0;
  }

  body {
    padding-left: 0;
  }

  .spine {
    display: none;
  }

  .topbar {
    flex-wrap: wrap;
    gap: 0.65rem 1rem;
  }

  .topbar__nav {
    order: 3;
    width: 100%;
    margin-left: 0;
    padding-top: 0.15rem;
  }

  .topbar__phone {
    margin-left: auto;
  }

  .hero {
    min-height: 92svh;
  }

  .hero__content {
    max-width: none;
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn--ghost {
    text-align: center;
  }

  .services {
    margin-left: 0;
    padding-left: 0;
  }

  .service {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .service__index {
    font-size: 1.25rem;
  }

  .footer__meta {
    flex-direction: column;
    gap: 0.35rem;
  }

  .footer__meta span[aria-hidden="true"] {
    display: none;
  }
}

@media (max-width: 420px) {
  .hero__brand {
    font-size: 2.35rem;
  }
}
