/* =========================================================
   Prime Terceirizados — ajustes focados em mobile/tablet
   Mantém o desktop atual e corrige leitura, espaçamento,
   enquadramento de imagens, menu e cards em telas menores.
   ========================================================= */

@media (max-width: 1199.98px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  :root { --header-height: 72px; }

  .site-header,
  .home-page .site-header {
    min-height: var(--header-height);
    background: rgba(255,255,255,.98) !important;
    border-bottom: 1px solid rgba(223,231,239,.95) !important;
    box-shadow: 0 8px 24px rgba(13,41,68,.08) !important;
    backdrop-filter: blur(16px);
  }

  .site-header .navbar {
    min-height: var(--header-height);
    padding: .15rem 0;
  }

  .brand-logo {
    width: 80px;
    height: 56px;
  }

  .home-page .navbar-toggler,
  .home-page .navbar-toggler i,
  .navbar-toggler,
  .navbar-toggler i {
    color: var(--prime-ink) !important;
  }

  .navbar-toggler {
    width: 46px;
    height: 46px;
    display: inline-grid;
    place-items: center;
    border-radius: 13px;
    background: #f5f8fc;
  }

  .navbar-collapse,
  .home-page .navbar-collapse {
    margin-top: .55rem;
    padding: .75rem;
    border: 1px solid var(--prime-line) !important;
    border-radius: 20px;
    background: #fff !important;
    box-shadow: 0 18px 42px rgba(13,41,68,.11) !important;
  }

  .home-nav-pill {
    width: 100%;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  .navbar-nav .nav-link,
  .home-page .navbar-nav .nav-link {
    min-height: 46px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .72rem .85rem !important;
    border-radius: 12px;
    color: #33465a !important;
  }

  .navbar-nav .nav-link:hover,
  .navbar-nav .nav-link.active,
  .home-page .navbar-nav .nav-link:hover,
  .home-page .navbar-nav .nav-link.active {
    color: var(--prime-blue) !important;
    background: #eff5fc !important;
  }

  .dropdown-menu {
    position: static !important;
    width: 100%;
    min-width: 0;
    margin: .25rem 0 .4rem;
    padding: .35rem;
    border-radius: 14px;
    box-shadow: none;
    background: #f8fbfe;
  }

  .dropdown-item {
    white-space: normal;
    padding: .7rem .75rem;
  }

  .site-header .btn-prime {
    width: 100%;
    min-height: 48px;
    margin: .55rem 0 0 !important;
  }
}

@media (max-width: 767.98px) {
  :root { --header-height: 68px; }

  body {
    font-size: 16px;
  }

  .container-xl {
    padding-left: 18px;
    padding-right: 18px;
  }

  .section {
    padding: 56px 0;
  }

  .section-sm {
    padding: 42px 0;
  }

  p,
  .lead-copy {
    line-height: 1.68;
  }

  .page-hero {
    padding: 48px 0 44px;
  }

  .page-hero::after {
    width: 220px;
    height: 220px;
    right: -110px;
    bottom: -100px;
    border-width: 34px;
  }

  .page-intro h1,
  .section-title h2 {
    font-size: clamp(2rem, 9.4vw, 2.75rem);
    line-height: 1.02;
    letter-spacing: -.045em;
  }

  .page-intro p {
    font-size: 1rem;
    line-height: 1.68;
  }

  .service-page .page-hero .row {
    --bs-gutter-y: 1.25rem;
  }

  .service-page .page-hero .btn-prime {
    width: 100%;
    min-height: 52px;
  }

  .service-overview .row {
    --bs-gutter-y: 2rem;
  }

  .service-overview h2 {
    font-size: clamp(1.85rem, 8vw, 2.45rem);
    line-height: 1.08;
    letter-spacing: -.04em;
  }

  .service-page .check-list {
    gap: .8rem;
  }

  .service-page .check-list li {
    gap: .65rem;
    line-height: 1.55;
  }

  .service-page .notice-box {
    padding: 1rem;
    border-radius: 15px;
    font-size: .94rem;
    line-height: 1.58;
  }

  .service-page .section-title {
    margin-bottom: 1.5rem;
  }

  .service-page .scope-item {
    padding: 1rem;
    border-radius: 18px !important;
  }

  .service-page .scope-item > i {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
  }

  .limpeza-page .specialty-detail {
    padding: 1.25rem;
    border-radius: 20px;
  }

  .limpeza-page .specialty-detail h3 {
    font-size: 1.24rem;
  }

  .cta-panel {
    padding: 1.5rem;
    border-radius: 22px;
  }

  .cta-panel h2 {
    font-size: clamp(1.8rem, 7.8vw, 2.35rem);
    line-height: 1.08;
  }

  .cta-panel .btn-neutral,
  .cta-panel .btn-prime {
    width: 100%;
    min-height: 50px;
  }

  /* Fotos das páginas de serviço: sem sobreposição apertada no celular */
  .modern-photo-card {
    padding: 10px;
    border-radius: 22px !important;
    box-shadow: 0 16px 36px rgba(13,41,68,.09) !important;
  }

  .modern-photo-card::before {
    width: 150px;
    height: 150px;
    right: -60px;
    top: -65px;
  }

  .modern-photo-card img {
    aspect-ratio: 4 / 3;
    border-radius: 16px !important;
  }

  .photo-badge {
    position: static;
    width: fit-content;
    max-width: 100%;
    margin-bottom: 9px;
    padding: .58rem .72rem;
    font-size: .7rem;
    box-shadow: none;
    background: var(--service-accent-soft);
    color: var(--prime-ink);
    border-color: transparent;
    backdrop-filter: none;
  }

  .photo-title-card {
    position: static;
    max-width: 100%;
    margin-top: 9px;
    padding: .8rem .9rem;
    border-radius: 14px;
    background: #0b1f33;
    box-shadow: none;
  }

  .photo-title-card strong {
    font-size: .91rem;
  }

  /* Home */
  .home-hero-premium {
    min-height: auto;
    padding-top: calc(var(--header-height) + 18px);
    padding-bottom: 24px;
  }

  .hero-premium-image {
    background-position: 70% center;
  }

  .hero-premium-overlay {
    background:
      linear-gradient(90deg, rgba(5,14,24,.95) 0%, rgba(5,14,24,.84) 54%, rgba(5,14,24,.52) 100%),
      linear-gradient(180deg, rgba(5,14,24,.12) 0%, rgba(5,14,24,.55) 100%);
  }

  .hero-premium-grid {
    min-height: 470px;
    align-items: center;
  }

  .hero-premium-copy {
    max-width: 100%;
    transform: none !important;
  }

  .home-hero-premium h1 {
    max-width: 11ch;
    margin: .95rem 0 1rem;
    font-size: clamp(2.35rem, 10.6vw, 3.15rem);
    line-height: .96;
    letter-spacing: -.055em;
  }

  .home-hero-premium p {
    max-width: 32rem;
    font-size: 1rem;
    line-height: 1.62;
  }

  .hero-actions {
    width: 100%;
    gap: .65rem;
    margin-top: 1.35rem;
  }

  .hero-actions > * {
    width: 100%;
    min-height: 52px;
  }

  .hero-value-strip-wrap {
    margin-top: 18px;
  }

  .hero-value-strip {
    border-radius: 22px;
  }

  .hero-value-strip article {
    padding: 1.05rem 1.05rem 1.1rem;
  }

  .value-strip-bar {
    width: 6px;
    height: 34px;
    margin-bottom: .7rem;
  }

  .hero-value-strip h3 {
    margin-bottom: .35rem;
    font-size: 1rem;
  }

  .hero-value-strip p {
    font-size: .9rem;
    line-height: 1.55;
  }

  .services-featured,
  .home-specialties,
  .home-about,
  .home-process,
  .home-cta {
    padding-top: 58px;
    padding-bottom: 58px;
  }

  .home-cta {
    padding-top: 0;
  }

  .home-heading {
    margin-bottom: 2.2rem;
  }

  .home-heading h2,
  .about-copy h2,
  .home-cta-panel h2 {
    font-size: clamp(1.9rem, 8.5vw, 2.55rem);
    line-height: 1.06;
    letter-spacing: -.045em;
  }

  .home-heading p {
    font-size: .98rem;
    line-height: 1.66;
  }

  .service-feature-list {
    gap: 58px;
  }

  .service-feature,
  .service-feature-reverse {
    gap: 22px;
  }

  .services-featured .service-feature-shape,
  .services-featured .service-blob-left,
  .services-featured .service-blob-right {
    aspect-ratio: 4 / 3;
    border-radius: 26px;
  }

  .service-feature-dots,
  .service-feature-dots-right {
    display: none;
  }

  .service-feature-copy h3 {
    margin: .8rem 0 .85rem;
    font-size: clamp(1.8rem, 7.8vw, 2.35rem);
    line-height: 1.08;
    letter-spacing: -.04em;
  }

  .service-feature-copy p {
    font-size: .98rem;
    line-height: 1.68;
  }

  .service-feature-copy ul {
    margin-top: 1.15rem;
    gap: .68rem;
  }

  .service-feature-copy li {
    padding-left: 1.35rem;
    font-size: .95rem;
    line-height: 1.55;
  }

  .service-card-link {
    margin-top: 1.3rem;
    line-height: 1.4;
  }

  .specialty-card {
    padding: 1.25rem;
    border-radius: 22px;
  }

  .specialty-card h3 {
    margin: 1.35rem 0 .55rem;
    font-size: 1.35rem;
  }

  .about-panel {
    gap: 26px;
    padding: 1.35rem;
    border-radius: 24px;
  }

  .about-logo-watermark {
    width: 70%;
    right: -22%;
    opacity: .035;
  }

  .about-values > div {
    grid-template-columns: 44px 1fr;
    gap: .8rem;
    padding: 1rem 0;
  }

  .about-values h3 {
    margin-top: .45rem;
  }

  .about-values p {
    grid-column: 1 / -1;
    margin-top: 0;
  }

  .process-card {
    padding: 1.25rem;
    border-radius: 20px;
  }

  .process-card > i {
    margin-bottom: 1.2rem;
  }

  .home-cta-panel {
    padding: 2rem 1.25rem;
    border-radius: 24px;
  }

  .home-cta-panel .btn-prime {
    width: 100%;
  }

  /* Contato */
  .contact-whatsapp-card {
    padding: 1.55rem 1.15rem;
    border-radius: 24px;
  }

  .whatsapp-icon-wrap {
    width: 72px;
    height: 72px;
    border-radius: 22px;
    font-size: 1.95rem;
  }

  .contact-whatsapp-card h2 {
    font-size: clamp(1.9rem, 8.4vw, 2.5rem);
    letter-spacing: -.04em;
    overflow-wrap: anywhere;
  }

  .contact-whatsapp-card p {
    font-size: .96rem;
    line-height: 1.62;
  }

  .btn-whatsapp {
    width: 100%;
    min-height: 52px;
  }

  /* Footer */
  .site-footer {
    margin-top: 20px;
    padding: 48px 0 22px;
  }

  .footer-bottom {
    margin-top: 28px;
    gap: .7rem !important;
    line-height: 1.5;
  }

  .footer-links-columns {
    columns: 1;
  }
}

@media (max-width: 575.98px) {
  .container-xl {
    padding-left: 16px;
    padding-right: 16px;
  }

  .brand-logo {
    width: 74px;
    height: 52px;
  }

  .page-hero {
    padding: 42px 0 38px;
  }

  .page-intro h1,
  .section-title h2 {
    font-size: clamp(1.9rem, 9.2vw, 2.45rem);
  }

  .service-page .page-intro .eyebrow {
    max-width: 100%;
    white-space: normal;
  }

  .site-footer .row > .col-6 {
    width: 100%;
  }

  .footer-links {
    gap: .5rem;
  }

  .home-hero-premium h1 {
    max-width: 10.5ch;
    font-size: clamp(2.18rem, 10.8vw, 2.85rem);
  }

  .hero-premium-grid {
    min-height: 440px;
  }

  .home-heading h2,
  .about-copy h2,
  .home-cta-panel h2 {
    font-size: clamp(1.82rem, 8.8vw, 2.35rem);
  }

  .service-feature-copy h3 {
    font-size: clamp(1.72rem, 8vw, 2.15rem);
  }

  .services-featured .service-feature-shape,
  .services-featured .service-blob-left,
  .services-featured .service-blob-right {
    border-radius: 22px;
  }

  .photo-badge {
    font-size: .67rem;
    letter-spacing: .045em;
  }

  .contact-whatsapp-card h2 {
    font-size: clamp(1.75rem, 8.6vw, 2.25rem);
  }
}

@media (max-width: 390px) {
  .container-xl {
    padding-left: 14px;
    padding-right: 14px;
  }

  .navbar-collapse,
  .home-page .navbar-collapse {
    padding: .6rem;
    border-radius: 16px;
  }

  .home-hero-premium h1 {
    font-size: clamp(2.05rem, 10.7vw, 2.65rem);
  }

  .hero-value-strip article {
    padding: .95rem;
  }

  .about-panel,
  .home-cta-panel,
  .contact-whatsapp-card {
    border-radius: 20px;
  }
}
