/* ==========================================
   S&A MELANCIAS — REDESIGN
   Tema: Orgânico Tropical Vibrante
   ========================================== */

:root {
  --green-deep: #1a3a2a;
  --green-mid: #2d6a4f;
  --green-light: #52b788;
  --lime: #95d5b2;
  --red: #c1121f;
  --red-dark: #a30015;
  --cream: #fefae0;
  --warm-white: #fffdf5;
  --sand: #e9c46a;
  --sand-light: #fdf0c2;
  --text-dark: #1a2e1e;
  --text-mid: #3d5a47;
  --text-light: #6b8f74;
  --radius: 16px;
  --radius-lg: 28px;
  --shadow: 0 8px 40px rgba(26,58,42,0.13);
  --shadow-lg: 0 20px 60px rgba(26,58,42,0.2);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--warm-white);
  color: var(--text-dark);
  overflow-x: hidden;
  line-height: 1.65;
}

.caveat { font-family: 'Caveat', cursive; }

em { font-style: italic; color: var(--green-mid); }

h1, h2, h3 {
  font-family: 'Playfair Display', Georgia, serif;
  line-height: 1.15;
}

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

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

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

/* ── REVEAL ANIMATIONS ── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }
.delay-3 { transition-delay: 0.45s; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 50px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s ease;
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}
.btn-primary:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(193,18,31,0.35);
}
.btn-ghost {
  background: transparent;
  color: var(--green-deep);
  border-color: var(--green-mid);
}
.btn-ghost:hover {
  background: var(--green-deep);
  color: #fff;
  transform: translateY(-2px);
}

/* ── SECTION SHARED ── */
.section {
  padding: 100px 0;
  position: relative;
}

.section-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green-light);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-label::before {
  content: '';
  display: block;
  width: 32px;
  height: 2px;
  background: var(--green-light);
  border-radius: 2px;
}

.section h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--green-deep);
  margin-bottom: 24px;
}

/* ==========================================
   NAVBAR
   ========================================== */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 40px;
  transition: background 0.35s, box-shadow 0.35s, padding 0.35s;
}
#navbar.scrolled {
  background: rgba(255,253,245,0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(26,58,42,0.1);
  padding: 12px 40px;
}

.nav-logo img { height: 44px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}
.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-dark);
  position: relative;
  transition: color 0.2s;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 2px;
  background: var(--green-mid);
  border-radius: 2px;
  transition: width 0.3s;
}
.nav-links a:hover { color: var(--green-mid); }
.nav-links a:hover::after { width: 100%; }

.nav-cta {
  background: var(--red) !important;
  color: #fff !important;
  padding: 9px 22px;
  border-radius: 50px;
  transition: background 0.2s, transform 0.2s !important;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--red-dark) !important; transform: translateY(-1px); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.hamburger span {
  display: block;
  width: 26px; height: 2px;
  background: var(--green-deep);
  border-radius: 2px;
  transition: all 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================
   HERO
   ========================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 120px 40px 60px;
  background: var(--cream);
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.stripe {
  position: absolute;
  border-radius: 4px;
  opacity: 0.06;
}
.s1 { width: 3px; height: 100%; background: var(--green-deep); left: 15%; transform: rotate(8deg); }
.s2 { width: 3px; height: 100%; background: var(--green-mid); right: 25%; transform: rotate(-6deg); }
.s3 { width: 2px; height: 60%; background: var(--red); right: 40%; top: 20%; transform: rotate(12deg); }

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
}
.b1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, #52b78840, transparent);
  top: -100px; right: -100px;
  animation: blobPulse 8s ease-in-out infinite;
}
.b2 {
  width: 350px; height: 350px;
  background: radial-gradient(circle, #95d5b230, transparent);
  bottom: -50px; left: 10%;
  animation: blobPulse 10s ease-in-out infinite reverse;
}
@keyframes blobPulse {
  0%,100% { transform: scale(1); }
  50% { transform: scale(1.12); }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 560px;
}

.hero-tag {
  display: inline-block;
  background: var(--green-deep);
  color: var(--lime);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 7px 18px;
  border-radius: 50px;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 900;
  color: var(--green-deep);
  line-height: 1.05;
  margin-bottom: 24px;
}
.hero h1 em {
  font-style: italic;
  color: var(--red);
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-mid);
  margin-bottom: 40px;
  max-width: 440px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-visual {
  position: absolute;
  right: 6%;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
}

.hero-melon {
  width: clamp(220px, 28vw, 400px);
  filter: drop-shadow(0 20px 50px rgba(26,58,42,0.2));
  animation: floatMelon 4s ease-in-out infinite;
  border-radius: 12px;
}
@keyframes floatMelon {
  0%,100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-18px) rotate(2deg); }
}

