/* SnapLab Website - Main Stylesheet */
/* Design System based on SnapLab Brand Identity */

/* ===== CSS VARIABLES - SNAPLAB COLOR PALETTE ===== */
:root {
  /* Primary Brand Colors */
  --deep-teal: #1B4B5A;
  --burgundy: #8B2635;
  
  /* Supporting Base Colors */
  --warm-cream: #F8F6F3;
  --light-gray: #E8E6E3;
  --soft-blue-gray: #B8C5D1;
  --warm-beige: #E6DDD4;
  
  /* Accent Colors */
  --light-teal: #4A8B9B;
  --soft-rose: #C4949A;
  --nordic-white: #FFFFFF;
  
  /* Text Colors */
  --text-primary: #333333;
  --text-secondary: #666666;
  --text-light: #999999;
  
  /* Gradients */
  --primary-gradient: linear-gradient(135deg, var(--deep-teal) 0%, var(--burgundy) 100%);
  --hero-gradient: linear-gradient(135deg, var(--warm-cream) 0%, var(--soft-blue-gray) 100%);
  --accent-gradient: linear-gradient(135deg, var(--light-teal) 0%, var(--soft-rose) 100%);
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-xxl: 4rem;
  
  /* Typography */
  --font-primary: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  --font-heading: 'Inter', 'Segoe UI', system-ui, sans-serif;
  
  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(27, 75, 90, 0.1);
  --shadow-md: 0 4px 8px rgba(27, 75, 90, 0.15);
  --shadow-lg: 0 8px 16px rgba(27, 75, 90, 0.2);
  
  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
}

/* ===== RESET & BASE STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

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

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: var(--spacing-sm);
}

h1 {
  font-size: 3rem;
  color: var(--deep-teal);
  font-weight: 700;
}

h2 {
  font-size: 2.5rem;
  color: var(--deep-teal);
}

h3 {
  font-size: 2rem;
  color: var(--burgundy);
}

h4 {
  font-size: 1.5rem;
  color: var(--deep-teal);
}

h5 {
  font-size: 1.25rem;
  color: var(--burgundy);
}

h6 {
  font-size: 1.125rem;
  color: var(--text-primary);
}

p {
  margin-bottom: var(--spacing-md);
  color: var(--text-primary);
}

a {
  color: var(--light-teal);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--burgundy);
}

/* ===== LAYOUT COMPONENTS ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.container-wide {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.section {
  padding: var(--spacing-xxl) 0;
}

.section-alt {
  background-color: var(--light-gray);
}

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

/* ===== HEADER & NAVIGATION ===== */
.header {
  background: var(--primary-gradient);
  color: var(--nordic-white);
  padding: var(--spacing-md) 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  box-shadow: var(--shadow-md);
}

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

.header-brand {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.header-logo {
  height: 90px;
  width: auto;
}

.header-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--nordic-white);
  margin: 0;
}

.nav {
  display: flex;
  gap: var(--spacing-lg);
  align-items: center;
}

.nav-link {
  color: var(--nordic-white);
  font-weight: 500;
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--radius-sm);
  transition: all 0.3s ease;
}

.nav-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--nordic-white);
}

.nav-link.active {
  background-color: var(--burgundy);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: var(--spacing-sm) var(--spacing-lg);
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-primary);
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.btn-primary {
  background: var(--burgundy);
  color: var(--nordic-white);
}

.btn-primary:hover {
  background: #A12E3F;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: var(--nordic-white);
}

.btn-secondary {
  background: var(--deep-teal);
  color: var(--nordic-white);
}

.btn-secondary:hover {
  background: #245A6B;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: var(--nordic-white);
}

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

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

.btn-large {
  padding: var(--spacing-md) var(--spacing-xl);
  font-size: 1.125rem;
}

