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

/* Fjalla One is used only for display headlines */

/* --- DESIGN TOKENS --- */
:root {
  /* Colors */
  --color-blue: #071E56;
  --color-blue-rgb: 7, 30, 86;
  --color-gold: #D8B07A;
  --color-gold-rgb: 216, 176, 122;
  --color-ivory: #F7F4EF;
  --color-ivory-rgb: 247, 244, 239;
  --color-dark: #121212;
  --color-text-dark: #1A1A1A;
  --color-text-light: #F7F4EF;
  --color-border: rgba(7, 30, 86, 0.1);
  --color-border-light: rgba(247, 244, 239, 0.15);

  /* Fonts */
  --font-display: 'Fjalla One', system-ui, sans-serif;
  --font-serif: 'Quicksand', system-ui, sans-serif;
  --font-sans: 'Quicksand', system-ui, sans-serif;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-xxl: 6rem;

  /* Layout */
  --max-width: 1200px;
  --header-height: 80px;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-normal: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

body {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-text-dark);
  background-color: var(--color-ivory);
  overflow-x: hidden;
  scrollbar-color: var(--color-gold) var(--color-blue);
  scrollbar-width: thin;
}

/* Custom Scrollbar for Webkit */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--color-blue);
}
::-webkit-scrollbar-thumb {
  background: var(--color-gold);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #c39a65;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--color-blue);
  font-weight: 400;
  line-height: 1.15;
}

.font-serif {
  font-family: var(--font-serif);
}

.font-sans {
  font-family: var(--font-sans);
}

/* Standard Heading Sizes */
.display-title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 4.25rem);
  font-weight: 400; /* Fjalla One has no weight variants, 400 = bold look */
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.section-title {
  font-family: var(--font-sans);
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4vw, 2.5rem);
  font-weight: 400;
  letter-spacing: 0;
}

.subsection-title {
  font-family: var(--font-sans);
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3vw, 1.6rem);
  font-weight: 400;
  letter-spacing: 0;
}

.body-text {
  font-family: var(--font-sans);
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  font-weight: 400;
  line-height: 1.75;
}

.caption-text {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Color Utilities */
.text-blue { color: var(--color-blue); }
.text-gold { color: var(--color-gold); }
.text-ivory { color: var(--color-ivory); }
.text-muted { color: rgba(7, 30, 86, 0.7); }
.text-muted-light { color: rgba(247, 244, 239, 0.75); }

/* --- COMMON LAYOUT & STRUCTURAL --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-md);
  padding-right: var(--space-md);
}

.section {
  padding-top: var(--space-xl);
  padding-bottom: var(--space-xl);
}

@media (min-width: 768px) {
  .section {
    padding-top: var(--space-xxl);
    padding-bottom: var(--space-xxl);
  }
}

.section-dark {
  position: relative;
  overflow: hidden;
  background-color: var(--color-blue);
  color: var(--color-text-light);
}

.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 {
  color: var(--color-text-light);
}

/* negative space utility */
.margin-top-sm { margin-top: var(--space-sm); }
.margin-top-md { margin-top: var(--space-md); }
.margin-top-lg { margin-top: var(--space-lg); }

/* Grid systems */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

.grid-4 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

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

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

/* --- HEADERS & NAVIGATION (floating pill, logo + socials outside the frame) --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: 20px var(--space-lg) 0;
  pointer-events: none; /* clicks pass through the empty margin around the pill/logo/socials */
  transition: transform 0.35s cubic-bezier(0.65, 0, 0.35, 1);
}

/* Hides on scroll down, slides back in on scroll up */
.header--hidden {
  transform: translateY(-130%);
}

.header-brand,
.header-socials {
  flex: 1;
  display: flex;
  align-items: center;
  min-width: 0;
  pointer-events: auto;
}

.header-socials {
  justify-content: flex-end;
  gap: var(--space-sm);
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-img {
  height: 26px;
  width: auto;
  filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.3));
  transition: transform var(--transition-fast), filter var(--transition-fast);
}

.logo-img:hover {
  transform: scale(1.02);
}

.header--on-light .logo-img {
  filter: none;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-light);
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.3));
  transition: color var(--transition-fast), filter var(--transition-fast);
}

.social-link svg {
  width: 17px;
  height: 17px;
}

.social-link:hover {
  color: var(--color-gold);
}

.header--on-light .social-link {
  color: var(--color-blue);
  filter: none;
}

/* The nav pill — sized to its own content, always centered between the logo and socials */
.header .container {
  pointer-events: auto;
  flex: 0 0 auto;
  width: auto;
  max-width: none;
  margin: 0;
  display: flex;
  align-items: center;
  padding: 0.75rem 2.2rem;
  background-color: rgba(247, 244, 239, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 999px;
  box-shadow: 0 10px 30px -12px rgba(7, 30, 86, 0.25);
  transition: box-shadow 0.3s ease;
}

.header.scrolled .container {
  box-shadow: 0 14px 36px -10px rgba(7, 30, 86, 0.35);
}

/* Navigation Menu */
.nav {
  display: none;
}

.nav-list {
  display: flex;
  align-items: center;
  list-style: none;
  gap: var(--space-lg);
}

.nav-item-dropdown {
  position: relative;
}

.nav-link {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-blue);
  text-decoration: none;
  position: relative;
  padding: 0.5rem 0;
  transition: color var(--transition-fast);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1.5px;
  background-color: var(--color-gold);
  transition: width var(--transition-fast);
}

.nav-link:hover {
  color: var(--color-gold);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* "Serviços" dropdown — direct shortcuts to every service page */
.nav-dropdown {
  position: absolute;
  top: calc(100% + 20px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.15rem 2rem;
  width: 460px;
  padding: var(--space-md) var(--space-lg);
  background-color: var(--color-ivory);
  border-radius: 14px;
  box-shadow: 0 20px 45px -15px rgba(7, 30, 86, 0.35);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-fast), transform var(--transition-fast), visibility 0s linear 0.2s;
}

.nav-item-dropdown:hover .nav-dropdown,
.nav-item-dropdown:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.nav-dropdown a {
  padding: 0.55rem 0;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-blue);
  text-decoration: none;
  border-bottom: 1px solid var(--color-border);
  transition: color var(--transition-fast);
}

.nav-dropdown a:hover {
  color: var(--color-gold);
}

