/**
 * LifeKeeper — Public site responsive shell (basemain / base2).
 */

body.lk-public {
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
}

body.lk-public img,
body.lk-public video,
body.lk-public iframe,
body.lk-public svg {
  max-width: 100%;
  height: auto;
}

body.lk-public .main,
body.lk-public #main-content {
  min-width: 0;
}

body.lk-public .container {
  padding-left: max(0.75rem, env(safe-area-inset-left, 0px));
  padding-right: max(0.75rem, env(safe-area-inset-right, 0px));
}

/* ── Header & logo ── */
@media (max-width: 1199.98px) {
  body.lk-public .header.lk-header .header-logo {
    width: 58px;
    height: 58px;
  }

  body.lk-public .header.lk-header .sitename {
    font-size: 1.15rem;
  }

  body.lk-public .header.lk-header .logo {
    max-width: calc(100% - 66px);
    min-width: 0;
  }

  body.lk-public .lk-logo-text {
    min-width: 0;
  }
}

@media (max-width: 399.98px) {
  body.lk-public .header.lk-header .lk-tagline {
    display: none;
  }

  body.lk-public .header.lk-header .sitename {
    font-size: 0.95rem;
  }
}

/* ── Touch targets ── */
@media (max-width: 1199.98px) {
  body.lk-public .lk-btn-accent,
  body.lk-public .lk-btn-outline,
  body.lk-public .lk-btn-ghost,
  body.lk-public .lk-header-btn,
  body.lk-public .mobile-btn,
  body.lk-public .navmenu a {
    min-height: 44px;
  }
}

/* ── Footer ── */
@media (max-width: 991.98px) {
  /* Tablet: badges and newsletter stack — center both blocks */
  body.lk-public .footer.lk-footer .footer-middle .trust-badges {
    justify-content: center;
  }

  body.lk-public .footer.lk-footer .footer-middle .newsletter {
    max-width: 480px;
    margin: 0 auto;
    text-align: center;
  }

  body.lk-public .footer.lk-footer .newsletter-form {
    margin: 0 auto;
  }
}

@media (max-width: 767.98px) {
  body.lk-public .footer.lk-footer {
    padding-top: 32px;
  }

  body.lk-public .footer.lk-footer .footer-top {
    padding-top: 0;
    padding-bottom: 1.5rem;
  }

  body.lk-public .footer.lk-footer .footer-brand {
    justify-content: center;
    text-align: center;
    width: 100%;
  }

  body.lk-public .footer.lk-footer .footer-about {
    text-align: center;
  }

  body.lk-public .footer.lk-footer .footer-about p {
    margin-left: auto;
    margin-right: auto;
  }

  body.lk-public .footer.lk-footer .social-links {
    justify-content: center;
  }

  body.lk-public .footer.lk-footer .footer-links {
    text-align: center;
  }

  /* Comfortable tap targets for link lists */
  body.lk-public .footer.lk-footer .footer-links ul li {
    padding: 0;
  }

  body.lk-public .footer.lk-footer .footer-links ul a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 4px 8px;
  }

  /* Contact: centered block, rows stay left-aligned for readability */
  body.lk-public .footer.lk-footer .footer-contact {
    text-align: center;
  }

  body.lk-public .footer.lk-footer .footer-contact-list {
    display: inline-flex;
    text-align: left;
    margin: 0 auto;
  }

  body.lk-public .footer.lk-footer .copyright {
    text-align: center;
    font-size: 0.78rem;
    line-height: 1.55;
  }

  body.lk-public .footer.lk-footer .footer-copyright-line .footer-sep {
    display: block;
    height: 0;
    overflow: hidden;
  }
}

@media (max-width: 575.98px) {
  /* Phones: newsletter input and button stack full-width */
  body.lk-public .footer.lk-footer .newsletter-form {
    flex-direction: column;
    gap: 0.5rem;
    max-width: 100%;
  }

  body.lk-public .footer.lk-footer .newsletter-form input,
  body.lk-public .footer.lk-footer .newsletter-form button {
    width: 100%;
    min-height: 48px;
  }

  body.lk-public .footer.lk-footer .badge1 {
    font-size: 0.74rem;
    padding: 8px 12px;
  }
}

/* ── Floating actions ── */
@media (max-width: 575.98px) {
  body.lk-public .lk-whatsapp-float {
    bottom: calc(14px + env(safe-area-inset-bottom, 0px));
    right: calc(14px + env(safe-area-inset-right, 0px));
  }

  body.lk-public .scroll-top.active {
    bottom: calc(78px + env(safe-area-inset-bottom, 0px));
    right: calc(14px + env(safe-area-inset-right, 0px));
  }
}

/* ── Shared page hero ── */
@media (max-width: 767.98px) {
  body.lk-public .lk-page-hero {
    padding: 2rem 0 1.5rem;
    text-align: center;
  }

  body.lk-public .lk-page-hero .lk-badge {
    margin-bottom: 0.65rem;
  }
}

/* ── Shared sections & CTAs ── */
@media (max-width: 767.98px) {
  body.lk-public .lk-section {
    padding: 2.75rem 0;
  }

  body.lk-public .lk-button-row {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  body.lk-public .lk-button-row .lk-btn-accent,
  body.lk-public .lk-button-row .lk-btn-outline,
  body.lk-public .lk-button-row .lk-btn-on-dark-outline {
    width: 100%;
    justify-content: center;
  }

  body.lk-public .lk-mega-cta-inner {
    padding: 2rem 1.25rem;
    text-align: center;
  }

  body.lk-public .lk-mega-cta-actions {
    flex-direction: column;
    width: 100%;
  }

  body.lk-public .lk-mega-cta-actions .lk-btn-accent,
  body.lk-public .lk-mega-cta-actions .lk-btn-on-dark-outline {
    width: 100%;
    justify-content: center;
  }

  body.lk-public .lk-engraving-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  body.lk-public .lk-engraving-card {
    padding: 1.5rem 1.15rem;
  }

  body.lk-public .lk-engraving-banner,
  body.lk-public .home-platform-banner {
    padding: 1.5rem 1rem !important;
    text-align: center;
  }

  body.lk-public .lk-trust-strip {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 0.85rem;
    padding: 0.65rem 0.5rem;
  }
}

/* ── Form controls (prevent iOS zoom) ── */
@media (max-width: 767.98px) {
  body.lk-public input[type="text"],
  body.lk-public input[type="email"],
  body.lk-public input[type="tel"],
  body.lk-public input[type="password"],
  body.lk-public input[type="search"],
  body.lk-public input[type="date"],
  body.lk-public select,
  body.lk-public textarea,
  body.lk-public .form-control {
    font-size: 16px;
  }
}
