/* Components for the Google Ads landing upgrades: how-we-work, our-factory, materials, design-centre.
   Uses the site tokens only. Built with mavensoft-api/tools/ads_landing_upgrade.py. */

.lp-actions { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 14px; }
.lp-actions .btn svg, .lp-btnrow .btn svg { flex: 0 0 auto; }
.lp-btnrow { margin-top: 34px; display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; }

/* Photo grid with captions */
.lp-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 28px; }
.lp-fig { margin: 0; border: 1px solid var(--ms-line); background: var(--ms-surface); display: flex; flex-direction: column; }
.lp-fig picture { display: block; }
.lp-fig img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; display: block; background: var(--ms-ground-dark); }
.lp-fig figcaption { padding: 18px 18px 22px; font-size: 14px; font-weight: 300; line-height: 1.65; color: var(--ms-text-muted); }
.lp-fig figcaption strong { display: block; font-family: var(--ms-font-display); font-weight: 400; font-size: 20px; line-height: 1.25; color: var(--ms-text); margin-bottom: 6px; }
.section--near-black .lp-fig, .section--charcoal .lp-fig { background: transparent; border-color: var(--ms-line-dark); }
.section--near-black .lp-fig figcaption, .section--charcoal .lp-fig figcaption { color: var(--ms-text-muted-dark); }
.section--near-black .lp-fig figcaption strong, .section--charcoal .lp-fig figcaption strong { color: var(--ms-chalk); }

/* Link cards with a picture and a WhatsApp button */
.lp-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 28px; }
.lp-card { border: 1px solid var(--ms-line); background: var(--ms-surface); display: flex; flex-direction: column; overflow: hidden; }
.lp-card__img { aspect-ratio: 4 / 3; background: var(--ms-ground-dark); overflow: hidden; display: block; }
.lp-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lp-card__body { padding: 22px 20px 24px; display: flex; flex-direction: column; flex-grow: 1; }
.lp-card__body h3 { font-family: var(--ms-font-display); font-size: 22px; font-weight: 400; margin: 0 0 10px; }
.lp-card__body h3 a { color: var(--ms-text); text-decoration: none; }
.lp-card__body p { font-size: 14px; color: var(--ms-text-muted); font-weight: 300; line-height: 1.6; margin: 0 0 18px; flex-grow: 1; }
.lp-card__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: auto; }
.lp-card__more { font-size: 13px; font-weight: 500; text-transform: uppercase; letter-spacing: .04em; color: var(--ms-text); text-decoration: none; }

.lp-note { border: 1px solid var(--ms-line); background: var(--ms-surface); padding: 26px 28px; margin-top: 32px; }
.lp-note strong { display: block; font-family: var(--ms-font-display); font-weight: 400; font-size: 22px; margin-bottom: 8px; color: var(--ms-text); }
.lp-note p { margin: 0; max-width: 72ch; font-size: 16px; font-weight: 300; line-height: 1.7; color: var(--ms-text-muted); }

.lp-faq > div { border-top: 1px solid var(--ms-line); padding: 22px 0; }
.lp-faq h3 { font-size: 20px; margin: 0 0 10px; }
.lp-faq p { margin: 0; max-width: 70ch; font-weight: 300; line-height: 1.7; }

/* Contact bar on phones: WhatsApp is always one tap away from the first screen. */
.lp-bar { display: none; }
@media (max-width: 899.98px) {
  .ms-cta { display: none !important; }
  .lp-hide-sm { display: none !important; }
  .lp-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 100; display: flex; gap: 12px;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
    background: var(--ms-chalk); border-top: 1px solid var(--ms-line);
  }
  .lp-bar .btn { flex: 1 1 auto; }
  .lp-bar__call {
    flex: 0 0 52px; width: 52px; height: 52px; display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--ms-line-strong); color: var(--ms-charcoal); background: var(--ms-chalk);
  }
}

