/* ============================================================
   Delta Machine & Tool — Location pages (single-location.php)
   Enqueued only on location singles + the /locations/ archive.
   Uses the design tokens from style.css (:root).
============================================================ */


/* ── 1. HERO ─────────────────────────────────────────────── */
.interior-hero.loc-hero {
  height: auto;
  min-height: 520px;
  padding-top: 8.5rem;
}
.loc-hero .ih-content { padding-bottom: 3.25rem; }
.loc-hero .ih-title { max-width: 16ch; }
.loc-hero .ih-title em { display: block; }

.loc-hero-sub {
  color: rgba(255,255,255,0.78);
  font-size: 1.08rem;
  line-height: 1.7;
  max-width: 600px;
  margin: 1.1rem 0 0;
}
.loc-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.4rem;
}
.loc-hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(74,144,217,0.35);
  padding: 0.4rem 0.8rem;
  border-radius: 2px;
}
.loc-hero-pill svg { color: var(--sky); }
.loc-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}


/* ── 2. SPEC STRIP ───────────────────────────────────────── */
.loc-spec-strip {
  background: var(--navy);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.loc-spec-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0;
}
.loc-spec {
  padding: 1.6rem 1.25rem;
  border-left: 1px solid rgba(255,255,255,0.08);
  position: relative;
}
.loc-spec:first-child { border-left: 0; padding-left: 0; }
.loc-spec dt {
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sky);
  margin-bottom: 0.35rem;
}
.loc-spec dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.4vw, 1.75rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
}
.loc-spec dd sup { font-size: 0.55em; }
.loc-spec dd span {
  font-size: 0.72rem;
  font-weight: 500;
  color: rgba(255,255,255,0.65);
  margin-left: 0.45rem;
  letter-spacing: 0.02em;
}


/* ── 3. SHARED TYPE ──────────────────────────────────────── */
.loc-h2 { font-size: clamp(1.7rem, 3.4vw, 2.45rem); margin-bottom: 1.25rem; }
.loc-h2--sm { font-size: clamp(1.45rem, 2.6vw, 1.9rem); }

.loc-label {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cobalt);
  margin: 0 0 1rem;
}

.loc-prose { font-size: 0.97rem; color: var(--slate); line-height: 1.85; }
.loc-prose > *:last-child { margin-bottom: 0; }
.loc-prose p { margin-bottom: 1rem; }
.loc-prose a { color: var(--cobalt); text-underline-offset: 3px; }
.loc-prose ul, .loc-prose ol { padding-left: 1.2rem; margin-bottom: 1rem; }
.loc-prose li { margin-bottom: 0.4rem; }
.loc-prose strong { color: var(--ink); }
.loc-prose--lead > p:first-child { font-size: 1.08rem; color: var(--ink); }

/* Checkmark bullets for the "Why Delta" list */
.loc-prose--checks ul { list-style: none; padding: 0; }
.loc-prose--checks li {
  position: relative;
  padding: 0.7rem 0 0.7rem 2rem;
  margin: 0;
  border-bottom: 1px solid var(--rule);
}
.loc-prose--checks li:last-child { border-bottom: 0; }
.loc-prose--checks li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.95rem;
  width: 1.2rem; height: 1.2rem;
  border-radius: 2px;
  background: var(--mist) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232468b2' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 0.75rem no-repeat;
}


/* ── 4. INTRO + SIDEBAR ──────────────────────────────────── */
.loc-cities {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
}
.loc-chips {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.loc-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--navy);
  background: var(--smoke);
  border: 1px solid var(--rule);
  padding: 0.38rem 0.8rem;
  border-radius: 2px;
}
.loc-chip svg { color: var(--cobalt); }

.loc-sidebar { position: sticky; top: 7rem; }
.loc-card {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 1.75rem;
  margin-bottom: 1.25rem;
}
.loc-card--dark {
  background: var(--ink);
  background-image:
    linear-gradient(rgba(74,144,217,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(74,144,217,0.07) 1px, transparent 1px);
  background-size: 24px 24px;
  border: 0;
  border-top: 3px solid var(--cobalt);
}
.loc-card-kicker {
  font-family: var(--font-display);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sky);
  margin-bottom: 0.5rem;
}
.loc-card-title { font-size: 1.3rem; font-weight: 800; color: #fff; margin-bottom: 0.65rem; }
.loc-card--dark p { font-size: 0.88rem; color: rgba(255,255,255,0.72); line-height: 1.7; margin-bottom: 1.4rem; }
.loc-btn-block { width: 100%; justify-content: center; }

.loc-address {
  font-style: normal;
  font-size: 0.9rem;
  color: var(--slate);
  line-height: 1.7;
  margin-bottom: 1rem;
}
.loc-address strong { color: var(--ink); font-family: var(--font-display); font-size: 0.88rem; }
.loc-contact-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--rule); }
.loc-contact-list li { border-bottom: 1px solid var(--rule); }
.loc-contact-list a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 0;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--navy);
  text-decoration: none;
  transition: color var(--t-fast);
  word-break: break-word;
}
.loc-contact-list a:hover { color: var(--cobalt); }
.loc-contact-list svg { color: var(--cobalt); flex-shrink: 0; }


