/* ============================================
   InnerKleanse — "Cleanse From Within"
   Core Stylesheet
   ============================================ */

/* ---------- CSS Variables ---------- */
:root {
  --deep-green: #2D5016;
  --warm-white: #FAFAF5;
  --gold: #C4A35A;
  --sage: #A8C5A0;
  --dark-text: #1A1A1A;
  --body-text: #4A4A4A;
  --light-border: #E8E8E0;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: 0.3s ease;
  --max-width: 1200px;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--warm-white);
  color: var(--body-text);
  line-height: 1.7;
  font-size: 16px;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--deep-green); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold); }

h1, h2, h3, h4, h5, h6 {
  color: var(--dark-text);
  line-height: 1.3;
  font-weight: 700;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Header / Nav ---------- */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--light-border);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
  background: rgba(255,255,255,0.95);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.logo {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--deep-green);
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.logo .leaf {
  color: var(--sage);
  font-size: 1.3rem;
}

.logo span.k-accent {
  position: relative;
}

.logo span.k-accent::after {
  content: "🌿";
  font-size: 0.6em;
  position: absolute;
  top: -6px;
  right: -10px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--deep-green);
  padding: 4px;
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 32px;
  align-items: center;
}

.main-nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--body-text);
  transition: color var(--transition);
  position: relative;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--deep-green);
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width var(--transition);
}

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

/* Dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown .dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: -16px;
  background: #fff;
  border: 1px solid var(--light-border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  min-width: 200px;
  padding: 8px 0;
  z-index: 100;
  margin-top: 12px;
}

.nav-dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-menu a {
  display: block;
  padding: 10px 20px;
  font-size: 0.9rem;
}

.dropdown-menu a:hover {
  background: var(--warm-white);
}

/* Mobile Nav */
@media (max-width: 768px) {
  .nav-toggle { display: block; }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid var(--light-border);
    box-shadow: var(--shadow-md);
  }

  .main-nav.open { display: block; }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 8px 0;
  }

  .main-nav li { width: 100%; }

  .main-nav a {
    display: block;
    padding: 14px 24px;
  }

  .main-nav a::after { display: none; }

  .nav-dropdown .dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    margin: 0;
    padding-left: 20px;
    display: none;
  }

  .nav-dropdown.open .dropdown-menu {
    display: block;
  }

  .dropdown-menu a {
    padding: 10px 24px;
    font-size: 0.85rem;
    color: var(--sage);
  }
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--deep-green) 0%, #3D6B20 50%, #2D5016 100%);
  color: #fff;
  padding: 80px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(168,197,160,0.15) 0%, transparent 60%);
  animation: heroGlow 8s ease-in-out infinite alternate;
}

@keyframes heroGlow {
  0% { transform: translate(0, 0); }
  100% { transform: translate(5%, 5%); }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 3rem;
  color: #fff;
  margin-bottom: 16px;
  letter-spacing: -1px;
}

.hero .tagline {
  font-size: 1.25rem;
  color: var(--sage);
  margin-bottom: 32px;
  font-weight: 300;
}

.hero p.subtitle {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 40px;
  line-height: 1.8;
}

.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--gold);
  color: #fff;
}

.btn-primary:hover {
  background: #D4B36A;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: #fff;
}

.btn-secondary {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.4);
}

.btn-secondary:hover {
  border-color: #fff;
  background: rgba(255,255,255,0.1);
  color: #fff;
}

.btn-green {
  background: var(--deep-green);
  color: #fff;
}

.btn-green:hover {
  background: #3D6B20;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: #fff;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .hero { padding: 60px 20px; }
  .hero h1 { font-size: 2rem; }
  .hero .tagline { font-size: 1.1rem; }
}

/* ---------- Sections ---------- */
.section {
  padding: 80px 0;
}

.section-dark {
  background: var(--deep-green);
  color: #fff;
}

.section-light {
  background: #fff;
}

.section-title {
  text-align: center;
  margin-bottom: 48px;
}

.section-title h2 {
  font-size: 2rem;
  margin-bottom: 12px;
}

.section-title p {
  font-size: 1.05rem;
  color: var(--body-text);
  max-width: 600px;
  margin: 0 auto;
}

.section-dark .section-title h2 { color: #fff; }
.section-dark .section-title p { color: var(--sage); }

/* ---------- Category Cards ---------- */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
}

