@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap');

/* ==========================================================================
   DESIGN SYSTEM & VARIABLES
   ========================================================================== */
:root {
  /* Colors */
  --chocolate-escuro: #2C1A0E;   /* Fundo principal e profundo */
  --chocolate-medio: #6B3A2A;    /* Elementos secundários, blocos contrastantes */
  --dourado: #C8973A;            /* Destaques, bordas, botões primários */
  --dourado-claro: #E8C4A0;      /* Estados de hover, bege rosado quente */
  --off-white: #FAF7F2;          /* Texto sobre escuro, fundos claros limpos */
  --morango: #8B1A1A;            /* Cor de destaque para detalhes especiais */
  --creme: #F5ECD7;              /* Fundos alternados (seção Sobre) */
  --whatsapp-green: #25D366;     /* Cor oficial do WhatsApp */
  --whatsapp-hover: #20BA5A;

  /* Gradients */
  --gradient-dark: linear-gradient(180deg, #1A0E07 0%, #2C1A0E 100%);
  --gradient-gold: linear-gradient(135deg, #C8973A 0%, #E8C4A0 100%);
  --gradient-card: linear-gradient(145deg, #362112 0%, #25150B 100%);
  --overlay-hero: rgba(20, 10, 5, 0.55);

  /* Typography */
  --font-title: 'Playfair Display', serif;
  --font-body: 'DM Sans', sans-serif;

  /* Shadows */
  --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 20px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 0 20px rgba(200, 151, 58, 0.4);
  
  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  
  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 24px;
  --radius-circle: 50%;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  color: var(--chocolate-escuro);
  background-color: var(--off-white);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  font-weight: 700;
  line-height: 1.2;
}

p {
  font-weight: 400;
  color: inherit;
}

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

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0.95rem 2rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-smooth);
  border: none;
}

.btn-primary {
  background-color: var(--dourado);
  color: var(--off-white);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background-color: var(--dourado-claro);
  color: var(--chocolate-escuro);
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
}

.btn-whatsapp {
  background-color: var(--whatsapp-green);
  color: white;
}

.btn-whatsapp:hover {
  background-color: var(--whatsapp-hover);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(37, 211, 102, 0.3);
}

/* Float WhatsApp Button */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: var(--whatsapp-green);
  color: white;
  width: 60px;
  height: 60px;
  border-radius: var(--radius-circle);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  z-index: 999;
  font-size: 1.8rem;
  transition: all var(--transition-smooth);
}

.whatsapp-float:hover {
  transform: scale(1.1) rotate(8deg);
  background-color: var(--whatsapp-hover);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  transition: all var(--transition-smooth);
}

.navbar.scrolled {
  padding: 0.9rem 5%;
  background: rgba(44, 26, 14, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-md);
  border-bottom: 1px solid rgba(200, 151, 58, 0.2);
}

.navbar .logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
}

.navbar .logo-img {
  height: 75px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
  transition: height var(--transition-smooth);
}

.navbar.scrolled .logo-img {
  height: 55px;
}

.navbar .logo-text {
  font-family: var(--font-title);
  color: var(--off-white);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.navbar .nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.navbar .nav-links a {
  color: var(--off-white);
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
  padding: 0.5rem 0;
}

.navbar .nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--dourado);
  transition: width var(--transition-fast);
}

.navbar .nav-links a:hover {
  color: var(--dourado-claro);
}

.navbar .nav-links a:hover::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  background: none;
  border: none;
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background-color: var(--off-white);
  transition: all var(--transition-fast);
}

/* ==========================================================================
   HERO SECTION (SCROLL-DRIVEN)
   ========================================================================== */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #110804; /* Fundo extremamente escuro para destacar o doce */
}

.hero-media-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-frame {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 120%; /* Altura estendida para suportar movimento no parallax */
  object-fit: cover;
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--overlay-hero);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 900px;
  padding: 0 1.5rem;
  color: var(--off-white);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.hero-logo {
  height: clamp(80px, 12vh, 120px);
  width: auto;
  object-fit: contain;
  margin-bottom: 0.5rem;
  filter: brightness(0) invert(1);
}

.hero-title {
  font-size: clamp(2.2rem, 6vw, 4.5rem);
  font-weight: 800;
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.8);
  line-height: 1.1;
  color: var(--off-white);
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  font-weight: 300;
  letter-spacing: 0.05em;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
  color: var(--dourado-claro);
  max-width: 600px;
}

.hero-cta {
  margin-top: 1rem;
}

/* Indicador de Rolar Página */
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(250, 247, 242, 0.7);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  pointer-events: none;
}

.scroll-indicator-mouse {
  width: 24px;
  height: 40px;
  border: 2px solid rgba(250, 247, 242, 0.7);
  border-radius: 12px;
  position: relative;
}

