/* ============================================
   GoVertice — Design System
   Paleta: azul-escuro + roxo, light mode.
   Tipografia sóbria, layout de impacto.
============================================ */
:root {
  --color-bg:            #F0F2F8;
  --color-surface:       #FFFFFF;
  --color-ink:           #0D1B3E;
  --color-ink-muted:     #3E4A6B;
  --color-border:        #C5CBDB;
  --color-accent:        #1A3EBF;
  --color-accent-hover:  #12309E;
  --color-purple:        #7C3AED;
  --color-purple-hover:  #6525D4;
  --color-purple-light:  #EDE5FF; 
  --color-blue-light:    #E8EEFF;
  --color-gradient:      linear-gradient(135deg, #1A3EBF 0%, #7C3AED 100%);
  --color-gradient-soft: linear-gradient(135deg, #E8EEFF 0%, #EDE5FF 100%);
  --color-success-bg:    #ECFDF5;
  --color-success-border:#10B981;
  --color-success-text:  #065F46;
  --color-error-bg:      #FEF2F2;
  --color-error-border:  #EF4444;
  --color-error-text:    #991B1B;

  --font-display: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;

  --radius:       6px;
  --radius-lg:    12px;
  --shadow-sm:    0 1px 3px rgba(16,23,42,0.06);
  --shadow-md:    0 4px 12px rgba(16,23,42,0.08);
  --shadow-lg:    0 8px 30px rgba(16,23,42,0.10);
  --transition:   0.2s ease;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-ink);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-ink);
}
h1 { font-size: 2.75rem; letter-spacing: -0.02em; }
h2 { font-size: 1.65rem; margin-bottom: 0.75rem; }
h3 { font-size: 1.25rem; }
p  { color: var(--color-ink-muted); }

a { color: var(--color-accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-purple); }

.container { max-width: 1140px; margin: 0 auto; padding: 0 1.5rem; }

/* ============================================
   Header / Menu
============================================ */
.color-moodle { background: #E8EEFF !important;}
.color-pesquisa { background: #EDE5FF !important;}
.color-servidor {background: #E6F7F7 !important;}

.site-header {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
  background: rgba(255,255,255,0.95);
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-accent);
}
.logo img { display: block; }

.main-nav ul { list-style: none; display: flex; gap: 0.25rem; }
.main-nav a {
  color: var(--color-ink-muted);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition);
}
.main-nav a:hover { color: var(--color-accent); background: var(--color-blue-light); }
.main-nav a.active { color: var(--color-accent); background: var(--color-blue-light); font-weight: 600; }

/* ============================================
   Hero — Imagem real + overlay sutil
============================================ */
.hero {
  padding: 6rem 0 5rem;
  background: url('/assets/img/hero-bg.svg') center/cover no-repeat;
  border-bottom: 1px solid var(--color-border);
  text-align: center;
  position: relative;
  color: #FFFFFF;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10,18,42,0.65);
}
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to bottom, transparent, var(--color-bg));
  pointer-events: none;
}
.hero .container { max-width: 48rem; position: relative; z-index: 1; }
.hero h1 {
  color: #FFFFFF;
  -webkit-text-fill-color: #FFFFFF;
  margin-bottom: 1.25rem;
  font-size: 3rem;
}
.hero p {
  font-size: 1.15rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.92);
  max-width: 40rem;
  margin: 0 auto;
}
.hero .cta-group {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}
.hero .cta.secundario {
  border-color: rgba(255,255,255,0.5);
  color: #FFFFFF;
}
.hero .cta.secundario:hover {
  background: rgba(255,255,255,0.12);
  border-color: #FFFFFF;
  color: #FFFFFF;
}

