/* Global Styles */
:root {
  --color-primary: #6366F1;
  --color-secondary: #86EFAC;
  --color-accent: #F59E0B;
  --color-gray: #374151;
  --color-white: #FEFEFE;
  --color-light-gray: #F9FAFB;
  --color-border: #E5E7EB;
  --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --spacing-unit: 8px;
  --border-radius: 8px;
  --box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

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

body {
  font-family: var(--font-primary);
  line-height: 1.5;
  color: var(--color-gray);
  background-color: var(--color-white);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 calc(var(--spacing-unit) * 3);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  line-height: 1.2;
  color: var(--color-gray);
  font-weight: 600;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p { 
  font-size: 1rem;
  margin-bottom: calc(var(--spacing-unit) * 2);
  color: var(--color-gray);
}

/* Header */
.header {
  background-color: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  padding: calc(var(--spacing-unit) * 2) 0;
}

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

.logo-container {
  display: flex;
  align-items: center;
  gap: calc(var(--spacing-unit) * 2);
}

.logo-container a {
  display: flex;
  align-items: center;
  gap: calc(var(--spacing-unit) * 2);
  text-decoration: none;
}

.brand-name {
  color: var(--color-gray);
  font-size: 1.5rem;
  font-weight: 600;
}

.brand-name.small {
  font-size: 1rem;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--color-light-gray) 0%, var(--color-white) 100%);
  padding: calc(var(--spacing-unit) * 12) 0 calc(var(--spacing-unit) * 8) 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: calc(var(--spacing-unit) * 8);
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-text {
  text-align: left;
}

.hero h2 {
  font-size: 2.5rem;
  margin-bottom: calc(var(--spacing-unit) * 3);
  color: var(--color-gray);
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: calc(var(--spacing-unit) * 6);
  color: var(--color-gray);
}

.hero-features {
  display: flex;
  flex-direction: column;
  gap: calc(var(--spacing-unit) * 2);
}

.hero-feature {
  display: flex;
  align-items: center;
  gap: calc(var(--spacing-unit) * 2);
  font-weight: 500;
  color: var(--color-gray);
}

.hero-feature-icon {
  flex-shrink: 0;
}

.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-img {
  width: 100%;
  max-width: 500px;
  height: 400px;
  object-fit: cover;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

/* Features Section */
.features {
  padding: calc(var(--spacing-unit) * 10) 0;
  background-color: var(--color-white);
  text-align: center;
}

.features h3 {
  margin-bottom: calc(var(--spacing-unit) * 8);
  font-size: 2.5rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: calc(var(--spacing-unit) * 4);
}

.feature-card {
  background-color: var(--color-white);
  padding: calc(var(--spacing-unit) * 4);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  border: 1px solid var(--color-border);
}

.feature-icon {
  margin-bottom: calc(var(--spacing-unit) * 3);
}

.feature-card h4 {
  margin-bottom: calc(var(--spacing-unit) * 2);
  color: var(--color-gray);
}

.feature-card p {
  margin-bottom: 0;
  color: var(--color-gray);
}

/* Section Content */
.stain-triage, .fabric-care {
  padding: calc(var(--spacing-unit) * 10) 0;
  text-align: center;
}

.stain-triage {
  background-color: var(--color-light-gray);
}

.section-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: calc(var(--spacing-unit) * 8);
  align-items: center;
}

.section-content.reverse {
  direction: rtl;
}

.section-content.reverse > * {
  direction: ltr;
}

.text-content h3 {
  margin-bottom: calc(var(--spacing-unit) * 3);
  color: var(--color-gray);
}

.text-content p {
  margin-bottom: calc(var(--spacing-unit) * 4);
}

.feature-list {
  list-style: none;
  padding: 0;
}

.feature-list li {
  padding: calc(var(--spacing-unit) * 1) 0;
  position: relative;
  padding-left: calc(var(--spacing-unit) * 3);
}

.feature-list li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-secondary);
  font-weight: bold;
}

.section-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.section-img {
  width: 100%;
  max-width: 450px;
  height: 350px;
  object-fit: cover;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

/* Eco Solutions */
.eco-solutions {
  padding: calc(var(--spacing-unit) * 10) 0;
  background-color: var(--color-white);
  text-align: center;
}

.eco-solutions h3 {
  margin-bottom: calc(var(--spacing-unit) * 2);
}

.section-subtitle {
  font-size: 1.125rem;
  margin-bottom: calc(var(--spacing-unit) * 8);
  color: var(--color-gray);
}

.eco-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: calc(var(--spacing-unit) * 4);
}

.eco-card {
  background-color: var(--color-white);
  padding: calc(var(--spacing-unit) * 4);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  border: 1px solid var(--color-border);
}

