:root {
  /* Colors — Paleta Frida Kahlo */
  --c-bg-deep: #3F5D56;       /* Verde petróleo suave */
  --c-bg-slate: #55624F;      /* Verde musgo sofisticado */
  --c-accent-primary: #5E6B57;  /* Verde oliva queimado — acao e botoes */
  --c-accent-secondary: #B56E4D; /* Terracota suave — highlight quente */
  --c-accent-gold: #B89A5A;   /* Dourado queimado — acentos e ícones */
  --c-bg-sage: #8A9680;       /* Verde sálvia — fundos de sessão */
  --c-text-light: #F3EFE7;    /* Branco quente */
  --c-text-mid: #EAE4D8;      /* Areia claro */
  --c-text-dark: #55624F;     /* Verde musgo para texto em fundos claros */

  /* Typography */
  --font-heading: 'Cormorant Garamond', serif;
  --font-body: 'Jost', sans-serif;

  /* Spacing Modules (Base 8px) */
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 40px;
  --space-xl: 80px;
  --space-xxl: 160px;
  
  --container-width: 1200px;
  --border-radius: 0px; /* Minimalist Frida Luxury */
  
  --shadow-deep: 0 20px 40px rgba(0, 0, 0, 0.4);
}

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

html {
  scroll-behavior: initial; /* Lenis handles this */
  font-size: 16px;
  background-color: var(--c-bg-deep);
}

body {
  font-family: var(--font-body);
  color: var(--c-text-light);
  line-height: 1.6;
  font-weight: 300;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  border: none;
  background: none;
  font-family: inherit;
  cursor: pointer;
}

img {
  max-width: 100%;
  display: block;
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.highlight-italic {
  font-weight: 300;
  font-style: italic;
  color: var(--c-accent-secondary);
}

.section-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: var(--space-md);
}

.section-text {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  opacity: 0.8;
  max-width: 600px;
}

/* ==========================================================================
   UTILITIES & GLOBAL COMPONENTS
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.section-dark {
  background-color: var(--c-bg-deep);
  color: var(--c-text-light);
  position: relative;
}

.section-slate {
  background-color: var(--c-bg-slate);
  color: var(--c-text-light);
  position: relative;
}

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

/* Noise Texture */
.noise-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.03;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: var(--border-radius);
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  position: relative;
  z-index: 2;
  overflow: hidden;
}

.btn-primary {
  background-color: var(--c-accent-primary);
  color: var(--c-text-light);
}

.btn-primary:hover {
  background-color: var(--c-accent-secondary);
  color: var(--c-bg-deep);
  transform: translateY(-4px);
  box-shadow: var(--shadow-deep);
}

.btn-secondary {
  background-color: var(--c-accent-secondary);
  color: var(--c-text-dark);
  font-weight: 600;
}

.btn-secondary:hover {
  background-color: var(--c-bg-deep);
  color: var(--c-accent-secondary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-deep);
}

.btn-outline {
  background-color: transparent;
  color: var(--c-text-light);
  border: 1px solid rgba(244, 241, 235, 0.3);
}

.btn-outline:hover {
  border-color: var(--c-text-light);
  background-color: var(--c-text-light);
  color: var(--c-bg-deep);
}

/* ==========================================================================
   A. NAVBAR (The Floating Frame)
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background-color: rgba(63, 93, 86, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(244, 241, 235, 0.05);
  transform: translateY(-100%);
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.navbar.visible {
  transform: translateY(0);
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.navbar-logo img {
  height: 40px;
  width: auto;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  width: 30px;
  z-index: 101;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 1px;
  background-color: var(--c-text-light);
  transition: 0.3s;
}

@media (max-width: 768px) {
  .navbar-action { display: none; }
  .menu-toggle { display: flex; }
  .navbar-logo { margin: 0 auto; }
}

/* ==========================================================================
   B. HERO SECTION (The Golden Hour)
   ========================================================================== */
.hero-section {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 60% 40%;
  align-items: center;
  position: relative;
}

