/* ============================================
   Caboarry Premium Cookware - Main Stylesheet
   Design System: Luxury & Sophisticated
   ============================================ */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700;900&family=Inter:wght@400;500;600;700&display=swap');

/* ============================================
   CSS Custom Properties (Design Tokens)
   ============================================ */
:root {
  /* Colors - Primary (Terracotta/Clay) */
  --primary-50: #FDF6F3;
  --primary-100: #F7E5DD;
  --primary-500: #C7856A;
  --primary-700: #8B5A3C;
  --primary-900: #4A2E1F;
  
  /* Colors - Neutral (Warm) */
  --neutral-50: #FAFAF8;
  --neutral-100: #F5F4F0;
  --neutral-200: #E8E6DF;
  --neutral-600: #6B6861;
  --neutral-800: #3D3A35;
  --neutral-900: #1F1E1B;
  
  /* Background */
  --bg-page: #FAFAF8;
  --bg-surface: #FFFFFF;
  
  /* Semantic Colors */
  --success: #2D5A3C;
  --error: #8B3A3A;
  --info: #5A6B7A;
  --warning: #9B7344;
  
  /* Typography */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  
  /* Font Sizes */
  --text-xs: 12px;
  --text-sm: 14px;
  --text-base: 16px;
  --text-lg: 18px;
  --text-xl: 24px;
  --text-2xl: 32px;
  --text-3xl: 48px;
  --text-4xl: 64px;
  --text-5xl: 80px;
  
  /* Font Weights */
  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;
  --font-black: 900;
  
  /* Line Heights */
  --leading-tight: 1.2;
  --leading-snug: 1.3;
  --leading-normal: 1.5;
  --leading-relaxed: 1.6;
  
  /* Spacing */
  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;
  --space-5xl: 128px;
  
  /* Border Radius */
  --radius-none: 0px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-full: 9999px;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(31, 30, 27, 0.04);
  --shadow-card: 0 2px 8px rgba(31, 30, 27, 0.06), 0 1px 3px rgba(31, 30, 27, 0.04);
  --shadow-card-hover: 0 8px 24px rgba(199, 133, 106, 0.12), 0 4px 12px rgba(31, 30, 27, 0.08);
  --shadow-modal: 0 24px 48px rgba(31, 30, 27, 0.12), 0 8px 16px rgba(31, 30, 27, 0.08);
  
  /* Animation */
  --duration-fast: 300ms;
  --duration-normal: 500ms;
  --duration-slow: 600ms;
  --easing-default: cubic-bezier(0.25, 0.1, 0.25, 1);
}

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

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

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--neutral-800);
  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);
}

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

/* Accessibility - Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0ms !important;
    transition-duration: 0ms !important;
  }
}

/* ============================================
   Navigation Bar
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  background-color: transparent;
  z-index: 1000;
  transition: background-color var(--duration-normal) var(--easing-default),
              box-shadow var(--duration-normal) var(--easing-default);
}

.navbar.scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-sm);
}

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

.navbar-logo {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: var(--font-bold);
  color: var(--neutral-900);
}

.navbar.scrolled .navbar-logo {
  color: var(--neutral-900);
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  list-style: none;
}

.navbar-link {
  font-size: var(--text-base);
  color: var(--neutral-900);
  position: relative;
  padding: 4px 0;
}

.navbar-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-500);
  transition: width var(--duration-fast) var(--easing-default);
}

.navbar-link:hover {
  color: var(--primary-700);
}

.navbar-link:hover::after {
  width: 100%;
}

.navbar-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
}

.navbar-toggle span {
  width: 24px;
  height: 2px;
  background-color: var(--neutral-900);
  transition: all var(--duration-fast) var(--easing-default);
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
  position: relative;
  height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  margin-top: 80px;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.hero-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(31, 30, 27, 0.3), transparent 60%);
  z-index: 0;
}

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

.hero-headline {
  font-family: var(--font-display);
  font-size: var(--text-5xl);
  font-weight: var(--font-bold);
  line-height: var(--leading-tight);
  color: white;
  margin-bottom: var(--space-lg);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.hero-tagline {
  font-size: var(--text-xl);
  font-weight: var(--font-normal);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--space-xl);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-block;
  padding: 20px 40px;
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: var(--font-semibold);
  letter-spacing: 0.02em;
  border-radius: var(--radius-md);
  transition: all var(--duration-fast) var(--easing-default);
  text-align: center;
  min-width: 200px;
}

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

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

.btn-primary:active {
  background-color: var(--primary-900);
  transform: translateY(0);
}

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

.btn-secondary:hover {
  border-color: var(--primary-500);
  color: var(--primary-700);
}

/* ============================================
   Section Styles
   ============================================ */