/* ===== HERO SECTION ===== */
.hero {
  background: var(--hero-gradient);
  padding: calc(80px + var(--spacing-xxl)) 0 var(--spacing-xxl) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="friendship-knot" x="0" y="0" width="50" height="50" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="2" fill="%23ffffff" opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23friendship-knot)"/></svg>');
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-tagline {
  font-size: 1.25rem;
  color: var(--burgundy);
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-title {
  font-size: 3.5rem;
  margin-bottom: var(--spacing-md);
  color: var(--deep-teal);
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: var(--spacing-xl);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  gap: var(--spacing-md);
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== CARDS ===== */
.card {
  background: var(--nordic-white);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  border: 1px solid var(--light-gray);
}

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

.card-header {
  margin-bottom: var(--spacing-md);
}

.card-title {
  color: var(--deep-teal);
  margin-bottom: var(--spacing-xs);
}

.card-subtitle {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.card-content {
  margin-bottom: var(--spacing-md);
}

.card-footer {
  border-top: 1px solid var(--light-gray);
  padding-top: var(--spacing-md);
}

/* ===== GRID LAYOUTS ===== */
.grid {
  display: grid;
  gap: var(--spacing-lg);
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* ===== FEATURES SECTION ===== */
.feature-icon {
  width: 60px;
  height: 60px;
  background: var(--accent-gradient);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--spacing-md) auto;
  color: var(--nordic-white);
  font-size: 1.5rem;
}

.feature-card {
  text-align: center;
}

.feature-card .card-title {
  color: var(--burgundy);
}

/* ===== FOOTER ===== */
.footer {
  background: var(--deep-teal);
  color: var(--nordic-white);
  padding: var(--spacing-xxl) 0 var(--spacing-lg) 0;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-lg);
}

.footer-section h4 {
  color: var(--nordic-white);
  margin-bottom: var(--spacing-md);
}

.footer-section a {
  color: var(--warm-cream);
  display: block;
  margin-bottom: var(--spacing-xs);
}

.footer-section a:hover {
  color: var(--soft-rose);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: var(--spacing-lg);
  text-align: center;
  color: var(--warm-cream);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
  .container {
    padding: 0 var(--spacing-sm);
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .nav {
    display: none;
  }
  
  .header-content {
    justify-content: center;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: calc(80px + var(--spacing-lg)) 0 var(--spacing-lg) 0;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .section {
    padding: var(--spacing-lg) 0;
  }
}

/* ===== UTILITY CLASSES ===== */
.text-center {
  text-align: center;
}

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

.text-right {
  text-align: right;
}

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--spacing-xs); }
.mb-2 { margin-bottom: var(--spacing-sm); }
.mb-3 { margin-bottom: var(--spacing-md); }
.mb-4 { margin-bottom: var(--spacing-lg); }
.mb-5 { margin-bottom: var(--spacing-xl); }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--spacing-xs); }
.mt-2 { margin-top: var(--spacing-sm); }
.mt-3 { margin-top: var(--spacing-md); }
.mt-4 { margin-top: var(--spacing-lg); }
.mt-5 { margin-top: var(--spacing-xl); }

.text-teal { color: var(--deep-teal); }
.text-burgundy { color: var(--burgundy); }
.text-light-teal { color: var(--light-teal); }

.bg-white { background-color: var(--nordic-white); }
.bg-cream { background-color: var(--warm-cream); }
.bg-gray { background-color: var(--light-gray); }

/* ===== CASE CARDS ===== */
.case-card-available {
  border-left: 4px solid var(--deep-teal);
}

.case-card-coming {
  opacity: 0.55;
  filter: grayscale(0.7);
  pointer-events: none;
  border-left: 4px solid var(--light-gray);
}

.case-card-coming:hover {
  transform: none;
  box-shadow: var(--shadow-sm);
}

.case-status {
  display: inline-block;
  padding: 0.4rem 0.75rem;
  background: var(--light-gray);
  color: var(--text-secondary);
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 500;
  font-style: italic;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.pulse {
  animation: pulse 2s infinite;
}
