/* =============================================
   ENCONTA GESTÃO — CSS Principal
   Paleta extraída da logo:
   - Wine escuro:  #3D0A1F
   - Wine médio:   #6B1035
   - Wine suave:   #8B1A44
   - Dourado:      #C5A464
   - Dourado claro:#D4B87A
   - Creme:        #F8F3F0
   - Branco:       #FFFFFF
   - Texto escuro: #1A0A10
============================================= */

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

:root {
  --wine-dark:    #3D0A1F;
  --wine:         #6B1035;
  --wine-mid:     #8B1A44;
  --gold:         #C5A464;
  --gold-light:   #D4B87A;
  --gold-pale:    #EFE0C0;
  --cream:        #F8F3F0;
  --cream-mid:    #F0E8E2;
  --white:        #FFFFFF;
  --text-dark:    #1A0A10;
  --text-mid:     #4A2535;
  --text-light:   #8A6070;

  --font-serif:   'Cormorant Garamond', Georgia, serif;
  --font-sans:    'Inter', system-ui, sans-serif;

  --transition:   0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --radius:       12px;
  --radius-lg:    20px;
  --shadow:       0 4px 24px rgba(61,10,31,0.10);
  --shadow-lg:    0 12px 48px rgba(61,10,31,0.16);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-dark);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

.container {
  width: 90%;
  max-width: 1160px;
  margin: 0 auto;
}

.section {
  padding: 100px 0;
}

/* ---- TYPOGRAPHY ---- */
.section-label {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  line-height: 1.18;
  color: var(--wine-dark);
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-light);
  margin-top: 14px;
  max-width: 560px;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

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

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 32px;
  border-radius: 50px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gold);
  color: var(--wine-dark);
  border-color: var(--gold);
}
.btn-primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(197,164,100,0.40);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.55);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--white);
}

/* ---- ANIMATIONS ---- */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: none;
}

/* ---- NAVBAR ---- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: background var(--transition), padding var(--transition), box-shadow var(--transition);
}

.navbar.scrolled {
  background: var(--wine-dark);
  padding: 12px 0;
  box-shadow: 0 4px 32px rgba(0,0,0,0.25);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-logo img {
  height: 52px;
  width: auto;
  object-fit: contain;
  border-radius: 6px;
}

.nav-links {
  display: flex;
  gap: 32px;
  margin-left: auto;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.03em;
  transition: color var(--transition);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1.5px;
  background: var(--gold);
  transition: width var(--transition);
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { width: 100%; }

.nav-cta { margin-left: 8px; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: auto;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

/* ---- HERO ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--wine-dark);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 80% 50%, rgba(107,16,53,0.6) 0%, transparent 70%),
    radial-gradient(ellipse 50% 80% at 10% 80%, rgba(197,164,100,0.08) 0%, transparent 60%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(61,10,31,0.95) 0%, rgba(61,10,31,0.6) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  max-width: 680px;
  padding-top: 100px;
}

.hero-logo {
  height: 90px;
  width: auto;
  border-radius: 10px;
  margin-bottom: 8px;
}

.hero-headline {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 600;
  line-height: 1.12;
  color: var(--white);
  letter-spacing: -0.01em;
}
.hero-headline em {
  font-style: italic;
  color: var(--gold);
}

.hero-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.78);
  max-width: 520px;
  line-height: 1.75;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 36px; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.hero-scroll-hint span {
  display: block;
  width: 1.5px;
  height: 52px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollPulse 2s ease infinite;
}
@keyframes scrollPulse {
  0%,100% { opacity: 0.3; transform: scaleY(1); }
  50%      { opacity: 1;   transform: scaleY(1.15); }
}

/* ---- SOBRE ---- */
.sobre {
  background: var(--white);
}

.sobre-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.sobre-text p {
  color: var(--text-mid);
  margin-top: 18px;
  font-size: 1.02rem;
}

.sobre-text .section-title { margin-top: 6px; }

.sobre-stats {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--cream-mid);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-number {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--wine);
  line-height: 1;
}

.stat-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-light);
  font-weight: 500;
}

.stat-divider {
  width: 1px;
  height: 48px;
  background: var(--cream-mid);
}

.sobre-card {
  perspective: 1000px;
}

.sobre-card-inner {
  background: var(--wine-dark);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  text-align: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.sobre-card-inner::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: rgba(197,164,100,0.08);
}

.sobre-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px; height: 80px;
  border-radius: 50%;
  background: rgba(197,164,100,0.15);
  color: var(--gold);
  margin-bottom: 20px;
}

.sobre-card-inner h3 {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.sobre-cargo {
  font-size: 0.82rem;
  color: var(--gold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 18px !important;
}

.sobre-bio {
  font-size: 0.97rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.7;
  margin-bottom: 28px !important;
}

.sobre-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.sobre-tags span {
  padding: 5px 14px;
  border-radius: 50px;
  border: 1px solid rgba(197,164,100,0.4);
  font-size: 0.8rem;
  color: var(--gold-light);
  letter-spacing: 0.04em;
}

/* ---- SERVIÇOS ---- */
.servicos {
  background: var(--cream);
}

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

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 28px;
  border: 1px solid rgba(197,164,100,0.15);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--wine) 0%, var(--gold) 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(197,164,100,0.35);
}

.card:hover::before { transform: scaleX(1); }

.card-icon {
  width: 54px; height: 54px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--wine-dark) 0%, var(--wine) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  margin-bottom: 20px;
}

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

.card h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--wine-dark);
  margin-bottom: 10px;
  line-height: 1.3;
}

