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

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

  --accent: #0d6efd;
  --accent-hover: #0b5ed7;

  --bg-light: #f8f9fa;
  --bg-white: #ffffff;
  --bg-dark: #1c1f26;
  --text-dark: #111;
  --text-light: #f4f4f4;

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

  --radius: 12px;

  --section-padding: clamp(2rem, 4vw, 4.5rem);
  --btn-v: 0.9rem;
  --btn-h: 1.6rem;
}

/* ---------------------------
   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 {
  font-weight: 700;
  font-size: 1.15rem;
  text-decoration: none;
  color: inherit
}

.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: linear-gradient(160deg, var(--bg-white), #eef3f8);
}

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

/* make hero copy responsive */
.hero-copy h1 {
  font-size: clamp(1.6rem, 3.2vw, 2.8rem);
  margin-bottom: 0.9rem;
  font-weight: 800;
  line-height: 1.05;
}

.hero-copy p {
  font-size: clamp(1rem, 1.6vw, 1.12rem);
  margin-bottom: 1.2rem;
  color: #333
}

/* 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: 12px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(13, 110, 253, 0.15);
  transition: transform .18s ease, background .18s ease;
}

.btn:hover {
  transform: translateY(-3px);
  background: var(--accent-hover)
}

/* ---------------------------
   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.4rem;
  box-shadow: 0 8px 22px var(--card-shadow);
  transition: transform .18s ease, box-shadow .18s ease;
  text-align: center;
}

.product-card:hover,
.category-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.14);
}

/* ---------- 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;
  margin-bottom: 12px;
  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 0.8rem;
}

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

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-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 h2 {
  text-align: center;
  margin-bottom: 2.4rem;
  font-size: 1.6rem;
  font-weight: 700
}

/* 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: var(--card-bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
  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: 1rem;
  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
  }

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

  /* stack cards on small screens */
}

/* ---------------------------
   FAQ
--------------------------- */
.faq dl {
  max-width: 880px;
  margin: 0 auto
}

.faq dt {
  font-weight: 700;
  margin-top: 1rem
}

.faq dd {
  margin-bottom: 1rem;
  color: #444
}

/* ---------------------------
   FOOTER
--------------------------- */
.site-footer {
  background: #111;
  color: #ddd;
  padding: 2rem 1rem;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.site-footer a {
  color: var(--accent)
}

/* ---------------------------
   Utility: natural logo images (no cropping)
   use <img class="logo" ...> for brand logos
--------------------------- */
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: var(--bg-light);
  text-align: center;
}

.testimonials h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 3rem;
}

.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;
}