/* Oxenham Lock & Key — landing */

:root {
  --stone: #1c1917;
  --stone-mid: #3f3a36;
  --ash: #ebe6df;
  --ash-deep: #d9d2c8;
  --amber: #e8a54b;
  --amber-deep: #c4842f;
  --fog: #f6f3ee;
  --white: #fffcf8;
  --max: 1180px;
  --header-h: 4.5rem;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --font-display: "Syne", "Arial Narrow", sans-serif;
  --font-body: "Figtree", "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.0625rem;
  line-height: 1.65;
  color: var(--stone);
  background:
    linear-gradient(135deg, rgba(232, 165, 75, 0.08), transparent 40%),
    linear-gradient(180deg, var(--fog) 0%, var(--ash) 55%, var(--ash-deep) 100%);
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--amber-deep);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100%;
  z-index: 1000;
  padding: 0.75rem 1rem;
  background: var(--stone);
  color: var(--white);
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

.eyebrow {
  margin: 0 0 0.65rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber-deep);
}

h1,
h2,
h3,
.hero__brand,
.logo,
.site-footer__brand {
  font-family: var(--font-display);
  letter-spacing: -0.03em;
}

/* Header */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  height: var(--header-h);
  color: var(--white);
  background: linear-gradient(180deg, rgba(28, 25, 23, 0.78), transparent);
}

.site-header__inner {
  width: min(100% - 2rem, var(--max));
  height: 100%;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  text-decoration: none;
  font-weight: 700;
  font-size: clamp(1rem, 2.4vw, 1.2rem);
  color: var(--white);
}

.nav__list {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 1.75rem;
  align-items: center;
}

.nav a {
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  color: rgba(255, 252, 248, 0.9);
}

.nav a:hover {
  color: var(--white);
}

.nav__phone {
  color: var(--amber) !important;
  border-bottom: 1px solid rgba(232, 165, 75, 0.55);
  padding-bottom: 0.1rem;
}

.nav-toggle {
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid rgba(255, 252, 248, 0.35);
  background: rgba(28, 25, 23, 0.4);
  display: inline-grid;
  place-content: center;
  gap: 0.35rem;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 1.15rem;
  height: 2px;
  background: var(--white);
  transition: transform 0.3s var(--ease);
}

.nav-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(3px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-3px) rotate(-45deg);
}

.mobile-nav {
  position: absolute;
  inset: var(--header-h) 0 auto;
  background: rgba(28, 25, 23, 0.97);
  padding: 0.5rem 1rem 1.25rem;
  border-bottom: 1px solid rgba(232, 165, 75, 0.25);
}

.mobile-nav[hidden] {
  display: none;
}

.mobile-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-nav a {
  display: block;
  padding: 0.9rem 0.35rem;
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid rgba(255, 252, 248, 0.08);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.05rem;
  padding: 0.7rem 1.35rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px 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--solid {
  background: var(--amber);
  color: var(--stone);
}

.btn--solid:hover {
  background: #f0b45c;
  color: var(--stone);
}

.btn--line {
  border-color: rgba(255, 252, 248, 0.55);
  color: var(--white);
}

.btn--line:hover {
  border-color: var(--white);
  color: var(--white);
}

.btn--dark {
  background: var(--stone);
  color: var(--white);
}

.btn--dark:hover {
  background: #2a2522;
  color: var(--white);
}

/* Hero — full-bleed, content anchored low-right on larger screens */

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: 100vh;
  min-height: 100svh;
  color: var(--white);
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  transform: scale(1.06);
  animation: kenburns 20s var(--ease) infinite alternate;
}

.hero__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(28, 25, 23, 0.5) 0%, rgba(28, 25, 23, 0.22) 40%, rgba(28, 25, 23, 0.9) 100%),
    linear-gradient(90deg, rgba(28, 25, 23, 0.82) 0%, rgba(28, 25, 23, 0.45) 52%, rgba(28, 25, 23, 0.2) 100%);
}

.hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: calc(var(--header-h) + 1.5rem) 0 2.75rem;
}

.hero__content {
  width: min(100% - 2rem, var(--max));
  max-width: 36rem;
  margin-left: max(1rem, calc((100% - var(--max)) / 2));
  margin-right: auto;
  text-align: left;
  animation: fade-up 0.95s var(--ease) both;
}

.hero__brand {
  margin: 0 0 0.85rem;
  font-size: clamp(2.15rem, 7.5vw, 4.4rem);
  font-weight: 800;
  line-height: 1.02;
  text-wrap: balance;
}

.hero__headline {
  margin: 0 0 0.85rem;
  font-size: clamp(1.2rem, 3vw, 1.7rem);
  font-weight: 600;
  line-height: 1.25;
  max-width: 20ch;
  color: rgba(255, 252, 248, 0.95);
}

