:root {
  --navy-950: #0d1930;
  --navy-900: #13234a;
  --navy-800: #1b2f5c;
  --navy-700: #24406f;
  --gold-500: #e0942f;
  --gold-400: #f0ab4a;
  --gold-100: #fbe8cc;
  --cream: #faf7f2;
  --ink: #1c2333;
  --muted: #5c6478;
  --border: #e7e2d8;
  --radius: 14px;
  --shadow: 0 12px 32px rgba(13, 25, 48, 0.10);
  --shadow-sm: 0 4px 14px rgba(13, 25, 48, 0.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: "Poppins", "Inter", sans-serif;
  color: var(--navy-950);
  margin: 0 0 0.5em;
  line-height: 1.25;
}

p { margin: 0 0 1em; }

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

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

/* ---------- Header ---------- */

.site-header {
  background: var(--navy-950);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 18px rgba(0, 0, 0, 0.15);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand img {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  background: #fff;
  padding: 3px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-text strong {
  font-family: "Poppins", sans-serif;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.brand-text span {
  font-size: 0.72rem;
  color: var(--gold-400);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.main-nav a {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.82);
  transition: color 0.15s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: #fff;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-500));
  color: var(--navy-950);
  box-shadow: var(--shadow-sm);
}

.btn-gold:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(224, 148, 47, 0.35);
}

.btn-outline {
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.08);
}

.btn-navy {
  background: var(--navy-900);
  color: #fff;
}

.btn-navy:hover {
  background: var(--navy-800);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.6rem;
  cursor: pointer;
}

/* ---------- Hero ---------- */

.hero {
  background:
    radial-gradient(circle at 85% 20%, rgba(224, 148, 47, 0.18), transparent 45%),
    linear-gradient(160deg, var(--navy-950), var(--navy-800));
  color: #fff;
  padding: 96px 0 88px;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-400);
  background: rgba(224, 148, 47, 0.12);
  border: 1px solid rgba(224, 148, 47, 0.35);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.hero h1 {
  color: #fff;
  font-size: clamp(2rem, 3.4vw, 2.75rem);
  max-width: 20ch;
}

.hero p.lead {
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.05rem;
  max-width: 46ch;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.hero-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  padding: 28px;
  backdrop-filter: blur(6px);
}

.hero-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero-card li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.94rem;
  color: rgba(255, 255, 255, 0.88);
}

.hero-card .dot {
  width: 8px;
  height: 8px;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--gold-400);
  flex: none;
}

/* ---------- Sections ---------- */

section { padding: 80px 0; }

.section-head {
  max-width: 620px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-head .eyebrow {
  background: var(--gold-100);
  border-color: transparent;
  color: #a1650f;
}

.section-head h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.section-head p { color: var(--muted); }

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.card .icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--navy-800), var(--navy-950));
  color: var(--gold-400);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 16px;
}

.card h3 { font-size: 1.08rem; }
.card p { color: var(--muted); font-size: 0.94rem; margin-bottom: 0; }

.section-alt { background: #fff; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.trust-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 20px; }

.trust-list li { display: flex; gap: 14px; align-items: flex-start; }

.trust-list .num {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--gold-100);
  color: #a1650f;
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.trust-list strong { display: block; margin-bottom: 2px; }
.trust-list span { color: var(--muted); font-size: 0.92rem; }

/* ---------- News ---------- */

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.news-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}

.news-card .thumb {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-400);
  font-size: 1.6rem;
}

.news-card .thumb img { width: 100%; height: 100%; object-fit: cover; }

.news-card .body { padding: 20px 22px 22px; flex: 1; display: flex; flex-direction: column; }

.news-card .meta {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gold-500);
  margin-bottom: 8px;
}

.news-card h3 { font-size: 1.02rem; margin-bottom: 8px; }
.news-card p { color: var(--muted); font-size: 0.9rem; flex: 1; }

.news-card .read-more { font-size: 0.86rem; font-weight: 600; color: var(--navy-900); margin-top: 12px; }

/* ---------- News ticker (quadro de avisos) ---------- */

.news-ticker {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--border);
  border-left: 4px solid var(--gold-500);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 32px 36px;
  min-height: 190px;
}

.ticker-slide {
  display: none;
}

.ticker-slide.active {
  display: block;
  animation: ticker-fade-in 0.5s ease;
}

@keyframes ticker-fade-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.ticker-slide .meta {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gold-500);
  display: block;
  margin-bottom: 10px;
}

.ticker-slide h3 { font-size: 1.2rem; margin-bottom: 10px; }
.ticker-slide p { color: var(--muted); margin-bottom: 0; }
.ticker-slide .read-more { display: inline-block; font-size: 0.9rem; font-weight: 600; color: var(--navy-900); margin-top: 14px; }

.ticker-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 22px;
}

.ticker-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: var(--border);
  cursor: pointer;
  transition: all 0.2s ease;
}

.ticker-dots button.active {
  width: 22px;
  background: var(--gold-500);
}

.empty-state {
  text-align: center;
  padding: 48px 24px;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  color: var(--muted);
  background: #fff;
}

/* ---------- CTA band ---------- */

