/* =============================================
   SPICESHUB – Shared Stylesheet
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=Jost:wght@300;400;500;600&display=swap');

/* ---------- CSS Variables ---------- */
:root {
  --gold:        #C9A84C;
  --gold-light:  #E8C97A;
  --gold-dark:   #A07830;
  --green-deep:  #1A2B1A;
  --green-mid:   #2D4A2D;
  --green-light: #3D6B3D;
  --cream:       #F5EDD8;
  --cream-dark:  #EAD9BB;
  --brown:       #5C3D1E;
  --brown-light: #8B6340;
  --white:       #FDFAF4;
  --text-dark:   #1A1A0F;
}

/* ---------- Reset ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Jost', sans-serif;
  background: var(--white);
  color: var(--text-dark);
  overflow-x: hidden;
}
h1, h2, h3, h4 { font-family: 'Cormorant Garamond', serif; font-weight: 500; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; }

/* ---------- NAV ---------- */
nav {
  position: fixed; top: 0; width: 100%; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5%; height: 70px;
  background: rgba(20,35,15,0.96);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 30px rgba(0,0,0,0.3);
}
.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.7rem; font-weight: 600;
  color: var(--gold); letter-spacing: 2px;
}
.nav-logo span { color: var(--cream); }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  color: var(--cream); font-size: 0.82rem;
  letter-spacing: 1.5px; text-transform: uppercase;
  font-weight: 500; position: relative;
  transition: color 0.3s;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -3px; left: 0;
  width: 0; height: 1px; background: var(--gold);
  transition: width 0.3s ease;
}
.nav-links a:hover,
.nav-links a.active { color: var(--gold); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

/* Hamburger */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 5px; background: none; border: none;
}
.hamburger span { display: block; width: 25px; height: 2px; background: var(--cream); transition: 0.3s; }
.mobile-menu {
  display: none; position: fixed; top: 70px; left: 0; right: 0;
  background: rgba(20,35,15,0.98); padding: 1.5rem 5%;
  flex-direction: column; gap: 0; z-index: 999;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  color: var(--cream); font-size: 0.9rem;
  letter-spacing: 1px; text-transform: uppercase; font-weight: 500;
  padding: 0.9rem 0; border-bottom: 1px solid rgba(201,168,76,0.15);
  transition: color 0.3s;
}
.mobile-menu a:hover { color: var(--gold); }

/* ---------- PAGE WRAPPER ---------- */
.page-content { padding-top: 70px; min-height: calc(100vh - 140px); }

/* ---------- PAGE HERO BANNER (inner pages) ---------- */
.page-hero {
  height: 320px; display: flex; align-items: flex-end;
  padding: 0 5% 3rem; position: relative; overflow: hidden;
}
.page-hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
}
.page-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(20,35,15,0.85) 0%, rgba(20,35,15,0.3) 100%);
}
.page-hero-content { position: relative; z-index: 2; }
.page-hero-tag {
  display: block; font-size: 0.7rem; letter-spacing: 4px;
  text-transform: uppercase; color: var(--gold); font-weight: 600;
  margin-bottom: 0.5rem;
}
.page-hero h1 {
  font-size: clamp(2.2rem, 5vw, 4rem); color: var(--cream);
  font-weight: 300; line-height: 1.1;
}
.page-hero h1 em { font-style: italic; color: var(--gold-light); }

/* ---------- SECTIONS ---------- */
.section { padding: 90px 5%; }
.section-inner { max-width: 1150px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 4rem; }
.section-tag {
  font-size: 0.7rem; letter-spacing: 4px;
  text-transform: uppercase; color: var(--gold);
  font-weight: 600; margin-bottom: 0.8rem; display: block;
}
.section-header h2 {
  font-size: clamp(2rem, 4vw, 3rem); color: var(--green-deep);
  font-weight: 400; line-height: 1.2;
}
.section-header p {
  color: var(--brown-light); margin-top: 0.8rem;
  font-size: 0.97rem; font-weight: 300;
  max-width: 600px; margin-left: auto; margin-right: auto;
  line-height: 1.8;
}

