/* =========================================================
   LAATG — Gestão e Contabilidade Estratégica
   Folha de estilo principal
   ========================================================= */

:root {
  /* Cores da marca (extraídas das logomarcas) */
  --navy: #033e57;        /* fundo da logo escura */
  --navy-900: #022b3d;
  --navy-700: #0a4d6b;
  --teal: #04897b;        /* verde da logo clara */
  --teal-bright: #00c9b1; /* verde da logo escura */
  --teal-50: #e8f4f2;

  --ink: #10242e;
  --ink-soft: #4a5d66;
  --line: #d6e0e3;
  --bg: #ffffff;
  --bg-soft: #f4f8f9;

  --radius: 6px;
  --container: 1160px;
  --shadow: 0 10px 30px rgba(3, 62, 87, .10);

  --font: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Montserrat", var(--font);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--teal); }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.2; margin: 0 0 .6em; color: var(--navy); }
p { margin: 0 0 1em; }

.container { width: min(var(--container), 100% - 32px); margin-inline: auto; }
.eyebrow {
  display: inline-block;
  font-size: .75rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--teal);
  margin-bottom: .8rem;
}
.skip-link { position: absolute; left: -999px; top: 0; }
.skip-link:focus { left: 16px; top: 16px; z-index: 999; background: #fff; padding: 8px 12px; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .8rem 1.4rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  font-weight: 700; font-size: .95rem;
  text-decoration: none; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
  font-family: inherit;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: #037266; }
.btn-light { background: var(--teal-bright); color: var(--navy-900); }
.btn-light:hover { background: #2fe0ca; }
.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-ghost-light { border-color: rgba(255,255,255,.5); color: #fff; background: transparent; }
.btn-ghost-light:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: not-allowed; transform: none; }

/* ---------- Cabeçalho ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 1rem; }
.brand img { height: 44px; width: auto; }
.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .92rem; }
.nav a:hover { color: var(--teal); }
.nav .btn { color: #fff; padding: .6rem 1.1rem; }
.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer; padding: 8px;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; transition: .2s; }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: .5rem 16px 1rem;
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: .8rem 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: .8rem; border-bottom: 0; }
}

/* ---------- Hero ---------- */
.hero {
  background: var(--navy);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.hero::after {
  /* barras ascendentes inspiradas no símbolo */
  content: "";
  position: absolute; right: -40px; bottom: 0;
  width: 46%; height: 85%;
  background:
    linear-gradient(var(--teal-bright), var(--teal-bright)) 0 100% / 14% 34% no-repeat,
    linear-gradient(var(--teal-bright), var(--teal-bright)) 20% 100% / 14% 56% no-repeat,
    linear-gradient(rgba(255,255,255,.9), rgba(255,255,255,.9)) 40% 100% / 14% 80% no-repeat;
  opacity: .07;
  pointer-events: none;
}
.hero-inner { padding: 96px 0 88px; display: grid; grid-template-columns: 1.25fr .75fr; gap: 3rem; align-items: center; position: relative; z-index: 1; }
.hero h1 { color: #fff; font-size: clamp(2rem, 4.4vw, 3.2rem); font-weight: 800; }
.hero .lead { font-size: 1.15rem; color: #cfe3ea; max-width: 40ch; }
.hero .eyebrow { color: var(--teal-bright); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.hero-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 10px;
  padding: 1.6rem;
}
.hero-card h3 { color: #fff; font-size: 1rem; margin-bottom: 1rem; }
.hero-card ul { list-style: none; margin: 0; padding: 0; }
.hero-card li { padding: .55rem 0 .55rem 1.6rem; position: relative; color: #dbeaef; border-bottom: 1px solid rgba(255,255,255,.08); font-size: .95rem; }
.hero-card li:last-child { border-bottom: 0; }
.hero-card li::before {
  content: ""; position: absolute; left: 0; top: 1rem;
  width: 10px; height: 10px; background: var(--teal-bright);
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
}
@media (max-width: 900px) { .hero-inner { grid-template-columns: 1fr; padding: 64px 0; } .hero::after { display: none; } }

/* ---------- Números ---------- */
.stats { background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 2rem 1.4rem; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; font-family: var(--font-display); font-size: 2.4rem; color: var(--navy); line-height: 1; margin-bottom: .4rem; }
.stat span { color: var(--ink-soft); font-size: .92rem; }
@media (max-width: 760px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

/* ---------- Seções ---------- */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-soft); }
.section-head { max-width: 680px; margin-bottom: 3rem; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.section-head p { color: var(--ink-soft); font-size: 1.05rem; }

.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.about-grid p { color: var(--ink-soft); }
.audience {
  background: var(--teal-50);
  border-left: 4px solid var(--teal);
  padding: 1.4rem 1.6rem;
  border-radius: 0 var(--radius) var(--radius) 0;
}
.audience h3 { font-size: 1rem; margin-bottom: .4rem; }
.audience p { margin: 0; color: var(--ink); }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; gap: 2rem; } }

/* Diferenciais */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.feature {
  background: #fff;
  border-top: 4px solid var(--teal);
  padding: 1.8rem 1.6rem;
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: 0 1px 0 var(--line);
}
.feature h3 { font-size: 1.08rem; }
.feature p { color: var(--ink-soft); margin: 0; font-size: .95rem; }
.feature .num { font-family: var(--font-display); color: var(--teal); font-weight: 800; font-size: .85rem; letter-spacing: .1em; display: block; margin-bottom: .6rem; }
@media (max-width: 960px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .features { grid-template-columns: 1fr; } }

/* Serviços */
.services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 3rem; }
.service { padding: 1.6rem 0; border-top: 3px solid var(--navy); display: grid; grid-template-columns: 48px 1fr; gap: 1rem; }
.service-icon {
  width: 44px; height: 44px; border-radius: 8px;
  background: var(--teal-50); color: var(--teal);
  display: grid; place-items: center;
}
.service-icon svg { width: 22px; height: 22px; }
.service h3 { font-size: 1.08rem; margin-bottom: .3rem; }
.service p { color: var(--ink-soft); margin: 0; font-size: .95rem; }
@media (max-width: 760px) { .services { grid-template-columns: 1fr; } }

/* Case */
.case { background: var(--navy); color: #fff; }
.case h2, .case h3 { color: #fff; }
.case .section-head p { color: #cfe3ea; }
.case .eyebrow { color: var(--teal-bright); }
.case-numbers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(255,255,255,.12); border-radius: 8px; overflow: hidden; margin-bottom: 3rem; }
.case-numbers div { background: var(--navy-900); padding: 1.6rem; }
.case-numbers strong { display: block; font-family: var(--font-display); font-size: 2.4rem; color: var(--teal-bright); line-height: 1; margin-bottom: .4rem; }
.case-numbers span { color: #cfe3ea; font-size: .92rem; }
.case-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.case-list { list-style: none; margin: 0; padding: 0; }
.case-list li { padding: .8rem 0; border-bottom: 1px solid rgba(255,255,255,.12); color: #dbeaef; }
.case-result { margin-bottom: 1.4rem; }
.case-result strong { display: block; font-family: var(--font-display); font-size: 1.6rem; color: var(--teal-bright); }
.case-result span { color: #dbeaef; }
.case-note { margin-top: 2.4rem; background: rgba(0,201,177,.1); border-left: 4px solid var(--teal-bright); padding: 1.2rem 1.4rem; color: #e6f3f6; }
@media (max-width: 860px) {
  .case-numbers { grid-template-columns: 1fr 1fr; }
  .case-grid { grid-template-columns: 1fr; gap: 1.6rem; }
}

/* Como trabalhamos */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; counter-reset: step; }
.step { position: relative; padding-top: 3.4rem; }
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute; top: 0; left: 0;
  font-family: var(--font-display); font-weight: 800; font-size: 2rem; color: var(--teal);
}
.step::after { content: ""; position: absolute; top: 1.3rem; left: 3.6rem; right: 0; height: 2px; background: var(--line); }
.step:last-child::after { display: none; }
.step h3 { font-size: 1.05rem; }
.step p { color: var(--ink-soft); font-size: .95rem; margin: 0; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; } .step::after { display: none; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* Equipe */
.lead-card {
  background: var(--navy); color: #fff;
  border-radius: 8px; padding: 2rem;
  display: grid; grid-template-columns: auto 1fr; gap: 1.6rem; align-items: center;
  margin-bottom: 1.6rem;
}
.lead-card h3 { color: #fff; margin-bottom: .2rem; font-size: 1.3rem; }
.lead-card .role { color: var(--teal-bright); font-size: .75rem; letter-spacing: .14em; font-weight: 700; text-transform: uppercase; }
.lead-card .crc { color: #9fc0cc; font-size: .88rem; display: block; margin-bottom: .6rem; }
.lead-card p { color: #dbeaef; margin: 0; }
.avatar {
  width: 72px; height: 72px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 800; font-size: 1.4rem;
  background: var(--teal-bright); color: var(--navy-900);
  flex-shrink: 0;
}
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.member { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 1.4rem; }
.member-top { display: flex; gap: 1rem; align-items: center; margin-bottom: .9rem; }
.member .avatar { width: 52px; height: 52px; font-size: 1rem; background: var(--teal-50); color: var(--teal); }
.member .area { color: var(--teal); font-size: .7rem; letter-spacing: .14em; font-weight: 700; text-transform: uppercase; display: block; }
.member h3 { font-size: 1rem; margin: 0; }
.member .crc { color: var(--ink-soft); font-size: .82rem; }
.member p { color: var(--ink-soft); font-size: .92rem; margin: 0; }
@media (max-width: 960px) { .team { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .team { grid-template-columns: 1fr; } .lead-card { grid-template-columns: 1fr; } }

/* Faixa de acesso */
.access-band { background: var(--teal-50); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.access-inner { display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: center; padding: 48px 0; }
.access-inner h2 { font-size: 1.6rem; margin-bottom: .3rem; }
.access-inner p { color: var(--ink-soft); margin: 0; }
.access-actions { display: flex; gap: .8rem; flex-wrap: wrap; }
@media (max-width: 760px) { .access-inner { grid-template-columns: 1fr; } }

/* Contato */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 4rem; }
.contact-info dl { margin: 1.6rem 0 0; }
.contact-info dt { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--teal); margin-top: 1.2rem; }
.contact-info dd { margin: .2rem 0 0; font-size: 1.1rem; }
.contact-info dd a { color: var(--navy); text-decoration: none; font-weight: 600; }
.form { display: grid; gap: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: .35rem; color: var(--navy); }
.field input, .field select, .field textarea {
  width: 100%; padding: .75rem .9rem;
  border: 1px solid var(--line); border-radius: var(--radius);
  font: inherit; color: var(--ink); background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(4,137,123,.15);
}
.field textarea { min-height: 120px; resize: vertical; }
.form-note { font-size: .85rem; color: var(--ink-soft); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; gap: 2rem; } .form-row { grid-template-columns: 1fr; } }

/* Rodapé */
.site-footer { background: var(--navy); color: #9fc0cc; padding: 56px 0 28px; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; padding-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer-grid img { height: 54px; width: auto; margin-bottom: 1rem; }
.footer-grid h4 { color: #fff; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: .5rem; }
.footer-grid a { color: #cfe3ea; text-decoration: none; }
.footer-grid a:hover { color: var(--teal-bright); }
.footer-bottom { padding-top: 1.4rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* Animação de entrada */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* =========================================================
   ÁREA DE ACESSO (login e portal)
   ========================================================= */
.auth-page { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-side {
  background: var(--navy); color: #fff;
  padding: 48px; display: flex; flex-direction: column; justify-content: space-between;
  position: relative; overflow: hidden;
}
.auth-side::after {
  content: ""; position: absolute; right: -60px; bottom: -20px; width: 70%; height: 70%;
  background:
    linear-gradient(var(--teal-bright), var(--teal-bright)) 0 100% / 16% 40% no-repeat,
    linear-gradient(var(--teal-bright), var(--teal-bright)) 22% 100% / 16% 62% no-repeat,
    linear-gradient(#fff, #fff) 44% 100% / 16% 86% no-repeat;
  opacity: .06;
}
.auth-side img { height: 56px; width: auto; }
.auth-side h1 { color: #fff; font-size: 2rem; max-width: 18ch; }
.auth-side p { color: #cfe3ea; max-width: 40ch; }
.auth-side .back { color: #cfe3ea; text-decoration: none; font-size: .9rem; position: relative; z-index: 1; }
.auth-side .back:hover { color: #fff; }
.auth-main { display: grid; place-items: center; padding: 48px 24px; background: var(--bg-soft); }
.auth-box { width: min(420px, 100%); }
.auth-box .mobile-logo { display: none; height: 44px; margin-bottom: 2rem; }
.auth-box h2 { font-size: 1.6rem; margin-bottom: .3rem; }
.auth-box > p { color: var(--ink-soft); margin-bottom: 1.6rem; }

.tabs { display: grid; grid-template-columns: 1fr 1fr; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 4px; margin-bottom: 1.6rem; }
.tab {
  border: 0; background: transparent; padding: .7rem; border-radius: 6px;
  font: inherit; font-weight: 700; color: var(--ink-soft); cursor: pointer;
}
.tab[aria-selected="true"] { background: var(--navy); color: #fff; }

.auth-form { display: grid; gap: 1rem; }
.auth-links { display: flex; justify-content: space-between; font-size: .88rem; }
.auth-links a, .link-btn { color: var(--teal); text-decoration: none; font-weight: 600; background: none; border: 0; padding: 0; cursor: pointer; font: inherit; font-size: .88rem; }
.alert { padding: .8rem 1rem; border-radius: var(--radius); font-size: .9rem; display: none; }
.alert.show { display: block; }
.alert-error { background: #fdecec; color: #8a1c1c; border: 1px solid #f3c2c2; }
.alert-ok { background: var(--teal-50); color: #035d53; border: 1px solid #bfe2dc; }
.alert-info { background: #eef4f7; color: var(--navy); border: 1px solid var(--line); }
.auth-foot { margin-top: 2rem; font-size: .85rem; color: var(--ink-soft); text-align: center; }

@media (max-width: 860px) {
  .auth-page { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .auth-box .mobile-logo { display: block; }
}

/* Portal */
.portal-header { background: var(--navy); color: #fff; }
.portal-header .header-inner { height: 68px; }
.portal-header img { height: 40px; width: auto; }
.user-menu { display: flex; align-items: center; gap: 1rem; font-size: .9rem; }
.user-menu .who { text-align: right; line-height: 1.3; }
.user-menu .who small { color: var(--teal-bright); display: block; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; }
.portal-main { padding: 48px 0 80px; background: var(--bg-soft); min-height: calc(100vh - 68px); }
.portal-main h1 { font-size: 1.8rem; margin-bottom: .2rem; }
.portal-main .sub { color: var(--ink-soft); margin-bottom: 2.4rem; }
.apps { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.4rem; }
.app-card {
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  padding: 1.6rem; display: flex; flex-direction: column; gap: .8rem;
  text-decoration: none; color: inherit;
  transition: box-shadow .2s, transform .2s, border-color .2s;
}
a.app-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: var(--teal); }
.app-card .service-icon { width: 48px; height: 48px; }
.app-card h3 { font-size: 1.1rem; margin: 0; }
.app-card p { color: var(--ink-soft); font-size: .93rem; margin: 0; flex: 1; }
.badge { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: .25rem .6rem; border-radius: 99px; align-self: flex-start; }
.badge-on { background: var(--teal-50); color: var(--teal); }
.badge-soon { background: #eef1f3; color: var(--ink-soft); }
.app-card.disabled { opacity: .75; }
.empty { padding: 2rem; background: #fff; border: 1px dashed var(--line); border-radius: 10px; color: var(--ink-soft); }
.loading { display: grid; place-items: center; min-height: 100vh; color: var(--ink-soft); }