.hero-container {
  padding-left: var(--space-xxl);
  padding-right: var(--space-xl);
  z-index: 2;
}

.hero-content {
  max-width: 600px;
}

.hero-headline {
  font-size: clamp(2.75rem, 5vw, 4.5rem); /* 72px max */
  margin-bottom: var(--space-md);
  /* SplitType vai criar elementos aqui */
}

.hero-subheadline {
  font-size: clamp(1.125rem, 1.5vw, 1.25rem); /* 20px max */
  opacity: 0.8;
  margin-bottom: var(--space-lg);
  max-width: 500px;
}

.hero-image-wrapper {
  height: 100vh;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  transform: scale(1.05); /* Will be animated */
}

.hero-gradient-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, var(--c-bg-deep) 0%, rgba(63,93,86,0) 30%);
  z-index: 1;
}

@media (max-width: 1024px) {
  .hero-container { padding-left: var(--space-md); }
}

@media (max-width: 768px) {
  .hero-section {
    grid-template-columns: 1fr;
    min-height: 100svh;
  }
  
  .hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
  }

  .hero-gradient-overlay {
    background: linear-gradient(to top, var(--c-bg-deep) 0%, rgba(63,93,86,0.6) 100%);
  }

  .hero-container {
    padding-top: var(--space-xl);
    padding-bottom: var(--space-xl);
    text-align: center;
  }

  .hero-content {
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
}

/* ==========================================================================
   C. A ESPECIALISTA (The Artisan's Craft)
   ========================================================================== */
.specialist-section {
  padding: var(--space-xxl) 0;
}

.specialist-container {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: var(--space-xl);
  align-items: center;
}

.specialist-image-wrapper {
  margin-top: -160px; /* Negative Margin to break grid */
  position: relative;
  z-index: 5;
  overflow: hidden;
  box-shadow: var(--shadow-deep);
}

.specialist-image {
  width: 100%;
  height: auto;
  aspect-ratio: 3/4;
  object-fit: cover;
  filter: grayscale(100%) contrast(1.1);
  transform: translateY(20px) scale(1.1); /* for parallax */
}

.specialist-content {
  padding-right: var(--space-xl);
}

@media (max-width: 900px) {
  .specialist-container {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
  .specialist-image-wrapper {
    margin-top: 0;
    max-width: 500px;
    margin: 0 auto;
  }
  .specialist-content {
    padding-right: 0;
    text-align: center;
  }
}

/* ==========================================================================
   D. ESPECIALIDADES (Split Layout)
   ========================================================================== */
.specialties-section {
  padding: var(--space-xxl) 0;
}

.specialties-container {
  display: grid;
  grid-template-columns: 6fr 6fr;
  gap: var(--space-xl);
  align-items: start;
}

.specialties-content {
  padding-right: var(--space-md);
}

.section-subtitle {
  font-family: var(--font-body);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--c-accent-secondary);
  margin-bottom: var(--space-sm);
}

.specialties-section .section-intro {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3vw, 2.5rem);
  margin-bottom: var(--space-xl);
}

.specialties-list {
  position: relative;
  border-top: 1px solid rgba(244, 241, 235, 0.1);
}

.specialty-item {
  border-bottom: 1px solid rgba(244, 241, 235, 0.1);
  padding: var(--space-lg) 0;
  cursor: pointer;
  transition: padding-left 0.3s ease;
}

.specialty-title {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  color: var(--c-text-light);
  transition: all 0.3s ease;
}

.specialty-drawer {
  height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all 0.4s ease;
  max-width: 600px;
  margin-top: 0;
}

/* Image Panel (Desktop) */
.specialties-image-wrapper {
  position: sticky;
  top: 120px;
  height: calc(100vh - 240px);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-deep);
}

#specialty-main-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.5s ease;
}