.eco-icon {
  margin-bottom: calc(var(--spacing-unit) * 3);
}

.eco-card h4 {
  margin-bottom: calc(var(--spacing-unit) * 2);
}

.eco-card p {
  margin-bottom: 0;
}

/* Products Section */
.products {
  padding: calc(var(--spacing-unit) * 10) 0;
  background-color: var(--color-light-gray);
  text-align: center;
}

.products h3 {
  margin-bottom: calc(var(--spacing-unit) * 2);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: calc(var(--spacing-unit) * 4);
  margin-top: calc(var(--spacing-unit) * 8);
}

.product-card {
  background-color: var(--color-white);
  border-radius: var(--border-radius);
  padding: calc(var(--spacing-unit) * 3);
  box-shadow: var(--box-shadow);
  border: 1px solid var(--color-border);
  text-align: center;
}

.product-image {
  margin-bottom: calc(var(--spacing-unit) * 3);
}

.product-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--border-radius);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.product-card h4 {
  margin-bottom: calc(var(--spacing-unit) * 2);
}

.product-card p {
  margin-bottom: calc(var(--spacing-unit) * 3);
}

.product-price {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: calc(var(--spacing-unit) * 3);
}

/* Buttons */
.btn-primary {
  background-color: var(--color-primary);
  color: white;
  border: none;
  padding: calc(var(--spacing-unit) * 1.5) calc(var(--spacing-unit) * 4);
  border-radius: var(--border-radius);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  font-family: var(--font-primary);
}

.btn-primary:hover {
  background-color: #5856EB;
}

/* How It Works */
.how-it-works {
  padding: calc(var(--spacing-unit) * 10) 0;
  background-color: var(--color-white);
  text-align: center;
}

.how-it-works h3 {
  margin-bottom: calc(var(--spacing-unit) * 8);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: calc(var(--spacing-unit) * 4);
}

.step {
  padding: calc(var(--spacing-unit) * 3);
}

.step-number {
  width: 60px;
  height: 60px;
  background-color: var(--color-primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 auto calc(var(--spacing-unit) * 3) auto;
}

.step h4 {
  margin-bottom: calc(var(--spacing-unit) * 2);
}

.step p {
  margin-bottom: 0;
}

/* Contacts Section */
.contacts {
  padding: calc(var(--spacing-unit) * 10) 0;
  background-color: var(--color-light-gray);
  text-align: center;
}

.contacts h3 {
  margin-bottom: calc(var(--spacing-unit) * 8);
}

.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: calc(var(--spacing-unit) * 4);
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: calc(var(--spacing-unit) * 3);
  background-color: var(--color-white);
  padding: calc(var(--spacing-unit) * 4);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.contact-details h4 {
  margin-bottom: calc(var(--spacing-unit) * 1);
  color: var(--color-gray);
}

.contact-details p {
  margin-bottom: 0;
  color: var(--color-gray);
}

/* Footer */
.footer {
  background-color: var(--color-gray);
  color: white;
  padding: calc(var(--spacing-unit) * 8) 0 calc(var(--spacing-unit) * 4) 0;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: calc(var(--spacing-unit) * 8);
  margin-bottom: calc(var(--spacing-unit) * 6);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: calc(var(--spacing-unit) * 2);
}

.footer-links-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: calc(var(--spacing-unit) * 4);
}

.footer-section h5 {
  color: white;
  margin-bottom: calc(var(--spacing-unit) * 3);
}

.footer-brand p {
  color: #D1D5DB;
  margin-bottom: 0;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: calc(var(--spacing-unit) * 1);
}

.footer-links a {
  color: #D1D5DB;
  text-decoration: none;
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid #4B5563;
  padding-top: calc(var(--spacing-unit) * 4);
  text-align: center;
}

.footer-bottom p {
  color: #9CA3AF;
  margin-bottom: 0;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
  background-color: var(--color-white);
  margin: 5% auto;
  padding: calc(var(--spacing-unit) * 4);
  border: none;
  border-radius: var(--border-radius);
  width: 90%;
  max-width: 500px;
  position: relative;
}

.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  position: absolute;
  right: calc(var(--spacing-unit) * 2);
  top: calc(var(--spacing-unit) * 2);
  cursor: pointer;
}

.close:hover {
  color: var(--color-gray);
}

.form-group {
  margin-bottom: calc(var(--spacing-unit) * 3);
}

.form-group label {
  display: block;
  margin-bottom: calc(var(--spacing-unit) * 1);
  font-weight: 500;
  color: var(--color-gray);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: calc(var(--spacing-unit) * 1.5);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  font-size: 1rem;
  font-family: var(--font-primary);
}

.form-group textarea {
  height: 100px;
  resize: vertical;
}

