/* =========================================================
   GCA · v0.3 — Ajustes multiplataforma
   iPhone (Safari), Android (Chrome/Samsung Internet), Mac e tablets
   Carregado depois de styles.css
   ========================================================= */

/* ---------- Base cross-browser ---------- */
html { -webkit-tap-highlight-color: transparent; }
body.menu-open { overflow: hidden; }
button, input, select, textarea { font: inherit; }
.field input, .field select { -webkit-appearance: none; appearance: none; min-height: 50px; font-size: 16px; }
.field select {
  padding-right: 42px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2312233F' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px;
}
.faq__list summary { -webkit-user-select: none; user-select: none; }
.btn { touch-action: manipulation; }
.btn:active { transform: scale(.98); }

/* Hover só em dispositivos com mouse (evita efeito "preso" no toque) */
@media (hover: none) {
  .btn:hover, .path:hover, .service:hover, .whats:hover { transform: none; }
  .path:hover { border-color: var(--line); box-shadow: none; }
  .service:hover { box-shadow: none; }
}

/* ---------- Áreas seguras (notch, Dynamic Island, barra de gestos) ---------- */
.header { padding-top: env(safe-area-inset-top); }
.container {
  padding-left: max(16px, env(safe-area-inset-left));
  padding-right: max(16px, env(safe-area-inset-right));
}
@media (min-width: 768px) {
  .container {
    padding-left: max(32px, env(safe-area-inset-left));
    padding-right: max(32px, env(safe-area-inset-right));
  }
}
.whats {
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, calc(env(safe-area-inset-bottom) + 10px));
}
.footer__bottom { padding-bottom: calc(24px + env(safe-area-inset-bottom)); }

/* ---------- Menu mobile ---------- */
@media (max-width: 960px) {
  .nav {
    top: calc(76px + env(safe-area-inset-top));
    max-height: calc(100vh - 76px);
    max-height: calc(100dvh - 76px - env(safe-area-inset-top));
    overflow-y: auto; overscroll-behavior: contain;
    box-shadow: 0 24px 40px -20px rgba(18,35,63,.35);
  }
}

/* ---------- Tablet (até 959px) ---------- */
@media (max-width: 959px) {
  .hero__visual { max-width: 520px; }
  .about__photo { max-width: 560px; width: 100%; justify-self: center; }
}

