/* ==========================
   FONTES & VARIÁVEIS
==========================*/

:root {
    --primary: #1e3a5f;
    --primary-foreground: #ffffff;
    --background: #ffffff;
    --foreground: #262626;
    --border: #f0f0f0;
    --radius: 0.5rem;
}

/* ==========================
   RESET
==========================*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    color: var(--primary);
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) { .container { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .container { padding: 0 2rem; } }

/* ==========================
   FIX FOOTER LAYOUT
   (cole no FINAL do CSS)
==========================*/

/* Não deixe o nav global controlar o nav do footer */
footer nav.footer-links {
  display: block !important;
  align-items: unset;
  gap: 0;
}

/* Grid do footer mais estável e com colunas equilibradas */
.footer-grid {
  align-items: start;
  gap: 2rem;
}

/* Em telas médias/grandes, dá um ratio melhor (brand menor, links médio, newsletter maior) */
@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.1fr 1fr 1.4fr;
  }
}

/* Títulos do footer menores e consistentes */
.footer-brand h4,
.footer-links h4,
.footer-newsletter h4 {
  font-size: 1.05rem;
  margin-bottom: 0.75rem;
}

/* Lista de navegação mais “compacta” */
.footer-links ul {
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.35rem;
}

.footer-links a {
  display: inline-block;
  padding: 0.15rem 0;
}

/* NÃO mate o underline do footer.
   Remova/ignore sua regra antiga: footer nav a::after { display:none; }
   e force o underline que você já definiu em .footer-links a::after */
footer nav.footer-links a::after {
  display: block !important;
}

/* Newsletter: limita largura e ajusta “cara de painel grande” */
.footer-newsletter {
  max-width: 520px;
}

.footer-newsletter p {
  margin-bottom: 0.75rem;
}

/* Form mais “justo” e com inputs alinhados */
.newsletter-form {
  align-items: stretch;
}

.newsletter-form input {
  height: 40px;
}

.newsletter-form button {
  height: 40px;
}

/* Mobile: centraliza sem estourar e melhora espaçamento */
@media (max-width: 767px) {
  .footer-grid {
    gap: 2rem;
  }

  .footer-newsletter {
    max-width: 100%;
  }
}

.boletim-feedback {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  background: linear-gradient(135deg, #0f2a44, #143c5f);
  color: #ffffff;
  padding: 12px 20px; /* Aumentado para dar respiro */
  border-radius: 8px;
  font-size: 14px;    /* Aumentado para ser legível */
  line-height: 1.4;
  font-weight: 500;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  opacity: 1;
  transition: opacity 0.3s ease, transform 0.3s ease;
}




/* Mobile */
@media (max-width: 600px) {
  .boletim-feedback {
    right: 16px;
    left: 16px;
    bottom: 16px;
    text-align: center;
  }
}

/* ==========================
   HEADER
==========================*/

header {
    position: sticky;
    top: 0;
    z-index: 50;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(4px);
    border-bottom: 1px solid rgba(30, 58, 95, 0.1);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 5rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    transition: opacity 0.3s;
}

.logo:hover { opacity: 0.75; }

.logo-icon {
    width: 2.5rem;
    height: 2.5rem;
    background-color: var(--primary);
    border-radius: 0.125rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.125rem;
    font-family: 'Playfair Display', serif;
}

.logo-text .brand {
    font-weight: bold;
    color: var(--primary);
    font-size: 1.125rem;
    font-family: 'Playfair Display', serif;
}

.logo-text .subbrand {
    font-size: 0.75rem;
    color: rgba(30, 58, 95, 0.6);
}

/* NAV */

nav {
    display: none;
    align-items: center;
    gap: 2rem;
}

@media (min-width: 768px) {
    nav { display: flex; }
}

nav a {
    position: relative;
    text-decoration: none;
    font-size: 0.875rem;
    color: var(--foreground);
    transition: color 0.3s;
}

nav a:hover { color: var(--primary); }

/* underline animado */
nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: width .25s ease;
}

