/* ==========================================================================
   Nay Viannah - Web Designer & SEO Local (Limeira - SP)
   Custom CSS Stylesheet & Glassmorphic Utilities
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
  --color-primary: #0F2A47;
  --color-secondary: #B5472F;
  --color-support: #1F5F6B;
  --color-bg: #FAF8F4;
  --color-bg-alt: #F5EDE0;
  --color-text: #1B2430;
  
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, .font-heading {
  font-family: var(--font-heading);
}

/* Glassmorphism Styles */
.glass-panel {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 20px 40px -15px rgba(15, 42, 71, 0.07);
}

.glass-panel-subtle {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 10px 30px -10px rgba(15, 42, 71, 0.05);
}

.glass-card {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 10px 30px -10px rgba(15, 42, 71, 0.06);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(181, 71, 47, 0.25);
  box-shadow: 0 22px 45px -12px rgba(15, 42, 71, 0.12);
}

.glass-card-dark {
  background: rgba(15, 42, 71, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 25px 50px -12px rgba(15, 42, 71, 0.25);
  color: #FAF8F4;
}

.glass-nav {
  background: rgba(250, 248, 244, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(15, 42, 71, 0.08);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #FAF8F4;
}
::-webkit-scrollbar-thumb {
  background: #1F5F6B;
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: #0F2A47;
}

/* Pulse animation for CTA & Floating WhatsApp */
@keyframes softPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 10px 25px -5px rgba(37, 211, 102, 0.4);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 15px 35px -5px rgba(37, 211, 102, 0.6);
  }
}

.whatsapp-pulse {
  animation: softPulse 2.8s infinite cubic-bezier(0.4, 0, 0.6, 1);
}

/* Subtle background glowing orbs */
.bg-glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.45;
}

/* Image treatment & borders */
.img-glass-frame {
  position: relative;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(15, 42, 71, 0.18);
  border: 4px solid rgba(255, 255, 255, 0.8);
}

/* Smooth Accordion Content Transition */
[x-cloak] { display: none !important; }

/* ==========================================================================
   Hero Section (#hero) — Destaque de cor no H1
   ========================================================================== */
#hero .destaque-terracota {
  color: #B5472F;
}

/* ==========================================================================
   Projetos de Demonstração (#projetos) — escopado somente nesta seção
   ========================================================================== */
#projetos {
  background-color: #F5EDE0;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

/* Círculos grandes e desfocados (blur 80px) em terracota e azul petróleo */
#projetos .projetos-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

#projetos .projetos-orb--terracota {
  width: 480px;
  height: 480px;
  top: -80px;
  left: -100px;
  background: rgba(181, 71, 47, 0.22);
}

#projetos .projetos-orb--petroleo {
  width: 520px;
  height: 520px;
  bottom: -100px;
  right: -100px;
  background: rgba(31, 95, 107, 0.24);
}

/* Selo de vidro com ícone de janela de navegador */
#projetos .projetos-badge {
  background: rgba(255, 255, 255, 0.65);
  -webkit-backdrop-filter: blur(12px) saturate(130%);
  backdrop-filter: blur(12px) saturate(130%);
  border: 1px solid rgba(255, 255, 255, 0.8);
  color: #1F5F6B;
  box-shadow: 0 4px 16px rgba(15, 42, 71, 0.05);
}

/* Palavra demonstração no H2 em terracota */
#projetos .destaque-demonstracao {
  color: #B5472F;
}

/* Subtítulo dinâmico: hover vs touch */
#projetos .projetos-subtitulo .touch-instruction {
  display: none;
}

#projetos .projetos-subtitulo .hover-instruction {
  display: inline;
}

@media (hover: none) {
  #projetos .projetos-subtitulo .touch-instruction {
    display: inline;
  }
  #projetos .projetos-subtitulo .hover-instruction {
    display: none;
  }
}

/* Grade de 3 colunas desktop, 2 tablet, 1 celular, gap 28px, mesma altura */
#projetos .projetos-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: stretch;
}

@media (min-width: 640px) {
  #projetos .projetos-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  #projetos .projetos-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Card: vidro fosco conforme especificação */
#projetos .projeto-card {
  background: rgba(255, 255, 255, 0.55);
  -webkit-backdrop-filter: blur(14px) saturate(130%);
  backdrop-filter: blur(14px) saturate(130%);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 28px;
  padding: 16px;
  box-shadow: 0 18px 40px -12px rgba(15, 42, 71, 0.12);
  display: flex;
  flex-direction: column;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, border-color 0.35s ease;
  cursor: pointer;
  outline: none;
}

#projetos .projeto-card:hover,
#projetos .projeto-card:focus-visible {
  transform: translateY(-6px);
  border-color: rgba(181, 71, 47, 0.3);
  box-shadow: 0 24px 48px -10px rgba(15, 42, 71, 0.18);
}