/* ============================================
   Segmentos — Cards com impacto
============================================ */
.segmentos { padding: 4rem 0 5rem; }
.segmentos-intro {
  text-align: center;
  margin-bottom: 3rem;
}
.segmentos-intro h2 {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}
.segmentos-intro p {
  font-size: 1.05rem;
  max-width: 36rem;
  margin: 0 auto;
}
.grid-3-colunas {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  align-items: stretch;
}
.bloco-segmento {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.3rem 1.3rem;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
  position: relative;
  overflow: hidden;
}
.bloco-segmento::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
}
.bloco-segmento.moodle::before    { background: #1A3EBF; }
.bloco-segmento.pesquisa::before  { background: #7C3AED; }
.bloco-segmento.servidores::before{ background: #0D7377; }
.bloco-segmento:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}
.bloco-segmento .icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
  padding: 10px;
  background: var(--color-gradient-soft);
  border-radius: var(--radius);
}
.bloco-titulo {
  position: relative;
  z-index: 1;
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}
.bloco-img {
  width: calc(100% + 3.5rem);
  margin: -0.3rem -1.75rem 1.25rem;
  display: block;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.bloco-img-interno {
  width: calc(40%);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.bloco-conteudo {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.bloco-conteudo .cta {
  margin-top: auto;
}
.bloco-segmento h2 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.bloco-segmento p { flex-grow: 1; margin-bottom: 1.5rem; font-size: 0.95rem; line-height: 1.7; }

/* ============================================
   Botões (CTA)
============================================ */
.cta {
  display: inline-block;
  background: var(--color-accent);
  color: #FFFFFF;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
}
.cta:hover {
  background: var(--color-accent-hover);
  color: #FFFFFF;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.cta.secundario {
  background: transparent;
  color: var(--color-accent);
  border: 2px solid var(--color-accent);
}
.cta.secundario:hover {
  background: var(--color-accent);
  color: #fff;
}
.cta.roxo {
  background: var(--color-purple);
}
.cta.roxo:hover {
  background: var(--color-purple-hover);
  color: #FFFFFF;
}

/* ============================================
   Páginas internas
============================================ */
.page-header {
  padding: 1.5rem 0 2rem;
  background: var(--color-gradient-soft);
  border-bottom: 1px solid var(--color-border);
  text-align: center;
}
.page-header h1 {
  font-size: 2.25rem;
  background: var(--color-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.page-header .icon {
  width: 52px;
  height: 52px;
  margin-bottom: 1rem;
  padding: 10px;
  background: var(--color-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.page-content { padding: 3rem 0; max-width: 44rem; margin: 0 auto; text-align: center; }
.page-content ul { text-align: left; }
.page-content h2 {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
}
.page-content h2:first-of-type { margin-top: 1.5rem; border-top: none; padding-top: 0; }
.page-content p { margin-bottom: 1rem; font-size: 1.05rem; line-height: 1.8; }
.page-content ul {
  margin: 0.5rem 0 1.5rem 0;
  padding-left: 0;
  list-style: none;
  color: var(--color-ink-muted);
}
.page-content li {
  margin-bottom: 0.75rem;
  padding-left: 1.5rem;
  position: relative;
  font-size: 1.05rem;
  line-height: 1.7;
}
.page-content li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6rem;
  width: 8px;
  height: 8px;
  background: var(--color-gradient);
  border-radius: 50%;
}
.page-cta {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
}

/* Destaque inline */
.destaque {
  background: var(--color-blue-light);
  border-left: 4px solid var(--color-accent);
  padding: 1.25rem 1.5rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.5rem 0;
  font-size: 1.05rem;
  color: var(--color-ink);
}

/* ============================================
   Formulário de contato
============================================ */
.form-contato { max-width: 34rem; margin: 0 auto; }
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--color-ink);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-ink);
  background: var(--color-surface);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(30,58,95,0.1);
}
.form-hp { position: absolute; left: -9999px; }

.alerta {
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  font-weight: 500;
}
.alerta.sucesso { background: var(--color-success-bg); color: var(--color-success-text); border: 1px solid var(--color-success-border); }
.alerta.erro { background: var(--color-error-bg); color: var(--color-error-text); border: 1px solid var(--color-error-border); }

/* ============================================
   Footer
============================================ */
.site-footer {
  border-top: 1px solid var(--color-border);
  margin-top: 4rem;
  padding: 3rem 0;
  background: #0F1729;
  color: rgba(255,255,255,0.85);
}
.site-footer a { color: rgba(255,255,255,0.9); }
.site-footer a:hover { color: #FFFFFF; }
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
}
.footer-empresa strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: #FFFFFF;
  display: block;
  margin-bottom: 0.5rem;
}
.footer-empresa p { font-size: 0.9rem; line-height: 1.6; color: rgba(255,255,255,0.75); }
.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.5);
  margin-bottom: 0.75rem;
}
.footer-col p, .footer-col a { font-size: 0.9rem; display: block; margin-bottom: 0.4rem; color: rgba(255,255,255,0.85); }
.footer-copy {
  grid-column: 1 / -1;
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 1.5rem;
  margin-top: 1rem;
}
.footer-copy p { font-size: 0.8rem; color: rgba(255,255,255,0.5); }

/* ============================================
   WhatsApp flutuante
============================================ */
.whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 999;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(37,211,102,0.4);
  transition: transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37,211,102,0.5);
}
.whatsapp-float svg {
  width: 30px;
  height: 30px;
  fill: #FFFFFF;
}

/* ============================================
   Menu Hamburger (mobile)
============================================ */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 110;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-ink);
  margin: 5px 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  border-radius: 2px;
}
.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ============================================
   Mobile
============================================ */
@media (max-width: 768px) {
  .grid-3-colunas { grid-template-columns: 1fr; }

  .menu-toggle { display: block; }

  .header-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
  }

  .main-nav {
    display: none;
    width: 100%;
    padding: 0.5rem 0 1rem;
  }
  .main-nav.open { display: block; }
  .main-nav ul {
    flex-direction: column;
    gap: 0;
  }
  .main-nav a {
    display: block;
    padding: 0.75rem 0.5rem;
    border-radius: 0;
    border-bottom: 1px solid var(--color-border);
  }
  .main-nav a:last-child { border-bottom: none; }

  .bloco-img-interno {
    width: calc(100%);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  }

  h1 { font-size: 2rem; }
  .hero { padding: 3.5rem 0 3rem; }
  .hero h1 { font-size: 2.25rem; }
  .hero p { font-size: 1rem; }
  .footer-inner { grid-template-columns: 1fr; }
  .whatsapp-float { width: 52px; height: 52px; bottom: 1rem; right: 1rem; }
  .whatsapp-float svg { width: 26px; height: 26px; }
}
