/* ---------------- reset / base ---------------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
:root{
  --bg: #0f0f14;
  --muted: #f3f3f6;
  --accent: #3c27da; /* roxo vibrante */
  --accent-2: #02325e; /* azul-ciano */
  --glass: rgba(255, 255, 255, 0.123);
  --card-shadow: 0 18px 40px rgba(10,10,20,0.35);
}
html,body{ height:100%; font-family: Inter, "Helvetica Neue", Arial, sans-serif; color:var(--bg); background: linear-gradient(180deg,#fafafa,#f2f2ff); -webkit-font-smoothing:antialiased;}

/* wrapper */
.wrap{ max-width:1150px; margin:0 auto; padding:0 24px; }

/* ---------------- header ---------------- */
.header{
  position:fixed; inset:0 0 auto 0; height:84px;
  backdrop-filter: blur(6px);
  display:flex; align-items:center; z-index:999;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.85), rgba(255,255,255,0.7));
  border-bottom: 1px solid rgba(10,10,10,0.04);
  width:100%;
}
.header-inner{ 
  display:flex; 
  justify-content:space-between; 
  align-items:center; 
  width:100%; 
  max-width:1150px; 
  margin:0 auto; 
  padding:0 24px; 
}

/* logo */
.logo-box{ 
  display:flex; 
  align-items:center; 
  gap:0px; 
  position: relative;
}
.logo-svg{ 
  width:120px; 
  height:auto; 
  display:block; 
  transform-origin:left center; 
  transition: transform .25s ease; 
}
.logo-text{ 
  font-size: clamp(1.1rem, 4vw, 1.6rem);
  font-weight:700; 
  color:#111; 
  letter-spacing:0.4px; 
  margin-left: -3.3em; /* Ajustado para ficar mais à direita */
  white-space: nowrap;
  transition: all 0.3s ease;
}

