/* ===========================================================
   Desa Duri Emas — Core Stylesheet
   Author: Senior Front-End Architect
   Version: 1.0.0
   =========================================================== */

/* ---------------- CSS VARIABLES ---------------- */
:root {
  /* Brand Colors */
  --primary-green: #2E7D32;
  --secondary-green: #66BB6A;
  --cream: #FFF8E7;
  --gold: #FBC02D;
  --dark-brown: #5D4037;
  --white: #FFFFFF;

  /* Neutrals */
  --text-primary: #1B3A1B;
  --text-secondary: #4A5D4A;
  --text-muted: #7A8A7A;
  --border: rgba(46, 125, 50, 0.12);
  --shadow-sm: 0 2px 8px rgba(27, 58, 27, 0.06);
  --shadow-md: 0 8px 24px rgba(27, 58, 27, 0.08);
  --shadow-lg: 0 20px 60px rgba(27, 58, 27, 0.12);
  --shadow-glow: 0 10px 40px rgba(251, 192, 45, 0.35);

  /* Typography */
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Spacing */
  --section-padding: clamp(4rem, 8vw, 8rem);
  --container-width: 1280px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ---------------- RESET & BASE ---------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-primary);
  background: var(--cream);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.no-scroll { overflow: hidden; }

img {
  max-width: 100%;
  display: block;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s var(--ease-out);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul { list-style: none; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

/* ---------------- UTILITIES ---------------- */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem);
}

.section {
  padding: var(--section-padding) 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto clamp(2.5rem, 5vw, 4.5rem);
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--primary-green);
  padding: 0.4rem 1rem;
  background: rgba(46, 125, 50, 0.08);
  border-radius: 100px;
  margin-bottom: 1.25rem;
}

.section-title {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* ---------------- BUTTONS ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 100px;
  border: 2px solid transparent;
  transition: all 0.4s var(--ease-out);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(46, 125, 50, 0.35);
}

.btn-outline-light {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
}

.btn-outline-light:hover {
  background: var(--white);
  color: var(--primary-green);
  transform: translateY(-3px);
}

.btn-glow {
  box-shadow: var(--shadow-glow);
}

.btn-large {
  padding: 1.25rem 2.5rem;
  font-size: 1rem;
}

/* ---------------- LOADING SCREEN ---------------- */
.loader {
  position: fixed;
  inset: 0;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-inner {
  text-align: center;
}

.loader-durian {
  width: 80px;
  height: 80px;
  position: relative;
  margin: 0 auto 1.5rem;
  animation: loaderRotate 2s linear infinite;
}

.loader-durian::before {
  content: '';
  position: absolute;
  inset: 15%;
  background: radial-gradient(circle at 30% 30%, var(--gold), var(--dark-brown));
  border-radius: 50%;
}

.loader-durian .spike {
  position: absolute;
  width: 6px;
  height: 16px;
  background: var(--dark-brown);
  left: 50%;
  top: 0;
  transform-origin: 50% 40px;
  border-radius: 4px;
}

.loader-durian .spike:nth-child(1) { transform: translateX(-50%) rotate(0deg); }
.loader-durian .spike:nth-child(2) { transform: translateX(-50%) rotate(72deg); }
.loader-durian .spike:nth-child(3) { transform: translateX(-50%) rotate(144deg); }
.loader-durian .spike:nth-child(4) { transform: translateX(-50%) rotate(216deg); }
.loader-durian .spike:nth-child(5) { transform: translateX(-50%) rotate(288deg); }

.loader-text {
  font-family: var(--font-heading);
  color: var(--primary-green);
  font-weight: 500;
  letter-spacing: 0.05em;
}

/* ---------------- SCROLL PROGRESS ---------------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--primary-green), var(--gold));
  z-index: 1001;
  transition: width 0.1s ease-out;
}

/* ---------------- NAVIGATION ---------------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.25rem 0;
  transition: all 0.4s var(--ease-out);
}

.nav.scrolled {
  background: rgba(255, 248, 231, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.06);
  padding: 0.75rem 0;
}

.nav-container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--white);
  transition: color 0.3s ease;
}

.nav.scrolled .logo { color: var(--text-primary); }

.logo-icon {
  font-size: 1.6rem;
}

.logo-text span {
  color: var(--gold);
  font-weight: 800;
}

.nav-menu ul {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--white);
  position: relative;
  padding: 0.25rem 0;
  transition: color 0.3s ease;
}

.nav.scrolled .nav-link { color: var(--text-primary); }

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.3s var(--ease-out);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link.active { color: var(--gold); }
.nav.scrolled .nav-link.active { color: var(--primary-green); }

.nav-cta {
  padding: 0.6rem 1.5rem !important;
  font-size: 0.85rem !important;
}

.nav-toggle {
  display: none;
  width: 32px;
  height: 32px;
  position: relative;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  margin: 6px auto;
  transition: all 0.3s var(--ease-out);
}

.nav.scrolled .nav-toggle span { background: var(--text-primary); }

.nav-toggle.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ---------------- HERO ---------------- */
.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: var(--white);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1500382017468-9049fed747ef?w=1920&q=80');
  background-size: cover;
  background-position: center;
  transform: scale(1.1);
  will-change: transform;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(27, 58, 27, 0.4) 0%,
    rgba(27, 58, 27, 0.6) 50%,
    rgba(27, 58, 27, 0.85) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  padding: 0 2rem;
}

