/* Shared layout, contrast, and footer fixes for public pages. */

:root {
  --container-max: 1200px;
}

.container {
  width: 100%;
  max-width: 1200px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 1.5rem !important;
  padding-right: 1.5rem !important;
  box-sizing: border-box;
}

.page-hero-content,
.page-body,
.container.page-body {
  max-width: none !important;
  margin-left: 0;
  margin-right: 0;
  text-align: left;
}

.page-body p,
.page-body li,
.page-hero-lead,
.ownership-body {
  max-width: 72ch;
}

.page-body .svc-grid,
.page-body .steps-grid,
.steps-grid,
.svc-grid {
  max-width: none;
  width: 100%;
}

.page-body,
.page-body p,
.page-body li,
.page-body h2,
.page-body h3 {
  color: #1a1c18;
}

.page-hero,
.page-hero h1,
.cta-section,
.cta-section h2 {
  color: #fff;
}

.page-hero-lead {
  color: #fff !important;
}

/* Light section that reused the dark how-section heading color */
.how-section[style*="sand"] .how-header h2,
.how-section[style*="sand"] .how-header p,
.how-section[style*="white"] .how-header h2,
.how-section[style*="white"] .how-header p,
.how-section[style*="sand"] > .container > h2,
.how-section[style*="sand"] > .container > p {
  color: #1a1c18 !important;
}

/* Dark how-section copy that was inheriting the page's dark text */
.how-section:not([style*="sand"]):not([style*="white"]) .how-header p,
.how-section:not([style*="sand"]):not([style*="white"]) > .container > h2,
.how-section:not([style*="sand"]):not([style*="white"]) > .container > p {
  color: #f7f6f3 !important;
}

.how-section:not([style*="sand"]):not([style*="white"]) > .container > p a {
  color: #ffd0c2 !important;
}

a.svc-card,
a.step-card,
a.svc-card h3,
a.step-card h3,
.svc-card h3,
.step-card h3 {
  text-decoration: none !important;
  background-image: none !important;
}

.footer-main {
  display: grid !important;
  grid-template-columns: minmax(200px, 1.35fr) repeat(5, minmax(120px, 1fr)) !important;
  gap: 2rem 1.25rem !important;
  align-items: start !important;
  text-align: left !important;
}

.footer-nav h4 {
  margin: 0 0 0.9rem !important;
  padding-top: 0 !important;
}

.footer-nav ul {
  margin: 0;
  padding: 0;
}

.footer-nav li {
  margin: 0 0 0.45rem !important;
}

.footer-nav a {
  display: inline !important;
  min-height: 0 !important;
  line-height: 1.45 !important;
  padding: 0 !important;
}

@media (max-width: 1100px) {
  .footer-main {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 700px) {
  .footer-main {
    grid-template-columns: 1fr !important;
    text-align: left !important;
    gap: 1.75rem !important;
  }
  .footer-brand,
  .footer-nav,
  .footer-brand p {
    text-align: left !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  .footer-brand {
    align-items: flex-start !important;
  }
}

@media print {
  .site-header,
  .nav-toggle,
  .exit-modal-overlay,
  .skip-nav-link {
    display: none !important;
  }
  img,
  .shot,
  .device {
    max-width: 45% !important;
    height: auto !important;
  }
  .svc-card,
  .step-card,
  .device-pair,
  .faq-item {
    break-inside: avoid;
    page-break-inside: avoid;
  }
}
