/*
  STYLE.CSS
  -----------------------------------
  Este ficheiro contém todo o código de estilização do website.
  A estrutura segue uma ordem lógica para facilitar a manutenção:
  1. Variáveis Globais e de Tema
  2. Reset e Estilos Base (body, tipografia)
  3. Classes Utilitárias (helpers)
  4. Estrutura de Layout (container, grids)
  5. Estilos de Secções (hero, cta, footer)
  6. Estilos de Componentes (botões, cartões, timeline)
  7. Animações
  8. Media Queries para Responsividade
*/

/* ------------------------- */
/* 1. VARIÁVEIS              */
/* ------------------------- */
:root {
  --color-cta: #f05c4e;
  --color-cta-hover: #e04a3c; /* Tom mais escuro para hover */
  
  --font-main: 'Inter', sans-serif;
  
  --container-width: 1280px;
  --padding-section: 6rem 2rem;
  
  --transition-smooth: 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  --transition-bounce: 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* --- Light Theme (Default) --- */
:root:not(.dark-theme) {
  --color-background: #ffffff;
  --color-surface: #f5f5f5; /* Mantido para superfícies claras */
  --color-surface-hover: #eaeaea; /* Mantido para hover */
  --color-text-primary: #000000;
  --color-text-secondary: #61728b;
  --color-border: rgba(0, 0, 0, 0.1);
  --color-surface-dark: #052e4a;
  --color-text-light: #ffffff;
}

/* --- Dark Theme --- */
.dark-theme {
  --color-background: #052e4a;
  --color-surface: #0e3a5a; /* Ligeiramente mais claro que o fundo */
  --color-surface-hover: #1a4a6e; /* Ligeiramente mais claro para hover */
  --color-text-primary: #ffffff;
  --color-text-secondary: #85d2e0;
  --color-border: rgba(133, 210, 224, 0.2); /* Borda com o tom do texto secundário */
  --color-surface-dark: #052e4a;
  --color-text-light: #ffffff;
}

/* --- Theme-specific Overrides --- */
.dark-theme .bg-white {
  background-color: var(--color-surface);
}

.dark-theme .bg-gray {
  background-color: var(--color-background);
}

/* ------------------------- */
/* 2. RESET & BASE           */
/* ------------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  color: var(--color-text-primary);
  background-color: var(--color-background);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--color-text-primary);
}

h1 {
  font-size: clamp(2.8rem, 5vw, 4rem); /* Ligeiramente reduzido */
}

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

h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

p {
  font-size: 1.125rem;
  color: var(--color-text-secondary);
  max-width: 60ch;
}

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

/* ------------------------- */
/* 3. UTILITÁRIOS            */
/* ------------------------- */
.text-center { text-align: center; }
.bg-dark { background-color: var(--color-surface-dark); }
.bg-white { background-color: var(--color-background); }
.bg-gray { background-color: var(--color-surface); }

/* ------------------------- */
/* 4. LAYOUT                 */
/* ------------------------- */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.navbar__container,
.hero__container,
.footer__container {
  display: flex;
  align-items: center;
}

.navbar__container { 
  justify-content: space-between; 
  gap: 2rem;
}
.hero__container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  min-height: 90vh;
}
.services__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-top: 4rem;
}
.clients__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0rem 3rem; /* Espaçamento vertical removido */
  align-items: center;
  justify-items: center;
  margin-top: 2rem;
}

.clients__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 140px; /* Aumentado de 100px para 140px */
}

.clients__logo img {
  width: 200px;      /* Aumentado de 160px para 200px */
  height: 120px;     /* Aumentado de 80px para 120px */
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.6;
  transition: all 0.3s ease;
}
.footer__container {
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
}

/* ------------------------- */
/* 5. SECÇÕES                */
/* ------------------------- */
.section {
  padding: var(--padding-section);
  transition: background-color 0.3s ease;
}