/* Mobile Menu Button */
.menu-toggle {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 22px;
  height: 14px;
}

.menu-bar {
  width: 100%;
  height: 2px;
  background-color: var(--color-blue);
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.menu-toggle.active .menu-bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle.active .menu-bar:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active .menu-bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Mobile Sidebar */
.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100vh;
  background-color: var(--color-blue);
  z-index: 999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: right var(--transition-normal);
  overflow-y: auto;
  padding: var(--space-xl) 0;
}

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

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  list-style: none;
  gap: var(--space-lg);
  text-align: center;
}

.mobile-nav-link {
  font-family: var(--font-sans);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-text-light);
  text-decoration: none;
  transition: color var(--transition-fast);
  letter-spacing: -0.02em;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  color: var(--color-gold);
}

.mobile-nav-sublist {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  list-style: none;
  margin-top: var(--space-sm);
}

.mobile-nav-sublink {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(247, 244, 239, 0.6);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.mobile-nav-sublink:hover {
  color: var(--color-gold);
}

@media (max-width: 767px) {
  .header-socials {
    display: none;
  }
}

@media (min-width: 768px) {
  .nav {
    display: flex;
  }
  .menu-toggle {
    display: none;
  }
}

/* --- BUTTONS & CALL TO ACTION --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  padding: 0.85rem 1.85rem;
  border-radius: 4px;
  cursor: pointer;
  transition: transform var(--transition-fast), background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast), box-shadow var(--transition-fast);
  border: 1px solid transparent;
  outline: none;
}

.btn-primary {
  background-color: var(--color-blue);
  color: var(--color-ivory);
  box-shadow: 0 4px 15px rgba(7, 30, 86, 0.15);
}

.btn-primary:hover {
  background-color: #0b2d7c;
  color: var(--color-gold);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(7, 30, 86, 0.25);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-blue);
  border-color: var(--color-blue);
}

.btn-secondary:hover {
  background-color: rgba(7, 30, 86, 0.05);
  color: var(--color-blue);
  transform: translateY(-2px);
}

.btn-accent {
  background-color: var(--color-gold);
  color: var(--color-blue);
}

.btn-accent:hover {
  background-color: #e2be8e;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(216, 176, 122, 0.2);
}

.btn-outline-light {
  background-color: transparent;
  color: var(--color-text-light);
  border-color: rgba(247, 244, 239, 0.3);
}

.btn-outline-light:hover {
  border-color: var(--color-gold);
  color: var(--color-gold);
  transform: translateY(-2px);
}

/* Glow buttons — dark sections only (hero, section-dark) */
.btn-glow {
  background-color: var(--color-gold);
  color: var(--color-blue);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-color: var(--color-gold);
  transition: box-shadow var(--transition-normal), background-color var(--transition-normal), transform var(--transition-fast);
}

.btn-glow:hover,
.btn-glow:focus-visible {
  background-color: #e2be8e;
  box-shadow: 0 0 8px rgba(216, 176, 122, 0.6), 0 0 24px rgba(216, 176, 122, 0.4), 0 0 48px rgba(216, 176, 122, 0.2);
  transform: translateY(-2px);
}

.btn-glow-outline {
  background-color: transparent;
  color: rgba(247, 244, 239, 0.85);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-color: rgba(247, 244, 239, 0.4);
  transition: box-shadow var(--transition-normal), background-color var(--transition-normal), color var(--transition-normal), border-color var(--transition-normal), transform var(--transition-fast);
}

.btn-glow-outline:hover,
.btn-glow-outline:focus-visible {
  color: var(--color-blue);
  background-color: var(--color-gold);
  border-color: var(--color-gold);
  box-shadow: 0 0 8px rgba(216, 176, 122, 0.6), 0 0 24px rgba(216, 176, 122, 0.4), 0 0 48px rgba(216, 176, 122, 0.2);
  transform: translateY(-2px);
}

.btn-link {
  padding: 0;
  background: none;
  border: none;
  color: var(--color-blue);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-link::after {
  content: '→';
  transition: transform var(--transition-fast);
}

.btn-link:hover {
  color: var(--color-gold);
}

.btn-link:hover::after {
  transform: translateX(4px);
}

.section-dark .btn-link {
  color: var(--color-text-light);
}
.section-dark .btn-link:hover {
  color: var(--color-gold);
}

/* --- HERO SECTION --- */
.hero-section {
  position: relative;
  padding-top: calc(var(--header-height) + var(--space-lg));
  padding-bottom: var(--space-lg);
  min-height: 85vh;
  display: flex;
  align-items: center;
  background-color: var(--color-blue);
  color: var(--color-text-light);
  overflow: hidden;
}

/* Home hero video background — the shader canvas layers on top of it (see below) */
.hero-video-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-video-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Navy scrim over the video so text stays legible regardless of footage */
.hero-video-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(7, 30, 86, 0.82) 0%, rgba(7, 30, 86, 0.68) 60%, rgba(7, 30, 86, 0.55) 100%);
}

/* Animated aurora shader canvas (brand colors), used on every dark hero.
   Rendered by main.js; sits behind the container via the sibling rule below.
   On the Home hero it sits on top of the video and blends into it. */
.hero-shader-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  display: block;
}

.hero-video-bg + .hero-shader-canvas {
  mix-blend-mode: screen;
  opacity: 0.85;
}

.hero-shader-canvas + .container {
  position: relative;
  z-index: 1;
}

/* Keep the hero-pattern class for other pages that still use it */
.hero-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../img/Pattern.png');
  background-size: repeat;
  opacity: 0.05;
  pointer-events: none;
  z-index: 1;
}

.hero-centered {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 1.1rem;
  border: 1px solid rgba(216, 176, 122, 0.35);
  border-radius: 999px;
  background: rgba(247, 244, 239, 0.04);
  transition: border-color var(--transition-fast), background-color var(--transition-fast);
}

.hero-badge .hero-subtitle {
  margin-bottom: 0;
}

.hero-badge-arrow {
  color: var(--color-gold);
  font-size: 0.85rem;
  transition: transform var(--transition-fast);
}

.hero-subtitle {
  color: var(--color-gold);
  letter-spacing: 0.1em;
}

.hero-title {
  margin-bottom: 0;
  color: var(--color-text-light);
}

.hero-title-line {
  display: block;
  white-space: nowrap;
}

