/* 
   Magic Mushroom Chocolate Bars - Main Stylesheet
   Created: July 2025
   Modern and responsive design with SEO optimization
*/

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=Raleway:wght@300;400;600&display=swap');

/* CSS Reset & Base Styles */
:root {
  --primary-color: #6B3E26;
  --secondary-color: #8B5A2B;
  --accent-color: #D2691E;
  --text-color: #333;
  --light-text: #fff;
  --background-color: #FEF9F3;
  --card-color: #fff;
  --border-radius: 8px;
  --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Raleway', sans-serif;
  color: var(--text-color);
  background-color: var(--background-color);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1rem;
}

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

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

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

ul {
  list-style: none;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

section {
  padding: 5rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 1rem;
  position: relative;
  padding-bottom: 1rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: var(--accent-color);
}

.section-subtitle {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
  color: var(--text-color);
  opacity: 0.8;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: var(--border-radius);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.primary-btn {
  background-color: var(--primary-color);
  color: var(--light-text);
}

.primary-btn:hover {
  background-color: var(--secondary-color);
  color: var(--light-text);
  transform: translateY(-2px);
}

.secondary-btn {
  background-color: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

.secondary-btn:hover {
  background-color: var(--primary-color);
  color: var(--light-text);
  transform: translateY(-2px);
}

/* Header & Navigation */
header {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  padding: 1rem 0;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  z-index: 100;
  transition: var(--transition);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo img {
  width: 60px;
  height: 60px;
}

.logo h1 {
  font-size: 1.5rem;
  margin-bottom: 0;
}

nav ul {
  display: flex;
  gap: 1.5rem;
}

nav ul li a {
  color: var(--primary-color);
  font-weight: 500;
  position: relative;
}

nav ul li a:hover {
  color: var(--accent-color);
}

nav ul li a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-color);
  transition: var(--transition);
}

nav ul li a:hover::after {
  width: 100%;
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  cursor: pointer;
}

.mobile-menu-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: var(--primary-color);
  border-radius: 3px;
  transition: var(--transition);
}

/* Hero Section */
.hero {
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('https://source.unsplash.com/random/1920x1080/?chocolate') no-repeat center center/cover;
  margin-top: 0;
  padding-top: 80px;
}

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

.hero-content h2 {
  font-size: 3.5rem;
  color: var(--light-text);
  margin-bottom: 1.5rem;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

/* Products Section */
.products {
  background-color: var(--background-color);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 2rem;
}

.product-card {
  background-color: var(--card-color);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  overflow: hidden;
  transition: var(--transition);
  padding-bottom: 1.5rem;
  text-align: center;
}

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

.product-image {
  height: 200px;
  background-color: var(--secondary-color);
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
}

.product-card h3 {
  margin-bottom: 0.5rem;
}

.product-card p {
  margin-bottom: 1.5rem;
  padding: 0 1rem;
  font-size: 0.9rem;
  color: #666;
}

/* About Section */
.about {
  background-color: var(--primary-color);
  color: var(--light-text);
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.about .section-title {
  color: var(--light-text);
}

.about .section-title::after {
  background-color: var(--light-text);
}

.about p {
  margin-bottom: 2rem;
}

/* Benefits Section */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.benefit-card {
  background-color: var(--card-color);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: var(--transition);
}

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

.benefit-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.benefit-card h3 {
  margin-bottom: 0.5rem;
}

.benefit-card p {
  font-size: 0.9rem;
  color: #666;
}

/* Entertainment Section */
.entertainment {
  background-color: #f5f5f5;
  padding: 4rem 0;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.game-card {
  background-color: var(--card-color);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  padding: 2rem;
  transition: var(--transition);
}

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

.game-card h3 {
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.game-links {
  margin-top: 1.5rem;
}

.game-links li {
  margin-bottom: 0.8rem;
}

.game-links a {
  display: inline-block;
  color: var(--accent-color);
  transition: var(--transition);
  font-weight: 500;
}

.game-links a:hover {
  color: var(--primary-color);
  transform: translateX(5px);
}

/* Contact Section */
.contact {
  background-color: var(--background-color);
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

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

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: var(--border-radius);
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 2px rgba(210, 105, 30, 0.2);
}

/* Footer */
footer {
  background-color: #222;
  color: #fff;
  padding: 4rem 0 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer-logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-logo img {
  margin-bottom: 1rem;
}

.footer-links h3,
.footer-contact h3 {
  color: var(--light-text);
  margin-bottom: 1.5rem;
}

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

.footer-links ul li a {
  color: #ccc;
  transition: var(--transition);
}

.footer-links ul li a:hover {
  color: var(--light-text);
}

.footer-contact p {
  color: #ccc;
  margin-bottom: 0.8rem;
}

.social-icons {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: #333;
  border-radius: 50%;
  color: var(--light-text);
  transition: var(--transition);
}

.social-icons a:hover {
  background-color: var(--accent-color);
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid #333;
  color: #999;
}

.footer-policy-link {
  color: #ccc;
  margin: 0 0.5rem;
  font-size: 0.9rem;
}

/* Responsive Design */
@media screen and (max-width: 992px) {
  html {
    font-size: 15px;
  }
  
  .hero-content h2 {
    font-size: 3rem;
  }
  
  .section {
    padding: 4rem 0;
  }
}

@media screen and (max-width: 768px) {
  html {
    font-size: 14px;
  }
  
  nav ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    flex-direction: column;
    background-color: #fff;
    text-align: center;
    padding: 1rem 0;
    box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
  }
  
  nav ul.show {
    display: flex;
  }
  
  nav ul li {
    margin: 1rem 0;
  }
  
  .mobile-menu-toggle {
    display: flex;
  }
  
  .hero-content h2 {
    font-size: 2.5rem;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .footer-logo {
    align-items: center;
  }
  
  .social-icons {
    justify-content: center;
  }
}

@media screen and (max-width: 576px) {
  .container {
    width: 95%;
  }
  
  .hero-content h2 {
    font-size: 2rem;
  }
  
  .product-grid, .benefits-grid, .game-grid {
    grid-template-columns: 1fr;
  }
  
  .section {
    padding: 3rem 0;
  }
  
  .logo h1 {
    font-size: 1.2rem;
  }
}
