/* Flam's Lock & Key — heritage specialist meets dispatch. */
:root {
  --field: #faf5ec;
  --card: #fffdf7;
  --ink: #1e2a44;
  --muted: #46536e;
  --call: #b23a2e;
  --call-deep: #8f2c23;
  --ghost: #1e2a44;
  --accent: #a97e2f;
  --line: #e2d7c2;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Archivo", system-ui, sans-serif;

  --ease-out-expo: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-out-expo-alt: cubic-bezier(0.19, 1, 0.22, 1);
  --ease-out-circ: cubic-bezier(0.075, 0.82, 0.165, 1);
  --dur-fast: 0.3s;
  --dur-hover: 0.5s;
  --dur-enter: 0.7s;
  --dur-nav: 0.8s;
  --dur-hero: 1.5s;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--field);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.08;
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(2.4rem, 5.2vw, 4.2rem);
}

h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.75rem);
}

h3 {
  font-size: 1.45rem;
}

p {
  margin: 0 0 1em;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
}

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 10;
  background: var(--field);
  padding: 0.5rem 1rem;
}

.kicker {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 0.9rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
}
.kicker::before {
  content: "";
  width: 2.2rem;
  height: 2px;
  background: var(--accent);
  flex: none;
}

.section-head {
  max-width: 38rem;
  margin-bottom: 2.75rem;
}
.section-head p:last-child {
  color: var(--muted);
  margin-bottom: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: background var(--dur-fast) var(--ease-out-circ), color var(--dur-fast) var(--ease-out-circ), transform var(--dur-fast) var(--ease-out-circ);
}
.btn:hover {
  transform: translate3d(0, -2px, 0);
}
.btn-fill {
  background: var(--call);
  color: #fff;
}
.btn-fill:hover {
  background: var(--call-deep);
}
.btn-ghost {
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  color: #fff;
}
.call-nowrap {
  white-space: nowrap;
}

/* Signature flourish: brass underline grows from the left. */
.link-underline {
  position: relative;
  text-decoration: none;
}
.link-underline::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0.3);
  transform-origin: left;
  transition: transform var(--dur-hover) var(--ease-out-expo-alt);
}
.link-underline:hover::after {
  transform: scaleX(1);
}

/* Header: wordmark, jumps, red Call pill. Never animated. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.8rem 4vw;
  background: rgba(250, 245, 236, 0.96);
  border-bottom: 1px solid var(--line);
}
.brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.3rem;
  text-decoration: none;
  margin-right: auto;
}
.brand-short {
  display: none;
}
.site-header nav {
  display: flex;
  gap: 1.4rem;
  font-weight: 500;
  font-size: 0.98rem;
}
.site-header .btn {
  padding: 0.6rem 1.25rem;
  font-size: 0.95rem;
}
.site-header .btn svg {
  flex: none;
}

/* Hero: full-bleed plate, copy on the image, left side quiet. */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 100dvh;
  display: flex;
  align-items: center;
}
.hero-img {
  position: absolute;
  inset: -8% 0;
  width: 100%;
  height: 116%;
  object-fit: cover;
  object-position: 70% center;
  opacity: 0;
  transition: opacity var(--dur-hero) var(--ease-out-expo);
}
.hero.is-in .hero-img,
.hero-img.is-in {
  opacity: 1;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(20, 28, 50, 0.82) 0%, rgba(20, 28, 50, 0.62) 34%, rgba(20, 28, 50, 0.12) 62%, rgba(20, 28, 50, 0) 78%);
  pointer-events: none;
}
.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 36rem;
  margin: 0 6vw;
  padding: 5rem 0;
  color: #fff;
}
.hero-copy .kicker {
  color: #f3e7cf;
}
.hero-copy p {
  font-size: 1.12rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 1.6rem 0 1rem;
}
.hero-proof {
  font-size: 0.95rem;
  color: #f3e7cf;
  margin: 0;
}

/* Credential strip. */
.strip {
  border-bottom: 1px solid var(--line);
  background: var(--card);
}
.strip ul {
  list-style: none;
  margin: 0;
  padding: 1.4rem 6vw;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  max-width: 70rem;
}
.strip strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--accent);
}
.strip span {
  font-size: 0.92rem;
  color: var(--muted);
}

section {
  scroll-margin-top: 5.5rem;
}

#services,
#about,
#area,
#contact {
  padding: 5.5rem 6vw;
  max-width: 76rem;
  margin: 0 auto;
}

/* Services river: illustration and text swap sides each row. */
.river {
  display: grid;
  gap: 3.5rem;
}
.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.row.flip figure {
  order: 2;
}
.row figure {
  margin: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 4px solid var(--accent);
  padding: 1.25rem;
}
.row-text p:last-child {
  color: var(--muted);
  margin-bottom: 0;
}
.row-num {
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin: 0 0 0.5rem;
}

/* About. */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: start;
}
.fact-card {
  margin: 0;
  background: var(--ink);
  color: #f3ecdc;
  padding: 2rem;
}
.fact-card div {
  padding: 0.7rem 0;
  border-top: 1px solid rgba(243, 236, 220, 0.25);
}
.fact-card div:first-child {
  border-top: 0;
  padding-top: 0;
}
.fact-card dt {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #d9ab4f;
}
.fact-card dd {
  margin: 0.15rem 0 0;
  font-weight: 500;
}