/* Shrink the first line enough to guarantee it never wraps on small screens,
   keeping the headline at exactly two lines (line 1 + rotating word). */
@media (max-width: 767px) {
  .hero-section .hero-title {
    font-size: clamp(1.35rem, 7vw, 2.6rem);
  }
}

/* --- HERO WORD TYPEWRITER ANIMATION --- */
.word-slide-container {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 1.2em; /* one line height */
  margin-top: 0.1em;
}

.typewriter-text {
  color: var(--color-gold);
  font-family: var(--font-display);
  font-weight: 400;
  white-space: nowrap;
}

.typewriter-cursor {
  display: inline-block;
  width: 0.06em;
  height: 0.9em;
  margin-left: 0.08em;
  background-color: var(--color-gold);
  animation: typewriter-blink 0.85s step-end infinite;
}

@keyframes typewriter-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .typewriter-cursor {
    animation: none;
  }
}

.hero-desc {
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  line-height: 1.65;
  color: rgba(247, 244, 239, 0.85);
}

.hero-desc-center {
  max-width: 560px;
  margin: 0 auto;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-xs);
}

.hero-actions-center {
  justify-content: center;
}

/* --- ANIMATED CANVAS BG BLOB (behind sections, scrolls with page) --- */
.section-with-blob {
  position: relative;
  overflow: hidden;
}

.section-with-blob > * {
  position: relative;
  z-index: 1;
}

/* Declared after ".section-with-blob > *" so it wins the specificity tie
   and stays out of the document flow (both rules are single-class selectors). */
.section-blob-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
}

/* --- CARDS & SERVICES SECTION (Home highlight cards) --- */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

@media (min-width: 640px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1200px) {
  .card-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.card {
  padding: var(--space-lg) var(--space-md);
  color: var(--color-text-light);
  text-decoration: none;
  background: linear-gradient(var(--color-blue), var(--color-blue)) padding-box,
              linear-gradient(145deg, transparent 35%, var(--color-gold), rgba(247, 244, 239, 0.6)) border-box;
  border: 1px solid transparent;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 260px;
  cursor: pointer;
  transform-origin: right bottom;
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.card:hover,
.card:focus-visible {
  rotate: 3deg;
  box-shadow: 0 20px 45px -15px rgba(7, 30, 86, 0.45);
}

.card-icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: var(--space-md);
  border-radius: 50%;
  background: rgba(216, 176, 122, 0.14);
  color: var(--color-gold);
  animation: card-icon-pulse 3.2s ease-in-out infinite;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.3s ease;
}

.card-icon svg {
  width: 24px;
  height: 24px;
}

.card:hover .card-icon,
.card:focus-visible .card-icon {
  transform: scale(1.12) rotate(8deg);
  background-color: rgba(216, 176, 122, 0.26);
}

/* Stagger the idle pulse so the 8 cards don't beat in perfect unison */
.card-grid > a:nth-child(2) .card-icon { animation-delay: 0.4s; }
.card-grid > a:nth-child(3) .card-icon { animation-delay: 0.8s; }
.card-grid > a:nth-child(4) .card-icon { animation-delay: 1.2s; }
.card-grid > a:nth-child(5) .card-icon { animation-delay: 1.6s; }
.card-grid > a:nth-child(6) .card-icon { animation-delay: 2.0s; }
.card-grid > a:nth-child(7) .card-icon { animation-delay: 2.4s; }
.card-grid > a:nth-child(8) .card-icon { animation-delay: 2.8s; }

@keyframes card-icon-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(216, 176, 122, 0.4); }
  50% { box-shadow: 0 0 0 9px rgba(216, 176, 122, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .card-icon {
    animation: none;
  }
}

.card-title {
  margin-bottom: var(--space-sm);
  color: var(--color-text-light);
}

.card-desc {
  font-size: 0.95rem;
  color: rgba(247, 244, 239, 0.75);
  margin-bottom: var(--space-lg);
  flex-grow: 1;
}

.card-link {
  align-self: flex-start;
  color: var(--color-gold);
  transition: color var(--transition-fast);
}

.card:hover .card-link,
.card:focus-visible .card-link {
  color: var(--color-text-light);
}

/* --- PILARES / COMO TRABALHAMOS (numbered steps, dark contrast section) --- */
.pilar-card {
  position: relative;
  cursor: default;
}

.pilar-card::before {
  content: '';
  display: block;
  width: 100%;
  height: 2px;
  margin-bottom: var(--space-md);
  background: linear-gradient(90deg, var(--color-gold), rgba(216, 176, 122, 0.12));
  transition: background var(--transition-normal);
}

.pilar-card:hover::before {
  background: var(--color-gold);
}

.pilar-number {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3rem);
  line-height: 1;
  color: var(--color-gold);
  margin-bottom: var(--space-sm);
  transition: transform var(--transition-normal);
}

.pilar-card:hover .pilar-number {
  transform: translateY(-4px);
}

.pilar-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--color-text-light);
  margin-bottom: var(--space-xs);
}

.pilar-desc {
  font-size: 0.95rem;
  font-family: var(--font-sans);
  font-weight: 400;
  color: rgba(247, 244, 239, 0.7);
  line-height: 1.7;
}

/* --- MANIFESTO SECTION --- */
/* Elevated above its neighbors so the oversized symbol can visibly bleed
   into the hero above and "Como Trabalhamos" below on desktop. */
#manifesto-section {
  position: relative;
  z-index: 2;
}

.manifesto-grid {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: var(--space-xl);
  max-width: 980px;
  margin: 0 auto;
}

@media (min-width: 900px) {
  .manifesto-grid {
    grid-template-columns: 420px 1fr;
    gap: var(--space-xxl);
  }
}

.manifesto-visual {
  display: flex;
  justify-content: center;
}

.manifesto-symbol {
  width: 100%;
  max-width: 220px;
  height: auto;
  filter: drop-shadow(0 25px 35px rgba(7, 30, 86, 0.18));
  animation: manifesto-symbol-float 6s ease-in-out infinite;
}

@keyframes manifesto-symbol-float {
  0%, 100% { transform: translateY(0) rotate(-1.5deg); }
  50% { transform: translateY(-18px) rotate(1.5deg); }
}

