/* Pristin Locksmiths Epping — horizon-cut layout */

:root {
  --pine: #14352e;
  --pine-deep: #0d241f;
  --fog: #e8edf0;
  --fog-2: #d5dde3;
  --ink: #14181c;
  --ink-soft: #3a434c;
  --copper: #c4653a;
  --copper-bright: #d9784a;
  --white: #f7fafb;

  --font-display: "Unbounded", Georgia, serif;
  --font-body: "Public Sans", "Segoe UI", sans-serif;

  --pad: clamp(1.2rem, 4.5vw, 3.75rem);
  --max: 70rem;
  --ease: cubic-bezier(0.2, 0.85, 0.25, 1);
  --rail-h: 3.75rem;
}

*,
*::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 80% 50% at 100% 0%, rgba(196, 101, 58, 0.08), transparent 55%),
    linear-gradient(180deg, var(--fog) 0%, var(--fog-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(--copper);
}

:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--pine);
  color: var(--white);
}

.skip-link:focus {
  left: 1rem;
}

.eyebrow {
  margin: 0 0 0.7rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--copper);
}

.eyebrow--on-dark {
  color: var(--copper-bright);
}

/* ——— Top rail ——— */
.rail {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  height: var(--rail-h);
  padding: 0 var(--pad);
  background: color-mix(in srgb, var(--fog) 90%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 8%, transparent);
}

.rail__brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--pine);
}

.rail__nav {
  display: flex;
  gap: 1.35rem;
  margin-left: auto;
  font-size: 0.88rem;
  font-weight: 600;
}

.rail__nav a {
  text-decoration: none;
  opacity: 0.7;
  transition: opacity 0.25s var(--ease);
}

.rail__nav a:hover {
  opacity: 1;
  color: var(--copper);
}

.rail__call {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.82rem;
  text-decoration: none;
  color: var(--copper);
  white-space: nowrap;
}

/* ——— Buttons ——— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.5rem;
  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--solid {
  background: var(--copper);
  color: var(--white);
  border-color: var(--copper);
}

.btn--solid:hover {
  background: var(--copper-bright);
  border-color: var(--copper-bright);
  color: var(--white);
}

.btn--line {
  background: transparent;
  color: var(--pine);
  border-color: color-mix(in srgb, var(--pine) 35%, transparent);
}

.btn--line:hover {
  border-color: var(--pine);
  color: var(--pine);
}

.btn--invert {
  background: var(--white);
  color: var(--pine);
  border-color: var(--white);
}

.btn--invert:hover {
  background: var(--fog);
  color: var(--pine);
}

/* ——— HERO ——— */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(18rem, 0.92fr) minmax(0, 1.08fr);
  min-height: calc(100svh - var(--rail-h));
  min-height: calc(100vh - var(--rail-h));
}

.hero__panel {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(2rem, 6vh, 4rem) var(--pad) clamp(2.5rem, 7vh, 4.5rem);
  background: var(--white);
  position: relative;
  z-index: 2;
}

.hero__place {
  margin: 0 0 1.25rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--copper);
  opacity: 0;
  animation: lift 0.85s var(--ease) 0.1s forwards;
}

.hero__brand {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.1rem, 5.5vw, 3.6rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
  color: var(--pine);
  max-width: 10ch;
  opacity: 0;
  animation: lift 0.85s var(--ease) 0.22s forwards;
}

.hero__title {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.15rem, 2.4vw, 1.55rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--ink);
  max-width: 16ch;
  opacity: 0;
  animation: lift 0.85s var(--ease) 0.36s forwards;
}

.hero__lede {
  margin: 0 0 1.75rem;
  font-weight: 300;
  font-size: 1.02rem;
  color: var(--ink-soft);
  max-width: 30ch;
  opacity: 0;
  animation: lift 0.85s var(--ease) 0.48s forwards;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  opacity: 0;
  animation: lift 0.85s var(--ease) 0.6s forwards;
}

.hero__visual {
  position: relative;
  overflow: hidden;
  min-height: 22rem;
}

.hero__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 45% center;
  position: absolute;
  inset: 0;
  transform: scale(1.05);
  animation: drift 24s var(--ease) infinite alternate;
}

.hero__copper {
  display: none;
}

/* Copper seam on the column divide */
.hero::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(100% * 0.92 / (0.92 + 1.08));
  width: 5px;
  background: var(--copper);
  z-index: 5;
  pointer-events: none;
}

@keyframes lift {
  from {
    opacity: 0;
    transform: translateY(1.4rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes drift {
  from {
    transform: scale(1.05) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.1) translate3d(-1.2%, 1%, 0);
  }
}

/* ——— ABOUT ——— */
.about {
  padding: clamp(3.5rem, 9vh, 6.5rem) var(--pad);
  max-width: calc(var(--max) + var(--pad) * 2);
  margin: 0 auto;
}

.about__phone-block {
  margin-bottom: clamp(2rem, 5vh, 3.25rem);
  padding-bottom: clamp(1.5rem, 3vh, 2.25rem);
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 12%, transparent);
}

.about__label {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--copper);
}

.about__phone {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 9vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
  text-decoration: none;
  color: var(--pine);
  display: inline-block;
}

.about__phone:hover {
  color: var(--copper);
}

.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: start;
}

.about__media {
  margin: 0;
  clip-path: polygon(0 0, 100% 4%, 94% 100%, 0 96%);
  transform: translateY(0.5rem);
}

.about__media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.04);
}

.about__copy h2 {
  margin: 0 0 1.15rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 3.8vw, 2.65rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: var(--pine);
  max-width: 14ch;
}

