/* Oustere DIY - Main Styles */
/* Design tokens implementation following design-tokens.json */

/* ===== CSS Variables (Design Tokens) ===== */
:root {
  /* Colors */
  --primary-50: #E3F2FD;
  --primary-100: #BBDEFB;
  --primary-500: #1976D2;
  --primary-700: #1565C0;
  --primary-900: #0D47A1;
  
  --neutral-50: #FAFAFA;
  --neutral-100: #F5F5F5;
  --neutral-200: #E0E0E0;
  --neutral-400: #BDBDBD;
  --neutral-700: #616161;
  --neutral-900: #212121;
  
  --bg-page: #FFFFFF;
  --bg-surface: #F5F5F5;
  --bg-elevated: #FFFFFF;
  
  --success: #4CAF50;
  --warning: #FF9800;
  --error: #D32F2F;
  --info: #0288D1;
  
  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Inter', sans-serif;
  
  --text-xs: 12px;
  --text-sm: 14px;
  --text-base: 16px;
  --text-lg: 18px;
  --text-xl: 20px;
  --text-2xl: 24px;
  --text-3xl: 32px;
  --text-4xl: 40px;
  --text-5xl: 48px;
  
  --font-regular: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;
  
  --leading-tight: 1.25;
  --leading-normal: 1.5;
  --leading-relaxed: 1.6;
  
  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;
  
  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-card: 0 2px 8px 0 rgba(0, 0, 0, 0.08);
  --shadow-card-hover: 0 4px 16px 0 rgba(25, 118, 210, 0.12);
  --shadow-modal: 0 8px 32px 0 rgba(0, 0, 0, 0.12);
  
  /* Animation */
  --duration-fast: 150ms;
  --duration-normal: 250ms;
  --duration-slow: 400ms;
  --easing-default: cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  font-size: var(--text-base);
  font-weight: var(--font-regular);
  line-height: var(--leading-normal);
  color: var(--neutral-900);
  background-color: var(--bg-page);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--duration-fast) var(--easing-default);
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: var(--font-bold);
  line-height: var(--leading-tight);
  color: var(--neutral-900);
  margin-bottom: var(--space-md);
}

h1 {
  font-size: var(--text-4xl);
}

h2 {
  font-size: var(--text-3xl);
}

h3 {
  font-size: var(--text-2xl);
}

h4 {
  font-size: var(--text-xl);
}

p {
  margin-bottom: var(--space-md);
  line-height: var(--leading-relaxed);
}

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

/* ===== Header & Navigation ===== */
header {
  background-color: var(--bg-page);
  border-bottom: 1px solid var(--neutral-200);
  position: sticky;
  top: 0;
  z-index: 1000;
  height: 72px;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.logo {
  font-size: var(--text-2xl);
  font-weight: var(--font-bold);
  color: var(--primary-500);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  list-style: none;
}

.nav-menu a {
  font-size: var(--text-base);
  font-weight: var(--font-medium);
  color: var(--neutral-900);
  padding: var(--space-sm) 0;
  border-bottom: 2px solid transparent;
  transition: all var(--duration-fast) var(--easing-default);
}

.nav-menu a:hover {
  color: var(--primary-500);
}

.nav-menu a.active {
  color: var(--primary-700);
  border-bottom-color: var(--primary-700);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: var(--text-2xl);
  cursor: pointer;
  color: var(--neutral-900);
}

/* ===== Hero Section ===== */
.hero {
  position: relative;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary-700), var(--primary-900));
}

.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 0 var(--space-xl);
}

.hero h1 {
  font-size: var(--text-4xl);
  color: white;
  margin-bottom: var(--space-lg);
}

.hero p {
  font-size: var(--text-lg);
  opacity: 0.9;
  margin-bottom: var(--space-xl);
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 12px 32px;
  font-size: var(--text-base);
  font-weight: var(--font-semibold);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--duration-normal) var(--easing-default);
  text-align: center;
  min-height: 48px;
}

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

.btn-primary:hover {
  background-color: var(--primary-700);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card-hover);
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-secondary {
  background-color: var(--neutral-100);
  color: var(--neutral-900);
  border: 1px solid var(--neutral-200);
}

.btn-secondary:hover {
  background-color: var(--neutral-200);
}

.btn-full {
  width: 100%;
}

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

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

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

/* ===== Product Grid ===== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-xl);
  margin-top: var(--space-2xl);
}

.product-card {
  background-color: var(--bg-surface);
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: all var(--duration-normal) var(--easing-default);
}

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

.product-image {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--radius-md);
  background-color: white;
  margin-bottom: var(--space-md);
  transition: transform var(--duration-slow) var(--easing-default);
}

.product-card:hover .product-image {
  transform: scale(1.05);
}

.product-card h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-sm);
}

.product-price {
  font-size: var(--text-2xl);
  font-weight: var(--font-bold);
  color: var(--primary-500);
  margin: var(--space-sm) 0;
}

.product-description {
  font-size: var(--text-sm);
  color: var(--neutral-700);
  margin-bottom: var(--space-md);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===== Features Grid ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-xl);
  margin-top: var(--space-2xl);
}

.feature-card {
  text-align: center;
  padding: var(--space-xl);
}

.feature-icon {
  font-size: var(--text-5xl);
  color: var(--primary-500);
  margin-bottom: var(--space-md);
}

.feature-card h3 {
  margin-bottom: var(--space-md);
}

/* ===== Contact/Order Form ===== */
.form-container {
  max-width: 600px;
  margin: 0 auto;
  background-color: var(--bg-surface);
  padding: var(--space-2xl);
  border-radius: var(--radius-lg);
}

