/* =============================================
   AllergenWise v2 - Main Stylesheet
   ============================================= */

/* CSS Variables */
:root {
  /* Brand Colors */
  --color-teal: #008080;
  --color-teal-light: #20B2AA;
  --color-teal-dark: #006666;
  --color-teal-pale: #E8F6F6;
  
  /* Provided Palette */
  --color-lavender: #F5E4F4;
  --color-mint: #C8E7E5;
  --color-peach: #F5C7AF;
  --color-sand: #D5BC9D;
  --color-slate: #758495;
  --color-deep-slate: #4A526E;
  
  /* Neutrals */
  --color-white: #ffffff;
  --color-bg: #fafbfc;
  --color-text: #1a1a2e;
  --color-text-muted: #5a5a7a;
  
  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  --space-3xl: 5rem;
  
  /* Typography */
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  
  /* Effects */
  --shadow-sm: 0 2px 8px rgba(0, 128, 128, 0.08);
  --shadow-md: 0 4px 20px rgba(0, 128, 128, 0.12);
  --shadow-lg: 0 8px 40px rgba(0, 128, 128, 0.15);
  --shadow-xl: 0 20px 60px rgba(0, 128, 128, 0.2);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 30px;
  --radius-full: 9999px;
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
}

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

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

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

a:hover {
  color: var(--color-teal-dark);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* =============================================
   Header
   ============================================= */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-md);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 90px;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  text-decoration: none;
}

.logo__img {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  object-fit: contain;
}

.logo__text {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-teal-dark);
}

/* Navigation */
.nav {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.nav__link {
  color: var(--color-text);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-teal);
  transition: width var(--transition-base);
}

.nav__link:hover::after,
.nav__link.active::after {
  width: 100%;
}

.nav__link:hover {
  color: var(--color-teal);
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 30px;
  height: 30px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.mobile-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-teal);
  transition: all var(--transition-base);
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-white);
  z-index: 999;
  padding: var(--space-2xl) var(--space-md);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
}

.mobile-menu.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu__nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
  margin-top: var(--space-2xl);
}

.mobile-menu__link {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-text);
}

.mobile-menu .btn {
  margin-top: var(--space-md);
}

/* =============================================
   Buttons
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: 0.875rem 1.75rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-base);
}

.btn--primary {
  background: var(--color-teal);
  color: var(--color-white);
  border-color: var(--color-teal);
}

.btn--primary:hover {
  background: var(--color-teal-dark);
  border-color: var(--color-teal-dark);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

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

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

.btn--white {
  background: var(--color-white);
  color: var(--color-teal);
  border-color: var(--color-white);
}

.btn--white:hover {
  background: var(--color-lavender);
  border-color: var(--color-lavender);
  color: var(--color-teal-dark);
}

.btn--lg {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
}

.btn--block {
  width: 100%;
}

/* =============================================
   Hero Section
   ============================================= */
.hero {
  position: relative;
  min-height: 100vh;
  padding: calc(90px + var(--space-3xl)) 0 var(--space-3xl);
  background: linear-gradient(135deg, var(--color-bg) 0%, var(--color-mint) 50%, var(--color-lavender) 100%);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
}

.hero__shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.4;
  animation: float 20s infinite ease-in-out;
}

.hero__shape--1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--color-teal-pale) 0%, transparent 70%);
  top: -200px;
  right: -100px;
  animation-delay: 0s;
}

.hero__shape--2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--color-lavender) 0%, transparent 70%);
  bottom: -100px;
  left: -100px;
  animation-delay: -5s;
}

.hero__shape--3 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, var(--color-mint) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: -10s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(20px, -20px) rotate(5deg); }
  50% { transform: translate(-10px, 20px) rotate(-5deg); }
  75% { transform: translate(-20px, -10px) rotate(3deg); }
}

.hero__content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.hero__badge {
  display: inline-block;
  padding: var(--space-xs) var(--space-md);
  background: var(--color-white);
  color: var(--color-teal);
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-md);
  box-shadow: var(--shadow-sm);
}

.hero__title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: var(--space-md);
  color: var(--color-deep-slate);
}

.hero__title .text-teal {
  color: var(--color-teal);
  position: relative;
}

.hero__desc {
  font-size: 1.25rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-lg);
  max-width: 500px;
}

.hero__actions {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
}

.hero__stats {
  display: flex;
  gap: var(--space-xl);
}

.stat {
  text-align: center;
}

