/* 
  Anebi Comunica - Design System & Styles
  Palette: Cream Base, Sage Green, Beige, Moss Green accents
  Fonts: Cormorant Garamond (Display), DM Sans (Body)
*/

:root {
  /* Colors - Updated with Logo Blue */
  --color-cream: #F8FAFC;
  /* Slate-50 */
  --color-beige: #F1F5F9;
  /* Slate-100 */
  --color-sage-light: #E2E8F0;
  /* Slate-200 */
  --color-sage: #527EBC;
  /* Primary Logo Blue */
  --color-moss: #1E293B;
  /* Slate-800 for CTAs */
  --color-moss-light: #334155;
  /* Slate-700 for hover */
  --color-text-dark: #142346;
  /* Slate-900 */
  --color-text-body: #475569;
  /* Slate-600 */

  /* Typography */
  --font-display: 'Cormorant Garamond', serif;
  --font-body: 'DM Sans', sans-serif;

  /* Shadows & Shapes */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --shadow-sm: 0 4px 12px rgba(34, 55, 36, 0.05);
  --shadow-md: 0 12px 32px rgba(34, 55, 36, 0.08);

  /* Transitions */
  --transition-fast: 200ms ease;
  --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--color-text-body);
  background-color: var(--color-cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  color: var(--color-text-dark);
  line-height: 1.1;
  font-weight: 600;
}

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

img {
  max-width: 100%;
  border-radius: var(--radius-md);
  display: block;
}

/* =========================================================================
   UTILITIES & LAYOUT 
========================================================================= */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-small {
  max-width: 800px;
}

.container-nav {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-full-right {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 0;
}

@media (min-width: 1248px) {
  .container-full-right {
    margin-right: 0;
    width: calc(50vw + 600px);
  }
}

.section {
  padding: 100px 0;
}

.center {
  text-align: center;
}

.bg-beige {
  background-color: var(--color-beige);
}

.bg-sage-light {
  background-color: var(--color-sage-light);
}

.text-sage {
  color: var(--color-sage);
  font-style: italic;
}

.text-white {
  color: #fff;
}

.text-white-muted {
  color: rgba(255, 255, 255, 0.85);
}

.overline {
  display: inline-block;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-sage);
  font-weight: 600;
  margin-bottom: 12px;
}

/* Typography Classes */
.display-title {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  letter-spacing: -0.02em;
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 3rem);
  margin-bottom: 24px;
}

.section-description {
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--color-text-body);
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 100px;
  font-weight: 500;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  font-family: var(--font-body);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.9rem;
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.1rem;
}

.btn-primary {
  background-color: var(--color-sage);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: #3d88f0;
  /* A slightly darker blue from the user's navbar edit */
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.btn-secondary {
  background-color: var(--color-cream);
  color: var(--color-moss);
}

.btn-secondary:hover {
  background-color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-outline {
  border: 1px solid rgba(34, 55, 36, 0.2);
  color: var(--color-moss);
}

.btn-outline:hover {
  border-color: var(--color-moss);
  background-color: var(--color-moss);
  color: #fff;
}

/* =========================================================================
   SCROLL ANIMATIONS (Reveal)
========================================================================= */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================================
   HEADER / NAVBAR
========================================================================= */
.navbar {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 2rem);
  max-width: 1148px;
  z-index: 1000;
  padding: 0.75rem 0;
  transition: var(--transition-slow);
  background-color: transparent;
  border-radius: 50px;
  border: 1px solid transparent;
}

.navbar.scrolled {
  background-color: rgba(57, 100, 161, 0.568);
  /* Fundo escuro esfumaçado */
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.75rem 0;
}

.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--color-moss);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links a:not(.btn) {
  font-size: 0.95rem;
  color: #fff;
  /* White text for dark hero */
  font-weight: 500;
}

.nav-links a:not(.btn):hover {
  color: rgba(255, 255, 255, 0.7);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  width: 30px;
  height: 20px;
  position: relative;
  cursor: pointer;
  z-index: 1001;
}

