:root {
  --color-wine: #722f37;
  --color-wine-dark: #4a1c23;
  --color-wine-light: #8b3a42;
  --color-berry: #9b2335;
  --color-cream: #fdf8f5;
  --color-warm-white: #fffaf8;
  --color-gold: #c9a227;
  --color-dark: #1a1a1a;
  --color-gray: #6b6b6b;
  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Montserrat", sans-serif;
  --shadow-soft: 0 4px 20px rgba(114, 47, 55, 0.15);
  --shadow-medium: 0 8px 40px rgba(114, 47, 55, 0.2);
  --radius-lg: 24px;
  --radius-xl: 40px;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: var(--font-body);
  background: var(--color-cream);
  color: var(--color-dark);
}
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 4%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.4s ease;
  background: linear-gradient(
    180deg,
    rgba(74, 28, 35, 0.9) 0,
    rgba(74, 28, 35, 0.7) 50%,
    transparent 100%
  );
}
.nav.scrolled {
  background: rgba(114, 47, 55, 0.9) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-medium);
  padding: 0.6rem 4%;
}
.logo img {
  height: 70px;
  width: auto;
  transition: height 0.3s ease;
}
.nav.scrolled .logo img {
  height: 55px;
  width: auto;
}
.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: #fff;
  text-decoration: none;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}
.nav.scrolled .nav-links a {
  color: #fff !important;
  text-shadow: none;
}
.nav-links a.nav-active,
.nav-links a:hover {
  color: var(--color-gold);
}
@media (max-width: 768px) {
  .nav-cta,
  .nav-links {
    display: none !important;
  }
  .mobile-menu-btn {
    display: flex !important;
  }
}
.mobile-nav a,
.nav-cta {
  font-weight: 600;
  text-decoration: none;
}
.nav-cta {
  background: var(--color-wine);
  color: #fff;
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius-xl);
  font-size: 0.85rem;
  transition: all 0.3s ease;
}
.nav.scrolled .nav-cta {
  background: var(--color-gold);
  color: var(--color-wine-dark);
}
.nav-cta:hover,
.nav.scrolled .nav-cta:hover {
  background: #fff;
  color: var(--color-wine);
  transform: translateY(-2px);
}
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: 0 0;
  border: 0;
  cursor: pointer;
  padding: 10px;
}
.mobile-menu-btn span {
  width: 25px;
  height: 2px;
  background: #fff;
  transition: all 0.3s ease;
}
.nav.scrolled .mobile-menu-btn span {
  background: #fff;
}
.mobile-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1001;
}
.mobile-nav-overlay.active {
  display: block;
}
.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 320px;
  height: 100vh;
  background: linear-gradient(180deg, #4a1c23 0, #722f37 100%);
  z-index: 1100;
  padding: 0;
  transition: right 0.4s ease;
  display: flex;
  flex-direction: column;
  box-shadow: -4px 0 30px rgba(0, 0, 0, 0.3);
}
.mobile-nav.active {
  right: 0;
}
.mobile-nav-header {
  padding: 2rem 1.5rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mobile-nav-logo {
  height: 55px;
  width: auto;
}
.mobile-nav-close {
  background: rgba(255, 255, 255, 0.15);
  border: 0;
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.mobile-nav ul {
  list-style: none;
  padding: 1.5rem 0;
  flex: 1;
}
.mobile-nav li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.mobile-nav a {
  display: block;
  padding: 1rem 2rem;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.9);
  transition: all 0.2s;
}
.mobile-nav a.nav-active,
.mobile-nav a:hover {
  color: var(--color-gold);
  padding-left: 2.5rem;
}
.mobile-nav-footer {
  padding: 1.5rem 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.75rem;
  text-align: center;
}
.page-header {
  padding: 10rem 4% 5rem;
  background:
    linear-gradient(
      135deg,
      rgba(74, 28, 35, 0.85) 0,
      rgba(114, 47, 55, 0.7) 100%
    ),
    url(images/hero-bg-1.webp) center/cover no-repeat;
  color: #fff;
  text-align: center;
  position: relative;
}
.cta-section h2,
.page-header h1 {
  font-family: var(--font-display);
  margin-bottom: 1rem;
}
.page-header h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}
.page-header p {
  font-size: 1.2rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}