.section {
  padding: var(--space-4xl) var(--space-xl);
  max-width: 1400px;
  margin: 0 auto;
}

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

.section-title {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: var(--font-bold);
  line-height: var(--leading-tight);
  color: var(--neutral-900);
  margin-bottom: var(--space-lg);
}

.section-subtitle {
  font-size: var(--text-lg);
  color: var(--neutral-600);
  max-width: 700px;
  margin: 0 auto;
  line-height: var(--leading-relaxed);
}

/* ============================================
   About Section
   ============================================ */
.about-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.about-text {
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  color: var(--neutral-800);
  margin-bottom: var(--space-lg);
}

.about-mission {
  background-color: var(--bg-surface);
  padding: var(--space-2xl);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  margin-top: var(--space-xl);
}

.about-mission h3 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: var(--font-bold);
  color: var(--primary-700);
  margin-bottom: var(--space-md);
}

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

.product-card {
  background-color: var(--bg-surface);
  padding: var(--space-2xl);
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  transition: all var(--duration-normal) var(--easing-default);
}

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

.product-image {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-lg);
}

.product-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: var(--font-bold);
  color: var(--neutral-900);
  margin-bottom: var(--space-md);
}

.product-card p {
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--neutral-800);
  margin-bottom: var(--space-md);
}

.product-features {
  list-style: none;
  margin-top: var(--space-lg);
}

.product-features li {
  padding: var(--space-sm) 0;
  padding-left: var(--space-lg);
  position: relative;
  color: var(--neutral-800);
}

.product-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  background-color: var(--primary-500);
  border-radius: 50%;
}

/* ============================================
   Why Choose Section
   ============================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-xl);
  margin-top: var(--space-3xl);
}

.feature-card {
  background-color: var(--bg-surface);
  padding: var(--space-2xl);
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  text-align: center;
  transition: all var(--duration-normal) var(--easing-default);
}

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

.feature-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon svg {
  width: 48px;
  height: 48px;
  stroke: var(--primary-500);
  fill: none;
  stroke-width: 2;
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  color: var(--neutral-900);
  margin-bottom: var(--space-md);
}

.feature-card p {
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--neutral-800);
}

/* ============================================
   Contact Form Section
   ============================================ */
.contact-container {
  max-width: 700px;
  margin: 0 auto;
  background-color: var(--bg-surface);
  padding: var(--space-2xl);
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

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

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

.form-input,
.form-textarea {
  width: 100%;
  height: 56px;
  padding: var(--space-md);
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--neutral-800);
  background-color: var(--bg-surface);
  border: 2px solid var(--neutral-200);
  border-radius: var(--radius-sm);
  transition: all var(--duration-fast) var(--easing-default);
}

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

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary-500);
  box-shadow: 0 0 0 3px rgba(199, 133, 106, 0.1);
}

.form-input.error,
.form-textarea.error {
  border-color: var(--error);
}

.form-input.success,
.form-textarea.success {
  border-color: var(--success);
}

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

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

.form-submit {
  width: 100%;
  margin-top: var(--space-lg);
}

/* ============================================
   FAQ Section
   ============================================ */
.faq-container {
  max-width: 900px;
  margin: 0 auto;
}

.faq-item {
  background-color: var(--bg-surface);
  padding: var(--space-2xl);
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  margin-bottom: var(--space-lg);
}

.faq-item h3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  color: var(--neutral-900);
  margin-bottom: var(--space-md);
}

.faq-item p {
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--neutral-800);
  margin-bottom: var(--space-md);
}

