/* ===========================
   RESET & BASE
=========================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #1a2744;
  --accent: #e8401c;
  --accent2: #f0a500;
  --light: #f4f6fb;
  --white: #ffffff;
  --gray: #8892a4;
  --border: #dde3ef;
  --card-bg: #ffffff;
  --text: #1a2744;
  --text-light: #5a6680;
  --gradient: linear-gradient(135deg, #1a2744 0%, #2d4070 60%, #1a3a6e 100%);
  --gradient-accent: linear-gradient(135deg, #e8401c, #f0a500);
  --shadow: 0 8px 40px rgba(26,39,68,0.12);
  --shadow-lg: 0 24px 80px rgba(26,39,68,0.22);
  --radius: 16px;
  --radius-sm: 8px;
  --nav-h: 80px;
  --transition: 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
  cursor: none;
}

/* ===========================
   SCROLLBAR
=========================== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--light); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }

/* ===========================
   CUSTOM CURSOR
=========================== */
.cursor {
  width: 10px; height: 10px;
  background: var(--accent);
  border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  transition: transform 0.1s, width 0.3s, height 0.3s, background 0.3s;
}
.cursor-follower {
  width: 36px; height: 36px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.15s ease-out, width 0.3s, height 0.3s, opacity 0.3s;
  opacity: 0.5;
}
.cursor.hovered { width: 20px; height: 20px; background: var(--accent2); }
.cursor-follower.hovered { width: 60px; height: 60px; opacity: 0.2; }

@media (pointer: coarse) {
  .cursor, .cursor-follower { display: none; }
  body { cursor: auto; }
}

/* ===========================
   LOADER
=========================== */
.loader {
  position: fixed; inset: 0;
  background: var(--primary);
  display: flex; align-items: center; justify-content: center;
  z-index: 99999;
  transition: opacity 0.6s, visibility 0.6s;
}
.loader.hidden { opacity: 0; visibility: hidden; }
.loader-inner { text-align: center; }
.loader-logo {
  font-family: 'Playfair Display', serif;
  font-size: 4rem; font-weight: 900;
  color: var(--white);
  letter-spacing: 0.3em;
  animation: loaderPulse 1.5s ease-in-out infinite;
}
.loader-bar {
  width: 200px; height: 3px;
  background: rgba(255,255,255,0.2);
  border-radius: 10px;
  margin: 20px auto 0;
  overflow: hidden;
}
.loader-progress {
  height: 100%; width: 0;
  background: var(--gradient-accent);
  border-radius: 10px;
  animation: loaderBar 2s ease forwards;
}
@keyframes loaderPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(0.97); }
}
@keyframes loaderBar {
  0% { width: 0; }
  100% { width: 100%; }
}

/* ===========================
   PARTICLE CANVAS
=========================== */
#particleCanvas {
  position: fixed; top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.3;
}