nav a:hover::after {
    width: 100%;
}

.nav-cta {
    padding: 0.5rem 1.5rem;
    background-color: var(--primary);
    color: white;
    border-radius: 0.125rem;
    transition: all 0.3s;
    margin-left: .5rem;
}

.nav-cta:hover {
    box-shadow: 0 10px 25px rgba(30, 58, 95, 0.15);
}

/* MOBILE NAV BUTTON */

.mobile-menu-btn {
    display: block;
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    color: var(--primary);
}

@media (min-width: 768px) {
    .mobile-menu-btn { display: none; }
}


/* ==========================
   HERO
==========================*/

.hero {
    position: relative;
    min-height: 10vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg-img{
   position:absolute;
   inset:0;
   width:100%;
   height:100%;
   object-fit:cover;
   z-index:0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(255, 255, 255, 0.85);
}

.hero-content {
    position: relative;
    z-index: 10;
    padding: 1rem 0;
    max-width: 48rem;
    margin: 0 auto;
    text-align: center;
}

.hero-tagline {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    display: block;
}

.hero h1 { font-size: 3rem; line-height: 1.1; margin-bottom: 2rem; }

@media (min-width: 768px) {
    .hero h1 { font-size: 4.5rem; }
}

.hero p {
    font-size: 1.125rem;
    color: rgba(38, 38, 38, 0.7);
    margin-bottom: 3rem;
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
}

.hero-btns {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
}

@media (min-width: 640px) {
    .hero-btns { flex-direction: row; }
}

.btn-primary {
    display: inline-block;
    padding: 0.75rem 2rem;
    background-color: var(--primary);
    color: white;
    font-weight: 600;
    border-radius: 0.25rem;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-primary:hover {
    background-color: rgba(30, 58, 95, 0.9);
    box-shadow: 0 10px 25px rgba(30, 58, 95, 0.15);
}

.btn-secondary {
    display: inline-block;
    padding: 0.75rem 2rem;
    border: 2px solid var(--primary);
    color: var(--primary);
    font-weight: 600;
    border-radius: 0.25rem;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background-color: var(--primary);
    color: white;
}


/* ==========================
   SEÇÕES
==========================*/

section { padding: 5rem 0; }

@media (min-width: 768px) {
    section { padding: 8rem 0; }
}

.bg-light { background-color: rgba(30, 58, 95, 0.02); }
.bg-accent { background-color: rgba(30, 58, 95, 0.05); }

.section-title { font-size: 2.25rem; margin-bottom: 1rem; }

@media (min-width: 768px) {
    .section-title { font-size: 3rem; }
}

.accent-line {
    height: 0.25rem;
    width: 4rem;
    background-color: var(--primary);
    border-radius: 9999px;
    margin-bottom: 3rem;
}

.center-line { margin-left: auto; margin-right: auto; }


/* ==========================
   MANIFESTO
==========================*/

.manifesto-content {
    max-width: 42rem;
    margin: 0 auto;
    text-align: center;
}

.manifesto-text {
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .manifesto-text { font-size: 1.25rem; }
}

.divider-gradient {
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(30, 58, 95, 0.2), transparent);
    margin: 2rem 0;
}


/* ==========================
   PILARES
==========================*/

.pilares-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media (min-width: 768px) {
    .pilares-grid { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
}

.pilar-item { text-align: center; }

@media (min-width: 768px) {
    .pilar-item { text-align: left; }
}

.pilar-number {
    width: 3rem;
    height: 3rem;
    background-color: rgba(30, 58, 95, 0.1);
    border-radius: 0.125rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-weight: bold;
    font-size: 1.25rem;
    font-family: 'Playfair Display', serif;
    margin-bottom: 1.5rem;
}

@media (max-width: 767px) {
    .pilar-number { margin-left: auto; margin-right: auto; }
}

.pilar-item h3 { font-size: 1.5rem; margin-bottom: 1rem; }
.pilar-item p { color: rgba(38, 38, 38, 0.7); }


/* ==========================
   ATUAÇÃO
==========================*/

.atuacao-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .atuacao-grid { grid-template-columns: repeat(3, 1fr); }
}

.atuacao-card {
    padding: 2rem;
    background-color: white;
    border: 1px solid rgba(30, 58, 95, 0.1);
    border-radius: 0.125rem;
    transition: all 0.3s;
}

.atuacao-card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    transform: translateY(-5px);
}

