/* ── DESIGN SYSTEM ────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,400&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Winky+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,400&display=swap');

:root {
  --brand-green: #2D6A2F;
  --brand-green-dark: #1A3D1B;
  --brand-green-light: #4A8C4D;
  --brand-orange: #E07B1A;
  --brand-amber: #F59E0B;
  --font-sans:    'Poppins',     sans-serif; /* body, paragraphs, buttons */
  --font-heading: 'Winky Sans',  sans-serif; /* all headings + brand display */
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%; /* prevent iOS font scale on rotate */
}

body {
  font-family: var(--font-sans);
  font-size: 16px; /* WCAG: minimum 16px body text on mobile */
  color: #1f2937;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  background: #fcfbf7;
  overscroll-behavior: contain; /* prevent accidental pull-to-refresh */
  overflow-x: hidden; /* prevent horizontal scroll on mobile */
}

::selection {
  background: rgba(245, 158, 11, 0.75);
  color: #1A3D1B;
}

/* ── TYPOGRAPHY ───────────────────────────────────────────── */
/* Winky Sans — headings & brand display elements only */
h1, h2, h3, h4, h5, h6,
.logo-font,
.font-display {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
}

/* Poppins — body copy, labels, buttons */
p, span, a, li, input, textarea, select, button, label {
  font-family: var(--font-sans);
}

/* ── COMPONENTS ───────────────────────────────────────────── */
.btn-primary {
  background-color: var(--brand-green);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary:hover {
  background-color: var(--brand-green-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

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

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

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

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

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(245, 158, 11, 0.85);
  outline-offset: 3px;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.75;
}

/* ── UTILITIES ────────────────────────────────────────────── */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Fix for Hero section overlapping */
main {
  padding-top: 0; /* Header is sticky */
}

/* ── ANIMATIONS ───────────────────────────────────────────── */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
  animation: fadeIn 0.8s ease-out forwards;
}

.hero-banner {
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  aspect-ratio: 2752 / 1536;
}

.hero-wave {
  filter: drop-shadow(0 -10px 16px rgba(203, 170, 112, 0.18));
}

.hero-wave svg {
  height: auto;
}

.about-section-art {
  background-image:
    url("Public/Images/Our story sectin hompage/left.png"),
    url("Public/Images/Our story sectin hompage/right.png");
  background-repeat: no-repeat, no-repeat;
  background-position: left bottom, right bottom;
  background-size: 5rem auto, 10.5rem auto;
}

@media (min-width: 640px) {
  .hero-banner {
    aspect-ratio: auto;
  }

  .about-section-art {
    background-size: 6.5rem auto, 14rem auto;
  }
}

@media (min-width: 1024px) {
  .about-section-art {
    background-size: 9rem auto, 18rem auto;
  }
}

/* ── EXPANDING CATEGORIES ACCORDION ───────────────────────── */
.category-accordion {
  display: flex;
  width: 100%;
  height: 480px;
  gap: 12px;
}

.cat-card {
  flex: 1;
  position: relative;
  transition: flex 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  background-color: var(--brand-green-dark);
}

.cat-card:hover {
  flex: 4;
}

.cat-card-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
  transition: opacity 0.4s ease, transform 0.6s ease;
}

.cat-card:hover .cat-card-bg {
  opacity: 1;
  transform: scale(1.05);
}

.cat-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 30px 20px;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: white;
}

.cat-card-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  white-space: nowrap;
  margin-bottom: 4px;
  transform: translateY(20px);
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.cat-card:hover .cat-card-title {
  transform: translateY(0);
}

.cat-card-desc {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  opacity: 0;
  height: 0;
  overflow: hidden;
  transition: opacity 0.4s ease 0.1s, height 0.4s ease;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.cat-card:hover .cat-card-desc {
  opacity: 1;
  height: auto;
  margin-top: 8px;
}

@media (max-width: 768px) {
  .category-accordion {
    flex-direction: column;
    height: 600px;
  }
  
  .cat-card {
    flex: 1;
    transition: flex 0.4s ease;
  }
  
  .cat-card-title {
    font-size: 1.5rem;
    transform: translateY(0);
  }
  
  .cat-card-desc {
    opacity: 1;
    height: auto;
    white-space: normal;
  }
}
