/* ==========================================================================
   Superior Locksmith — editorial layout

   The layout vocabulary for a photography-led site. Everything here is built
   on three rules:

     1. Photographs are square-edged and large. No rounded frames, no drop
        shadows, no cards around pictures.
     2. Sections are separated by hairlines and background tone, not by
        floating panels.
     3. Direction alternates. A section that puts the image left is followed
        by one that puts it right.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Home hero — a real two-column composition, not a dark overlay plate
   -------------------------------------------------------------------------- */
.lead {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.lead__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  align-items: stretch;
  gap: clamp(2rem, 1rem + 3.5vw, 4.25rem);
}

.lead__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: clamp(2.75rem, 1.8rem + 3.6vw, 5.25rem);
}

.lead__copy > * + * { margin-top: var(--sp-5); }

.lead__eyebrow {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--text-muted);
}

.lead__eyebrow::before {
  content: "";
  width: 2rem;
  height: 2px;
  background: var(--brand);
  flex: none;
}

.lead h1 {
  font-size: var(--fs-display);
  max-width: 15ch;
  letter-spacing: -0.028em;
}

.lead__text {
  font-size: var(--fs-lead);
  line-height: 1.66;
  color: var(--text-muted);
  max-width: 48ch;
}

.lead__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-top: var(--sp-6);
}

/* The photograph runs to the right edge of the viewport. */
.lead__media {
  position: relative;
  min-height: 420px;
  margin-right: calc(-1 * var(--bleed));
  overflow: hidden;
  background: var(--surface-2);
}

.lead__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* A small factual strip beneath the hero — no statistics, no claims. */
.lead__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0 clamp(1.5rem, 1rem + 2vw, 3.25rem);
  padding-block: 1.1rem;
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
  color: var(--text-muted);
}

.lead__facts span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding-block: 0.25rem;
}

.lead__facts svg { width: 15px; height: 15px; color: var(--brand-ink); flex: none; }

@media (max-width: 960px) {
  .lead__grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .lead__copy { padding-bottom: var(--sp-7); }
  .lead__media {
    min-height: 0;
    aspect-ratio: 16 / 10;
    margin-inline: calc(-1 * var(--bleed));
  }
}

/* --------------------------------------------------------------------------
   Feature split — the workhorse. Image one side, text the other, alternating.
   -------------------------------------------------------------------------- */
.feature {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(2rem, 1rem + 4vw, 4.5rem);
}

.feature--reverse > .feature__media { order: 2; }

.feature__media {
  position: relative;
  background: var(--surface-2);
}

.feature__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* The image bleeds to whichever viewport edge it sits against. */
.feature--bleed-left .feature__media { margin-left: calc(-1 * var(--bleed)); }
.feature--bleed-right .feature__media { margin-right: calc(-1 * var(--bleed)); }

.feature__body > * + * { margin-top: var(--sp-4); }

.feature__label {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--brand-ink);
}

.feature__body h2 { max-width: 20ch; }
.feature__body h3 { font-size: 1.5rem; max-width: 22ch; }

.feature__body p {
  color: var(--text-muted);
  max-width: 54ch;
  line-height: 1.75;
}

.feature__body .prose p { color: var(--text-body); }

.feature__more { margin-top: var(--sp-5); }

@media (max-width: 900px) {
  .feature,
  .feature--reverse { grid-template-columns: minmax(0, 1fr); }
  .feature--reverse > .feature__media { order: 0; }
  .feature--bleed-left .feature__media,
  .feature--bleed-right .feature__media { margin-inline: calc(-1 * var(--bleed)); }
  .feature__media { aspect-ratio: 16 / 10; }
}

/* --------------------------------------------------------------------------
   Photographic band — full-bleed image with a caption block over it
   -------------------------------------------------------------------------- */
.band {
  position: relative;
  isolation: isolate;
  min-height: clamp(300px, 34vw, 460px);
  display: flex;
  align-items: flex-end;
  background: var(--ink-950);
}