/* ---------- Celulares (até 719px) ---------- */
@media (max-width: 719px) {
  body { font-size: 16px; }
  .section { padding: 64px 0; }
  .section__head { margin-bottom: 32px; }
  h1 { font-size: clamp(2.15rem, 10.5vw, 2.7rem); }
  h2 { font-size: clamp(1.7rem, 7.6vw, 2.1rem); }
  .lead { font-size: 1.04rem; }
  .eyebrow { letter-spacing: .16em; font-size: .7rem; gap: 10px; }
  .eyebrow .line { width: 24px; }

  /* Header */
  .header__inner { height: 68px; }
  .brand__mark { width: 40px; height: 36px; }
  .brand__name { font-size: 1.35rem; }
  .nav {
    top: calc(68px + env(safe-area-inset-top));
    max-height: calc(100vh - 68px);
    max-height: calc(100dvh - 68px - env(safe-area-inset-top));
  }
  html { scroll-padding-top: 76px; }

  /* Hero */
  .hero { padding: 28px 0 56px; }
  .hero__grid { gap: 40px; }
  .hero__ctas { flex-direction: column; margin: 26px 0 30px; }
  .hero__ctas .btn { width: 100%; }
  .hero__trust { grid-template-columns: 1fr 1fr; gap: 14px; font-size: .82rem; }
  .hero__trust strong { font-size: .92rem; }
  .hero__visual { padding-bottom: 36px; }
  .hero__photo { aspect-ratio: 1 / 1; border-radius: 160px 160px var(--r) var(--r); }
  .hero__photo img { object-position: 50% 14%; }
  .float-card { padding: 11px 14px; }
  .float-card--top { top: 22%; bottom: auto; left: -4px; }
  .float-card--bottom { right: -4px; bottom: 0; max-width: 200px; }
  .float-card__v { font-size: .95rem; }

  /* Faixa "Atendemos" — desliza na horizontal */
  .strip__inner { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; gap: 24px; padding-block: 18px; -webkit-overflow-scrolling: touch; }
  .strip__inner::-webkit-scrollbar { display: none; }
  .strip ul { flex-wrap: nowrap; gap: 22px; }
  .strip li, .strip__title { white-space: nowrap; flex: none; }

  /* Carrosséis deslizantes (Momento e Diferenciais) */
  .paths, .diffs {
    grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 82%; gap: 12px;
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain;
    margin: 0 -16px; padding: 4px 16px 8px; scroll-padding-inline: 16px;
  }
  .paths::-webkit-scrollbar, .diffs::-webkit-scrollbar { display: none; }
  .path, .diff { scroll-snap-align: start; }
  .path { padding: 0 0 22px; }
  .path > *:not(.path__img) { margin-left: 20px; margin-right: 20px; }
  .path__icon { margin-bottom: 16px; }
  .diff--feature > *:not(.diff__img) { margin-left: 22px; margin-right: 22px; }
  .diff--feature { padding: 0 0 24px; }

  /* Galeria */
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 200px; gap: 10px; }
  .gallery__item { min-height: 0; border-radius: 16px; }
  .gallery__item--tall, .gallery__item--wide { grid-column: 1 / -1; }
  .gallery__item figcaption { left: 14px; right: 14px; bottom: 12px; font-size: .8rem; }
  .gallery__item figcaption b { font-size: .95rem; }
  .gallery__item figcaption b::before { margin-bottom: 7px; width: 22px; }
  .gallery__item:not(.gallery__item--tall):not(.gallery__item--wide) figcaption span { display: none; }

  /* Quem somos — colagem */
  .about__media { padding: 0 28px 56px 0; }
  .about__photo2 { width: 56%; border-width: 4px; }
  .about__photo figcaption { display: none; }
  .diff--feature { grid-row: auto; min-height: 0; }
  .diff--feature h3 { font-size: 1.35rem; }
  .diff--feature .diff__icon { margin-bottom: 22px; }
  .swipe-hint { display: flex; }

  /* Quem somos */
  .about { gap: 36px; }
  .about__photo { aspect-ratio: 1 / 1; }
  .about__photo img { object-position: 50% 22%; }
  .about__photo figcaption { font-size: .92rem; padding: 14px 16px; left: 12px; right: 12px; bottom: 12px; }
  .mvv__item { padding: 20px; }

  /* Serviços — cartões compactos com ícone ao lado do título */
  .service { padding: 22px 20px; display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; align-items: center; }
  .service__icon { width: 44px; height: 44px; margin: 0; border-radius: 12px; }
  .service__icon svg { width: 22px; height: 22px; }
  .service h3 { margin: 0; font-size: 1.05rem; padding-right: 22px; }
  .service ul { grid-column: 1 / -1; margin-top: 16px; gap: 7px; }
  .service li { font-size: .93rem; }
  .service__n { top: 18px; right: 16px; }
  .extras { padding: 16px 18px; }
  .extras__cta { margin-left: 0; width: 100%; padding-top: 4px; }

  /* 5 sinais */
  .signals { gap: 32px; }
  .signals .btn { width: 100%; }
  .signals__list li { padding: 18px; gap: 14px; }
  .signals__list span { width: 40px; height: 40px; font-size: .85rem; }
  .signals__list h3 { font-size: .92rem; }

  /* Equipe — lado a lado */
  .team__grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .person__info { padding: 14px 14px 16px; }
  .person__info h3 { font-size: .98rem; }
  .person__info p { font-size: .66rem; letter-spacing: .14em; }
  .person__photo--placeholder span { font-size: 1.9rem; }

  /* FAQ */
  .faq__list summary { font-size: 1rem; padding: 20px 44px 20px 0; }

  /* Contato */
  .cta h2 .accent { display: inline; }
  .form { padding: 24px 20px; border-radius: var(--r); }
  .map { margin-top: 40px; height: 260px; border-radius: var(--r); }

  /* Rodapé */
  .footer { padding-top: 56px; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
  .footer__grid > div:first-child, .footer__grid > div:last-child { grid-column: 1 / -1; }
  .footer__bottom { flex-direction: column; padding-right: 76px; }
}

/* Dica "arraste para o lado" nos carrosséis (só no celular) */
@media (min-width: 720px) { .swipe-hint { display: none !important; } }
.swipe-hint {
  display: flex; align-items: center; gap: 8px; margin-top: 14px;
  font: 600 .8rem/1 var(--display); color: var(--muted);
}
.swipe-hint svg { width: 18px; height: 18px; fill: none; stroke: var(--sand); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; animation: nudge 1.6s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateX(5px); } }

/* Telas bem estreitas (≤ 360px, Androids compactos / iPhone SE) */
@media (max-width: 360px) {
  .float-card--bottom { max-width: 170px; }
  .brand__name small { letter-spacing: .14em; }
  .hero__trust { font-size: .78rem; }
}

/* Celular deitado */
@media (max-height: 500px) and (orientation: landscape) {
  .hero__photo { aspect-ratio: 16 / 10; }
}

@media (prefers-reduced-motion: reduce) {
  .swipe-hint svg { animation: none; }
}
