@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;500;600;700&family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root {
  --color-primary: #1A3A6B;
  --color-secondary: #F5F5F5;
  --color-accent: #E8A838;
  --color-dark: #1C1C1C;
  --color-text: #2A2A2A;
  --color-text-light: #555555;
  --color-white: #FFFFFF;
  --color-bg: #FFFFFF;
  --color-bg-alt: #F5F5F5;
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Open Sans', sans-serif;
  --container-width: 1200px;
  --header-height: 80px;
  --transition: all 0.3s ease;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.12);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.16);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: var(--transition);
}

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

ul {
  list-style: none;
}

p {
  color: var(--color-text);
  margin-bottom: 1rem;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-primary);
  margin-bottom: 0.5em;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}

h3 {
  font-size: clamp(1.3rem, 3vw, 1.8rem);
}

h4 {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
}

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

/* ===== SITE HEADER ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  background: rgba(26, 58, 107, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: var(--transition);
}

.site-header.scrolled {
  background: rgba(26, 58, 107, 0.98);
  box-shadow: 0 4px 30px rgba(0,0,0,0.2);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--color-white);
  text-decoration: none;
}

.brand:hover {
  color: var(--color-white);
}

.brand-mark {
  width: 40px;
  height: 40px;
  background: var(--color-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--color-primary);
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  color: rgba(255,255,255,0.88);
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
  padding: 0.25rem 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--color-white);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--color-white);
  font-size: 1.5rem;
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1A3A6B 0%, #0F2444 50%, #1A3A6B 100%);
  position: relative;
  overflow: hidden;
  padding: calc(var(--header-height) + 2rem) 1.5rem 4rem;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 50%, rgba(232, 168, 56, 0.08) 0%, transparent 60%),
              radial-gradient(circle at 80% 30%, rgba(232, 168, 56, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
}

.hero h1 {
  color: var(--color-white);
  margin-bottom: 0.5rem;
  font-weight: 800;
}

.hero p {
  color: rgba(255,255,255,0.88);
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  max-width: 650px;
  margin: 1.5rem auto 2.5rem;
  line-height: 1.8;
}

.hero .btn {
  font-size: 1.1rem;
  padding: 1rem 2.5rem;
}

/* ===== PAGE HERO ===== */
.page-hero {
  padding: calc(var(--header-height) + 3rem) 1.5rem 3rem;
  background: linear-gradient(135deg, #1A3A6B 0%, #0F2444 100%);
  text-align: center;
  position: relative;
}

.page-hero h1 {
  color: var(--color-white);
  margin-bottom: 0.5rem;
}

.page-hero p {
  color: rgba(255,255,255,0.88);
  font-size: 1.15rem;
  max-width: 600px;
  margin: 0.75rem auto 0;
}

/* ===== SECTIONS ===== */
.section {
  padding: 5rem 0;
}

.section-alt {
  background: var(--color-bg-alt);
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3.5rem;
}

.section-eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-accent);
  margin-bottom: 0.75rem;
}

.section-header h2 {
  margin-bottom: 0.75rem;
}

.section-header p {
  color: var(--color-text-light);
  font-size: 1.1rem;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  background: var(--color-accent);
  color: var(--color-primary);
  box-shadow: 0 4px 15px rgba(232, 168, 56, 0.3);
}

.btn:hover {
  background: #d49a2f;
  color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(232, 168, 56, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--color-white);
  border: 2px solid rgba(255,255,255,0.3);
  box-shadow: none;
}

.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--color-white);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: none;
}

/* ===== SERVICES ===== */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.service-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid rgba(0,0,0,0.04);
}

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

.service-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--color-primary), #2a5a9e);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--color-white);
  margin-bottom: 1.25rem;
}

.service-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}