.mobile-menu-btn span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: #fff;
  /* White hamburger icon */
  position: absolute;
  transition: var(--transition-fast);
}

.mobile-menu-btn span:nth-child(1) {
  top: 0;
}

.mobile-menu-btn span:nth-child(2) {
  top: 9px;
}

.mobile-menu-btn span:nth-child(3) {
  top: 18px;
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: rotate(45deg);
  top: 9px;
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg);
  top: 9px;
}

.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #527EBC;
  /* Dark background */
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-slow);
}

.mobile-nav.active {
  opacity: 1;
  pointer-events: all;
}

.mobile-nav-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.mobile-link {
  font-family: var(--font-display);
  font-size: 2rem;
  color: #fff;
  /* White text */
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }
}

/* =========================================================================
   HERO SECTION (Glassmorphism & Centered)
========================================================================= */
.hero {
  padding-top: 140px;
  padding-bottom: 80px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  /* Imagem estática carregada imediatamente como fallback/fundo inicial */
  background: #070B14 url('assets/BACKGROUND-ESTATICA.png') center/cover no-repeat;
  background-size: cover;
  transition: background-image 1.2s ease;
}

/* Quando o vídeo começa a tocar, remove a imagem de fundo para não sobrepor */
.hero.video-ready {
  background-image: none;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.hero-video.loaded {
  opacity: 0.4;
}

@keyframes float {
  from {
    transform: translate(0, 0) scale(1);
  }

  to {
    transform: translate(-50px, 50px) scale(1.15);
  }
}

.hero-container-centered {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  text-align: center;
}

.hero-glass-card {
  background: rgba(255, 255, 255, 0.03);
  /* Dark glass */
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xl);
  padding: 64px 40px;
  max-width: 800px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4);
}

.hero-glass-card .display-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: 1.15rem;
  margin: 0 auto 40px;
  max-width: 500px;
  color: rgba(255, 255, 255, 0.7);
}

.btn-glass {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .hero-glass-card {
    padding: 40px 24px;
  }
}

/* =========================================================================
   SERVICES 
========================================================================= */
.section-header {
  margin-bottom: 60px;
  max-width: 600px;
}

.section-header.center {
  margin-left: auto;
  margin-right: auto;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.service-card {
  background: #fff;
  padding: 48px 32px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-slow);
  height: 100%;
  cursor: pointer;
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(82, 126, 188, 0.08);
  border-color: rgba(82, 126, 188, 0.15);
}

.card-icon {
  width: 64px;
  height: 64px;
  background-color: var(--color-sage-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-moss);
  margin-bottom: 24px;
}

.service-card h3 {
  font-size: 1.6rem;
  margin-bottom: 16px;
}

/* =========================================================================
   PORTFOLIO (Horizontal Scroll API style)
========================================================================= */
.portfolio-section {
  overflow: hidden;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  aspect-ratio: 4 / 5;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: var(--transition-slow);
}

.portfolio-item:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
}

.item-main {
  grid-column: span 2;
  grid-row: span 2;
}

.item-side-1,
.item-side-2,
.item-bottom-1,
.item-bottom-2,
.item-bottom-3 {
  grid-column: span 1;
}

@media (max-width: 992px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (max-width: 576px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .item-main {
    grid-column: span 1;
    grid-row: span 1;
  }
}



.portfolio-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 32px;
  background: linear-gradient(to top, rgba(29, 65, 116, 0.795), transparent 100%);
  color: #fff;
  transform: translateY(20px);
  opacity: 0;
  transition: var(--transition-slow);
}

.portfolio-item:hover .portfolio-overlay {
  transform: translateY(0);
  opacity: 1;
}

.portfolio-overlay span {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.portfolio-overlay h3 {
  color: white;
  font-size: 1.8rem;
  margin-top: 8px;
}

/* =========================================================================
   FOR WHO
========================================================================= */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.rounded-image-container {
  width: 100%;
  height: 600px;
  border-radius: 400px 400px 24px 24px;
  overflow: hidden;
  position: relative;
}

.image-placeholder {
  background: var(--color-sage);
}

.rounded-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.texture-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("data:image/svg+xml,%3Csvg width='100' height='100' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100' height='100' filter='url(%23noise)' opacity='0.15'/%3E%3C/svg%3E");
  opacity: 0.3;
}

