/* ============================================
   MARIA EMÍLIA BOTTICELLI — GLOBAL STYLES
   Design: Editorial-clean, Brazilian corporate
   Palette: Deep navy, warm white, soft grays
   Fonts: DM Serif Display + Plus Jakarta Sans
   ============================================ */

/* ---------- CSS Variables ---------- */
:root {
  --navy: #0c1d36;
  --navy-light: #142d4f;
  --navy-dark: #060f1c;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-soft: #dbeafe;
  --gold: #c9a84c;
  --gold-light: #f5ecd3;
  --text: #1e293b;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --bg: #fafbfc;
  --bg-warm: #f8f6f3;
  --white: #ffffff;
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --shadow-sm: 0 1px 2px rgba(12,29,54,0.06);
  --shadow-md: 0 4px 16px rgba(12,29,54,0.08);
  --shadow-lg: 0 12px 40px rgba(12,29,54,0.12);
  --shadow-xl: 0 20px 60px rgba(12,29,54,0.16);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;
  --font-display: 'DM Serif Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --header-h: 72px;
  --container: 1200px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
}

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

img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-hover); }

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

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

.site-header.scrolled {
  background: rgba(255,255,255,0.97);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--navy);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
}

.logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.2rem;
  border-radius: var(--radius-sm);
}

.logo-text {
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.nav-link {
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--navy);
  background: var(--border-light);
}

.nav-link.active {
  color: var(--navy);
  background: var(--accent-soft);
  font-weight: 600;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all var(--transition);
}

.menu-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ---------- HERO SECTION (Home) ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  color: var(--white);
  overflow: hidden;
  padding: calc(var(--header-h) + 40px) 24px 80px;
}

.hero-bg-shapes {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.08;
}

.shape-1 {
  width: 600px;
  height: 600px;
  background: var(--accent);
  top: -200px;
  right: -100px;
  animation: floatShape 20s ease-in-out infinite;
}

.shape-2 {
  width: 400px;
  height: 400px;
  background: var(--gold);
  bottom: -100px;
  left: -100px;
  animation: floatShape 25s ease-in-out infinite reverse;
}

.shape-3 {
  width: 250px;
  height: 250px;
  background: var(--white);
  top: 40%;
  left: 60%;
  animation: floatShape 18s ease-in-out infinite 5s;
}

@keyframes floatShape {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.05); }
  66% { transform: translate(-20px, 15px) scale(0.95); }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero-eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--gold);
  margin-bottom: 24px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 24px;
  color: var(--white);
}

.hero-title-accent {
  color: var(--gold);
  display: block;
  font-style: italic;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,0.7);
  font-weight: 300;
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Scroll indicator */
.hero-scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.4);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);
  animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: scaleY(1); opacity: 1; }
  50% { transform: scaleY(0.5); opacity: 0.3; }
}

/* ---------- PAGE HERO (Legal pages) ---------- */
.page-hero {
  position: relative;
  padding: calc(var(--header-h) + 64px) 24px 64px;
  background: var(--navy);
  color: var(--white);
  text-align: center;
  overflow: hidden;
}

.page-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  margin-bottom: 12px;
}

.page-hero-subtitle {
  color: rgba(255,255,255,0.5);
  font-size: 0.9rem;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37,99,235,0.3);
}

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

.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.6);
  color: var(--white);
}

.btn-full {
  width: 100%;
}

/* ---------- SECTIONS ---------- */
.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  color: var(--navy);
  font-weight: 400;
  margin-bottom: 16px;
}

.section-divider {
  width: 48px;
  height: 3px;
  background: var(--gold);
  margin: 0 auto;
  border-radius: 2px;
}

/* ---------- SOBRE NÓS ---------- */
.sobre {
  padding: 100px 0;
  background: var(--white);
}

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

.sobre-text p {
  margin-bottom: 20px;
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.8;
}

.sobre-text p:last-child { margin-bottom: 0; }

.sobre-text strong {
  color: var(--navy);
  font-weight: 600;
}

.sobre-cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.service-card {
  padding: 28px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: all var(--transition);
}

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

.service-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  border-radius: var(--radius-sm);
  color: var(--accent);
  margin-bottom: 16px;
}

.service-icon svg {
  width: 22px;
  height: 22px;
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--navy);
  margin-bottom: 8px;
  font-weight: 400;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

/* ---------- CONTATO ---------- */
.contato {
  padding: 100px 0;
  background: var(--bg-warm);
}

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

.contato-intro {
  font-size: 1.05rem;
  color: var(--text);
  margin-bottom: 32px;
  line-height: 1.7;
}

.contato-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 24px;
}

.contato-item-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius-sm);
}

.contato-item-icon svg {
  width: 20px;
  height: 20px;
}

.contato-item strong {
  display: block;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 2px;
  font-weight: 600;
}

