/* EstatBovi Landing — styles.css */
:root {
  --bg: #ffffff;
  --text: #1d2939;
  --muted: #667085;
  --primary: #0ea5a6; /* verde-água discreto; ajuste se quiser */
  --primary-contrast: #ffffff;
  --card: #f8fafc;
  --border: #e5e7eb;
  --shadow: 0 10px 25px rgba(2, 6, 23, 0.06);
}

* { box-sizing: border-box; }
html, body { margin:0; padding:0; }
body {
  font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

.container { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 16px; }

/* Header */
.header {
  display:flex; align-items:center; justify-content:space-between;
  padding: 16px 0;
}
.logo { font-weight: 700; letter-spacing: 0.4px; font-size: 20px; }
.nav a { margin-left: 16px; color: var(--text); text-decoration: none; font-weight: 500; }
.nav a:hover { opacity: .8; }

.btn {
  display:inline-block; padding: 12px 18px; border-radius: 10px;
  background: var(--primary); color: var(--primary-contrast); text-decoration:none;
  font-weight: 600; box-shadow: var(--shadow); border: 1px solid transparent;
}
.btn:hover { filter: brightness(0.95); }
.btn.ghost { background: transparent; color: var(--primary); border: 1px solid var(--primary); box-shadow: none; }
.btn.small { padding: 8px 12px; font-size: 14px; }

/* Hero */
.hero { display:grid; grid-template-columns: 1.1fr 0.9fr; gap: 28px; align-items:center; padding: 40px 0 20px; }
.hero__text h1 { line-height:1.15; font-size: clamp(28px, 4vw, 44px); margin: 0 0 12px; }
.hero__text p { color: var(--muted); margin: 0 0 18px; }
.hero__cta { display:flex; gap: 12px; flex-wrap: wrap; }
.hero__img img { width: 100%; border-radius: 16px; box-shadow: var(--shadow); }

/* Badges */
.badges { display:grid; grid-template-columns: repeat(4,1fr); gap: 12px; padding: 14px 0 0; }
.badge {
  background: var(--card); border:1px solid var(--border); border-radius: 12px;
  padding: 10px 12px; text-align:center; font-size: 14px; color: var(--muted);
}

/* Sections */
section { padding: 34px 0; }
h2 { font-size: clamp(22px,3vw,32px); margin: 0 0 12px; }
.grid { display:grid; gap: 16px; grid-template-columns: repeat(3, 1fr); }
.card { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 18px; box-shadow: var(--shadow); }
.card h3 { margin: 0 0 8px; font-size: 18px; }

.about { background: var(--card); border:1px solid var(--border); padding: 18px; border-radius: 14px; box-shadow: var(--shadow); }

/* Selo UNICAMP */
.selo-unicamp { padding-top: 40px; padding-bottom: 40px; }
.selo-unicamp__inner { display:flex; justify-content:center; }
.selo-unicamp__inner img { max-width: 260px; width: 100%; height: auto; border-radius: 16px; box-shadow: var(--shadow); }

/* Contact */
.contact .form { display:grid; gap: 14px; max-width: 560px; }
.field { display:grid; gap:6px; }
label { font-weight: 600; }
input, textarea {
  width: 100%; padding: 12px 14px; border-radius: 10px; border:1px solid var(--border);
  font-size: 16px; outline: none; background: #fff;
}
input:focus, textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(14,165,166,.12); }
.hp { position:absolute; left:-9999px; height:0; width:0; }
.footnote { font-size: 12px; color: var(--muted); }