/* ── 5. INDUSTRIES (dark band) ───────────────────────────── */
.loc-industries {
  background: var(--ink);
  position: relative;
  overflow: hidden;
}
.loc-industries::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(74,144,217,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(74,144,217,0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 70%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 70%);
  pointer-events: none;
}
.loc-industries .container-xxl { position: relative; }
.loc-eyebrow-light { color: var(--sky); }
.loc-eyebrow-light::before { background: var(--sky); }
.loc-ind-intro { color: rgba(255,255,255,0.72); font-size: 1rem; line-height: 1.8; margin: 0; }

.loc-ind-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 4px;
  overflow: hidden;
}
.loc-ind-card {
  background: var(--ink);
  padding: 2rem 1.85rem 1.85rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: background-color var(--t-mid);
}
.loc-ind-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--sky);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-mid);
}
.loc-ind-card:hover { background-color: #11253a; }
.loc-ind-card:hover::before { transform: scaleX(1); }

.loc-ind-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 1.25rem; }
.loc-ind-icon {
  width: 48px; height: 48px;
  border-radius: 4px;
  background: rgba(36,104,178,0.2);
  border: 1px solid rgba(74,144,217,0.25);
  display: flex; align-items: center; justify-content: center;
  color: var(--sky);
  transition: all var(--t-mid);
}
.loc-ind-card:hover .loc-ind-icon { background: var(--cobalt); border-color: var(--cobalt); color: #fff; }
.loc-ind-num {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.3);
}
.loc-ind-market {
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sky);
  margin-bottom: 0.4rem;
}
.loc-ind-name { font-size: 1.08rem; font-weight: 700; color: #fff; line-height: 1.3; margin-bottom: 0.7rem; }
.loc-ind-summary { font-size: 0.88rem; color: rgba(255,255,255,0.7); line-height: 1.75; margin-bottom: 1.25rem; }

.loc-ind-parts { margin-bottom: 1.4rem; }
.loc-ind-parts-label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 0.5rem;
}
.loc-ind-parts ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.35rem; }
.loc-ind-parts li {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.85);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 0.2rem 0.55rem;
  border-radius: 2px;
}
.loc-ind-link {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sky);
  text-decoration: none;
  transition: gap var(--t-fast), color var(--t-fast);
}
.loc-ind-link:hover { color: #fff; gap: 0.7rem; }

.loc-ind-overview {
  margin-top: 3rem;
  max-width: 820px;
}
.loc-prose--dark { color: rgba(255,255,255,0.72); }
.loc-prose--dark strong { color: #fff; }
.loc-prose--dark a { color: var(--sky); }


/* ── 6. WHY + RESOURCES ──────────────────────────────────── */
.loc-panel {
  background: var(--smoke);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--cobalt);
  border-radius: 4px;
  padding: 2.25rem 2rem;
  height: 100%;
}


/* ── 7. CAPABILITIES ─────────────────────────────────────── */
.loc-cap-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.loc-cap-grid .loc-cap { grid-template-columns: auto 1fr; }
.loc-cap-grid .loc-cap-arrow { display: none; }
.loc-cap {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-rows: auto auto;
  column-gap: 1rem;
  row-gap: 0.3rem;
  height: 100%;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 1.5rem;
  text-decoration: none;
  transition: border-color var(--t-mid), box-shadow var(--t-mid), transform var(--t-mid);
}
.loc-cap:hover { border-color: transparent; box-shadow: var(--shadow-md); transform: translateY(-4px); }
.loc-cap-num {
  grid-row: 1 / 3;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--cobalt);
  background: var(--mist);
  width: 2.25rem; height: 2.25rem;
  display: flex; align-items: center; justify-content: center;
  border-radius: 2px;
  transition: all var(--t-mid);
}
.loc-cap:hover .loc-cap-num { background: var(--cobalt); color: #fff; }
.loc-cap-title { font-family: var(--font-display); font-size: 0.98rem; font-weight: 700; color: var(--ink); }
.loc-cap-blurb { grid-column: 2 / 3; font-size: 0.84rem; color: var(--slate); line-height: 1.65; }
.loc-cap-arrow {
  grid-row: 1 / 3;
  grid-column: 3;
  align-self: center;
  color: var(--silver);
  transition: color var(--t-fast), transform var(--t-fast);
}
.loc-cap:hover .loc-cap-arrow { color: var(--cobalt); transform: translateX(3px); }


/* ── 8. FAQ ──────────────────────────────────────────────── */
.loc-faq-intro { position: sticky; top: 7rem; }
.loc-faq-note { font-size: 0.92rem; color: var(--slate); margin-top: 0.5rem; }

.loc-faq { border-top: 1px solid var(--rule); }
.loc-faq-item { border-bottom: 1px solid var(--rule); }
.loc-faq-q { margin: 0; font-size: inherit; }
.loc-faq-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.35rem 0;
  background: none;
  border: 0;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--ink);
  transition: color var(--t-fast);
}
.loc-faq-btn:hover, .loc-faq-btn[aria-expanded="true"] { color: var(--cobalt); }
.loc-faq-btn:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 4px; }
.loc-faq-icon {
  flex-shrink: 0;
  width: 1.75rem; height: 1.75rem;
  border: 1px solid var(--rule);
  border-radius: 2px;
  position: relative;
  transition: background var(--t-fast), border-color var(--t-fast);
}
.loc-faq-icon::before, .loc-faq-icon::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 10px; height: 2px;
  background: currentColor;
  transform: translate(-50%, -50%);
  transition: transform var(--t-mid);
}
.loc-faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.loc-faq-btn[aria-expanded="true"] .loc-faq-icon { background: var(--cobalt); border-color: var(--cobalt); color: #fff; }
.loc-faq-btn[aria-expanded="true"] .loc-faq-icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.loc-faq-a { padding: 0 3rem 1.5rem 0; }


/* ── 9. NEARBY AREAS ─────────────────────────────────────── */
.loc-nearby { background: var(--smoke); border-top: 1px solid var(--rule); padding: 2.5rem 0; }
.loc-nearby-inner { display: flex; align-items: baseline; gap: 2rem; }
.loc-nearby-heading { white-space: nowrap; margin: 0; }
.loc-nearby-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.loc-nearby-list a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--navy);
  text-decoration: none;
  transition: color var(--t-fast);
}
.loc-nearby-list a svg { color: var(--cobalt); }
.loc-nearby-list a:hover { color: var(--cobalt); text-decoration: underline; text-underline-offset: 3px; }
.loc-nearby-all { font-family: var(--font-display); font-size: 0.72rem !important; font-weight: 700 !important; letter-spacing: 0.08em; text-transform: uppercase; color: var(--cobalt) !important; }