.hero-badge {
  position: absolute;
  bottom: -10px;
  left: -20px;
  background: var(--green-mid);
  color: #fff;
  border-radius: var(--radius);
  padding: 14px 20px;
  text-align: center;
  box-shadow: var(--shadow);
  animation: floatMelon 5s ease-in-out infinite reverse;
}
.badge-num {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 900;
  line-height: 1;
}
.badge-txt {
  display: block;
  font-size: 0.72rem;
  opacity: 0.88;
  margin-top: 2px;
}

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-light);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  z-index: 2;
}
.scroll-arrow {
  width: 2px;
  height: 40px;
  background: linear-gradient(to bottom, var(--green-light), transparent);
  border-radius: 2px;
  animation: scrollBounce 2s ease-in-out infinite;
}
@keyframes scrollBounce {
  0%,100% { opacity: 1; transform: scaleY(1); }
  50% { opacity: 0.5; transform: scaleY(0.7); }
}

/* ==========================================
   HISTÓRIA
   ========================================== */
.historia { background: var(--warm-white); }

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

.historia-text h2 { margin-bottom: 20px; }
.historia-text p { color: var(--text-mid); margin-bottom: 16px; }

.historia-stats {
  display: flex;
  gap: 32px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid #e0ede5;
}
.stat { text-align: left; }
.stat-n {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 900;
  color: var(--green-deep);
  line-height: 1;
}
.stat-l {
  display: block;
  font-size: 0.8rem;
  color: var(--text-light);
  margin-top: 4px;
}

.img-stack {
  position: relative;
  height: 460px;
}
.img-back, .img-front {
  position: absolute;
  border-radius: var(--radius-lg);
  object-fit: cover;
  box-shadow: 0 0 12px 2px gray;
}
.img-back {
  width: 75%;
  /* height: 340px; */
  aspect-ratio: 5/3;
  bottom: 0; left: 0;
  rotate: -3deg;
  object-position: 20% 60%;
}
.img-front {
  width: 65%;
  /* height: 280px; */
  aspect-ratio: 3/2;
  bottom: 30%; left: 30%;
  border: 5px solid var(--warm-white);
  rotate: 7deg;
}
.img-tag {
  position: absolute;
  top: 40%;
  left: 12%;
  transform: translate(-50%, -50%);
  background: var(--sand);
  border-radius: 12px;
  padding: 10px 20px;
  box-shadow: var(--shadow);
  white-space: nowrap;
}
.img-tag .caveat { font-size: 1.3rem; color: var(--green-deep); }

/* ==========================================
   GALERIA
   ========================================== */
.galeria {
  background: var(--green-deep);
  color: #fff;
}
.galeria .section-label { color: var(--lime); }
.galeria .section-label::before { background: var(--lime); }
.galeria h2 { color: #fff; }
.galeria h2 em { color: var(--sand); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 40px;
}
.gallery-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform 0.35s, box-shadow 0.35s, filter 0.35s;
  filter: brightness(0.88);
}
.gallery-grid img:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-lg);
  filter: brightness(1);
  z-index: 2;
  position: relative;
}
.gallery-grid img:nth-child(5) {
  grid-column: span 2;
  aspect-ratio: 2;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
}
.lightbox.active { display: flex; }
.lightbox img {
  max-width: 88vw;
  max-height: 88vh;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  object-fit: contain;
}
.lb-close, .lb-prev, .lb-next {
  position: absolute;
  background: rgba(255,255,255,0.12);
  border: none;
  color: #fff;
  font-size: 1.6rem;
  cursor: pointer;
  border-radius: 50%;
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: rgba(255,255,255,0.25); }
.lb-close { top: 24px; right: 24px; }
.lb-prev { left: 20px; }
.lb-next { right: 20px; }

/* ==========================================
   PRODUTOS
   ========================================== */
.produtos {
  background: var(--cream);
  overflow: hidden;
}

.produtos-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 50%, #52b78815, transparent 65%);
  pointer-events: none;
}

.produtos-sub {
  color: var(--text-mid);
  max-width: 600px;
  margin-bottom: 48px;
}

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

.card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  box-shadow: 0 4px 20px rgba(26,58,42,0.07);
  border: 1px solid #e5f0ea;
  transition: transform 0.3s, box-shadow 0.3s;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}
.card-icon { font-size: 2.8rem; margin-bottom: 16px; }
.card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  color: var(--green-deep);
  margin-bottom: 10px;
}
.card p { font-size: 0.9rem; color: var(--text-mid); }