.band__img {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.band__img img { width: 100%; height: 100%; object-fit: cover; }

.band::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    180deg, rgba(4, 16, 28, 0) 30%, rgba(4, 16, 28, 0.82) 100%);
}

.band__caption {
  width: 100%;
  padding-block: clamp(1.75rem, 1.2rem + 2vw, 3rem);
  color: var(--text-invert);
}

.band__caption h2 {
  color: var(--text-invert);
  max-width: 22ch;
}

.band__caption p {
  margin-top: 0.75rem;
  max-width: 56ch;
  color: rgba(255, 255, 255, 0.82);
}

.band__caption .btn { margin-top: var(--sp-5); }

/* --------------------------------------------------------------------------
   Service showcase — image-first, no icons, no boxes
   -------------------------------------------------------------------------- */
.showcase {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(1.75rem, 1rem + 2.6vw, 3.25rem);
  align-items: start;
}

/* The featured service: large image, text beneath it. */
.showcase__lead { display: block; text-decoration: none; }

.showcase__lead .showcase__img { aspect-ratio: 16 / 10; }

.showcase__lead h3 {
  margin-top: var(--sp-5);
  font-size: 1.6rem;
  letter-spacing: -0.02em;
}

.showcase__lead p {
  margin-top: 0.6rem;
  color: var(--text-muted);
  max-width: 52ch;
  line-height: 1.7;
}

/* Supporting services: an editorial list with a small photograph each. */
.showcase__list { display: grid; gap: 0; }

.showcase__item {
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr);
  gap: var(--sp-5);
  align-items: center;
  padding-block: var(--sp-5);
  border-top: 1px solid var(--line);
  text-decoration: none;
}

.showcase__item:last-child { border-bottom: 1px solid var(--line); }

.showcase__img {
  position: relative;
  overflow: hidden;
  background: var(--surface-2);
}

.showcase__item .showcase__img { aspect-ratio: 4 / 3; }

.showcase__img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow) var(--ease-out);
}

.showcase__lead:hover .showcase__img img,
.showcase__item:hover .showcase__img img { transform: scale(1.03); }

.showcase__item h3 {
  font-size: 1.125rem;
  letter-spacing: -0.014em;
}

.showcase__item p {
  margin-top: 0.3rem;
  font-size: 0.9375rem;
  line-height: 1.62;
  color: var(--text-muted);
}

.showcase__lead h3,
.showcase__item h3 { transition: color var(--t-fast) var(--ease); }

.showcase__lead:hover h3,
.showcase__item:hover h3 { color: var(--brand-ink); }

@media (max-width: 900px) {
  .showcase { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 480px) {
  .showcase__item { grid-template-columns: 104px minmax(0, 1fr); gap: var(--sp-4); }
}

/* --------------------------------------------------------------------------
   Reason list — replaces the three-card "why choose us" pattern
   -------------------------------------------------------------------------- */
.reasons {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 1rem + 3.5vw, 4rem);
  align-items: start;
}

.reasons__intro p {
  margin-top: var(--sp-4);
  color: var(--text-muted);
  max-width: 44ch;
  line-height: 1.75;
}

.reasons__list { counter-reset: reason; }

.reason {
  counter-increment: reason;
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  gap: var(--sp-4);
  padding-block: var(--sp-5);
  border-top: 1px solid var(--line);
}

.reason:last-child { border-bottom: 1px solid var(--line); }

.reason::before {
  content: counter(reason, decimal-leading-zero);
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--brand-ink);
  padding-top: 0.25rem;
}

.reason h3 { font-size: 1.0938rem; margin-bottom: 0.35rem; }
.reason p { font-size: 0.9375rem; color: var(--text-muted); line-height: 1.68; }

.section--ink .reason,
.section--ink .reason:last-child { border-color: var(--line-invert); }
.section--ink .reason::before { color: var(--brand); }
.section--ink .reason p { color: var(--text-invert-soft); }

@media (max-width: 860px) {
  .reasons { grid-template-columns: minmax(0, 1fr); }
}

/* --------------------------------------------------------------------------
   Photo row — 2-up or 3-up photographs, captions beneath, no card chrome
   -------------------------------------------------------------------------- */