/* ===========================
   NAVBAR
=========================== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 1000;
  transition: background var(--transition), box-shadow var(--transition), height var(--transition);
}
.navbar.scrolled {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(20px);
  box-shadow: 0 2px 30px rgba(26,39,68,0.10);
  height: 64px;
}
.nav-container {
  max-width: 1280px; margin: 0 auto;
  padding: 0 32px;
  height: 100%;
  display: flex; align-items: center; gap: 32px;
}
.nav-logo {
  display: flex; flex-direction: column;
  line-height: 1;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-lex {
  font-family: 'Playfair Display', serif;
  font-size: 2rem; font-weight: 900;
  color: var(--primary);
  letter-spacing: -0.02em;
  line-height: 1;
}
.logo-sub {
  font-size: 0.6rem; font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.navbar:not(.scrolled) .logo-lex { color: var(--white); }
.navbar:not(.scrolled) .logo-sub { color: rgba(255,255,255,0.7); }

.nav-menu {
  display: flex; align-items: center;
  list-style: none; gap: 4px;
  margin-left: auto;
}
.nav-link {
  font-size: 0.9rem; font-weight: 500;
  text-decoration: none;
  color: rgba(255,255,255,0.85);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
  display: flex; align-items: center; gap: 4px;
  position: relative;
}
.navbar.scrolled .nav-link { color: var(--text); }
.nav-link:hover { color: var(--accent); background: rgba(232,64,28,0.06); }
.nav-link::after {
  content: '';
  position: absolute; bottom: 2px; left: 14px; right: 14px;
  height: 2px; background: var(--accent);
  transform: scaleX(0);
  transition: transform var(--transition);
  border-radius: 2px;
}
.nav-link:hover::after { transform: scaleX(1); }
.nav-link.nav-cta {
  background: var(--accent);
  color: var(--white) !important;
  padding: 8px 20px;
  border-radius: 50px;
}
.nav-link.nav-cta:hover { background: #c73216; }
.nav-link.nav-cta::after { display: none; }

/* Dropdown */
.has-dropdown { position: relative; }
.dropdown {
  position: absolute; top: calc(100% + 8px); left: 0;
  min-width: 200px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  list-style: none;
  padding: 8px;
  opacity: 0; visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition);
}
.has-dropdown:hover .dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.dropdown li a {
  display: block; padding: 10px 16px;
  font-size: 0.875rem; color: var(--text);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
}
.dropdown li a:hover { background: var(--light); color: var(--accent); }

.nav-social {
  display: flex; gap: 12px; flex-shrink: 0;
}
.nav-social a {
  color: rgba(255,255,255,0.8);
  font-size: 1rem;
  text-decoration: none;
  transition: color var(--transition), transform var(--transition);
}
.navbar.scrolled .nav-social a { color: var(--gray); }
.nav-social a:hover { color: var(--accent); transform: translateY(-2px); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column; gap: 5px;
  background: none; border: none;
  cursor: pointer; padding: 6px;
  margin-left: auto;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}
.navbar.scrolled .hamburger span { background: var(--primary); }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===========================
   HERO
=========================== */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--nav-h);
  background: var(--gradient);
}
.hero-bg-gradient {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 80% at 70% 50%, rgba(46,96,180,0.4) 0%, transparent 70%),
              radial-gradient(ellipse 50% 50% at 30% 80%, rgba(232,64,28,0.15) 0%, transparent 60%);
  animation: heroGradientShift 8s ease-in-out infinite alternate;
}
@keyframes heroGradientShift {
  0% { opacity: 0.7; transform: scale(1) rotate(0deg); }
  100% { opacity: 1; transform: scale(1.05) rotate(2deg); }
}

.hero-shapes { position: absolute; inset: 0; overflow: hidden; }
.shape {
  position: absolute; border-radius: 50%;
  background: rgba(255,255,255,0.05);
  animation: shapeFloat 6s ease-in-out infinite;
}
.shape-1 { width: 500px; height: 500px; top: -100px; right: -100px; animation-duration: 7s; }
.shape-2 { width: 300px; height: 300px; bottom: -50px; right: 200px; animation-duration: 9s; animation-delay: -2s; }
.shape-3 { width: 200px; height: 200px; top: 30%; left: -50px; animation-duration: 11s; animation-delay: -4s; }
.shape-4 { width: 150px; height: 150px; top: 60%; right: 10%; animation-duration: 8s; animation-delay: -1s; background: rgba(232,64,28,0.1); }
@keyframes shapeFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  33% { transform: translateY(-20px) rotate(5deg); }
  66% { transform: translateY(10px) rotate(-3deg); }
}

