/* =========================================
   Taro Taza - Design System & Base Styles
   (Inspired by HyFun & McCain Sustainability)
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Brand Colors - Earthy & Vibrant */
  --primary-green: #1E5631;       /* Deep Earthy Green */
  --primary-green-dark: #143A21;  
  --accent-green: #7CB342;        /* Fresh Leaf Green */
  --accent-gold: #FFC000;         /* Vibrant Food/Potato Gold */
  
  /* Brand Colors - Corporate */
  --corporate-blue: #0F75BC;
  --corporate-orange: #F7941D;
  
  /* Neutral Colors */
  --bg-light: #F8FBF8;
  --bg-white: #FFFFFF;
  --text-dark: #2C3E50;
  --text-muted: #6B7280;
  --border-light: #E5E7EB;
  
  /* Fonts - Poppins for that friendly, modern, rounded corporate look */
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Poppins', sans-serif;
  
  /* Shadows - Softer and larger for a modern feel */
  --shadow-sm: 0 2px 4px 0 rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 16px -4px rgba(30, 86, 49, 0.1), 0 4px 8px -4px rgba(30, 86, 49, 0.06);
  --shadow-lg: 0 20px 25px -5px rgba(30, 86, 49, 0.1), 0 10px 10px -5px rgba(30, 86, 49, 0.04);
  
  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2.5rem;
  --space-lg: 5rem;
  --space-xl: 8rem;
  
  /* Transitions */
  --transition-fast: 0.2s ease-in-out;
  --transition-normal: 0.3s ease-in-out;
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background-color: var(--bg-light);
  line-height: 1.7;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--primary-green);
  margin-bottom: var(--space-sm);
  letter-spacing: -0.5px;
}

h1 { font-size: 3.5rem; font-weight: 800; }
.page-header h1, .page-header h2, .page-header h3 { color: white !important; }
h2 { font-size: 2.75rem; }
h3 { font-size: 1.5rem; }
p { margin-bottom: var(--space-sm); font-size: 1.05rem; }
a { color: var(--primary-green); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--accent-green); }
img { max-width: 100%; height: auto; display: block; }

/* Layout & Containers */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-sm);
}

.section {
  padding: var(--space-lg) 0;
  position: relative;
}

.section-bg-dark {
  background-color: var(--primary-green);
  color: var(--bg-white);
}

.section-bg-dark h2, .section-bg-dark h3, .section-bg-dark p {
  color: var(--bg-white);
}

/* Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: all var(--transition-normal);
}

header.scrolled {
  box-shadow: var(--shadow-md);
  padding: 0.25rem 0;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 85px;
  transition: height var(--transition-normal);
}

header.scrolled .nav-container {
  height: 65px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary-green);
  letter-spacing: -1px;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links li a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-dark);
  position: relative;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.nav-links li a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 3px;
  bottom: -6px;
  left: 0;
  background-color: var(--accent-gold);
  border-radius: 2px;
  transition: width var(--transition-fast);
}

.nav-links li a:hover::after, .nav-links li a.active::after {
  width: 100%;
}

.nav-links li a.active {
  color: var(--primary-green);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.75rem;
  cursor: pointer;
  color: var(--primary-green);
}

/* Chunkier, Playful Buttons (HyFun Style) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.25rem;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: 2px solid transparent;
}

.btn-primary {
  background-color: var(--primary-green);
  color: var(--bg-white);
  box-shadow: 0 4px 14px rgba(30, 86, 49, 0.3);
}

.btn-primary:hover {
  background-color: var(--primary-green-dark);
  color: var(--bg-white);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(30, 86, 49, 0.4);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary-green);
  border-color: var(--primary-green);
}

.btn-outline:hover {
  background-color: var(--primary-green);
  color: var(--bg-white);
}

.btn-accent {
  background-color: var(--accent-gold);
  color: var(--primary-green-dark);
  box-shadow: 0 4px 14px rgba(255, 192, 0, 0.3);
}

.btn-accent:hover {
  background-color: #e5ac00;
  color: var(--primary-green-dark);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 192, 0, 0.4);
}

/* Hero Section */
.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 85px;
  overflow: hidden;
  background: radial-gradient(circle at top right, #e8f5e9 0%, #ffffff 100%);
}

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

.hero-subtitle {
  display: inline-block;
  padding: 0.4rem 1.25rem;
  background-color: var(--accent-gold);
  color: var(--primary-green-dark);
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: 4.5rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: var(--primary-green-dark);
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-dark);
  margin-bottom: 2.5rem;
}

.hero .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  width: 100%;
}

