/* ========================================
   SPLASH RAINWEAR - Modern CSS Styles
   ======================================== */

/* CSS Custom Properties (Variables) */
:root {
  /* Colors */
  --primary-color: #00bcd4;
  --primary-dark: #00838f;
  --primary-light: #4dd0e1;
  --secondary-color: #f50057;
  --background-primary: #ffffff;
  --background-secondary: #f8fdff;
  --background-accent: #e0f7fa;
  --text-primary: #1a1a1a;
  --text-secondary: #555555;
  --text-muted: #888888;
  --border-color: #e5f3f4;
  --shadow-light: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-medium: 0 4px 16px rgba(0, 0, 0, 0.1);
  --shadow-strong: 0 8px 32px rgba(0, 0, 0, 0.15);
  
  /* Typography */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-size-base: 1rem;
  --font-size-sm: 0.875rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.875rem;
  --font-size-4xl: 2.25rem;
  
  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 2.5rem;
  --spacing-3xl: 3rem;
  
  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  
  /* Transitions */
  --transition-fast: 0.15s ease-out;
  --transition-normal: 0.2s ease-out;
  --transition-slow: 0.3s ease-out;
}

/* Reset and Base Styles */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  line-height: 1.6;
  color: var(--text-primary);
  background: linear-gradient(135deg, var(--background-accent) 0%, var(--background-primary) 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-md);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Container */
.container {
  background: var(--background-primary);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-strong);
  max-width: 75rem;
  width: 100%;
  margin: 0 auto;
  padding: var(--spacing-3xl) var(--spacing-xl);
  position: relative;
  overflow: hidden;
}

.container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--primary-light), var(--secondary-color));
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: var(--spacing-md);
}

p {
  margin-bottom: var(--spacing-md);
}

/* Section Styles */
section {
  margin-bottom: var(--spacing-3xl);
  padding: var(--spacing-2xl);
  background: var(--background-secondary);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-light);
  border: 1px solid var(--border-color);
}

.section-header {
  text-align: center;
  margin-bottom: var(--spacing-2xl);
}

.section-header h2 {
  color: var(--primary-color);
  font-size: var(--font-size-3xl);
  font-weight: 700;
  margin-bottom: var(--spacing-sm);
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: var(--font-size-lg);
  font-weight: 400;
  margin-bottom: 0;
}

/* Hero Section */
.hero {
  text-align: center;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  color: white;
  margin-bottom: var(--spacing-3xl);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 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.1'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: var(--font-size-4xl);
  font-weight: 800;
  margin-bottom: var(--spacing-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-xs);
}

.hero-title .brand {
  font-size: 3.5rem;
  letter-spacing: -0.02em;
}

.hero-title .subtitle {
  font-size: var(--font-size-xl);
  font-weight: 400;
  opacity: 0.9;
  letter-spacing: 0.1em;
}

.hero-tagline {
  font-size: var(--font-size-xl);
  font-weight: 500;
  margin-bottom: var(--spacing-lg);
  opacity: 0.95;
}

.hero-description {
  font-size: var(--font-size-lg);
  max-width: 32rem;
  margin: 0 auto var(--spacing-2xl);
  opacity: 0.9;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-md) var(--spacing-2xl);
  background: var(--background-primary);
  color: var(--primary-color);
  border: none;
  border-radius: var(--radius-lg);
  font-size: var(--font-size-lg);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-medium);
}

.cta-button:hover {
  background: var(--secondary-color);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-strong);
}

/* Product Grid */
.jacket-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  gap: var(--spacing-xl);
  margin-top: var(--spacing-2xl);
}

.jacket-card {
  background: var(--background-primary);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-light);
  border: 1px solid var(--border-color);
  transition: all var(--transition-normal);
  position: relative;
}

.jacket-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-strong);
}