.hero-badge {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 100px;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  backdrop-filter: blur(10px);
  margin-bottom: 2rem;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 5rem);
  color: var(--white);
  margin-bottom: 1.5rem;
  font-weight: 800;
  line-height: 1.05;
}

.typed-text {
  color: var(--gold);
  display: inline-block;
}

.cursor {
  display: inline-block;
  color: var(--gold);
  margin-left: 2px;
  animation: blink 1s infinite;
}

.hero-subtitle {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  max-width: 680px;
  margin: 0 auto 2.5rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  text-align: center;
  animation: floatY 2s ease-in-out infinite;
}

.scroll-indicator .mouse {
  width: 28px;
  height: 44px;
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: 14px;
  margin: 0 auto 0.75rem;
  position: relative;
}

.scroll-indicator .wheel {
  width: 4px;
  height: 8px;
  background: var(--white);
  border-radius: 2px;
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollWheel 2s ease-in-out infinite;
}

.scroll-indicator p {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

/* ---------------- ABOUT ---------------- */
.about { background: var(--white); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  margin-bottom: clamp(3rem, 6vw, 6rem);
}

.image-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow-lg);
}

.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease-out);
}

.image-frame:hover img { transform: scale(1.05); }

.image-badge {
  position: absolute;
  bottom: 2rem;
  left: 2rem;
  background: rgba(255, 248, 231, 0.95);
  backdrop-filter: blur(10px);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.image-badge span:first-child {
  display: block;
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary-green);
  line-height: 1;
}

.image-badge span:last-child {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.about-text h3 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  margin-bottom: 1.5rem;
  color: var(--primary-green);
}

.about-text p {
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
}

.info-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.info-card {
  background: var(--cream);
  padding: 2rem;
  border-radius: var(--radius-md);
  transition: all 0.4s var(--ease-out);
  border: 1px solid var(--border);
}

.info-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  background: var(--white);
}

.icon-wrap {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--white);
}

.icon-wrap svg {
  width: 28px;
  height: 28px;
}

.info-card h4 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.info-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ---------------- STATISTICS ---------------- */
.stats {
  background: linear-gradient(135deg, var(--primary-green), #1B5E20);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.stats::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(251, 192, 45, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(102, 187, 106, 0.2) 0%, transparent 50%);
  pointer-events: none;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  position: relative;
  z-index: 1;
}

.stat-card {
  text-align: center;
  padding: 2rem 1rem;
  position: relative;
}

.stat-card::after {
  content: '';
  position: absolute;
  right: 0;
  top: 20%;
  bottom: 20%;
  width: 1px;
  background: rgba(255, 255, 255, 0.15);
}

.stat-card:last-child::after { display: none; }

.stat-number {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  color: var(--gold);
  display: inline-block;
  line-height: 1;
}

.stat-plus {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--gold);
  vertical-align: top;
}

