/* ===========================
   Full responsive styles.css
   - fixes mobile layout
   - stable image aspect boxes
   - consistent card & grid scaling
=========================== */

:root {
  --max-width: 1100px;

  /* --accent: #80c342; Moved to site.json */
  /* Mixlix Lime */
  --accent-hover: rgb(from var(--accent) r g b / 0.85);
  --accent-shadow: rgb(from var(--accent) r g b / 0.30);
  --accent-shadow-strong: rgb(from var(--accent) r g b / 0.45);
  --accent-focus-ring: rgb(from var(--accent) r g b / 0.20);

  --bg-light: #f9f9f9;
  --bg-white: #ffffff;
  --bg-dark: #000000;
  /* Pure Black */
  --bg-dark-soft: #222;
  --text-dark: #1a1a1a;
  --text-light: #fff;
  --text-muted: #666;

  --card-bg: #fff;
  --card-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);

  --radius: 20px;
  /* General radius for cards */
  --radius-btn: 50px;
  /* Pill shape */

  --section-padding: clamp(3rem, 5vw, 6rem);
  --btn-v: 1rem;
  --btn-h: 2.4rem;
}

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

html,
body {
  height: 100%
}

body {
  font-family: system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text-dark);
  line-height: 1.55;
  background: var(--bg-light);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* ---------------------------
   HEADER
--------------------------- */
.site-header {
  background: var(--bg-white);
  border-bottom: 1px solid #e9ecef;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.site-header .container {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.brand img {
  height: 64px;
  width: auto;
  display: block;
}

.menu {
  list-style: none;
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-left: auto;
  flex-wrap: wrap;
}

.menu a {
  text-decoration: none;
  color: inherit;
  font-weight: 600;
  padding: 0.25rem 0.4rem;
  border-radius: 6px;
}

.menu a:hover {
  color: var(--accent)
}

/* ---------------------------
   HERO
--------------------------- */
.hero {
  padding: var(--section-padding);
  background: var(--bg-white);
  color: var(--text-dark);
  /* Optional: very subtle refreshing background */
  background-image: linear-gradient(180deg, #fff 0%, #f4fdf4 100%);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 3rem;
  align-items: center;
}

/* make hero copy responsive */
.hero-copy h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  margin-bottom: 1.2rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #000;
}

.hero-copy p {
  font-size: clamp(1.1rem, 1.8vw, 1.25rem);
  margin-bottom: 1.5rem;
  /* Reduced from 2rem for consistent gap */
  color: var(--text-muted);
  max-width: 540px;
}

/* HERO IMAGE: constrained and centered on mobile */
.hero-media {
  width: 100%;
  max-width: 420px;
  margin-left: auto;
}

.hero-media img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
  object-fit: cover;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
}

/* ---------------------------
   BUTTONS
--------------------------- */
.btn {
  display: inline-block;
  padding: var(--btn-v) var(--btn-h);
  border-radius: var(--radius-btn);
  background: var(--accent);
  box-shadow: 0 10px 20px var(--accent-shadow);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  transition: all .3s ease;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  /* margin-top removed to let paragraph margins handle spacing consistently */
}

.btn:hover {
  transform: translateY(-3px);
  background: var(--accent-hover);
  box-shadow: 0 16px 32px var(--accent-shadow-strong);
}

/* ===========================
   NAVIGATION BUTTON STYLES
=========================== */

.btn-nav {
  padding: 0.6rem 1.4rem;
  font-size: 0.85rem;
  border-radius: var(--radius-btn);

  background: var(--accent);
  color: #ffffff;

  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  text-decoration: none;

  box-shadow: none;
  transform: none;

  transition: background-color 0.2s ease, color 0.2s ease;
}

/* hover / focus */
.btn-nav:hover,
.btn-nav:focus {
  background-color: #000000; /* clean black */
  color: #ffffff; /* keep text white */
}

/* active (click) */
.btn-nav:active {
  background-color: #222222; /* slightly lighter black for click feedback */
  color: #ffffff;
}

/* keyboard accessibility */
.btn-nav:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}


/* ---------------------------
   GRID / CARDS
--------------------------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.6rem;
}

/* unified card base */
.card,
.product-card,
.category-card {
  border-radius: var(--radius);
  background: var(--card-bg);
  padding: 1.5rem;
  box-shadow: var(--card-shadow);
  transition: transform .2s ease, box-shadow .2s ease;
  text-align: center;
  border: 1px solid rgba(0, 0, 0, 0.03);
  /* subtle border definition */
}

