/* ==========================================================================
   Superior Locksmith — Page-type specific layouts
   ========================================================================== */

/* --------------------------------------------------------------------------
   HOME
   -------------------------------------------------------------------------- */

/* Service pillars — asymmetric feature row */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--paper);
}

.pillar {
  padding: clamp(1.6rem, 1.2rem + 1.4vw, 2.4rem);
  border-right: 1px solid var(--line);
  transition: background var(--t-base) var(--ease);
}

.pillar:last-child { border-right: 0; }
.pillar:hover { background: var(--surface); }

.pillar__num {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--brand-ink);
}

.pillar h3 { margin: 0.9rem 0 0.65rem; font-size: 1.3125rem; }
.pillar p { font-size: 0.9688rem; color: var(--text-muted); line-height: 1.66; }
.pillar ul { margin-top: 1.1rem; list-style: none; display: grid; gap: 0.45rem; }

.pillar ul li {
  position: relative;
  padding-left: 1.1rem;
  font-size: 0.9063rem;
  color: var(--text-body);
}

.pillar ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.68em;
  width: 5px; height: 5px;
  background: var(--brand);
  border-radius: 50%;
}

.pillar__link { margin-top: 1.35rem; }

@media (max-width: 900px) {
  .pillars { grid-template-columns: minmax(0, 1fr); }
  .pillar { border-right: 0; border-bottom: 1px solid var(--line); }
  .pillar:last-child { border-bottom: 0; }
}

/* Home: capability strip */
.capability-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line-invert);
  border-block: 1px solid var(--line-invert);
}

.capability {
  padding: clamp(1.5rem, 1.2rem + 1vw, 2.1rem) clamp(1.1rem, 0.9rem + 0.8vw, 1.75rem);
  background: var(--ink-900);
}

.capability h3 { font-size: 1.0625rem; margin-bottom: 0.45rem; color: var(--text-invert); }
.capability p { font-size: 0.9063rem; line-height: 1.6; color: var(--text-invert-soft); }
.capability svg { width: 26px; height: 26px; color: var(--brand); margin-bottom: 1rem; }

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

/* Home: editorial two-tone block */
.editorial {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(2rem, 1rem + 4vw, 4.5rem);
  align-items: center;
}

.editorial--flip { grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); }
.editorial__media { position: relative; }

.editorial__badge {
  position: absolute;
  right: -12px; bottom: -12px;
  max-width: 260px;
  padding: 1.15rem 1.35rem;
  background: var(--brand);
  color: var(--ink-950);
  border-radius: var(--r-md);
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 650;
  line-height: 1.45;
  box-shadow: var(--shadow-md);
}

@media (max-width: 900px) {
  .editorial, .editorial--flip { grid-template-columns: minmax(0, 1fr); }
  .editorial__badge { position: static; max-width: none; margin-top: 1rem; }
}

/* --------------------------------------------------------------------------
   SERVICE PAGES — educational, rail-assisted
   -------------------------------------------------------------------------- */
.service-body { padding-block: var(--section-y); }

.service-intro {
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.1875rem);
  line-height: 1.7;
  color: var(--text-body);
}

.service-intro p + p { margin-top: 1.1rem; }

/* Situation grid — "when people call" */
.situations {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.situation { padding: var(--sp-6); background: var(--paper); }
.situation h3 { font-size: 1.0938rem; margin-bottom: 0.5rem; }
.situation p { font-size: 0.9375rem; color: var(--text-muted); line-height: 1.66; }

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

/* Hardware / option tiles */
.option-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--sp-4);
}

.option-tile {
  padding: 1.4rem 1.5rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 3px solid var(--brand);
  border-radius: 0 0 var(--r-md) var(--r-md);
}

.option-tile h3 { font-size: 1.0313rem; margin-bottom: 0.45rem; }
.option-tile p { font-size: 0.9063rem; color: var(--text-muted); line-height: 1.62; }

/* --------------------------------------------------------------------------
   LOCATION PAGES
   -------------------------------------------------------------------------- */
.local-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--sp-5);
  padding: var(--sp-6);
  background: var(--surface);
  border-radius: var(--r-lg);
}

