/* ==========================================================================
   IBESAD — Styles (mobile-first)
   EDITAR CORES: veja :root (variáveis)
   Sem fontes externas: usa system fonts
   ========================================================================== */

:root{
  /* Paleta (azul marinho + branco + cinza + destaque discreto) */
  --navy: #0B1F3B;
  --navy-2: #102B52;
  --text: #0E1525;
  --muted: #5B667A;

  --bg: #FFFFFF;
  --bg-alt: #F4F6FA;
  --card: #FFFFFF;
  --border: rgba(16, 43, 82, 0.14);

  /* Destaque discreto (pode trocar) */
  --accent: #2D7EF7;

  /* Estados */
  --focus: rgba(45, 126, 247, 0.35);

  --radius: 16px;
  --shadow: 0 10px 24px rgba(11, 31, 59, 0.10);

  --max: 1120px;

  /* Altura header fixo (usado em scroll-margin) */
  --header-h: 72px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body{
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
}

img { max-width: 100%; height: auto; }

a { color: inherit; }
.link { color: var(--navy-2); text-decoration: none; border-bottom: 1px solid rgba(16,43,82,.25); }
.link:hover { border-bottom-color: rgba(16,43,82,.55); }

.container{
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.skip-link{
  position: absolute;
  left: -9999px;
  top: 10px;
  background: var(--navy);
  color: #fff;
  padding: 10px 12px;
  border-radius: 10px;
  z-index: 9999;
}
.skip-link:focus{ left: 16px; outline: 3px solid var(--focus); }

.sr-only{
  position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); border:0;
}

/* Header fixo */
.site-header{
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner{
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand{
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  min-width: 0;
}

.brand-mark{
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
  box-shadow: 0 10px 20px rgba(11,31,59,.15);
}

.brand-text{
  display: grid;
  gap: 2px;
  min-width: 0;
}
.brand-text strong{
  letter-spacing: 0.3px;
}
.brand-text span{
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 52vw;
}

/* Nav */
.site-nav{
  display: none; /* mobile: abre no toggle */
  position: absolute;
  right: 16px;
  top: calc(var(--header-h) - 8px);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 10px;
  width: min(320px, calc(100vw - 32px));
}
.site-nav a{
  display: block;
  padding: 10px 10px;
  text-decoration: none;
  border-radius: 10px;
  color: var(--navy);
}
.site-nav a:hover{ background: rgba(16,43,82,0.06); }
.site-nav a:focus{ outline: 3px solid var(--focus); outline-offset: 2px; }

.nav-cta{
  background: rgba(45,126,247,0.10);
  border: 1px solid rgba(45,126,247,0.25);
}

.nav-open .site-nav{ display: block; }

.nav-toggle{
  appearance: none;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 12px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.nav-toggle:focus{ outline: 3px solid var(--focus); outline-offset: 2px; }
.nav-toggle-lines{
  width: 18px;
  height: 12px;
  border-top: 2px solid var(--navy);
  border-bottom: 2px solid var(--navy);
  position: relative;
}
.nav-toggle-lines::after{
  content:"";
  position:absolute;
  left:0; right:0;
  top: 50%;
  transform: translateY(-50%);
  border-top: 2px solid var(--navy);
}

/* Seções */
.section{
  padding: 56px 0;
  scroll-margin-top: calc(var(--header-h) + 18px);
}
.section-alt{
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-header{
  margin-bottom: 18px;
}
.section-header h2{
  margin: 0 0 6px;
  font-size: 26px;
  letter-spacing: -0.2px;
}
.muted{ color: var(--muted); }
.note{
  color: var(--muted);
  font-size: 13px;
  margin-top: 14px;
}

/* Hero */
.hero{
  padding-top: 34px;
}
.hero-grid{
  display: grid;
  gap: 18px;
}
.hero h1{
  margin: 0 0 10px;
  font-size: 34px;
  line-height: 1.1;
  letter-spacing: -0.6px;
}
.accent{ color: var(--navy); position: relative; }
.accent::after{
  content:"";
  position:absolute;
  left:0; right:0;
  bottom: 2px;
  height: 8px;
  background: rgba(45,126,247,0.18);
  z-index: -1;
  border-radius: 10px;
}
.lead{
  margin: 0 0 14px;
  font-size: 16px;
  color: var(--muted);
  max-width: 60ch;
}

.hero-actions{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 14px 0 16px;
}

.highlights{
  display: grid;
  gap: 10px;
  margin-top: 8px;
}
.highlight{
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 14px;
  padding: 12px 12px;
}
.highlight-title{
  font-weight: 650;
  color: var(--navy);
}
.highlight-text{
  color: var(--muted);
  font-size: 14px;
  margin-top: 4px;
}

/* Hero card */
.hero-card{
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(11,31,59,0.03), rgba(11,31,59,0.01));
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.hero-card-inner{
  padding: 18px;
}
.kicker{
  margin: 0 0 6px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--muted);
}
.hero-card-title{
  margin: 0 0 10px;
  color: var(--navy);
  letter-spacing: -0.2px;
}
.hero-card-text{
  margin: 0 0 12px;
  color: var(--muted);
}
.hero-card-list{
  margin: 0 0 14px;
  padding-left: 18px;
  color: var(--text);
}
.hero-card-list li{ margin: 6px 0; }

/* Cards */
.card{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: 0 8px 18px rgba(11,31,59,0.06);
}
.card h3{
  margin: 0 0 8px;
  color: var(--navy);
}
.card p{ margin: 0; color: var(--muted); }

.cards-3, .cards-6, .cards-5{
  display: grid;
  gap: 12px;
}

/* Projetos */
.project-top{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.badge{
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  white-space: nowrap;
}
.badge-on{
  background: rgba(45,126,247,0.10);
  border-color: rgba(45,126,247,0.22);
  color: var(--navy);
}
.badge-imp{
  background: rgba(16,43,82,0.06);
  border-color: rgba(16,43,82,0.18);
  color: var(--navy);
}

/* Stats */
.stats{
  display: grid;
  gap: 12px;
}
.stat{
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
}
.stat-number{
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--navy);
}
.stat-label{
  color: var(--muted);
  margin-top: 4px;
}

/* Logos */
.logos{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.logo-box{
  height: 54px;
  border-radius: 14px;
  border: 1px dashed rgba(16,43,82,0.28);
  background: rgba(255,255,255,0.7);
}
.partner-callout{
  margin-top: 14px;
  border-radius: var(--radius);
  background: rgba(11,31,59,0.03);
  border: 1px solid var(--border);
  padding: 16px;
  display: grid;
  gap: 12px;
}

/* FAQ */
.faq{
  display: grid;
  gap: 10px;
}
.faq-item{
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: #fff;
  padding: 8px 12px;
}
.faq-item summary{
  cursor: pointer;
  padding: 10px 0;
  font-weight: 650;
  color: var(--navy);
  outline: none;
}
.faq-item summary:focus{ outline: 3px solid var(--focus); outline-offset: 6px; border-radius: 10px; }
.faq-body{
  padding: 0 0 12px;
  color: var(--muted);
}

/* Contato */
.contact-grid{
  display: grid;
  gap: 12px;
}
.contact-strong{
  font-weight: 700;
  color: var(--navy);
}

.contact-form-card h3{ margin-bottom: 6px; }

form{
  margin-top: 10px;
}
.form-row{
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
}
label{
  font-weight: 650;
  color: var(--navy);
}
input, select, textarea{
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 12px;
  font: inherit;
  background: #fff;
  color: var(--text);
}
textarea{ resize: vertical; min-height: 120px; }

input:focus, select:focus, textarea:focus{
  outline: 3px solid var(--focus);
  border-color: rgba(45,126,247,0.35);
}
.field-hint{
  color: #8A2B2B; /* erro discreto (pode ajustar) */
  min-height: 18px;
}

.form-actions{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.form-status{
  margin-top: 12px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(16,43,82,0.18);
  background: rgba(45,126,247,0.10);
  color: var(--navy);
}

/* Botões */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  text-decoration: none;
  cursor: pointer;
  font-weight: 700;
  letter-spacing: 0.1px;
  line-height: 1;
  user-select: none;
}
.btn:focus{ outline: 3px solid var(--focus); outline-offset: 2px; }

.btn-primary{
  background: var(--navy);
  color: #fff;
  border-color: rgba(11,31,59,0.55);
}
.btn-primary:hover{ background: var(--navy-2); }

.btn-ghost{
  background: #fff;
  color: var(--navy);
}
.btn-ghost:hover{ background: rgba(16,43,82,0.06); }

.btn-small{
  margin-top: 12px;
  padding: 10px 12px;
  font-size: 14px;
}

/* Footer */
.site-footer{
  border-top: 1px solid var(--border);
  background: #fff;
  padding: 28px 0 18px;
}
.footer-grid{
  display: grid;
  gap: 18px;
}
.footer-brand{
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-text{
  margin: 10px 0 0;
  max-width: 60ch;
}
.footer-links{
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
  display: grid;
  gap: 8px;
}
.footer-links a{
  text-decoration: none;
  color: var(--navy);
  border-bottom: 1px solid rgba(16,43,82,.18);
  width: fit-content;
}
.footer-links a:hover{ border-bottom-color: rgba(16,43,82,.45); }
.footer-actions{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.footer-bottom{
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  display: grid;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
}

/* Layout responsivo (sem libs) */
@media (min-width: 720px){
  :root{ --header-h: 76px; }
  .site-nav{
    position: static;
    display: flex;
    gap: 8px;
    width: auto;
    padding: 0;
    border: none;
    box-shadow: none;
    background: transparent;
  }
  .site-nav a{
    padding: 10px 10px;
  }
  .nav-toggle{ display: none; }

  .brand-text span{ max-width: 520px; }

  .hero-grid{
    grid-template-columns: 1.2fr 0.8fr;
    align-items: start;
    gap: 18px;
  }
  .highlights{
    grid-template-columns: repeat(3, 1fr);
  }

  .cards-3{
    grid-template-columns: repeat(3, 1fr);
  }
  .cards-6{
    grid-template-columns: repeat(2, 1fr);
  }
  .cards-5{
    grid-template-columns: repeat(2, 1fr);
  }
  .stats{
    grid-template-columns: repeat(4, 1fr);
  }

  .logos{
    grid-template-columns: repeat(6, 1fr);
  }

  .contact-grid{
    grid-template-columns: 0.9fr 1.1fr;
    align-items: start;
  }

  .footer-grid{
    grid-template-columns: 1.4fr 0.8fr 1fr;
    align-items: start;
  }
  .footer-bottom{
    grid-template-columns: 1fr 1fr;
    align-items: center;
    justify-content: space-between;
  }
}

@media (min-width: 980px){
  .cards-6{
    grid-template-columns: repeat(3, 1fr);
  }
  .cards-5{
    grid-template-columns: repeat(3, 1fr);
  }
}
