/* Atlas Ingredients GmbH - Professional B2B Design System */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* CSS Variables */
:root {
  /* Primary - Deep Forest Teal */
  --primary: hsl(163, 64%, 26%);
  --primary-foreground: hsl(0, 0%, 100%);
  
  /* Accent - Warm Gold */
  --accent: hsl(42, 46%, 60%);
  --accent-foreground: hsl(163, 64%, 16%);
  
  /* Background & Surfaces */
  --background: hsl(40, 33%, 98%);
  --foreground: hsl(210, 11%, 15%);
  
  /* Cards & Sections */
  --card: hsl(0, 0%, 100%);
  --card-foreground: hsl(210, 11%, 15%);
  
  /* Secondary - Soft Sage */
  --secondary: hsl(163, 20%, 94%);
  --secondary-foreground: hsl(163, 64%, 20%);
  
  /* Muted - Warm Gray */
  --muted: hsl(40, 15%, 92%);
  --muted-foreground: hsl(210, 11%, 45%);
  
  /* Borders & Inputs */
  --border: hsl(163, 15%, 85%);
  --input: hsl(163, 15%, 85%);
  --ring: hsl(163, 64%, 26%);
  
  --radius: 0.75rem;
  
  /* Custom tokens */
  --hero-gradient: linear-gradient(135deg, hsl(163, 64%, 22%) 0%, hsl(163, 64%, 32%) 50%, hsl(163, 45%, 28%) 100%);
  --gold-gradient: linear-gradient(135deg, hsl(42, 50%, 55%) 0%, hsl(42, 55%, 65%) 50%, hsl(42, 50%, 55%) 100%);
  --card-shadow: 0 4px 20px -4px hsl(163, 30%, 20% / 0.08);
  --card-shadow-hover: 0 12px 32px -8px hsl(163, 30%, 20% / 0.15);
  --footer-bg: hsl(163, 64%, 12%);
  --section-cream: hsl(40, 40%, 96%);
  --section-sage: hsl(163, 25%, 95%);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

a {
  color: inherit;
  text-decoration: none;
}

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

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

/* Container */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 1024px) {
  .container {
    padding: 0 2rem;
  }
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: all 0.3s ease;
  background: transparent;
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: var(--card-shadow);
}

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

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

.logo-icon {
  width: 40px;
  height: 40px;
  border-radius: 0.5rem;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-foreground);
  font-weight: 700;
  font-size: 1.125rem;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-name {
  font-weight: 700;
  font-size: 1.125rem;
  line-height: 1.2;
  color: var(--foreground);
  transition: color 0.3s;
}

.header:not(.scrolled) .logo-name {
  color: white;
}

.logo-subtitle {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  transition: color 0.3s;
}

.header:not(.scrolled) .logo-subtitle {
  color: rgba(255, 255, 255, 0.7);
}

.desktop-nav {
  display: none;
  align-items: center;
  gap: 2rem;
}

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

.desktop-nav a {
  font-weight: 500;
  transition: opacity 0.3s;
  color: var(--foreground);
}

.header:not(.scrolled) .desktop-nav a:not(.btn-gold) {
  color: white;
}

.desktop-nav a:hover {
  opacity: 0.8;
}

.mobile-menu-btn {
  display: flex;
  padding: 0.5rem;
  border-radius: 0.5rem;
  transition: color 0.3s;
  color: var(--foreground);
}

@media (min-width: 768px) {
  .mobile-menu-btn {
    display: none;
  }
}

.header:not(.scrolled) .mobile-menu-btn {
  color: white;
}

.mobile-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--card);
  box-shadow: var(--card-shadow-hover);
  border-top: 1px solid var(--border);
  padding: 1rem;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-nav.active {
  display: flex;
}

.mobile-nav a {
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  font-weight: 500;
  color: var(--foreground);
  transition: background 0.2s;
}

.mobile-nav a:hover {
  background: var(--secondary);
}

/* Buttons */
.btn-gold {
  background: var(--gold-gradient);
  color: hsl(163, 64%, 12%);
  font-weight: 600;
  padding: 0.625rem 1.25rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 14px -2px hsl(42, 50%, 45% / 0.4);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px -4px hsl(42, 50%, 45% / 0.5);
}

.btn-outline {
  padding: 1rem 2rem;
  border-radius: 0.75rem;
  font-weight: 600;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
}

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

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-content {
  max-width: 64rem;
  margin: 0 auto;
  text-align: center;
  padding: 4rem 1rem;
  position: relative;
  z-index: 1;
}

@media (min-width: 768px) {
  .hero-content {
    padding: 6rem 1rem;
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 9999px;
  padding: 0.5rem 1rem;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.875rem;
  font-weight: 500;
  animation: fadeInUp 0.6s ease-out;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.hero-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  animation: fadeInUp 0.6s ease-out 0.1s both;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 3rem;
  }
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 3.75rem;
  }
}

