/* =====================
   styleguide + index
===================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --color-black: #0D0D0D;
  --color-white: #F8F8F8;
  --color-brown-dark: #403022;
  --color-brown: #735943;
  --color-beige-light: #F2CAA7;
  --color-beige: #BF8C6F;
  --h1-font-size: 3rem;
  --h1-font-weight: bold;
  --h1-margin-bottom: 2.5rem;
  --h1-color: var(--color-brown-dark);

  --radius-sm: 2px;
  --shadow-default: 0 4px 8px rgba(0, 0, 0, 0.2);
}

body {
    font-family: 'Epilogue', system-ui, sans-serif;
    color: var(--color-brown-dark);
    line-height: 1.5;
    background-color: var(--color-white);
}


/* =====================
   MOBILE MENU
===================== */

@media (max-width: 960px) {
  .hamburger {
    display: flex;
  }

  .nav-left {
    position: absolute;
    top: 100%;
    left: 0;
    width: 70%;
    background: var(--color-brown-dark);
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
    display: none;
    z-index: 20;
  }

  .nav-left.active {
    display: flex;
  }

  .dropdown-content {
    position: static;
    display: none;
    width: 100%;
  }

  .dropdown.active .dropdown-content {
    display: block;
  }
}

/* =====================
   GRID / CARDS
===================== */

section h2 {
  font-size: var(--h1-font-size);
  font-weight: var(--h1-font-weight);
  margin-bottom: var(--h2-margin-bottom);
  color: var(--h1-color);
  text-align: center;
}

section h3 {
  font-size: var(--h2-font-size);
  font-weight: var(--h2-font-weight);
  margin-bottom: var(--h2-margin-bottom);
  color: var(--h1-color);
  text-align: center;
}

.section {
  max-width: 1200px;
  margin: 4rem auto;
  padding: 0 1rem;
  text-align: center;
}

.grid {
  display: grid;
  gap: 2rem;
}

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

/* =====================
   PRODUCT CARD (IMAGE-ONLY VERSION)
===================== */

.card {
    background-color: #ffffff;
    border-radius: var(--radius-sm);
    padding: 1.5rem;
    height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    box-shadow: var(--productCardBoxShadow);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow:
        rgba(0, 0, 0, 0.1) 0px 4px 6px -1px,
        rgba(0, 0, 0, 0.06) 0px 2px 4px -1px;
}

.card img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
   --productCardBoxShadow:
        rgba(0, 0, 0, 0.1) 0px 4px 6px -1px,
        rgba(0, 0, 0, 0.06) 0px 2px 4px -1px;
}


.card img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* =====================
   PARTNERS – INFINITE LOOP
===================== */

.partners {
  overflow: hidden;
  padding: 3rem 0;
}

.partner-track {
  width: 100%;
  overflow: hidden;
}

.partner-track-inner {
  display: flex;
  width: max-content;
  gap: 4rem;
  animation: scroll-left 30s linear infinite;
}

/* LOGOS */
.partner-track-inner img {
  height: 60px;
  object-fit: contain;
  filter: grayscale(0%);
  opacity: 0.8;
  transition: all 0.3s ease;
}

.partner-track-inner img:hover {
  filter: grayscale(0%);
  opacity: 1;
}

/* KEYFRAMES */
@keyframes scroll-left {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}


/* =====================
   FOOTER
===================== */

.footer {
  background: #403022;
  color: white;
  padding: 3rem 1rem 1.5rem;
}

.footer-container {
  max-width: 1200px;
  margin: auto;
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(3, 1fr);
}

.footer a {
  color: white;
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

/* =====================
   RESPONSIVE
===================== */

@media (max-width: 768px) {
  .footer-container {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 768px) {
  .grid.three {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .header-img {
    max-height: 50vh;
  }
}