.card p {
  font-size: 0.93rem;
  color: var(--text-light);
  line-height: 1.7;
}

/* ---- DIFERENCIAIS ---- */
.diferenciais {
  background: var(--wine-dark);
  position: relative;
  overflow: hidden;
}

.diferenciais::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(197,164,100,0.06) 0%, transparent 70%);
}

.diferenciais .section-label { color: var(--gold); }
.diferenciais .section-title { color: var(--white); }
.diferenciais .section-desc  { color: rgba(255,255,255,0.65); }

.dif-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.dif-item {
  text-align: center;
  padding: 36px 24px;
  border-radius: var(--radius);
  border: 1px solid rgba(197,164,100,0.15);
  background: rgba(255,255,255,0.03);
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
}

.dif-item:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(197,164,100,0.35);
  transform: translateY(-4px);
}

.dif-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(197,164,100,0.15) 0%, rgba(197,164,100,0.05) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  margin: 0 auto 20px;
}

.dif-icon svg { width: 28px; height: 28px; }

.dif-item h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 12px;
  line-height: 1.3;
}

.dif-item p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.62);
  line-height: 1.75;
}

/* ---- CONTATO ---- */
.contato {
  background: var(--cream);
}

.contato-inner {
  text-align: center;
}

.contato-inner .section-title { margin-top: 8px; }

.contato-desc {
  font-size: 1.05rem;
  color: var(--text-light);
  margin: 20px auto 0;
  max-width: 520px;
}

.contato-cards {
  display: flex;
  gap: 24px;
  justify-content: center;
  margin-top: 52px;
  flex-wrap: wrap;
}

.contato-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 28px 36px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid rgba(197,164,100,0.2);
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  min-width: 280px;
}

.contato-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.contato-wpp {
  background: var(--wine-dark);
  border-color: var(--wine-dark);
  color: var(--white);
}

.contato-card-icon {
  flex-shrink: 0;
  width: 52px; height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(197,164,100,0.15);
  color: var(--gold);
}

.contato-wpp .contato-card-icon {
  background: rgba(255,255,255,0.12);
  color: #25D366;
}

.contato-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 3px;
}

.contato-wpp .contato-label { color: rgba(255,255,255,0.55); }

.contato-value {
  display: block;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--wine-dark);
}

.contato-wpp .contato-value { color: var(--white); }

/* ---- FOOTER ---- */
.footer {
  background: #1A0A10;
  color: rgba(255,255,255,0.6);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 48px;
  padding: 64px 0 48px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.footer-logo {
  height: 60px;
  width: auto;
  border-radius: 8px;
  margin-bottom: 14px;
}

.footer-tagline {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-style: italic;
  color: var(--gold);
  max-width: 200px;
  line-height: 1.55;
}

.footer-info p {
  font-size: 0.92rem;
  line-height: 1.9;
}

.footer-info strong { color: var(--white); }

.footer-info a {
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
}
.footer-info a:hover { color: var(--gold); }

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-nav a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.55);
  transition: color var(--transition), padding-left var(--transition);
}
.footer-nav a:hover { color: var(--gold); padding-left: 6px; }

.footer-bottom {
  text-align: center;
  padding: 20px 0;
}

.footer-bottom p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.3);
}

/* ---- WHATSAPP FLOAT ---- */
.wpp-float {
  position: fixed;
  bottom: 28px; right: 28px;
  z-index: 999;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.45);
  transition: transform var(--transition), box-shadow var(--transition);
  animation: wppPulse 3s ease infinite;
}

.wpp-float svg { width: 28px; height: 28px; fill: var(--white); }

.wpp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37,211,102,0.55);
  animation: none;
}

@keyframes wppPulse {
  0%,100% { box-shadow: 0 4px 20px rgba(37,211,102,0.45), 0 0 0 0 rgba(37,211,102,0.3); }
  50%      { box-shadow: 0 4px 20px rgba(37,211,102,0.45), 0 0 0 10px rgba(37,211,102,0); }
}

/* ============================================
   RESPONSIVO
============================================ */

@media (max-width: 1024px) {
  .dif-grid { grid-template-columns: repeat(2, 1fr); }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .section { padding: 72px 0; }

  /* Navbar mobile */
  .nav-links {
    position: fixed;
    inset: 0 0 0 35%;
    background: var(--wine-dark);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 48px 32px;
    gap: 24px;
    transform: translateX(100%);
    transition: transform var(--transition);
    z-index: 1001;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { font-size: 1.1rem; }

  .nav-cta { display: none; }

  .hamburger {
    display: flex;
    z-index: 1002;
  }

  .hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .hamburger.active span:nth-child(2) { opacity: 0; }
  .hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* Hero */
  .hero-content { align-items: center; text-align: center; padding-top: 80px; }
  .hero-sub { text-align: center; }

  /* Sobre */
  .sobre-grid { grid-template-columns: 1fr; gap: 48px; }
  .sobre-stats { justify-content: center; }

  /* Cards */
  .cards-grid { grid-template-columns: 1fr; }
  .dif-grid   { grid-template-columns: 1fr; }

  /* Footer */
  .footer-inner { grid-template-columns: 1fr; gap: 32px; padding: 48px 0 32px; }
  .footer-tagline { max-width: 100%; }
}

@media (max-width: 480px) {
  .contato-card { min-width: unset; width: 100%; }
  .contato-cards { flex-direction: column; align-items: stretch; }
  .sobre-stats { flex-direction: column; gap: 20px; }
  .stat-divider { width: 40px; height: 1px; }
}