.category-card {
  background: #fff;
  border: 1px solid var(--light-border);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  transition: all var(--transition);
  cursor: pointer;
  text-decoration: none;
  display: block;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--sage);
}

.category-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
  display: block;
}

.category-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--deep-green);
}

.category-card p {
  font-size: 0.85rem;
  color: var(--body-text);
}

/* ---------- Product Grid ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.product-card {
  background: #fff;
  border: 1px solid var(--light-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.product-image {
  background: linear-gradient(135deg, #f0f4ed, #e8ede5);
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  position: relative;
}

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--gold);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 50px;
}

.product-info {
  padding: 20px;
}

.product-brand {
  font-size: 0.8rem;
  color: var(--sage);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
  margin-bottom: 4px;
}

.product-info h3 {
  font-size: 1rem;
  margin-bottom: 8px;
  line-height: 1.4;
}

.product-info .description {
  font-size: 0.85rem;
  color: var(--body-text);
  margin-bottom: 12px;
  line-height: 1.5;
}

.product-price {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--deep-green);
  margin-bottom: 12px;
}

.product-rating {
  font-size: 0.85rem;
  color: var(--gold);
  margin-bottom: 16px;
}

.product-card .btn {
  width: 100%;
  padding: 12px;
  font-size: 0.9rem;
}

/* ---------- Trust Badges ---------- */
.trust-badges {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  padding: 40px 20px;
}

.trust-badge {
  text-align: center;
  max-width: 160px;
}

.trust-badge .badge-icon {
  font-size: 2rem;
  margin-bottom: 8px;
  display: block;
}

.trust-badge h4 {
  font-size: 0.9rem;
  color: var(--deep-green);
  margin-bottom: 4px;
}

.trust-badge p {
  font-size: 0.8rem;
  color: var(--body-text);
}

/* ---------- Blog Cards ---------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.blog-card {
  background: #fff;
  border: 1px solid var(--light-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
  display: block;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--sage);
}

.blog-image {
  height: 200px;
  background: linear-gradient(135deg, var(--sage), var(--deep-green));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.blog-content {
  padding: 24px;
}

.blog-tag {
  display: inline-block;
  background: rgba(45,80,22,0.08);
  color: var(--deep-green);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 50px;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.blog-content h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.blog-content p {
  font-size: 0.9rem;
  color: var(--body-text);
  margin-bottom: 16px;
}

.read-more {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--deep-green);
}

.read-more:hover { color: var(--gold); }

/* ---------- Newsletter ---------- */
.newsletter {
  background: linear-gradient(135deg, var(--deep-green), #3D6B20);
  padding: 60px 20px;
  text-align: center;
  color: #fff;
  border-radius: 0;
}

.newsletter h2 {
  color: #fff;
  margin-bottom: 12px;
  font-size: 1.8rem;
}

.newsletter p {
  color: var(--sage);
  margin-bottom: 24px;
}

.newsletter-form {
  display: flex;
  gap: 12px;
  max-width: 480px;
  margin: 0 auto;
}

.newsletter-form input {
  flex: 1;
  padding: 14px 20px;
  border: none;
  border-radius: 50px;
  font-size: 0.95rem;
  outline: none;
}

.newsletter-form .btn { white-space: nowrap; }

@media (max-width: 480px) {
  .newsletter-form {
    flex-direction: column;
  }
}

/* ---------- Footer ---------- */
.site-footer {
  background: #1A1A1A;
  color: #ccc;
  padding: 60px 20px 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  max-width: var(--max-width);
  margin: 0 auto 40px;
}

.footer-col h4 {
  color: #fff;
  margin-bottom: 16px;
  font-size: 1rem;
}

.footer-col p {
  font-size: 0.85rem;
  line-height: 1.8;
}

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

.footer-col li {
  margin-bottom: 8px;
}

.footer-col a {
  color: #aaa;
  font-size: 0.85rem;
}

.footer-col a:hover { color: var(--gold); }

.footer-social {
  display: flex;
  gap: 16px;
  margin-top: 12px;
}

.footer-social a {
  font-size: 1.2rem;
  color: #aaa;
}

.footer-social a:hover { color: var(--gold); }

.footer-bottom {
  border-top: 1px solid #333;
  padding-top: 24px;
  text-align: center;
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: #888;
  line-height: 1.8;
}

.footer-disclaimer {
  background: rgba(196,163,90,0.1);
  border: 1px solid rgba(196,163,90,0.2);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin-bottom: 20px;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 24px;
}

.footer-disclaimer p {
  font-size: 0.78rem;
  color: #aaa;
  line-height: 1.7;
}

/* ---------- Page Header (Category / Blog) ---------- */
.page-header {
  background: linear-gradient(135deg, var(--deep-green), #3D6B20);
  padding: 60px 20px;
  text-align: center;
  color: #fff;
}

.page-header h1 {
  font-size: 2.2rem;
  color: #fff;
  margin-bottom: 12px;
}

.page-header p {
  font-size: 1.05rem;
  color: var(--sage);
  max-width: 600px;
  margin: 0 auto;
}

.breadcrumb {
  font-size: 0.85rem;
  margin-bottom: 16px;
}

.breadcrumb a { color: var(--sage); }
.breadcrumb span { color: rgba(255,255,255,0.6); }

/* ---------- About Page ---------- */
.about-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 20px;
}

.about-content h2 {
  font-size: 1.6rem;
  margin-bottom: 16px;
  margin-top: 40px;
}

.about-content p {
  margin-bottom: 16px;
  font-size: 1rem;
  line-height: 1.8;
}

.about-values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin: 40px 0;
}