.stat__number {
  display: block;
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-teal);
}

.stat__label {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.hero__visual {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.hero__card {
  background: var(--color-white);
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  max-width: 320px;
  animation: slideUp 0.8s ease forwards;
  opacity: 0;
}

.hero__card--2 {
  align-self: flex-end;
  animation-delay: 0.2s;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero__card-icon {
  width: 50px;
  height: 50px;
  background: var(--color-teal-pale);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-sm);
}

.hero__card-icon svg {
  width: 28px;
  height: 28px;
  color: var(--color-teal);
}

.hero__card h3 {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: var(--space-xs);
  color: var(--color-deep-slate);
}

.hero__card p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin: 0;
}

/* =============================================
   Sections
   ============================================= */
.section {
  padding: var(--space-3xl) 0;
}

.section--alt {
  background: linear-gradient(180deg, var(--color-white) 0%, var(--color-mint) 100%);
}

.section--teal {
  background: linear-gradient(135deg, var(--color-teal-dark) 0%, var(--color-teal) 100%);
  color: var(--color-white);
}

.section--teal .section__title,
.section--teal .section__desc {
  color: var(--color-white);
}

.section__header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--space-2xl);
}

.section__subtitle {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-teal);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: var(--space-sm);
}

.section__title {
  font-size: 2.5rem;
  color: var(--color-deep-slate);
  margin-bottom: var(--space-sm);
}

.section__desc {
  font-size: 1.125rem;
  color: var(--color-text-muted);
}

/* =============================================
   Features
   ============================================= */
.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}

.feature-card {
  background: var(--color-white);
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.feature-card__icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
}

.feature-card__icon svg {
  width: 28px;
  height: 28px;
}

.feature-card h3 {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
  color: var(--color-deep-slate);
}

.feature-card p {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin: 0;
}

/* =============================================
   Allergen Wheel
   ============================================= */
.allergen-wheel {
  position: relative;
  width: 500px;
  height: 500px;
  margin: 0 auto var(--space-xl);
}

.allergen-wheel__center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 140px;
  height: 140px;
  background: var(--color-teal);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: var(--shadow-xl);
  z-index: 10;
  padding: 10px;
}

.allergen-wheel__title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-white);
}

.allergen-wheel__subtitle {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.allergen-item {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: all var(--transition-base);
}

/* keep scale, but only on the circle, so position doesn’t change */
.allergen-item:hover {
  z-index: 20;
}

.allergen-item__circle {
  width: 70px;
  height: 70px;
  background: var(--color-white);
  border: 3px solid var(--color-teal);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
}

.allergen-item:hover .allergen-item__circle,
.allergen-item.active .allergen-item__circle {
  background: var(--color-teal);
  transform: scale(1.1);
}

.allergen-item__num {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-teal);
  transition: color var(--transition-base);
}

.allergen-item:hover .allergen-item__num,
.allergen-item.active .allergen-item__num {
  color: var(--color-white);
}

.allergen-item__label {
  margin-top: var(--space-xs);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-deep-slate);
  text-align: center;
}

.allergen-item__info {
  position: absolute;
  top: 50%;
  left: calc(100% + 20px);
  transform: translateY(-50%);
  background: var(--color-white);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  width: 200px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
  z-index: 100;
}

.allergen-item:hover .allergen-item__info,
.allergen-item.active .allergen-item__info {
  opacity: 1;
  visibility: visible;
}

.allergen-item__info strong {
  display: block;
  color: var(--color-teal);
  margin-bottom: 4px;
}

