/* Global 2026 shell corrections shared by every public template. */
:root {
  --pptp-fixed-header-height: 81px;
}

body {
  padding-top: var(--pptp-fixed-header-height) !important;
}

#site-header .navbar.top-bar-header {
  position: fixed !important;
  inset: 0 0 auto !important;
  width: 100% !important;
  z-index: 1040 !important;
  background: #fff !important;
  box-shadow: 0 8px 28px rgba(0, 47, 95, 0.09);
}

body.admin-bar #site-header .navbar.top-bar-header {
  top: 32px !important;
}

@media (max-width: 782px) {
  body.admin-bar #site-header .navbar.top-bar-header {
    top: 46px !important;
  }
}

@media (max-width: 991px) {
  #site-header .menu-item-offer-direct > .dropdown-menu {
    display: block;
    position: static;
    width: 100%;
    margin: 0;
    padding: 0 0 8px 16px;
    border: 0;
    box-shadow: none;
    text-align: left;
  }
}

/* Mobile components must shrink to their content column, not desktop min-widths. */
@media (max-width: 991px) {
  body.home #site-header .navbar.top-bar-header > .site-nav-shell {
    width: calc(100% - 32px);
    padding-inline: 0;
  }

  #offcanvasNavbar { width: min(400px, 100vw); max-width: 100%; }
  #offcanvasNavbar .offcanvas-title,
  #offcanvasNavbar .navbar-brand,
  #offcanvasNavbar .navbar-brand-text { min-width: 0; }
  #offcanvasNavbar .navbar-brand-text { white-space: normal; overflow-wrap: anywhere; }
  #offcanvasNavbar .btn-close { flex-shrink: 0; }
  #offcanvasNavbar .mobile-nav-cta { display: flex; justify-content: center; margin-top: 24px; white-space: normal; }
  /* Match the desktop menu: the unfinished language switch stays hidden. */
  #offcanvasNavbar .nav-item:has(.nav-link img),
  #offcanvasNavbar .nav-item.lang-item,
  #offcanvasNavbar .nav-item.pll-parent-menu-item { display: none !important; }

  body.home .hero-split__body { min-width: 0; padding: 32px 0 28px; }
  body.home .hero-split__inner { min-width: 0; padding-inline: 20px; }
  body.home .hero-split__heading {
    font-size: clamp(30px, 6.8vw, 42px);
    line-height: 1.08;
    margin-bottom: 18px;
    word-break: normal;
    overflow-wrap: break-word;
    text-wrap: balance;
  }
  body.home .hero-split__sub { font-size: 16px; line-height: 1.6; margin-bottom: 24px; }
  body.home .hero-split__actions { gap: 12px; margin-bottom: 28px; }
  body.home .hero-btn {
    justify-content: center;
    min-height: 48px;
    max-width: 100%;
    padding: 12px 18px;
    white-space: normal;
    text-align: center;
    line-height: 1.35;
  }
  body.home .hero-split__stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 16px;
    padding-top: 24px;
  }
  body.home .hero-stat {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 3px 8px;
    min-width: 0;
    padding: 0;
    align-content: center;
  }
  body.home .hero-stat::after { display: none !important; }
  body.home .hero-stat svg {
    grid-row: 1 / 3;
    width: 32px;
    height: 32px;
    padding: 6px;
    margin: 0;
    align-self: center;
  }
  body.home .hero-stat strong { font-size: clamp(18px, 5.1vw, 22px); line-height: 1.15; }
  body.home .hero-stat span { font-size: 10px; letter-spacing: 0.035em; overflow-wrap: anywhere; }
  body.home .hero-stat--stack strong:first-of-type { font-size: 12px; }
  body.home .hero-split__visual { height: clamp(220px, 52vw, 360px); min-width: 0; }
  body.home .hero-split__img { object-position: center; }

  body.home .hero-infobar__items {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 16px;
  }
  body.home .hero-infobar__item { justify-content: flex-start; gap: 10px; min-width: 0; align-items: center; }
  body.home .hero-infobar__item svg { width: 26px; height: 26px; }
  body.home .hero-infobar__text { min-width: 0; }
  body.home .hero-infobar__text strong { font-size: 15px; letter-spacing: 0; }
  body.home .hero-infobar__text em { font-size: 11px; letter-spacing: 0.02em; line-height: 1.4; }

  body.home .why-grid,
  body.home .offer-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.home .why-card__body,
  body.home .why-banner__text,
  body.home .why-banner__actions,
  body.home .offer-card,
  body.home .cta-new__body,
  body.home .cta-new__inner { min-width: 0; }
  body.home .why-banner__btn,
  body.home .cta-new__btn,
  body.home .offer-card__cta { max-width: 100%; white-space: normal; overflow-wrap: break-word; text-align: center; }
  body.home .why-card__icon,
  body.home .why-banner__icon,
  body.home .cta-new__btn svg,
  body.home .offer-card__cta svg { flex-shrink: 0; }
}

@media (max-width: 575px) {
  body.home .hero-btn { width: 100%; }
  body.home .why-grid,
  body.home .offer-cards { grid-template-columns: minmax(0, 1fr); }
  body.home .why-section,
  body.home .offer-section { padding-block: 48px; }
  body.home .why-card { padding: 24px 20px; gap: 16px; }
  body.home .why-banner { padding: 24px 20px; flex-direction: column; align-items: flex-start; }
  body.home .why-banner__actions,
  body.home .why-banner__btn { width: 100%; align-items: stretch; justify-content: center; }
  body.home .cta-new__body { padding: 28px 20px; }
  body.home .cta-new__btn { padding-inline: 12px; font-size: 13px; }
  .footer-new__newsletter-input { min-width: 0; width: 100%; }
  /* Keep legal links above the fixed contact/accessibility buttons at page end. */
  .footer-new__copy { padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
}

@media (max-width: 600px) {
  /* WordPress otherwise scrolls its toolbar away but leaves a 46px header gap. */
  body.admin-bar #wpadminbar { position: fixed; }
}

/* Fifth, descriptive item follows the four numeric History statistics. */
.pptp-history-stat--rent { grid-column: 1 / -1; }
