/* ==================================================================
   CONTRATA SEGURO · CSS Base Compartilhado
   Mantém paleta navy + gold + cream da v7
   ================================================================== */

:root {
  /* Cores - mantém v7 */
  --navy: #0d1b2a;
  --navy-soft: #1a2d44;
  --gold: #c9a84c;
  --gold-pale: #e0d8c8;
  --cream: #faf8f3;
  --bg: #f5f1e8;
  --border: #e0d8c8;

  /* Texto */
  --text: #1a1a1a;
  --text-muted: #6b6657;
  --text-light: #9a9486;

  /* Estados */
  --success: #1b5e20;
  --success-bg: #e8f5e9;
  --warn: #c9a84c;
  --warn-bg: #fff8e1;
  --danger: #880e4f;
  --danger-bg: #fce4ec;

  /* Layout */
  --max-width: 1140px;
  --max-content: 760px;
  --radius: 10px;
  --radius-lg: 14px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, 'Segoe UI', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--navy);
  line-height: 1.25;
  font-weight: 700;
}

a {
  color: var(--navy);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover { color: var(--gold); }

.tagline {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: var(--gold);
  text-transform: uppercase;
  font-weight: 600;
}

/* === Container === */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-narrow {
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* === Header (compartilhado) === */
.site-header {
  background: var(--cream);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  background: rgba(250, 248, 243, 0.95);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header-logo img {
  height: 42px;
  width: auto;
}

.header-logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  color: var(--navy);
  font-weight: 700;
  line-height: 1.1;
}

.header-logo-tag {
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  color: var(--gold);
  text-transform: uppercase;
  font-weight: 600;
  display: block;
  margin-top: 2px;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.header-nav a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text);
  transition: color 0.2s;
}

.header-nav a:hover, .header-nav a.active { color: var(--gold); }

.nav-badge {
  display: inline-block;
  background: var(--success);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  padding: 0.1rem 0.4rem;
  border-radius: 8px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-left: 0.3rem;
  vertical-align: middle;
}

.header-cta {
  background: var(--navy);
  color: #fff;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  transition: all 0.2s;
}

.header-cta:hover {
  background: var(--navy-soft);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(13, 27, 42, 0.18);
}

/* Menu mobile */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.4rem;
  color: var(--navy);
  cursor: pointer;
  padding: 0.4rem;
}

@media (max-width: 880px) {
  .header-nav { display: none; }
  .menu-toggle { display: block; }
  .header-nav.open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    flex-direction: column;
    padding: 1rem 1.5rem 1.5rem;
    gap: 1rem;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 20px rgba(13, 27, 42, 0.08);
  }
}

@media (max-width: 480px) {
  .header-logo-text { font-size: 0.95rem; }
  .header-logo img { height: 36px; }
}

/* === Botões === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
  font-family: inherit;
  line-height: 1.2;
}

.btn-primary {
  background: var(--navy);
  color: #fff;
}
.btn-primary:hover {
  background: var(--navy-soft);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(13, 27, 42, 0.22);
}

.btn-gold {
  background: var(--gold);
  color: var(--navy);
}
.btn-gold:hover {
  background: #d9b95c;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(201, 168, 76, 0.32);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--navy);
}
.btn-outline:hover {
  background: var(--navy);
  color: #fff;
}

.btn-lg { padding: 1.05rem 2rem; font-size: 1rem; }

/* === Seções genéricas === */
.section {
  padding: 4rem 0;
}

.section-tight {
  padding: 2.5rem 0;
}

.section-cream {
  background: var(--cream);
}

.section-navy {
  background: var(--navy);
  color: #fff;
}
.section-navy h1, .section-navy h2, .section-navy h3 { color: #fff; }
.section-navy .tagline { color: var(--gold); }

.section-title {
  text-align: center;
  margin-bottom: 0.8rem;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 640px;
  margin: 0 auto 3rem;
}

/* === Cards === */
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: all 0.2s;
}

.card:hover {
  box-shadow: 0 12px 28px rgba(13, 27, 42, 0.06);
  transform: translateY(-2px);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--cream);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

/* === Footer === */
.site-footer {
  background: var(--navy);
  color: #fff;
  padding: 3rem 0 1.5rem;
  margin-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
}

@media (max-width: 880px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.footer-brand .footer-tag {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  color: var(--gold);
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.footer-brand h3 {
  color: #fff;
  font-size: 1.3rem;
  margin-bottom: 0.6rem;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.88rem;
  line-height: 1.6;
}

.footer-col h4 {
  color: var(--gold);
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-col ul { list-style: none; }

.footer-col li {
  margin-bottom: 0.55rem;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
}

.footer-col a:hover { color: var(--gold); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer-bottom .legal {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.5);
  max-width: 580px;
  line-height: 1.6;
}

/* === Disclaimer global === */
.legal-notice {
  background: var(--cream);
  border-left: 4px solid var(--navy);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  font-size: 0.86rem;
  color: var(--text);
  line-height: 1.65;
}

.legal-notice strong { color: var(--navy); }

/* === Utilitários === */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