@media (min-width: 900px) {
  @keyframes manifesto-symbol-float {
    0%, 100% { transform: scale(1.35) translateY(0) rotate(-1.5deg); }
    50% { transform: scale(1.35) translateY(-18px) rotate(1.5deg); }
  }
}

@media (prefers-reduced-motion: reduce) {
  .manifesto-symbol {
    animation: none;
  }
}

/* Desktop: the icon is pulled out of the grid flow and centered on the
   section's full height, so it genuinely overflows past the section's own
   top/bottom edge into the hero above and "Como Trabalhamos" below —
   independent of how tall the text column happens to be. */
@media (min-width: 900px) {
  .manifesto-grid {
    grid-template-columns: 1fr;
  }

  .manifesto-visual {
    position: absolute;
    top: -156px;
    left: 0;
    width: 300px;
    height: 580px;
    margin: 0;
    z-index: 1;
    align-items: center;
  }

  .manifesto-symbol {
    max-width: none;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }

  .manifesto-box {
    padding-left: 380px;
  }
}

.manifesto-box {
  text-align: center;
}

@media (min-width: 900px) {
  .manifesto-box {
    text-align: left;
  }
}

.manifesto-quote {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4.5vw, 2.85rem);
  font-weight: 400;
  line-height: 1.25;
  color: var(--color-blue);
  margin-bottom: var(--space-lg);
  letter-spacing: 0.01em;
}

.manifesto-desc {
  max-width: 640px;
  margin: 0 auto;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.85;
  color: rgba(7, 30, 86, 0.8);
}

@media (min-width: 900px) {
  .manifesto-desc {
    margin: 0;
  }
}

/* Gold highlights inside manifesto */
.manifesto-desc .gold {
  color: var(--color-gold);
  font-weight: 700;
}

.manifesto-divider {
  width: 48px;
  height: 2px;
  background: var(--color-gold);
  margin: var(--space-md) auto;
  border-radius: 2px;
}

@media (min-width: 900px) {
  .manifesto-divider {
    margin: var(--space-md) 0;
  }
}

/* --- SOBRE: ESSÊNCIA / PROPÓSITO (logo left, copy left-aligned right) --- */
.essencia-grid {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: var(--space-xl);
}

@media (min-width: 900px) {
  .essencia-grid {
    grid-template-columns: 300px 1fr;
    gap: var(--space-xxl);
    align-items: stretch;
  }
}

.essencia-brand {
  display: flex;
  justify-content: center;
}

.essencia-logo {
  width: 100%;
  max-width: 160px;
  height: auto;
}

@media (min-width: 900px) {
  .essencia-brand {
    justify-content: flex-start;
  }
  .essencia-logo {
    max-width: 100%;
  }
}

/* --- SOBRE: JORNADA DO CLIENTE (vertical timeline, replaces logo column) --- */
.journey-timeline {
  position: relative;
  list-style: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--space-md);
  padding: 16px 0;
  margin: 0;
  width: 100%;
  max-width: 300px;
  height: 100%;
}

.journey-timeline::before {
  content: '';
  position: absolute;
  top: 16px;
  bottom: 16px;
  left: 50%;
  width: 2px;
  background: linear-gradient(to bottom, rgba(216, 176, 122, 0.7), rgba(216, 176, 122, 0.15));
  transform: translateX(-50%) scaleY(0);
  transform-origin: top;
}

.journey-step {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 32px 1fr;
  align-items: center;
  column-gap: 0.75rem;
  opacity: 0;
  transform: translateY(14px);
}

.journey-step-side {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(7, 30, 86, 0.55);
  line-height: 1.25;
  transition: color var(--transition-normal), font-weight var(--transition-normal);
}

.journey-step-side--left {
  text-align: right;
}

.journey-step-side--right {
  text-align: left;
}

.journey-step-number {
  position: relative;
  z-index: 1;
  justify-self: center;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-ivory);
  border: 2px solid var(--color-gold);
  color: var(--color-blue);
  font-family: var(--font-display);
  font-size: 0.95rem;
  transition: background-color var(--transition-normal), border-color var(--transition-normal), transform var(--transition-normal);
}

/* Active step — driven by scroll position via JS, works scrolling up or down */
.journey-step.is-active .journey-step-number {
  background-color: var(--color-gold);
  border-color: var(--color-gold);
  transform: scale(1.12);
}

.journey-step.is-active .journey-step-side {
  color: var(--color-blue);
  font-weight: 700;
}

.fade-in.visible .journey-timeline::before {
  animation: journey-line-grow 1.6s cubic-bezier(0.65, 0, 0.35, 1) forwards;
  animation-delay: 0.1s;
}

.fade-in.visible .journey-step {
  animation: journey-step-in 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: var(--step-delay);
}

@keyframes journey-line-grow {
  to { transform: translateX(-50%) scaleY(1); }
}

@keyframes journey-step-in {
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .journey-timeline::before,
  .journey-step {
    animation: none !important;
    opacity: 1;
    transform: none;
  }
}

.essencia-content {
  text-align: center;
}

@media (min-width: 900px) {
  .essencia-content {
    text-align: left;
  }
}

.essencia-label {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--color-gold);
  margin-top: var(--space-md);
}

.essencia-copy {
  max-width: 640px;
  margin: var(--space-lg) auto 0;
  font-size: 1.05rem;
  line-height: 1.9;
  color: rgba(7, 30, 86, 0.85);
}

@media (min-width: 900px) {
  .essencia-copy {
    margin-left: 0;
  }
}

.essencia-copy p {
  margin-bottom: var(--space-md);
}

.essencia-copy .essencia-highlight {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--color-blue);
  line-height: 1.4;
}

/* --- SOBRE: ESTRATÉGIA (copy right-aligned left, image right) --- */
.estrategia-grid {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: var(--space-xl);
}

@media (min-width: 900px) {
  .estrategia-grid {
    grid-template-columns: 1fr 340px;
    gap: var(--space-xxl);
  }
}

.estrategia-content {
  text-align: center;
}

@media (min-width: 900px) {
  .estrategia-content {
    text-align: right;
  }
}

.estrategia-copy {
  font-size: 1.02rem;
  line-height: 1.85;
  margin-top: var(--space-sm);
}

.estrategia-copy p {
  margin-bottom: var(--space-sm);
}

.estrategia-visual {
  display: flex;
  justify-content: center;
}