.hero-content {
  position: relative; z-index: 2;
  max-width: 700px;
  padding: 80px 32px 80px;
  margin-left: calc((100vw - 1280px) / 2 + 32px);
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--white);
  padding: 8px 20px; border-radius: 50px;
  font-size: 0.875rem; font-weight: 500;
  margin-bottom: 24px;
  animation: badgePulse 2s ease-in-out infinite;
}
@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0.1); }
  50% { box-shadow: 0 0 0 8px rgba(255,255,255,0); }
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 20px;
}
.hero-line { display: block; }
.hero-line.highlight {
  display: inline-block;
  background: var(--accent);
  padding: 4px 20px 4px 8px;
  border-radius: 4px;
  margin-top: 8px;
  animation: highlightPop 0.5s 1.2s both cubic-bezier(0.23, 1, 0.32, 1);
}
@keyframes highlightPop {
  0% { transform: scale(0.8); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.hero-subtitle {
  font-size: 1.1rem; color: rgba(255,255,255,0.75);
  margin-bottom: 36px; line-height: 1.7;
}
.hero-actions {
  display: flex; gap: 16px; flex-wrap: wrap;
  margin-bottom: 60px;
}

.hero-stats {
  display: flex; align-items: center; gap: 32px;
  flex-wrap: wrap;
}
.stat {
  display: flex; flex-direction: column; align-items: center;
}
.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 2.4rem; font-weight: 900;
  color: var(--white);
  line-height: 1;
}
.stat span { color: var(--accent); font-size: 1.5rem; font-weight: 700; }
.stat p { font-size: 0.75rem; color: rgba(255,255,255,0.6); text-align: center; margin-top: 4px; }
.stat-divider {
  width: 1px; height: 48px;
  background: rgba(255,255,255,0.2);
}

.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.5); font-size: 0.75rem;
  animation: scrollBounce 2s ease-in-out infinite;
}
.scroll-arrow {
  width: 20px; height: 20px;
  border-right: 2px solid rgba(255,255,255,0.4);
  border-bottom: 2px solid rgba(255,255,255,0.4);
  transform: rotate(45deg);
}
@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ===========================
   BUTTONS
=========================== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 0.95rem; font-weight: 600;
  text-decoration: none;
  border: none; cursor: pointer;
  transition: all var(--transition);
  position: relative; overflow: hidden;
}
.btn::before {
  content: '';
  position: absolute; inset: 0;
  background: rgba(255,255,255,0.15);
  transform: translateX(-100%) skewX(-15deg);
  transition: transform 0.5s;
}
.btn:hover::before { transform: translateX(100%) skewX(-15deg); }
.btn-primary {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 8px 24px rgba(232,64,28,0.35);
}
.btn-primary:hover {
  background: #c73216;
  box-shadow: 0 12px 32px rgba(232,64,28,0.5);
  transform: translateY(-2px);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.5);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
  transform: translateY(-2px);
}
.btn-white {
  background: var(--white);
  color: var(--accent);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}
.btn-white:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.2);
}
.btn-full { width: 100%; justify-content: center; }

/* ===========================
   SECTIONS COMMON
=========================== */
.container {
  max-width: 1280px; margin: 0 auto;
  padding: 0 32px;
}
section { padding: 100px 0; position: relative; }

.section-tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(232,64,28,0.08);
  color: var(--accent);
  padding: 6px 16px; border-radius: 50px;
  font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  margin-bottom: 16px;
}
.section-tag::before {
  content: ''; width: 6px; height: 6px;
  border-radius: 50%; background: var(--accent);
  animation: tagDot 1.5s ease-in-out infinite;
}
@keyframes tagDot {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.5); }
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  color: var(--primary);
  line-height: 1.2;
  margin-bottom: 20px;
}

.section-header {
  text-align: center;
  max-width: 600px; margin: 0 auto 60px;
}
.section-header p { color: var(--text-light); line-height: 1.7; }