.hero-image-wrapper {
  position: relative;
  width: 45%;
  z-index: 1;
  display: flex;
  justify-content: flex-end;
}

.hero-image-wrapper img {
  filter: drop-shadow(0 30px 40px rgba(0,0,0,0.15));
  animation: float 8s ease-in-out infinite;
}

@keyframes float {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-25px) rotate(2deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

/* Glassmorphism & Soft Cards */
.glass-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 24px; /* Increased radius for playful look */
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.glass-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  background: rgba(255, 255, 255, 0.95);
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  margin-top: 4rem;
}

.feature-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background-color: var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--primary-green-dark);
  font-size: 1.75rem;
}

/* Categories Section */
.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-top: 4rem;
}

.category-card {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 4/5;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-slow), box-shadow var(--transition-slow);
}

.category-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.category-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

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

.category-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(20, 58, 33, 0.95) 0%, rgba(20, 58, 33, 0.3) 50%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2.5rem;
  color: white;
}

.category-overlay h3 {
  color: var(--accent-gold);
  margin-bottom: 0.5rem;
  font-size: 1.75rem;
}

/* Footer */
footer {
  background-color: #1F201C;
  border-top-left-radius: 60px;
  border-top-right-radius: 60px;
  color: white;
  padding: 4rem 0 1.5rem;
  margin-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1.2fr 1.2fr 1.5fr;
  gap: 2rem;
  margin-bottom: 2rem;
  align-items: center;
}

.footer-col-divider {
  border-left: 1px solid rgba(255,255,255,0.15);
  padding-left: 2rem;
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: -100%;
  left: 0;
  width: 100%;
  background-color: white;
  box-shadow: 0 -10px 40px rgba(0,0,0,0.15);
  padding: 1.5rem 0;
  z-index: 9999;
  transition: bottom 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
}
.cookie-banner.show {
  bottom: 0;
}
.cookie-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}
.cookie-text p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}
.cookie-buttons {
  display: flex;
  gap: 1rem;
  flex-shrink: 0;
}
.btn-cookie-accept {
  background-color: var(--primary-green-dark);
  color: white;
  border: none;
  padding: 0.75rem 1.75rem;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.3s ease;
}
.btn-cookie-accept:hover {
  background-color: var(--primary-green);
}
.btn-cookie-decline {
  background-color: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border-light);
  padding: 0.75rem 1.75rem;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.3s ease;
}
.btn-cookie-decline:hover {
  background-color: #f1f5f9;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  color: white;
  margin-bottom: 1.5rem;
}

.footer-logo img {
  height: 40px;
}

.footer-links h4 {
  color: var(--accent-gold);
  margin-bottom: 1.5rem;
  font-size: 1.25rem;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: rgba(255,255,255,0.7);
  font-weight: 500;
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.5);
}

/* Utilities & Animations */
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

.fade-in-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Grid Utilities */
.responsive-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
}
.gap-1 { gap: 1rem; }
.gap-2 { gap: 2rem; }
.gap-3 { gap: 3rem; }
.gap-4 { gap: 4rem; }

/* Responsive */
@media (max-width: 992px) {
  .hero h1 { font-size: 3.5rem; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    flex-direction: column;
    padding: 2rem;
    box-shadow: var(--shadow-md);
  }
  
  .nav-links.active {
    display: flex;
  }
  
  .responsive-grid-2 {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
  
  .cookie-content {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }
  
  .cookie-buttons {
    width: 100%;
    justify-content: center;
  }
  
  .mobile-menu-btn {
    display: block;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }
  
  .footer-grid > div:first-child {
    justify-content: center;
  }
  
  .footer-logo {
    justify-content: center;
  }
  
  .footer-links div[style*="display: flex"] {
    justify-content: center;
  }

  .hero {
    flex-direction: column;
    text-align: center;
    padding-top: 120px;
  }
  .hero .container {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }
  
  .hero-content {
    margin-bottom: 1rem;
    max-width: 100%;
  }

  .hero-subtitle {
    margin: 0 auto 1.5rem;
  }

  .hero-image-wrapper {
    position: relative;
    width: 100%;
    justify-content: center;
  }
  
  .category-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2.5rem;}
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
}

/* Page Transition Overlay */
.page-transition {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: var(--bg-light);
  z-index: 99999;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
  pointer-events: none;
}

.page-transition.active {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}

.transition-logo {
  height: auto;
  max-height: 150px;
  max-width: 80vw;
  object-fit: contain;
  animation: floatLogo 2s infinite ease-in-out;
  will-change: transform;
}

@keyframes floatLogo {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}