/* Foco visível acessível */
#projetos .projeto-card:focus-visible {
  outline: 3px solid #1F5F6B;
  outline-offset: 3px;
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  #projetos .projeto-card {
    background: rgba(255, 255, 255, 0.92);
  }
}

/* Moldura da imagem: aspect-ratio 16/10, border-radius 18px, overflow hidden */
#projetos .projeto-img-frame {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(180deg, #0F2A47 0%, #1F5F6B 50%, #F5EDE0 100%);
  box-shadow: 0 4px 16px rgba(15, 42, 71, 0.08);
}

/* Barrinha de janela de navegador no topo com 3 pontos */
#projetos .projeto-browser-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 22px;
  background: rgba(15, 42, 71, 0.45);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 10px;
  z-index: 2;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

#projetos .browser-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
}

#projetos .browser-dot.dot-red {
  background-color: #FF5F56;
}

#projetos .browser-dot.dot-yellow {
  background-color: #FFBD2E;
}

#projetos .browser-dot.dot-green {
  background-color: #27C93F;
}

/* Imagem com captura longa: width 100%, height 100%, object-fit: cover, object-position: top */
#projetos .projeto-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
  /* Ao tirar o mouse, volta ao topo em 1,2s */
  transition: object-position 1.2s ease-in-out;
}

/* Efeito de rolagem de cima para baixo em 6s */
#projetos .projeto-card:hover .projeto-img,
#projetos .projeto-card:focus-visible .projeto-img,
#projetos .projeto-card.rolando .projeto-img {
  object-position: bottom;
  transition: object-position 6s ease-in-out;
}

/* Prefers-reduced-motion: sem animação, imagem estática no topo */
@media (prefers-reduced-motion: reduce) {
  #projetos .projeto-img {
    transition: none !important;
    object-position: top !important;
  }
}

#projetos .projeto-info {
  margin-top: auto;
}

/* ==========================================================================
   Diferenciais (#beneficios) — escopado somente nesta seção
   ========================================================================== */
#beneficios,
#diferenciais {
  scroll-margin-top: 90px;
}

#beneficios {
  background-color: #0F2A47;
  background-image: radial-gradient(circle at 50% 15%, #183C62 0%, #0F2A47 70%, #091A2E 100%);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

#beneficios .beneficios-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
}

#beneficios .beneficios-orb--terracota {
  width: 520px;
  height: 520px;
  top: -40px;
  left: -80px;
  background: rgba(181, 71, 47, 0.35);
}

#beneficios .beneficios-orb--petroleo {
  width: 560px;
  height: 560px;
  bottom: -80px;
  right: -80px;
  background: rgba(31, 95, 107, 0.38);
}

#beneficios .beneficios-orb--centro {
  width: 460px;
  height: 460px;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(181, 71, 47, 0.18);
}

#beneficios .beneficios-grid {
  align-items: stretch;
}

/* 2. Efeito Glassmorphism & 3. Espaçamento (Respiro) */
#beneficios .beneficio-card {
  background: rgba(15, 42, 71, 0.52);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-top: 1px solid rgba(255, 255, 255, 0.28); /* Brilho de reflexo no topo do vidro */
  border-radius: 28px;
  padding: 38px 32px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  height: 100%;
  box-sizing: border-box;
  box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1), 
              border-color 0.38s ease, 
              box-shadow 0.38s ease,
              background-color 0.38s ease;
}

/* Cards em destaque (linha 1: 2 cards maiores) com respiro adicional */
@media (min-width: 1024px) {
  #beneficios .beneficio-card--featured {
    padding: 44px 38px;
  }
}

/* Ícone com acabamento moderno em vidro e espaçamento generoso */
#beneficios .beneficio-icon-wrap {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-bottom: 26px;
  transition: transform 0.35s ease, background-color 0.35s ease, border-color 0.35s ease;
}

/* Título com espaçamento de respiro */
#beneficios .beneficio-card h3 {
  margin-bottom: 14px;
  line-height: 1.35;
}

/* Texto com espaçamento e leitura leve */
#beneficios .beneficio-card p {
  line-height: 1.7;
  color: rgba(250, 248, 244, 0.84);
}

/* 4. Interação (Hover): flutua para cima e a borda acende em terracota */
#beneficios .beneficio-card:hover {
  transform: translateY(-8px);
  background: rgba(15, 42, 71, 0.68);
  border-color: rgba(181, 71, 47, 0.85); /* Borda acende em terracota */
  box-shadow: 0 24px 50px -12px rgba(181, 71, 47, 0.3), 
              0 0 25px rgba(181, 71, 47, 0.2), 
              inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

#beneficios .beneficio-card:hover .beneficio-icon-wrap {
  transform: scale(1.08);
  background: rgba(181, 71, 47, 0.22);
  border-color: rgba(181, 71, 47, 0.55);
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  #beneficios .beneficio-card {
    background: rgba(15, 42, 71, 0.94);
  }
}

/* ==========================================================================
   Como Funciona (#como-funciona) — Linha do Tempo sem cards
   ========================================================================== */
