/* ===========================
   CHUNKY LOOPS
   style.css
   =========================== */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --background: #fdfbf7;
  --foreground: #3d3329;
  --primary: #8f7356;
  --primary-dark: #7a6047;
  --secondary: #93806c;
  --panel: #f9f6f1;
  --border: #e5e0d9;
  --muted: #7b6a58;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--background);
  color: var(--foreground);
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  text-decoration: none;
}

/* ===========================
   NAVIGATION
   =========================== */

#navbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(253, 251, 247, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--foreground);
}

.nav-logo:hover {
  color: var(--primary);
}

.nav-links {
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--secondary);
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--foreground);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.4rem;
  color: var(--secondary);
  cursor: pointer;
}

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

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: var(--panel);
  border-bottom: 1px solid var(--border);
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--secondary);
}

.mobile-menu a:hover {
  color: var(--foreground);
}

/* ===========================
   HERO
   =========================== */

.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5rem 1.5rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.2;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 4rem;
  max-width: 72rem;
  width: 100%;
  flex-wrap: wrap;
}

.hero-logo {
  flex-shrink: 0;
  width: 220px;
}

.hero-logo img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.hero-content {
  text-align: center;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-content h1 {
  font-family: 'Lora', Georgia, serif;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 1rem;
  line-height: 1.1;
}

.hero-tagline {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--secondary);
  margin-bottom: 0.75rem;
  max-width: 480px;
  line-height: 1.6;
}

.hero-sub {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2rem;
}

.hero-links {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 1.25rem;
}

.hero-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--primary);
  transition: color 0.2s;
}

.hero-links a:hover {
  color: var(--primary-dark);
}

.hero-divider {
  color: #c7b8a7;
}

/* ===========================
   BUTTONS
   =========================== */

.btn-primary {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 1rem 2.5rem;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-weight: 500;
  transition: background 0.2s, transform 0.15s;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.btn-dm {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 0.5rem 1.25rem;
  border-radius: 0.5rem;
  font-size: 0.85rem;
  font-weight: 500;
  transition: background 0.2s;
  white-space: nowrap;
}

.btn-dm:hover {
  background: var(--primary-dark);
}

/* ===========================
   PRODUCT SECTIONS
   =========================== */

.product-section {
  padding: 5rem 1.5rem;
}

.product-section.alt-bg {
  background: var(--panel);
}

.section-header {
  text-align: center;
  max-width: 72rem;
  margin: 0 auto 3rem;
}

.section-header h2 {
  font-family: 'Lora', Georgia, serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 0.75rem;
}

.section-header p {
  font-size: 1rem;
  color: var(--secondary);
  max-width: 600px;
  margin: 0 auto;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 72rem;
  margin: 0 auto;
}

/* ===========================
   PRODUCT CARDS
   =========================== */

.product-card {
  background: #fff;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.product-image {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease, filter 0.35s ease;
  filter: contrast(1.05) saturate(1.05);
}

.product-card:hover .product-image img {
  transform: scale(1.04);
}

.product-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--primary);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 4px 8px;
  border-radius: 6px;
  z-index: 2;
}

.product-info {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-info h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 0.5rem;
}

.product-info p {
  font-size: 0.88rem;
  color: var(--secondary);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 1.25rem;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.product-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

/* ===========================
   ABOUT SECTION
   =========================== */

.about-section {
  padding: 5rem 1.5rem;
  background: var(--panel);
}

.about-inner {
  max-width: 72rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-image img {
  border-radius: 1rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  width: 100%;
  height: auto;
}

.about-content h2 {
  font-family: 'Lora', Georgia, serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 1.5rem;
}

.about-content p {
  font-size: 1rem;
  color: var(--secondary);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.about-sign {
  font-weight: 600;
  color: var(--foreground) !important;
}

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

footer {
  background: var(--panel);
  border-top: 1px solid var(--border);
  padding: 3rem 1.5rem 0;
}

.footer-inner {
  max-width: 72rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding-bottom: 2rem;
}

.footer-col h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 1rem;
}

.footer-col p {
  font-size: 0.88rem;
  color: var(--secondary);
  line-height: 1.8;
  margin-bottom: 0.75rem;
}

.footer-col a {
  color: var(--secondary);
  transition: color 0.2s;
}

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

.footer-social {
  display: inline-block;
  font-size: 0.88rem;
  color: var(--secondary);
  font-weight: 500;
}

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

.footer-bottom p {
  font-size: 0.82rem;
  color: var(--secondary);
}

/* ===========================
   FADE-IN ANIMATION
   =========================== */

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

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

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

@media (max-width: 900px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-inner {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .hero-inner {
    flex-direction: column;
    gap: 2rem;
  }

  .hero-logo {
    width: 160px;
  }

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

  .footer-inner {
    grid-template-columns: 1fr;
  }
}