/* ===========================
   SOBRE NÓS
=========================== */
.sobre { background: var(--light); }
.sobre-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: center;
}
.sobre-img-wrapper { position: relative; }
.sobre-img-placeholder {
  width: 100%; aspect-ratio: 1;
  max-width: 460px;
  background: var(--gradient);
  border-radius: 30px;
  display: flex; align-items: center; justify-content: center;
  font-size: 6rem; color: rgba(255,255,255,0.2);
  position: relative; overflow: hidden;
}
.sobre-img-placeholder::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 60% 40%, rgba(232,64,28,0.3), transparent 60%);
}
.img-ring {
  position: absolute;
  border: 2px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  animation: ringExpand 3s ease-in-out infinite;
}
.ring-1 { width: 200px; height: 200px; }
.ring-2 { width: 300px; height: 300px; animation-delay: 1s; }
.ring-3 { width: 400px; height: 400px; animation-delay: 2s; }
@keyframes ringExpand {
  0% { transform: scale(0.8); opacity: 0.8; }
  100% { transform: scale(1.2); opacity: 0; }
}
.sobre-badge-float {
  position: absolute; bottom: -20px; right: -20px;
  background: var(--white);
  border-radius: 16px;
  padding: 16px 20px;
  box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 12px;
  animation: badgeFloat 3s ease-in-out infinite;
}
@keyframes badgeFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.sobre-badge-float > i { font-size: 1.5rem; color: var(--accent2); }
.sobre-badge-float strong { display: block; font-size: 0.875rem; color: var(--primary); }
.sobre-badge-float span { font-size: 0.75rem; color: var(--gray); }

.sobre-desc { color: var(--text-light); line-height: 1.8; margin-bottom: 32px; font-size: 1.05rem; }
.sobre-features { margin-bottom: 36px; display: flex; flex-direction: column; gap: 20px; }
.feature-item {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 16px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 2px 12px rgba(26,39,68,0.06);
  transition: transform var(--transition), box-shadow var(--transition);
}
.feature-item:hover {
  transform: translateX(6px);
  box-shadow: 0 8px 24px rgba(26,39,68,0.10);
}
.feature-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: rgba(232,64,28,0.08);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; flex-shrink: 0;
  transition: background var(--transition), color var(--transition);
}
.feature-item:hover .feature-icon { background: var(--accent); color: var(--white); }
.feature-item strong { display: block; font-size: 0.95rem; margin-bottom: 4px; }
.feature-item p { font-size: 0.85rem; color: var(--text-light); }

/* ===========================
   ÁREAS
=========================== */
.areas { background: var(--white); overflow: hidden; }
.areas-bg-text {
  position: absolute;
  font-family: 'Playfair Display', serif;
  font-size: 20vw; font-weight: 900;
  color: rgba(26,39,68,0.025);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none; white-space: nowrap;
  animation: bgTextFloat 8s ease-in-out infinite;
}
@keyframes bgTextFloat {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -52%) scale(1.02); }
}

.areas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.area-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px 32px;
  position: relative; overflow: hidden;
  transition: all var(--transition);
  cursor: default;
}
.area-card:hover {
  border-color: var(--accent);
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}
.area-card-bg {
  position: absolute; inset: 0;
  background: var(--gradient);
  opacity: 0;
  transition: opacity var(--transition);
  z-index: 0;
  pointer-events: none;
}
.area-card:hover .area-card-bg { opacity: 1; }
/* Only elevate content children, NOT the background overlay */
.area-card > *:not(.area-card-bg) { position: relative; z-index: 1; }
.area-icon {
  width: 64px; height: 64px;
  background: rgba(232,64,28,0.08);
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; color: var(--accent);
  margin-bottom: 20px;
  transition: background var(--transition), color var(--transition);
}
.area-card:hover .area-icon { background: rgba(255,255,255,0.15); color: var(--white); }
.area-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem; font-weight: 700;
  margin-bottom: 12px;
  transition: color var(--transition);
}
.area-card:hover h3 { color: var(--white); }
.area-card p { font-size: 0.9rem; color: var(--text-light); line-height: 1.7; margin-bottom: 20px; transition: color var(--transition); }
.area-card:hover p { color: rgba(255,255,255,0.75); }
.area-link {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--accent); font-size: 0.875rem; font-weight: 600;
  text-decoration: none;
  transition: gap var(--transition), color var(--transition);
}
.area-link:hover { gap: 12px; }
.area-card:hover .area-link { color: var(--white); }