.card-image {
  position: relative;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 12rem;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.jacket-card:hover .card-image img {
  transform: scale(1.05);
}

.card-badge {
  position: absolute;
  top: var(--spacing-md);
  right: var(--spacing-md);
  background: var(--primary-color);
  color: white;
  padding: var(--spacing-xs) var(--spacing-md);
  border-radius: var(--radius-lg);
  font-size: var(--font-size-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.card-badge.eco {
  background: #4caf50;
}

.card-content {
  padding: var(--spacing-lg);
}

.jacket-title {
  font-size: var(--font-size-xl);
  color: var(--text-primary);
  font-weight: 700;
  margin-bottom: var(--spacing-md);
}

.jacket-features {
  list-style: none;
  margin-bottom: var(--spacing-lg);
}

.jacket-features li {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-xs) 0;
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
}

.feature-icon {
  font-size: var(--font-size-base);
  width: 1.25rem;
  text-align: center;
}

.view-details {
  width: 100%;
  padding: var(--spacing-md);
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  transition: background-color var(--transition-normal);
}

.view-details:hover {
  background: var(--primary-dark);
}

/* Features Showcase */
.features-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: var(--spacing-xl);
  margin-top: var(--spacing-2xl);
}

.feature-card {
  text-align: center;
  background: var(--background-primary);
  padding: var(--spacing-2xl) var(--spacing-lg);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-light);
  border: 1px solid var(--border-color);
  transition: all var(--transition-normal);
}

.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
  background: var(--background-accent);
}

.feature-icon-large {
  font-size: 3rem;
  margin-bottom: var(--spacing-md);
}

.feature-card h3 {
  color: var(--primary-color);
  font-size: var(--font-size-xl);
  margin-bottom: var(--spacing-sm);
}

.feature-card p {
  color: var(--text-secondary);
  font-size: var(--font-size-base);
  margin: 0;
}

/* Contact Grid */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-2xl);
}

.contact-card {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  background: var(--background-primary);
  padding: var(--spacing-lg);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-light);
  border: 1px solid var(--border-color);
  transition: all var(--transition-normal);
}

.contact-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
  background: var(--background-accent);
}

.contact-icon {
  font-size: var(--font-size-2xl);
  width: 2.5rem;
  text-align: center;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
}

.contact-details strong {
  color: var(--primary-color);
  font-weight: 600;
}

.contact-details span {
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
}

/* Footer */
.footer {
  background: var(--text-primary);
  color: white;
  border-radius: var(--radius-xl);
  margin-top: var(--spacing-2xl);
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-lg);
  text-align: center;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-md) var(--spacing-xl);
  background: var(--primary-color);
  color: white;
  text-decoration: none;
  border-radius: var(--radius-lg);
  font-weight: 600;
  transition: all var(--transition-normal);
}

.nav-link:hover {
  background: var(--primary-light);
  transform: translateY(-1px);
}

.copyright {
  color: var(--text-muted);
  font-size: var(--font-size-sm);
  margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: var(--spacing-xl) var(--spacing-md);
  }
  
  section {
    padding: var(--spacing-lg) var(--spacing-md);
  }
  
  .hero-title .brand {
    font-size: var(--font-size-3xl);
  }
  
  .hero-title .subtitle {
    font-size: var(--font-size-lg);
  }
  
  .section-header h2 {
    font-size: var(--font-size-2xl);
  }
  
  .jacket-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }
  
  .features-showcase {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-card {
    justify-content: center;
  }
  
  .footer-content {
    gap: var(--spacing-md);
  }
}

@media (max-width: 480px) {
  body {
    padding: var(--spacing-sm);
  }
  
  .container {
    padding: var(--spacing-lg) var(--spacing-sm);
  }
  
  section {
    padding: var(--spacing-md);
  }
  
  .hero-title .brand {
    font-size: var(--font-size-2xl);
  }
  
  .cta-button {
    padding: var(--spacing-sm) var(--spacing-lg);
    font-size: var(--font-size-base);
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  html {
    scroll-behavior: auto;
  }
}

/* Focus States */
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Loading States */
img[loading="lazy"] {
  opacity: 0;
  transition: opacity 0.3s;
}

img[loading="lazy"].loaded {
  opacity: 1;
}

/* Print Styles */
@media print {
  .footer,
  .cta-button {
    display: none;
  }
  
  .container {
    box-shadow: none;
    border: 1px solid #ccc;
  }
  
  section {
    break-inside: avoid;
  }
}