/* Dark section */
.section--dark { background: var(--green-deep); }
.section--dark .section-header h2 { color: var(--cream); }
.section--dark .section-header p { color: rgba(245,237,216,0.65); }

/* Cream section */
.section--cream { background: var(--cream); }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Jost', sans-serif; font-size: 0.8rem;
  letter-spacing: 2px; text-transform: uppercase;
  font-weight: 600; padding: 14px 32px;
  transition: all 0.3s ease; cursor: pointer;
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--gold); color: var(--green-deep);
  border-color: var(--gold);
}
.btn-primary:hover { background: transparent; color: var(--gold); }
.btn-outline {
  background: transparent; color: var(--cream);
  border-color: rgba(245,237,216,0.5);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.btn-whatsapp {
  background: #25D366; color: white; border-color: #25D366;
}
.btn-whatsapp:hover { background: #1da851; border-color: #1da851; }
.btn-dark {
  background: var(--green-deep); color: var(--cream);
  border-color: var(--green-deep);
}
.btn-dark:hover { background: #25D366; border-color: #25D366; color: white; }

/* ---------- PRODUCT CARD ---------- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
}
.product-card {
  background: var(--white); overflow: hidden;
  box-shadow: 0 4px 30px rgba(0,0,0,0.07);
  transition: all 0.4s ease;
}
.product-card:hover { transform: translateY(-8px); box-shadow: 0 20px 50px rgba(0,0,0,0.15); }
.product-img { height: 260px; overflow: hidden; position: relative; }
.product-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.product-card:hover .product-img img { transform: scale(1.07); }
.product-badge {
  position: absolute; top: 1rem; right: 1rem;
  background: var(--gold); color: var(--green-deep);
  font-size: 0.65rem; letter-spacing: 2px;
  text-transform: uppercase; font-weight: 700; padding: 4px 12px;
}
.product-info { padding: 2rem; }
.product-origin {
  font-size: 0.72rem; color: var(--gold);
  letter-spacing: 2px; text-transform: uppercase;
  margin-bottom: 0.4rem; font-weight: 600;
}
.product-info h3 {
  font-size: 1.6rem; color: var(--green-deep);
  margin-bottom: 0.8rem; font-weight: 500;
}
.product-info p {
  color: var(--brown-light); font-size: 0.88rem;
  line-height: 1.75; font-weight: 300; margin-bottom: 1.2rem;
}
.pkg-options { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.5rem; }
.pkg-badge {
  border: 1px solid var(--cream-dark); color: var(--brown-light);
  font-size: 0.7rem; padding: 4px 10px; letter-spacing: 1px; font-weight: 500;
}
.product-price {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem; color: var(--green-deep);
  margin-bottom: 1.2rem; font-weight: 500;
}
.product-price span { color: var(--gold); }

/* ---------- WHY CARDS ---------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 2rem;
}
.why-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(201,168,76,0.2);
  padding: 2.5rem 2rem; text-align: center;
  transition: all 0.4s ease; position: relative; overflow: hidden;
}
.why-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
  transform: scaleX(0); transition: transform 0.4s ease;
}
.why-card:hover { background: rgba(201,168,76,0.07); transform: translateY(-5px); }
.why-card:hover::before { transform: scaleX(1); }
.why-icon { font-size: 2.2rem; margin-bottom: 1rem; }
.why-card h3 { font-size: 1.2rem; color: var(--gold); margin-bottom: 0.7rem; font-weight: 500; }
.why-card p { color: rgba(245,237,216,0.65); font-size: 0.88rem; line-height: 1.7; font-weight: 300; }

/* ---------- FORMS ---------- */
.form-card {
  background: var(--white);
  padding: 3rem; max-width: 600px; margin: 0 auto;
  box-shadow: 0 4px 40px rgba(0,0,0,0.08);
}
.form-card h2 {
  font-size: 2rem; color: var(--green-deep);
  margin-bottom: 2rem; font-weight: 500;
}
.form-group { margin-bottom: 1.4rem; }
.form-group label {
  display: block; font-size: 0.72rem; letter-spacing: 2px;
  text-transform: uppercase; color: var(--brown-light);
  font-weight: 600; margin-bottom: 0.4rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 12px 16px;
  border: 1px solid var(--cream-dark);
  background: var(--cream);
  font-family: 'Jost', sans-serif; font-size: 0.95rem;
  color: var(--text-dark); outline: none;
  transition: border-color 0.3s; resize: none;
  appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold); background: var(--white);
}
.form-group select { cursor: pointer; }

/* ---------- CONTACT DETAILS ---------- */
.contact-detail {
  display: flex; gap: 1rem; align-items: flex-start;
  margin-bottom: 1.5rem;
}
.contact-icon {
  width: 44px; height: 44px; min-width: 44px;
  background: var(--green-deep);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}
.contact-detail-text strong {
  display: block; font-size: 0.72rem; letter-spacing: 2px;
  text-transform: uppercase; color: var(--gold); font-weight: 600; margin-bottom: 2px;
}
.contact-detail-text span, .contact-detail-text a {
  color: var(--brown-light); font-size: 0.9rem; font-weight: 300;
}
.contact-detail-text a:hover { color: var(--gold); }

/* ---------- GALLERY GRID ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 240px);
  gap: 4px;
}
.gallery-item { overflow: hidden; position: relative; }
.gallery-item:first-child { grid-column: span 2; grid-row: span 2; }
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s ease, filter 0.4s ease;
  filter: brightness(0.9) saturate(1.1);
}
.gallery-item:hover img { transform: scale(1.06); filter: brightness(1) saturate(1.2); }
.gallery-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(20,35,15,0.65) 0%, transparent 55%);
  opacity: 0; transition: opacity 0.4s;
  display: flex; align-items: flex-end; padding: 1.2rem;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay span {
  color: var(--cream); font-size: 0.78rem;
  letter-spacing: 2px; text-transform: uppercase; font-weight: 500;
}

/* ---------- STATS ROW ---------- */
.stats-row {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem; padding-top: 2rem;
  border-top: 1px solid var(--cream-dark); margin-top: 2rem;
}
.stat h4 { font-size: 2.2rem; color: var(--gold); font-weight: 600; line-height: 1; }
.stat p { font-size: 0.78rem; color: var(--brown-light); letter-spacing: 1px; font-weight: 500; }

/* ---------- FOOTER ---------- */
footer {
  background: var(--text-dark);
  padding: 60px 5% 0;
  color: rgba(245,237,216,0.6);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem; margin-bottom: 3rem;
}
.footer-brand .nav-logo { font-size: 1.5rem; margin-bottom: 1rem; display: block; }
.footer-brand p { font-size: 0.88rem; line-height: 1.7; font-weight: 300; }
.footer-col h4 {
  font-family: 'Jost', sans-serif; font-size: 0.72rem;
  letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--gold); font-weight: 600; margin-bottom: 1.2rem;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.65rem; }
.footer-col ul li a {
  color: rgba(245,237,216,0.6); font-size: 0.88rem;
  font-weight: 300; transition: color 0.3s;
}
.footer-col ul li a:hover { color: var(--gold); }
.social-links { display: flex; gap: 0.8rem; margin-top: 1.2rem; }
.social-link {
  width: 36px; height: 36px;
  border: 1px solid rgba(245,237,216,0.2);
  display: flex; align-items: center; justify-content: center;
  text-decoration: none; color: rgba(245,237,216,0.6);
  font-size: 0.9rem; transition: all 0.3s;
}
.social-link:hover { border-color: var(--gold); color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(245,237,216,0.1);
  padding: 1.2rem 0;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 0.5rem;
}
.footer-bottom p { font-size: 0.78rem; font-weight: 300; }

/* ---------- FLOATING WHATSAPP ---------- */
.float-wa {
  position: fixed; bottom: 2rem; right: 2rem;
  width: 56px; height: 56px; background: #25D366;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  text-decoration: none; font-size: 1.5rem;
  box-shadow: 0 5px 25px rgba(37,211,102,0.5);
  z-index: 999; transition: all 0.3s;
  animation: pulseWA 3s ease infinite;
}
.float-wa:hover { transform: scale(1.1); background: #1da851; }
.float-wa-tip {
  position: absolute; right: 66px;
  background: var(--text-dark); color: var(--cream);
  padding: 7px 13px; font-size: 0.75rem;
  font-family: 'Jost', sans-serif; white-space: nowrap;
  opacity: 0; transform: translateX(8px);
  transition: all 0.3s; pointer-events: none;
}
.float-wa:hover .float-wa-tip { opacity: 1; transform: translateX(0); }

/* ---------- PRODUCT DETAIL PAGE ---------- */
.product-detail-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 5rem; align-items: start;
}
.product-detail-img { position: sticky; top: 90px; }
.product-detail-img img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover;
  box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}
