@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Lato:wght@300;400;700&display=swap');

:root {
  --color-primary: #F5E6D3;
  --color-accent: #6B8E4E;
  --color-accent-hover: #5A7A3E;
  --color-accent-light: #E8F0E0;
  --color-terracotta: #C28B6B;
  --color-terracotta-hover: #B07A5A;
  --color-white: #FFF8F2;
  --color-text: #3C3C3C;
  --color-text-light: #5A5A5A;
  --color-text-dark: #2A2A2A;
  --color-dark-bg: #2A2A2A;
  --color-overlay: rgba(42, 42, 42, 0.55);
  --color-border: rgba(60, 60, 60, 0.12);
  --color-border-light: rgba(255, 248, 242, 0.18);
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Lato', sans-serif;
  --container-max: 1200px;
  --container-padding: 1.5rem;
  --section-spacing: clamp(4rem, 8vw, 8rem);
  --shadow-sm: 0 2px 8px rgba(60, 60, 60, 0.08);
  --shadow-md: 0 4px 20px rgba(60, 60, 60, 0.1);
  --shadow-lg: 0 8px 40px rgba(60, 60, 60, 0.12);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
  color: var(--color-text-dark);
  background-color: var(--color-primary);
  font-size: 1rem;
}

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

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

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

ul {
  list-style: none;
}

/* ===== TIPOGRAFIA GLOBAL ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.25;
  color: var(--color-text);
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
}

h3 {
  font-size: clamp(1.375rem, 2.5vw, 1.75rem);
  margin-bottom: 0.75rem;
}

h4 {
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  font-weight: 600;
}

p {
  color: var(--color-text-dark);
  margin-bottom: 1rem;
  font-weight: 400;
}

/* ===== ARMADILHA DE HERANÇA ===== */
.site-footer p,
.footer-bottom p,
.footer-brand p,
.hero p,
.page-hero p,
.stats p {
  color: inherit;
}

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

/* ===== SITE HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(245, 230, 211, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-border);
  padding: 0.75rem 0;
  transition: var(--transition);
}

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

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

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

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

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

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

.nav-links a {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.95rem;
  color: var(--color-text);
  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-accent);
}

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

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
  color: var(--color-text);
}

.nav-toggle span {
  display: block;
  width: 28px;
  height: 2px;
  background: currentColor;
  margin: 6px 0;
  border-radius: 2px;
  transition: var(--transition);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, rgba(107, 142, 78, 0.15) 0%, rgba(194, 139, 107, 0.1) 100%), 
              url('https://images.unsplash.com/photo-1545205597-3d9d02c29597?w=1920&q=80') center/cover no-repeat;
  color: var(--color-white);
  padding: 6rem 1.5rem;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--color-overlay);
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero h1 {
  color: var(--color-white);
  font-size: clamp(2.75rem, 7vw, 5rem);
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 20px rgba(0,0,0,0.2);
}

.hero p {
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  color: rgba(255, 248, 242, 0.92);
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 300;
  line-height: 1.8;
}

/* ===== PAGE HERO ===== */
.page-hero {
  position: relative;
  min-height: 40vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-terracotta) 100%);
  color: var(--color-white);
  padding: 4rem 1.5rem;
}

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

.page-hero h1 {
  color: var(--color-white);
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  margin-bottom: 0.75rem;
}

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

/* ===== SECTIONS ===== */
.section {
  padding: var(--section-spacing) 0;
  background: var(--color-primary);
}

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

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

.section-eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-accent);
  margin-bottom: 0.75rem;
}

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

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2.25rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  background: var(--color-accent);
  color: var(--color-white);
  box-shadow: 0 4px 16px rgba(107, 142, 78, 0.25);
}

.btn:hover {
  background: var(--color-accent-hover);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(107, 142, 78, 0.35);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--color-accent);
  color: var(--color-accent);
  box-shadow: none;
}

