/* The Yarn Remedy - Custom Styles */
:root {
  --primary-green: #2D5016;
  --dark-green: #1a2f0d;
  --light-green: #4a7226;
  --cream: #F8F6F0;
  --soft-pink: #E8D5D1;
  --warm-beige: #E6DDD4;
  --text-dark: #2c2c2c;
  --text-light: #6b6b6b;
  --white: #ffffff;
  
  --font-script: 'Dancing Script', cursive;
  --font-sans: 'Inter', sans-serif;
  
  --shadow-soft: 0 4px 20px rgba(45, 80, 22, 0.1);
  --shadow-medium: 0 8px 30px rgba(45, 80, 22, 0.15);
  --shadow-strong: 0 12px 40px rgba(45, 80, 22, 0.2);
  
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--cream);
}

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

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(248, 246, 240, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  transition: var(--transition);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo {
  height: 50px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-link {
  text-decoration: none;
  color: var(--primary-green);
  font-weight: 500;
  font-size: 16px;
  transition: var(--transition);
  position: relative;
}

.nav-link:hover {
  color: var(--light-green);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--light-green);
  transition: var(--transition);
}

.nav-link:hover::after {
  width: 100%;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--cream) 0%, var(--warm-beige) 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="yarn" patternUnits="userSpaceOnUse" width="20" height="20"><circle cx="10" cy="10" r="1" fill="%23E8D5D1" opacity="0.3"/></pattern></defs><rect width="100" height="100" fill="url(%23yarn)"/></svg>') repeat;
  opacity: 0.5;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding-top: 80px;
  position: relative;
  z-index: 2;
  text-align: center;
}

.hero-logo-section {
  margin-top: 60px;
  margin-bottom: 40px;
}

.hero-logo {
  height: 200px;
  width: auto;
  max-width: 100%;
  filter: drop-shadow(0 10px 30px rgba(45, 80, 22, 0.15));
}

.hero-text {
  max-width: 700px;
  margin-bottom: 40px;
}

.hero-title {
  font-family: var(--font-script);
  font-size: clamp(3rem, 5vw, 4.5rem);
  color: var(--primary-green);
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: 600;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-light);
  margin-bottom: 40px;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn-primary,
.btn-secondary {
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
}

.btn-primary {
  background: var(--primary-green);
  color: var(--white);
  box-shadow: var(--shadow-medium);
}

.btn-primary:hover {
  background: var(--dark-green);
  transform: translateY(-2px);
  box-shadow: var(--shadow-strong);
}

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

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


/* Sections */
.about-section,
.community-section,
.connect-section {
  padding: 100px 0;
}

.section-title {
  font-family: var(--font-script);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  color: var(--primary-green);
  margin-bottom: 30px;
  line-height: 1.2;
  font-weight: 600;
}

.section-title.centered {
  text-align: center;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-light);
  text-align: center;
  max-width: 600px;
  margin: 0 auto 60px;
  line-height: 1.6;
}

/* About Section */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-description {
  font-size: 1.125rem;
  color: var(--text-light);
  margin-bottom: 40px;
  line-height: 1.7;
}

.features {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.feature {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.feature-icon {
  font-size: 2rem;
  min-width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-green);
  border-radius: 50%;
  color: var(--white);
}

.feature h3 {
  color: var(--primary-green);
  font-size: 1.25rem;
  margin-bottom: 8px;
  font-weight: 600;
}

.feature p {
  color: var(--text-light);
  line-height: 1.6;
}

.feature-img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: var(--shadow-medium);
}


/* Connect Section */
.connect-section {
  background: linear-gradient(135deg, var(--primary-green) 0%, var(--dark-green) 100%);
  color: var(--white);
}

.connect-section .section-title {
  color: var(--white);
}

.connect-subtitle {
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
  font-size: 1.125rem;
  margin-bottom: 50px;
  line-height: 1.6;
}

.social-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 60px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px 25px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  text-decoration: none;
  color: var(--white);
  transition: var(--transition);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-link:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.social-link svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.social-link span {
  font-weight: 500;
  font-size: 16px;
}

.store-info {
  text-align: center;
  background: rgba(255, 255, 255, 0.1);
  padding: 40px;
  border-radius: 20px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.store-info h3 {
  font-family: var(--font-script);
  font-size: 2rem;
  margin-bottom: 20px;
  color: var(--white);
}

.store-info p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.125rem;
  margin-bottom: 10px;
}

/* Footer */
.footer {
  background: var(--dark-green);
  padding: 40px 0;
  text-align: center;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.footer-logo {
  height: 40px;
  width: auto;
  filter: brightness(0) invert(1);
}

.footer p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  
  .hero-logo {
    height: 150px;
  }
  
  .hero-logo-section {
    margin-top: 40px;
  }
  
  .hero-text {
    margin-bottom: 30px;
  }
  
  .about-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .features {
    margin-top: 20px;
  }
  
  .feature {
    text-align: center;
    flex-direction: column;
    gap: 15px;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .social-links {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }
  
  .nav-container {
    padding: 0 15px;
  }
  
  .hero-logo {
    height: 120px;
  }
  
  .hero-logo-section {
    margin-top: 30px;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .btn-primary,
  .btn-secondary {
    width: 100%;
    max-width: 280px;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .yarn-decoration {
    animation: none;
  }
}

/* Focus styles for keyboard navigation */
.nav-link:focus,
.btn-primary:focus,
.btn-secondary:focus,
.social-link:focus {
  outline: 2px solid var(--light-green);
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --primary-green: #1a2f0d;
    --text-light: #333333;
  }
}