/* Main Styles - Origen Kombucha */

/* CSS Reset & Variables */
:root {
  /* Colors - Monochromatic Palette */
  --color-black: #000000;
  --color-white: #FFFFFF;
  --color-gray-50: #FAFAFA;
  --color-gray-100: #F5F5F0;
  --color-gray-200: #E5E5E5;
  --color-gray-300: #D4D4D4;
  --color-gray-400: #A3A3A3;
  --color-gray-600: #525252;
  --color-gray-800: #333333;
  --color-gray-900: #1A1A1A;
  
  /* Semantic Colors */
  --color-text: var(--color-gray-900);
  --color-text-muted: var(--color-gray-600);
  --color-background: var(--color-white);
  --color-background-alt: var(--color-gray-100);
  --color-border: var(--color-gray-200);
  
  /* Spacing Scale */
  --space-1: 0.25rem;   /* 4px */
  --space-2: 0.5rem;    /* 8px */
  --space-3: 0.75rem;   /* 12px */
  --space-4: 1rem;      /* 16px */
  --space-6: 1.5rem;    /* 24px */
  --space-8: 2rem;      /* 32px */
  --space-12: 3rem;     /* 48px */
  --space-16: 4rem;     /* 64px */
  --space-24: 6rem;     /* 96px */
  --space-32: 8rem;     /* 128px */
  
  /* Layout */
  --container-max: 1440px;
  --container-padding: var(--space-6);
  
  /* Breakpoints */
  --breakpoint-sm: 480px;
  --breakpoint-md: 768px;
  --breakpoint-lg: 1024px;
  --breakpoint-xl: 1440px;
  
  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  color: var(--color-text);
  background-color: var(--color-background);
  overflow-x: hidden;
}

body.modal-open {
  overflow: hidden;
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* Container */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

@media (min-width: 768px) {
  :root {
    --container-padding: var(--space-12);
  }
}

/* Header & Navigation */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background-color: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  transition: transform var(--transition-base);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-6) 0;
}

.nav-logo {
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  font-weight: 400;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
}

.nav-menu {
  display: none;
  list-style: none;
  gap: var(--space-8);
}

.nav-menu a {
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  transition: opacity var(--transition-base);
}

.nav-menu a:hover {
  opacity: 0.6;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  padding: var(--space-2);
}

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

/* Mobile Menu */
@media (max-width: 767px) {
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background-color: var(--color-white);
    display: flex;
    flex-direction: column;
    padding: var(--space-24) var(--space-6);
    gap: var(--space-6);
    box-shadow: var(--shadow-xl);
    transition: right var(--transition-base);
    z-index: 1000;
  }
  
  .nav-menu.active {
    right: 0;
  }
  
  body.menu-open {
    overflow: hidden;
  }
  
  body.menu-open::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
  }
}

@media (min-width: 768px) {
  .nav-menu {
    display: flex;
  }
  
  .nav-toggle {
    display: none;
  }
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: var(--space-24) 0;
  margin-top: 80px;
  overflow: hidden;
}

.hero-content {
  text-align: center;
  max-width: 800px;
  z-index: 2;
  position: relative;
}

.hero-image {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  object-fit: cover;
  opacity: 0.15;
  z-index: 1;
}

.hero-title {
  margin-bottom: var(--space-6);
}

.hero-subtitle {
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  font-style: italic;
  margin-bottom: var(--space-4);
  color: var(--color-text-muted);
}

.hero-tagline {
  font-size: var(--text-base);
  margin-bottom: var(--space-8);
  line-height: var(--leading-relaxed);
}

/* Button */
.btn {
  display: inline-block;
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  border: 2px solid var(--color-black);
  background-color: var(--color-black);
  color: var(--color-white);
  transition: all var(--transition-base);
  cursor: pointer;
}

.btn:hover {
  background-color: var(--color-white);
  color: var(--color-black);
  opacity: 1;
}

.btn-outline {
  background-color: transparent;
  color: var(--color-black);
}

.btn-outline:hover {
  background-color: var(--color-black);
  color: var(--color-white);
}

/* Section */
section {
  padding: var(--space-24) 0;
}

@media (min-width: 768px) {
  section {
    padding: var(--space-32) 0;
  }
}

.section-title {
  text-align: center;
  margin-bottom: var(--space-16);
}

/* Story Section */
.story-grid {
  display: grid;
  gap: var(--space-12);
  align-items: center;
}

@media (min-width: 768px) {
  .story-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-24);
  }
}

.story-content h2 {
  margin-bottom: var(--space-6);
}