.about__copy > p {
  margin: 0 0 1rem;
  color: var(--ink-soft);
  max-width: 40ch;
}

.about__address {
  display: block;
  margin: 2rem 0 0;
  font-style: normal;
  padding: 1.25rem 0 0;
  border-top: 1px solid color-mix(in srgb, var(--ink) 12%, transparent);
}

.about__address-label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--copper);
}

.about__address a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.4;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--pine);
}

.about__address a:hover {
  color: var(--copper);
}

.about__web {
  margin: 1rem 0 0;
  font-size: 0.92rem;
  font-weight: 600;
}

.about__web a {
  text-decoration: none;
  color: var(--ink-soft);
}

.about__web a:hover {
  color: var(--copper);
}

/* ——— SERVICES ——— */
.services {
  background: var(--pine-deep);
  color: var(--white);
  padding: clamp(3.5rem, 9vh, 6rem) 0 clamp(4rem, 10vh, 6.5rem);
  clip-path: polygon(0 2.5rem, 100% 0, 100% 100%, 0 100%);
  padding-top: calc(clamp(3.5rem, 9vh, 6rem) + 2rem);
}

.services__head {
  padding: 0 var(--pad) clamp(2rem, 5vh, 3rem);
  max-width: calc(var(--max) + var(--pad) * 2);
  margin: 0 auto;
}

.services__head h2 {
  margin: 0 0 0.7rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.85rem, 4vw, 2.85rem);
  letter-spacing: -0.035em;
  line-height: 1.05;
  max-width: 12ch;
}

.services__head > p {
  margin: 0;
  font-weight: 300;
  color: color-mix(in srgb, var(--white) 68%, transparent);
  max-width: 34ch;
}

.services__stack {
  list-style: none;
  margin: 0;
  padding: 0;
}

.band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(12rem, 0.85fr);
  gap: 0;
  align-items: stretch;
  border-top: 1px solid color-mix(in srgb, var(--white) 12%, transparent);
  max-width: calc(var(--max) + var(--pad) * 2);
  margin: 0 auto;
  opacity: 0;
  transform: translateY(1.5rem);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}

.band.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.band--flip {
  grid-template-columns: minmax(12rem, 0.85fr) minmax(0, 1fr);
}

.band--flip .band__text {
  order: 2;
}

.band--flip .band__img {
  order: 1;
}

.band__text {
  padding: clamp(1.75rem, 4vh, 2.75rem) var(--pad);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.band__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  color: var(--copper-bright);
  margin-bottom: 0.65rem;
}

.band__text h3 {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.25rem, 2.4vw, 1.65rem);
  letter-spacing: -0.025em;
}

.band__text p {
  margin: 0;
  font-weight: 300;
  font-size: 0.98rem;
  color: color-mix(in srgb, var(--white) 72%, transparent);
  max-width: 38ch;
}

.band__img {
  overflow: hidden;
  min-height: 12rem;
}

.band__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 14rem;
  transition: transform 0.85s var(--ease);
  filter: saturate(0.88) contrast(1.05);
}

.band:hover .band__img img {
  transform: scale(1.05);
}

.services__foot {
  text-align: center;
  padding: clamp(3rem, 7vh, 4.5rem) var(--pad) 0;
  max-width: 32rem;
  margin: 0 auto;
}

.services__foot > p:first-child {
  margin: 0 0 1.1rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.services__foot .btn {
  width: 100%;
  max-width: 26rem;
}

.services__addr {
  margin: 1.2rem 0 0;
  font-size: 0.9rem;
  color: color-mix(in srgb, var(--white) 62%, transparent);
}

.services__addr a {
  text-decoration: none;
}

.services__addr a:hover {
  color: var(--copper-bright);
}

/* ——— Footer ——— */
.site-foot {
  padding: 2rem var(--pad) 2.5rem;
  display: grid;
  gap: 0.55rem;
  background: var(--fog);
  border-top: 1px solid color-mix(in srgb, var(--ink) 10%, transparent);
}

.site-foot strong {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--pine);
}

.site-foot__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.7rem;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.site-foot__row a {
  text-decoration: none;
  font-weight: 600;
}

.site-foot__copy {
  margin: 0.4rem 0 0;
  font-size: 0.78rem;
  color: color-mix(in srgb, var(--ink) 45%, transparent);
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(1.25rem);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ——— Responsive ——— */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero::after {
    display: none;
  }

  .hero__visual {
    min-height: 38svh;
    order: -1;
  }

  .hero__visual img {
    position: relative;
    height: 42svh;
    min-height: 16rem;
  }

  .about__grid {
    grid-template-columns: 1fr;
  }

  .about__media {
    max-width: 22rem;
    clip-path: polygon(0 0, 100% 2%, 96% 100%, 0 98%);
  }

  .band,
  .band--flip {
    grid-template-columns: 1fr;
  }

  .band--flip .band__text,
  .band--flip .band__img {
    order: unset;
  }

  .band__img {
    max-height: 14rem;
  }

  .band__img img {
    min-height: 12rem;
    max-height: 14rem;
  }
}

@media (max-width: 640px) {
  .rail {
    flex-wrap: wrap;
    height: auto;
    padding: 0.75rem var(--pad);
    gap: 0.5rem 1rem;
  }

  .rail__nav {
    order: 3;
    width: 100%;
    margin-left: 0;
  }

  .rail__call {
    margin-left: auto;
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .services {
    clip-path: polygon(0 1.5rem, 100% 0, 100% 100%, 0 100%);
  }

  .site-foot__row {
    flex-direction: column;
    gap: 0.3rem;
  }

  .site-foot__row span[aria-hidden="true"] {
    display: none;
  }
}