.stat-card h3 {
  font-size: 1.25rem;
  margin-top: 1rem;
  color: var(--white);
}

.stat-card p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
}

/* ---------------- WHY DURIAN ---------------- */
.why-durian { background: var(--cream); }

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.why-card {
  background: var(--white);
  padding: 2.5rem 2rem;
  border-radius: var(--radius-lg);
  text-align: center;
  transition: all 0.5s var(--ease-out);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.why-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-green), var(--gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease-out);
}

.why-card:hover {
  transform: translateY(-12px);
  box-shadow: var(--shadow-lg);
}

.why-card:hover::before { transform: scaleX(1); }

.why-icon {
  font-size: 3rem;
  margin-bottom: 1.25rem;
  display: inline-block;
  transition: transform 0.5s var(--ease-bounce);
}

.why-card:hover .why-icon {
  transform: scale(1.2) rotate(-8deg);
}

.why-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

.why-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ---------------- VARIETIES ---------------- */
.varieties { background: var(--white); }

.varieties-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.variety-card {
  background: var(--cream);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.5s var(--ease-out);
  border: 1px solid var(--border);
  position: relative;
}

.variety-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.variety-image {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.variety-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out);
}

.variety-card:hover .variety-image img {
  transform: scale(1.1);
}

.variety-tag {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.35rem 0.85rem;
  background: rgba(255, 248, 231, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 100px;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary-green);
  letter-spacing: 0.05em;
}

.variety-body {
  padding: 1.5rem;
}

.variety-body h3 {
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
}

.variety-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.variety-flavor {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}

.flavor-tag {
  font-size: 0.7rem;
  padding: 0.2rem 0.6rem;
  background: rgba(46, 125, 50, 0.1);
  color: var(--primary-green);
  border-radius: 100px;
  font-weight: 500;
}

.variety-body p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 1rem;
}

.variety-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-green);
}

.variety-link:hover {
  gap: 0.85rem;
  color: var(--gold);
}

/* ---------------- TOURISM ---------------- */
.tourism {
  background: var(--cream);
  position: relative;
}

.tourism-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 280px;
  gap: 1.25rem;
}

.tourism-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: all 0.5s var(--ease-out);
}

.tourism-large {
  grid-column: span 2;
  grid-row: span 2;
}

.tourism-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease-out);
}

.tourism-card:hover img { transform: scale(1.08); }

.tourism-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(27, 58, 27, 0.9) 100%);
  pointer-events: none;
}

.tourism-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.75rem;
  color: var(--white);
  z-index: 1;
  transition: transform 0.4s var(--ease-out);
}

.tourism-card:hover .tourism-content {
  transform: translateY(-8px);
}

.tourism-tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--gold);
  color: var(--dark-brown);
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.tourism-content h3 {
  font-size: 1.4rem;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.tourism-large .tourism-content h3 { font-size: 2rem; }

.tourism-content p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.5s var(--ease-out) 0.1s;
}

.tourism-card:hover .tourism-content p {
  opacity: 1;
  transform: translateY(0);
}

/* ---------------- TIMELINE ---------------- */
.timeline-section { background: var(--white); }

.timeline-wrapper {
  max-width: 900px;
  margin: 0 auto;
}

.timeline {
  position: relative;
  padding: 3rem 0;
}

.timeline-track {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 4px;
  background: rgba(46, 125, 50, 0.1);
  border-radius: 2px;
  transform: translateY(-50%);
}

.timeline-months {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  position: relative;
  z-index: 1;
}

.timeline-month {
  text-align: center;
  position: relative;
  padding-top: 1rem;
}

.timeline-month span:first-child {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  transition: all 0.4s ease;
}

.timeline-month.active span:first-child,
.timeline-month.peak span:first-child {
  color: var(--primary-green);
  font-size: 1rem;
}

.dot {
  display: inline-block;
  width: 14px;
  height: 14px;
  background: var(--white);
  border: 3px solid rgba(46, 125, 50, 0.3);
  border-radius: 50%;
  transition: all 0.4s ease;
}