/* How we work: the story of one sofa (assets used only on /how-we-work/) */
.st .ms-container { max-width: 1160px; }
.st-ch { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; align-items: center; padding: 56px 0; border-top: 1px solid var(--ms-line-dark); }
.st-ch__fig { margin: 0; }
.st-ch__fig img { width: 100%; height: auto; display: block; border: 1px solid var(--ms-line-dark); background: #0e0e0c; }
.st-ch__fig figcaption { margin-top: 12px; font-size: 13px; font-weight: 300; line-height: 1.6; color: var(--ms-text-muted-dark); }
.st-ch__no { display: block; font-family: var(--ms-font-display); font-size: 44px; line-height: 1; color: var(--ms-camel-light); margin-bottom: 12px; }
.st h3 { font-family: var(--ms-font-display); font-weight: 400; font-size: clamp(26px, 3vw, 36px); line-height: 1.15; color: var(--ms-chalk); margin: 0 0 16px; }
.st-ch__txt p, .st-wide__txt p, .st-end p { margin: 0 0 14px; max-width: 52ch; font-size: 16px; font-weight: 300; line-height: 1.75; color: var(--ms-text-muted-dark); }
.st-link { color: var(--ms-camel-light); text-decoration: none; font-size: 13px; font-weight: 500; text-transform: uppercase; letter-spacing: .04em; }
@media (min-width: 900px) {
  .st-ch { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 64px; }
  .st-ch--flip .st-ch__fig { order: 2; }
}
.st-wide { padding: 56px 0; border-top: 1px solid var(--ms-line-dark); }
.st-trio { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; margin-top: 36px; }
@media (min-width: 900px) { .st-trio { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.st-trio__fig { margin: 0; }
.st-trio__img { aspect-ratio: 4 / 3; overflow: hidden; background: #0e0e0c; border: 1px solid var(--ms-line-dark); display: flex; align-items: center; }
.st-trio__img picture, .st-trio__img img { display: block; width: 100%; height: 100%; }
.st-trio__img img { object-fit: cover; }
.st-trio__fig--design .st-trio__img img { height: auto; object-fit: contain; }
.st-trio__fig figcaption { margin-top: 12px; font-size: 13px; font-weight: 300; line-height: 1.6; color: var(--ms-text-muted-dark); }
.st-trio__fig figcaption strong { display: block; color: var(--ms-chalk); font-weight: 500; letter-spacing: .02em; margin-bottom: 2px; }
.st-end { padding: 56px 0 8px; border-top: 1px solid var(--ms-line-dark); text-align: center; }
.st-end p { margin-left: auto; margin-right: auto; }
.st-end .st-end__sub { font-size: 14px; margin-top: 22px; }

/* Mobile polish */
.lp-card__more, .st-link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 2px; }
.lp-btnrow .btn, .lp-actions .btn { max-width: 100%; white-space: normal; text-align: center; }
@media (max-width: 899.98px) { body.ms-menu-open .lp-bar { display: none; } }
@media (max-width: 420px) {
  .lp-btnrow .btn.btn--lg, .lp-actions .btn.btn--lg { padding: 18px 20px; }
}
@media (max-width: 380px) {
  .grid-auto, .faq-grid { grid-template-columns: minmax(0, 1fr); }
  .lp-bar { gap: 8px; padding-left: 12px; padding-right: 12px; }
  .lp-bar .btn { font-size: 12px; letter-spacing: .03em; padding-left: 10px; padding-right: 10px; min-width: 0; }
  .lp-bar__call { flex-basis: 48px; width: 48px; }
}

/* Mobile polish 2: inline-styled card rows force a 280px column; let them shrink on very narrow phones */
@media (max-width: 380px) {
  .ms-container[style*="grid-template-columns"] { grid-template-columns: minmax(0, 1fr) !important; }
  .split-band { grid-template-columns: minmax(0, 1fr) !important; }
}