/* nav */
.nav{ display:flex; gap:18px; align-items:center; }
.nav-link{ text-decoration:none; font-weight:600; color:#222; padding:10px 12px; border-radius:8px; transition: all .22s ease; }
.nav-link:hover{ transform:translateY(-3px); color:var(--accent); box-shadow: 0 6px 18px rgba(108,92,231,0.12); }
.nav-link.cta{ background:linear-gradient(90deg,var(--accent),var(--accent-2)); color:white; padding:10px 16px; }

/* ---------------- hero ---------------- */
.hero{
  position:relative; height:88vh; margin-top:84px; overflow:hidden; display:flex; align-items:center; justify-content:center;
  background: linear-gradient(135deg,#0d1023 10%, #141224 40%, #2e2d2d 100%); color:white;
}

/* decorative parallax layers (subtle) */
.hero-layer{ position:absolute; inset:0; pointer-events:none; opacity:0.08; mix-blend-mode:overlay; transform:translateY(0); transition: transform .1s linear; }
.layer-back{ background: radial-gradient(circle at 10% 20%, rgba(108,92,231,0.55), transparent 20%), radial-gradient(circle at 90% 80%, rgba(0,210,255,0.35), transparent 18%); filter: blur(36px); }
.layer-front{ background: radial-gradient(circle at 80% 10%, rgba(108,92,231,0.22), transparent 10%), radial-gradient(circle at 35% 80%, rgba(0,210,255,0.18), transparent 12%); filter: blur(28px); }

/* hero content */
.hero-content{ z-index:2; text-align:center; padding: 0 24px; max-width:920px; }
.hero-content h1{ font-size:clamp(30px,6vw,64px); line-height:1.02; margin-bottom:14px; font-weight:800; letter-spacing:-1px; color: #fff; text-shadow: 0 8px 30px rgba(0,0,0,0.4); }
.hero-content h1 span{ font-weight:600; color: #e8e8ff; display:block; font-size:0.7em; margin-top:8px; opacity:0.92; }
.hero-content p{ color: #eef2ff; font-size:1.1rem; margin-bottom:20px; opacity:0.95; }

/* hero CTAs */
.hero-ctas{ display:flex; gap:12px; justify-content:center; margin-top:10px; }
.btn{ display:inline-block; text-decoration:none; border-radius:10px; padding:12px 18px; font-weight:700; cursor:pointer; transition: transform .22s cubic-bezier(.2,.9,.3,1), box-shadow .22s; }
.btn-primary{ background:linear-gradient(90deg,var(--accent),var(--accent-2)); color:white; box-shadow: 0 12px 30px rgba(108,92,231,0.22); }
.btn-primary:hover{ transform:translateY(-6px) scale(1.02); box-shadow: 0 24px 60px rgba(108,92,231,0.28); }
.btn-ghost{ background:rgba(255,255,255,0.08); color:#fff; border:1px solid rgba(255,255,255,0.08); }
.btn-ghost:hover{ transform:translateY(-6px); }


/* ---------------- SOBRE ---------------- */
.sobre-container {
  display: flex;
  gap: 40px;
  align-items: center;
}

.sobre-texto {
  flex: 1;
}

.sobre-imagem {
  flex: 0 0 45%;
  max-width: 45%;
}

.sobre-imagem img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.1);
}

/* ---------------- sections ---------------- */
section { padding:80px 0; position:relative; }
.sobre{ background:linear-gradient(180deg, rgba(255,255,255,0.98), rgba(204, 204, 245, 0.98)); }
.sobre .wrap{ text-align:left; padding:0 24px; }
.sobre h2{ font-size:2.2rem; margin-bottom:10px; color:#111; }
.sobre p{ font-size:1.05rem; color:#444; max-width:760px; }

/* services */
.servicos{ background:linear-gradient(180deg, rgba(248, 249, 252, 0.98), rgba(206, 207, 219, 0.98)); }
.servicos .wrap{ text-align:center; }
.servicos h2{ font-size:2rem; margin-bottom:30px; color:#111; }

/* cards grid */
.cards{ display:grid; grid-template-columns: repeat(3, 1fr); gap:28px; align-items:stretch; padding:0 24px; }

.card{
  background: linear-gradient(180deg, rgba(255,255,255,1), rgba(250,250,255,1));
  border-radius:16px; padding:28px; box-shadow: var(--card-shadow);
  transition: transform .36s cubic-bezier(.2,.9,.3,1), box-shadow .36s, border-radius .22s, max-height .4s ease;
  display:flex; flex-direction:column; align-items:flex-start;
  min-height:200px;
  overflow:hidden;
  max-height: 260px; /* altura fechada */
  text-align: center;
  align-items: center;
  justify-content: center;
}
.card-inner{ position:center; z-index:2; }
.card h3{ font-size:1.25rem; margin-bottom:10px; color:#111;   text-align: center;}
.card p{ color:#555; line-height:1.6;   text-align: center; }


/* streak color */
.card:hover{
  transform: translateY(-12px) scale(1.02);
  border-radius:18px;
  box-shadow: 0 30px 80px rgba(10,10,30,0.28);
  max-height: 500px; /* aumenta suavemente */
}
.card:hover::before{ transform: translateY(0%); }

/* ---------------- Card Info (expansão | opção B) ---------------- */
.card-info {
  margin-top: 18px;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height .5s ease, opacity .35s ease;
}
.card:hover .card-info {
  opacity: 1;
  max-height: 600px; /* espaço interno */
}
.card-info p {
  color: #333;
  line-height:1.5;
  font-size:0.98rem;
}

/* ---------------- contato (form) ---------------- */
.contato{ background: linear-gradient(180deg, #ffffff, #fbfbff); }
.contato .wrap{ max-width:900px; margin:0 auto; padding:0 24px; text-align:left; }
.contato h2{ font-size:2rem; margin-bottom:18px; color:#111; text-align:center; }
.form{ background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(250,250,255,0.98)); padding:20px; border-radius:14px; box-shadow: 0 20px 50px rgba(10,10,30,0.06); }
.row{ display:flex; gap:12px; }
label{ display:block; font-weight:600; color:#222; font-size:0.95rem; }
input, textarea{ width:100%; padding:12px 14px; margin-top:8px; border-radius:10px; border:1px solid #e6e7ee; background:#fff; font-size:0.96rem; resize:vertical; transition: box-shadow .18s, transform .18s; }
input:focus, textarea:focus{ outline:none; box-shadow: 0 8px 22px rgba(108,92,231,0.08); transform: translateY(-2px); border-color: rgba(108,92,231,0.22); }
.form-actions{ display:flex; gap:12px; align-items:center; margin-top:12px; }
.status{ color: #2a7a2a; font-weight:600; font-size:0.95rem; }

/* ---------------- FORMULÁRIO ---------------- */
.row {
  display: flex;
  gap: 12px;
}

/* Ajuste para 3 campos na mesma linha */
.row label {
  flex: 1;
}

/* Placeholder personalizado */
textarea::placeholder {
  color: #666;
  font-size: 0.9rem;
  line-height: 1.4;
}

input::placeholder {
  color: #999;
}

/* Estilo para campos de formulário */
input, textarea {
  width: 100%;
  padding: 12px 14px;
  margin-top: 8px;
  border-radius: 10px;
  border: 1px solid #e6e7ee;
  background: #fff;
  font-size: 0.96rem;
  resize: vertical;
  transition: box-shadow .18s, transform .18s, border-color .18s;
  font-family: inherit;
}

input:focus, textarea:focus {
  outline: none;
  box-shadow: 0 8px 22px rgba(108,92,231,0.08);
  transform: translateY(-2px);
  border-color: rgba(108,92,231,0.5);
}

/* Responsividade para formulário */
@media (max-width: 768px) {
  .row {
    flex-direction: column;
    gap: 0;
  }
  
  .row label {
    margin-bottom: 12px;
  }
}

/* ---------------- footer ---------------- */
.footer{ padding:36px 24px; text-align:center; background:#0f1724; color:#dfefff; }

/* ---------------- reveal animations ---------------- */
.reveal-up{ opacity:0; transform: translateY(30px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.9,.3,1);}
.reveal-left{ opacity:0; transform: translateX(-40px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.9,.3,1);}
.reveal-right{ opacity:0; transform: translateX(40px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.9,.3,1);}
.reveal-up.is-visible, .reveal-left.is-visible, .reveal-right.is-visible{
  opacity:1; transform: none;
}

/* delays */
.delay-100{ transition-delay:.12s; }
.delay-200{ transition-delay:.22s; }
.delay-300{ transition-delay:.34s; }

/* ---------------- responsive ---------------- */
@media (max-width: 980px){
  .cards{ grid-template-columns: repeat(2, 1fr); }
  .row{ flex-direction:column; }
  .logo-svg{ width:100px; }
  .logo-text{ 
    font-size: 1.3rem; 
    margin-left: -3.6em; /* Ajustado para ficar mais à direita */
  }
}

@media (max-width: 768px){
  .sobre-container {
    flex-direction: column;
  }
  
  .sobre-imagem {
    flex: 0 0 100%;
    max-width: 100%;
    margin-top: 20px;
  }
  
  .logo-svg{ width:85px; }
  .logo-text{ 
    font-size: 1.2rem; 
    margin-left: -3.0em; /* Ajustado para ficar mais à direita */
  }
}

@media (max-width: 640px){
  .cards{ grid-template-columns: 1fr; }
  .header{ height:76px; }
  .hero{ height:72vh; }
  .logo-svg{ width:75px; }
  .logo-text{  
    font-size: 1.1rem; 
    margin-left: -1.9em; /* Ajustado para ficar mais à direita */
  }
  .nav{ display:none; }
  .wrap{ padding:0 16px; }
  .hero-content h1{ font-size:clamp(22px,6vw,36px); }
}

@media (max-width: 480px){
  .logo-svg{ width:65px; }
  .logo-text{  
    font-size: 1rem; 
    margin-left: -3.0em; /* Ajustado para ficar mais à direita */
  }
}