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

:root {
  --color-primary: #003366;
  --color-primary-dark: #002244;
  --color-accent: #C5A572;
  --color-accent-light: #D4B88A;
  --color-accent-dark: #A88A5A;
  --color-bg: #F9F9F9;
  --color-bg-alt: #FFFFFF;
  --color-border: #B0B0B0;
  --color-text: #222222;
  --color-text-light: #2A2A2A;
  --color-text-muted: #4A4A4A;
  --color-white: #FFFFFF;
  --color-overlay: rgba(0, 51, 102, 0.88);
  --color-overlay-light: rgba(0, 51, 102, 0.75);

  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Noto Sans', sans-serif;

  --container-max: 1200px;
  --container-padding: 1.5rem;
  --section-spacing: 5rem;
  --section-spacing-mobile: 3rem;
  --border-radius: 8px;
  --border-radius-lg: 16px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.12);
  --transition: 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
  font-size: 100%;
}

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

/* ========== TIPOGRAFIA GLOBAL ========== */

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

h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}

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

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

p {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--color-text-light);
  line-height: 1.7;
  margin-bottom: 1rem;
}

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

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

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

ul {
  list-style: none;
}

/* ========== CONTAINER ========== */

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

/* ========== HEADER ========== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(0, 51, 102, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.8rem 0;
  transition: var(--transition);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

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

.brand span {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--color-white);
  letter-spacing: 0.02em;
}

.nav {
  display: flex;
  align-items: center;
}

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

.nav-links a {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.88);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.5rem 0;
  position: relative;
  transition: var(--transition);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  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-links a.active {
  color: var(--color-accent);
}

.nav-links a.active::after {
  width: 100%;
  background: var(--color-accent);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--color-white);
  border-radius: 2px;
  transition: var(--transition);
}

/* ========== HERO ========== */

.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--color-primary) 0%, #001a33 100%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('https://images.unsplash.com/photo-1566576912328-58c4b9e3b7b3?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
  opacity: 0.25;
  z-index: 0;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--color-overlay) 0%, rgba(0, 26, 51, 0.92) 100%);
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.hero-content {
  max-width: 600px;
}

.hero-content h1 {
  color: var(--color-white);
  margin-bottom: 1.5rem;
  font-size: clamp(2.5rem, 5.5vw, 4.2rem);
}

.hero-content p {
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  line-height: 1.8;
  margin-bottom: 2.5rem;
  max-width: 520px;
}

.hero-image {
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  height: 450px;
  background: url('https://images.unsplash.com/photo-1497366216548-37526070297c?ixlib=rb-4.0.3&auto=format&fit=crop&w=800&q=80') center/cover no-repeat;
  position: relative;
}

.hero-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--color-accent) 0%, transparent 60%);
  opacity: 0.15;
}

/* ========== PAGE HERO ========== */

.page-hero {
  position: relative;
  min-height: 40vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--color-primary) 0%, #001a33 100%);
  overflow: hidden;
  padding: 6rem 0 3rem;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('https://images.unsplash.com/photo-1504384308090-c894fdcc538d?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
  opacity: 0.2;
  z-index: 0;
}

.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--color-overlay) 0%, rgba(0, 26, 51, 0.9) 100%);
  z-index: 1;
}

.page-hero .container {
  position: relative;
  z-index: 2;
  text-align: center;
}

.page-hero h1 {
  color: var(--color-white);
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin-bottom: 0.75rem;
}

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

/* ========== SECTIONS ========== */

.section {
  padding: var(--section-spacing) 0;
}

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

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

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

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

.section-header p {
  max-width: 600px;
  margin: 0 auto;
  color: var(--color-text-muted);
  font-size: 1.05rem;
}