.cta-band {
  background: linear-gradient(135deg, var(--navy-950), var(--navy-800));
  color: #fff;
  border-radius: 20px;
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.cta-band h2 { color: #fff; margin-bottom: 6px; font-size: 1.5rem; }
.cta-band p { color: rgba(255, 255, 255, 0.75); margin: 0; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy-950);
  color: rgba(255, 255, 255, 0.68);
  padding: 56px 0 28px;
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-grid h4 {
  color: #fff;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

.footer-grid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-grid a { font-size: 0.9rem; color: rgba(255, 255, 255, 0.68); }
.footer-grid a:hover { color: var(--gold-400); }

.footer-brand p { font-size: 0.9rem; max-width: 32ch; }

.footer-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
}

.footer-badge img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #fff;
  padding: 3px;
}

.footer-badge span {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.62);
  max-width: 16ch;
  line-height: 1.3;
}

.social-row { display: flex; gap: 10px; margin-top: 16px; }

.social-row a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

.social-row a:hover { background: rgba(224, 148, 47, 0.16); border-color: var(--gold-400); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 22px;
  font-size: 0.8rem;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-bottom a { color: rgba(255, 255, 255, 0.55); }
.footer-bottom a:hover { color: #fff; }

/* ---------- Inner pages ---------- */

.page-header {
  background: linear-gradient(160deg, var(--navy-950), var(--navy-800));
  color: #fff;
  padding: 64px 0 56px;
}

.page-header h1 { color: #fff; margin-bottom: 8px; }
.page-header p { color: rgba(255, 255, 255, 0.72); max-width: 60ch; margin: 0; }

.prose { max-width: 760px; }
.prose p { color: var(--ink); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.contact-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list .icon-sm {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--gold-100);
  color: #a1650f;
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-list strong { display: block; }
.contact-list span, .contact-list a { color: var(--muted); font-size: 0.94rem; }

form.contact-form { display: flex; flex-direction: column; gap: 14px; }
form.contact-form label { font-size: 0.85rem; font-weight: 600; color: var(--navy-900); }
form.contact-form input,
form.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  font-family: inherit;
  font-size: 0.95rem;
}
form.contact-form textarea { min-height: 130px; resize: vertical; }

.alert {
  padding: 14px 18px;
  border-radius: 10px;
  font-size: 0.92rem;
  margin-bottom: 18px;
}
.alert-success { background: #eaf7ee; color: #1e7a3b; border: 1px solid #bfe6c9; }
.alert-error { background: #fdecec; color: #b3261e; border: 1px solid #f5c2c0; }

.coming-soon {
  text-align: center;
  padding: 72px 24px;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  background: #fff;
}

.coming-soon .icon {
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--gold-100); color: #a1650f;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; margin: 0 auto 18px;
}

/* ---------- Admin ---------- */

.admin-body { background: #f4f5f8; min-height: 100vh; }

.admin-shell { display: flex; min-height: 100vh; }

.admin-sidebar {
  width: 240px;
  background: var(--navy-950);
  color: rgba(255, 255, 255, 0.82);
  padding: 24px 18px;
  flex: none;
}

.admin-sidebar .brand { color: #fff; margin-bottom: 28px; }
.admin-sidebar nav { display: flex; flex-direction: column; gap: 4px; }
.admin-sidebar a {
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.92rem;
}
.admin-sidebar a:hover, .admin-sidebar a.active { background: rgba(255, 255, 255, 0.08); color: #fff; }

.admin-main { flex: 1; padding: 32px 40px; }

.admin-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; }

.admin-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
}

table.admin-table { width: 100%; border-collapse: collapse; }
table.admin-table th, table.admin-table td {
  text-align: left;
  padding: 12px 10px;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
  vertical-align: top;
}
table.admin-table th { color: var(--muted); font-weight: 600; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
.form-field label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--navy-900); margin-bottom: 6px; }
.form-field input, .form-field textarea {
  width: 100%;
  padding: 11px 13px;
  border-radius: 10px;
  border: 1px solid var(--border);
  font-family: inherit;
  font-size: 0.94rem;
}
.form-field textarea { min-height: 90px; resize: vertical; }
.form-field .hint { color: var(--muted); font-size: 0.8rem; margin-top: 4px; }

.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, var(--navy-950), var(--navy-800));
  padding: 24px;
}

.login-card {
  background: #fff;
  border-radius: 18px;
  padding: 40px;
  width: 100%;
  max-width: 380px;
  box-shadow: var(--shadow);
  text-align: center;
}

.login-card img { width: 84px; margin: 0 auto 18px; }
.login-card form { display: flex; flex-direction: column; gap: 14px; margin-top: 20px; text-align: left; }

.tag-pill {
  display: inline-block;
  font-size: 0.72rem;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--gold-100);
  color: #a1650f;
  font-weight: 600;
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .hero .container { grid-template-columns: 1fr; }
  .grid-3, .news-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .main-nav { position: fixed; inset: 64px 0 auto 0; background: var(--navy-950); flex-direction: column; align-items: flex-start; padding: 16px 24px 24px; gap: 14px; display: none; box-shadow: var(--shadow); }
  .main-nav.open { display: flex; }
  .nav-toggle { display: block; }
  .grid-3, .news-grid, .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  section { padding: 56px 0; }
  .hero { padding: 64px 0 56px; }
  .cta-band { flex-direction: column; align-items: flex-start; }
  .admin-shell { flex-direction: column; }
  .admin-sidebar { width: 100%; }
  .admin-main { padding: 24px; }
}