.btn-outline:hover {
  background: var(--color-accent);
  color: var(--color-white);
  box-shadow: 0 4px 16px rgba(107, 142, 78, 0.25);
}

/* ===== SERVICES GRID ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.service-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--color-border);
}

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

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

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

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

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

.stats .container {
  text-align: center;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

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

.stat-label {
  font-family: var(--font-body);
  font-size: 1rem;
  color: rgba(255, 248, 242, 0.88);
  font-weight: 400;
}

/* ===== CTA ===== */
.cta {
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-terracotta) 100%);
  border-radius: var(--radius-lg);
  padding: 4rem 3rem;
  text-align: center;
  color: var(--color-white);
  box-shadow: var(--shadow-lg);
}

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

.cta p {
  color: rgba(255, 248, 242, 0.9);
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0 auto 2rem;
}

.cta .btn {
  background: var(--color-white);
  color: var(--color-accent);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.cta .btn:hover {
  background: var(--color-primary);
  color: var(--color-accent-hover);
  transform: translateY(-2px);
}

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

.about-content p {
  color: var(--color-text-light);
}

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

.value-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  transition: var(--transition);
}

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

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

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

.company-info {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
}

.company-info h3 {
  margin-bottom: 1.5rem;
}

.company-info p {
  color: var(--color-text-light);
  margin-bottom: 0.5rem;
}

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

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

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

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

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

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

.legal-toc {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 2rem;
  margin-bottom: 3rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
}

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

.legal-toc a {
  display: block;
  padding: 0.5rem 0;
  color: var(--color-accent);
  border-bottom: 1px solid var(--color-border);
  transition: var(--transition);
}

.legal-toc a:last-child {
  border-bottom: none;
}

.legal-toc a:hover {
  color: var(--color-accent-hover);
  padding-left: 0.5rem;
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--color-border-light);
}

.footer-brand {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 1rem;
}

.footer-brand p {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.95rem;
  color: rgba(255, 248, 242, 0.78);
  margin-top: 0.75rem;
  line-height: 1.7;
}

.footer-grid h4 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-white);
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

.footer-grid a {
  color: rgba(255, 248, 242, 0.78);
  font-size: 0.95rem;
  transition: var(--transition);
}

.footer-grid a:hover {
  color: var(--color-white);
}

.footer-bottom {
  padding: 1.5rem 0;
  border-top: 1px solid rgba(255, 248, 242, 0.18);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  color: rgba(255, 248, 242, 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-white);
}

/* ===== FADE IN ANIMATION ===== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

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

.fade-in:nth-child(2) { animation-delay: 0.1s; }
.fade-in:nth-child(3) { animation-delay: 0.2s; }
.fade-in:nth-child(4) { animation-delay: 0.3s; }

/* ===== RESPONSIVE ===== */
@media (max-width: 820px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 400px;
    height: 100vh;
    background: var(--color-white);
    flex-direction: column;
    justify-content: center;
    gap: 1.5rem;
    padding: 2rem;
    box-shadow: -4px 0 24px rgba(0,0,0,0.1);
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
  }

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

  .nav-links a {
    font-size: 1.25rem;
    padding: 0.75rem 0;
  }

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

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

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

  .hero {
    min-height: 70vh;
    padding: 4rem 1.5rem;
  }

  .page-hero {
    min-height: 30vh;
    padding: 3rem 1.5rem;
  }

  .cta {
    padding: 3rem 2rem;
  }

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

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

@media (max-width: 480px) {
  :root {
    --container-padding: 1rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

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

  .hero h1 {
    font-size: clamp(2rem, 10vw, 2.75rem);
  }

  .hero p {
    font-size: 1rem;
  }

  .cta {
    padding: 2rem 1.5rem;
  }

  .cta h2 {
    font-size: 1.75rem;
  }

  .service-card {
    padding: 2rem 1.5rem;
  }

  .legal-content {
    padding: 0 0.5rem;
  }
}