:root {
  --navy: #0b2545;
  --navy-light: #13315c;
  --navy-dark: #061730;
  --gold: #c9a44c;
  --gold-light: #e3c878;
  --cream: #f7f5f0;
  --text: #1c2530;
  --muted: #5b6472;
  --white: #ffffff;
  --radius: 10px;
  --shadow: 0 8px 24px rgba(11, 37, 69, 0.08);
  --font-body: "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-heading: "Lora", "Segoe UI", Georgia, serif;
  font-size: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--cream);
  line-height: 1.6;
}

h1, h2, h3, h4, .logo .word { font-family: var(--font-heading); }

.ti { vertical-align: middle; line-height: 1; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}
.logo { display: flex; align-items: center; gap: 10px; color: var(--white); }
.logo .mark { width: 38px; height: 38px; }
.logo .word { font-size: 1.3rem; font-weight: 700; letter-spacing: 0.5px; }
.logo .word span { color: var(--gold-light); }

.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a {
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 500;
  opacity: 0.9;
  transition: opacity .2s, color .2s;
}
.main-nav a:hover, .main-nav a.active { opacity: 1; color: var(--gold-light); }

.nav-actions { display: flex; align-items: center; gap: 14px; }
.lang-switch { display: flex; gap: 6px; }
.lang-switch button {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.3);
  color: var(--white);
  font-size: 0.75rem;
  padding: 4px 8px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
}
.lang-switch button.active { background: var(--gold); border-color: var(--gold); color: var(--navy-dark); }

.btn {
  display: inline-block;
  padding: 11px 22px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: transform .15s, box-shadow .15s, background .15s;
}
.btn-gold { background: var(--gold); color: var(--navy-dark); }
.btn-gold:hover { background: var(--gold-light); transform: translateY(-1px); }
.btn-outline { background: transparent; border: 1px solid var(--white); color: var(--white); }
.btn-outline:hover { background: rgba(255,255,255,0.1); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-light); }
.btn-block { width: 100%; text-align: center; }

.menu-toggle { display: none; background: none; border: none; color: var(--white); font-size: 1.6rem; cursor: pointer; }

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--navy-dark), var(--navy));
  color: var(--white);
  padding: 90px 0 100px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  right: -120px; top: -120px;
  width: 420px; height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,164,76,0.25), transparent 70%);
}
.hero .container { position: relative; z-index: 1; }
.hero h1 { font-size: 2.6rem; line-height: 1.2; max-width: 680px; margin: 0 0 18px; }
.hero p.lead { font-size: 1.15rem; color: rgba(255,255,255,0.85); max-width: 560px; margin: 0 0 30px; }
.hero .cta-group { display: flex; gap: 16px; flex-wrap: wrap; }
.badges { margin-top: 50px; display: flex; gap: 28px; flex-wrap: wrap; }
.badge { display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,0.85); font-size: 0.9rem; }
.badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }

/* Sections */
section { padding: 80px 0; }
.section-title { text-align: center; max-width: 680px; margin: 0 auto 50px; }
.section-title .tag { color: var(--gold); font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; font-size: 0.8rem; }
.section-title h2 { font-size: 2rem; margin: 10px 0 12px; color: var(--navy-dark); }
.section-title p { color: var(--muted); }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; align-items: center; }

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 26px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(11,37,69,0.05);
}
.card .icon {
  width: 48px; height: 48px;
  border-radius: 10px;
  background: rgba(201,164,76,0.15);
  color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 18px;
}
.card h3 { margin: 0 0 10px; font-size: 1.15rem; color: var(--navy-dark); }
.card p { color: var(--muted); margin: 0; font-size: 0.95rem; }

.services-list { list-style: none; margin: 0; padding: 0; }
.services-list li {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 18px 0;
  border-bottom: 1px solid rgba(11,37,69,0.08);
}
.services-list li:last-child { border-bottom: none; }
.services-list .check {
  flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%;
  background: var(--navy); color: var(--gold-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; margin-top: 2px;
}
.services-list h4 { margin: 0 0 4px; color: var(--navy-dark); font-size: 1.02rem; }
.services-list p { margin: 0; color: var(--muted); font-size: 0.92rem; }

.cta-band {
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  color: var(--white);
  text-align: center;
  border-radius: var(--radius);
  padding: 56px 40px;
}
.cta-band h2 { margin: 0 0 14px; font-size: 1.7rem; }
.cta-band p { color: rgba(255,255,255,0.85); margin: 0 0 26px; }

.about-block { background: var(--white); }
.team-photo-placeholder {
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  border-radius: var(--radius);
  height: 320px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.6);
  font-size: 0.95rem;
  text-align: center;
  padding: 20px;
}

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.contact-info-item { display: flex; gap: 14px; margin-bottom: 22px; }
.contact-info-item .icon-sm {
  width: 38px; height: 38px; border-radius: 8px;
  background: rgba(11,37,69,0.06); color: var(--navy);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.contact-info-item h4 { margin: 0 0 4px; font-size: 0.95rem; color: var(--navy-dark); }
.contact-info-item p { margin: 0; color: var(--muted); font-size: 0.9rem; }

form .field { margin-bottom: 18px; }
form label { display: block; font-size: 0.88rem; font-weight: 600; color: var(--navy-dark); margin-bottom: 6px; }
form input, form select, form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(11,37,69,0.15);
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  background: var(--white);
}
form input:focus, form select:focus, form textarea:focus { outline: 2px solid var(--gold); border-color: var(--gold); }
.form-note { font-size: 0.82rem; color: var(--muted); margin-top: 10px; }