.card-cta {
  background: var(--green-deep);
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 14px;
  justify-content: center;
  border: none;
}
.card-cta:hover { transform: translateY(-6px); }
.card-cta .caveat {
  font-size: 1.5rem;
  color: var(--sand);
  line-height: 1.2;
}
.card-cta .btn-ghost {
  color: #fff;
  border-color: rgba(255,255,255,0.3);
}
.card-cta .btn-ghost:hover {
  background: rgba(255,255,255,0.15);
}

/* ==========================================
   OFERTAS
   ========================================== */
.ofertas { background: var(--warm-white); }

.ofertas-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.ofertas-text h2 { margin-bottom: 20px; }
.ofertas-text p { color: var(--text-mid); margin-bottom: 16px; }
.ofertas-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 36px; }

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 40px;
  background: var(--cream);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.tag {
  padding: 10px 20px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: default;
  transition: transform 0.25s;
}
.tag:hover { transform: scale(1.08); }
.t1 { background: #ffe5e7; color: #8b0010; }
.t2 { background: #fff3d4; color: #7a5300; }
.t3 { background: #e8f8ef; color: #1a5c38; }
.t4 { background: #fff9e0; color: #6b5c00; }
.t5 { background: #e3f7e8; color: #1c4d2a; }
.t6 { background: #f5ede0; color: #7a4500; }
.t7 { background: #fff2cc; color: #5c4400; }
.t8 { background: #ffe8e0; color: #7a2800; }

.tag-disclaimer {
  width: 100%;
  font-size: 1rem;
  color: var(--text-light);
  margin-top: 6px;
  text-align: center;
}

/* ==========================================
   CONTATO
   ========================================== */
.contato {
  background: var(--green-deep);
  color: #fff;
}
.contato .section-label { color: var(--lime); }
.contato .section-label::before { background: var(--lime); }
.contato h2 { color: #fff; }
.contato h2 em { color: var(--sand); }

.contato-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
  align-items: start;
  margin-top: 48px;
}

.info-block {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 32px;
}
.info-icon { font-size: 1.8rem; margin-top: 2px; flex-shrink: 0; }
.info-block strong {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: 6px;
}
.info-block p { color: rgba(255,255,255,0.78); font-size: 0.95rem; line-height: 1.6; }
.info-block a { color: var(--sand); }
.info-block a:hover { text-decoration: underline; }

.contato-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; }
.contato .btn-primary { background: var(--red); border-color: var(--red); }
.contato .btn-ghost { color: #fff; border-color: rgba(255,255,255,0.35); }
.contato .btn-ghost:hover { background: rgba(255,255,255,0.1); }

.contato-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  height: 360px;
}
.contato-map iframe {
  width: 100%;
  height: 100%;
  border: none;
  filter: grayscale(30%);
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
  background: #0f2218;
  color: rgba(255,255,255,0.6);
  padding: 48px 0;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}
.footer-logo { height: 50px; width: auto; opacity: 0.85; }
.footer-slogan { font-size: 1.25rem; color: var(--sand); }
.footer-links {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-links a {
  font-size: 0.85rem;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--lime); }
.footer-copy { font-size: 0.8rem; }
.footer-copy a { color: var(--lime); }

/* ==========================================
   WHATSAPP FLOAT
   ========================================== */
.wpp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 800;
  background: #25d366;
  color: #fff;
  border-radius: 50%;
  width: 58px; height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(37,211,102,0.45);
  transition: transform 0.25s, box-shadow 0.25s;
  animation: wppPop 3s ease-in-out infinite;
}
.wpp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 10px 32px rgba(37,211,102,0.6);
}
@keyframes wppPop {
  0%,100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 1024px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .historia-grid, .ofertas-grid, .contato-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { display: none; }
  .hero-content { max-width: 100%; }
  .img-stack { min-height: fit-content; }
  .img-tag { left: 14%; top: 20%; }
}

@media (max-width: 768px) {
  #navbar { padding: 14px 20px; }
  .hamburger { display: flex; }
  .nav-links {
    position: fixed;
    top: 0; right: -100%;
    width: 75%;
    height: 100vh;
    background: var(--warm-white);
    flex-direction: column;
    justify-content: center;
    gap: 32px;
    padding: 40px;
    box-shadow: -10px 0 40px rgba(26,58,42,0.15);
    transition: right 0.35s ease;
    z-index: 850;
  }
  .nav-links.open { right: 0; }
  .nav-links a { font-size: 1.1rem; }
  .hero { padding: 100px 20px 60px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid img:nth-child(5) { grid-column: span 1; aspect-ratio: 1; }
  .cards-grid { grid-template-columns: 1fr; }
  .historia-stats { gap: 20px; }
  .section { padding: 70px 0; }

}

@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .btn { justify-content: center; }
  .ofertas-actions, .contato-ctas { flex-direction: column; }
}