/* Fix category card links */
.category-card a {
  text-decoration: none;
  color: inherit;
  display: block;
  /* Ensure full click area */
}

.product-card:hover,
.category-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.12);
  /* Higher lift on hover */
}

/* ---------- PRODUCT / CATEGORY THUMBNAILS ----------
   Use aspect-ratio so images always have correct proportions
   - 4 / 3 is a good product photo aspect
   - we avoid fixed px heights which cause stretching
*/
.product-card .thumb,
.category-card .thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 10px;
  border-radius: 10px;
  margin-bottom: 1.5rem;
  /* Increased from 12px for better balance */
  background: transparent;
}

.product-card .thumb img,
.category-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* small screen reduce thumb height visually while keeping ratio */
@media (max-width:420px) {

  .product-card .thumb,
  .category-card .thumb {
    aspect-ratio: 3 / 2;
  }
}

/* price styling */
.product-card .price {
  font-weight: 800;
  color: var(--accent);
  font-size: 1.15rem;
  margin: 0.5rem 0 1.2rem;
  /* Increased spacing before description/button */
}

.product-card p {
  margin-bottom: 1.2rem;
  /* Consistent flow in cards */
}

/* ---------------------------
   SECTION BACKGROUNDS
--------------------------- */
section {
  padding: var(--section-padding);
}

/* ---------------------------
   UNIFIED SECTION HEADINGS
--------------------------- */
section h2,
#about h2,
#testimonials h2,
.features h2,
.categories h2 {
  text-align: center;
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 800;
  margin-bottom: clamp(3rem, 5vw, 4rem);
  line-height: 1.2;
}



/* .categories h2 unified above */

section:nth-of-type(odd) {
  background: var(--bg-white)
}

section:nth-of-type(even) {
  background: var(--bg-light)
}

/* ---------------------------
   DARK SECTION (for emphasis)
   - use .section-dark on any <section>
--------------------------- */
.section-dark {
  background: linear-gradient(180deg, var(--bg-dark), var(--bg-dark-soft));
  color: var(--text-light);
  padding: clamp(2rem, 4vw, 5rem);
}

.section-dark .card {
  background: #2b2f36;
  box-shadow: none;
  color: var(--text-light)
}

.section-dark .btn {
  background: #fff;
  color: var(--bg-dark);
  box-shadow: none
}

.section-dark a {
  color: #bfe1ff
}

/* ---------------------------
   ABOUT
--------------------------- */
#about {
  background: #000;
  color: #fff;
}

.about h2 {
  color: #fff;
  /* Layout handled by global unified rule */
}

.about p {
  color: #ccc;
}

.about-inner {
  display: flex;
  gap: 2rem;
  align-items: center;
  flex-wrap: wrap
}

.about-media {
  flex: 0 1 320px;
  max-width: 420px;
}

.about-media img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  object-fit: contain;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08)
}

.about-content {
  flex: 1 1 480px
}

/* ---------------------------
   FEATURES (split left/right rows)
--------------------------- */
#features {
  background-color: #1a202c;
  /* High Contrast Dark Slate */
}

#features h2 {
  color: #fff;
  /* Ensure title is white on dark bg */
}

/* feature item container */
.features .feature-list {
  display: flex;
  flex-direction: column;
  gap: 5rem;
}

/* each feature row is a white card that contains image + content */
.features .feature-item {
  display: flex;
  gap: 0;
  background: #ffffff;
  /* Pure White for maximum pop */
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
  /* Deep shadow */
  border: none;
  /* Border not needed on dark bg */
  align-items: stretch;
  flex-wrap: wrap;
}

/* image column: use aspect-ratio for stable sizing */
.features .feature-image {
  flex: 1 1 46%;
  min-width: 260px;
  max-width: 620px;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #f3f4f6;
}

.features .feature-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block
}