/* Interações Globais Desktop */
@media (min-width: 1025px) {
  .specialty-item:hover,
  .specialty-item.active-desktop {
    padding-left: 20px;
  }
  .specialty-item:hover .specialty-title,
  .specialty-item.active-desktop .specialty-title {
    color: var(--c-accent-secondary);
  }
  
  /* Mantem a gaveta fechada no desktop para ter listagem limpa, 
     ou pode abrir se quiser. Faremos a gaveta ficar visivel para leitura. */
  .specialty-item:hover .specialty-drawer,
  .specialty-item.active-desktop .specialty-drawer {
    height: auto;
    opacity: 1;
    margin-top: var(--space-md);
    padding-bottom: var(--space-md);
  }
}

/* Mobile Responsividade */
@media (max-width: 1024px) {
  .specialties-container {
    grid-template-columns: 1fr;
  }
  
  .specialties-image-wrapper {
    display: none; /* No mobile apenas o accordion com fotos internas, ou sem foto */
  }

  .specialty-title {
    font-size: clamp(1.5rem, 4vw, 2rem);
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .specialty-title::after {
    content: '+';
    font-size: 2rem;
    font-family: var(--font-body);
    font-weight: 300;
  }

  .specialty-item.active .specialty-title {
    color: var(--c-accent-secondary);
  }
  
  .specialty-item.active .specialty-title::after {
    content: '-';
  }

  .specialty-item.active .specialty-drawer {
    height: auto;
    opacity: 1;
    margin-top: var(--space-md);
    padding-bottom: var(--space-md);
  }
}

/* ==========================================================================
   E. DIFERENCIAIS (The Foundation of Contrast)
   ========================================================================== */
.differentials-section {
  padding: var(--space-xxl) 0;
}

.differentials-header {
  margin-bottom: var(--space-xxl);
  text-align: center;
}

.differentials-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--space-md);
}

.diff-item {
  position: relative;
  display: flex;
  flex-direction: column;
}

.diff-number {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: clamp(4rem, 8vw, 80px);
  color: var(--c-accent-primary);
  line-height: 0.8;
  opacity: 0.2;
  position: absolute;
  top: -20px;
  left: -20px;
  z-index: 1;
}

.diff-content {
  position: relative;
  z-index: 2;
  background: var(--c-text-light); /* Hide number behind text a bit */
  padding-top: var(--space-xs);
}