.estrategia-image {
  position: relative;
  width: 100%;
  max-width: 320px;
  aspect-ratio: 4 / 5;
  border-radius: 14px;
  overflow: hidden;
  background-color: rgba(7, 30, 86, 0.04);
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(216, 176, 122, 0.25);
  box-shadow: 0 20px 40px -18px rgba(7, 30, 86, 0.2);
}

.estrategia-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 4rem;
  color: rgba(7, 30, 86, 0.12);
}

/* --- SOBRE: PERFORMANCE DASHBOARD ANIMATION (estratégia section visual) --- */
.perf-dashboard {
  position: relative;
  width: 100%;
  max-width: 320px;
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  background-color: var(--color-blue);
  border: 1px solid rgba(216, 176, 122, 0.25);
  box-shadow: 0 20px 40px -18px rgba(7, 30, 86, 0.35);
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.perf-dashboard-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.perf-dashboard-label {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(247, 244, 239, 0.6);
}

.perf-dashboard-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-blue);
  background-color: var(--color-gold);
  padding: 0.25rem 0.55rem;
  border-radius: 100px;
}

.perf-dashboard-badge svg {
  width: 13px;
  height: 13px;
}

.perf-chart {
  flex: 1;
  width: 100%;
  height: 100%;
}

.perf-chart-grid {
  stroke: rgba(247, 244, 239, 0.08);
  stroke-width: 1;
}

.perf-chart-area {
  fill: url(#perfAreaGradient);
  opacity: 0;
}

.perf-chart-line {
  fill: none;
  stroke: var(--color-gold);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
}

.perf-chart-dot {
  fill: var(--color-gold);
  opacity: 0;
}

.perf-chart-dot--end {
  fill: var(--color-ivory);
}

.perf-chart-dot-pulse {
  fill: none;
  stroke: var(--color-gold);
  stroke-width: 1.5;
  opacity: 0;
  transform-origin: 270px 18px;
}

/* Animation only plays once the section has scrolled into view */
.fade-in.visible .perf-chart-line {
  animation: perf-line-draw 1.7s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

.fade-in.visible .perf-chart-area {
  animation: perf-area-fade 1s ease forwards;
  animation-delay: 1.1s;
}

.fade-in.visible .perf-chart-dot {
  animation: perf-dot-fade 0.4s ease forwards;
}

.fade-in.visible .perf-chart-dot:nth-of-type(1) { animation-delay: 0.35s; }
.fade-in.visible .perf-chart-dot:nth-of-type(2) { animation-delay: 0.65s; }
.fade-in.visible .perf-chart-dot:nth-of-type(3) { animation-delay: 0.95s; }
.fade-in.visible .perf-chart-dot:nth-of-type(4) { animation-delay: 1.25s; }
.fade-in.visible .perf-chart-dot:nth-of-type(5) { animation-delay: 1.5s; }
.fade-in.visible .perf-chart-dot--end { animation-delay: 1.7s; }

.fade-in.visible .perf-chart-dot-pulse {
  animation: perf-dot-pulse 2s ease-out infinite;
  animation-delay: 1.9s;
}

@keyframes perf-line-draw {
  to { stroke-dashoffset: 0; }
}

@keyframes perf-area-fade {
  to { opacity: 1; }
}

@keyframes perf-dot-fade {
  to { opacity: 1; }
}

@keyframes perf-dot-pulse {
  0% { opacity: 0.6; transform: scale(0.4); }
  100% { opacity: 0; transform: scale(1.8); }
}

@media (prefers-reduced-motion: reduce) {
  .perf-chart-line,
  .perf-chart-area,
  .perf-chart-dot,
  .perf-chart-dot-pulse {
    animation: none !important;
    opacity: 1;
    stroke-dashoffset: 0;
  }
}

/* --- SOBRE: EQUIPE (dark section, horizontal cards) --- */
.team-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  max-width: 900px;
  margin: 0 auto;
}

.team-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  padding: var(--space-md);
  border-radius: 16px;
  background-color: rgba(247, 244, 239, 0.03);
  border: 1px solid rgba(216, 176, 122, 0.2);
  outline: none;
  transition: border-color var(--transition-normal), background-color var(--transition-normal);
}

.team-card:hover,
.team-card:focus-within {
  border-color: rgba(216, 176, 122, 0.5);
  background-color: rgba(247, 244, 239, 0.05);
}

@media (min-width: 640px) {
  .team-card {
    flex-direction: row;
    align-items: stretch;
  }
}

.team-photo-frame {
  position: relative;
  width: 100%;
  max-width: 220px;
  margin: 0 auto;
  aspect-ratio: 4 / 5;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
}

@media (min-width: 640px) {
  .team-photo-frame {
    width: 220px;
    max-width: none;
    margin: 0;
  }
}

.team-photo {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.team-photo--default {
  opacity: 1;
}

.team-card:hover .team-photo--hover,
.team-card:focus-within .team-photo--hover {
  opacity: 1;
}

.team-card:hover .team-photo--default,
.team-card:focus-within .team-photo--default {
  opacity: 0;
}

/* Mobile: no hover concept — always show the "2" variant */
@media (max-width: 767px) {
  .team-photo--default {
    opacity: 0;
  }
  .team-photo--hover {
    opacity: 1;
  }
}

.team-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

@media (min-width: 640px) {
  .team-info {
    text-align: left;
    padding: var(--space-sm) 0 var(--space-sm) var(--space-md);
  }
}

.team-name {
  color: var(--color-text-light);
  margin-bottom: 0.25rem;
}

.team-role {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--color-gold);
  margin-bottom: var(--space-sm);
}

.team-bio {
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(247, 244, 239, 0.7);
  max-width: 480px;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .team-bio {
    margin: 0;
  }
}

/* --- SERVICES DIRECTORY (PÁGINA GERAL) --- */
.services-category-title {
  border-bottom: 2px solid var(--color-blue);
  padding-bottom: 0.5rem;
  margin-bottom: var(--space-md);
}

/* --- SERVICES DIRECTORY: FEATURED SERVICE BLOCKS (image + copy, links to detail page) --- */
.service-feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: var(--space-lg);
  text-decoration: none;
  color: inherit;
}

.service-feature-content {
  order: 1;
}

.service-feature-visual {
  order: 2;
}

