/* Locksmith on the Creek — landing */

:root {
  --ink: #102226;
  --ink-soft: #2a454b;
  --paper: #eef3f2;
  --mist: #dce7e5;
  --creek: #0e2a2f;
  --creek-mid: #1a454d;
  --brass: #c4a574;
  --brass-deep: #9a7a4a;
  --foam: #f2f7f6;
  --shadow: rgba(14, 42, 47, 0.28);
  --radius: 2px;
  --max: 1120px;
  --header-h: 4.25rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-display: "Bricolage Grotesque", Georgia, serif;
  --font-body: "Sora", "Segoe UI", sans-serif;
}

*,
*::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;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(196, 165, 116, 0.1), transparent 55%),
    radial-gradient(900px 500px at 100% 20%, rgba(26, 69, 77, 0.1), transparent 50%),
    linear-gradient(180deg, #f0f5f4 0%, var(--mist) 42%, var(--paper) 100%);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--creek-mid);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100%;
  z-index: 1000;
  padding: 0.75rem 1rem;
  background: var(--creek);
  color: var(--foam);
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

.eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass-deep);
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
}

/* Header */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  background: linear-gradient(180deg, rgba(14, 42, 47, 0.72), rgba(14, 42, 47, 0));
  color: var(--foam);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(100% - 2rem, var(--max));
  height: 100%;
  margin-inline: auto;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--foam);
}

.logo:hover {
  color: var(--foam);
}

.logo__mark {
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #e6d3b0, var(--brass) 55%, var(--brass-deep));
  box-shadow: 0 0 0 2px rgba(247, 244, 238, 0.25);
}

.logo__text {
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.nav__list {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 1.5rem;
  align-items: center;
}

.nav a {
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  color: rgba(247, 244, 238, 0.92);
}

.nav a:hover {
  color: #fff;
}

.nav__cta {
  padding: 0.55rem 0.95rem;
  border: 1px solid rgba(196, 165, 116, 0.7);
  color: var(--brass) !important;
}

.nav__cta:hover {
  background: rgba(196, 165, 116, 0.15);
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.35rem;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 1px solid rgba(247, 244, 238, 0.35);
  background: rgba(14, 42, 47, 0.35);
  cursor: pointer;
}

.nav-toggle__bar {
  display: block;
  width: 1.1rem;
  height: 2px;
  margin-inline: auto;
  background: var(--foam);
  transition: transform 0.35s var(--ease), opacity 0.25s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:first-child {
  transform: translateY(4px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

.mobile-nav {
  position: absolute;
  inset: var(--header-h) 0 auto;
  padding: 1rem 1rem 1.25rem;
  background: rgba(14, 42, 47, 0.96);
  border-bottom: 1px solid rgba(196, 165, 116, 0.25);
  backdrop-filter: blur(8px);
}

.mobile-nav[hidden] {
  display: none;
}

.mobile-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

.mobile-nav a {
  display: block;
  padding: 0.85rem 0.5rem;
  text-decoration: none;
  color: var(--foam);
  font-weight: 500;
  border-bottom: 1px solid rgba(247, 244, 238, 0.08);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.75rem 1.35rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--brass);
  color: var(--creek);
}

.btn--primary:hover {
  background: #d4b98a;
  color: var(--creek);
}

.btn--ghost {
  border-color: rgba(247, 244, 238, 0.55);
  color: var(--foam);
  background: transparent;
}

.btn--ghost:hover {
  border-color: var(--foam);
  color: var(--foam);
  background: rgba(247, 244, 238, 0.08);
}

/* Hero */

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  color: var(--foam);
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 65% center;
  animation: hero-drift 18s var(--ease) infinite alternate;
}

.hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(8, 24, 28, 0.88) 0%, rgba(8, 24, 28, 0.55) 48%, rgba(8, 24, 28, 0.25) 100%),
    linear-gradient(0deg, rgba(8, 24, 28, 0.75) 0%, transparent 45%);
}

.hero__content {
  position: relative;
  z-index: 1;
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  padding: calc(var(--header-h) + 2rem) 0 3.5rem;
  max-width: 36rem;
  margin-right: auto;
  margin-left: max(1rem, calc((100% - var(--max)) / 2));
  animation: rise-in 0.9s var(--ease) both;
}

.hero__brand {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 8vw, 4.5rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.035em;
  max-width: 12ch;
}

.hero__headline {
  margin: 0 0 1rem;
  font-size: clamp(1.35rem, 3.4vw, 1.85rem);
  font-weight: 500;
  letter-spacing: -0.015em;
  color: rgba(247, 244, 238, 0.94);
  max-width: 22ch;
}