.allergen-item__info span {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

/* Positioning the 10 allergens in a circle – Firefox‑safe */
.allergen-item--1  { top: 0;    left: 50%; transform: translateX(-50%); }
.allergen-item--2  { top: 11%;  right: 11%; }
.allergen-item--3  { top: 38%;  right: 4%; }
.allergen-item--4  { bottom: 38%; right: 4%; }
.allergen-item--5  { bottom: 11%; right: 11%; }
.allergen-item--6  { bottom: 0; left: 50%; transform: translateX(-50%); }
.allergen-item--7  { bottom: 11%; left: 11%; }
.allergen-item--8  { bottom: 38%; left: 4%; }
.allergen-item--9  { top: 38%; left: 4%; }
.allergen-item--10 { top: 11%; left: 11%; }

/* remove transform from hover so we don’t override positions */
.allergen-item--1:hover,
.allergen-item--6:hover {
  /* no transform here anymore */
}

/* Legend */
.allergen-legend {
  text-align: center;
  padding: var(--space-md);
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.allergen-legend p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin: 0;
}

.allergen-legend a {
  color: var(--color-teal);
  font-weight: 600;
}



/* =============================================
   Matrix Table
   ============================================= */
.matrix-example {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.matrix-example__header {
  background: var(--color-teal);
  color: var(--color-white);
  padding: var(--space-md) var(--space-lg);
  text-align: center;
}

.matrix-example__header h3 {
  font-family: var(--font-body);
  font-size: 1.25rem;
  margin-bottom: 4px;
}

.matrix-example__header p {
  font-size: 0.875rem;
  opacity: 0.9;
  margin: 0;
}

.matrix-table-wrapper {
  overflow-x: auto;
  padding: var(--space-md);
}

.matrix-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.matrix-table th,
.matrix-table td {
  padding: var(--space-sm);
  text-align: center;
  border: 1px solid var(--color-mint);
}

.matrix-table th {
  background: var(--color-teal-pale);
  font-weight: 600;
  color: var(--color-teal-dark);
}

.matrix-table th:first-child {
  text-align: left;
}

.matrix-table td:first-child {
  text-align: left;
  font-weight: 500;
}

.matrix-yes {
  background: #FFE5E5;
  color: #CC0000;
  font-weight: 700;
}

.matrix-no {
  background: #E8F5E9;
  color: #2E7D32;
}

.matrix-legend {
  display: flex;
  justify-content: center;
  gap: var(--space-lg);
  padding: var(--space-md);
  background: var(--color-bg);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.legend-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
}

.legend-dot--yes {
  background: #FFE5E5;
  border: 2px solid #CC0000;
}

.legend-dot--no {
  background: #E8F5E9;
  border: 2px solid #2E7D32;
}

.matrix-cta {
  text-align: center;
  margin-top: var(--space-lg);
}

.matrix-cta p {
  font-size: 1.1rem;
  margin-bottom: var(--space-sm);
  color: var(--color-text-muted);
}

/* =============================================
   Contact Section
   ============================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-3xl);
  align-items: start;
}

.contact-info__desc {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--space-xl);
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
}

.contact-detail__icon {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-detail__icon svg {
  width: 24px;
  height: 24px;
  color: var(--color-white);
}

.contact-detail strong {
  display: block;
  color: var(--color-white);
  margin-bottom: 2px;
}

.contact-detail a,
.contact-detail span {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
}

.contact-form-wrapper {
  background: var(--color-white);
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.form-group label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-deep-slate);
}

.form-group input,
.form-group textarea {
  padding: 0.875rem 1rem;
  border: 2px solid var(--color-mint);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-teal);
  box-shadow: 0 0 0 3px var(--color-teal-pale);
}

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

.file-upload {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md);
  border: 2px dashed var(--color-teal);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.file-upload:hover {
  background: var(--color-teal-pale);
}

.file-upload svg {
  width: 24px;
  height: 24px;
  color: var(--color-teal);
}

.file-upload input {
  display: none;
}

.file-hint {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-top: 4px;
}

.form-status {
  padding: var(--space-sm);
  border-radius: var(--radius-sm);
  font-weight: 500;
  text-align: center;
  display: none;
}

.form-status.success {
  display: block;
  background: #E8F5E9;
  color: #2E7D32;
}

.form-status.error {
  display: block;
  background: #FFEBEE;
  color: #C62828;
}

/* =============================================
   Newsletter
   ============================================= */
.newsletter-box {
  background: linear-gradient(135deg, var(--color-mint) 0%, var(--color-lavender) 100%);
  padding: var(--space-2xl);
  border-radius: var(--radius-xl);
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.newsletter-content {
  max-width: 500px;
  margin: 0 auto var(--space-lg);
}

.newsletter-content h2 {
  font-size: 2rem;
  color: var(--color-deep-slate);
  margin-bottom: var(--space-sm);
}

.newsletter-content p {
  color: var(--color-text-muted);
  font-size: 1.1rem;
}

.newsletter-form {
  display: flex;
  gap: var(--space-sm);
  max-width: 450px;
  margin: 0 auto;
}

.newsletter-form input {
  flex: 1;
  padding: 0.875rem 1.25rem;
  border: 2px solid var(--color-white);
  border-radius: var(--radius-full);
  font-size: 1rem;
  background: var(--color-white);
  transition: all var(--transition-fast);
}

.newsletter-form input:focus {
  outline: none;
  border-color: var(--color-teal);
  box-shadow: 0 0 0 3px var(--color-teal-pale);
}

.newsletter-status {
  margin-top: var(--space-sm);
  font-weight: 600;
}

.newsletter-status.success {
  color: var(--color-teal);
}

.newsletter-status.error {
  color: #C62828;
}

.newsletter-privacy {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-top: var(--space-sm);
}

/* =============================================
   Footer
   ============================================= */
.footer {
  background: var(--color-deep-slate);
  color: var(--color-white);
  padding: var(--space-3xl) 0 var(--space-lg);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.footer__logo img {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-sm);
}

.footer__logo span {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-white);
}

.footer__brand p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  line-height: 1.7;
}

.footer__links h4 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: var(--space-md);
  color: var(--color-white);
}