/* ===========================
   CASES
=========================== */
.cases { background: var(--light); }
.cases-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px; align-items: start;
}
.case-card {
  background: var(--white);
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 4px 20px rgba(26,39,68,0.06);
  position: relative;
  transition: all var(--transition);
  border: 1px solid var(--border);
}
.case-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}
.case-card.featured {
  background: var(--gradient);
  border-color: transparent;
  transform: scale(1.03);
}
.case-card.featured:hover { transform: scale(1.03) translateY(-8px); }
.case-quote {
  font-size: 1.5rem; color: var(--accent);
  margin-bottom: 16px;
  opacity: 0.6;
}
.case-card.featured .case-quote { color: rgba(255,255,255,0.4); }
.case-card p { line-height: 1.7; color: var(--text-light); margin-bottom: 24px; font-size: 0.95rem; }
.case-card.featured p { color: rgba(255,255,255,0.85); }
.case-author {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 20px;
}
.author-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--light);
  display: flex; align-items: center; justify-content: center;
  color: var(--gray); font-size: 1.1rem;
}
.case-card.featured .author-avatar { background: rgba(255,255,255,0.15); color: rgba(255,255,255,0.7); }
.case-author strong { display: block; font-size: 0.9rem; }
.case-author span { font-size: 0.8rem; color: var(--gray); }
.case-card.featured .case-author strong { color: var(--white); }
.case-card.featured .case-author span { color: rgba(255,255,255,0.6); }
.case-result {
  background: rgba(232,64,28,0.08);
  color: var(--accent);
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 0.85rem; font-weight: 500;
}
.case-card.featured .case-result { background: rgba(255,255,255,0.12); color: var(--white); }
.case-result span { font-weight: 700; }

/* ===========================
   EQUIPE
=========================== */
.equipe { background: var(--white); }
.equipe-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
}
.membro {
  text-align: center; padding: 40px 24px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--white);
  transition: all var(--transition);
}
.membro:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}
.membro-avatar {
  width: 80px; height: 80px; border-radius: 50%;
  background: var(--gradient);
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; color: rgba(255,255,255,0.3);
  margin: 0 auto 20px;
  position: relative;
}
.membro-ring {
  position: absolute; inset: -6px;
  border-radius: 50%;
  border: 2px dashed rgba(232,64,28,0.3);
  animation: ringRotate 10s linear infinite;
}
@keyframes ringRotate { to { transform: rotate(360deg); } }
.membro:hover .membro-ring { border-color: var(--accent); }
.membro h4 { font-family: 'Playfair Display', serif; font-size: 1.15rem; margin-bottom: 4px; }
.membro > span { font-size: 0.8rem; color: var(--accent); font-weight: 500; display: block; margin-bottom: 12px; }
.membro p { font-size: 0.85rem; color: var(--text-light); line-height: 1.6; margin-bottom: 20px; }
.membro-social { display: flex; justify-content: center; gap: 12px; }
.membro-social a {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--gray); font-size: 0.875rem;
  text-decoration: none;
  transition: all var(--transition);
}
.membro-social a:hover { background: var(--accent); border-color: var(--accent); color: var(--white); transform: translateY(-2px); }