@media (min-width: 900px) {
  .service-feature-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xxl);
  }

  .service-feature-grid--reverse .service-feature-content {
    order: 2;
  }

  .service-feature-grid--reverse .service-feature-visual {
    order: 1;
  }
}

.service-feature-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-gold);
}

.service-feature-eyebrow svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.service-feature-title {
  color: var(--color-blue);
  transition: color var(--transition-fast);
}

.service-feature-grid:hover .service-feature-title,
.service-feature-grid:focus-visible .service-feature-title {
  color: var(--color-gold);
}

/* PNG with transparent background — no border, no shadow, no container styling. */
.service-feature-visual {
  display: flex;
  justify-content: center;
  animation: service-img-float 5s ease-in-out infinite;
}

.service-feature-img {
  display: block;
  width: 100%;
  max-width: 420px;
  height: auto;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes service-img-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

/* Slight zoom on hover/focus, desktop only (no touch "hover" jank on mobile) */
@media (hover: hover) and (pointer: fine) {
  .service-feature-grid:hover .service-feature-img,
  .service-feature-grid:focus-visible .service-feature-img {
    transform: scale(1.06);
  }
}

@media (prefers-reduced-motion: reduce) {
  .service-feature-visual {
    animation: none;
  }
}

/* --- SERVICE DETAIL PAGE TEMPLATE --- */
.service-hero {
  padding-top: calc(var(--header-height) + var(--space-xl));
  padding-bottom: var(--space-xl);
  background-color: var(--color-blue);
  color: var(--color-text-light);
  position: relative;
}

.service-hero-content {
  max-width: 800px;
}

.service-hero-title {
  color: var(--color-text-light);
  margin-bottom: var(--space-sm);
}

.service-hero-promise {
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 2.4vw, 1.6rem);
  font-style: italic;
  font-weight: 300;
  color: var(--color-gold);
  line-height: 1.35;
}

.service-body-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
}

@media (min-width: 1024px) {
  .service-body-grid {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

.service-description {
  font-size: 1.05rem;
  line-height: 1.75;
  color: rgba(7, 30, 86, 0.9);
}

.service-includes-box {
  background-color: #FCFAF7;
  border: 1px solid var(--color-border);
  padding: var(--space-lg);
  border-radius: 4px;
  align-self: start;
}

.service-includes-title {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--color-blue);
  margin-bottom: var(--space-md);
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 0.5rem;
}

.service-includes-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.service-includes-item {
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.95rem;
  color: rgba(7, 30, 86, 0.85);
  font-weight: 500;
}

.service-includes-item::before {
  content: '!';
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--color-gold);
}

/* --- SERVICE MINI-LP: SEO copy block --- */
.service-seo-block {
  max-width: 820px;
  margin: 0 auto;
}

.service-seo-copy p {
  margin-bottom: var(--space-md);
}

.service-seo-copy p:last-child {
  margin-bottom: 0;
}

/* --- SERVICE MINI-LP: Process steps (alternating blue cards) --- */
.process-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  max-width: 980px;
  margin: 0 auto;
}

.process-card {
  display: grid;
  grid-template-columns: 1fr;
  background-color: var(--color-blue);
  border-radius: 16px;
  overflow: hidden;
}

@media (min-width: 800px) {
  .process-card {
    grid-template-columns: 340px 1fr;
  }
  .process-card--text-only {
    grid-template-columns: 1fr;
  }
  .process-card--reverse {
    grid-template-columns: 1fr 340px;
  }
  .process-card--reverse .process-photo {
    order: 2;
  }
  .process-card--reverse .process-content {
    order: 1;
  }
}

.process-photo {
  position: relative;
  min-height: 220px;
  background-color: rgba(247, 244, 239, 0.05);
}

.process-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.process-content {
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.6rem;
}

.process-card--text-only .process-content {
  max-width: 620px;
}

.process-step-number {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-gold);
}

.process-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--color-text-light);
  line-height: 1.25;
}

.process-text {
  font-size: 0.95rem;
  line-height: 1.75;
  color: rgba(247, 244, 239, 0.78);
}

/* --- SERVICE MINI-LP: Process steps as tabs --- */
.process-tabs {
  max-width: 980px;
  margin: 0 auto;
}

.process-tabs-nav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.5rem;
  margin-bottom: var(--space-lg);
}

.process-tab-btn {
  width: 100%;
}

.process-tab-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  padding: 0.7rem 1.1rem;
  background-color: transparent;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  cursor: pointer;
  text-align: left;
  transition: border-color var(--transition-fast), background-color var(--transition-fast);
}

.process-tab-num {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-gold);
}

.process-tab-label {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(7, 30, 86, 0.7);
  transition: color var(--transition-fast);
}

.process-tab-btn:hover {
  border-color: rgba(216, 176, 122, 0.5);
}

.process-tab-btn.active {
  background-color: var(--color-blue);
  border-color: var(--color-blue);
}

.process-tab-btn.active .process-tab-label {
  color: var(--color-text-light);
}

.process-tab-panel {
  animation: process-panel-in 0.4s ease;
}

.process-tab-panel[hidden] {
  display: none;
}

@keyframes process-panel-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .process-tab-panel {
    animation: none;
  }
}

/* --- SERVICE MINI-LP: SWOT matrix (colors match the "Sobre" performance chart) --- */
.swot-matrix {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
  background-color: rgba(216, 176, 122, 0.35);
  max-width: 760px;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
}

@media (min-width: 640px) {
  .swot-matrix {
    grid-template-columns: 1fr 1fr;
  }
}

.swot-quadrant {
  background-color: var(--color-blue);
  padding: var(--space-lg);
  opacity: 0;
  transform: scale(0.92);
}

.fade-in.visible .swot-quadrant {
  animation: swot-in 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: var(--q-delay);
}

@keyframes swot-in {
  to { opacity: 1; transform: scale(1); }
}

.swot-icon {
  display: inline-flex;
  color: var(--color-gold);
  margin-bottom: 0.5rem;
}

.swot-icon svg {
  width: 24px;
  height: 24px;
}

.swot-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--color-gold);
  margin-bottom: 0.4rem;
}

.swot-text {
  font-size: 0.9rem;
  line-height: 1.65;
  color: rgba(247, 244, 239, 0.8);
}

@media (prefers-reduced-motion: reduce) {
  .swot-quadrant {
    animation: none !important;
    opacity: 1;
    transform: none;
  }
}

