/* Kilda Locksmith — keyhole + menu layout (distinct from prior sites) */

:root {
  --ink: #0c1220;
  --ink-mid: #1a2336;
  --bay: #1a6b7a;
  --bay-bright: #248a9c;
  --sand: #eef1f4;
  --sand-2: #dde3e9;
  --flare: #e85d4c;
  --white: #f8fafb;
  --muted: #4a5568;

  --font-display: "Syne", Georgia, serif;
  --font-body: "Figtree", "Segoe UI", sans-serif;

  --pad: clamp(1.15rem, 4.2vw, 3.5rem);
  --max: 68rem;
  --ease: cubic-bezier(0.25, 0.9, 0.3, 1);
  --nav-h: 3.6rem;
}

*,
*::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-size: 1.05rem;
  font-weight: 400;
  line-height: 1.65;
  color: var(--ink);
  background:
    radial-gradient(ellipse 70% 40% at 0% 0%, rgba(26, 107, 122, 0.1), transparent 50%),
    linear-gradient(180deg, var(--sand) 0%, var(--sand-2) 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--bay);
}

:focus-visible {
  outline: 2px solid var(--bay);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: var(--white);
}

.skip-link:focus {
  left: 1rem;
}

.tag {
  margin: 0 0 0.65rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bay);
}

.tag--light {
  color: var(--bay-bright);
}

/* ——— Nav ——— */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  height: var(--nav-h);
  padding: 0 var(--pad);
  background: color-mix(in srgb, var(--sand) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 8%, transparent);
}

.nav__logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: -0.03em;
  text-decoration: none;
  color: var(--ink);
}

.nav__links {
  display: flex;
  gap: 1.3rem;
  margin-left: auto;
  font-size: 0.9rem;
  font-weight: 600;
}

.nav__links a {
  text-decoration: none;
  opacity: 0.72;
  transition: opacity 0.25s var(--ease);
}

.nav__links a:hover {
  opacity: 1;
  color: var(--bay);
}

.nav__tel {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  color: var(--flare);
  white-space: nowrap;
}

/* ——— Buttons ——— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.45rem;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--bay {
  background: var(--bay);
  color: var(--white);
  border-color: var(--bay);
}

.btn--bay:hover {
  background: var(--bay-bright);
  border-color: var(--bay-bright);
  color: var(--white);
}

.btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: color-mix(in srgb, var(--white) 50%, transparent);
}

.btn--ghost:hover {
  border-color: var(--white);
  color: var(--white);
  background: color-mix(in srgb, var(--white) 10%, transparent);
}

/* ——— HERO ——— */
.hero {
  position: relative;
  min-height: calc(100svh - var(--nav-h));
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.hero__stage {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero__stage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 40%;
  transform: scale(1.04);
  animation: slow-pan 26s var(--ease) infinite alternate;
}

.hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(12, 18, 32, 0.92) 0%, rgba(12, 18, 32, 0.45) 42%, rgba(12, 18, 32, 0.2) 100%),
    linear-gradient(90deg, rgba(12, 18, 32, 0.35) 0%, transparent 55%);
}

.hero__dock {
  position: relative;
  z-index: 2;
  padding: clamp(2rem, 6vh, 3.5rem) var(--pad) clamp(2.25rem, 5vh, 3.25rem);
  max-width: 38rem;
  color: var(--white);
  /* Structural dock — not a floating badge */
  border-top: 3px solid var(--bay);
  background: linear-gradient(180deg, transparent, rgba(12, 18, 32, 0.25));
}

.hero__brand {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.5rem, 7.5vw, 4.75rem);
  line-height: 0.92;
  letter-spacing: -0.045em;
  opacity: 0;
  animation: rise 0.9s var(--ease) 0.12s forwards;
}

.hero__headline {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.2rem, 2.8vw, 1.65rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
  max-width: 18ch;
  opacity: 0;
  animation: rise 0.9s var(--ease) 0.28s forwards;
}

.hero__sub {
  margin: 0 0 1.6rem;
  font-weight: 300;
  font-size: 1.05rem;
  color: color-mix(in srgb, var(--white) 85%, transparent);
  max-width: 32ch;
  opacity: 0;
  animation: rise 0.9s var(--ease) 0.42s forwards;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  opacity: 0;
  animation: rise 0.9s var(--ease) 0.55s forwards;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(1.35rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slow-pan {
  from {
    transform: scale(1.04) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.1) translate3d(1.5%, -1%, 0);
  }
}

/* ——— ABOUT (keyhole) ——— */
.about {
  padding: clamp(4rem, 10vh, 7rem) var(--pad);
  max-width: calc(var(--max) + var(--pad) * 2);
  margin: 0 auto;
}

.about__layout {
  display: grid;
  grid-template-columns: minmax(14rem, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

/* Classic keyhole silhouette — unique to this site */
.about__keyhole {
  margin: 0;
  justify-self: center;
  width: min(100%, 20rem);
  aspect-ratio: 3 / 4.4;
  overflow: hidden;
  background: var(--ink-mid);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 140'%3E%3Ccircle cx='50' cy='48' r='36' fill='black'/%3E%3Crect x='36' y='72' width='28' height='58' rx='4' fill='black'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 140'%3E%3Ccircle cx='50' cy='48' r='36' fill='black'/%3E%3Crect x='36' y='72' width='28' height='58' rx='4' fill='black'/%3E%3C/svg%3E");
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}

.about__keyhole img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: contrast(1.05) saturate(0.92);
}

.about__body h2 {
  margin: 0 0 1.15rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.85rem, 4vw, 2.85rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
  max-width: 14ch;
}

.about__body > p {
  margin: 0 0 1rem;
  color: var(--muted);
  max-width: 40ch;
}

.about__meta {
  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) 12%, transparent);
}