.product-detail-info .section-tag { text-align: left; }
.product-detail-info h1 {
  font-size: clamp(2.2rem, 4vw, 3.5rem); color: var(--green-deep);
  font-weight: 400; line-height: 1.1; margin-bottom: 1rem;
}
.product-detail-info > p {
  color: var(--brown-light); font-size: 0.97rem;
  line-height: 1.85; font-weight: 300; margin-bottom: 1.5rem;
}
.detail-row { display: flex; gap: 2.5rem; margin: 1.5rem 0; }
.detail-item strong {
  display: block; font-size: 0.7rem; letter-spacing: 2px;
  text-transform: uppercase; color: var(--gold); font-weight: 600; margin-bottom: 3px;
}
.detail-item span { font-size: 0.9rem; color: var(--brown-light); font-weight: 300; }
.detail-divider { height: 1px; background: var(--cream-dark); margin: 1.5rem 0; }
.product-detail-info h3 {
  font-family: 'Jost', sans-serif; font-size: 0.75rem;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--green-deep); font-weight: 600; margin-bottom: 0.5rem;
}

/* ---------- ABOUT PAGE ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.about-images { position: relative; height: 520px; }
.about-img-main {
  position: absolute; top: 0; left: 0; width: 78%; height: 80%;
  object-fit: cover; box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}
.about-img-accent {
  position: absolute; bottom: 0; right: 0; width: 50%; height: 45%;
  object-fit: cover; box-shadow: 0 20px 50px rgba(0,0,0,0.15);
  border: 5px solid var(--white);
}
.about-badge {
  position: absolute; bottom: 42%; left: 72%;
  background: var(--gold); width: 85px; height: 85px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.about-badge span:first-child { font-family: 'Cormorant Garamond', serif; font-size: 1.7rem; font-weight: 600; color: var(--green-deep); line-height: 1; }
.about-badge span:last-child { font-size: 0.58rem; letter-spacing: 2px; color: var(--green-deep); text-transform: uppercase; font-weight: 600; }
.about-text .section-tag { text-align: left; }
.about-text h2 { font-size: clamp(1.8rem, 3.5vw, 2.7rem); color: var(--green-deep); font-weight: 400; line-height: 1.2; margin-bottom: 1.5rem; }
.about-text p { color: var(--brown-light); font-size: 0.95rem; line-height: 1.85; font-weight: 300; margin-bottom: 1.1rem; }

/* ---------- MAP ---------- */
.map-wrap { height: 220px; overflow: hidden; margin-top: 2rem; }
.map-wrap iframe { width: 100%; height: 100%; border: none; }

/* ---------- REVEAL ANIMATION ---------- */
.reveal {
  opacity: 0; transform: translateY(35px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---------- ANIMATIONS ---------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulseWA {
  0%,100% { box-shadow: 0 5px 25px rgba(37,211,102,0.5); }
  50%      { box-shadow: 0 5px 40px rgba(37,211,102,0.8); }
}
@keyframes scrollLine {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .product-detail-grid { grid-template-columns: 1fr; }
  .product-detail-img { position: static; }
  .about-grid { grid-template-columns: 1fr; }
  .about-images { height: 340px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .section { padding: 65px 5%; }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 180px);
  }
  .gallery-item:first-child { grid-column: span 2; grid-row: span 1; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: repeat(3,1fr); gap: 1rem; }
  .detail-row { flex-wrap: wrap; gap: 1rem; }
}