/* --- Navbar --- */
.navbar {
  position: fixed; /* Changed from absolute to fixed for sticky effect */
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem 0;
  z-index: 100;
  transition: all 0.3s ease;
}
.navbar.scrolled {
  padding: 1rem 0;
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}
.dark-theme .navbar.scrolled {
  background-color: rgba(18, 18, 18, 0.9);
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

/* --- Hero --- */
.hero {
  background-color: var(--color-surface);
  padding-top: 120px;
  position: relative;
  overflow: hidden; /* Ensure video doesn't overflow */
}
.hero__figure {
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero__subtitle {
  margin: 1.5rem 0 2.5rem;
  font-size: clamp(1.1rem, 2vw, 1.25rem); /* Ligeiramente reduzido */
  font-weight: 500;
}

/*--------------------------------------------------------------
# Hero Video Background
--------------------------------------------------------------*/
.hero__video-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.hero__video {
  width: 100%;
  height: 120%; /* Taller for parallax */
  position: absolute;
  top: -10%;
  left: 0;
  object-fit: cover;
  transform: scale(1.05);
  will-change: transform; /* Optimize for scroll */
}

.hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* Overlay escuro */
  z-index: 2;
}

.hero .hero__container {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  text-align: left; /* Conteúdo alinhado à esquerda */
}

.hero .hero__content {
  max-width: 650px; /* Largura ajustada para layout à esquerda */
  margin: 0; /* Remove margem automática */
}

.hero__title {
  color: #fff;
}

.hero__subtitle {
  color: rgba(255, 255, 255, 0.9);
}

/* --- Portfolio Grid (New) --- */
.portfolio__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.portfolio-item {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 0.75rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: 1px solid var(--color-border);
}

.portfolio-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.portfolio-item__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.portfolio-item:hover .portfolio-item__image {
  transform: scale(1.05);
}

.portfolio-item__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 1rem;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 80%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.portfolio-item:hover .portfolio-item__overlay {
  opacity: 1;
}

.portfolio-item__title {
  color: #fff;
  font-size: 1.25rem;
  font-weight: 700;
  transform: translateY(10px);
  transition: transform 0.4s ease;
}

.portfolio-item:hover .portfolio-item__title {
  transform: translateY(0);
}

/* --- Portfolio Expansion Panel --- */
.portfolio-expansion {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.7s cubic-bezier(0.25, 1, 0.5, 1), padding 0.7s ease;
  padding: 0 1.5rem;
  background-color: var(--color-surface);
}

.portfolio-expansion.active {
  max-height: 1500px; /* Large enough to fit content */
  padding: 4rem 1.5rem;
  border-bottom: 1px solid var(--color-border);
}

.expansion-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  max-width: var(--container-width);
  margin: 0 auto;
  align-items: start;
}

.expansion-details__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.expansion-details__title {
  font-size: 2.5rem;
  margin: 0;
}

.expansion-details__tag {
  display: inline-block;
  background-color: var(--color-cta);
  color: #fff;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.expansion-details__description {
  font-size: 1.1rem;
  color: var(--color-text-secondary);
  margin-bottom: 2rem;
}