.scroll-indicator-wheel {
  width: 4px;
  height: 8px;
  background-color: var(--dourado);
  border-radius: 2px;
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollMouse 1.8s infinite ease-in-out;
}

@keyframes scrollMouse {
  0% { top: 8px; opacity: 1; }
  50% { top: 20px; opacity: 0; }
  100% { top: 8px; opacity: 0; }
}

/* ==========================================================================
   SEÇÕES GERAIS
   ========================================================================== */
.section {
  padding: 8rem 10% 8rem 10%;
  position: relative;
  width: 100%;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 5rem auto;
}

.section-subtitle {
  color: var(--dourado);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  display: block;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  color: inherit;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background-color: var(--dourado);
  margin: 1.25rem auto 0 auto;
  border-radius: 2px;
}

/* ==========================================================================
   SEÇÃO SOBRE (SOBRE A DOCE MORENA)
   ========================================================================== */
.about {
  background-color: var(--creme);
  color: var(--chocolate-escuro);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about-image-wrapper {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.about-image-wrapper::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 10px solid var(--dourado);
  border-radius: var(--radius-md);
  margin: 15px;
  pointer-events: none;
  z-index: 2;
}

.about-img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

.about-image-wrapper:hover .about-img {
  transform: scale(1.05);
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.about-text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: rgba(44, 26, 14, 0.85);
}

.about-text-highlight {
  font-size: 1.25rem;
  font-weight: 500;
  font-style: italic;
  border-left: 3px solid var(--dourado);
  padding-left: 1.5rem;
  color: var(--chocolate-medio);
}

/* ==========================================================================
   SEÇÃO PRODUTOS (PRODUTOS EM DESTAQUE)
   ========================================================================== */
.products {
  background-color: var(--chocolate-escuro);
  color: var(--off-white);
}

.products .section-title::after {
  background-color: var(--dourado);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.product-card {
  background: var(--gradient-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(200, 151, 58, 0.1);
  display: flex;
  flex-direction: column;
  transition: all var(--transition-smooth);
  position: relative;
}

.product-image-container {
  position: relative;
  width: 100%;
  height: 280px;
  overflow: hidden;
}

.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

.product-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background-color: var(--morango);
  color: white;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  z-index: 2;
  box-shadow: var(--shadow-sm);
}

.product-info {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  gap: 1rem;
}

.product-title {
  font-size: 1.5rem;
  color: var(--off-white);
}

.product-desc {
  font-size: 0.95rem;
  color: rgba(250, 247, 242, 0.75);
  line-height: 1.6;
  flex-grow: 1;
}

.product-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(250, 247, 242, 0.1);
  padding-top: 1.5rem;
  margin-top: 0.5rem;
}

.product-price {
  font-family: var(--font-title);
  font-size: 1.4rem;
  color: var(--dourado);
  font-weight: 700;
}

.product-card:hover {
  transform: translateY(-10px);
  border-color: var(--dourado);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.product-card:hover .product-img {
  transform: scale(1.08);
}

/* ==========================================================================
   SEÇÃO DIFERENCIAIS (POR QUE ESCOLHER A DOCE MORENA?)
   ========================================================================== */
.features {
  background-color: var(--off-white);
  color: var(--chocolate-escuro);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3.5rem;
}

.feature-item {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  padding: 2rem;
}

.feature-icon-box {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-circle);
  background-color: var(--creme);
  border: 1px dashed var(--dourado);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dourado);
  font-size: 2rem;
  transition: all var(--transition-smooth);
}

.feature-item:hover .feature-icon-box {
  transform: rotate(360deg) scale(1.1);
  background-color: var(--chocolate-escuro);
  color: var(--dourado-claro);
  border-style: solid;
}

.feature-title {
  font-size: 1.3rem;
  font-weight: 700;
}

.feature-desc {
  font-size: 0.95rem;
  color: rgba(44, 26, 14, 0.8);
}

/* ==========================================================================
   SEÇÃO DEPOIMENTOS
   ========================================================================== */
.testimonials {
  background-color: var(--chocolate-medio);
  color: var(--off-white);
}

.testimonials .section-title::after {
  background-color: var(--dourado-claro);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.testimonial-card {
  background: rgba(44, 26, 14, 0.4);
  padding: 3rem 2rem 2.5rem 2.5rem;
  border-radius: var(--radius-md);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  border-top: 3px solid var(--dourado);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-smooth);
}

.testimonial-card:hover {
  transform: translateY(-5px);
  background: rgba(44, 26, 14, 0.6);
}

.quote-icon {
  font-family: var(--font-title);
  font-size: 5rem;
  color: var(--dourado);
  opacity: 0.3;
  position: absolute;
  top: -15px;
  left: 20px;
  line-height: 1;
  pointer-events: none;
}