.hero-title-accent {
  display: block;
  color: var(--accent);
  margin-top: 0.5rem;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 2.5rem;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
  animation: fadeInUp 0.6s ease-out 0.2s both;
}

@media (min-width: 768px) {
  .hero-subtitle {
    font-size: 1.25rem;
  }
}

.hero-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 4rem;
  animation: fadeInUp 0.6s ease-out 0.3s both;
}

@media (min-width: 640px) {
  .hero-cta {
    flex-direction: row;
  }
}

.hero-cta .btn-gold {
  padding: 1rem 2rem;
  border-radius: 0.75rem;
  font-size: 1rem;
}

.trust-badges {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  animation: fadeInUp 0.6s ease-out 0.4s both;
}

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

.trust-badge {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.875rem;
  font-weight: 500;
}

.trust-badge svg {
  color: var(--accent);
  flex-shrink: 0;
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.5);
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-10px); }
}

/* Section Styles */
.section-cream {
  background-color: var(--section-cream);
}

.section-sage {
  background-color: var(--section-sage);
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-label {
  display: inline-block;
  color: var(--primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 3rem;
  }
}

@media (min-width: 1024px) {
  .section-title {
    font-size: 3.75rem;
  }
}

.section-text {
  color: var(--muted-foreground);
  font-size: 1.125rem;
  max-width: 42rem;
  margin: 0 auto;
  line-height: 1.7;
}

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

/* About Section */
.about-grid {
  display: grid;
  gap: 3rem;
  padding: 5rem 0;
}

@media (min-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
  }
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.highlights-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-top: 2rem;
}

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

.highlight-item svg {
  color: var(--primary);
  flex-shrink: 0;
}

.highlight-item span {
  color: var(--foreground);
  font-size: 0.875rem;
  font-weight: 500;
}

.features-grid {
  display: grid;
  gap: 1.5rem;
}

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

.feature-card {
  background: var(--card);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: var(--card-shadow);
  transition: all 0.3s;
}

.feature-card:hover {
  box-shadow: var(--card-shadow-hover);
}

.feature-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  background: rgba(163, 64%, 26%, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  transition: background 0.3s;
}

.feature-card:hover .feature-icon {
  background: rgba(163, 64%, 26%, 0.2);
}

.feature-icon svg {
  color: var(--primary);
}

.feature-card h3 {
  font-weight: 600;
  color: var(--foreground);
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.feature-card p {
  color: var(--muted-foreground);
  font-size: 0.875rem;
  line-height: 1.6;
}

/* Products Section */
.products-header {
  padding: 4rem 0;
  background: var(--background);
}

.product-category {
  padding: 4rem 0;
}

@media (min-width: 768px) {
  .product-category {
    padding: 5rem 0;
  }
}

.category-header {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 768px) {
  .category-header {
    flex-direction: row;
    align-items: center;
    gap: 1rem;
  }
}

.category-icon {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.875rem;
  background: var(--gold-gradient);
  flex-shrink: 0;
}

.category-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
  .category-title {
    font-size: 1.875rem;
  }
}

.category-description {
  color: var(--muted-foreground);
  max-width: 42rem;
}

.products-grid {
  display: grid;
  gap: 1.5rem;
}

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

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

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

.product-card {
  background: var(--card);
  border-radius: 0.75rem;
  overflow: hidden;
  transition: all 0.3s;
  box-shadow: var(--card-shadow);
}

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

.product-image {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--secondary);
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  opacity: 0.6;
}

.product-overlay {
  position: absolute;
  inset: 0;
  background: transparent;
  transition: background 0.3s;
}

.product-card:hover .product-overlay {
  background: rgba(163, 64%, 26%, 0.1);
}

.product-content {
  padding: 1.25rem;
}

.product-name {
  font-weight: 600;
  color: var(--foreground);
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
  transition: color 0.3s;
}

.product-card:hover .product-name {
  color: var(--primary);
}

.product-description {
  color: var(--muted-foreground);
  font-size: 0.875rem;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.variant-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.variant-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  background-color: var(--secondary);
  color: var(--secondary-foreground);
}

.variant-badge-organic {
  background-color: hsl(142, 70%, 92%);
  color: hsl(142, 70%, 25%);
}

.variant-badge-conventional {
  background-color: hsl(220, 14%, 92%);
  color: hsl(220, 14%, 35%);
}

.loading-spinner {
  text-align: center;
  padding: 4rem 0;
}