.site-footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.75);
  padding: 50px 0 24px;
  font-size: 0.9rem;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 36px; }
.footer-grid h4 { color: var(--white); font-size: 0.95rem; margin: 0 0 14px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a:hover { color: var(--gold-light); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 20px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: 0.8rem;
}

/* Portal */
.portal-shell { min-height: 100vh; background: var(--cream); }
.portal-auth-wrap {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 30px;
}
.portal-auth-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 44px 40px;
  width: 100%;
  max-width: 420px;
}
.portal-auth-card .logo { color: var(--navy); justify-content: center; margin-bottom: 24px; }
.portal-auth-card h1 { font-size: 1.4rem; text-align: center; margin: 0 0 6px; color: var(--navy-dark); }
.portal-auth-card p.sub { text-align: center; color: var(--muted); margin: 0 0 28px; font-size: 0.92rem; }
.auth-toggle { display: flex; gap: 8px; margin-bottom: 24px; background: var(--cream); padding: 4px; border-radius: 8px; }
.auth-toggle button { flex: 1; padding: 9px; border: none; background: transparent; border-radius: 6px; font-weight: 600; font-size: 0.88rem; cursor: pointer; color: var(--muted); }
.auth-toggle button.active { background: var(--white); color: var(--navy-dark); box-shadow: 0 1px 4px rgba(0,0,0,0.08); }
.alert { padding: 12px 14px; border-radius: 8px; font-size: 0.88rem; margin-bottom: 16px; }
.alert-error { background: #fdecea; color: #b3261e; }
.alert-success { background: #e8f5e9; color: #2e7d32; }
.hidden { display: none !important; }

.portal-topbar {
  background: var(--navy);
  color: var(--white);
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 26px;
}
.portal-layout { display: flex; min-height: calc(100vh - 60px); }
.portal-sidebar {
  width: 230px;
  background: var(--white);
  border-right: 1px solid rgba(11,37,69,0.08);
  padding: 24px 0;
}
.portal-sidebar button {
  display: flex; align-items: center; gap: 12px;
  width: 100%; text-align: left;
  padding: 13px 26px;
  background: none; border: none; cursor: pointer;
  font-size: 0.92rem; color: var(--muted); font-weight: 500;
  border-left: 3px solid transparent;
}
.portal-sidebar button.active { color: var(--navy-dark); border-left-color: var(--gold); background: rgba(201,164,76,0.07); font-weight: 600; }
.portal-main { flex: 1; padding: 34px; max-width: 900px; }
.portal-main h2 { color: var(--navy-dark); margin-top: 0; }

.doc-row {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--white); border-radius: 8px; padding: 14px 18px;
  margin-bottom: 10px; border: 1px solid rgba(11,37,69,0.07);
}
.doc-row .name { font-weight: 600; font-size: 0.92rem; color: var(--navy-dark); }
.doc-row .meta { font-size: 0.8rem; color: var(--muted); }
.status-pill { font-size: 0.75rem; font-weight: 700; padding: 4px 10px; border-radius: 20px; text-transform: uppercase; letter-spacing: 0.3px; }
.status-recebido { background: #fff3cd; color: #946c00; }
.status-andamento { background: #d6e8ff; color: #0b4a8f; }
.status-concluido { background: #d8f3dc; color: #1e6b3a; }

.upload-zone {
  border: 2px dashed rgba(11,37,69,0.2);
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
  color: var(--muted);
  margin-bottom: 26px;
  background: var(--white);
}

.message-bubble { max-width: 70%; padding: 12px 16px; border-radius: 12px; margin-bottom: 12px; font-size: 0.92rem; }
.message-mine { background: var(--navy); color: var(--white); margin-left: auto; border-bottom-right-radius: 2px; }
.message-theirs { background: var(--white); border: 1px solid rgba(11,37,69,0.08); border-bottom-left-radius: 2px; }

.sig-pad { border: 1px solid rgba(11,37,69,0.15); border-radius: 8px; padding: 20px; background: var(--white); margin-bottom: 18px; }

@media (max-width: 880px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .main-nav { display: none; }
  .menu-toggle { display: block; }
  .portal-sidebar { width: 64px; }
  .portal-sidebar span.label { display: none; }
  .portal-main { padding: 20px; }
}
@media (max-width: 880px) {
  .site-header.open .main-nav {
    display: flex; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0;
    background: var(--navy); padding: 20px; gap: 18px;
    z-index: 99;
  }
  .site-header.open .main-nav a { padding: 8px 0; }
  .hero { padding: 60px 0 70px; }
  .hero h1 { font-size: 1.9rem; }
  .hero .cta-group { flex-direction: column; align-items: stretch; }
  .hero .cta-group .btn { text-align: center; }
  .badges { flex-direction: column; gap: 12px; }
  section { padding: 56px 0; }
  .section-title h2 { font-size: 1.5rem; }
  .cta-band { padding: 36px 22px; }
  .portal-layout { flex-direction: column; }
  .portal-sidebar { width: 100%; display: flex; overflow-x: auto; padding: 10px 0; }
  .portal-sidebar button { flex-direction: column; gap: 4px; white-space: nowrap; padding: 10px 16px; border-left: none; border-bottom: 3px solid transparent; }
  .portal-sidebar button.active { border-left-color: transparent; border-bottom-color: var(--gold); }
}
@media (max-width: 600px) {
  .nav-actions { gap: 8px; }
  .nav-actions .btn-gold { padding: 9px 14px; font-size: 0.85rem; }
  .site-header .container { padding-top: 12px; padding-bottom: 12px; }
  .hero h1 { font-size: 1.6rem; }
  .hero p.lead { font-size: 1rem; }
  .card { padding: 24px 18px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .message-bubble { max-width: 88%; }
  .doc-row { flex-direction: column; align-items: flex-start; gap: 8px; }
}
@media (max-width: 420px) {
  .lang-switch { display: none; }
}

/* ─── Elegance Layer ─── */

/* Page fade-in on load */
@keyframes pageFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
body { animation: pageFadeIn 0.55s cubic-bezier(0.22,1,0.36,1) both; }

/* Header — comprime e aprofunda sombra no scroll */
.site-header { transition: box-shadow 0.35s ease; }
.site-header.scrolled { box-shadow: 0 6px 28px rgba(0,0,0,0.28); }
.site-header .container { transition: padding 0.35s ease; }
.site-header.scrolled .container { padding-top: 10px; padding-bottom: 10px; }

/* Nav link — underline deslizante dourado */
.main-nav a { position: relative; }
.main-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width 0.28s cubic-bezier(0.25,0.46,0.45,0.94);
  border-radius: 2px;
}
.main-nav a:hover::after,
.main-nav a.active::after { width: 100%; }

/* Cards — lift suave + borda dourada no hover */
.card { transition: transform 0.32s cubic-bezier(0.25,0.46,0.45,0.94), box-shadow 0.32s ease, border-color 0.32s ease; }
.card:hover {
  transform: translateY(-7px);
  box-shadow: 0 20px 48px rgba(11,37,69,0.14);
  border-color: rgba(201,164,76,0.35);
}

/* Botão dourado — shimmer de luz no hover */
.btn-gold { position: relative; overflow: hidden; }
.btn-gold::before {
  content: '';
  position: absolute;
  top: 0; left: -80%;
  width: 55%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.28), transparent);
  transform: skewX(-18deg);
  transition: left 0.55s ease;
  pointer-events: none;
}
.btn-gold:hover::before { left: 130%; }

/* Botão outline — glow suave */
.btn-outline { transition: background 0.25s ease, box-shadow 0.25s ease; }
.btn-outline:hover { box-shadow: 0 0 0 3px rgba(255,255,255,0.18); }

/* Icon nos cards — spin suave no hover */
.card:hover .icon { transition: transform 0.4s ease; transform: rotate(-6deg) scale(1.1); }
.card .icon { transition: transform 0.4s ease; }

/* CTA band — brilho de borda no hover */
.cta-band {
  transition: box-shadow 0.4s ease;
  box-shadow: 0 8px 32px rgba(11,37,69,0.18);
}
.cta-band:hover { box-shadow: 0 16px 56px rgba(11,37,69,0.28); }

/* Links do footer */
.footer-grid a { transition: color 0.2s ease, padding-left 0.2s ease; }
.footer-grid a:hover { color: var(--gold-light); padding-left: 4px; }

/* Lang switch — transição suave */
.lang-switch button { transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease; }

/* ─── Image Transitions ─── */

/* Ken Burns hero background */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  animation: kenburns 22s ease-in-out infinite alternate;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(6,23,48,0.86) 0%, rgba(11,37,69,0.72) 60%, rgba(11,37,69,0.55) 100%);
}
@keyframes kenburns {
  0%   { transform: scale(1.0) translate(0, 0); }
  100% { transform: scale(1.13) translate(-2%, -1%); }
}

/* Team photo (sobre.html) */
.team-photo {
  border-radius: var(--radius);
  overflow: hidden;
  height: 380px;
  box-shadow: 0 18px 48px rgba(11,37,69,0.22);
}
.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.9s cubic-bezier(0.25,0.46,0.45,0.94);
}
.team-photo:hover img { transform: scale(1.05); }

/* Generic section image with hover zoom */
.section-img {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.section-img img {
  width: 100%;
  display: block;
  transition: transform 0.7s ease;
}
.section-img:hover img { transform: scale(1.04); }

/* Fade-in image reveal (works with AOS) */
[data-aos="img-reveal"] {
  clip-path: inset(0 100% 0 0);
  transition: clip-path 0.8s cubic-bezier(0.77,0,0.175,1);
}
[data-aos="img-reveal"].aos-animate { clip-path: inset(0 0% 0 0); }