.atuacao-card.destaque {
  border-color: rgba(30, 58, 95, 0.35);
  box-shadow: 0 15px 35px rgba(30, 58, 95, 0.12);
}

.atuacao-card.destaque h3 { font-weight: 700; }

.atuacao-card p {
    color: rgba(38, 38, 38, 0.7);
}


/* ==========================
   FORMA DE ATUAÇÃO
==========================*/

.forma-content { max-width: 42rem; margin: 0 auto; }

.forma-text { font-size: 1.125rem; }

@media (min-width: 768px) {
    .forma-text { font-size: 1.25rem; }
}


/* ==========================
   FOOTER
==========================*/

footer {
    background: linear-gradient(
        180deg,
        rgba(30,58,95,.06),
        rgba(30,58,95,.03)
    );
    border-top: 1px solid rgba(30, 58, 95, 0.1);
    padding: 4rem 0 2rem;
    margin-top: 5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .footer-grid { grid-template-columns: repeat(3, 1fr); }
}

.footer-brand h4 { font-size: 1.25rem; margin-bottom: 0.5rem; }

.footer-brand p {
    font-size: 0.875rem;
    color: rgba(38, 38, 38, 0.6);
}

/* LINKS */

.footer-links h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.footer-links ul { list-style: none; }

.footer-links li { margin-bottom: 0.5rem; }

.footer-links a {
    position: relative;
    text-decoration: none;
    font-size: 0.875rem;
    color: rgba(38, 38, 38, 0.7);
    transition: color 0.3s;
}

/* underline próprio do footer */
.footer-links a::after {
    content:"";
    position:absolute;
    left:0;
    bottom:-2px;
    width:0;
    height:2px;
    background: var(--primary);
    transition: width .25s ease;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-links a:hover::after {
    width:100%;
}

/* impede herança do nav */
footer nav a::after { display:none; }

/* NEWSLETTER */

.footer-newsletter p {
    font-size: 0.875rem;
    color: rgba(38, 38, 38, 0.7);
    margin-bottom: 1rem;
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.newsletter-form input {
    flex: 1;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    border: 1px solid rgba(30, 58, 95, 0.2);
    border-radius: 0.125rem;
}

.newsletter-form button {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    background-color: var(--primary);
    color: #fff;
    border: none;
    border-radius: 0.125rem;
    cursor: pointer;
    transition: opacity 0.3s;
}

.newsletter-form button:hover { opacity: 0.85; }

.newsletter-legal {
    font-size: 0.7rem;
    color: rgba(38, 38, 38, 0.5);
    line-height: 1.4;
}

/* MOBILE — newsletter coluna */

@media (max-width: 767px){
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form button {
        width: 100%;
    }
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(30, 58, 95, 0.1);
}

.footer-bottom p {
    font-size: 0.75rem;
    color: rgba(38, 38, 38, 0.5);
}

.footer-dev {
    font-size: 0.85rem;
    opacity: 0.7;
    margin-top: 8px;
}

.footer-dev a {
    color: inherit;
    text-decoration: none;
}

.footer-dev a:hover {
    text-decoration: underline;
}


/* ==========================
   ANIMAÇÕES
==========================*/

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* DIVIDER */

.section-divider-full {
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(30, 58, 95, 0.2) 30%, rgba(30, 58, 95, 0.2) 70%, transparent);
}