/* Cookie Banner Styles */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--color-white);
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  padding: calc(var(--spacing-unit) * 3);
  display: none;
  max-height: 80vh;
  overflow-y: auto;
}

.cookie-banner.show {
  display: block;
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: calc(var(--spacing-unit) * 4);
  align-items: start;
}

.cookie-text h4 {
  margin: 0 0 calc(var(--spacing-unit) * 1) 0;
  color: var(--color-gray);
  font-size: 1.125rem;
}

.cookie-text p {
  margin: 0;
  color: var(--color-gray);
  font-size: 0.9rem;
  line-height: 1.4;
}

.cookie-actions {
  display: flex;
  align-items: center;
  gap: calc(var(--spacing-unit) * 1.5);
  flex-shrink: 0;
  flex-wrap: wrap;
}

.cookie-btn {
  padding: calc(var(--spacing-unit) * 1) calc(var(--spacing-unit) * 3);
  border: none;
  border-radius: var(--border-radius);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  font-family: var(--font-primary);
  transition: background-color 0.2s;
  white-space: nowrap;
}

.cookie-btn.accept {
  background-color: var(--color-primary);
  color: white;
}

.cookie-btn.accept:hover {
  background-color: #5856EB;
}

.cookie-btn.reject {
  background-color: var(--color-light-gray);
  color: var(--color-gray);
  border: 1px solid var(--color-border);
}

.cookie-btn.reject:hover {
  background-color: var(--color-border);
}

.cookie-btn.customize {
  background-color: var(--color-secondary);
  color: var(--color-gray);
  border: 1px solid var(--color-secondary);
}

.cookie-btn.customize:hover {
  background-color: #6EE7B7;
}

.cookie-link {
  color: var(--color-primary);
  text-decoration: none;
  font-size: 0.9rem;
  white-space: nowrap;
}

.cookie-link:hover {
  text-decoration: underline;
}

/* Cookie Customization */
.cookie-customization {
  margin-top: calc(var(--spacing-unit) * 3);
  padding-top: calc(var(--spacing-unit) * 3);
  border-top: 1px solid var(--color-border);
}

.cookie-categories {
  display: grid;
  gap: calc(var(--spacing-unit) * 2);
  margin-bottom: calc(var(--spacing-unit) * 3);
}

.cookie-category {
  padding: calc(var(--spacing-unit) * 2);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  background-color: var(--color-light-gray);
}

.cookie-checkbox {
  display: flex;
  align-items: flex-start;
  gap: calc(var(--spacing-unit) * 2);
  cursor: pointer;
  margin: 0;
}

.cookie-checkbox input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.checkmark {
  width: 20px;
  height: 20px;
  background-color: var(--color-white);
  border: 2px solid var(--color-border);
  border-radius: 4px;
  position: relative;
  flex-shrink: 0;
  margin-top: 2px;
}

.cookie-checkbox input:checked ~ .checkmark {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
}

.cookie-checkbox input:checked ~ .checkmark:after {
  content: "";
  position: absolute;
  left: 6px;
  top: 2px;
  width: 6px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.cookie-checkbox input:disabled ~ .checkmark {
  background-color: #E5E7EB;
  border-color: #D1D5DB;
  cursor: not-allowed;
}

.cookie-category-info strong {
  display: block;
  margin-bottom: calc(var(--spacing-unit) * 0.5);
  color: var(--color-gray);
  font-size: 0.95rem;
}

.cookie-category-info p {
  margin: 0;
  font-size: 0.85rem;
  color: #6B7280;
  line-height: 1.4;
}

.cookie-custom-actions {
  display: flex;
  gap: calc(var(--spacing-unit) * 2);
  justify-content: flex-end;
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 0 calc(var(--spacing-unit) * 2);
  }
  
  .hero-grid {
    grid-template-columns: 1fr;
    gap: calc(var(--spacing-unit) * 4);
    text-align: center;
  }
  
  .hero-text {
    text-align: center;
  }
  
  .hero h2 {
    font-size: 2rem;
  }
  
  .hero-img {
    height: 300px;
  }
  
  .section-content {
    grid-template-columns: 1fr;
    gap: calc(var(--spacing-unit) * 4);
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: calc(var(--spacing-unit) * 4);
  }
  
  .footer-links-grid {
    grid-template-columns: 1fr;
    gap: calc(var(--spacing-unit) * 3);
  }
  
  .features-grid,
  .eco-grid,
  .products-grid,
  .steps-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-info {
    grid-template-columns: 1fr;
  }
  
  .cookie-content {
    grid-template-columns: 1fr;
    gap: calc(var(--spacing-unit) * 2);
  }
  
  .cookie-actions {
    justify-content: flex-start;
  }
  
  .cookie-custom-actions {
    justify-content: flex-start;
  }
}