.hero__lede {
  margin: 0 0 1.5rem;
  max-width: 34ch;
  line-height: 1.55;
  color: rgba(255, 252, 248, 0.84);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

@keyframes kenburns {
  from {
    transform: scale(1.06);
  }

  to {
    transform: scale(1.12) translate(-1%, 0.6%);
  }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(1.4rem);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

/* About — image band with overlapping text panel */

.about {
  padding: clamp(3.5rem, 9vw, 6.5rem) 0;
}

.about__shell {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  display: grid;
  gap: 0;
  position: relative;
}

.about__visual {
  overflow: hidden;
}

.about__visual img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  filter: contrast(1.05) saturate(0.95);
}

.about__panel {
  background: var(--white);
  padding: clamp(1.75rem, 4vw, 2.75rem);
  box-shadow: 0 18px 50px rgba(28, 25, 23, 0.12);
  margin-top: -2.5rem;
  width: min(100%, 34rem);
  justify-self: start;
  position: relative;
  z-index: 1;
}

.about__panel h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.9rem, 4.5vw, 2.85rem);
  line-height: 1.08;
  max-width: 14ch;
  color: var(--stone);
}

.about__panel p {
  margin: 0 0 0.95rem;
  color: var(--stone-mid);
}

.about__address {
  margin: 1.4rem 0 0;
  padding-top: 1.15rem;
  border-top: 1px solid rgba(28, 25, 23, 0.12);
  font-style: normal;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--stone);
}

.about__address a {
  color: var(--amber-deep);
  font-weight: 600;
  text-decoration: none;
}

.about__address a:hover {
  color: var(--stone);
}

/* Services — stacked media + copy strips */

.services {
  padding: 0 0 clamp(3.5rem, 9vw, 6.5rem);
}

.services__head {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto 2.25rem;
}

.services__head h2 {
  margin: 0 0 0.7rem;
  font-size: clamp(1.9rem, 4.5vw, 2.85rem);
  color: var(--stone);
}

.services__lede {
  margin: 0;
  color: var(--stone-mid);
  max-width: 34ch;
}

.services__stack {
  display: grid;
  gap: 1.25rem;
}

.service-block {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  display: grid;
  background: var(--white);
  overflow: hidden;
}

.service-block__media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.service-block:hover .service-block__media img {
  transform: scale(1.04);
}

.service-block__copy {
  padding: 1.5rem 1.35rem 1.7rem;
}

.service-block__num {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  color: var(--amber-deep);
  margin-bottom: 0.4rem;
}

.service-block h3 {
  margin: 0 0 0.55rem;
  font-size: clamp(1.45rem, 3vw, 1.9rem);
  color: var(--stone);
}

.service-block p {
  margin: 0;
  color: var(--stone-mid);
  max-width: 38ch;
}

.services__foot {
  width: min(100% - 2rem, var(--max));
  margin: 2.5rem auto 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(28, 25, 23, 0.14);
}

.services__foot p {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 3vw, 1.65rem);
  font-weight: 700;
  max-width: 18ch;
  line-height: 1.2;
}

/* Footer */

.site-footer {
  background: var(--stone);
  color: rgba(255, 252, 248, 0.78);
  padding: 2.75rem 0;
}

.site-footer__inner {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  display: grid;
  gap: 0.45rem;
}

.site-footer__brand {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
}

.site-footer__address {
  margin: 0;
  font-style: normal;
  font-size: 0.92rem;
}

.site-footer__meta {
  margin: 0.25rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.92rem;
}

.site-footer a {
  color: var(--amber);
  text-decoration: none;
}

.site-footer a:hover {
  color: #f0b45c;
}

.site-footer__copy {
  margin: 0.65rem 0 0;
  font-size: 0.82rem;
  color: rgba(255, 252, 248, 0.5);
}

/* Reveal */

.reveal {
  opacity: 0;
  transform: translateY(1rem);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Breakpoints */

@media (min-width: 760px) {
  .nav__list {
    display: flex;
  }

  .nav-toggle,
  .mobile-nav {
    display: none !important;
  }

  .about__shell {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: stretch;
    min-height: 28rem;
  }

  .about__visual {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .about__visual img {
    min-height: 30rem;
    aspect-ratio: auto;
  }

  .about__panel {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    margin: 0 0 0 -4rem;
    width: auto;
  }

  .service-block {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: stretch;
  }

  .service-block:nth-child(even) {
    grid-template-columns: 0.85fr 1.15fr;
  }

  .service-block:nth-child(even) .service-block__media {
    order: 2;
  }

  .service-block__copy {
    display: grid;
    align-content: center;
    padding: 2rem 2.25rem;
  }

  .service-block__media img {
    height: 100%;
    min-height: 16rem;
    aspect-ratio: auto;
    object-fit: cover;
  }
}

@media (min-width: 1040px) {
  .hero__inner {
    padding-bottom: 4.25rem;
  }

  .about__panel {
    margin-left: -6rem;
    padding: 2.75rem 2.5rem;
  }
}