.dot.active {
  background: var(--secondary-green);
  border-color: var(--primary-green);
  transform: scale(1.2);
}

.dot.peak {
  background: var(--gold);
  border-color: var(--gold);
  transform: scale(1.4);
  box-shadow: 0 0 0 6px rgba(251, 192, 45, 0.2);
}

.timeline-legend {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.legend-dot.off { background: rgba(46, 125, 50, 0.2); }
.legend-dot.low { background: var(--secondary-green); }
.legend-dot.peak { background: var(--gold); }

/* ---------------- GALLERY ---------------- */
.gallery { background: var(--cream); }

.gallery-filters {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.6rem 1.5rem;
  background: var(--white);
  border-radius: 100px;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.3s var(--ease-out);
  border: 1px solid var(--border);
}

.filter-btn:hover {
  color: var(--primary-green);
  border-color: var(--primary-green);
}

.filter-btn.active {
  background: var(--primary-green);
  color: var(--white);
  border-color: var(--primary-green);
}

.masonry {
  columns: 4;
  column-gap: 1.25rem;
}

.gallery-item {
  display: block;
  break-inside: avoid;
  margin-bottom: 1.25rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: all 0.4s var(--ease-out);
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.6s var(--ease-out);
}

.gallery-item::after {
  content: '🔍';
  position: absolute;
  inset: 0;
  background: rgba(27, 58, 27, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  opacity: 0;
  transition: opacity 0.4s ease;
  backdrop-filter: blur(2px);
}

.gallery-item:hover::after { opacity: 1; }
.gallery-item:hover img { transform: scale(1.08); }

.gallery-item.tall { aspect-ratio: 3 / 4; }
.gallery-item.wide { aspect-ratio: 4 / 3; }

.gallery-item.hide {
  display: none;
}

/* ---------------- TESTIMONIALS ---------------- */
.testimonials {
  background: linear-gradient(180deg, var(--cream), var(--white));
}

.slider {
  position: relative;
  overflow: hidden;
  max-width: 900px;
  margin: 0 auto;
}

.slider-track {
  display: flex;
  transition: transform 0.6s var(--ease-out);
}

.testimonial-card {
  min-width: 100%;
  padding: 3rem;
  text-align: center;
}

.testimonial-stars {
  color: var(--gold);
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  letter-spacing: 0.25rem;
}

.testimonial-quote {
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-primary);
  margin-bottom: 2rem;
  font-style: italic;
}

.testimonial-quote::before { content: '"'; color: var(--gold); }
.testimonial-quote::after { content: '"'; color: var(--gold); }

.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.author-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
}

.author-info {
  text-align: left;
}

.author-info strong {
  font-family: var(--font-heading);
  display: block;
  color: var(--text-primary);
  font-size: 1rem;
}

.author-info span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.slider-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
}

.slider-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--border);
  font-size: 1.5rem;
  color: var(--primary-green);
  transition: all 0.3s var(--ease-out);
  display: flex;
  align-items: center;
  justify-content: center;
}

.slider-btn:hover {
  background: var(--primary-green);
  color: var(--white);
  transform: scale(1.1);
}

.slider-dots {
  display: flex;
  gap: 0.5rem;
}

.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(46, 125, 50, 0.2);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.slider-dot.active {
  width: 32px;
  border-radius: 4px;
  background: var(--primary-green);
}

/* ---------------- FAQ ---------------- */
.faq { background: var(--white); }

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--cream);
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  border: 1px solid var(--border);
  overflow: hidden;
  transition: all 0.3s var(--ease-out);
}

.faq-item[open] {
  background: var(--white);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-green);
}