.story-image {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Flavours Section */
.flavours {
  position: relative;
  overflow: hidden;
}

.flavours-bg-image {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  object-fit: cover;
  opacity: 0.08;
  z-index: 1;
  pointer-events: none;
}

.flavours .container {
  position: relative;
  z-index: 2;
}

.flavours-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
}

@media (min-width: 480px) {
  .flavours-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .flavours-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .flavours-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.flavour-card {
  position: relative;
  cursor: pointer;
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: all var(--transition-base);
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-white);
}

.flavour-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.flavour-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.flavour-badge {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  padding: var(--space-2) var(--space-3);
  background-color: var(--color-black);
  color: var(--color-white);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: var(--space-6);
  backdrop-filter: blur(4px);
}

.modal.active {
  display: flex;
}

.modal-content {
  position: relative;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow: auto;
  background-color: var(--color-white);
  padding: var(--space-12);
  border-radius: 4px;
  box-shadow: var(--shadow-xl);
}

.modal-close {
  position: absolute;
  top: var(--space-6);
  right: var(--space-6);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-white);
  border: 2px solid var(--color-black);
  font-size: var(--text-2xl);
  line-height: 1;
  cursor: pointer;
  z-index: 1;
  transition: all var(--transition-base);
}

.modal-close:hover {
  background-color: var(--color-black);
  color: var(--color-white);
}

.modal-title {
  font-family: var(--font-serif);
  font-size: var(--text-3xl);
  font-weight: 400;
  margin-bottom: var(--space-6);
  padding-right: var(--space-12);
  letter-spacing: var(--tracking-wide);
}

.modal-phrase {
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  font-style: italic;
  color: var(--color-gray-600);
  margin-bottom: var(--space-8);
  line-height: 1.6;
}

.modal-ingredients {
  border-top: 2px solid var(--color-gray-200);
  padding-top: var(--space-6);
}

.modal-ingredients h4 {
  font-size: var(--text-base);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  margin-bottom: var(--space-4);
}

.modal-ingredients-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--space-3);
}

.modal-ingredients-list li {
  padding: var(--space-3) var(--space-4);
  background-color: var(--color-gray-100);
  border-left: 3px solid var(--color-black);
  font-size: var(--text-sm);
}

@media (max-width: 767px) {
  .modal-content {
    padding: var(--space-8);
  }
  
  .modal-title {
    font-size: var(--text-2xl);
  }
  
  .modal-phrase {
    font-size: var(--text-base);
  }
}

/* Process Section */
.process-steps {
  display: grid;
  gap: var(--space-12);
}

@media (min-width: 768px) {
  .process-steps {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-8);
  }
}

.process-step {
  text-align: center;
}

.process-icon {
  font-size: var(--text-5xl);
  margin-bottom: var(--space-6);
}

.process-step h3 {
  margin-bottom: var(--space-4);
  font-size: var(--text-xl);
}

/* Benefits Section */
.benefits {
  position: relative;
  overflow: hidden;
}

.benefits-bg-image {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  object-fit: cover;
  opacity: 0.08;
  z-index: 1;
  pointer-events: none;
}

.benefits .container {
  position: relative;
  z-index: 2;
}

.benefits-grid {
  display: grid;
  gap: var(--space-6);
}

@media (min-width: 768px) {
  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-8) var(--space-12);
  }
}

.benefit-item {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
}

.benefit-icon {
  font-size: var(--text-2xl);
  flex-shrink: 0;
}

.benefit-text h4 {
  margin-bottom: var(--space-2);
  font-size: var(--text-lg);
}

/* Workshop Section */
.workshop-grid {
  display: grid;
  gap: var(--space-12);
  align-items: center;
}

@media (min-width: 768px) {
  .workshop-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-24);
  }
}

.workshop-content h2 {
  margin-bottom: var(--space-6);
}

.workshop-location {
  display: inline-block;
  padding: var(--space-2) var(--space-4);
  background-color: var(--color-gray-100);
  margin-bottom: var(--space-4);
  font-size: var(--text-sm);
}

.workshop-schedule {
  font-style: italic;
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
}

.workshop-image {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Contact Section */
.contact-content {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-top: var(--space-8);
  align-items: center;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-lg);
  transition: opacity var(--transition-base);
}

.contact-link:hover {
  opacity: 0.6;
}

.contact-icon {
  font-size: var(--text-2xl);
}

/* Footer */
.footer {
  background-color: var(--color-gray-900);
  color: var(--color-white);
  padding: var(--space-12) 0;
  text-align: center;
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  align-items: center;
}

@media (min-width: 768px) {
  .footer-content {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-links {
  display: flex;
  gap: var(--space-6);
  list-style: none;
}

.footer-copyright {
  font-size: var(--text-sm);
  color: var(--color-gray-400);
}