/* ── 10. CTA BAND ────────────────────────────────────────── */
.loc-cta {
  background: linear-gradient(135deg, var(--ink) 0%, var(--navy) 100%);
  padding: 5.5rem 0;
  position: relative;
  overflow: hidden;
}
.loc-cta::before {
  content: '';
  position: absolute;
  top: -60%; right: -10%;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(36,104,178,0.22) 0%, transparent 70%);
  pointer-events: none;
}
.loc-cta .container-xxl { position: relative; }
.loc-cta-heading {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.12;
  margin: 0;
}
.loc-cta-heading em { font-style: normal; color: var(--sky); display: block; }
.loc-cta-sub { color: rgba(255,255,255,0.72); font-size: 1rem; line-height: 1.8; margin: 1rem 0 0; max-width: 480px; }
.loc-cta-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: flex-end; }


/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 1199.98px) {
  .loc-ind-grid { grid-template-columns: repeat(2, 1fr); }
  .loc-cap-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 991.98px) {
  .interior-hero.loc-hero { min-height: 0; padding-top: 7rem; }
  .loc-sidebar, .loc-faq-intro { position: static; }
  .loc-spec-grid { grid-template-columns: repeat(2, 1fr); }
  .loc-spec { border-left: 0; padding-left: 0; }
  .loc-spec:nth-child(even) { border-left: 1px solid rgba(255,255,255,0.08); padding-left: 1.25rem; }
  .loc-spec:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,0.08); }
  .loc-cta-actions { justify-content: flex-start; }
  .loc-nearby-inner { flex-direction: column; gap: 1rem; }
}
@media (max-width: 767.98px) {
  .interior-hero.loc-hero { height: auto; }
  .loc-hero .ih-content { padding-bottom: 2.25rem; }
  .loc-hero-sub { font-size: 1rem; }
  .loc-hero-actions .btn-delta { flex: 1 1 100%; justify-content: center; }
  .loc-ind-grid, .loc-cap-grid { grid-template-columns: 1fr; }
  .loc-ind-card { padding: 1.75rem 1.4rem; }
  .loc-spec { padding-top: 1.2rem; padding-bottom: 1.2rem; }
  .loc-spec:nth-child(even) { padding-left: 0.9rem; }
  .loc-spec dd span { display: block; margin: 0.2rem 0 0; }
  .loc-panel { padding: 1.75rem 1.4rem; }
  .loc-faq-a { padding-right: 0; }
  .loc-cta { padding: 4rem 0; }
  .loc-cta-actions .btn-delta { flex: 1 1 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .loc-ind-card, .loc-ind-card::before, .loc-cap, .loc-faq-icon::before, .loc-faq-icon::after { transition: none; }
}
