/* ============================================================================
   Tuyuu Site - Design system (cores do app Flutter)
   Penacho #051F2D | Lago #0B3856 | Brasa #991717 | Pluma #fff
   ============================================================================ */
:root {
  --penacho: #051F2D;
  --lago: #0B3856;
  --brasa: #991717;
  --pluma: #ffffff;
  --off-black: #121212;
  --card-bg: #2C2C2E;
  --client: #6366F1;
  --provider: #10B981;
  --text-secondary: #A1A1AA;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
  --font-sans: 'DM Sans', system-ui, -apple-system, sans-serif;
  --font-display: 'Outfit', var(--font-sans);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: #ffffff;
  color: #1A1A1A;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Tipografia */
h1, h2, h3, h4, .font-display {
  font-family: var(--font-display);
  font-weight: 700;
}

h1 { font-size: clamp(2rem, 5vw, 3.25rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.5rem); }

a {
  color: var(--pluma);
  text-decoration: none;
  transition: color var(--transition), opacity var(--transition);
}

a:hover {
  color: var(--client);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ========== Layout ========== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0.6rem 1.5rem;
  background: #000000;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform var(--transition), background var(--transition);
}

.site-header.hidden {
  transform: translateY(-100%);
}

.site-header .wrap {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: inline-flex;
  align-items: center;
}

.logo-img {
  height: 36px;
  width: auto;
}

.footer-logo-img {
  height: 30px;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-desktop a {
  font-size: 0.95rem;
  font-weight: 500;
  opacity: 0.9;
}

.nav-desktop a:hover {
  opacity: 1;
  color: var(--pluma);
}

/* Mobile menu button */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--pluma);
  padding: 0.5rem;
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
}

@media (max-width: 768px) {
  .nav-desktop {
    display: none;
  }
  .menu-toggle {
    display: block;
  }
}

.nav-mobile {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(280px, 85vw);
  background: var(--lago);
  padding: 4rem 1.5rem 2rem;
  transform: translateX(100%);
  transition: transform var(--transition);
  z-index: 99;
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.3);
}

.nav-mobile.open {
  transform: translateX(0);
}

.nav-mobile a {
  display: block;
  padding: 0.75rem 0;
  font-size: 1.1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
  z-index: 98;
}

.nav-overlay.open {
  opacity: 1;
  visibility: visible;
}

/* ========== Hero Home ========== */
.hero {
  min-height: 72vh;
  max-width: none;
  width: 100%;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5rem 1.5rem 3rem;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/image1.png');
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
  pointer-events: none;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.78) 0%, rgba(255, 255, 255, 0.72) 50%, rgba(255, 255, 255, 0.78) 100%);
  pointer-events: none;
}

.hero .wrap {
  position: relative;
  max-width: 720px;
  text-align: center;
}

.hero h1 {
  margin-bottom: 1rem;
  opacity: 0;
  transform: translateY(24px);
  animation: fadeUp 0.8s var(--transition) forwards;
  color: #0B3856;
}

.hero h1 .accent {
  color: #0B3856;
  font-weight: 800;
}

.hero .tagline {
  font-size: clamp(0.95rem, 1.8vw, 1.15rem);
  color: #0B3856;
  max-width: 520px;
  margin: 0 auto 1.5rem;
  line-height: 1.5;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s 0.15s var(--transition) forwards;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(11, 56, 86, 0.12);
  font-size: 0.85rem;
  font-weight: 500;
  color: #0B3856;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.pill-icon .pill-svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

.pill-star {
  color: #f59e0b;
}

.pill-shield {
  color: var(--provider);
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.75rem;
  background: var(--brasa);
  color: var(--pluma);
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  opacity: 0;
  animation: fadeUp 0.8s 0.3s var(--transition) forwards;
}

.hero-cta:hover {
  background: #b31e1e;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(153, 23, 23, 0.35);
}

.hero-cta:active {
  transform: translateY(0);
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scroll hint */
.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: #6B7280;
  font-size: 0.8rem;
  opacity: 0.9;
  animation: bounce 2s ease-in-out infinite;
}

.scroll-hint svg {
  width: 24px;
  height: 24px;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ========== Section genérica ========== */
section {
  padding: 4rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-title h2 {
  margin-bottom: 0.5rem;
}

.section-title p {
  color: #6B7280;
  font-size: 1rem;
}

/* ========== Seção Baixe o app ========== */
.section-app {
  background: #F9FAFB;
  padding: 4rem 1.5rem;
  max-width: 100%;
}

.section-app .wrap {
  max-width: 1200px;
  margin: 0 auto;
}

.section-app .section-title p {
  color: #6B7280;
}

.app-download {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.5rem;
  align-items: flex-start;
}

.qr-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  color: #1A1A1A;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  text-decoration: none;
}

.qr-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
  border-color: var(--brasa);
}

.qr-frame {
  width: 160px;
  height: 160px;
  padding: 0.75rem;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid rgba(0, 0, 0, 0.08);
  margin-bottom: 1rem;
}

.qr-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.qr-card .store-name {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.qr-card .store-hint {
  font-size: 0.85rem;
  color: #6B7280;
}

/* Footer */
.site-footer {
  padding: 2.5rem 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 2rem;
}

.site-footer .wrap {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-footer .logo {
  font-size: 1.25rem;
}

.site-footer-links {
  display: flex;
  gap: 1.5rem;
}

.site-footer a {
  color: #1A1A1A;
}

.site-footer a:hover {
  color: var(--brasa);
}

.site-footer p {
  color: #6B7280;
  font-size: 0.9rem;
  width: 100%;
  text-align: center;
  margin-top: 1rem;
}

@media (max-width: 768px) {
  .site-footer .wrap {
    flex-direction: column;
    text-align: center;
  }
  .site-footer-links {
    order: 2;
  }
}

/* ========== Página Privacidade ========== */
.page-privacidade {
  padding-top: 5rem;
  padding-bottom: 4rem;
  background: #ffffff;
  color: #1A1A1A;
}

.page-privacidade .wrap {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.page-privacidade h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 0.5rem;
  color: #1A1A1A;
}

.page-privacidade .meta {
  color: #6B7280;
  font-size: 0.9rem;
  margin-bottom: 2.5rem;
  font-style: italic;
}

.page-privacidade h2 {
  margin-top: 2.25rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
  scroll-margin-top: 5rem;
  color: #1A1A1A;
}

.page-privacidade h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  color: #1A1A1A;
}

.page-privacidade p,
.page-privacidade li {
  margin-bottom: 0.85rem;
  color: #374151;
}

.page-privacidade ul {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.page-privacidade a[href^="mailto"] {
  color: var(--client);
  text-decoration: underline;
}

.page-privacidade a[href^="mailto"]:hover {
  color: var(--lago);
}

.page-privacidade strong {
  color: #1A1A1A;
}

/* TOC opcional / anchor links */
.page-privacidade h2::before {
  content: '';
  display: block;
  height: 0;
  visibility: hidden;
}

.page-privacidade h2.in-view,
.page-privacidade h3.in-view {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* Botão voltar (na página privacidade) */
.page-privacidade .back-link {
  color: #6B7280;
}

.page-privacidade .back-link:hover {
  color: #1A1A1A;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  margin-bottom: 2rem;
  transition: color var(--transition);
}

.back-link svg {
  width: 20px;
  height: 20px;
  transition: transform var(--transition);
}

.back-link:hover svg {
  transform: translateX(-3px);
}