.hero__lede {
  margin: 0 0 1.75rem;
  max-width: 34ch;
  font-size: 1rem;
  color: rgba(247, 244, 238, 0.82);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

@keyframes hero-drift {
  from {
    transform: scale(1.04) translate3d(0, 0, 0);
  }

  to {
    transform: scale(1.1) translate3d(-1.5%, -1%, 0);
  }
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(1.25rem);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* About */

.about {
  padding: clamp(4rem, 10vw, 7rem) 0;
}

.about__grid {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  display: grid;
  gap: 2.5rem;
  align-items: end;
}

.about__copy {
  max-width: 34rem;
  animation: rise-in 0.8s var(--ease) both;
}

.about__copy h2 {
  font-size: clamp(2rem, 5vw, 3.15rem);
  margin-bottom: 1.25rem;
  color: var(--creek);
  max-width: 14ch;
}

.about__text {
  margin: 0 0 1rem;
  color: var(--ink-soft);
}

.about__text:last-of-type {
  margin-bottom: 0;
}

.about__address {
  margin: 1.5rem 0 0;
  font-style: normal;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--creek);
  border-left: 2px solid var(--brass);
  padding-left: 1rem;
}

.about__address a {
  color: var(--brass-deep);
  text-decoration: none;
  font-weight: 600;
}

.about__address a:hover {
  color: var(--creek-mid);
}

.about__figure {
  margin: 0;
  position: relative;
  justify-self: stretch;
}

.about__figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.04);
  clip-path: polygon(8% 0, 100% 0, 100% 100%, 0 92%);
  animation: rise-in 1s var(--ease) 0.1s both;
}

.about__caption {
  margin-top: 0.85rem;
  font-size: 0.88rem;
  color: var(--ink-soft);
  max-width: 36ch;
}

/* Services */

.services {
  padding: 0 0 clamp(4rem, 10vw, 7rem);
}

.services__intro {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto 2.5rem;
}

.services__intro h2 {
  font-size: clamp(2rem, 5vw, 3.15rem);
  color: var(--creek);
  margin-bottom: 0.75rem;
}

.services__lede {
  margin: 0;
  color: var(--ink-soft);
  max-width: 36ch;
}

.services__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid rgba(14, 42, 47, 0.14);
}

.service {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  display: grid;
  gap: 1.5rem;
  padding: 2rem 0;
  border-bottom: 1px solid rgba(14, 42, 47, 0.14);
  align-items: center;
}

.service__visual {
  overflow: hidden;
}

.service__visual img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.service:hover .service__visual img {
  transform: scale(1.04);
}

.service__body {
  position: relative;
  padding-top: 0.25rem;
}

.service__index {
  display: block;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--brass-deep);
  margin-bottom: 0.5rem;
}

.service__title {
  font-size: clamp(1.6rem, 3.5vw, 2.25rem);
  color: var(--creek);
  margin-bottom: 0.65rem;
}

.service__text {
  margin: 0;
  color: var(--ink-soft);
  max-width: 36ch;
}

.services__cta {
  width: min(100% - 2rem, var(--max));
  margin: 2.75rem auto 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 0 0;
}

.services__cta p {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3vw, 1.7rem);
  font-weight: 700;
  color: var(--creek);
  max-width: 18ch;
}

.services__cta .btn--primary {
  color: var(--creek);
}

/* Footer */

.site-footer {
  background: var(--creek);
  color: rgba(247, 244, 238, 0.82);
  padding: 2.5rem 0;
}

.site-footer__inner {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  display: grid;
  gap: 0.55rem;
}

.site-footer__brand {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--foam);
}

.site-footer__address {
  margin: 0;
  font-style: normal;
  font-size: 0.92rem;
  color: rgba(247, 244, 238, 0.78);
}

.site-footer__meta {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.92rem;
}

.site-footer a {
  color: var(--brass);
  text-decoration: none;
}

.site-footer a:hover {
  color: #e0c79a;
}

.site-footer__note {
  margin: 0.5rem 0 0;
  font-size: 0.82rem;
  color: rgba(247, 244, 238, 0.55);
}

/* Reveal on scroll */

.reveal {
  opacity: 0;
  transform: translateY(1.1rem);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Breakpoints */

@media (min-width: 720px) {
  .nav__list {
    display: flex;
  }

  .nav-toggle,
  .mobile-nav {
    display: none !important;
  }

  .about__grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3.5rem;
  }

  .about__figure {
    margin-top: 2.5rem;
  }

  .service {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
    padding: 2.75rem 0;
  }

  .service--reverse .service__visual {
    order: 2;
  }

  .service--reverse .service__body {
    order: 1;
    justify-self: end;
    text-align: right;
  }

  .service--reverse .service__text {
    margin-left: auto;
  }
}

@media (min-width: 980px) {
  .hero__content {
    padding-bottom: 4.5rem;
  }

  .about__figure img {
    min-height: 28rem;
  }

  .service__visual img {
    min-height: 17rem;
  }
}