.service-card p {
  color: var(--color-text-light);
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* ===== STATS ===== */
.stats {
  background: var(--color-primary);
  padding: 4rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  text-align: center;
}

.stat-value {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1rem;
  color: rgba(255,255,255,0.88);
  font-weight: 500;
}

/* ===== CTA ===== */
.cta {
  background: linear-gradient(135deg, var(--color-primary) 0%, #0F2444 100%);
  border-radius: var(--radius-lg);
  padding: 3.5rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 70% 30%, rgba(232, 168, 56, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.cta h2 {
  color: var(--color-white);
  margin-bottom: 0.75rem;
  position: relative;
}

.cta p {
  color: rgba(255,255,255,0.88);
  font-size: 1.1rem;
  max-width: 550px;
  margin: 0 auto 2rem;
  position: relative;
}

.cta .btn {
  position: relative;
}

/* ===== ABOUT ===== */
.about-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

.company-info p {
  font-size: 1.05rem;
  color: var(--color-text-light);
}

.values-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.value-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--color-accent);
}

.value-card h4 {
  margin-bottom: 0.5rem;
  color: var(--color-primary);
}

.value-card p {
  color: var(--color-text-light);
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* ===== LEGAL ===== */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
}

.legal-content h2 {
  margin-top: 2.5rem;
  font-size: 1.6rem;
}

.legal-content h3 {
  margin-top: 1.5rem;
  font-size: 1.2rem;
  color: var(--color-dark);
}

.legal-content p {
  color: var(--color-text-light);
  margin-bottom: 1rem;
}

.legal-toc {
  background: var(--color-bg-alt);
  border-radius: var(--radius-md);
  padding: 2rem;
  margin-bottom: 2rem;
}

.legal-toc h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.legal-toc ul {
  list-style: none;
  padding: 0;
}

.legal-toc li {
  margin-bottom: 0.5rem;
}

.legal-toc a {
  color: var(--color-primary);
  font-weight: 500;
}

.legal-toc a:hover {
  color: var(--color-accent);
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--color-primary);
  color: rgba(255,255,255,0.88);
  padding: 4rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.footer-brand h3 {
  color: var(--color-white);
  margin-bottom: 0.75rem;
  font-size: 1.4rem;
}

.footer-brand p {
  color: rgba(255,255,255,0.88);
  font-size: 0.95rem;
  max-width: 350px;
}

.footer-grid h4 {
  color: var(--color-white);
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.footer-grid ul li {
  margin-bottom: 0.5rem;
}

.footer-grid ul li a {
  color: rgba(255,255,255,0.88);
  font-size: 0.95rem;
}

.footer-grid ul li a:hover {
  color: var(--color-accent);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.18);
  padding: 1.5rem 0;
  margin-top: 3rem;
  text-align: center;
}

.footer-bottom p {
  color: rgba(255,255,255,0.9);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 0;
}

/* ===== FADE IN ANIMATION ===== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 819px) {
  .nav-links {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: rgba(26, 58, 107, 0.98);
    backdrop-filter: blur(16px);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    transform: translateY(-120%);
    transition: var(--transition);
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }

  .nav-links.active {
    transform: translateY(0);
  }

  .nav-toggle {
    display: block;
  }

  .hero {
    min-height: 90vh;
    padding-top: calc(var(--header-height) + 1rem);
  }

  .section {
    padding: 3.5rem 0;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }

  .cta {
    padding: 2.5rem 1.5rem;
  }

  .footer-grid {
    gap: 2rem;
  }
}

@media (min-width: 820px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .about-content {
    grid-template-columns: 1fr 1fr;
  }

  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ===== INHERITANCE FIX ===== */
.site-footer p,
.footer-bottom p,
.footer-brand p,
.hero p,
.page-hero p,
.stats p {
  color: inherit;
}

/* ===== UTILITY ===== */
.text-center {
  text-align: center;
}

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
/* Fix contraste hero — texto sobre fundo azul escuro */
.hero p,
.hero .container p,
.hero .company-info p,
.hero-content p {
  color: rgba(255, 255, 255, 0.92) !important;
}
.hero a:not(.btn),
.hero .container a:not(.btn) {
  color: #ffffff !important;
}