/* ===========================
   CTA BANNER
=========================== */
.cta-banner {
  background: var(--gradient-accent);
  padding: 80px 0; overflow: hidden; position: relative;
}
.cta-shapes { position: absolute; inset: 0; overflow: hidden; }
.cta-shape {
  position: absolute; border-radius: 50%;
  background: rgba(255,255,255,0.08);
  animation: ctaShapeFloat 5s ease-in-out infinite;
}
.cta-shape-1 { width: 400px; height: 400px; top: -200px; right: -100px; }
.cta-shape-2 { width: 250px; height: 250px; bottom: -100px; left: 10%; animation-delay: -2s; }
@keyframes ctaShapeFloat {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(20px, -20px); }
}
.cta-content { text-align: center; position: relative; z-index: 1; }
.cta-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--white);
  font-weight: 900; margin-bottom: 16px;
}
.cta-content p { font-size: 1.1rem; color: rgba(255,255,255,0.85); margin-bottom: 36px; }

/* ===========================
   CONTATO
=========================== */
.contato { background: var(--light); }
.contato-grid {
  display: grid; grid-template-columns: 1fr 1.2fr;
  gap: 80px; align-items: start;
}
.contato-info .section-title { margin-top: 8px; }
.contato-info > p { color: var(--text-light); line-height: 1.8; margin-bottom: 36px; }
.contato-items { display: flex; flex-direction: column; gap: 24px; }
.contato-item {
  display: flex; align-items: flex-start; gap: 16px;
}
.contato-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--white);
  box-shadow: 0 4px 16px rgba(26,39,68,0.08);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent); font-size: 1rem; flex-shrink: 0;
  transition: all var(--transition);
}
.contato-item:hover .contato-icon {
  background: var(--accent); color: var(--white);
  transform: rotate(-5deg);
}
.contato-item strong { display: block; font-size: 0.9rem; margin-bottom: 2px; }
.contato-item span { font-size: 0.875rem; color: var(--text-light); }

.contato-form-col {
  background: var(--white);
  border-radius: 24px;
  padding: 48px 40px;
  box-shadow: var(--shadow);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 20px; }
.form-group label { font-size: 0.85rem; font-weight: 600; color: var(--text); }
.form-group input,
.form-group select,
.form-group textarea {
  padding: 14px 16px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem; color: var(--text);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(232,64,28,0.08);
}
.form-group textarea { resize: vertical; }
.form-error { font-size: 0.78rem; color: var(--accent); min-height: 16px; }
.form-success {
  display: none; margin-top: 16px;
  padding: 14px 20px; border-radius: 10px;
  background: rgba(34,197,94,0.08); color: #16a34a;
  font-size: 0.9rem; font-weight: 500;
  animation: successPop 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}
@keyframes successPop {
  0% { transform: scale(0.9); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* ===========================
   FOOTER
=========================== */
.footer { background: var(--primary); }
.footer-top { padding: 80px 0 48px; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
}
.footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem; font-weight: 900;
  color: var(--white);
  margin-bottom: 12px;
}
.footer-logo span { color: var(--accent); }
.footer-brand p { font-size: 0.875rem; color: rgba(255,255,255,0.5); line-height: 1.7; margin-bottom: 24px; }
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.5); font-size: 0.9rem;
  text-decoration: none;
  transition: all var(--transition);
}
.footer-social a:hover { background: var(--accent); border-color: var(--accent); color: var(--white); transform: translateY(-3px); }
.footer-links h5 {
  font-size: 0.875rem; font-weight: 700;
  color: var(--white);
  letter-spacing: 0.08em; text-transform: uppercase;
  margin-bottom: 20px;
}
.footer-links ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links ul li a {
  font-size: 0.875rem; color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: color var(--transition), padding-left var(--transition);
  display: block;
}
.footer-links ul li a:hover { color: var(--accent); padding-left: 4px; }
.footer-newsletter h5 {
  font-size: 0.875rem; font-weight: 700;
  color: var(--white);
  letter-spacing: 0.08em; text-transform: uppercase;
  margin-bottom: 12px;
}
.footer-newsletter p { font-size: 0.85rem; color: rgba(255,255,255,0.5); line-height: 1.6; margin-bottom: 16px; }
.newsletter-form {
  display: flex; gap: 8px;
}
.newsletter-form input {
  flex: 1; padding: 12px 16px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  color: var(--white); font-size: 0.875rem;
  outline: none;
  transition: border-color var(--transition);
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.3); }
.newsletter-form input:focus { border-color: var(--accent); }
.newsletter-form button {
  width: 44px; height: 44px;
  background: var(--accent); border: none;
  border-radius: 8px;
  color: var(--white); cursor: pointer;
  font-size: 0.9rem;
  transition: background var(--transition), transform var(--transition);
  flex-shrink: 0;
}
.newsletter-form button:hover { background: #c73216; transform: scale(1.05); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 24px 0;
}
.footer-bottom .container {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 8px;
}
.footer-bottom p { font-size: 0.8rem; color: rgba(255,255,255,0.3); }

