/**
 * Mindful Recycle - Main Homepage Stylesheet
 * Hobby Inventory Purchasing
 */

/* ============================================
   CSS Variables
   ============================================ */
:root {
  /* Colors */
  --color-primary: #4a7c59;
  --color-primary-dark: #3a6347;
  --color-primary-light: #5a9469;
  --color-accent: #8b6914;
  --color-text: #333333;
  --color-text-light: #555555;
  --color-bg: #ffffff;
  --color-bg-alt: #f9f9f9;
  --color-border: #e0e0e0;
  
  /* Typography */
  --font-main: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  
  /* Layout */
  --max-width: 900px;
  --nav-height: 60px;
  
  /* Transitions */
  --transition: 0.25s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-bg);
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-primary-light);
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* ============================================
   Typography
   ============================================ */
h1, h2, h3, h4 {
  font-weight: 400;
  line-height: 1.3;
  margin: 0 0 1rem 0;
}

h1 {
  font-size: 2rem;
  color: var(--color-text);
  text-align: center;
}

h2 {
  font-size: 1.5rem;
  color: var(--color-accent);
  margin-bottom: 1.25rem;
}

p {
  margin: 0 0 1rem 0;
}

/* ============================================
   Layout
   ============================================ */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 40px 0;
}

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

/* ============================================
   Navigation
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  z-index: 1000;
  transition: box-shadow var(--transition);
}

.nav.scrolled {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--color-text);
}

.nav-logo-icon {
  font-size: 28px;
  color: var(--color-primary);
}

.nav-logo-text {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  color: #8b6914;
  letter-spacing: 0.5px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  font-size: 14px;
  color: var(--color-text);
  text-decoration: none;
  transition: color var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-primary);
}

.nav-link-service {
  color: var(--color-primary);
  font-weight: 500;
}

/* Mobile Navigation */
.nav-mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-mobile-toggle span {
  width: 24px;
  height: 2px;
  background: var(--color-text);
  transition: var(--transition);
}

.nav-mobile-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-mobile-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.nav-mobile {
  display: none;
  position: absolute;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  padding: 16px 24px;
  flex-direction: column;
  gap: 16px;
}

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

.nav-mobile a {
  color: var(--color-text);
  font-size: 16px;
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
  padding: 100px 0 40px;
  margin-top: var(--nav-height);
}

.hero h1 {
  margin-bottom: 1.5rem;
}

.hero-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  color: var(--color-text-light);
  line-height: 1.8;
}

/* ============================================
   Offer List
   ============================================ */
.offer-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.offer-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.offer-list .bullet {
  color: var(--color-accent);
  font-size: 12px;
  margin-top: 6px;
}

.offer-list strong {
  color: var(--color-text);
}

/* ============================================
   Process List
   ============================================ */
.process-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.process-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.process-list .step-number {
  color: var(--color-text);
  font-weight: 500;
  min-width: 20px;
}

.process-list strong {
  color: var(--color-text);
}

/* ============================================
   CTA Section
   ============================================ */
.section-cta {
  text-align: center;
  padding: 50px 0;
}

.btn {
  display: inline-block;
  padding: 16px 32px;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  border-radius: 4px;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background-color: #4CAF50;
  color: white;
}

.btn-primary:hover {
  background-color: #45a049;
  color: white;
}

/* ============================================
   Services Section
   ============================================ */
.section-services {
  background-color: var(--color-bg-alt);
  padding: 60px 0;
}

.section-services h2 {
  text-align: center;
  color: var(--color-text);
  margin-bottom: 2rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 400px;
  margin: 0 auto;
}

.service-card {
  display: block;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 32px 24px;
  text-align: center;
  text-decoration: none;
  transition: all var(--transition);
}

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

.service-card-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.service-card h3 {
  color: var(--color-text);
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.service-card p {
  color: var(--color-text-light);
  font-size: 14px;
  margin-bottom: 16px;
}

.service-card-link {
  color: var(--color-primary);
  font-weight: 500;
  font-size: 14px;
}

/* ============================================
   Footer
   ============================================ */
.footer {
  background: #333;
  color: #fff;
  padding: 48px 0 24px;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 32px;
}

.footer-brand {
  max-width: 300px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.footer-logo-icon {
  font-size: 28px;
  color: var(--color-primary-light);
}

.footer-logo-text {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  color: #c9a962;
}

.footer-brand p {
  color: #aaa;
  font-size: 14px;
}

.footer h4 {
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

.footer ul a {
  color: #aaa;
  font-size: 14px;
}

.footer ul a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid #444;
  padding-top: 24px;
  text-align: center;
}

.footer-bottom p {
  color: #888;
  font-size: 13px;
  margin: 0;
}

/* ============================================
   Responsive - Tablet
   ============================================ */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  
  .nav-mobile-toggle {
    display: flex;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .footer-brand {
    max-width: 100%;
  }
  
  h1 {
    font-size: 1.75rem;
  }
  
  h2 {
    font-size: 1.35rem;
  }
}

/* ============================================
   Responsive - Mobile
   ============================================ */
@media (max-width: 480px) {
  .hero {
    padding: 80px 0 30px;
  }
  
  .section {
    padding: 30px 0;
  }
  
  h1 {
    font-size: 1.5rem;
  }
  
  .btn {
    padding: 14px 24px;
    font-size: 14px;
  }
}