/* --- SERVICE MINI-LP: What's included (checklist grid) --- */
.includes-grid {
  display: flex;
  flex-direction: column;
  max-width: 820px;
  margin: 0 auto;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  overflow: hidden;
  background-color: var(--color-ivory);
}

.includes-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: var(--space-sm) var(--space-lg);
  border-bottom: 1px solid var(--color-border);
  transition: background-color var(--transition-fast);
}

.includes-row:last-child {
  border-bottom: none;
}

.includes-row:nth-child(even) {
  background-color: rgba(7, 30, 86, 0.025);
}

.includes-row:hover {
  background-color: rgba(216, 176, 122, 0.1);
}

.includes-check {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: var(--color-blue);
  color: var(--color-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
}

.includes-row-text {
  font-size: 0.98rem;
  color: rgba(7, 30, 86, 0.85);
  font-weight: 500;
}

/* --- SERVICE MINI-LP: FAQ (native details/summary, no JS needed) --- */
.faq-item {
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-md) 0;
}

.faq-question {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-md);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--color-blue);
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: '+';
  flex-shrink: 0;
  font-family: var(--font-sans);
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--color-gold);
  transition: transform var(--transition-normal);
}

.faq-item[open] .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  margin-top: var(--space-sm);
  color: rgba(7, 30, 86, 0.75);
  line-height: 1.75;
  font-size: 0.95rem;
}

/* --- HOME: "Para quem é" audience grid (icon blocks, no card box — sits on dark section) --- */
.audience-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  max-width: 720px;
  margin: var(--space-xxl) auto 0;
  text-align: left;
}

@media (min-width: 700px) {
  .audience-grid {
    grid-template-columns: repeat(2, 1fr);
    column-gap: var(--space-xxl);
    row-gap: var(--space-xl);
    max-width: 940px;
  }
}

.audience-item {
  padding-right: var(--space-sm);
}

.audience-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: var(--space-md);
  border-radius: 50%;
  background: rgba(216, 176, 122, 0.14);
  color: var(--color-gold);
}

.audience-icon svg {
  width: 24px;
  height: 24px;
}

.audience-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.35;
  color: var(--color-text-light);
  margin-bottom: 0.65rem;
}

.audience-text {
  font-size: 0.94rem;
  line-height: 1.75;
  letter-spacing: 0.005em;
  color: rgba(247, 244, 239, 0.72);
}

/* --- SERVICE MINI-LP: Pain points ("Isso soa familiar?") --- */
.pain-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  max-width: 780px;
  margin: 0 auto;
}

.pain-item {
  padding: var(--space-md) var(--space-lg);
  border-left: 3px solid var(--color-gold);
  background-color: rgba(7, 30, 86, 0.02);
  border-radius: 0 10px 10px 0;
}

.pain-question {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--color-blue);
  font-style: italic;
  margin-bottom: 0.5rem;
}

.pain-answer {
  color: rgba(7, 30, 86, 0.75);
  line-height: 1.7;
  font-size: 0.95rem;
}

/* --- SERVICE MINI-LP: Certification badges --- */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
  max-width: 700px;
  margin: 0 auto;
}

@media (min-width: 700px) {
  .cert-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.cert-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  text-align: center;
}

.cert-logo {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cert-logo img {
  max-width: 100%;
  max-height: 100%;
  display: block;
}

.cert-label {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(247, 244, 239, 0.85);
  line-height: 1.4;
}

/* --- SERVICE MINI-LP: Comparison table (differentiation) --- */
.compare-table {
  max-width: 800px;
  margin: 0 auto;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  overflow: hidden;
}

.compare-row {
  display: grid;
  grid-template-columns: 0.9fr 1fr 1fr;
  border-bottom: 1px solid var(--color-border);
}

.compare-row:last-child {
  border-bottom: none;
}

.compare-row--head {
  background-color: rgba(7, 30, 86, 0.03);
}

.compare-dimension {
  display: flex;
  align-items: center;
  padding: var(--space-sm) 0.5rem var(--space-sm) var(--space-md);
  font-weight: 700;
  color: var(--color-blue);
  font-size: 0.8rem;
  line-height: 1.3;
  border-right: 1px solid var(--color-border);
}

@media (min-width: 640px) {
  .compare-dimension {
    padding: var(--space-sm) var(--space-md);
    font-size: 0.9rem;
  }
}

.compare-col-label {
  padding: var(--space-sm) 0.4rem;
  font-family: var(--font-sans);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
}

@media (min-width: 640px) {
  .compare-col-label {
    padding: var(--space-sm) var(--space-md);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
  }
}

.compare-col-label--bad {
  color: rgba(7, 30, 86, 0.45);
}

.compare-col-label--good {
  color: var(--color-gold);
  background-color: var(--color-blue);
}

.compare-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-sm) 0.4rem;
  font-size: 0.76rem;
  line-height: 1.35;
}

@media (min-width: 640px) {
  .compare-cell {
    padding: var(--space-sm) var(--space-md);
    font-size: 0.88rem;
  }
}

.compare-cell--bad {
  color: rgba(7, 30, 86, 0.45);
}

.compare-cell--good {
  color: var(--color-blue);
  font-weight: 600;
  background-color: rgba(216, 176, 122, 0.1);
}

/* --- SERVICES DIRECTORY CARDS (Serviços page — each card links straight to its page) --- */
.service-acc-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  margin-top: var(--space-lg);
  margin-bottom: var(--space-xxl);
}