.about__meta dt {
  margin: 0 0 0.35rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bay);
}

.about__meta dd {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.about__meta a {
  text-decoration: none;
}

.about__meta a:hover {
  color: var(--bay);
}

/* ——— SERVICES (menu) ——— */
.services {
  background: var(--ink);
  color: var(--white);
  padding: clamp(3.5rem, 9vh, 6rem) 0 clamp(4rem, 10vh, 6.5rem);
  /* Soft wave top — different from diagonal / copper seam */
  border-radius: 2.5rem 2.5rem 0 0;
  margin-top: 1rem;
}

.services__intro {
  padding: 0 var(--pad) clamp(2rem, 4vh, 2.75rem);
  max-width: calc(var(--max) + var(--pad) * 2);
  margin: 0 auto;
}

.services__intro h2 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.9rem, 4.2vw, 3rem);
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.services__intro > p {
  margin: 0;
  font-weight: 300;
  color: color-mix(in srgb, var(--white) 68%, transparent);
  max-width: 32ch;
}

.menu {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: calc(var(--max) + var(--pad) * 2);
  margin-inline: auto;
  border-top: 1px solid color-mix(in srgb, var(--white) 14%, transparent);
}

.menu__item {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(10rem, 0.7fr);
  gap: clamp(1rem, 3vw, 2rem);
  align-items: center;
  padding: clamp(1.5rem, 3.5vh, 2.25rem) var(--pad);
  border-bottom: 1px solid color-mix(in srgb, var(--white) 14%, transparent);
  opacity: 0;
  transform: translateY(1.1rem);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.menu__item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.menu__copy {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.menu__code {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--flare);
  line-height: 1.2;
}

.menu__copy h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.2rem, 2.3vw, 1.55rem);
  letter-spacing: -0.025em;
}

.menu__copy p {
  margin: 0;
  font-weight: 300;
  font-size: 0.98rem;
  color: color-mix(in srgb, var(--white) 70%, transparent);
  max-width: 40ch;
}

.menu__shot {
  overflow: hidden;
  aspect-ratio: 3 / 2;
  /* Soft parallelogram — unique cut */
  clip-path: polygon(8% 0, 100% 0, 92% 100%, 0 100%);
}

.menu__shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
  filter: saturate(0.88) contrast(1.04);
}

.menu__item:hover .menu__shot img {
  transform: scale(1.06);
}

.services__end {
  text-align: center;
  padding: clamp(3rem, 7vh, 4.5rem) var(--pad) 0;
  max-width: 32rem;
  margin: 0 auto;
}

.services__end > p:first-child {
  margin: 0 0 1.1rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.services__end .btn {
  width: 100%;
  max-width: 26rem;
}

.services__addr {
  margin: 1.15rem 0 0;
  font-size: 0.9rem;
  color: color-mix(in srgb, var(--white) 60%, transparent);
}

.services__addr a {
  text-decoration: none;
}

.services__addr a:hover {
  color: var(--bay-bright);
}

/* ——— Footer ——— */
.foot {
  padding: 2rem var(--pad) 2.5rem;
  display: grid;
  gap: 0.5rem;
  background: var(--sand);
}

.foot strong {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.foot__line {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.7rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.foot__line a {
  text-decoration: none;
  font-weight: 600;
}

.foot__copy {
  margin: 0.4rem 0 0;
  font-size: 0.78rem;
  color: color-mix(in srgb, var(--ink) 42%, transparent);
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(1.2rem);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ——— Responsive ——— */
@media (max-width: 880px) {
  .about__layout {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .about__body {
    width: 100%;
  }

  .about__meta {
    grid-template-columns: 1fr;
    gap: 1.1rem;
  }

  .menu__item {
    grid-template-columns: 1fr;
  }

  .menu__shot {
    max-width: 20rem;
    clip-path: polygon(4% 0, 100% 0, 96% 100%, 0 100%);
  }
}

@media (max-width: 640px) {
  .nav {
    flex-wrap: wrap;
    height: auto;
    padding: 0.75rem var(--pad);
    gap: 0.5rem 1rem;
  }

  .nav__links {
    order: 3;
    width: 100%;
    margin-left: 0;
  }

  .nav__tel {
    margin-left: auto;
  }

  .hero__cta {
    flex-direction: column;
    align-items: stretch;
  }

  .services {
    border-radius: 1.5rem 1.5rem 0 0;
  }

  .menu__copy {
    grid-template-columns: 1.75rem minmax(0, 1fr);
  }

  .foot__line {
    flex-direction: column;
    gap: 0.3rem;
  }

  .foot__line span[aria-hidden="true"] {
    display: none;
  }
}
