/* IGA — estilos que o Tailwind (via CDN) não cobre bem: fontes, seleção, scroll, animações. */

html {
  scroll-behavior: smooth;
}

/* Animação de entrada do nav (header) e do hero, ao carregar a página */
@keyframes fade-in-down {
  from { opacity: 0; transform: translateY(-14px); }
  to { opacity: 1; transform: none; }
}

@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: none; }
}

.anim-fade-down {
  opacity: 0;
  animation: fade-in-down 0.6s ease both;
}

.anim-fade-up {
  opacity: 0;
  animation: fade-in-up 0.7s ease both;
}

/* Scrollbar minimalista, em tons de azul da marca (Firefox) */
html {
  scrollbar-width: thin;
  scrollbar-color: #a6b7cd #f2f5f8;
}

/* Scrollbar minimalista, em tons de azul da marca (Chrome, Edge, Safari) */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f2f5f8;
}

::-webkit-scrollbar-thumb {
  background-color: #a6b7cd;
  border-radius: 999px;
  border: 2px solid #f2f5f8;
}

::-webkit-scrollbar-thumb:hover {
  background-color: #4d6e9b;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  cursor: url('../img/cursor-32.png') 4 2, auto !important;
}


.font-display {
  font-family: 'Bricolage Grotesque', 'Inter', system-ui, sans-serif;
}

::selection {
  background-color: #C00010;
  color: #ffffff;
}

:focus-visible {
  outline: 2px solid #C00010;
  outline-offset: 2px;
}

/* Botão flutuante do WhatsApp — pulso sutil para chamar atenção sem irritar */
@keyframes whatsapp-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.45); }
  50% { box-shadow: 0 0 0 10px rgba(37, 211, 102, 0); }
}

.animate-whatsapp-pulse {
  animation: whatsapp-pulse 2.5s infinite;
}

/* Swatch de cor: cursor de "copiar" + feedback rápido */
.color-swatch {
  transition: transform 0.15s ease;
}

.color-swatch:hover {
  transform: translateY(-2px);
}

.copy-toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(1rem);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 100;
}

.copy-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Accordion (FAQ) — altura máxima controlada via JS (mais confiável que o truque de grid-template-rows) */
.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.accordion-item[data-open="true"] .accordion-icon {
  transform: rotate(45deg);
}

.accordion-icon {
  transition: transform 0.2s ease;
}

/* Placeholder de imagem — sinaliza claramente "isto é wireframe, entra foto real aqui" */
.img-placeholder {
  background-image: repeating-linear-gradient(45deg, #e2e8f0 0 10px, #f1f5f9 10px 20px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #94a3b8;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 1rem;
  line-height: 1.4;
}

/* Revelação suave ao rolar a página */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Esconde a scrollbar em carrosséis horizontais sem perder o scroll */
.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

/* Header muda de aparência após rolar a página */
#site-header {
  transition: box-shadow 0.2s ease, background-color 0.2s ease;
}

/* Painel do menu mobile */
#mobile-menu {
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* Pratos decorativos do FAQ — entram girando e deslizando até a posição final */
.reveal.plate-decor {
  transition: opacity 1s ease, transform 1s ease;
}

.reveal.plate-left {
  transform: translateX(-72px) rotate(-40deg);
}

.reveal.plate-right {
  transform: translateX(72px) rotate(40deg);
}

.reveal.plate-decor.is-visible {
  transform: none;
}

/* Galeria interativa "Sobre o IGA" — troca de imagem com efeito de máscara desfocada ao passar o mouse */
.iga-gallery {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;

  --asset-1: url('../img/sobre-fachada.jpg');
  --asset-2: url('../img/sobre-fototurma1.webp');
  --asset-3: url('../img/sobre-fototurma2.jpg');
  --asset-4: url('../img/sobre-fototurma3.jpg');
}

.iga-gallery:has(.one input:checked) { --preview: var(--asset-1); }
.iga-gallery:has(.two input:checked) { --preview: var(--asset-2); }
.iga-gallery:has(.three input:checked) { --preview: var(--asset-3); }
.iga-gallery:has(.four input:checked) { --preview: var(--asset-4); }

.iga-gallery input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.iga-gallery-preview {
  width: 100%;
  max-width: 360px;
  aspect-ratio: 1 / 1;
  background: var(--preview) no-repeat center / cover;
  border-radius: 18px;
  box-shadow: 2px 2px 12px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  position: relative;
  transition: --mask-border 0.7s;

  --start: var(--mask-border);
  --end: calc(100% - var(--mask-border));
}

