/* Layout específico da LP de Casqueamento. Mobile-first: regras base = mobile,
   @media (min-width: 960px) = desktop. */

/* ===================== SEÇÃO 1 — HEADER ===================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height-mobile);
  display: flex;
  align-items: center;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: var(--space-4);
}
.site-header__logo img {
  height: 52px;
  width: auto;
}
.site-header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.site-header__whatsapp-shortcut {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
}
.site-header__whatsapp-shortcut img {
  width: 32px;
  height: 32px;
}
.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  color: var(--color-brand-primary);
  cursor: pointer;
}
.menu-toggle .icon-menu-close {
  display: none;
}
.menu-toggle[aria-expanded="true"] .icon-menu-open {
  display: none;
}
.menu-toggle[aria-expanded="true"] .icon-menu-close {
  display: block;
}
.site-nav {
  display: none;
}
.site-nav[data-open="true"] {
  display: block;
  position: fixed;
  inset: var(--header-height-mobile) 0 0 0;
  background: var(--color-white);
  z-index: 90;
  overflow-y: auto;
  padding: var(--space-6) var(--space-4);
}
.site-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}
.site-nav__list a {
  display: block;
  padding: var(--space-4) var(--space-2);
  text-decoration: none;
  font-weight: 600;
  font-size: var(--fs-md);
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border);
}
.site-nav__cta {
  margin-top: var(--space-5);
}

@media (min-width: 960px) {
  .site-header {
    height: var(--header-height);
  }
  .site-header__logo img {
    height: 120px;
  }
  .menu-toggle {
    display: none;
  }
  .site-header__whatsapp-shortcut {
    display: none;
  }
  .site-nav {
    display: block !important;
    position: static;
    inset: auto;
    padding: 0;
    background: transparent;
  }
  .site-nav__list {
    flex-direction: row;
    align-items: center;
    gap: var(--space-5);
  }
  .site-nav__list a {
    padding: var(--space-2) 0;
    border-bottom: none;
    font-size: var(--fs-sm);
  }
  .site-nav__list a:hover {
    color: var(--color-brand-accent);
  }
  .site-nav__cta {
    margin-top: 0;
    margin-left: var(--space-5);
  }
}

/* ===================== SEÇÃO 2 — HERO ===================== */
.hero {
  padding-block: var(--space-6) var(--space-7);
}
.hero__grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}
.hero__content {
  order: 1;
}
.hero__badge {
  margin-bottom: var(--space-3);
  font-size: var(--fs-sm);
  padding: var(--space-2) var(--space-4);
}
.hero__title {
  margin-bottom: var(--space-3);
}
.hero__subtitle {
  font-size: var(--fs-md);
  color: var(--color-text-muted);
  max-width: 52ch;
}
.hero__ctas {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin: var(--space-5) 0;
}
.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  list-style: none;
  padding: 0;
  margin: 0;
}
.hero__trust li {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--color-text-muted);
}
.hero__trust .icon {
  width: 28px;
  height: 28px;
  color: var(--color-brand-accent);
}
.hero__media {
  order: 2;
}
.hero__media img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
}

@media (min-width: 960px) {
  .hero__grid {
    flex-direction: row;
    align-items: center;
    gap: var(--space-8);
  }
  .hero__content,
  .hero__media {
    flex: 1 1 50%;
    order: initial;
  }
  .hero__ctas {
    flex-direction: row;
  }
}

/* ================= SEÇÃO 3 — BENEFÍCIOS RÁPIDOS ================= */
.benefits-strip {
  padding-block: var(--space-6);
}
.benefits-strip__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}
.benefit-chip {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-4);
  text-align: left;
}
.benefit-chip .icon {
  color: var(--color-brand-accent);
  width: 28px;
  height: 28px;
}
.benefit-chip h3 {
  font-size: var(--fs-sm);
  margin-bottom: var(--space-1);
}
.benefit-chip p {
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
  margin-bottom: 0;
}

@media (min-width: 960px) {
  .benefits-strip__grid {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-5);
  }
}