.local-fact dt {
  font-family: var(--font-heading);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.local-fact dd { font-size: 0.9375rem; line-height: 1.6; color: var(--text-body); }

/* Property-type context blocks */
.context-list { display: grid; gap: var(--sp-5); }

.context-item {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: var(--sp-5);
  align-items: start;
  padding-bottom: var(--sp-5);
  border-bottom: 1px solid var(--line);
}

.context-item:last-child { border-bottom: 0; padding-bottom: 0; }

.context-item__icon {
  display: grid;
  place-items: center;
  width: 56px; height: 56px;
  background: var(--surface-warm);
  border: 1px solid #F0E3B4;
  border-radius: var(--r-md);
  color: var(--brand-ink);
}

.context-item__icon svg { width: 25px; height: 25px; }

.context-item h3 { font-size: 1.125rem; margin-bottom: 0.5rem; }
.context-item p { font-size: 0.9688rem; color: var(--text-muted); line-height: 1.68; }

@media (max-width: 560px) {
  .context-item { grid-template-columns: minmax(0, 1fr); gap: var(--sp-3); }
}

/* Nearby areas */
.nearby {
  padding: var(--sp-6);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}

.nearby h2 { font-size: 1.25rem; margin-bottom: 0.65rem; }
.nearby p { font-size: 0.9375rem; color: var(--text-muted); margin-bottom: 1.25rem; }

/* --------------------------------------------------------------------------
   DIRECTORY PAGES
   -------------------------------------------------------------------------- */
.directory-group + .directory-group { margin-top: var(--sp-8); }

.directory-group__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-4);
  padding-bottom: 0.9rem;
  margin-bottom: var(--sp-5);
  border-bottom: 2px solid var(--ink-900);
}

.directory-group__head h2 { font-size: 1.375rem; }

.directory-group__count {
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 650;
  color: var(--text-muted);
  white-space: nowrap;
}

.directory-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--sp-4);
  list-style: none;
}

/* --------------------------------------------------------------------------
   ABOUT
   -------------------------------------------------------------------------- */
.about-lede {
  font-size: clamp(1.1875rem, 1.05rem + 0.6vw, 1.5rem);
  line-height: 1.55;
  font-family: var(--font-heading);
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--text);
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
}

.value-item {
  padding: var(--sp-6) var(--sp-5) var(--sp-6) 0;
  border-bottom: 1px solid var(--line);
}

.value-item h3 { font-size: 1.0938rem; margin-bottom: 0.5rem; }
.value-item p { font-size: 0.9375rem; color: var(--text-muted); line-height: 1.66; }

/* --------------------------------------------------------------------------
   CONTACT
   -------------------------------------------------------------------------- */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 1rem + 3.5vw, 4rem);
  align-items: start;
}

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

.contact-methods { display: grid; gap: var(--sp-4); }

.contact-method {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: var(--sp-4);
  align-items: start;
  padding: 1.35rem 1.5rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}

.contact-method__icon {
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  background: var(--ink-900);
  color: var(--brand);
  border-radius: var(--r-sm);
}

.contact-method__icon svg { width: 20px; height: 20px; }

.contact-method h3 { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 0.35rem; }

.contact-method__value {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 650;
  letter-spacing: -0.015em;
  color: var(--text);
  text-decoration: none;
}

.contact-method__value:hover { color: var(--ink-700); }
.contact-method p { font-size: 0.875rem; color: var(--text-muted); margin-top: 0.3rem; line-height: 1.55; }

/* --------------------------------------------------------------------------
   BLOG
   -------------------------------------------------------------------------- */
.article-head { max-width: 46rem; }
.article-head h1 { margin-bottom: var(--sp-4); }

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1.25rem;
  font-size: var(--fs-small);
  color: var(--text-muted);
}

.article-meta a { color: var(--brand-ink); font-weight: 600; text-decoration: none; }
.article-meta a:hover { text-decoration: underline; }

.article-body { max-width: 46rem; }

.article-figure { margin: 0 0 var(--sp-7); }
.article-figure img { width: 100%; border-radius: var(--r-lg); aspect-ratio: 16 / 9; object-fit: cover; }

.article-foot {
  margin-top: var(--sp-8);
  padding-top: var(--sp-6);
  border-top: 1px solid var(--line);
}

/* --------------------------------------------------------------------------
   404
   -------------------------------------------------------------------------- */
.error-page { padding-block: clamp(3.5rem, 2rem + 6vw, 7rem); }

.error-code {
  font-family: var(--font-heading);
  font-size: clamp(4rem, 2.5rem + 7vw, 8rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.045em;
  color: var(--brand);
  -webkit-text-stroke: 1px var(--ink-800);
}

.error-page h1 { margin-top: var(--sp-5); }
.error-page__lead { margin-top: var(--sp-4); font-size: var(--fs-lead); color: var(--text-muted); max-width: 58ch; }
.error-page__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: var(--sp-6); }

/* --------------------------------------------------------------------------
   LEGAL
   -------------------------------------------------------------------------- */
.legal-body { max-width: 44rem; }
.legal-body h2 { font-size: 1.375rem; }
.legal-body h3 { font-size: 1.125rem; }
.legal-updated {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  margin-bottom: var(--sp-6);
  font-size: 0.8125rem;
  color: var(--text-muted);
  background: var(--surface);
  border-radius: var(--r-xs);
}