/* Footer */
.footer { background:#0b1220; color:#cbd5e1; margin-top: 10px; }
.footer__inner { display:flex; align-items:center; justify-content:space-between; padding: 18px 16px; }
.footer a { color:#94a3b8; text-decoration:none; }
.footer a:hover { color:#e2e8f0; }

/* Responsive */
@media (max-width: 900px){
  .hero { grid-template-columns: 1fr; }
  .badges { grid-template-columns: repeat(2,1fr); }
  .grid { grid-template-columns: 1fr; }
}

/* Unificar fonte nos campos e no placeholder */
input, textarea { 
  font-family: inherit; 
}

/* Placeholder consistente (suporte cross-browser) */
::placeholder { 
  font-family: inherit; 
  color: var(--muted);
  opacity: .9;         /* melhor legibilidade */
}
::-webkit-input-placeholder { font-family: inherit; color: var(--muted); opacity: .9; }
:-ms-input-placeholder { font-family: inherit; color: var(--muted); opacity: .9; }
::-ms-input-placeholder { font-family: inherit; color: var(--muted); opacity: .9; }

/* (opcional) refinamento do textarea */
textarea { 
  line-height: 1.5;
  resize: vertical; 
  min-height: 140px;
}
/* === Mobile refinements (<= 430px) === */
@media (max-width: 430px){

  /* Layout base */
  .container { padding-left: 14px; padding-right: 14px; }

  /* Header compacto e respirando melhor */
  .header.container { min-height: 64px; gap: 12px; }
  .logo img { height: 52px; } /* sobrepõe o patch atual */
  .nav a { font-size: 14px; margin-left: 10px; }
  .nav .btn { padding: 8px 12px; border-radius: 10px; }

  /* Hero: reduzir hierarquia, encurtar texto e empilhar CTAs */
  .hero { gap: 18px; padding: 18px 0 8px; }
  .hero__text h1 { font-size: clamp(24px, 7vw, 30px); line-height: 1.2; margin-bottom: 10px; }
  .hero__text p { font-size: 15px; margin-bottom: 14px; }
  .hero__cta { gap: 10px; }
  .hero__cta .btn { width: 100%; padding: 12px 14px; } /* tap target 44px+ */
  .hero__img img { border-radius: 14px; box-shadow: var(--shadow); }

  /* Badges mais legíveis (1 por linha) */
  .badges { grid-template-columns: 1fr; gap: 10px; padding-top: 10px; }
  .badge { font-size: 14px; padding: 10px 12px; }

  /* Grades (serviços) com cartões mais “apertados” */
  section { padding: 22px 0; }
  .grid { gap: 12px; }
  .card { padding: 14px; }
  .card h3 { font-size: 16px; margin-bottom: 6px; }

  /* Contato: inputs confortáveis e fonte consistente */
  .contact .form { gap: 12px; }
  label { font-size: 14px; }
  input, textarea { font-size: 16px; padding: 12px 12px; } /* evita zoom do iOS */
  .footnote { font-size: 11.5px; }

  /* Footer empilhado */
  .footer__inner { flex-direction: column; align-items: stretch; gap: 10px; }
  .footer__actions { display: grid; grid-template-columns: 1fr; gap: 8px; }
  .footer__actions .btn { width: 100%; }
}

/* === Telas pequenas muito comuns (<= 375px) === */
@media (max-width: 375px){
  .nav a { display: none; }          /* deixa só o botão "Contato" visível */
  .nav .btn { display: inline-block; }
  .hero__text h1 { font-size: 22px; }
  .hero__text p { font-size: 14px; }
}

/* ——— WhatsApp como ação secundária no contato ——— */
.contact-alt { margin-top: 12px; display: grid; gap: 10px; }

.contact-alt .divider {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; color: var(--muted);
}
.contact-alt .divider::before,
.contact-alt .divider::after {
  content: ""; flex: 1; height: 1px; background: var(--border);
}

.btn.whats-btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: #25D366;
  color: #fff; border: 1px solid #1ebe57;
}
.btn.whats-btn:hover { filter: brightness(0.95); }
.btn.whats-btn svg { width: 18px; height: 18px; }

.footnote.small { font-size: 11.5px; opacity: .95; }

@media (max-width: 430px){
  .contact-alt .btn.whats-btn { width: 100%; justify-content: center; }
}