/* content column */
.features .feature-content {
  flex: 1 1 54%;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.features .feature-content h3 {
  margin-bottom: 0.9rem;
  font-size: 1.25rem
}

.features .feature-content p {
  margin-bottom: 1.5rem;
  /* Increased from 1rem to match global button spacing */
  color: #333
}

/* allow alternating layout: add class .right-image on .feature-item to swap */
.features .feature-item.right-image {
  flex-direction: row-reverse;
}

/* small screens: stack */
@media (max-width:800px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center
  }

  .hero-media {
    margin: 0 auto
  }

  .features .feature-item,
  .features .feature-item.right-image {
    flex-direction: column;
  }

  .features .feature-image {
    width: 100%;
    min-width: auto;
    max-width: 100%;
  }

  .features .feature-content {
    padding: 1.4rem
  }

  .about-inner {
    flex-direction: column
  }

  .about-media {
    margin-bottom: 2rem;
    /* Add spacing when stacked */
  }

  .grid {
    grid-template-columns: 1fr
  }

  /* stack cards on small screens */
}

/* ---------------------------
   FAQ
--------------------------- */
/* ---------------------------
   FAQ (Accordion)
--------------------------- */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--bg-white);
  border-radius: var(--radius);
  /* slight border for definition */
  border: 1px solid rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item[open] {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.faq-item summary {
  padding: 1.5rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  /* Hide default arrow */
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-dark);
}

/* Custom + / - indicator */
.faq-item summary::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--accent);
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
  /* Turns + into x */
}

/* Webkit marker hide */
.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item p {
  padding: 0 1.5rem 1.5rem;
  margin: 0;
  color: #555;
  line-height: 1.6;
  border-top: 1px solid transparent;
}



/* ---------------------------
   FOOTER
--------------------------- */
/* ---------------------------
   FOOTER
--------------------------- */
.site-footer {
  background: #111;
  color: #ddd;
  padding: 5rem 0 3rem;
  /* Taller footer */
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.95rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2.5rem;
  margin-bottom: 4rem;
  text-align: left;
}

.footer-col h4 {
  color: #fff;
  font-weight: 700;
  margin-bottom: 1.2rem;
  font-size: 1.1rem;
}

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

.footer-col ul li {
  margin-bottom: 0.8rem;
}

.site-footer a {
  color: #aaa;
  text-decoration: none;
  transition: color 0.2s;
}

.site-footer a:hover {
  color: #fff;
}

.footer-desc {
  color: #888;
  line-height: 1.6;
  font-size: 0.9rem;
  margin-top: 0.6rem;
  max-width: 300px;
}

/* Specific logo size for footer */
.footer-logo img {
  height: 64px;
  width: auto;
  display: block;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  text-align: center;
  font-size: 0.85rem;
  color: #666;
}

/* ---------------------------
   AFFILIATE DISCLAIMER
--------------------------- */
.disclaimer-box {
  margin-top: 1.5rem;
  padding: 1.2rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: inline-block;
}

.disclaimer-box p {
  color: #bbb !important;
  /* Lighter grey for better visibility */
  font-size: 0.95rem;
  margin-bottom: 0 !important;
  font-weight: 500;
}

/* ---------------------------
   LEGAL PAGES
--------------------------- */
.sec-legal {
  padding: 8rem 0 5rem;
}

/* Ensure the container inside aligns text properly */
.sec-legal .container {
  max-width: 800px;
  /* Readable width */
  margin: 0 auto;
  text-align: left;
  /* Standard doc alignment */
}

.sec-legal h1 {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  margin-bottom: 2rem;
  color: var(--text-dark);
  line-height: 1.1;
  text-align: left;
  /* Explicit left override */
}

.sec-legal h2 {
  font-size: 1.8rem;
  margin-top: 3rem;
  margin-bottom: 1.2rem;
  color: var(--text-dark);
  text-align: left;
  /* Explicit left override */
}

.sec-legal p,
.sec-legal li {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #444;
  margin-bottom: 1.2rem;
}

.sec-legal ul {
  margin-left: 1.5rem;
  margin-bottom: 2rem;
}


/* ---------------------------
   ANIMATIONS
--------------------------- */

/* 1. Base Keyframes (for immediate load) */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 2. Scroll Reveal Class (controlled by JS) */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

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

/* 3. Utility Delays */
.delay-100 {
  transition-delay: 0.1s;
  animation-delay: 0.1s;
}

.delay-200 {
  transition-delay: 0.2s;
  animation-delay: 0.2s;
}

.delay-300 {
  transition-delay: 0.3s;
  animation-delay: 0.3s;
}