.benefit-list {
  list-style: none;
  margin-top: 32px;
}

.benefit-list li {
  display: flex;
  margin-bottom: 24px;
  align-items: flex-start;
}

.icon-check {
  color: var(--color-moss);
  margin-right: 16px;
  flex-shrink: 0;
  background-color: white;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}

.for-who-cta {
  margin-top: 40px;
  display: inline-flex;
}

@media(max-width: 992px) {
  .two-col {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .rounded-image-container {
    height: 400px;
  }
}

/* =========================================================================
   HOW WE WORK (Method)
========================================================================= */
.method-lead {
  font-size: 1.25rem;
  color: var(--color-text-body);
}

.method-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  margin-top: 60px;
  position: relative;
}

.step-card {
  padding: 40px;
  background-color: white;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(0, 0, 0, 0.03);
  position: relative;
  z-index: 2;
}

.step-number {
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--color-sage);
  opacity: 0.5;
  margin-bottom: 24px;
  line-height: 1;
}

.step-card h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

/* =========================================================================
   FEEDBACKS
========================================================================= */
.feedback-slider-container {
  overflow: hidden;
  width: 100%;
}

.feedback-track {
  display: flex;
  gap: 24px;
  width: max-content;
  animation: slideLeft 40s linear infinite;
}

.feedback-track:hover {
  animation-play-state: paused;
}

.feedback-card {
  background-color: white;
  padding: 40px;
  border-radius: var(--radius-lg);
  width: 450px;
  box-shadow: var(--shadow-sm);
}

.quote {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-style: italic;
  margin-bottom: 24px;
  color: var(--color-text-dark);
}

.author {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 8px;
}

.author-avatar {
  width: 65px;
  height: 65px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background-color: var(--color-sage-light);
  border: 2px solid var(--color-sage);
}

.author-avatar.avatar-placeholder {
  background: linear-gradient(135deg, var(--color-sage-light), var(--color-sage));
}

.author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.author-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.author strong {
  display: block;
  color: var(--color-text-dark);
}

.author span {
  font-size: 0.9rem;
  color: var(--color-sage);
}

.author-instagram {
  font-size: 0.8rem;
  color: #527EBC;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: var(--transition-fast);
}

.author-instagram:hover {
  color: #527EBC;
  text-decoration: underline;
}

@keyframes slideLeft {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(calc(-50% - 12px));
  }
}

@media(max-width: 768px) {
  .feedback-card {
    width: 320px;
    padding: 32px;
  }

  .quote {
    font-size: 1.3rem;
  }
}

/* =========================================================================
   CTA SECTION
========================================================================= */
.cta-box {
  background-color: var(--color-moss);
  border-radius: var(--radius-xl);
  padding: 80px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
  margin: 0 auto;
}

.cta-content p {
  margin: 24px 0 40px;
  font-size: 1.15rem;
}

/* =========================================================================
   FOOTER
========================================================================= */
/* =========================================================================
   FOOTER
========================================================================= */
.footer {
  padding: 80px 0 40px;
  background-color: #1E293B;
  /* Fundo escuro como no exemplo */
  color: #fff;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

.footer-socials {
  display: flex;
  gap: 12px;
}

.social-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.05);
  /* Círculo sutil */
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.8);
  transition: var(--transition-fast);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-icon:hover {
  background-color: var(--color-sage);
  color: #fff;
  border-color: var(--color-sage);
  transform: translateY(-3px);
}

.footer-separator {
  width: 100%;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.1);
  margin-bottom: 32px;
}

.footer-bottom {
  text-align: center;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.4);
}

@media (max-width: 768px) {
  .footer-top {
    flex-direction: column;
    gap: 32px;
    text-align: center;
  }

  .footer {
    padding: 60px 0 30px;
  }
}