.faq-item summary {
  padding: 1.5rem 2rem;
  cursor: pointer;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
  user-select: none;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-icon {
  font-size: 1.5rem;
  color: var(--primary-green);
  font-weight: 300;
  transition: transform 0.3s var(--ease-out);
  flex-shrink: 0;
  margin-left: 1rem;
}

.faq-item[open] .faq-icon { transform: rotate(45deg); }

.faq-item p {
  padding: 0 2rem 1.5rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ---------------- CONTACT ---------------- */
.contact {
  background: var(--cream);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.contact-info h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin-bottom: 1rem;
}

.contact-info > p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  font-size: 1.05rem;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-icon {
  width: 48px;
  height: 48px;
  background: var(--white);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.contact-item strong {
  font-family: var(--font-heading);
  display: block;
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}

.contact-item p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.contact-item a:hover { color: var(--primary-green); }

.map-placeholder {
  aspect-ratio: 4 / 5;
  background:
    linear-gradient(135deg, rgba(46, 125, 50, 0.8), rgba(93, 64, 55, 0.8)),
    url('https://images.unsplash.com/photo-1524661135-423995f22d0b?w=800&q=80') center/cover;
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-overlay {
  text-align: center;
  color: var(--white);
  padding: 2rem;
}

.map-pin {
  font-size: 3rem;
  margin-bottom: 1rem;
  animation: floatY 3s ease-in-out infinite;
}

.map-overlay h3 {
  color: var(--white);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.map-overlay p {
  font-size: 0.9rem;
  opacity: 0.9;
}

/* ---------------- FOOTER ---------------- */
.footer {
  background: var(--dark-brown);
  color: rgba(255, 255, 255, 0.85);
  padding: 5rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 2fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand .logo {
  color: var(--white);
  margin-bottom: 1rem;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.7);
  max-width: 320px;
  font-size: 0.95rem;
}

.footer-col h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 1.25rem;
  font-weight: 600;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  transition: color 0.3s ease, padding-left 0.3s ease;
}

.footer-col a:hover {
  color: var(--gold);
  padding-left: 6px;
}

.social-links {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.social-icon {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all 0.3s var(--ease-out);
}

.social-icon:hover {
  background: var(--gold);
  transform: translateY(-4px);
}

.newsletter {
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}

.newsletter-form {
  display: flex;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 100px;
  padding: 0.25rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.newsletter-form input {
  flex: 1;
  background: none;
  border: none;
  color: var(--white);
  padding: 0.5rem 1rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
}

.newsletter-form input::placeholder { color: rgba(255, 255, 255, 0.5); }

.newsletter-form button {
  background: var(--gold);
  color: var(--dark-brown);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.1rem;
  font-weight: 700;
  transition: transform 0.3s var(--ease-out);
}

.newsletter-form button:hover { transform: scale(1.1); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ---------------- BACK TO TOP ---------------- */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  background: var(--primary-green);
  color: var(--white);
  border-radius: 50%;
  font-size: 1.25rem;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.4s var(--ease-out);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--gold);
  color: var(--dark-brown);
  transform: translateY(-4px);
}

/* ---------------- MODAL ---------------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s var(--ease-out);
  padding: 2rem;
}

.modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(27, 58, 27, 0.7);
  backdrop-filter: blur(8px);
}

.modal-content {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-lg);
  max-width: 1000px;
  width: 100%;
  max-height: 90vh;
  overflow: auto;
  transform: scale(0.95) translateY(20px);
  transition: transform 0.5s var(--ease-bounce);
}

.modal.active .modal-content {
  transform: scale(1) translateY(0);
}

.modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--cream);
  color: var(--text-primary);
  font-size: 1.5rem;
  z-index: 10;
  transition: all 0.3s var(--ease-out);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  background: var(--primary-green);
  color: var(--white);
  transform: rotate(90deg);
}

.modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.modal-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 400px;
}

.modal-info {
  padding: 3rem;
}

.modal-info h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.modal-meta {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.modal-flavor {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.modal-info p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.modal-details {
  background: var(--cream);
  padding: 1.5rem;
  border-radius: var(--radius-md);
}

.detail-row {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}

.detail-row:last-child { border-bottom: none; }

.detail-row strong { color: var(--text-primary); }
.detail-row span { color: var(--text-secondary); }

/* ---------------- LIGHTBOX ---------------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 2500;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.5);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  font-size: 1.5rem;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-close { top: 2rem; right: 2rem; }
.lightbox-prev { left: 2rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 2rem; top: 50%; transform: translateY(-50%); }

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: var(--white);
  color: var(--text-primary);
}