/* Footer-only refinement; retain the approved palette, typefaces and destinations. */
.apple-lamsa .ref-footer {
  /* Exact current header background from brand-identity.css; header is unchanged. */
  background: rgba(247, 244, 236, .92) !important;
  padding: 32px max(24px, calc((100vw - 960px) / 2)) 88px !important;
}
.apple-lamsa .ref-footer .ref-heading h2 {
  font-size: 24px !important;
  line-height: 1.4 !important;
  margin: 0 0 18px !important;
  text-wrap: balance;
}
.apple-lamsa .ref-footer .ref-social-grid {
  grid-template-columns: 1fr 1fr 1.5fr;
  max-width: 600px;
  gap: 8px !important;
}
.apple-lamsa .ref-footer :is(.ref-social-link, .ref-wa) {
  min-height: 44px !important;
  padding: 10px 14px !important;
  font-size: 14px !important;
  flex-direction: row !important;
  gap: 8px !important;
}
.apple-lamsa .ref-footer :is(.ref-instagram, .ref-facebook),
.apple-lamsa .ref-footer :is(.ref-instagram, .ref-facebook, .ref-wa) svg {
  width: 20px !important;
  height: 20px !important;
  flex-shrink: 0;
}
.apple-lamsa .ref-footer .ref-brand-row {
  margin: 24px auto 12px !important;
  gap: 20px !important;
}
.apple-lamsa .ref-footer .ref-logo img {
  width: 40px !important;
  height: 56px !important;
}
.apple-lamsa .ref-footer .ref-tagline { margin-top: 4px; }
.apple-lamsa .ref-footer .ref-brand-caption { font-size: 14px !important; }
.apple-lamsa .ref-footer .ref-quicklinks {
  margin: 12px auto 16px !important;
  gap: 4px 16px !important;
}
.apple-lamsa .ref-footer .ref-quicklinks a {
  min-height: 44px !important;
  font-size: 14px !important;
  gap: 6px;
  padding: 8px !important;
}
.apple-lamsa .ref-footer .ref-quick-icon {
  display: inline-flex !important;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
}
.apple-lamsa .ref-footer .ref-quick-icon svg { width: 20px; height: 20px; }
.apple-lamsa .ref-footer .ref-copyright { font-size: 12px !important; padding-top: 16px; }
.apple-lamsa .ref-footer :is(.ref-quicklinks a, .ref-copyright, .ref-tagline) { color: var(--ink) !important; }
.apple-lamsa .ref-footer a:focus-visible { outline: 3px solid var(--ink) !important; outline-offset: 3px !important; }
.apple-lamsa .ref-footer a:hover { text-decoration: underline !important; text-underline-offset: 4px; }
.apple-lamsa .ref-footer .ref-quicklinks a[href="#showroom"] {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
.apple-lamsa .ref-footer a:focus:not(:focus-visible) { outline: none !important; }
.apple-lamsa .ref-footer :is(.ref-social-link, .ref-wa),
.apple-lamsa .ref-footer :is(.ref-social-link, .ref-wa):is(:hover, :active, :focus, :focus-visible, :visited) {
  text-decoration: none !important;
}
@media (max-width: 600px) {
  .apple-lamsa .ref-footer { padding-top: 28px !important; }
  .apple-lamsa .ref-footer .ref-social-grid { grid-template-columns: 1fr 1fr; max-width: 380px; }
  .apple-lamsa .ref-footer .ref-wa { grid-column: 1 / -1; }
  .apple-lamsa .ref-footer .ref-heading h2 { font-size: 22px !important; }
  .apple-lamsa .ref-footer .ref-quicklinks { column-gap: 8px !important; }
}

.apple-lamsa .ref-footer .ref-facebook{transform:translateY(-2px)}
.apple-lamsa .ref-footer .ref-logo{display:flex!important;flex-direction:row-reverse;align-items:center;gap:10px;flex-shrink:0}
.apple-lamsa .ref-footer .ref-brand-text{display:flex;flex-direction:column;align-items:center;white-space:nowrap}
.apple-lamsa .ref-footer .ref-brand-name{font-size:19px;font-weight:600;line-height:1.4;color:var(--ink)}
.apple-lamsa .ref-footer .ref-tagline{margin-top:2px;font-size:12px!important;line-height:1.5}
.apple-lamsa .ref-footer .ref-brand-caption{font-size:16px!important;color:#766442!important;line-height:1.65;min-width:0;text-wrap:balance}

.apple-lamsa .ref-footer .ref-benefits{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:8px 24px;margin:8px auto 16px}
.apple-lamsa .ref-footer .ref-benefits .welcome-benefit{min-height:44px;gap:6px}
.apple-lamsa .ref-footer .ref-benefits .welcome-benefit-label{font-size:14px;line-height:1.5}
.apple-lamsa .ref-footer .ref-benefits .welcome-icon{width:24px;height:24px}
.apple-lamsa .ref-footer .ref-benefits .welcome-icon svg{width:20px;height:20px}
/* Trim only the coming-soon card's outer whitespace. */
.apple-lamsa #aiDesign{padding-block:28px!important}
.apple-lamsa #aiDesign .design-form-note{margin-bottom:0!important}
@media(max-width:760px){.apple-lamsa #aiDesign{padding-top:24px!important;padding-bottom:18px!important;gap:22px!important}}

/* Verified LAMSA social channels; retain two compact columns on phones. */
.apple-lamsa .ref-footer .ref-social-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(220px, 1.5fr) !important;
  max-width: 980px;
  margin-inline: auto;
}
.apple-lamsa .ref-footer .ref-social-link > svg { width: 20px; height: 20px; flex-shrink: 0; }
.apple-lamsa .ref-footer :is(.ref-social-link, .ref-wa) { min-width: 0; margin-top: 0 !important; }
@media (max-width: 760px) {
  .apple-lamsa .ref-footer .ref-social-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; max-width: 380px; }
  .apple-lamsa .ref-footer .ref-wa { grid-column: 1 / -1; }
}

/* Approved compact, icon-only social footer. */
.apple-lamsa .ref-footer { padding: 20px 24px 8px !important; }
.apple-lamsa .ref-footer .ref-heading h2 { font-size: 27px !important; margin-bottom: 12px !important; }
.apple-lamsa .ref-footer .ref-social-grid { display: flex !important; flex-wrap: nowrap !important; justify-content: center; align-items: center; gap: 18px !important; max-width: none; }
.apple-lamsa .ref-footer .ref-social-icon { display: inline-grid; place-items: center; width: 56px; height: 56px; min-width: 44px; padding: 3px; border: 0; border-radius: 12px; background: transparent; text-decoration: none; }
.apple-lamsa .ref-footer .ref-social-icon svg { width: 48px; height: 48px; display: block; }
.apple-lamsa .ref-footer .ref-social-icon:hover { transform: translateY(-2px); }
.apple-lamsa .ref-footer .ref-brand-row { margin: 12px auto !important; gap: 20px !important; }
.apple-lamsa .ref-footer .ref-quicklinks { display: grid !important; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 0 !important; max-width: 1180px; margin: 8px auto !important; }
.apple-lamsa .ref-footer .ref-quicklinks a { justify-content: center; padding: 8px 12px !important; min-height: 44px !important; font-size: 14px !important; }
.apple-lamsa .ref-footer .ref-quicklinks a.ref-explore { grid-column: 1/-1; color: #fffdf8 !important; background: #0f3d2e !important; border-radius: 0 !important; min-height: 48px !important; font-size: 18px !important; margin-bottom: 8px; }
.apple-lamsa .ref-footer .ref-quicklinks a.ref-explore .ref-quick-icon { display: inline-flex !important; }
.apple-lamsa .ref-footer .ref-facts { margin: 8px auto !important; padding-top: 10px; border-top: 1px solid #dfd3bf; font-size: 13px; gap: 12px 20px; }
.apple-lamsa .ref-footer .ref-copyright { margin-top: 8px !important; padding: 7px 0 0 !important; line-height: 1.4; font-size: 11px !important; }
@media(max-width:760px) {
 .apple-lamsa .ref-footer { padding: 18px 16px 6px !important; }
 .apple-lamsa .ref-footer .ref-heading h2 { font-size: 23px !important; }
 .apple-lamsa .ref-footer .ref-social-grid { gap: 12px !important; }
 .apple-lamsa .ref-footer .ref-social-icon { width: 48px; height: 48px; padding: 2px; }
 .apple-lamsa .ref-footer .ref-social-icon svg { width: 44px; height: 44px; }
 .apple-lamsa .ref-footer .ref-brand-row { gap: 12px !important; margin: 10px auto !important; }
 .apple-lamsa .ref-footer .ref-brand-caption { font-size: 13px !important; }
 .apple-lamsa .ref-footer .ref-logo img { width: 29px !important; height: 42px !important; }
 .apple-lamsa .ref-footer .ref-brand-name { font-size: 16px; }
 .apple-lamsa .ref-footer .ref-tagline { font-size: 10px !important; }
 .apple-lamsa .ref-footer .ref-quicklinks { grid-template-columns: repeat(2,minmax(0,1fr)); }
 .apple-lamsa .ref-footer .ref-quicklinks a { font-size: 12px !important; padding: 7px 3px !important; }
 .apple-lamsa .ref-footer .ref-facts { font-size: 11px; gap: 6px 10px; }
}
@media(prefers-reduced-motion:reduce) { .apple-lamsa .ref-footer .ref-social-icon:hover { transform: none; } }

/* Outrank later legacy footer rules without changing other page sections. */
html body.apple-lamsa #top section.ref-footer { padding: 18px 24px 6px !important; }
html body.apple-lamsa #showroom { padding-bottom: 24px !important; }
html body.apple-lamsa #top section.ref-footer nav.ref-quicklinks { grid-template-columns: repeat(4,minmax(0,1fr)) !important; }
html body.apple-lamsa #top section.ref-footer nav.ref-quicklinks a { border: 0 !important; border-radius: 0 !important; background: transparent !important; box-shadow: none !important; }
html body.apple-lamsa #top section.ref-footer nav.ref-quicklinks a.ref-explore { grid-column: 1 / -1 !important; background: #0f3d2e !important; color: #fffdf8 !important; }
html body.apple-lamsa #top section.ref-footer .ref-copyright { margin-top: 6px !important; padding: 6px 0 0 !important; }
@media(max-width:760px) {
 html body.apple-lamsa #top section.ref-footer { padding: 16px 16px 6px !important; }
 html body.apple-lamsa #top section.ref-footer nav.ref-quicklinks { grid-template-columns: repeat(2,minmax(0,1fr)) !important; }
}