.value-card {
  background: #fff;
  border: 1px solid var(--light-border);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
}

.value-card .value-icon {
  font-size: 2rem;
  margin-bottom: 12px;
  display: block;
}

.value-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--deep-green);
}

/* ---------- Blog Article ---------- */
.article-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 60px 20px;
}

.article-content h1 {
  font-size: 2rem;
  margin-bottom: 16px;
}

.article-meta {
  font-size: 0.85rem;
  color: var(--sage);
  margin-bottom: 32px;
}

.article-content h2 {
  font-size: 1.4rem;
  margin-top: 40px;
  margin-bottom: 16px;
}

.article-content p {
  margin-bottom: 16px;
  line-height: 1.9;
}

.article-content ul, .article-content ol {
  margin-bottom: 16px;
  padding-left: 24px;
}

.article-content li {
  margin-bottom: 8px;
  line-height: 1.7;
}

.article-cta {
  background: linear-gradient(135deg, rgba(45,80,22,0.05), rgba(168,197,160,0.15));
  border: 1px solid var(--sage);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  margin: 40px 0;
}

.article-cta h3 {
  margin-bottom: 12px;
}

.article-cta p {
  margin-bottom: 20px;
}

/* ---------- Filter Bar ---------- */
.filter-bar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 32px;
  justify-content: center;
}

.filter-btn {
  padding: 8px 20px;
  border: 1px solid var(--light-border);
  border-radius: 50px;
  background: #fff;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all var(--transition);
  color: var(--body-text);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--deep-green);
  color: #fff;
  border-color: var(--deep-green);
}

/* ---------- Stats / Social Proof ---------- */
.stats-row {
  display: flex;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
  padding: 40px 20px;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--gold);
  display: block;
}

.stat-label {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.8);
}

/* ---------- Schema Markup (hidden) ---------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.mt-40 { margin-top: 40px; }
.mb-20 { margin-bottom: 20px; }
.mb-40 { margin-bottom: 40px; }

/* ---------- Animations ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ========== PRODUCT IMAGES ========== */
.product-image {
  position: relative;
  background: linear-gradient(135deg, #f0f7ed 0%, #e8f5e0 50%, #dcefd4 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  overflow: hidden;
  border-radius: 12px 12px 0 0;
}
.product-image img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.product-card:hover .product-image img {
  transform: scale(1.05);
}
.hero-section-img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 12px;
}
.category-card img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 8px;
}
.blog-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 12px 12px 0 0;
}

/* ========== CATEGORY ICON IMAGES ========== */
.category-icon-img {
  width: 100%;
  max-width: 350px;
  height: auto;
  object-fit: contain;
  margin: 0 auto 12px;
  display: block;
  transition: transform 0.4s ease;
}
.category-card:hover .category-icon-img {
  transform: scale(1.05);
}
.category-hero-img {
  width: 100%;
  max-width: 420px;
  height: auto;
  object-fit: contain;
  margin: 0 auto 20px;
  display: block;
}
@media (max-width: 768px) {
  .category-icon-img {
    max-width: 280px;
  }
  .category-hero-img {
    max-width: 340px;
  }
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
  .blog-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .category-card {
    padding: 20px 12px;
  }
}