.iga-gallery-preview::before {
  content: '';
  position: absolute;
  inset: 0;
  mask:
    linear-gradient(#fff 0 100%),
    linear-gradient(#fff0 3%, #fff var(--start) var(--end), #fff0 97%),
    linear-gradient(90deg, #fff0 3%, #fff var(--start) var(--end), #fff0 97%);
  mask-composite: exclude, intersect;
  backdrop-filter: blur(10px);
  transition: opacity 0.4s 0.1s;
}

.iga-gallery-preview:hover {
  --mask-border: 0%;
}

.iga-gallery-preview:hover::before {
  opacity: 0;
}

.iga-gallery-selector {
  display: flex;
  align-items: center;
  gap: 12px;
}

.iga-gallery-option {
  width: 64px;
  aspect-ratio: 1 / 1;
  flex: none;
  border-radius: 8px;
  background: var(--asset) no-repeat center / cover;
  box-shadow: 1px 1px 4px rgba(0, 0, 0, 0.15);
  outline: 2px solid transparent;
  outline-offset: 3px;
  transition: outline-color 0.15s;
  display: block;
}

.iga-gallery-option:has(input:checked) {
  outline-color: #c00010;
}

.iga-gallery-option.one { --asset: var(--asset-1); }
.iga-gallery-option.two { --asset: var(--asset-2); }
.iga-gallery-option.three { --asset: var(--asset-3); }
.iga-gallery-option.four { --asset: var(--asset-4); }

@property --mask-border {
  syntax: '<percentage>';
  initial-value: 15%;
  inherits: true;
}

/* Dropdown customizado (formulário de matrícula) — minimalista, cantos arredondados no hover das opções */
.ds-select {
  position: relative;
}

.ds-select-trigger {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  border-radius: 0.5rem;
  border: 1px solid #cbd5e1;
  background: #fff;
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  color: #334155;
  text-align: left;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ds-select-trigger:hover {
  border-color: #94a3b8;
}

.ds-select-trigger:focus-visible,
.ds-select-trigger[aria-expanded="true"] {
  outline: none;
  border-color: #003070;
  box-shadow: 0 0 0 3px rgba(0, 48, 112, 0.1);
}

.ds-select-value.ds-select-placeholder {
  color: #94a3b8;
}

.ds-select-chevron {
  flex: none;
  color: #94a3b8;
  transition: transform 0.2s ease;
}

.ds-select-trigger[aria-expanded="true"] .ds-select-chevron {
  transform: rotate(180deg);
}

.ds-select-options {
  position: absolute;
  z-index: 20;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  margin: 0;
  list-style: none;
  background: #fff;
  border: 1px solid #f1f5f9;
  border-radius: 0.875rem;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
  padding: 0.375rem;
  max-height: 16rem;
  overflow-y: auto;
}

.ds-select-option {
  padding: 0.55rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  color: #475569;
  transition: background-color 0.12s ease, color 0.12s ease;
}

.ds-select-option:hover,
.ds-select-option:focus-visible {
  background-color: #fcf2f3;
  color: #c00010;
}

.ds-select-option[aria-selected="true"] {
  color: #003070;
  font-weight: 600;
}

/* Formulário em etapas (Fale com a unidade) */
.form-progress-fill {
  width: 0%;
  transition: width 0.3s ease;
}

.form-step {
  animation: form-step-in 0.25s ease;
}

@keyframes form-step-in {
  from { opacity: 0; transform: translateX(8px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Cards de "O que está incluso" — leve rotação e destaque no hover */
.diferencial-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  border: 1px solid transparent;
}

.diferencial-card:hover {
  transform: rotate(-1deg) scale(1.03);
  box-shadow: 0 12px 24px rgba(0, 48, 112, 0.12);
  border-color: #f2cccf;
}

.diferencial-card:hover span {
  background-color: #c00010;
  color: #fff;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Fotos da seção Estrutura — zoom + rotação leve no hover */
.estrutura-photo img {
  transition: transform 0.4s ease;
}

.estrutura-photo:hover img {
  transform: scale(1.12) rotate(-2deg);
}

/* Cursor de "ponteiro" (garfo) — elementos clicáveis. Fica no final do arquivo
   de propósito, para sempre vencer qualquer outro "cursor: pointer" declarado acima. */
a,
button,
select,
label,
[role="button"],
[type="button"],
[type="submit"],
.cursor-pointer,
.ds-select-trigger,
.ds-select-option,
.iga-gallery-option,
.color-swatch {
  cursor: url('../img/cursor-pointer-32.png') 15 3, pointer !important;
}