.expansion-close {
  background: none;
  border: 1px solid var(--color-border);
  color: var(--color-text-primary);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.expansion-close:hover {
  transform: rotate(90deg);
  background-color: var(--color-cta);
  color: #fff;
  border-color: var(--color-cta);
}

.expansion-gallery {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.gallery-featured {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 0.5rem;
  border: 1px solid var(--color-border);
}

.gallery-featured__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  transition: opacity 0.4s ease;
}

.gallery-featured__image.is-fading {
  opacity: 0;
}

.gallery-thumbnails {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 0.75rem;
}

.gallery-thumbnail {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 0.375rem;
  border: 2px solid transparent;
  cursor: pointer;
  opacity: 0.6;
  transition: all 0.3s ease;
}

.gallery-thumbnail:hover {
  opacity: 1;
  border-color: var(--color-cta-hover);
}

.gallery-thumbnail.is-active {
  opacity: 1;
  border-color: var(--color-cta);
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.portfolio-item.is-active {
  box-shadow: 0 0 0 3px var(--color-cta), 0 10px 30px rgba(0,0,0,0.1);
  transform: translateY(-5px);
}

/* --- CTA --- */
.cta {
  padding: 6rem 0;
  text-align: center;
}
.cta h2 { color: var(--color-text-light); }
.cta p {
  color: var(--color-text-secondary);
  margin: 0 auto;
}

/* --- Footer --- */
.footer {
  padding: 3rem 0;
  border-top: 1px solid var(--color-border);
}
.footer__logo { color: var(--color-text-light); }
.footer__links a { color: rgba(255,255,255,0.6); margin: 0 1rem; }
.footer__links a:hover { color: var(--color-cta); }
.footer__social a { color: var(--color-text-light); margin-left: 1rem; }
.footer__social a:hover { color: var(--color-cta); }

/* ------------------------- */
/* 6. COMPONENTES            */
/* ------------------------- */

/* --- Botões --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.8rem;
  border-radius: 50px;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 0.8125rem;
  line-height: 1;
}
.btn--primary {
  background-color: var(--color-cta);
  color: #fff;
  box-shadow: 0 4px 15px rgba(255, 107, 107, 0.25);
}
.btn--primary:hover {
  background-color: var(--color-cta-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
}
.btn--sm { padding: 0.6rem 1.4rem; font-size: 0.75rem; }
.btn--lg { padding: 1rem 2.5rem; font-size: 0.9rem; }

/* --- Logo --- */
.navbar__logo {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--color-text-primary);
  letter-spacing: -0.05em;
}
.navbar__logo--dot { color: var(--color-cta); }

/* --- Links Navbar --- */
.navbar__links { display: flex; gap: 2rem; }
.navbar__toggle { display: none; } /* Hidden on desktop */
.navbar__link {
  color: var(--color-text-primary);
  font-weight: 500;
  position: relative;
  padding-bottom: 0.5rem;
}
.navbar__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--color-cta);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}
.navbar__link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* --- Theme Toggle --- */
.navbar__actions { display: flex; align-items: center; gap: 1.5rem; }
.navbar__theme-button {
  background: none;
  border: 1px solid var(--color-border);
  cursor: pointer;
  color: var(--color-text-primary);
  padding: 0.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 38px;
  height: 38px;
  transition: background-color 0.3s ease;
}
.navbar__theme-button:hover { background-color: var(--color-surface-hover); }
.theme-icon {
  position: absolute;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.theme-icon--moon { transform: scale(0); opacity: 0; }
.dark-theme .theme-icon--sun { transform: scale(0); opacity: 0; }
.dark-theme .theme-icon--moon { transform: scale(1); opacity: 1; }

/* --- Hero Image --- */
.hero__image-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}
.hero__img {
  width: 100%;
  height: auto;
  display: block;
  transform: scale(1.05);
  transition: transform 1.5s ease;
}
.hero:hover .hero__img { transform: scale(1); }

/* --- Timeline --- */
.timeline {
  position: relative;
  max-width: 1000px;
  margin: 4rem auto 0;
}
.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: var(--color-border);
  transform: translateX(-50%);
}
.timeline__item {
  position: relative;
  width: 50%;
  padding: 0 3rem;
  margin-bottom: 4rem;
}
.timeline__item:last-child { margin-bottom: 0; }
.timeline__item:nth-child(odd) { left: 0; text-align: right; }
.timeline__item:nth-child(even) { left: 50%; text-align: left; }
.timeline__marker {
  position: absolute;
  top: 0;
  width: 50px;
  height: 50px;
  background-color: var(--color-background);
  border-radius: 50%;
  border: 2px solid var(--color-border);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}
.timeline__marker i { color: var(--color-cta); }
.timeline__item:hover .timeline__marker {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(255, 107, 107, 0.25);
}
.timeline__item:nth-child(odd) .timeline__marker { right: -25px; left: auto; }
.timeline__item:nth-child(even) .timeline__marker { left: -25px; }

