/* Laser Cutting Experts site footer + compact phone header. Installed by footer/build-footer.mjs;
   the footer layout follows the Platinum Signs shop footer: small tracked headings, quiet links,
   contact cards, legal bar. */

.site-footer.lce-footer {
  position: relative;
  color: rgba(255, 255, 255, 0.7);
  background: #1f282d;
  font-size: 14px;
}

.lce-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.16), transparent);
}

.lce-footer .lf-wrap {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 64px 0 28px;
}

.lce-footer h2 {
  margin: 0;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.lce-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.lce-footer a {
  color: rgba(255, 255, 255, 0.62);
  text-decoration: none;
  transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}

.lce-footer a:hover,
.lce-footer a:focus-visible {
  color: #fff;
}

.lce-footer a:focus-visible,
.lce-footer summary:focus-visible {
  outline: 2px solid var(--brand-amber, #fcb033);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ── Brand + navigation ── */

.lce-footer .lf-top {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.lce-footer .lf-logo {
  display: inline-block;
}

.lce-footer .lf-logo img {
  display: block;
  width: 168px;
  height: auto;
}

.lce-footer .lf-brand p {
  max-width: 34ch;
  margin: 18px 0 22px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 14px;
  line-height: 1.6;
}

.lce-footer a.lf-cta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 20px;
  color: var(--ink, #171b1f);
  background: var(--brand-amber, #fcb033);
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
}

.lce-footer a.lf-cta:hover {
  color: var(--ink, #171b1f);
  background: #ffc35a;
}

.lce-footer .lf-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
}

.lce-footer .lf-col summary {
  display: block;
  margin-bottom: 18px;
  list-style: none;
  cursor: default;
  pointer-events: none;
}

.lce-footer .lf-col summary::-webkit-details-marker {
  display: none;
}

.lce-footer .lf-chev {
  display: none;
}

.lce-footer .lf-col li a {
  display: block;
  padding: 5px 0;
  font-size: 14px;
  line-height: 1.4;
}

/* ── Contact cards ── */

.lce-footer .lf-contact {
  padding: 36px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.lce-footer .lf-cards {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr) minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 14px;
  margin-top: 18px;
}

.lce-footer a.lf-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
}

.lce-footer a.lf-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.2);
}

.lce-footer .lf-card-icon {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  color: var(--brand-amber, #fcb033);
  background: rgba(var(--amber-rgb, 252, 176, 51), 0.12);
  border-radius: 50%;
}

.lce-footer .lf-card-text {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.lce-footer .lf-card-title {
  color: rgba(255, 255, 255, 0.55);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.lce-footer .lf-card-body {
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

/* ── Popular searches ── */

.lce-footer .lf-popular {
  display: flex;
  align-items: baseline;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.lce-footer .lf-popular h2 {
  flex: none;
  color: rgba(255, 255, 255, 0.55);
}

.lce-footer .lf-popular ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
}

.lce-footer .lf-popular a {
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
  line-height: 1.5;
}

/* ── Legal bar ── */

.lce-footer .lf-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 32px;
  padding-top: 24px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
}

.lce-footer .lf-legal .lf-seg {
  white-space: nowrap;
}

.lce-footer .lf-legal ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
}

.lce-footer .lf-legal a {
  color: rgba(255, 255, 255, 0.6);
}

/* ── Tablet ── */

@media (max-width: 1023px) {
  .lce-footer .lf-top {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .lce-footer .lf-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ── Phone: navigation becomes accordions ── */

@media (max-width: 767px) {
  .lce-footer .lf-wrap {
    width: calc(100% - 32px);
    padding-top: 44px;
  }

  .lce-footer .lf-top {
    gap: 28px;
    padding-bottom: 0;
    border-bottom: 0;
  }

  .lce-footer a.lf-cta {
    width: 100%;
    justify-content: center;
    min-height: 48px;
  }

  .lce-footer .lf-nav {
    display: block;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .lce-footer .lf-col {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .lce-footer .lf-col summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 52px;
    margin: 0;
    cursor: pointer;
    pointer-events: auto;
  }

  .lce-footer .lf-col h2 {
    font-size: 12px;
  }

  .lce-footer .lf-chev {
    display: block;
    color: rgba(255, 255, 255, 0.5);
    transition: transform 0.2s ease;
  }

  .lce-footer .lf-col[open] .lf-chev {
    transform: rotate(180deg);
  }

  .lce-footer .lf-col ul {
    padding-bottom: 14px;
  }

  .lce-footer .lf-col li a {
    padding: 9px 0;
    font-size: 15px;
  }

  .lce-footer .lf-contact {
    padding: 32px 0 28px;
  }

  .lce-footer .lf-popular {
    display: block;
  }

  .lce-footer .lf-popular ul {
    margin-top: 14px;
    gap: 10px 18px;
  }

  .lce-footer .lf-legal {
    flex-direction: column;
    align-items: flex-start;
    padding-bottom: 72px;
  }
}

@media (max-width: 479px) {
  .lce-footer .lf-cards {
    grid-template-columns: 1fr;
  }
}

/* ── Phone/tablet header: every page matches the compact homepage header ──
   The header logo PNG has a solid white background, so at the old 72 px height its box
   crowded the bar and spilled over the content scrolling underneath. */

@media (max-width: 1120px) {
  .site-header {
    padding-block: 6px 7px;
  }

  .brand img {
    width: min(132px, 38vw);
    max-height: 48px;
  }
}

/* ── Contact page on small phones ──
   The contact columns used plain 1fr, so the email card's min-content width (one long address)
   widened the whole page to 391 px on 320 px phones. Let the columns shrink and the address wrap. */
@media (max-width: 767px) {
  .contact-quote-layout,
  .contact-detail-stack { grid-template-columns: minmax(0, 1fr); }
  .contact-detail-card { min-width: 0; }
  .contact-detail-card h3 { overflow-wrap: anywhere; }
}
@media (max-width: 479px) {
  .contact-detail-card { padding: 18px; }
  .contact-detail-card h3 { font-size: 1.05rem; }
}