.faq-item ul {
  list-style: none;
  margin-top: var(--space-md);
}

.faq-item li {
  padding: var(--space-xs) 0;
  padding-left: var(--space-lg);
  position: relative;
  color: var(--neutral-800);
}

.faq-item li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  background-color: var(--primary-500);
  border-radius: 50%;
}

/* ============================================
   Footer
   ============================================ */
.footer {
  background-color: var(--neutral-900);
  color: rgba(255, 255, 255, 0.9);
  padding: var(--space-4xl) var(--space-xl) var(--space-xl);
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
}

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

.footer-section h3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  color: white;
  margin-bottom: var(--space-lg);
}

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

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

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: var(--space-sm);
}

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

/* ============================================
   Cookie Banner
   ============================================ */
.cookie-banner {
  position: fixed;
  bottom: var(--space-lg);
  left: var(--space-lg);
  right: var(--space-lg);
  max-width: 1200px;
  margin: 0 auto;
  background-color: var(--neutral-900);
  color: rgba(255, 255, 255, 0.9);
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-modal);
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  z-index: 2000;
  animation: slideUp var(--duration-slow) var(--easing-default);
}

.cookie-banner.show {
  display: flex;
}

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

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

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

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

.cookie-btn {
  padding: 12px 24px;
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  border-radius: var(--radius-sm);
  transition: all var(--duration-fast) var(--easing-default);
}

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

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

/* ============================================
   Policy Pages
   ============================================ */
.policy-page {
  max-width: 900px;
  margin: 0 auto;
  padding: var(--space-5xl) var(--space-xl) var(--space-4xl);
}

.policy-page h1 {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: var(--font-bold);
  color: var(--neutral-900);
  margin-bottom: var(--space-lg);
}

.policy-page h2 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: var(--font-bold);
  color: var(--neutral-900);
  margin-top: var(--space-3xl);
  margin-bottom: var(--space-lg);
}

.policy-page h3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: var(--font-semibold);
  color: var(--neutral-900);
  margin-top: var(--space-xl);
  margin-bottom: var(--space-md);
}

.policy-page p {
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--neutral-800);
  margin-bottom: var(--space-lg);
}

.policy-page ul {
  margin: var(--space-lg) 0;
  padding-left: var(--space-xl);
}

.policy-page li {
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--neutral-800);
  margin-bottom: var(--space-sm);
}

.policy-updated {
  font-size: var(--text-sm);
  color: var(--neutral-600);
  font-style: italic;
  margin-bottom: var(--space-xl);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--primary-500);
  font-weight: var(--font-medium);
  margin-bottom: var(--space-xl);
}

.back-link:hover {
  color: var(--primary-700);
}

/* ============================================
   Responsive Design
   ============================================ */

/* Tablet (768px) */
@media (max-width: 768px) {
  :root {
    --text-5xl: 48px;
    --text-4xl: 40px;
    --text-3xl: 36px;
  }
  
  .navbar-links {
    display: none;
  }
  
  .navbar-toggle {
    display: flex;
  }
  
  .hero {
    height: 500px;
  }
  
  .hero-headline {
    font-size: var(--text-3xl);
  }
  
  .hero-tagline {
    font-size: var(--text-lg);
  }
  
  .section {
    padding: var(--space-3xl) var(--space-lg);
  }
  
  .section-title {
    font-size: var(--text-3xl);
  }
  
  .product-grid,
  .features-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
  
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .cookie-actions {
    width: 100%;
  }
  
  .cookie-btn {
    flex: 1;
  }
}

/* Mobile (640px) */
@media (max-width: 640px) {
  .hero {
    height: 400px;
  }
  
  .btn {
    padding: 16px 32px;
    min-width: 160px;
  }
  
  .navbar-container {
    padding: 0 var(--space-lg);
  }
  
  .product-card,
  .feature-card,
  .faq-item {
    padding: var(--space-xl);
  }
  
  .contact-container {
    padding: var(--space-xl);
  }
  
  .cookie-banner {
    bottom: 0;
    left: 0;
    right: 0;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
  }
}

/* Focus Styles for Accessibility */
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--primary-500);
  outline-offset: 2px;
}