/* ===========================
   WHATSAPP FLOAT
=========================== */
.whatsapp-float {
  position: fixed; bottom: 32px; right: 32px;
  width: 60px; height: 60px; border-radius: 50%;
  background: #25D366;
  color: var(--white); font-size: 1.8rem;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(37,211,102,0.4);
  z-index: 999;
  transition: all var(--transition);
  animation: waPulse 2.5s ease-in-out infinite;
}
@keyframes waPulse {
  0%, 100% { box-shadow: 0 8px 24px rgba(37,211,102,0.4); }
  50% { box-shadow: 0 8px 48px rgba(37,211,102,0.7); }
}
.whatsapp-float:hover { transform: scale(1.12) rotate(-5deg); }
.whatsapp-tooltip {
  position: absolute; right: 70px;
  background: var(--primary);
  color: var(--white); font-size: 0.8rem; font-weight: 500;
  padding: 6px 12px; border-radius: 8px;
  white-space: nowrap;
  opacity: 0; pointer-events: none;
  transform: translateX(10px);
  transition: all var(--transition);
}
.whatsapp-tooltip::after {
  content: '';
  position: absolute; right: -6px; top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-left-color: var(--primary);
}
.whatsapp-float:hover .whatsapp-tooltip { opacity: 1; transform: translateX(0); }

/* ===========================
   BACK TO TOP
=========================== */
.back-to-top {
  position: fixed; bottom: 108px; right: 32px;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--primary);
  color: var(--white); border: none;
  font-size: 0.9rem; cursor: pointer;
  box-shadow: 0 4px 16px rgba(26,39,68,0.3);
  opacity: 0; pointer-events: none;
  transform: translateY(20px);
  transition: all var(--transition);
  z-index: 998;
}
.back-to-top.visible { opacity: 1; pointer-events: all; transform: translateY(0); }
.back-to-top:hover { background: var(--accent); transform: translateY(-3px); }

/* ===========================
   REVEAL ANIMATIONS
=========================== */
.reveal-up, .reveal-left, .reveal-right {
  opacity: 0; transition: opacity 0.7s, transform 0.7s;
  transition-timing-function: cubic-bezier(0.23, 1, 0.32, 1);
}
.reveal-up { transform: translateY(50px); }
.reveal-left { transform: translateX(-60px); }
.reveal-right { transform: translateX(60px); }
.revealed { opacity: 1 !important; transform: translate(0, 0) !important; }

.animate-fade-up {
  opacity: 0; transform: translateY(30px);
  animation: fadeUp 0.8s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}