#como-funciona {
  background-color: #FAF8F4;
}

#como-funciona .timeline-circle-1 {
  background-color: #B5472F;
}

#como-funciona .timeline-circle-default {
  background-color: #0F2A47;
}

/* Animação suave de entrada com translateY de 12px */
@keyframes cfFadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#como-funciona .timeline-step {
  animation: cfFadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

#como-funciona .timeline-step:nth-child(1) { animation-delay: 0.1s; }
#como-funciona .timeline-step:nth-child(2) { animation-delay: 0.2s; }
#como-funciona .timeline-step:nth-child(3) { animation-delay: 0.3s; }
#como-funciona .timeline-step:nth-child(4) { animation-delay: 0.4s; }
#como-funciona .timeline-step:nth-child(5) { animation-delay: 0.5s; }

@media (prefers-reduced-motion: reduce) {
  #como-funciona .timeline-step {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Desktop: linha do tempo horizontal (5 etapas) */
@media (min-width: 1024px) {
  #como-funciona .timeline-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1.75rem;
  }

  #como-funciona .timeline-step {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  /* Linha fina em azul petróleo ligando os círculos */
  #como-funciona .timeline-step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 22px;
    left: 44px;
    width: calc(100% - 44px + 1.75rem);
    height: 2px;
    background-color: #1F5F6B;
    z-index: 1;
  }

  #como-funciona .timeline-circle {
    position: relative;
    z-index: 2;
    margin-bottom: 1.5rem;
  }

  #como-funciona .timeline-content {
    width: 100%;
  }
}

/* Celular e Tablet: linha do tempo vertical */
@media (max-width: 1023px) {
  #como-funciona .timeline-grid {
    display: flex;
    flex-direction: column;
    position: relative;
    max-width: 38rem;
    margin-left: auto;
    margin-right: auto;
  }

  #como-funciona .timeline-step {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 1.25rem;
    padding-bottom: 2.25rem;
  }

  #como-funciona .timeline-step:last-child {
    padding-bottom: 0;
  }

  /* Linha vertical conectando os círculos */
  #como-funciona .timeline-step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 44px;
    left: 21px;
    width: 2px;
    bottom: 0;
    background-color: #1F5F6B;
    z-index: 1;
  }

  #como-funciona .timeline-circle {
    position: relative;
    z-index: 2;
    flex-shrink: 0;
  }

  #como-funciona .timeline-content {
    flex: 1;
    padding-top: 0.35rem;
  }
}

/* ==========================================================================
   Área de Atuação (#area-atuacao) — escopado somente nesta seção
   ========================================================================== */
#area-atuacao {
  background-color: #F5EDE0;
  overflow: hidden;
  isolation: isolate;
}

/* Círculos desfocados atrás do vidro */
#area-atuacao .aa-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
}

#area-atuacao .aa-orb--terracota {
  width: 420px;
  height: 420px;
  top: -80px;
  left: -120px;
  background: rgba(181, 71, 47, 0.35);
}

#area-atuacao .aa-orb--petroleo {
  width: 480px;
  height: 480px;
  bottom: -140px;
  right: -120px;
  background: rgba(31, 95, 107, 0.32);
}


/* Mapa */
#area-atuacao .aa-map {
  position: relative;
  width: 100%;
  height: 280px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 18px 40px -12px rgba(15, 42, 71, 0.22);
  background: linear-gradient(135deg, #0F2A47 0%, #1F5F6B 100%);
  cursor: pointer;
  outline: none;
}

#area-atuacao .aa-map:focus-visible {
  box-shadow: 0 0 0 3px rgba(31, 95, 107, 0.55), 0 18px 40px -12px rgba(15, 42, 71, 0.22);
}

#area-atuacao .aa-map iframe {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 24px;
  pointer-events: none;
}

#area-atuacao .aa-map.is-active {
  cursor: default;
}

#area-atuacao .aa-map.is-active iframe {
  pointer-events: auto;
}

/* Fallback: visível apenas se o iframe não renderizar */
#area-atuacao .aa-map-fallback {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(250, 248, 244, 0.85);
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* Aviso "Clique para interagir" */
#area-atuacao .aa-map-hint {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: #0F2A47;
  background: rgba(255, 255, 255, 0.6);
  -webkit-backdrop-filter: blur(10px) saturate(130%);
  backdrop-filter: blur(10px) saturate(130%);
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: 0 6px 16px rgba(15, 42, 71, 0.12);
  pointer-events: none;
  transition: opacity 200ms ease, transform 200ms ease;
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  #area-atuacao .aa-map-hint {
    background: rgba(255, 255, 255, 0.92);
  }
}

#area-atuacao .aa-map.is-active .aa-map-hint {
  opacity: 0;
  transform: translateY(-4px);
}

@media (min-width: 1024px) {
  #area-atuacao .aa-map {
    height: 360px;
  }
}


