/* Garthec responsive corrections. Scoped to the existing site components. */

.garthec-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  min-width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 2px solid #062b63;
  border-radius: 9px;
  background: #fff;
  color: #062b63;
  cursor: pointer;
}

.garthec-menu-toggle__icon,
.garthec-menu-toggle__icon::before,
.garthec-menu-toggle__icon::after {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .2s ease, opacity .2s ease;
}

.garthec-menu-toggle__icon {
  position: relative;
}

.garthec-menu-toggle__icon::before,
.garthec-menu-toggle__icon::after {
  content: "";
  position: absolute;
  left: 0;
}

.garthec-menu-toggle__icon::before { top: -6px; }
.garthec-menu-toggle__icon::after { top: 6px; }

.garthec-menu-toggle[aria-expanded="true"] .garthec-menu-toggle__icon {
  background: transparent;
}

.garthec-menu-toggle[aria-expanded="true"] .garthec-menu-toggle__icon::before {
  top: 0;
  transform: rotate(45deg);
}

.garthec-menu-toggle[aria-expanded="true"] .garthec-menu-toggle__icon::after {
  top: 0;
  transform: rotate(-45deg);
}

.garthec-menu-toggle:focus-visible,
.arthega-header .arthega-menu a:focus-visible,
.arthega-header .dropdown-trigger:focus-visible {
  outline: 3px solid rgba(10, 102, 194, .35);
  outline-offset: 3px;
}