.diff-title {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.5rem;
  margin-bottom: var(--space-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.diff-text {
  font-size: 1.125rem;
  opacity: 0.8;
}

/* Asymmetric Grid Layout Desktop */
@media (min-width: 901px) {
  .diff-item-1 { grid-column: 2 / span 3; }
  .diff-item-2 { grid-column: 7 / span 4; margin-top: 80px; }
  .diff-item-3 { grid-column: 3 / span 3; margin-top: 80px; }
  .diff-item-4 { grid-column: 8 / span 4; margin-top: 80px; }
  .diff-item-5 { grid-column: 4 / span 4; margin-top: 80px; }
}

@media (max-width: 900px) {
  .differentials-grid {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
  }
  .diff-item {
    flex-direction: row;
    align-items: flex-start;
    gap: var(--space-md);
  }
  .diff-number {
    position: relative;
    top: 0;
    left: 0;
    opacity: 0.5;
  }
  .diff-content {
    padding-top: 0;
    background: transparent;
  }
}

/* ==========================================================================
   F. PORTFÓLIO (The Infinite Canvas)
   ========================================================================== */
.portfolio-section {
  padding: var(--space-xxl) 0;
  overflow: hidden;
}

.portfolio-header {
  margin-bottom: var(--space-xl);
}

.portfolio-wrapper {
  width: 100%;
}

.portfolio-gallery {
  display: flex;
  width: max-content;
  will-change: transform;
}

.portfolio-item {
  width: 400px;
  height: 533px; /* 3:4 aspect ratio */
  flex-shrink: 0;
  transition: filter 0.5s ease;
  filter: brightness(0.5) blur(2px);
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portfolio-item.is-active {
  filter: brightness(1) blur(0);
}

@media (max-width: 768px) {
  .portfolio-section { padding: var(--space-xl) 0; }
  .portfolio-gallery {
    width: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding-bottom: var(--space-md);
  }
  .portfolio-gallery::-webkit-scrollbar {
    display: none;
  }
  .portfolio-item {
    width: 85vw;
    height: auto;
    aspect-ratio: 3/4;
    scroll-snap-align: center;
    filter: brightness(1) blur(0);
  }
}

/* ==========================================================================
   G. FAQ & REGIÃO (The Architecture of Trust)
   ========================================================================== */
.faq-region-section {
  padding: var(--space-xxl) 0;
}

.faq-region-container {
  display: grid;
  grid-template-columns: 4fr 8fr;
  gap: var(--space-xl);
}

.faq-list {
  border-top: 1px solid rgba(244, 241, 235, 0.1);
}

.faq-item {
  border-bottom: 1px solid rgba(244, 241, 235, 0.1);
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-md) 0;
  color: var(--c-text-light);
  font-size: 1.25rem;
  font-weight: 400;
  text-align: left;
}

.faq-icon {
  font-size: 1.5rem;
  color: var(--c-accent-secondary);
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.faq-item.active .faq-answer {
  height: auto;
  opacity: 1;
  padding-bottom: var(--space-md);
}

.faq-answer p {
  opacity: 0.8;
  max-width: 600px;
}

@media (max-width: 900px) {
  .faq-region-container {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
}

/* ==========================================================================
   H. CTA FINAL (The Action Canvas)
   ========================================================================== */
.cta-section {
  background-color: var(--c-accent-primary);
  color: var(--c-text-light);
  padding: var(--space-xxl) 0;
  text-align: center;
  transform-origin: bottom center;
}

.cta-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.cta-headline {
  font-size: clamp(3rem, 6vw, 5rem);
  margin-bottom: var(--space-sm);
  max-width: 800px;
  line-height: 1;
}

.cta-subheadline {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  max-width: 500px;
  margin-bottom: var(--space-xl);
}

.btn-large {
  font-size: 1.125rem;
  padding: 20px 40px;
}

.logo-wpp {
  font-size: 1.5rem;
  margin-right: 8px;
}

/* Footer */
.footer {
  background-color: var(--c-bg-deep);
  color: var(--c-text-light);
  text-align: center;
  padding: var(--space-lg) 0;
  font-size: 0.875rem;
  opacity: 0.6;
}

/* ==========================================================================
   MODAL & FORMS
   ========================================================================== */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  background: var(--c-bg-deep);
  color: var(--c-text-light);
  border: 1px solid rgba(244, 241, 235, 0.1);
  border-radius: var(--border-radius);
  padding: var(--space-lg);
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-deep);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: var(--c-text-light);
  line-height: 1;
  opacity: 0.5;
  transition: opacity 0.3s;
}

.modal-close:hover {
  opacity: 1;
}

.modal-content h2 {
  margin-bottom: var(--space-sm);
  font-size: 2.5rem;
}

.form-group {
  margin-bottom: var(--space-md);
  text-align: left;
}

.form-label {
  display: block;
  margin-bottom: var(--space-xs);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.8;
}

.form-input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(244, 241, 235, 0.3);
  color: var(--c-text-light);
  font-family: var(--font-body);
  font-size: 1.1rem;
  padding: 10px 0;
  transition: border-color 0.3s;
  outline: none;
}

.form-input:focus {
  border-bottom-color: var(--c-accent-secondary);
}

.form-input option {
  background-color: var(--c-bg-deep);
  color: var(--c-text-light);
}

.form-feedback {
  margin-bottom: var(--space-md);
  font-size: 0.9rem;
  text-align: center;
}

.form-feedback.success {
  color: #4ade80; /* Green */
}

.form-feedback.error {
  color: #f87171; /* Red */
}

/* Customizações para o intl-tel-input ficar dark */
.iti { width: 100%; }
.iti__country-list {
  background-color: var(--c-bg-deep);
  border: 1px solid rgba(244, 241, 235, 0.2);
  color: var(--c-text-light);
}
.iti__country.iti__highlight {
  background-color: rgba(244, 241, 235, 0.1);
}
.iti__selected-dial-code {
  color: var(--c-text-light);
}