.spinner {
  width: 3rem;
  height: 3rem;
  border: 4px solid var(--primary);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 1rem;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Certifications Section */
.certifications-grid {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}

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

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

.cert-card {
  background: var(--card);
  border-radius: 0.75rem;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s;
  box-shadow: var(--card-shadow);
}

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

.cert-icon {
  width: 4rem;
  height: 4rem;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  transition: transform 0.3s;
}

.cert-card:hover .cert-icon {
  transform: scale(1.1);
}

.cert-icon-blue {
  background-color: hsl(220, 91%, 95%);
  color: hsl(220, 91%, 50%);
}

.cert-icon-purple {
  background-color: hsl(270, 91%, 95%);
  color: hsl(270, 91%, 50%);
}

.cert-icon-teal {
  background-color: hsl(173, 80%, 95%);
  color: hsl(173, 80%, 40%);
}

.cert-icon-green {
  background-color: hsl(142, 76%, 95%);
  color: hsl(142, 76%, 30%);
}

.cert-icon-amber {
  background-color: hsl(43, 96%, 95%);
  color: hsl(43, 96%, 50%);
}

.cert-icon-slate {
  background-color: hsl(215, 20%, 95%);
  color: hsl(215, 20%, 40%);
}

.cert-card h3 {
  font-weight: 700;
  color: var(--foreground);
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.cert-card p {
  color: var(--muted-foreground);
  font-size: 0.875rem;
  line-height: 1.6;
}

.trust-statement {
  text-align: center;
  margin-top: 3.5rem;
}

.trust-statement p {
  color: var(--muted-foreground);
  font-size: 1rem;
}

.text-link {
  color: var(--primary);
  font-weight: 500;
  transition: text-decoration 0.2s;
}

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

/* Contact Section */
.contact-section {
  padding: 5rem 0;
  background: var(--background);
}

.contact-grid {
  display: grid;
  gap: 3rem;
}

@media (min-width: 1024px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

.contact-info h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 1.5rem;
}

.contact-items {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  background: rgba(163, 64%, 26%, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon svg {
  color: var(--primary);
}

.contact-label {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-bottom: 0.25rem;
}

.contact-value {
  color: var(--foreground);
  font-weight: 500;
  transition: color 0.2s;
}

.contact-value:hover {
  color: var(--primary);
}

.business-hours {
  background: var(--secondary);
  border-radius: 1rem;
  padding: 1.5rem;
}

.business-hours h4 {
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 1rem;
}

.hours-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.hours-item {
  display: flex;
  justify-content: space-between;
}

.hours-item span:first-child {
  color: var(--muted-foreground);
}

.hours-item span:last-child {
  color: var(--foreground);
  font-weight: 500;
}

.contact-form-wrapper {
  background: var(--card);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: var(--card-shadow);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-row {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--foreground);
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(163, 64%, 26%, 0.1);
}

.form-group textarea {
  resize: none;
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.form-checkbox input[type="checkbox"] {
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.125rem;
  border-radius: 0.25rem;
  border: 1px solid var(--border);
  cursor: pointer;
}

.form-checkbox label {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.5;
}

.form-checkbox label a {
  color: var(--primary);
  transition: text-decoration 0.2s;
}

.form-checkbox label a:hover {
  text-decoration: underline;
}

.btn-submit {
  width: 100%;
  padding: 1rem;
  border-radius: 0.75rem;
  font-weight: 600;
  justify-content: center;
}

.form-note {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  text-align: center;
}

.form-success {
  text-align: center;
  padding: 3rem 1rem;
}

.success-icon {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: hsl(142, 76%, 95%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.success-icon svg {
  color: hsl(142, 76%, 30%);
}

.form-success h4 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 0.75rem;
}

.form-success p {
  color: var(--muted-foreground);
}

/* Footer */
.footer-section {
  background-color: var(--footer-bg);
  color: hsl(40, 20%, 90%);
  padding: 4rem 0 1.5rem;
}

.footer-content {
  display: grid;
  gap: 2.5rem;
  padding-bottom: 4rem;
}

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

@media (min-width: 1024px) {
  .footer-content {
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2.5rem;
  }
}

.footer-company {
  grid-column: 1 / -1;
}

@media (min-width: 1024px) {
  .footer-company {
    grid-column: 1;
  }
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.footer-logo .logo-icon {
  background: var(--primary);
}

.footer-logo-name {
  font-weight: 700;
  font-size: 1.125rem;
  color: white;
}

.footer-logo-subtitle {
  display: block;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer-description {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  max-width: 28rem;
}

.footer-contact {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.footer-links h4 {
  font-weight: 600;
  color: white;
  margin-bottom: 1.25rem;
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
  transition: color 0.2s;
}

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

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

@media (min-width: 640px) {
  .footer-bottom {
    flex-direction: row;
  }
}

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

.footer-scroll-top {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.875rem;
  transition: color 0.2s;
}

.footer-scroll-top:hover {
  color: white;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Utility Classes */
.error-message {
  background: hsl(0, 84%, 60%, 0.1);
  border-radius: 0.75rem;
  padding: 2rem;
  text-align: center;
}

.error-message p:first-child {
  color: hsl(0, 84%, 60%);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.error-message p:last-child {
  color: var(--muted-foreground);
  font-size: 0.875rem;
}