/* ================= SEÇÃO 4 — CARROSSEL DE PRODUTOS ================= */
.product-carousel {
  position: relative;
}
.product-carousel__track {
  display: flex;
  gap: var(--space-4);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-block: var(--space-2) var(--space-4);
  margin: 0 calc(var(--space-4) * -1);
  padding-inline: var(--space-4);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.product-carousel__track::-webkit-scrollbar {
  display: none;
}
.product-card {
  scroll-snap-align: start;
  flex: 0 0 78%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: box-shadow var(--duration-base) var(--ease-standard), transform var(--duration-base) var(--ease-standard);
}
.product-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.product-card__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  min-height: 0;
  background: var(--color-bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
}
.product-card__media picture {
  width: 100%;
  height: 100%;
}
.product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.product-card__body {
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  flex-grow: 1;
}
.product-card__category {
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-brand-accent);
}
.product-card__name {
  font-size: var(--fs-md);
  line-height: 1.2;
  margin: 0;
  /* Reserva espaço pra até 2 linhas (o maior nome de produto usa 2) pra que
     a descrição comece sempre na mesma altura, independente do nome ter
     1 ou 2 linhas. */
  min-height: calc(var(--fs-md) * 1.2 * 2);
}
.product-card__desc {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  margin: 0;
  flex-grow: 1;
}
.product-card__action {
  margin-top: var(--space-2);
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--color-brand-primary);
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
}
.product-carousel__arrows {
  display: none;
}

@media (min-width: 960px) {
  .product-carousel__track {
    margin: 0;
    padding-inline: 0;
    scroll-padding-inline: 0;
  }
  .product-card {
    flex: 0 0 calc((100% - (var(--space-4) * 4)) / 4.4);
  }
  .product-carousel__arrows {
    display: flex;
    justify-content: flex-end;
    gap: var(--space-2);
    margin-bottom: var(--space-4);
  }
  .product-carousel__arrow {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-pill);
    border: 1.5px solid var(--color-gray-300);
    background: var(--color-white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--color-brand-primary);
  }
  .product-carousel__arrow:hover {
    background: var(--color-bg-alt);
  }
}

/* ================= SEÇÃO 5 — POR QUE A SANFIX ================= */
.why-sanfix__grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}
.why-sanfix__media img {
  border-radius: var(--radius-lg);
  width: 100%;
  height: auto;
}
.why-sanfix__quote {
  font-size: var(--fs-md);
  color: var(--color-text);
  border-left: 3px solid var(--color-accent-highlight);
  padding-left: var(--space-4);
  margin: var(--space-5) 0;
}
.why-sanfix__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--space-4);
}
.why-sanfix__list li {
  display: flex;
  gap: var(--space-3);
}
.why-sanfix__list .icon {
  color: var(--color-brand-accent);
  flex-shrink: 0;
  margin-top: 2px;
}
.why-sanfix__list h3 {
  font-size: var(--fs-sm);
  margin-bottom: var(--space-1);
}
.why-sanfix__list p {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  margin-bottom: 0;
}

@media (min-width: 960px) {
  .why-sanfix__grid {
    flex-direction: row;
    gap: var(--space-8);
    align-items: center;
  }
  .why-sanfix__media,
  .why-sanfix__content {
    flex: 1 1 50%;
  }
}

/* ================= SEÇÃO 6 — CATÁLOGO ================= */
.catalog-band {
  background: var(--color-brand-primary);
  color: var(--color-text-on-dark);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.catalog-band__badge {
  background: rgba(255, 255, 255, 0.12);
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.3);
}
.catalog-band h2 {
  color: var(--color-white);
  margin-bottom: var(--space-2);
}
.catalog-band p {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 0;
  max-width: 60ch;
}
.catalog-band__cta {
  margin-top: var(--space-2);
}
.catalog-band .btn-primary {
  align-self: flex-start;
}

@media (min-width: 960px) {
  .catalog-band {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-7);
  }
  .catalog-band__text {
    flex: 1 1 auto;
  }
}