.photo-row {
  display: grid;
  gap: var(--sp-5);
}

.photo-row--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.photo-row--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.photo-row--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.photo-row figure { margin: 0; }

.photo-row .photo-row__img {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--surface-2);
}

.photo-row--wide .photo-row__img { aspect-ratio: 4 / 3; }

.photo-row img { width: 100%; height: 100%; object-fit: cover; }

.photo-row figcaption {
  margin-top: 0.85rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--text-muted);
}

@media (max-width: 800px) {
  .photo-row--3,
  .photo-row--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 520px) {
  .photo-row--2, .photo-row--3 { grid-template-columns: minmax(0, 1fr); }
  .photo-row--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* --------------------------------------------------------------------------
   Area columns — service areas as readable text, not a wall of city cards
   -------------------------------------------------------------------------- */
.area-cols {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1.5rem, 1rem + 1.6vw, 2.5rem);
}

.area-col h3 {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--text-muted);
  padding-bottom: 0.7rem;
  margin-bottom: 0.9rem;
  border-bottom: 1px solid var(--line);
}

.area-col ul { list-style: none; display: grid; gap: 0.5rem; }

.area-col a {
  font-size: 0.9375rem;
  color: var(--text-body);
  text-decoration: none;
  transition: color var(--t-fast) var(--ease);
}

.area-col a:hover { color: var(--ink-900); text-decoration: underline;
  text-underline-offset: 0.18em; }

.section--ink .area-col h3 { color: rgba(255,255,255,0.5); border-color: var(--line-invert); }
.section--ink .area-col a { color: var(--text-invert-soft); }
.section--ink .area-col a:hover { color: var(--brand); }

@media (max-width: 900px) { .area-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .area-cols { grid-template-columns: minmax(0, 1fr); } }

/* --------------------------------------------------------------------------
   Intro block — company introduction: text plus one supporting photograph
   -------------------------------------------------------------------------- */
.intro {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(2rem, 1rem + 3.5vw, 4rem);
  align-items: center;
}

.intro__body .lede {
  font-family: var(--font-heading);
  font-size: clamp(1.1875rem, 1.05rem + 0.55vw, 1.4375rem);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: -0.016em;
  color: var(--text);
  max-width: 34ch;
}

.intro__body p + p { margin-top: 1.05rem; }
.intro__body .prose { margin-top: var(--sp-5); }
.intro__media img { display: block; width: 100%; }

@media (max-width: 900px) {
  .intro { grid-template-columns: minmax(0, 1fr); }
}

/* --------------------------------------------------------------------------
   Plain list — replaces the checkmark list
   -------------------------------------------------------------------------- */
.rule-list { list-style: none; display: grid; }

.rule-list li {
  padding-block: 0.8rem;
  border-top: 1px solid var(--line);
  font-size: 0.9688rem;
  line-height: 1.6;
}

.rule-list li:last-child { border-bottom: 1px solid var(--line); }

.rule-list--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--sp-6); }

.section--ink .rule-list li,
.section--ink .rule-list li:last-child { border-color: var(--line-invert); }

@media (max-width: 680px) { .rule-list--2 { grid-template-columns: minmax(0, 1fr); } }

/* --------------------------------------------------------------------------
   Section rhythm — hairline separation instead of floating panels
   -------------------------------------------------------------------------- */
.section--hairline { border-top: 1px solid var(--line); }
.section--bleed { padding-inline: 0; }

.section-head--editorial {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 1rem + 2vw, 3rem);
  align-items: end;
  max-width: none;
  padding-bottom: var(--sp-5);
  margin-bottom: var(--sp-7);
  border-bottom: 1px solid var(--line);
}

.section-head--editorial h2 { max-width: 18ch; }
.section-head--editorial p { margin: 0; max-width: 52ch; }

.section--ink .section-head--editorial,
.section--charcoal .section-head--editorial { border-color: var(--line-invert); }

@media (max-width: 800px) {
  .section-head--editorial { grid-template-columns: minmax(0, 1fr); align-items: start; }
}