.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.5s; }
.delay-3 { animation-delay: 0.8s; }
.delay-4 { animation-delay: 1s; }
.delay-5 { animation-delay: 1.3s; }
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 1024px) {
  .hero-content { margin-left: 32px; }
  .sobre-grid { grid-template-columns: 1fr; gap: 48px; }
  .sobre-img-wrapper { max-width: 380px; margin: 0 auto; }
  .contato-grid { grid-template-columns: 1fr; gap: 48px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}

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

  /* Always show hamburger, hide desktop items */
  .hamburger { display: flex; }
  .nav-social { display: none; }

  /* Mobile nav: full-width dropdown below navbar */
  .nav-menu {
    position: fixed;
    top: 64px; left: 0; right: 0;
    background: #1a2744;
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.45s cubic-bezier(0.23, 1, 0.32, 1);
    margin-left: 0;
    z-index: 999;
    border-bottom: 2px solid rgba(255,255,255,0.08);
    box-shadow: 0 16px 40px rgba(0,0,0,0.3);
  }
  .nav-menu.open {
    max-height: 520px;
    padding: 8px 0 20px;
  }

  .nav-menu li {
    width: 100%;
    text-align: center;
  }

  /* Force white text on mobile regardless of scroll state */
  .nav-menu .nav-link,
  .navbar .nav-menu .nav-link,
  .navbar.scrolled .nav-menu .nav-link {
    color: rgba(255,255,255,0.9) !important;
    padding: 16px 24px;
    width: 100%;
    display: block;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    border-radius: 0;
    justify-content: center;
  }
  .nav-menu li:last-child .nav-link { border-bottom: none; }
  .nav-link::after { display: none; }

  /* CTA button in mobile menu */
  .nav-link.nav-cta {
    margin: 8px auto 0;
    width: auto !important;
    display: inline-block !important;
    padding: 12px 32px !important;
    border-radius: 50px !important;
    text-align: center;
    border-bottom: none !important;
  }

  .nav-menu li:has(.nav-cta) {
    display: flex;
    justify-content: center;
    padding: 4px 0;
    border-bottom: none;
  }

  /* Mobile dropdown */
  .dropdown {
    position: static;
    opacity: 1; visibility: visible;
    transform: none;
    box-shadow: none;
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
    margin: 0 24px 4px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    padding: 0;
  }
  .has-dropdown.open .dropdown { max-height: 300px; padding: 8px; }
  .dropdown li a { color: rgba(255,255,255,0.65) !important; padding: 10px 14px; text-align: center; }
  .dropdown li a:hover { color: var(--accent) !important; background: rgba(255,255,255,0.06); }

  /* Hamburger bars white always on mobile */
  .hamburger span { background: var(--white) !important; }

  /* Hero */
  .hero-content { padding: 50px 20px 60px; margin-left: 0; }
  .hero-stats { gap: 16px; flex-wrap: nowrap; }
  .stat-divider { height: 40px; }

  /* Forms */
  .form-row { grid-template-columns: 1fr; }
  .contato-form-col { padding: 28px 20px; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom .container { flex-direction: column; text-align: center; }

  /* Sections */
  section { padding: 64px 0; }

  /* Areas: 1 col on mobile */
  .areas-grid { grid-template-columns: 1fr; }

  /* Cases: 1 col */
  .cases-grid { grid-template-columns: 1fr; }
  .case-card.featured { transform: none; }
  .case-card.featured:hover { transform: translateY(-8px); }

  /* Equipe: 2 cols */
  .equipe-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
}

@media (max-width: 480px) {
  .hero-title { font-size: clamp(2rem, 8vw, 2.8rem); }
  .hero-badge { font-size: 0.8rem; }
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn { width: 100%; justify-content: center; }

  /* Stats: row layout with smaller numbers */
  .hero-stats { flex-direction: row; justify-content: center; gap: 12px; flex-wrap: nowrap; }
  .stat-num { font-size: 1.6rem; }
  .stat p { font-size: 0.65rem; }
  .stat > span { font-size: 1.1rem; }
  .stat-divider { width: 1px; height: 40px; }

  /* Equipe: 1 col on very small */
  .equipe-grid { grid-template-columns: 1fr; }

  /* Section titles */
  .section-title { font-size: 1.8rem; }

  /* Contato */
  .contato-form-col { padding: 24px 16px; }
  .contato-grid { gap: 36px; }

  /* Footer */
  .footer-newsletter .newsletter-form { flex-direction: column; }
  .newsletter-form button { width: 100%; border-radius: 8px; height: 44px; }
}