/* ================= SEÇÃO 7 — VÍDEOS ================= */
.video-showcase__track {
  display: flex;
  gap: var(--space-4);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  margin: 0 calc(var(--space-4) * -1);
  padding: 0 var(--space-4) var(--space-2);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.video-showcase__track::-webkit-scrollbar {
  display: none;
}
.video-card {
  scroll-snap-align: start;
  flex: 0 0 85%;
  overflow: hidden;
  cursor: pointer;
}
.video-card__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--color-gray-900);
}
.video-card__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.video-card__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.video-card__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(27, 26, 77, 0.25);
  border: none;
  cursor: pointer;
  width: 100%;
  padding: 0;
}
.video-card__play-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-pill);
  background: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-brand-primary);
  box-shadow: var(--shadow-md);
}
.video-card__title {
  padding: var(--space-3) var(--space-1);
  font-size: var(--fs-sm);
  font-weight: 600;
}
.video-showcase__support-photo {
  margin-top: var(--space-5);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.video-showcase__support-photo img {
  width: 100%;
  height: auto;
  max-height: 260px;
  object-fit: cover;
}

@media (min-width: 960px) {
  .video-showcase__track {
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    grid-template-rows: repeat(2, 1fr);
    gap: var(--space-4);
    overflow: visible;
  }
  .video-card:first-child {
    grid-row: 1 / span 2;
  }
}

/* ================= SEÇÃO 8 — CONTATO ================= */
.contact__grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}
.contact__media img {
  border-radius: var(--radius-lg);
  width: 100%;
  height: auto;
  max-height: 320px;
  object-fit: cover;
}
.contact__form-card {
  padding: var(--space-5);
}
.contact__privacy-note {
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
  margin-top: var(--space-3);
}

@media (min-width: 960px) {
  .contact__grid {
    flex-direction: row;
    gap: var(--space-8);
    align-items: stretch;
  }
  .contact__media,
  .contact__form-wrap {
    flex: 1 1 50%;
  }
  .contact__media img {
    max-height: none;
    height: 100%;
  }
}

/* ================= SEÇÃO 9 — FAQ ================= */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.faq-item {
  padding: 0;
  overflow: hidden;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: var(--space-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  font-weight: 600;
  font-size: var(--fs-sm);
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item__icon {
  flex-shrink: 0;
  transition: transform var(--duration-base) var(--ease-standard);
  color: var(--color-brand-accent);
}
.faq-item[open] .faq-item__icon {
  transform: rotate(45deg);
}
.faq-item__answer {
  padding: 0 var(--space-4) var(--space-4);
  color: var(--color-text-muted);
  font-size: var(--fs-sm);
}
.faq-item__answer[data-pending="true"] {
  font-style: italic;
  color: var(--color-accent-highlight);
}

@media (min-width: 960px) {
  .faq-list {
    max-width: 760px;
  }
}

/* ================= SEÇÃO 10 — FOOTER ================= */
.site-footer {
  background: var(--color-brand-primary);
  color: rgba(255, 255, 255, 0.85);
  padding-block: var(--space-7) var(--space-6);
}
.site-footer a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}
.site-footer a:hover {
  color: var(--color-white);
}
.site-footer__grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}
.site-footer__logo img {
  height: 60px;
  width: auto;
  margin-bottom: var(--space-3);
}
.site-footer__links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  font-size: var(--fs-sm);
}
.site-footer__heading {
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: var(--space-3);
}
.site-footer__badges {
  display: flex;
  gap: var(--space-3);
  align-items: center;
  flex-wrap: wrap;
}
.site-footer__badges img {
  height: 36px;
  width: auto;
  border-radius: var(--radius-sm);
}
.site-footer__social {
  display: flex;
  gap: var(--space-3);
}
.site-footer__social a {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.site-footer__bottom {
  margin-top: var(--space-6);
  padding-top: var(--space-5);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, 0.6);
}

@media (min-width: 960px) {
  .site-footer__grid {
    flex-direction: row;
    justify-content: space-between;
    gap: var(--space-6);
  }
}

/* ================= CTA FIXO NO MOBILE ================= */
.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 95;
  height: var(--sticky-cta-height);
  background: var(--color-brand-accent);
  transition: transform var(--duration-base) var(--ease-standard);
}
.sticky-cta[data-hidden="true"] {
  transform: translateY(100%);
}
.sticky-cta a {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  color: var(--color-white);
  text-decoration: none;
  font-weight: 700;
}

body {
  padding-bottom: var(--sticky-cta-height);
}

@media (min-width: 960px) {
  .sticky-cta {
    display: none;
  }
  body {
    padding-bottom: 0;
  }
}