.testimonial-text {
  font-size: 0.98rem;
  font-style: italic;
  line-height: 1.7;
  color: rgba(250, 247, 242, 0.9);
  position: relative;
  z-index: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
}

.author-avatar {
  width: 45px;
  height: 45px;
  border-radius: var(--radius-circle);
  background-color: var(--dourado);
  color: var(--chocolate-escuro);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  border: 2px solid var(--dourado-claro);
}

.author-info h4 {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
}

.author-info span {
  font-size: 0.75rem;
  color: var(--dourado-claro);
  display: block;
}

/* ==========================================================================
   SEÇÃO CTA FINAL
   ========================================================================== */
.cta-final {
  background: var(--gradient-gold);
  color: var(--chocolate-escuro);
  text-align: center;
  padding: 6rem 1.5rem;
  position: relative;
  overflow: hidden;
}

.cta-final::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 15px solid rgba(250, 247, 242, 0.25);
  margin: 15px;
  pointer-events: none;
}

.cta-content {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  position: relative;
  z-index: 2;
}

.cta-final h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  color: var(--chocolate-escuro);
}

.cta-final p {
  font-size: 1.1rem;
  font-weight: 500;
  color: rgba(44, 26, 14, 0.8);
}

.cta-final .btn-whatsapp {
  padding: 1.1rem 2.5rem;
  font-size: 1.1rem;
  box-shadow: var(--shadow-md);
  border-radius: var(--radius-sm);
  background-color: var(--chocolate-escuro);
  color: var(--off-white);
}

.cta-final .btn-whatsapp:hover {
  background-color: var(--chocolate-medio);
  color: var(--off-white);
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  background-color: var(--chocolate-escuro);
  color: var(--off-white);
  padding: 5rem 10% 2.5rem 10%;
  border-top: 1px solid rgba(200, 151, 58, 0.2);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-logo-img {
  height: 60px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.footer-brand-title {
  font-family: var(--font-title);
  color: var(--off-white);
  font-size: 1.5rem;
  font-weight: 700;
}

.footer-desc {
  font-size: 0.9rem;
  color: rgba(250, 247, 242, 0.7);
  line-height: 1.7;
}

.footer-col-title {
  font-family: var(--font-body);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: var(--dourado);
  margin-bottom: 1.5rem;
  position: relative;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.footer-links a {
  font-size: 0.9rem;
  color: rgba(250, 247, 242, 0.8);
}

.footer-links a:hover {
  color: var(--dourado-claro);
  padding-left: 5px;
}

.contact-info-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 0.9rem;
  color: rgba(250, 247, 242, 0.8);
}

.contact-info-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.contact-info-list a {
  color: inherit;
}

.contact-info-list a:hover {
  color: var(--dourado-claro);
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(250, 247, 242, 0.1);
  padding-top: 2.5rem;
}

.copyright {
  font-size: 0.85rem;
  color: rgba(250, 247, 242, 0.5);
}

/* ==========================================================================
   RESPONSIVIDADE (MEDIA QUERIES)
   ========================================================================== */

/* Telas Grandes (Desktop) - Ajustes de limite */
@media (max-width: 1200px) {
  .section {
    padding: 6rem 5% 6rem 5%;
  }
  .footer {
    padding: 5rem 5% 2.5rem 5%;
  }
}

/* Notebooks / Tablets em Paisagem */
@media (max-width: 992px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }
  
  .about-image-wrapper {
    max-width: 550px;
    margin: 0 auto;
  }
  
  .about-img {
    height: 400px;
  }
  
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .features-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .feature-item {
    padding: 1rem;
  }
  
  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 600px;
    margin: 0 auto;
  }
  
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
  }
}

/* Tablets em Retrato / Mobiles Grandes */
@media (max-width: 768px) {
  .navbar .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background: var(--chocolate-escuro);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    transition: right var(--transition-smooth);
    z-index: 999;
  }
  
  .navbar .nav-links.active {
    right: 0;
  }
  
  .menu-toggle {
    display: flex;
    z-index: 1000;
  }
  
  /* Animação do menu burger para X */
  .navbar .nav-links.active + .menu-toggle span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
  }
  
  .navbar .nav-links.active + .menu-toggle span:nth-child(2) {
    opacity: 0;
  }
  
  .navbar .nav-links.active + .menu-toggle span:nth-child(3) {
    transform: rotate(-45deg) translate(5deg) translateY(-5px) translateX(5px);
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .products-grid {
    grid-template-columns: 1fr;
    max-width: 450px;
    margin: 0 auto;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }
}

/* Mobiles Pequenos */
@media (max-width: 480px) {
  html {
    font-size: 15px;
  }
  
  .section {
    padding: 5rem 1.5rem;
  }
  
  .about-img {
    height: 300px;
  }
  
  .hero-content {
    gap: 1.2rem;
  }
}