@media (min-width: 640px) {
  .service-acc-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.service-card-link {
  position: relative;
  display: block;
  padding: var(--space-lg) var(--space-lg) var(--space-md);
  text-decoration: none;
  background: linear-gradient(var(--color-blue), var(--color-blue)) padding-box,
              linear-gradient(145deg, transparent 35%, var(--color-gold), rgba(247, 244, 239, 0.55)) border-box;
  border: 1px solid transparent;
  border-radius: 10px;
  overflow: hidden;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.service-card-link:hover,
.service-card-link:focus-visible {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 20px 45px -15px rgba(7, 30, 86, 0.5);
}

.service-card-link-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(216, 176, 122, 0.12);
  color: var(--color-gold);
  margin-bottom: var(--space-sm);
}

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

.service-card-link-title {
  font-size: 1.05rem;
  color: var(--color-text-light);
  transition: font-size var(--transition-normal);
}

.service-card-link:hover .service-card-link-title,
.service-card-link:focus-visible .service-card-link-title {
  font-size: 1.18rem;
}

.service-card-link-desc {
  font-size: 0.88rem;
  line-height: 1.5;
  color: rgba(247, 244, 239, 0.7);
  max-height: 0;
  margin-top: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease, margin-top 0.4s ease;
}

.service-card-link:hover .service-card-link-desc,
.service-card-link:focus-visible .service-card-link-desc {
  max-height: 4.5rem;
  margin-top: 0.5rem;
  opacity: 1;
}

.service-card-link-arrow {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  color: var(--color-gold);
  transition: transform var(--transition-fast);
}

.service-card-link:hover .service-card-link-arrow,
.service-card-link:focus-visible .service-card-link-arrow {
  transform: translate(3px, -3px);
}

/* --- CONTACT FORM & PAGE --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
}

@media (min-width: 1024px) {
  .contact-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.contact-method {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.contact-method-title {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-gold);
}

.contact-method-value {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-blue);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.contact-method-value:hover {
  color: var(--color-gold);
}

/* Elegant Form Styling */
.form-group {
  margin-bottom: var(--space-md);
}

.form-label {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-blue);
  margin-bottom: 0.35rem;
}

.embedded-form-frame {
  border: 1px solid var(--color-border);
  border-radius: 10px;
  overflow: hidden;
  background-color: rgba(7, 30, 86, 0.02);
}

.embedded-form-frame iframe {
  display: block;
  border: none;
}

.form-control {
  width: 100%;
  padding: 0.85rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--color-text-dark);
  background-color: rgba(7, 30, 86, 0.02);
  border: 1px solid rgba(7, 30, 86, 0.15);
  border-radius: 4px;
  outline: none;
  transition: border-color var(--transition-fast), background-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-control::placeholder {
  color: rgba(7, 30, 86, 0.4);
}

.form-control:focus {
  border-color: var(--color-blue);
  background-color: #fff;
  box-shadow: 0 0 0 3px rgba(7, 30, 86, 0.05);
}

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

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23071E56'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1.5rem;
  padding-right: 2.5rem;
}

/* --- FOOTER --- */
.footer {
  background-color: var(--color-blue);
  color: var(--color-text-light);
  padding-top: var(--space-xl);
  padding-bottom: var(--space-lg);
  border-top: 1px solid var(--color-border-light);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

.footer-brand {
  max-width: 400px;
}

.footer-logo {
  height: 28px;
  width: auto;
  margin-bottom: var(--space-sm);
}

.footer-tagline {
  font-size: 0.9rem;
  color: rgba(247, 244, 239, 0.7);
  margin-bottom: var(--space-md);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

@media (min-width: 768px) {
  .footer-links {
    flex-direction: row;
    justify-content: flex-end;
    gap: var(--space-lg);
  }
}

.footer-link {
  color: rgba(247, 244, 239, 0.8);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: var(--color-gold);
}

.footer-copyright {
  border-top: 1px solid var(--color-border-light);
  padding-top: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  text-align: center;
  font-size: 0.8rem;
  color: rgba(247, 244, 239, 0.5);
}

@media (min-width: 768px) {
  .footer-copyright {
    flex-direction: row;
    justify-content: flex-start;
    text-align: left;
  }
}

.footer-legal-link {
  color: rgba(247, 244, 239, 0.5);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color var(--transition-fast), border-color var(--transition-fast);
}

.footer-legal-link:hover {
  color: var(--color-gold);
  border-color: var(--color-gold);
}

/* --- ANIMATION HELPER CLASSES --- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* --- FLOATING WHATSAPP BUTTON --- */
.whatsapp-float {
  position: fixed;
  right: var(--space-md);
  bottom: var(--space-md);
  z-index: 998;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: #25D366;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

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

.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

@media (min-width: 900px) {
  .whatsapp-float {
    right: var(--space-lg);
    bottom: var(--space-lg);
    width: 62px;
    height: 62px;
  }

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

@media (prefers-reduced-motion: reduce) {
  .whatsapp-float {
    transition: none;
  }
}

/* --- LEGAL / POLICY PAGE --- */
.legal-hero-updated {
  display: inline-block;
  margin-top: var(--space-sm);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: rgba(247, 244, 239, 0.65);
}

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

.legal-toc {
  background-color: #FCFAF7;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.legal-toc-title {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--space-sm);
}

.legal-toc-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
}

@media (min-width: 640px) {
  .legal-toc-list {
    grid-template-columns: 1fr 1fr;
  }
}

.legal-toc-list a {
  font-size: 0.92rem;
  color: var(--color-blue);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition-fast), color var(--transition-fast);
}

.legal-toc-list a:hover {
  color: var(--color-gold);
  border-color: var(--color-gold);
}

.legal-section {
  padding-top: var(--space-lg);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--color-border);
  scroll-margin-top: calc(var(--header-height) + var(--space-md));
}

.legal-section:last-of-type {
  border-bottom: none;
}

.legal-section-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--color-blue);
  margin-bottom: var(--space-sm);
}

.legal-section-subtitle {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-blue);
  margin-top: var(--space-md);
  margin-bottom: 0.4rem;
}

.legal-section p {
  font-size: 1rem;
  line-height: 1.75;
  color: rgba(7, 30, 86, 0.85);
  margin-bottom: var(--space-sm);
}

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

.legal-section ul,
.legal-section ol {
  margin: 0 0 var(--space-sm) 0;
  padding-left: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.legal-section li {
  position: relative;
  padding-left: 1.4rem;
  font-size: 1rem;
  line-height: 1.65;
  color: rgba(7, 30, 86, 0.85);
}

.legal-section ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--color-gold);
}

.legal-section ol {
  counter-reset: legal-ol;
}

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

.legal-section ol li::before {
  content: counter(legal-ol) '.';
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 700;
  color: var(--color-gold);
  font-size: 0.9rem;
}

.legal-section strong {
  color: var(--color-blue);
}

.legal-contact-box {
  background-color: #FCFAF7;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: var(--space-lg);
  margin-top: var(--space-sm);
}

.legal-contact-box p {
  margin-bottom: 0.3rem;
}

.legal-contact-box a {
  color: var(--color-blue);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--color-gold);
}