.form-group {
  margin-bottom: var(--space-lg);
}

.form-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--neutral-700);
  margin-bottom: var(--space-sm);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  font-size: var(--text-base);
  font-family: var(--font-primary);
  color: var(--neutral-900);
  background-color: white;
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius-md);
  transition: all var(--duration-fast) var(--easing-default);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border: 2px solid var(--primary-500);
  box-shadow: var(--shadow-sm);
}

.form-input.error,
.form-textarea.error {
  border: 2px solid var(--error);
}

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

.form-error {
  font-size: var(--text-sm);
  color: var(--error);
  margin-top: var(--space-xs);
  display: none;
}

.form-error.show {
  display: block;
}

.form-success {
  background-color: var(--success);
  color: white;
  padding: var(--space-md);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-lg);
  display: none;
}

.form-success.show {
  display: block;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
}

.checkbox-group input[type="checkbox"] {
  margin-top: 4px;
  min-width: 18px;
  min-height: 18px;
}

.checkbox-group label {
  font-size: var(--text-xs);
  color: var(--neutral-700);
}

/* ===== Cookie Consent Banner ===== */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--neutral-900);
  color: white;
  padding: var(--space-lg) var(--space-xl);
  box-shadow: var(--shadow-modal);
  z-index: 2000;
  display: none;
  animation: slideUp var(--duration-slow) var(--easing-default);
}

.cookie-consent.show {
  display: block;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.cookie-text {
  flex: 1;
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
}

.cookie-text a {
  color: var(--primary-100);
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  gap: var(--space-md);
}

.cookie-actions button {
  padding: 10px 24px;
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--duration-fast) var(--easing-default);
  min-height: 40px;
}

.cookie-accept {
  background-color: var(--primary-500);
  color: white;
}

.cookie-accept:hover {
  background-color: var(--primary-700);
}

.cookie-reject {
  background-color: transparent;
  color: white;
  border: 1px solid white;
}

.cookie-reject:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* ===== Footer ===== */
footer {
  background-color: var(--neutral-900);
  color: rgba(255, 255, 255, 0.8);
  padding: var(--space-3xl) 0 var(--space-lg);
}

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

.footer-section h3 {
  color: white;
  font-size: var(--text-lg);
  margin-bottom: var(--space-md);
}

.footer-section p,
.footer-section a {
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-sm);
}

.footer-section a {
  display: block;
  transition: color var(--duration-fast) var(--easing-default);
}

.footer-section a:hover {
  color: var(--primary-100);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--space-lg);
  text-align: center;
  font-size: var(--text-xs);
}

/* ===== Content Sections ===== */
.content-section {
  max-width: 900px;
  margin: 0 auto;
}

.content-section h2 {
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-md);
}

.content-section h3 {
  margin-top: var(--space-xl);
  margin-bottom: var(--space-md);
}

.content-section ul,
.content-section ol {
  margin-left: var(--space-lg);
  margin-bottom: var(--space-md);
}

.content-section li {
  margin-bottom: var(--space-sm);
  line-height: var(--leading-relaxed);
}

/* ===== Info Boxes ===== */
.info-box {
  background-color: var(--bg-surface);
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-xl);
}

.info-box-icon {
  font-size: var(--text-4xl);
  margin-bottom: var(--space-md);
}

/* ===== Responsive Design ===== */
@media (max-width: 1023px) {
  h1 {
    font-size: var(--text-3xl);
  }
  
  .hero {
    height: 320px;
  }
  
  .hero h1 {
    font-size: var(--text-3xl);
  }
  
  .product-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 767px) {
  header {
    height: 64px;
  }
  
  .menu-toggle {
    display: block;
  }
  
  .nav-menu {
    position: fixed;
    top: 64px;
    left: -100%;
    width: 80%;
    max-width: 300px;
    height: calc(100vh - 64px);
    background-color: white;
    flex-direction: column;
    align-items: flex-start;
    padding: var(--space-xl);
    box-shadow: var(--shadow-modal);
    transition: left var(--duration-slow) var(--easing-default);
    gap: var(--space-md);
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .nav-menu a {
    width: 100%;
    padding: var(--space-md) 0;
    border-bottom: 1px solid var(--neutral-200);
  }
  
  .hero {
    height: 280px;
  }
  
  .hero h1 {
    font-size: var(--text-2xl);
  }
  
  .hero p {
    font-size: var(--text-base);
  }
  
  section {
    padding: var(--space-2xl) 0;
  }
  
  .container {
    padding: 0 var(--space-md);
  }
  
  .form-container {
    padding: var(--space-lg);
  }
  
  .btn-full-mobile {
    width: 100%;
  }
  
  .cookie-content {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .cookie-actions {
    width: 100%;
    flex-direction: column;
  }
  
  .cookie-actions button {
    width: 100%;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

@media (max-width: 639px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
}