.main-content {
  padding: 4rem 4%;
  max-width: 1400px;
  margin: 0 auto;
}
.distribuidores-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}
.map-container {
  position: sticky;
  top: 100px;
  height: 500px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-medium);
}
#map {
  width: 100%;
  height: 100%;
}
.distribuidores-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.distribuidor-card {
  background: #fff;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: var(--shadow-soft);
  transition: all 0.3s;
  cursor: pointer;
  border-left: 4px solid transparent;
}
.distribuidor-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
  border-left-color: var(--color-wine);
}
.distribuidor-card.active {
  border-left-color: var(--color-gold);
  background: var(--color-warm-white);
}
.distribuidor-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}
.distribuidor-header h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--color-wine);
}
.distribuidor-cidade {
  display: inline-block;
  background: var(--color-cream);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.85rem;
  color: var(--color-gray);
}
.distribuidor-info {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.distribuidor-info-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.distribuidor-info-item svg {
  width: 18px;
  height: 18px;
  fill: var(--color-wine);
  flex-shrink: 0;
}
.distribuidor-info-item span {
  color: var(--color-gray);
  font-size: 0.95rem;
}
.distribuidor-info-item a {
  color: var(--color-wine);
  text-decoration: none;
  font-weight: 500;
}
.distribuidor-info-item a:hover {
  color: var(--color-gold);
}
.distribuidor-actions {
  display: flex;
  gap: 0.8rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #eee;
}
.btn-map,
.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #fff;
  padding: 0.6rem 1.2rem;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
  transition: all 0.3s;
}
.btn-whatsapp {
  background: #25d366;
}
.btn-whatsapp:hover {
  background: #128c7e;
  transform: translateY(-2px);
}
.btn-map {
  background: var(--color-wine);
}
.btn-map:hover {
  background: var(--color-wine-dark);
  transform: translateY(-2px);
}
.cta-section {
  background: linear-gradient(
    135deg,
    var(--color-wine-dark) 0%,
    var(--color-wine) 100%
  );
  padding: 4rem;
  border-radius: 16px;
  text-align: center;
  color: #fff;
  margin-top: 4rem;
}
.cta-section h2 {
  font-size: 2rem;
}
.cta-section p {
  opacity: 0.9;
  margin-bottom: 2rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}
.cta-btn {
  display: inline-block;
  background: var(--color-gold);
  color: var(--color-dark);
  padding: 1rem 2.5rem;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s;
}
.cta-btn:hover {
  background: #d4af37;
  transform: scale(1.05);
}
@media (max-width: 992px) {
  .distribuidores-grid {
    grid-template-columns: 1fr;
  }
  .map-container {
    position: relative;
    top: 0;
    height: 400px;
    margin-bottom: 2rem;
  }
  .nav-links {
    gap: 1.2rem;
  }
  .nav-cta {
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
  }
}
@media (max-width: 768px) {
  .nav-cta,
  .nav-links {
    display: none;
  }
  .mobile-menu-btn {
    display: flex;
  }
  .page-header {
    padding: 9rem 4% 3rem;
  }
  .page-header h1 {
    font-size: 2rem;
  }
  .main-content {
    padding: 2rem 4%;
  }
  .distribuidor-actions {
    flex-direction: column;
  }
}
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 60px;
  height: 60px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  z-index: 99;
  transition: all 0.3s ease;
}
.whatsapp-float svg {
  width: 32px;
  height: 32px;
  fill: #fff;
}
.whatsapp-float:hover {
  transform: scale(1.1);
}
@media (max-width: 480px) {
  .distribuidores-list {
    grid-template-columns: 1fr !important;
  }
  .distribuidor-card {
    padding: 1rem;
  }
  .map-container {
    height: 250px !important;
  }
  .page-hero h1 {
    font-size: 1.8rem;
  }
}
.fade-in {
  opacity: 0;
  transform: translateY(25px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
div[id],
section[id] {
  scroll-margin-top: 80px;
}
@media (max-width: 768px) {
  div[id],
  section[id] {
    scroll-margin-top: 65px;
  }
}
@media (min-width: 769px) {
  .nav {
    justify-content: center;
    gap: clamp(1.2rem, 2vw, 2.25rem);
    padding: 0.75rem 2rem;
  }
  .nav.scrolled {
    padding: 0.55rem 2rem;
  }
  .logo img {
    height: 58px;
  }
  .nav.scrolled .logo img {
    height: 48px;
  }
  .nav-links {
    gap: clamp(1.15rem, 1.8vw, 1.75rem);
  }
  .nav-links a {
    font-size: 0.84rem;
  }
  .nav-cta {
    padding: 0.7rem 1.15rem;
    border-radius: 8px;
    font-size: 0.76rem;
    letter-spacing: 0.03em;
  }
}
