/* Grupo Easy / EasyClin — estilos compartilhados
   Tailwind (CDN) cobre utilitários; este arquivo cobre o que o CDN não faz bem:
   fontes, gradientes de marca, mockup de telefone, animações e estados de foco. */

:root {
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 168px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  color: #1a2233;
}

h1, h2, h3, h4, .font-heading {
  font-family: 'Poppins', 'Inter', system-ui, sans-serif;
}

/* Visible focus rings everywhere, matching brand blue */
:focus-visible {
  outline: 2px solid #1976D2;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Brand gradients */
.bg-brand-gradient {
  background: linear-gradient(135deg, #0A1F44 0%, #0D47A1 55%, #1976D2 100%);
}

.bg-brand-gradient-soft {
  background: linear-gradient(180deg, #F2F6FF 0%, #FFFFFF 100%);
}

.text-gradient {
  background: linear-gradient(90deg, #0D47A1, #1976D2, #64B5F6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Decorative water-drop / droplet blobs used behind hero content */
.blob {
  position: absolute;
  border-radius: 999px;
  filter: blur(60px);
  opacity: 0.35;
  pointer-events: none;
}

/* Phone mockup used to illustrate the app */
.phone-mockup {
  width: 260px;
  aspect-ratio: 9 / 19.5;
  border-radius: 2.25rem;
  background: #0A1F44;
  padding: 10px;
  box-shadow: 0 30px 60px -20px rgba(10, 31, 68, 0.45), 0 0 0 1px rgba(10,31,68,0.06);
}
.phone-mockup__screen {
  width: 100%;
  height: 100%;
  border-radius: 1.75rem;
  background: #F2F6FF;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}
.phone-mockup__notch {
  position: absolute;
  top: 0.4rem;
  left: 50%;
  transform: translateX(-50%);
  width: 40%;
  height: 18px;
  background: #0A1F44;
  border-radius: 999px;
  z-index: 10;
}

/* Scroll reveal */
[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger helper */
[data-reveal-group] > [data-reveal]:nth-child(1) { transition-delay: 0ms; }
[data-reveal-group] > [data-reveal]:nth-child(2) { transition-delay: 60ms; }
[data-reveal-group] > [data-reveal]:nth-child(3) { transition-delay: 120ms; }
[data-reveal-group] > [data-reveal]:nth-child(4) { transition-delay: 180ms; }
[data-reveal-group] > [data-reveal]:nth-child(5) { transition-delay: 240ms; }
[data-reveal-group] > [data-reveal]:nth-child(6) { transition-delay: 300ms; }

/* Mobile nav */
#mobile-menu {
  transition: max-height 0.35s var(--ease-out), opacity 0.25s ease;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
}
#mobile-menu.open {
  max-height: 640px;
  opacity: 1;
}

/* FAQ accordion */
.faq-item[data-open="true"] .faq-icon { transform: rotate(180deg); }
.faq-icon { transition: transform 0.25s var(--ease-out); }
.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s var(--ease-out);
}
.faq-item[data-open="true"] .faq-answer { grid-template-rows: 1fr; }
.faq-answer > div { overflow: hidden; }

/* Nav active link underline */
.nav-link {
  position: relative;
}
.nav-link[aria-current="page"] {
  color: #0D47A1;
}
.nav-link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  background: #1976D2;
  border-radius: 999px;
}

/* Logo tile so the JPEG logo (white bg) sits well on any section color */
.logo-tile {
  background: #ffffff;
  border-radius: 0.75rem;
  padding: 4px 10px;
  display: inline-flex;
  align-items: center;
}

/* Typewriter reveal (sem cursor piscante) */

/* Utility: number/price tabular figures so prices don't jump */
.tabular-nums { font-variant-numeric: tabular-nums; }

/* Card lift on hover, transform/opacity only (no layout shift) */
.lift {
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}
.lift:hover {
  transform: translateY(-4px);
}

/* Press feedback for buttons */
.btn-press:active {
  transform: scale(0.97);
}

/* Hero photo treatment */
.hero-photo {
  position: relative;
  background-size: cover;
  background-position: center;
}
.hero-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(10,31,68,0.92) 0%, rgba(10,31,68,0.75) 35%, rgba(10,31,68,0.35) 65%, rgba(10,31,68,0.15) 100%);
}

/* Overlay mais forte para fundos com texto/logo próprios (ex.: peças de marketing usadas como plano de fundo) */
.hero-photo--dense::before {
  background: linear-gradient(100deg, rgba(10,31,68,0.94) 0%, rgba(10,31,68,0.9) 55%, rgba(10,31,68,0.78) 100%);
}

/* Audience toggle (morador / síndico) */
.audience-btn {
  transition: background-color 0.25s var(--ease-out), color 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}
.audience-btn[aria-selected="true"] {
  background-color: #0D47A1;
  color: #fff;
  box-shadow: 0 10px 20px -8px rgba(13,71,161,0.5);
}
.audience-btn[aria-selected="false"] {
  background-color: #fff;
  color: #0A1F44;
}
.audience-panel {
  display: none;
}
.audience-panel.is-active {
  display: block;
  animation: fadeSlideIn 0.4s var(--ease-out);
}
@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Video gallery cards */
.video-card {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  background: #0A1F44;
  aspect-ratio: 9 / 16;
}
.video-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.video-card__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10,31,68,0.25);
  color: #fff;
  transition: background-color 0.25s var(--ease-out), opacity 0.25s var(--ease-out);
  cursor: pointer;
  border: none;
}
.video-card__play:hover {
  background: rgba(10,31,68,0.4);
}
.video-card__play.is-hidden {
  opacity: 0;
  pointer-events: none;
}
.video-card--wide {
  aspect-ratio: 16 / 9;
}
