/* ═══════════════════════════════════════════════════════════════
   IPELS — Design System CSS
   Reutilizado por index.html e landing.html
   ═══════════════════════════════════════════════════════════════ */

/* === RESET MÍNIMO === */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, h1, h2, h3, h4, p, ul, ol, figure, blockquote {
  margin: 0;
  padding: 0;
}
ul, ol { list-style: none; }
img { max-width: 100%; display: block; height: auto; }
button { font-family: inherit; cursor: pointer; }
a { color: inherit; }

/* === TOKENS DA MARCA === */
:root {
  /* Cores */
  --navy:        #165571;
  --navy-deep:   #0E3F55;
  --navy-light:  #2A7A9F;
  --coral:       #F87661;
  --coral-deep:  #E66248;
  --graphite:    #2C2C2C;
  --gray:        #6B7280;
  --gray-light:  #E5E7EB;
  --gray-soft:   #F1F3F8;
  --bg:          #F8F9FC;
  --white:       #FFFFFF;

  /* Tipografia — Montserrat (display) + Lora (editorial) + Inter (body) */
  --font-display: 'Montserrat', system-ui, -apple-system, sans-serif;
  --font-editorial: 'Lora', Georgia, serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'Courier New', monospace;

  /* Espaçamento (escala 4pt) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;
  --space-32: 128px;

  /* Container */
  --container-max: 1200px;
  --container-pad: clamp(20px, 4vw, 40px);

  /* Outros */
  --radius: 8px;
  --radius-lg: 16px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(22, 85, 113, 0.06);
  --shadow: 0 8px 24px rgba(22, 85, 113, 0.08);
  --shadow-lg: 0 24px 48px rgba(22, 85, 113, 0.12);
  --transition: 240ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* === BASE === */
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--graphite);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Tipografia */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
h1 { font-size: clamp(40px, 6vw, 72px); font-weight: 800; }
h2 { font-size: clamp(32px, 4vw, 48px); font-weight: 700; }
h3 { font-size: clamp(20px, 2.4vw, 28px); font-weight: 700; line-height: 1.2; }
h4 { font-size: 18px; font-weight: 600; line-height: 1.3; }
p  { line-height: 1.7; color: var(--graphite); }
strong { font-weight: 600; color: var(--navy); }

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
}

/* === EYEBROW (label pequeno acima de títulos) === */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: var(--space-4);
}
.eyebrow::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--coral);
}

/* === BOTÕES === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 14px 28px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius);
  border: 2px solid transparent;
  text-decoration: none;
  transition: var(--transition);
  white-space: nowrap;
  cursor: pointer;
}
.btn-primary {
  background: var(--coral);
  color: var(--white);
  border-color: var(--coral);
}
.btn-primary:hover {
  background: var(--coral-deep);
  border-color: var(--coral-deep);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(248, 118, 97, 0.32);
}
.btn-secondary {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-secondary:hover {
  background: var(--navy);
  color: var(--white);
}
.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.3);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
}
.btn-arrow::after {
  content: '→';
  transition: transform var(--transition);
}
.btn-arrow:hover::after {
  transform: translateX(4px);
}

/* === NAVBAR === */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--gray-light);
  transition: var(--transition);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) 0;
}
.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.nav-logo img { height: 36px; width: auto; }
.nav-links {
  display: flex;
  gap: var(--space-8);
  align-items: center;
}
.nav-links a {
  text-decoration: none;
  color: var(--graphite);
  font-size: 14px;
  font-weight: 500;
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--coral); }
.nav-cta { padding: 10px 20px !important; font-size: 14px !important; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  width: 40px;
  height: 40px;
  position: relative;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  margin: 5px auto;
  transition: var(--transition);
}

/* === FOOTER === */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,0.85);
  padding: var(--space-20) 0 var(--space-8);
  margin-top: var(--space-32);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-12);
  margin-bottom: var(--space-16);
}
.footer-brand img { height: 40px; margin-bottom: var(--space-4); }
.footer-tagline {
  font-family: var(--font-editorial);
  font-style: italic;
  color: var(--coral);
  font-size: 17px;
  margin-bottom: var(--space-6);
}
.footer-brand p { color: rgba(255,255,255,0.7); font-size: 14px; max-width: 320px; }
.footer h4 {
  color: var(--white);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-4);
  font-family: var(--font-mono);
  font-weight: 500;
}
.footer ul li { margin-bottom: var(--space-2); }
.footer ul a {
  text-decoration: none;
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  transition: color var(--transition);
}
.footer ul a:hover { color: var(--coral); }
.footer-bottom {
  padding-top: var(--space-6);
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  flex-wrap: wrap;
  gap: var(--space-4);
}

/* === FORMULÁRIO === */
.form-group {
  margin-bottom: var(--space-4);
}
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--graphite);
  margin-bottom: var(--space-2);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--graphite);
  background: var(--white);
  border: 1.5px solid var(--gray-light);
  border-radius: var(--radius);
  transition: border-color var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 4px rgba(22, 85, 113, 0.08);
}
.form-group textarea { resize: vertical; min-height: 100px; }

/* === RESPONSIVO === */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    padding: var(--space-6);
    gap: var(--space-4);
    background: var(--white);
    border-bottom: 1px solid var(--gray-light);
    box-shadow: var(--shadow);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
  }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* === ANIMATIONS === */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) backwards; }
.fade-up-1 { animation-delay: 0.1s; }
.fade-up-2 { animation-delay: 0.2s; }
.fade-up-3 { animation-delay: 0.3s; }
.fade-up-4 { animation-delay: 0.4s; }
.fade-up-5 { animation-delay: 0.5s; }