.contato-item a,
.contato-item span {
  font-size: 0.92rem;
  color: var(--text);
  line-height: 1.5;
}

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

/* Form */
.contato-form {
  background: var(--white);
  padding: 36px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
  background: var(--white);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-note {
  margin-top: 16px;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
}

/* ---------- LEGAL CONTENT ---------- */
.legal-content {
  padding: 72px 0 100px;
  background: var(--white);
}

.legal-container {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 48px;
  align-items: start;
}

/* TOC sidebar */
.legal-toc {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
}

.legal-toc h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--navy);
  margin-bottom: 16px;
}

.legal-toc ol {
  list-style: none;
  counter-reset: toc;
}

.legal-toc ol li {
  counter-increment: toc;
}

.legal-toc ol li a {
  display: block;
  padding: 6px 0;
  font-size: 0.82rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-light);
  transition: all var(--transition);
}

.legal-toc ol li a::before {
  content: counter(toc) ". ";
  font-weight: 600;
  color: var(--text-light);
}

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

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

/* Legal body */
.legal-body article {
  margin-bottom: 48px;
  scroll-margin-top: calc(var(--header-h) + 32px);
}

.legal-body article:last-child {
  margin-bottom: 0;
}

.legal-body h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--navy);
  font-weight: 400;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border-light);
}

.legal-body h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  margin: 24px 0 12px;
}

.legal-body p {
  margin-bottom: 16px;
  font-size: 0.92rem;
  line-height: 1.8;
  color: var(--text);
}

.legal-body p:last-child {
  margin-bottom: 0;
}

.legal-body strong {
  color: var(--navy);
  font-weight: 600;
}

.legal-highlight {
  background: var(--bg);
  border-left: 4px solid var(--accent);
  padding: 20px 24px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 20px 0;
}

.legal-highlight p {
  margin-bottom: 4px;
  font-size: 0.9rem;
}

.legal-highlight p:last-child {
  margin-bottom: 0;
}

/* ---------- FOOTER ---------- */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.6);
  padding: 48px 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.8);
  font-weight: 500;
}

.footer-brand .logo-icon {
  width: 32px;
  height: 32px;
  font-size: 0.9rem;
  background: rgba(255,255,255,0.1);
}

.footer-nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-nav a {
  color: rgba(255,255,255,0.5);
  font-size: 0.82rem;
  transition: color var(--transition);
}

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

.footer-legal p {
  font-size: 0.78rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.4);
}

/* ---------- WHATSAPP FLOAT ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  width: 56px;
  height: 56px;
  background: #25d366;
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37,211,102,0.4);
  transition: all var(--transition);
}

.whatsapp-float svg {
  width: 28px;
  height: 28px;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(37,211,102,0.5);
  color: var(--white);
}

/* ---------- ANIMATIONS ---------- */
[data-animate] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}

[data-delay="1"] { transition-delay: 0.1s; }
[data-delay="2"] { transition-delay: 0.2s; }
[data-delay="3"] { transition-delay: 0.3s; }
[data-delay="4"] { transition-delay: 0.4s; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .sobre-grid,
  .contato-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .legal-container {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .legal-toc {
    position: static;
  }
}

@media (max-width: 768px) {
  :root {
    --header-h: 64px;
  }

  .menu-toggle {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: all var(--transition);
  }

  .main-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .nav-link {
    padding: 12px 16px;
    font-size: 0.95rem;
  }

  .hero {
    min-height: 90vh;
    padding: calc(var(--header-h) + 32px) 20px 60px;
  }

  .hero-title {
    font-size: clamp(1.8rem, 6vw, 2.6rem);
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    padding: 12px 28px;
  }

  .sobre,
  .contato {
    padding: 64px 0;
  }

  .contato-form {
    padding: 24px;
  }

  .hero-scroll-indicator {
    display: none;
  }

  .page-hero {
    padding: calc(var(--header-h) + 40px) 20px 40px;
  }

  .legal-content {
    padding: 40px 0 64px;
  }

  .legal-body h2 {
    font-size: 1.25rem;
  }

  .whatsapp-float {
    bottom: 16px;
    right: 16px;
    width: 50px;
    height: 50px;
  }

  .whatsapp-float svg {
    width: 24px;
    height: 24px;
  }
}

@media (max-width: 480px) {
  .logo-text {
    max-width: 140px;
    font-size: 0.85rem;
  }

  .contato-form {
    padding: 20px 16px;
  }

  .legal-toc {
    padding: 16px;
  }
}

/* ---------- PRINT STYLES ---------- */
@media print {
  .site-header,
  .whatsapp-float,
  .hero-scroll-indicator,
  .menu-toggle {
    display: none !important;
  }

  .hero {
    min-height: auto;
    padding: 40px 0;
  }

  body {
    font-size: 12pt;
    color: #000;
  }
}