@media (min-width: 1101px) {
  /* A copia do CTA pertence somente ao menu recolhivel de tablet/celular. */
  .arthega-header .arthega-menu .garthec-menu-cta {
    display: none !important;
  }

  .arthega-footer .footer-grid {
    grid-template-columns:
      minmax(230px, 1fr)
      minmax(160px, .72fr)
      minmax(190px, .82fr)
      minmax(270px, 1.05fr) !important;
    align-items: start !important;
    column-gap: clamp(36px, 4vw, 64px) !important;
  }

  .arthega-footer .footer-grid > * {
    min-width: 0;
    align-self: start;
  }

  .arthega-footer .footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: 270px;
  }

  .arthega-footer .footer-logo {
    display: block;
    width: 220px !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: none !important;
    margin: 0 0 22px !important;
    object-fit: contain;
    object-position: left center;
  }

  .arthega-footer .footer-brand p {
    max-width: 270px;
    margin-top: 0;
    line-height: 1.65;
  }

  .arthega-footer .footer-column h4 {
    margin-top: 0 !important;
  }
}

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

  @supports (overflow: clip) {
    html,
    body { overflow-x: clip; }
  }

  .elementor-location-header .header-content {
    gap: 12px !important;
    overflow: visible !important;
  }

  .arthega-header .header-actions {
    gap: 8px !important;
  }

  /* Em tablet/celular, a chamada fica apenas dentro do menu hamburguer. */
  .arthega-header .header-actions > .btn-header {
    display: none !important;
  }

  .arthega-header .garthec-menu-toggle {
    display: inline-flex;
    order: -1;
  }

  /* Mantem a foto do destaque, mas isola o texto em uma area clara e legivel. */
  .arthega-hero .hero-text {
    position: relative;
    z-index: 1;
    max-width: 620px !important;
    padding: clamp(22px, 4vw, 34px) !important;
    border: 1px solid rgba(6, 43, 99, .10);
    border-radius: 20px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 18px 42px rgba(6, 43, 99, .14);
    backdrop-filter: blur(3px);
  }

  /* No rodape responsivo ficam somente as informacoes essenciais. */
  .arthega-footer .footer-brand,
  .arthega-footer .footer-grid > .footer-column:nth-child(2),
  .arthega-footer .footer-grid > .footer-column:nth-child(3) {
    display: none !important;
  }

  .arthega-footer .footer-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .arthega-header .arthega-menu {
    position: absolute !important;
    top: calc(100% - 2px);
    right: 0;
    left: 0;
    z-index: 100000;
    display: none !important;
    flex-direction: column;
    align-items: stretch;
    gap: 2px !important;
    max-height: calc(100vh - 190px);
    margin: 0;
    padding: 12px;
    overflow-y: auto;
    border: 1px solid #dce7f1;
    border-radius: 0 0 14px 14px;
    background: #fff;
    box-shadow: 0 18px 36px rgba(6, 43, 99, .18);
  }

  .arthega-header .arthega-menu.garthec-menu-open {
    display: flex !important;
  }

  .arthega-header .arthega-menu > a,
  .arthega-header .dropdown-trigger {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 48px;
    margin: 0;
    padding: 12px 14px !important;
    border-radius: 8px;
    text-align: left;
  }

  .arthega-header .arthega-menu > a:hover,
  .arthega-header .dropdown-trigger:hover {
    background: #eef7ff;
  }

  .arthega-header .menu-dropdown {
    display: block;
    width: 100%;
  }

  .arthega-header .dropdown-content {
    position: static !important;
    display: none;
    min-width: 0;
    margin: 0 8px 8px;
    padding: 5px;
    border: 0;
    border-left: 3px solid #0a66c2;
    border-radius: 0 8px 8px 0;
    box-shadow: none;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: none !important;
  }

  .arthega-header .menu-dropdown.garthec-submenu-open .dropdown-content {
    display: block;
  }

  .arthega-header .menu-dropdown.garthec-submenu-open .dropdown-arrow {
    transform: rotate(180deg);
  }

  .arthega-header .dropdown-content::before { display: none; }

  .arthega-header .dropdown-content a {
    white-space: normal;
  }

  .arthega-header .garthec-menu-cta {
    margin-top: 5px !important;
    background: #56b637;
    color: #fff !important;
    justify-content: center !important;
  }

  .arthega-lp-hero,
  .arthega-lp-hero__banner,
  .arthega-lp-hero__benefits,
  .arthega-cta-profissional-v3,
  .arthega-contato,
  .arthega-contato__hero,
  .arthega-contato__container,
  .arthega-contato__grid,
  .arthega-contato__box {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .arthega-lp-hero__media {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow: hidden;
  }

  .arthega-lp-hero__media img,
  .arthega-contato img,
  .arthega-store img {
    max-width: 100% !important;
  }

  .arthega-contato .arthega-fade--right,
  .arthega-contato .arthega-fade--left {
    opacity: 1 !important;
    transform: none !important;
  }

  .arthega-contato input,
  .arthega-contato select,
  .arthega-contato textarea,
  .arthega-store input,
  .arthega-store select,
  .arthega-store textarea {
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .arthega-filters,
  .arthega-order-column,
  .arthega-single-order-drawer {
    max-width: 100vw !important;
  }

  /* Preserva uma margem lateral consistente nos templates internos. */
  .arthega-contato .arthega-contato__container {
    width: calc(100% - 40px) !important;
    max-width: 900px !important;
    margin-inline: auto !important;
  }

  .arthega-contato .arthega-contato__grid,
  .arthega-contato .arthega-contato__box {
    width: 100% !important;
  }

  /* A abertura sobre robos precisa ser linear antes de caber em duas colunas. */
  .arthega-auto__robots-intro {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 26px !important;
  }

  /* No tablet, os perfis deixam de ser um carrossel com altura compartilhada. */
  .arthega-perfis-automacao__lista {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 20px !important;
    height: auto !important;
    padding: 0 !important;
    overflow: visible !important;
    scroll-snap-type: none !important;
  }

  .arthega-perfis-automacao__card {
    width: auto !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    flex: none !important;
  }

  .arthega-perfis-automacao__imagem {
    height: 180px !important;
  }
}

@media (max-width: 700px) {
  html {
    scroll-padding-top: 145px;
  }

  section[id],
  [id].arthega-section {
    scroll-margin-top: 145px;
  }

  .arthega-header .top-marquee {
    height: 34px !important;
  }

  .arthega-header .header-content {
    width: calc(100% - 24px) !important;
    min-height: 90px !important;
    gap: 8px !important;
  }

  .arthega-header .arthega-logo img {
    width: auto !important;
    max-width: 104px !important;
    max-height: 74px !important;
    object-fit: contain;
  }

  .arthega-header .cart-link {
    gap: 6px !important;
    padding: 9px 10px !important;
    font-size: 12px !important;
  }

  .arthega-header .cart-icon { font-size: 15px !important; }

  .arthega-header .garthec-menu-toggle {
    width: 42px;
    min-width: 42px;
    height: 42px;
  }

  .arthega-header .arthega-menu {
    max-height: calc(100vh - 150px);
  }

  .arthega-hero {
    padding-top: 30px !important;
    padding-bottom: 34px !important;
  }

  .arthega-hero .hero-content {
    width: calc(100% - 24px) !important;
  }

  .arthega-hero .hero-text {
    width: 100% !important;
    padding: 22px 18px !important;
    border-radius: 16px;
  }

  /* Escala tipografica previsivel e sem quebras letra a letra. */
  .arthega-hero .hero-text h1,
  .arthega-store .arthega-hero h1,
  .arthega-contato h1,
  .arthega-lp-hero h1,
  .arthega-auto__hero h1,
  .arthega-cond-hero h1,
  .arthega-hero-residencial h1 {
    max-width: 100% !important;
    font-size: clamp(32px, 9vw, 36px) !important;
    line-height: 1.1 !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
    text-wrap: balance;
  }

  .arthega-solucao-unica h2,
  .arthega-loja h2,
  .arthega-publicos h2,
  .arthega-automacao h2,
  .arthega-auto h2,
  .arthega-contato h2,
  .arthega-store h2,
  .arthega-rotina-profissional h2,
  .arthega-apoio-compacto h2,
  .arthega-rotinas h2,
  .arthega-atalhos-loja h2,
  .arthega-processo-profissional h2,
  .arthega-kit-v2 h2,
  .arthega-cond-hero h2,
  .arthega-rotina-condominio h2,
  .arthega-controle h2,
  .arthega-gestao h2,
  .arthega-lazer h2,
  .arthega-hero-residencial h2,
  .arthega-problemas-residencial h2,
  .arthega-processo-residencial h2,
  .arthega-cuidado-inteligente h2,
  .arthega-categorias-residenciais h2 {
    max-width: 100% !important;
    font-size: clamp(28px, 8vw, 32px) !important;
    line-height: 1.15 !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
    text-wrap: balance;
  }

  .arthega-auto p,
  .arthega-contato p,
  .arthega-store p,
  .arthega-lp-hero p,
  .arthega-condominio p,
  .arthega-residencial p {
    line-height: 1.6 !important;
  }

  /* Home: cartoes menores, alinhados e com leitura da esquerda para a direita. */
  .arthega-solucao-unica {
    padding-block: 48px !important;
  }

  .arthega-solucao-unica .solucao-grid {
    gap: 30px !important;
  }

  .arthega-solucao-unica .solucao-cards {
    gap: 16px !important;
  }

  .arthega-solucao-unica .solucao-card {
    display: grid !important;
    grid-template-columns: 62px minmax(0, 1fr) !important;
    grid-template-areas:
      "icon title"
      "icon copy"
      "icon link" !important;
    column-gap: 16px !important;
    row-gap: 8px !important;
    min-height: 0 !important;
    height: auto !important;
    padding: 22px 20px !important;
    text-align: left !important;
    align-items: start !important;
  }

  .arthega-solucao-unica .solucao-icon {
    grid-area: icon;
    width: 62px !important;
    height: 62px !important;
    margin: 0 !important;
  }

  .arthega-solucao-unica .solucao-card h3 {
    grid-area: title;
    margin: 0 !important;
    font-size: 22px !important;
    line-height: 1.2 !important;
    text-align: left !important;
  }

  .arthega-solucao-unica .solucao-card p {
    grid-area: copy;
    margin: 0 !important;
    font-size: 16px !important;
    line-height: 1.5 !important;
    text-align: left !important;
  }

  .arthega-solucao-unica .solucao-card > span:last-child {
    grid-area: link;
    margin: 4px 0 0 !important;
    text-align: left !important;
  }

  .arthega-loja {
    padding-block: 52px !important;
  }

  .arthega-loja .loja-header {
    gap: 18px !important;
    margin-bottom: 28px !important;
  }

  .arthega-loja .produtos-grid {
    gap: 18px !important;
  }

  .arthega-loja .produtos-grid .produto-card:nth-child(n+3) {
    display: none !important;
  }

  .arthega-loja .produto-card {
    min-height: 0 !important;
    height: auto !important;
    padding: 20px !important;
  }

  .arthega-loja .produto-card img {
    display: block;
    width: auto !important;
    max-width: 100% !important;
    height: 180px !important;
    margin-inline: auto !important;
    object-fit: contain !important;
  }

  .arthega-loja .produto-card h3 {
    font-size: 22px !important;
    line-height: 1.25 !important;
  }

  .arthega-loja .produto-card .preco {
    font-size: 30px !important;
  }

  .arthega-publicos,
  .arthega-automacao,
  .arthega-cta-final {
    padding-block: 48px !important;
  }

  .arthega-automacao .processo-steps {
    width: 100% !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 14px !important;
  }

  .arthega-automacao .processo-steps .step {
    width: auto !important;
    min-width: 0 !important;
    min-height: 168px !important;
    height: auto !important;
    padding-inline: 8px !important;
  }

  /* Automacao: leitura vertical e cartoes compactos, sem carrossel lateral. */
  .arthega-auto__container,
  .arthega-perfis-automacao__container,
  .arthega-desafios-automacao__container,
  .arthega-rotina-automacao__container,
  .arthega-beneficios-operacao__container,
  .arthega-cta-automacao__container {
    width: calc(100% - 32px) !important;
    max-width: 720px !important;
    margin-inline: auto !important;
  }

  .arthega-auto__hero,
  .arthega-auto__section,
  .arthega-desafios-automacao,
  .arthega-rotina-automacao,
  .arthega-perfis-automacao,
  .arthega-beneficios-operacao,
  .arthega-cta-automacao {
    padding-block: 48px !important;
  }

  .arthega-auto__robots-intro {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 20px !important;
    width: 100% !important;
  }

  .arthega-auto__robots-intro > * {
    width: 100% !important;
    min-width: 0 !important;
  }

  .arthega-auto__robots-intro h2 {
    margin-bottom: 0 !important;
  }

  .arthega-auto__robot-benefits,
  .arthega-auto__check-grid,
  .arthega-auto__service-showcase,
  .arthega-beneficios-operacao__grid,
  .arthega-desafios-automacao__grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 18px !important;
  }

  .arthega-auto__robot-benefits article,
  .arthega-auto__check-grid > *,
  .arthega-beneficios-operacao__grid > * {
    min-height: 0 !important;
    padding-block: 18px !important;
  }

  .arthega-auto__intro img,
  .arthega-auto__service-showcase img {
    width: 100% !important;
    max-height: 270px !important;
    object-fit: cover !important;
  }

  .arthega-perfis-automacao__lista {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 14px !important;
  }

  .arthega-perfis-automacao__imagem {
    display: none !important;
  }

  .arthega-perfis-automacao__conteudo {
    min-height: 0 !important;
    padding: 20px !important;
    text-align: left !important;
  }

  .arthega-perfis-automacao__conteudo h3,
  .arthega-perfis-automacao__conteudo p {
    text-align: left !important;
  }

  .arthega-perfis-automacao__icone {
    width: 48px !important;
    height: 48px !important;
    margin: 0 0 12px !important;
  }

  .arthega-perfis-automacao__onda {
    display: none !important;
  }

  /* Contato: restaura as margens perdidas e reduz titulos e blocos. */
  .arthega-contato {
    padding: 0 0 48px !important;
  }

  .arthega-contato .arthega-contato__container {
    width: calc(100% - 32px) !important;
    max-width: 720px !important;
  }

  .arthega-contato__hero {
    padding: 46px 0 !important;
  }

  .arthega-contato__main {
    padding-block: 46px !important;
  }

  .arthega-contato__grid {
    gap: 28px !important;
  }

  .arthega-contato__card {
    min-width: 0 !important;
    padding: 18px !important;
    gap: 14px !important;
  }

  .arthega-contato__box {
    padding: 22px 18px !important;
  }

  .arthega-contato__intro {
    margin-bottom: 24px !important;
  }

  /* Loja: destaque menor e catalogo progressivo no celular. */
  .arthega-store .arthega-wrap,
  .arthega-store .arthega-section > .arthega-wrap,
  .arthega-store .arthega-delivery > .arthega-wrap,
  .arthega-store .arthega-final-cta > .arthega-wrap {
    width: calc(100% - 32px) !important;
    max-width: 720px !important;
    margin-inline: auto !important;
  }

  .arthega-store .arthega-hero__grid {
    gap: 28px !important;
    padding: 32px 0 44px !important;
  }

  .arthega-store .arthega-hero__copy p {
    font-size: 17px !important;
    line-height: 1.55 !important;
  }

  .arthega-store .arthega-hero__visual {
    max-height: 250px !important;
    overflow: hidden !important;
    border-radius: 24px !important;
  }

  .arthega-store .arthega-hero__visual img {
    width: 100% !important;
    height: 250px !important;
    object-fit: cover !important;
  }

  .arthega-store .arthega-search input,
  .arthega-store .arthega-search input::placeholder {
    font-size: 13px !important;
  }

  .arthega-store .arthega-section,
  .arthega-store .arthega-delivery,
  .arthega-store .arthega-final-cta {
    padding-block: 44px !important;
  }

  .arthega-store .arthega-category-card {
    min-height: 0 !important;
    padding: 18px 14px !important;
  }

  .arthega-store .arthega-product-grid {
    gap: 18px !important;
  }

  .arthega-store .arthega-product-card {
    min-height: 0 !important;
    height: auto !important;
  }

  .arthega-store .arthega-product-card__image {
    height: 210px !important;
  }

  .arthega-store .arthega-product-card__image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
  }

  .arthega-store .arthega-product-card__body {
    min-height: 0 !important;
    height: auto !important;
    padding: 16px !important;
  }

  .arthega-store .arthega-product-card__body > p {
    display: none !important;
  }

  .arthega-store .arthega-product-card__actions {
    grid-template-columns: 78px minmax(0, 1fr) !important;
  }

  .garthec-mobile-product-hidden {
    display: none !important;
  }

  .garthec-catalog-more {
    display: block;
    width: 100%;
    min-height: 50px;
    margin: 24px 0 0;
    padding: 12px 18px;
    border: 2px solid #0a66c2;
    border-radius: 12px;
    background: #fff;
    color: #062b63;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
  }

  .garthec-catalog-more:focus-visible {
    outline: 3px solid rgba(10, 102, 194, .32);
    outline-offset: 3px;
  }

  /* Paginas de servico: ritmo vertical menor e margens uniformes. */
  .arthega-rotina-profissional,
  .arthega-apoio-compacto,
  .arthega-rotinas,
  .arthega-atalhos-loja,
  .arthega-processo-profissional,
  .arthega-kit-v2,
  .arthega-faq-profissional,
  .arthega-rotina-condominio,
  .arthega-rotina,
  .arthega-controle,
  .arthega-gestao,
  .arthega-lazer,
  .faq-condominio,
  .arthega-problemas-residencial,
  .arthega-processo-residencial,
  .arthega-cuidado-inteligente,
  .arthega-eficiencia-residencial,
  .arthega-categorias-residenciais,
  .arthega-faq-residencial {
    padding-block: 46px !important;
  }

  .arthega-lp-hero__benefits-container {
    width: calc(100% - 24px) !important;
    margin-inline: auto !important;
    gap: 8px !important;
  }

  .arthega-order-checkout__row {
    grid-template-columns: 1fr !important;
  }

  .arthega-header .cart-link,
  .arthega-contato__button,
  .arthega-store button,
  .arthega-store .button,
  .arthega-store [class*="btn"] {
    min-height: 48px;
  }
}

@media (max-width: 430px) {
  .arthega-header .cart-link {
    white-space: nowrap;
  }

  .arthega-lp-hero__benefits-container {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}