img.logo {
  height: auto;
  max-height: 80px;
  width: auto;
  object-fit: contain;
  display: block
}

/* ---------------------------
   Safety / Performance hints
   - prevent images from causing layout shifts
--------------------------- */
img {
  display: block;
  max-width: 100%;
  height: auto;
  -webkit-user-drag: none;
  user-select: none
}


/* ==========================================
   MOBILE MENU FIX — ADD AT BOTTOM
========================================== */

@media (max-width: 768px) {

  /* Header base adjustments */
  .site-header .container {
    position: relative;
  }

  /* Hide the default menu */
  .menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    flex-direction: column;
    background: var(--bg-white);
    padding: 1rem 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    text-align: center;
    gap: 0;
    z-index: 999;
  }

  .menu li {
    padding: 0.8rem 1rem;
    border-bottom: 1px solid #eee;
  }

  .menu li:last-child {
    border-bottom: none;
  }

  .menu a {
    font-size: 1.1rem;
    display: block;
    width: 100%;
  }

  /* Hamburger button */
  .mobile-toggle {
    display: block;
    cursor: pointer;
    width: 32px;
    height: 32px;
    position: relative;
  }

  .mobile-toggle span,
  .mobile-toggle::before,
  .mobile-toggle::after {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--text-dark);
    transition: 0.3s;
  }

  .mobile-toggle span {
    top: 50%;
    transform: translateY(-50%);
  }

  .mobile-toggle::before {
    top: 8px;
  }

  .mobile-toggle::after {
    bottom: 8px;
  }

  /* When active — animate into X */
  .mobile-toggle.active span {
    opacity: 0;
  }

  .mobile-toggle.active::before {
    transform: translateY(10px) rotate(45deg);
  }

  .mobile-toggle.active::after {
    transform: translateY(-10px) rotate(-45deg);
  }

  /* Show menu when active */
  .menu.active {
    display: flex;
  }
}

/* ---------------------------
   TESTIMONIALS
--------------------------- */
#testimonials {
  background: #000;
  text-align: center;
  color: #fff;
}

.testimonials h2 {
  color: #fff;
  /* Layout handled by global unified rule */
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.testimonial-card {
  background: var(--bg-white);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.2s ease;
}

.testimonial-card:hover {
  transform: translateY(-5px);
}

.testimonial-avatar {
  width: 80px;
  height: 80px;
  margin-bottom: 1.5rem;
}

.testimonial-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent);
}

.testimonial-text {
  font-style: italic;
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
  color: #444;
  line-height: 1.6;
}

.testimonial-name {
  font-weight: 700;
  color: var(--text-dark);
  font-size: 1rem;
  margin-top: auto;
}

/* ---------------------------
   CONTACT FORM
--------------------------- */
.contact-form {
  margin-top: 2.5rem;
  background: var(--bg-white);
  padding: 2.5rem;
  border-radius: var(--radius);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  text-align: left;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.6rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-dark);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.2s ease;
  background: #f8fafc;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(128, 195, 66, 0.15);
}

.h-captcha {
  margin-bottom: 2rem;
  display: flex;
  justify-content: flex-start;
}

.contact-form .btn {
  width: 100%;
  padding: 1.2rem;
  font-size: 1rem;
  cursor: pointer;
  border: none;
}

/* ---------------------------
   FINAL CTA SECTION
--------------------------- */
.final-cta {
  background-color: var(--accent) !important;
  /* Force Theme Green */
  color: #ffffff !important;
  text-align: center;
  padding: 6rem 1rem;
}

.final-cta .cta-inner {
  max-width: 800px;
  margin: 0 auto;
}

.final-cta h2 {
  color: #ffffff !important;
  margin-bottom: 1.5rem;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  line-height: 1.1;
}

.final-cta p {
  color: #ffffff !important;
  font-size: 1.25rem;
  margin-bottom: 3rem;
  line-height: 1.6;
}

.final-cta .btn {
  background: #fff;
  color: var(--accent);
  padding: 1.25rem 3rem;
  font-size: 1.15rem;
  font-weight: 800;
  box-shadow: 0 10px 25px var(--accent-shadow);
}

.final-cta .btn:hover {
  background: #f8f8f8;
  color: var(--accent-hover);
  transform: translateY(-4px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}