/* Reviews: one verified blockquote. */
.reviews {
  padding: 5.5rem 6vw;
  background: var(--ink);
  color: #faf5ec;
}
.reviews .section-head {
  max-width: 76rem;
  margin: 0 auto 2rem;
}
.reviews .kicker {
  color: #f3e7cf;
}
.reviews blockquote {
  max-width: 76rem;
  margin: 0 auto;
}
.reviews blockquote p {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.3rem);
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin: 0 0 1.25rem;
}
.reviews footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  font-size: 0.95rem;
  color: #d9cba8;
}
.reviews cite {
  font-style: normal;
  font-weight: 600;
  color: #fff;
}

/* FAQ. */
.faq {
  padding: 5.5rem 6vw;
  max-width: 76rem;
  margin: 0 auto;
}
.faq-list {
  max-width: 44rem;
}
.faq-list details {
  border-top: 1px solid var(--ink);
}
.faq-list details:last-child {
  border-bottom: 1px solid var(--ink);
}
.faq-list summary {
  cursor: pointer;
  list-style: none;
  padding: 1.1rem 0;
  font-weight: 600;
  font-family: var(--font-display);
  font-size: 1.15rem;
}
.faq-list summary::-webkit-details-marker {
  display: none;
}
.faq-list details p {
  margin: 0 0 1.15rem;
  max-width: 42ch;
  color: var(--muted);
}

/* Contact. */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.contact-line {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
}
.contact-line svg {
  flex: none;
  margin-top: 0.25rem;
  color: var(--accent);
}
.contact-grid form {
  margin-top: 2rem;
  display: grid;
  gap: 1rem;
  max-width: 26rem;
}
.contact-grid label {
  display: grid;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.95rem;
}
.contact-grid input,
.contact-grid textarea {
  font: inherit;
  padding: 0.7rem 0.85rem;
  border: 1.5px solid var(--ink);
  border-radius: 0;
  background: #fff;
  color: var(--ink);
  width: 100%;
}
.contact-grid button {
  border: 0;
  cursor: pointer;
  font: inherit;
  justify-content: center;
}
.form-note {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0;
}
.contact-grid iframe {
  width: 100%;
  min-height: 26rem;
  border: 1px solid var(--line);
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 6vw 3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  justify-content: space-between;
  font-size: 0.95rem;
  color: var(--muted);
}
.site-footer p {
  margin: 0;
}

/* Scroll reveal hooks. */
[data-reveal] {
  opacity: 0;
  transform: translate3d(0, 50px, 0);
  transition:
    opacity var(--dur-enter) var(--ease-out-expo),
    transform var(--dur-enter) var(--ease-out-expo);
}
[data-reveal].is-in {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* A block of copy that belongs together: the container holds still and its
   children come in one after another, top first. motion.js sets the delays. */
[data-reveal="cascade"] {
  opacity: 1;
  transform: none;
  transition: none;
}
[data-reveal="cascade"] > * {
  opacity: 0;
  transform: translate3d(0, 50px, 0);
  transition:
    opacity var(--dur-enter) var(--ease-out-expo),
    transform var(--dur-enter) var(--ease-out-expo);
}
[data-reveal="cascade"].is-in > * {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* 390: image occupies the first screen; type overlaps only the bottom third
   so a face in the upper two-thirds stays visible. */
@media (max-width: 640px) {
  .site-header {
    gap: 0.75rem;
    padding: 0.7rem 1rem;
  }
  .site-header nav {
    display: none;
  }
  .brand-full {
    display: none;
  }
  .brand-short {
    display: inline;
  }
  .site-header .btn {
    padding: 0.55rem 1rem;
    font-size: 0.88rem;
  }

  .hero {
    display: block;
    min-height: calc(100vh - 58px);
    min-height: calc(100svh - 58px);
  }
  .hero::after {
    background: linear-gradient(to top, rgba(20, 28, 50, 0.88) 0%, rgba(20, 28, 50, 0.55) 38%, rgba(20, 28, 50, 0) 68%);
  }
  .hero-img {
    object-position: center 18%;
  }
  .hero-copy {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    width: auto;
    max-width: none;
    margin: 0;
    padding: 1rem 1rem calc(0.9rem + env(safe-area-inset-bottom));
    background: linear-gradient(to top, rgba(20, 28, 50, 0.92) 55%, rgba(20, 28, 50, 0.55) 80%, rgba(20, 28, 50, 0) 100%);
  }
  .hero-copy .kicker {
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
  }
  .hero-copy h1 {
    font-size: 1.35rem;
    line-height: 1.12;
    margin-bottom: 0.35em;
  }
  .hero-copy .hero-body,
  .hero-copy .hero-proof {
    display: none;
  }
  .hero-copy p {
    font-size: 1rem;
  }
  .hero-actions {
    margin: 0.75rem 0 0;
    gap: 0.6rem;
    flex-wrap: nowrap;
  }
  .hero-actions .btn {
    padding: 0.55rem 0.85rem;
    font-size: 0.8rem;
    white-space: nowrap;
  }

  .strip ul {
    grid-template-columns: 1fr 1fr 1fr;
    padding: 1.1rem 1rem;
    gap: 0.5rem;
  }
  .strip strong {
    font-size: 1.25rem;
  }
  .strip span {
    font-size: 0.78rem;
  }

  #services,
  #about,
  #area,
  #contact,
  .reviews,
  .faq {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .row,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .row.flip figure {
    order: 0;
  }
  .contact-grid iframe {
    min-height: 18rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal],
  [data-reveal="cascade"] > *,
  .hero-img {
    opacity: 1;
    transform: none !important;
    transition: none;
  }
  .btn:hover {
    transform: none;
  }
}
