/* ============================================
   This N That Grocery — Custom Styles
   ============================================ */

/* --- Base & Typography --- */
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
}

::selection {
  background-color: #8fb88f;
  color: #0f1f14;
}

/* --- Section Labels --- */
.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6a9969;
  margin-bottom: 0.5rem;
}

.section-label-light {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8fb88f;
  margin-bottom: 0.5rem;
}

/* --- Section Titles --- */
.section-title {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  line-height: 1.15;
  color: #1e3a27;
}

.section-title-light {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  line-height: 1.15;
  color: #faf8f4;
}

/* --- Body Text --- */
.body-text {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.0625rem;
  line-height: 1.75;
  color: #4d7a4d;
}

.body-text-light {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.0625rem;
  line-height: 1.75;
  color: #bdd5c0;
}

/* --- Stats Grid --- */
.stats-grid {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.stat-number {
  font-family: 'DM Serif Display', Georgia, serif;
  line-height: 1;
}

.stat-label {
  font-size: 0.8125rem;
  color: #6a9969;
  line-height: 1.4;
}

/* --- Buttons --- */
.btn-primary {
  background: linear-gradient(135deg, #2d5a3d 0%, #3a613a 100%);
  color: #faf8f4;
  border: none;
  padding: 0.875rem 2rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.9375rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(45, 90, 61, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(45, 90, 61, 0.35);
  background: linear-gradient(135deg, #3a613a 0%, #4d7a4d 100%);
}

.btn-secondary {
  background: transparent;
  border: 1.5px solid rgba(250, 248, 244, 0.4);
  color: #faf8f4;
  padding: 0.875rem 2rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.9375rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-secondary:hover {
  background: rgba(250, 248, 244, 0.1);
  border-color: rgba(250, 248, 244, 0.7);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border: 1.5px solid #2d5a3d;
  color: #2d5a3d;
  padding: 0.75rem 1.75rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.875rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-outline:hover {
  background: #2d5a3d;
  color: #faf8f4;
  transform: translateY(-2px);
}

/* --- Navigation --- */
.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #6a9969;
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* --- Hero --- */
.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-img {
  will-change: transform;
}

.hero-overlay {
  background: linear-gradient(
    105deg,
    rgba(15, 31, 20, 0.88) 0%,
    rgba(30, 58, 39, 0.72) 50%,
    rgba(45, 90, 61, 0.4) 100%
  );
}

.hero-badge {
  animation: fadeInUp 0.8s ease both;
}

.hero-headline {
  animation: fadeInUp 0.8s ease 0.15s both;
}

.hero-subtitle {
  animation: fadeInUp 0.8s ease 0.3s both;
}

.hero-ctas {
  animation: fadeInUp 0.8s ease 0.45s both;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Scroll Indicator --- */
.scroll-indicator {
  animation: fadeInUp 1s ease 1s both;
}

/* --- Product Cards --- */
.card-product {
  background: white;
  border-radius: 1.5rem;
  padding: 1.25rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(45, 90, 61, 0.06);
}

.card-product:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(45, 90, 61, 0.12);
}

.card-product-img-wrap {
  position: relative;
  overflow: hidden;
}

.card-product-img-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(45, 90, 61, 0.08) 0%, transparent 40%);
  pointer-events: none;
}

.card-product-img {
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-product-title {
  transition: color 0.3s ease;
}

.card-product:hover .card-product-title {
  color: #2d5a3d;
}

.card-product-desc {
  transition: color 0.3s ease;
}

.card-product:hover .card-product-desc {
  color: #4d7a4d;
}

/* --- Visit Cards --- */
.visit-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1.5rem;
  padding: 2rem;
  transition: all 0.3s ease;
}

.visit-card:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-4px);
}

.visit-card-icon {
  transition: transform 0.3s ease;
}

.visit-card:hover .visit-card-icon {
  transform: scale(1.1);
}

.visit-card-title {
  margin-bottom: 0.5rem;
}

.visit-card-text {
  line-height: 1.7;
}

/* --- Form Elements --- */
.form-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #4d7a4d;
  margin-bottom: 0.375rem;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid #dce8df;
  border-radius: 0.75rem;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.9375rem;
  color: #1e3a27;
  background: white;
  transition: all 0.3s ease;
  outline: none;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: #bdd5c0;
}

.form-input:focus,
.form-textarea:focus {
  border-color: #6a9969;
  box-shadow: 0 0 0 4px rgba(106, 153, 105, 0.15);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

/* --- Reveal Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-gallery {
  opacity: 0;
  transform: translateX(40px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-gallery.revealed {
  opacity: 1;
  transform: translateX(0);
}

/* --- Mobile Menu --- */
.mobile-nav-link {
  transition: all 0.3s ease;
}

.mobile-nav-link:hover {
  color: #6a9969;
  transform: scale(1.05);
}

/* --- Navbar States --- */
#navbar.scrolled {
  background: rgba(250, 248, 244, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(45, 90, 61, 0.08);
}

#navbar.scrolled .nav-link {
  color: #2d5a3d;
}

#navbar.scrolled .nav-link::after {
  background: #6a9969;
}

#navbar.scrolled .btn-primary {
  background: linear-gradient(135deg, #2d5a3d 0%, #3a613a 100%);
}

#navbar.scrolled .font-display {
  color: #1e3a27;
}

/* --- Mobile Menu Active --- */
#mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

#mobile-menu.closed {
  opacity: 0;
  pointer-events: none;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .stats-grid {
    gap: 1.5rem;
  }

  .stat-number {
    font-size: 2.25rem;
  }
}

@media (max-width: 640px) {
  .hero-headline {
    font-size: 2.5rem;
  }

  .card-product {
    padding: 1rem;
  }
}