/* --- Service Card --- */
.service-card {
  width: calc(33.333% - 1.34rem);
  background: var(--color-surface-dark);
  padding: 2.5rem;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.service-card:hover {
  border-color: var(--color-cta);
  transform: translateY(-5px);
}
.service-card__icon { color: var(--color-cta); width: 48px; height: 48px; margin-bottom: 1.5rem; }
.service-card__title { color: var(--color-cta); }
.service-card__description { color: var(--color-text-secondary); }

/* --- Client Logo --- */
.clients__logo:hover img {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.2); /* Aumentado para 1.2 para maior destaque */
  cursor: pointer;
}
.dark-theme .clients__logo img {
  filter: invert(1) grayscale(100%);
  opacity: 0.7;
}
.dark-theme .clients__logo:hover img {
  filter: invert(1) grayscale(0%);
  opacity: 1;
}

/* --- Portfolio Card --- */
.portfolio-card {
  flex: initial; /* Reset flex property */
  aspect-ratio: 4 / 5;
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid var(--color-border);
  transition: all 0.3s ease;
  cursor: pointer; /* Add pointer cursor to indicate it's clickable */
}
.portfolio-card:hover { 
  transform: translateY(-5px) scale(1.02); /* Combine transforms */
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}
.portfolio-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.portfolio-card:hover .portfolio-card__image { transform: scale(1.05); }
.portfolio-card__caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem;
  z-index: 2;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
}
.portfolio-card__tag {
  display: block;
  color: var(--color-cta);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}
.portfolio-card__title {
  color: #fff;
  font-size: 1.75rem;
  margin: 0;
}



/* --- WhatsApp FAB --- */
.whatsapp-wrapper {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
}

.whatsapp-message {
  background-color: white;
  color: #333;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
  font-size: 0.9rem;
  font-weight: 600;
  position: relative;
  opacity: 0;
  transform: translateY(10px);
  /* Loop animation: 20s total cycle */
  animation: messageLoop 20s ease infinite;
  margin-right: 0.5rem;
  transition: opacity 0.3s ease;
  pointer-events: none; /* Prevent clicking while fading */
}
/* Allow clicking when visible (handled by keyframes mostly, but pointer-events is tricky with keyframes. 
   Actually, the bubble isn't clickable, it's just text. The button is separate. 
   So pointer-events: none is fine, or auto if we want text selection. */
.whatsapp-message { pointer-events: auto; }

.whatsapp-message.hidden {
  opacity: 0 !important;
  animation: none !important;
  pointer-events: none;
  display: none; /* Ensure it doesn't take space or interfere */
}

.whatsapp-message::after {
  content: '';
  position: absolute;
  bottom: -6px;
  right: 20px;
  width: 12px;
  height: 12px;
  background-color: white;
  transform: rotate(45deg);
}

.fab--whatsapp {
  width: 60px;
  height: 60px;
  background-color: #25D366;
  color: #FFFFFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  animation: pulse 2s infinite;
  border: none;
  cursor: pointer;
}

@keyframes messageLoop {
  0%, 15% { /* Hidden for first 3s (15% of 20s) */
    opacity: 0;
    transform: translateY(10px);
  }
  20%, 50% { /* Appear and stay visible for ~6s */
    opacity: 1;
    transform: translateY(0);
  }
  55%, 100% { /* Fade out and stay hidden */
    opacity: 0;
    transform: translateY(10px);
  }
}

.fab--whatsapp:hover { 
  transform: scale(1.1); 
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3); 
  animation: none;
}

/* --- WhatsApp Chat Widget --- */
.whatsapp-chat {
  position: absolute;
  bottom: 80px;
  right: 0;
  width: 320px;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 5px 25px rgba(0,0,0,0.2);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.95);
  transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1);
  transform-origin: bottom right;
}

