/* styles.css
   Identidade visual APPWEB
   Contém: variáveis, tipografia, botões, inputs, labels, títulos, textos, cards, popup, fundo e utilitários.
*/

/* -------------------------
   Variáveis de tema
   ------------------------- */
:root{
  /* Cores principais */
  --app-blue: #007BFF;
  --app-purple: #6C5CE7;
  --app-dark: #333333;
  --app-bg: #F5F7FA;
  --app-white: #FFFFFF;
  --app-accent: rgba(0,123,255,0.12);

  /* Tipografia */
  --font-sans: 'Inter', 'Poppins', 'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;

  /* Espaçamentos */
  --space-xs: 6px;
  --space-sm: 12px;
  --space-md: 20px;
  --space-lg: 36px;

  /* Sombra */
  --shadow-sm: 0 4px 12px rgba(0,0,0,0.06);
  --shadow-md: 0 10px 30px rgba(0,0,0,0.10);
}

/* -------------------------
   Reset e base
   ------------------------- */
* { box-sizing: border-box; }
html,body { height:100%; }


body{

  background: url('../images/fundo.png') no-repeat center center fixed;
  background-size: cover;
  margin:0;
  font-family: var(--font-sans);
  color: var(--app-dark);
  line-height:1.5;
  font-size:16px;

}

/* Container central */
.container{
  max-width:1100px;
  margin:0 auto;
  padding: 0 var(--space-md);
}

/* -------------------------
   Tipografia
   ------------------------- */
.h1, h1{
  font-size: clamp(1.6rem, 2.6vw, 2.4rem);
  margin: 0 0 var(--space-sm) 0;
  color: var(--app-dark);
  letter-spacing: -0.01em;
  font-weight:700;
}

.h2, h2{
  font-size: clamp(1.25rem, 2.0vw, 1.6rem);
  margin: 0 0 var(--space-sm) 0;
  color: var(--app-dark);
  font-weight:600;
}

p, .text{
  color: #4b5563;
  margin: 0 0 var(--space-sm) 0;
  font-size: 0.98rem;
}

/* Pequenas legendas e labels */
.small{
  font-size:0.85rem;
  color:#6b7280;
}

/* -------------------------
   Cabeçalho / Navegação
   ------------------------- */
.header{
  background: transparent;
  padding: var(--space-sm) 0;
  position:relative;
  z-index:10;
}
.header .brand{
  display:flex;
  align-items:center;
  gap:12px;
  text-decoration:none;
  color:var(--app-dark);
}
.brand .logo{
  width:44px;
  height:44px;
  display:inline-grid;
  place-items:center;
  border-radius:10px;
  background: linear-gradient(135deg, var(--app-blue), var(--app-purple));
  box-shadow: var(--shadow-sm);
  color:var(--app-white);
  font-weight:700;
  font-size:1.05rem;
}

/* -------------------------
   Hero / Banner
   ------------------------- */
.hero{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: var(--space-lg);
  padding: calc(var(--space-lg) + 10px) 0;
  background: linear-gradient(90deg, rgba(0,123,255,0.08) 0%, rgba(108,92,231,0.06) 100%);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  overflow:hidden;
}

/* Hero left (texto) */
.hero-left{
  flex:1 1 520px;
  padding: var(--space-lg);
}

/* Hero right (ilustração / imagem) */
.hero-right{
  flex:0 0 420px;
  padding: var(--space-md);
  display:flex;
  align-items:center;
  justify-content:center;
}

/* CTA buttons */
.btn{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding: 12px 18px;
  border-radius: 10px;
  font-weight:600;
  cursor:pointer;
  border: none;
  transition: transform .12s ease, box-shadow .12s ease;
  text-decoration:none;
}

/* Botão primário */
.btn-primary{
  background: linear-gradient(90deg, var(--app-blue), var(--app-purple));
  color: var(--app-white);
  box-shadow: 0 8px 24px var(--app-accent);
}
.btn-primary:hover{ transform: translateY(-3px); }

/* Botão secundário (ghost) */
.btn-ghost{
  background: transparent;
  color: var(--app-blue);
  border: 1px solid rgba(0,123,255,0.12);
}
.btn-ghost:hover{ background: rgba(0,123,255,0.04); }

/* -------------------------
   Formulários: inputs, labels
   ------------------------- */
/* Rótulos */
.label{
  display:block;
  font-size:0.9rem;
  color:#374151;
  margin-bottom:6px;
  font-weight:600;
}

/* Inputs e textarea */
.input, .textarea, select{
  width:100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid #e6e9ef;
  background: var(--app-white);
  box-shadow: var(--shadow-sm);
  font-size:0.95rem;
  color: var(--app-dark);
  transition: border-color .12s ease, box-shadow .12s ease;
}
.input:focus, .textarea:focus, select:focus{
  outline:none;
  border-color: var(--app-blue);
  box-shadow: 0 6px 20px var(--app-accent);
}

/* Placeholder */
.input::placeholder, .textarea::placeholder{
  color:#9aa4b2;
}

/* Form group */
.form-row{
  margin-bottom: var(--space-md);
}

/* -------------------------
   Cards
   ------------------------- */
.card{
  background: var(--app-white);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(15,23,42,0.03);
}

/* Card header */
.card .card-title{
  font-weight:700;
  margin-bottom:8px;
}

/* Card small text */
.card .card-sub{
  color:#6b7280;
  font-size:0.95rem;
}

/* -------------------------
   Popup / Modal
   ------------------------- */
/* Overlay */
.modal-overlay{
  position:fixed;
  inset:0;
  background: rgba(2,6,23,0.5);
  display:none; /* controlado via JS */
  align-items:center;
  justify-content:center;
  z-index:1000;
}

/* Modal container */
.modal{
  width: min(720px, 94%);
  background: var(--app-white);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: 0 30px 80px rgba(2,6,23,0.45);
}

/* Modal close */
.modal .close{
  background:transparent;
  border:none;
  color:#6b7280;
  font-weight:700;
  cursor:pointer;
}

/* -------------------------
   Footer / Powered by / Copyright
   ------------------------- */
.footer{
  margin-top: var(--space-lg);
  padding: var(--space-md) 0;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  color:#6b7280;
  font-size:0.95rem;
}

/* Powered by badge */
.badge-powered{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:6px 10px;
  border-radius:999px;
  background: linear-gradient(90deg, rgba(0,123,255,0.08), rgba(108,92,231,0.06));
  color:var(--app-dark);
  font-weight:600;
}

/* Copyright small */
.copyright{
  color:#9aa4b2;
  font-size:0.9rem;
}

/* -------------------------
   Utilitários e responsividade
   ------------------------- */
.row{ display:flex; gap: var(--space-md); align-items:stretch; }
.col{ flex:1; }

@media (max-width: 900px){
  .hero{ flex-direction:column; padding: var(--space-md); }
  .hero-right{ order: -1; width:100%; }
  .row{ flex-direction:column; }
}

/* Pequenas animações */
.fade-in { animation: fadeIn .45s ease both; }
@keyframes fadeIn { from { opacity:0; transform: translateY(6px);} to { opacity:1; transform:none; } }

/* Links */
a { color: var(--app-blue); text-decoration:none; }
a:hover { text-decoration:underline; }