.footer__links ul {
  list-style: none;
}

.footer__links li {
  margin-bottom: var(--space-xs);
}

.footer__links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  transition: color var(--transition-fast);
}

.footer__links a:hover {
  color: var(--color-white);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__bottom p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.875rem;
}

.footer__legal a {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.875rem;
}

.footer__legal a:hover {
  color: var(--color-white);
}

/* =============================================
   Modal
   ============================================= */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
}

.modal.active {
  opacity: 1;
  visibility: visible;
}

.modal__overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.modal__content {
  position: relative;
  background: var(--color-white);
  padding: var(--space-2xl);
  border-radius: var(--radius-lg);
  max-width: 600px;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  transform: translateY(20px);
  transition: transform var(--transition-base);
}

.modal.active .modal__content {
  transform: translateY(0);
}

.modal__close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  width: 40px;
  height: 40px;
  border: none;
  background: var(--color-bg);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.modal__close:hover {
  background: var(--color-mint);
}

.modal__close svg {
  width: 20px;
  height: 20px;
  color: var(--color-text);
}

.modal h2 {
  font-size: 1.75rem;
  color: var(--color-teal);
  margin-bottom: var(--space-lg);
}

.modal__body h3 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-deep-slate);
  margin: var(--space-md) 0 var(--space-xs);
}

.modal__body p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-sm);
}

.modal__date {
  margin-top: var(--space-lg);
  font-size: 0.8rem;
  color: var(--color-slate);
}

/* =============================================
   Responsive
   ============================================= */
@media (max-width: 1024px) {
  .hero__content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero__desc {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero__actions {
    justify-content: center;
  }
  
  .hero__stats {
    justify-content: center;
  }
  
  .hero__visual {
    display: none;
  }
  
  .features {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --space-3xl: 3rem;
  }
  
  .nav {
    display: none;
  }
  
  .mobile-toggle {
    display: flex;
  }
  
  .mobile-menu {
    display: block;
  }
  
  .hero__title {
    font-size: 2.25rem;
  }
  
  .hero__actions {
    flex-direction: column;
  }
  
  .hero__stats {
    flex-wrap: wrap;
    gap: var(--space-md);
  }
  
  .features {
    grid-template-columns: 1fr;
  }
  
  .section__title {
    font-size: 2rem;
  }
  
  .allergen-wheel {
    width: 350px;
    height: 350px;
  }
  
  .allergen-item__circle {
    width: 50px;
    height: 50px;
  }
  
  .allergen-item__num {
    font-size: 1rem;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .newsletter-form {
    flex-direction: column;
  }
  
  .footer__grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .footer__logo {
    justify-content: center;
  }
  
  .footer__bottom {
    flex-direction: column;
    gap: var(--space-sm);
    text-align: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--space-sm);
  }
  
  .hero__title {
    font-size: 1.75rem;
  }
  
  .hero__badge {
    font-size: 0.75rem;
  }
  
  .section__title {
    font-size: 1.5rem;
  }
  
  .allergen-wheel {
    width: 280px;
    height: 280px;
  }
  
  .allergen-wheel__center {
    width: 100px;
    height: 100px;
  }
  
  .allergen-wheel__title {
    font-size: 1.1rem;
  }
  
  .allergen-item__circle {
    width: 40px;
    height: 40px;
  }
  
  .allergen-item__label {
    font-size: 0.6rem;
  }
  
  .contact-form-wrapper {
    padding: var(--space-md);
  }
  
  .modal__content {
    margin: var(--space-md);
    padding: var(--space-lg);
  }
}