.whatsapp-chat.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.whatsapp-chat__header {
  background-color: #075E54;
  color: white;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.whatsapp-chat__avatar {
  width: 40px;
  height: 40px;
  background: white;
  border-radius: 50%;
  padding: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.whatsapp-chat__avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
}

.whatsapp-chat__info {
  display: flex;
  flex-direction: column;
}

.whatsapp-chat__name {
  font-weight: 700;
  font-size: 1rem;
}

.whatsapp-chat__status {
  font-size: 0.75rem;
  opacity: 0.9;
}

.whatsapp-chat__close {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  padding: 0.25rem;
  transition: transform 0.2s;
}
.whatsapp-chat__close:hover {
  transform: rotate(90deg);
}

.whatsapp-chat__body {
  background-color: #E5DDD5;
  background-image: url('https://user-images.githubusercontent.com/15075759/28719144-86dc0f70-73b1-11e7-911d-60d70fcded21.png'); /* WhatsApp BG Pattern */
  height: 250px;
  padding: 1rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.whatsapp-chat__message {
  max-width: 80%;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  font-size: 0.9rem;
  line-height: 1.4;
  position: relative;
  margin-bottom: 0.5rem;
}

.whatsapp-chat__message.incoming {
  background-color: white;
  align-self: flex-start;
  border-top-left-radius: 0;
}

.whatsapp-chat__time {
  display: block;
  font-size: 0.65rem;
  color: #999;
  text-align: right;
  margin-top: 0.25rem;
}

.whatsapp-chat__footer {
  padding: 0.75rem;
  background-color: #F0F0F0;
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

#whatsapp-input {
  flex: 1;
  border: none;
  padding: 0.75rem 1rem;
  border-radius: 20px;
  outline: none;
  font-size: 0.9rem;
}

.whatsapp-chat__send {
  background: none;
  border: none;
  color: #075E54;
  cursor: pointer;
  padding: 0.5rem;
  transition: transform 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.whatsapp-chat__send:hover {
  transform: scale(1.1);
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* --- Portfolio WIP Items --- */
.portfolio-item--wip {
  cursor: default;
}
.portfolio-item--wip .portfolio-item__image {
  filter: grayscale(100%) brightness(0.5);
}
.portfolio-item--wip .portfolio-item__overlay {
  opacity: 1;
  background: rgba(0,0,0,0.4);
}
.portfolio-item--wip .portfolio-item__title {
  font-size: 1rem;
  opacity: 0.8;
}
.portfolio-item--wip:hover .portfolio-item__image {
  transform: none;
}

/* ------------------------- */
/* 7. ANIMAÇÕES              */
/* ------------------------- */
.animate-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.animate-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.animate-fade-up {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s ease-out forwards;
}
.animate-fade-up:nth-child(1) { animation-delay: 0.2s; }
.animate-fade-up:nth-child(2) { animation-delay: 0.4s; }
.animate-fade-up:nth-child(3) { animation-delay: 0.6s; }
.hero__figure.animate-fade-up { animation-delay: 0.8s; }
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes subtleZoom {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.02);
  }
}

/* ------------------------- */
/* 8. RESPONSIVIDADE         */
/* ------------------------- */
@media (max-width: 1024px) {
  .hero__container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero__content {
    max-width: 80%;
    margin: 0 auto;
  }
  .hero__figure {
    display: none; /* Oculta a imagem em tablets para focar no texto */
  }
  .expansion-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --padding-section: 4rem 1rem;
  }
  h1 { font-size: 2.5rem; }
  h2 { font-size: 1.8rem; }
  
  .navbar__container {
    flex-wrap: wrap;
    justify-content: space-between;
  }
  
  .navbar__toggle {
    display: block;
    background: none;
    border: none;
    color: var(--color-text-primary);
    cursor: pointer;
    padding: 0.5rem;
  }
  
  .navbar__links {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 1.5rem;
    background-color: var(--color-background);
    padding: 2rem 1rem;
    position: absolute;
    top: 100%;
    left: 0;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    border-top: 1px solid var(--color-border);
  }
  
  .navbar__links.active {
    display: flex;
    animation: slideDown 0.3s ease forwards;
  }
  
  @keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .navbar__cta {
    display: none; /* Oculta o CTA principal na navbar mobile */
  }
  
  .timeline::before {
    left: 25px;
  }
  .timeline__item {
    width: 100%;
    left: 0 !important;
    text-align: left !important;
    padding-left: 70px;
  }
  .timeline__item:nth-child(odd) .timeline__marker,
  .timeline__item:nth-child(even) .timeline__marker {
    left: 0;
  }
  
  .service-card {
    width: calc(50% - 1rem);
  }
  
  .clients__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  
  .footer__container {
    flex-direction: column;
    text-align: center;
  }
  .footer__links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .service-card {
    width: 100%;
  }
}