/* ========== BUTTONS ========== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.9rem 2.2rem;
  border-radius: 50px;
  border: 2px solid var(--color-accent);
  background: var(--color-accent);
  color: var(--color-primary);
  cursor: pointer;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.btn:hover {
  background: var(--color-accent-light);
  border-color: var(--color-accent-light);
  color: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(197, 165, 114, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-outline:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-primary);
  box-shadow: 0 6px 20px rgba(197, 165, 114, 0.25);
}

/* ========== SERVICES GRID ========== */

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.service-card {
  background: var(--color-bg-alt);
  border-radius: var(--border-radius-lg);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: var(--transition);
  text-align: center;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-accent);
}

.service-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.5rem;
  background: var(--color-primary);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--color-accent);
}

.service-card h3 {
  margin-bottom: 0.75rem;
  color: var(--color-primary);
}

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

/* ========== STATS ========== */

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

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: center;
}

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

.stat-label {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.88);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ========== CTA ========== */

.cta {
  background: linear-gradient(135deg, var(--color-primary) 0%, #001a33 100%);
  border-radius: var(--border-radius-lg);
  padding: 4rem 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('https://images.unsplash.com/photo-1556761175-b413da4baf72?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
  opacity: 0.1;
}

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

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

.cta .btn {
  position: relative;
  z-index: 1;
}

/* ========== ABOUT ========== */

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-content .company-info h2 {
  margin-bottom: 1.5rem;
}

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

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.value-card {
  background: var(--color-bg-alt);
  border-radius: var(--border-radius);
  padding: 2rem;
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: var(--transition);
}

.value-card:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-sm);
}

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

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

/* ========== LEGAL ========== */

.legal-content {
  max-width: 800px;
  margin: 0 auto;
}

.legal-content h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: var(--color-primary);
}

.legal-content h3 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: var(--color-primary);
}

.legal-content p {
  color: var(--color-text-muted);
  margin-bottom: 1rem;
  line-height: 1.8;
}

.legal-content ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.legal-content ul li {
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
  line-height: 1.7;
}

.legal-toc {
  background: var(--color-bg-alt);
  border-radius: var(--border-radius);
  padding: 2rem;
  margin-bottom: 2.5rem;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

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

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

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

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

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

/* ========== FOOTER ========== */

.site-footer {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 4rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

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

.footer-brand p {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  max-width: 340px;
}

.footer-brand .brand-mark {
  margin-bottom: 1rem;
}

.footer-grid h4 {
  color: var(--color-accent);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1.25rem;
}

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

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

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

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

.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

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

.footer-bottom a {
  color: var(--color-accent);
  font-size: 0.9rem;
}

.footer-bottom a:hover {
  color: var(--color-accent-light);
}

/* ========== ANIMAÇÕES ========== */

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========== ARMADILHA DE HERANÇA ========== */

.site-footer p,
.footer-bottom p,
.footer-brand p,
.hero p,
.page-hero p,
.stats p {
  color: inherit;
}

/* ========== RESPONSIVO ========== */

@media (max-width: 820px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--color-primary-dark);
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    padding: 2rem;
    transition: var(--transition);
    z-index: 999;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.3);
  }

  .nav-links.open {
    right: 0;
  }

  .nav-links a {
    font-size: 1.1rem;
  }

  .nav-toggle {
    display: flex;
    z-index: 1000;
  }

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

  .hero-content {
    max-width: 100%;
  }

  .hero-content p {
    margin: 0 auto 2rem;
  }

  .hero-image {
    height: 280px;
    order: -1;
  }

  .page-hero {
    min-height: 30vh;
    padding: 5rem 0 2rem;
  }

  .section {
    padding: var(--section-spacing-mobile) 0;
  }

  .section-alt {
    padding: var(--section-spacing-mobile) 0;
  }

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

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

  .footer-bottom .container {
    flex-direction: column;
    text-align: center;
  }

  .cta {
    padding: 3rem 1.5rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

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

  .values-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .hero {
    min-height: 70vh;
  }

  .hero-image {
    height: 200px;
  }
}