/* ============================================
   Nordic Artisan Luxury - Design System
   ============================================ */

:root {
  /* Colors */
  --color-charcoal: #1A1A1A;
  --color-walnut: #7B4F32;
  --color-sand: #E2D6C7;
  --color-gold: #C6A768;
  --color-frost: #DDE1E4;
  --color-primary: #2c6e49;
  --color-secondary: #f4f1de;
  --color-white: #FFFFFF;
  --color-text: #1A1A1A;
  --color-text-light: #666666;
  
  /* Typography */
  --font-heading: 'Cormorant Upright', serif;
  --font-subheading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-primary: 'Poppins', sans-serif;
  
  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-xxl: 4rem;
  
  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  
  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.2);
  --shadow-glow: 0 0 20px rgba(198, 167, 104, 0.3);
  
  /* Transitions */
  --transition-fast: 0.3s ease;
  --transition-medium: 0.5s ease;
  --transition-slow: 0.8s ease;
  
  /* Glass Effect */
  --glass-bg: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(255, 255, 255, 0.2);
  --glass-backdrop: blur(10px);
}

/* ============================================
   Reset & Base Styles
   ============================================ */

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

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

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-charcoal);
  background-image: 
    linear-gradient(135deg, var(--color-charcoal) 0%, transparent 50%),
    url('../images/1.webp');
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
  line-height: 1.6;
  min-height: 100vh;
  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(--space-md);
  color: var(--color-sand);
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-family: var(--font-subheading);
}

p {
  margin-bottom: var(--space-md);
  color: var(--color-frost);
}

a {
  color: var(--color-gold);
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

/* ============================================
   Header
   ============================================ */

.site-header {
  background: rgba(26, 26, 26, 0.85);
  backdrop-filter: var(--glass-backdrop);
  padding: var(--space-md) var(--space-lg);
  position: relative;
  z-index: 1000;
  transition: transform var(--transition-medium);
}

.site-header.hidden {
  transform: translateY(-100%);
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.brand-text {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--color-gold);
  font-weight: 600;
  letter-spacing: 1px;
}

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

.nav-link {
  color: var(--color-frost);
  font-family: var(--font-subheading);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  padding: var(--space-sm) 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-gold);
  transition: width var(--transition-fast);
}

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

.burger-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--color-gold);
  font-size: 1.5rem;
  cursor: pointer;
  padding: var(--space-sm);
}

/* ============================================
   Main Content
   ============================================ */

main {
  min-height: calc(100vh - 200px);
  padding: var(--space-xl) var(--space-lg);
}

.content-section {
  max-width: 1400px;
  margin: 0 auto var(--space-xxl);
  padding: var(--space-xl);
  background: var(--glass-bg);
  backdrop-filter: var(--glass-backdrop);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.section-title {
  text-align: center;
  margin-bottom: var(--space-xl);
  position: relative;
  padding-bottom: var(--space-md);
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
}

/* ============================================
   Hero Section
   ============================================ */

.hero-banner {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-xxl) var(--space-lg);
  margin-bottom: var(--space-xxl);
  background: linear-gradient(135deg, rgba(26, 26, 26, 0.9), rgba(123, 79, 50, 0.3));
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  margin-bottom: var(--space-lg);
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
  font-family: var(--font-subheading);
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--color-frost);
  margin-bottom: var(--space-xl);
}

.cta-button {
  display: inline-block;
  padding: var(--space-md) var(--space-xl);
  background: var(--color-walnut);
  color: var(--color-white);
  border: 2px solid var(--color-gold);
  border-radius: var(--radius-md);
  font-family: var(--font-subheading);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.cta-button:hover {
  background: var(--color-gold);
  color: var(--color-charcoal);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

/* ============================================
   Image Gallery
   ============================================ */

.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
  margin: var(--space-xl) 0;
}

.image-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-medium);
  background: var(--glass-bg);
  backdrop-filter: var(--glass-backdrop);
  border: 1px solid var(--glass-border);
}

.image-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-lg);
}

.image-card img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform var(--transition-slow);
}

.image-card:hover img {
  transform: scale(1.1);
}

.image-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(26, 26, 26, 0.9), transparent);
  padding: var(--space-lg);
  transform: translateY(100%);
  transition: transform var(--transition-medium);
}

.image-card:hover .image-overlay {
  transform: translateY(0);
}

/* ============================================
   Material Cards (3D Hover Effect)
   ============================================ */

.material-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: var(--space-lg);
  margin: var(--space-xl) 0;
}

.material-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-backdrop);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  transition: all var(--transition-medium);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.material-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(198, 167, 104, 0.1) 0%, transparent 70%);
  opacity: 0;
  transition: opacity var(--transition-medium);
}

.material-card:hover::before {
  opacity: 1;
}

.material-card:hover {
  transform: perspective(1000px) rotateY(5deg) rotateX(5deg) translateZ(20px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  border-color: var(--color-gold);
}

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

.material-name {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--color-gold);
  margin-bottom: var(--space-sm);
}

.material-specs {
  font-size: 0.9rem;
  color: var(--color-frost);
  margin-bottom: var(--space-sm);
}

.material-styles {
  font-size: 0.85rem;
  color: var(--color-text-light);
  font-style: italic;
}

/* ============================================
   Production Process
   ============================================ */

.process-timeline {
  position: relative;
  padding: var(--space-xl) 0;
}

.process-step {
  display: flex;
  gap: var(--space-xl);
  margin-bottom: var(--space-xxl);
  opacity: 0;
  transform: translateY(30px);
  transition: all var(--transition-slow);
}

.process-step.visible {
  opacity: 1;
  transform: translateY(0);
}

.process-step:nth-child(even) {
  flex-direction: row-reverse;
}

.process-visual {
  flex: 1;
  min-height: 300px;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-backdrop);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.process-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.process-step:hover .process-visual img {
  transform: scale(1.1);
}

.process-content {
  flex: 1;
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.process-number {
  font-family: var(--font-heading);
  font-size: 3rem;
  color: var(--color-gold);
  opacity: 0.3;
  margin-bottom: var(--space-sm);
}

/* ============================================
   Portfolio Catalog
   ============================================ */

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  justify-content: center;
  margin-bottom: var(--space-xl);
}

.filter-btn {
  padding: var(--space-sm) var(--space-lg);
  background: var(--glass-bg);
  backdrop-filter: var(--glass-backdrop);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  color: var(--color-frost);
  font-family: var(--font-subheading);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--color-walnut);
  border-color: var(--color-gold);
  color: var(--color-gold);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-xl);
  margin: var(--space-xl) 0;
}

.portfolio-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-backdrop);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-medium);
  cursor: pointer;
}

.portfolio-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-gold);
}

.portfolio-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.portfolio-info {
  padding: var(--space-lg);
}

.portfolio-category {
  font-family: var(--font-subheading);
  font-size: 0.85rem;
  color: var(--color-gold);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: var(--space-sm);
}

.portfolio-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--color-sand);
  margin-bottom: var(--space-sm);
}

.portfolio-description {
  font-size: 0.9rem;
  color: var(--color-frost);
}

/* ============================================
   Contact Form
   ============================================ */

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  margin: var(--space-xl) 0;
}

.contact-form {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-backdrop);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
}

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

.form-label {
  display: block;
  font-family: var(--font-subheading);
  color: var(--color-frost);
  margin-bottom: var(--space-sm);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: var(--space-md);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: all var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-gold);
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 0 3px rgba(198, 167, 104, 0.2);
}

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

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

.checkbox-input {
  margin-top: 4px;
  cursor: pointer;
}

.checkbox-label {
  font-size: 0.9rem;
  color: var(--color-frost);
  line-height: 1.5;
}

.submit-button {
  width: 100%;
  padding: var(--space-md) var(--space-xl);
  background: var(--color-walnut);
  color: var(--color-white);
  border: 2px solid var(--color-gold);
  border-radius: var(--radius-md);
  font-family: var(--font-subheading);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.submit-button:hover {
  background: var(--color-gold);
  color: var(--color-charcoal);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.map-container {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-backdrop);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 100%;
  min-height: 400px;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.contact-info {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-backdrop);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  margin-top: var(--space-xl);
}

.contact-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
  color: var(--color-frost);
}

.contact-icon {
  font-size: 1.5rem;
  color: var(--color-gold);
}

/* ============================================
   Footer
   ============================================ */

.site-footer {
  background: rgba(26, 26, 26, 0.95);
  backdrop-filter: var(--glass-backdrop);
  padding: var(--space-xl) var(--space-lg);
  margin-top: var(--space-xxl);
  border-top: 1px solid var(--glass-border);
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: var(--space-xl);
}

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

.footer-menu-title {
  font-family: var(--font-heading);
  color: var(--color-gold);
  margin-bottom: var(--space-md);
  font-size: 1.2rem;
}

.footer-link {
  display: block;
  color: var(--color-frost);
  margin-bottom: var(--space-sm);
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: var(--color-gold);
  padding-left: var(--space-sm);
}

.footer-copyright {
  grid-column: 1 / -1;
  text-align: center;
  padding-top: var(--space-lg);
  border-top: 1px solid var(--glass-border);
  color: var(--color-text-light);
  font-size: 0.9rem;
}

/* ============================================
   Privacy Popup
   ============================================ */

.privacy-popup {
  position: fixed;
  bottom: var(--space-lg);
  right: var(--space-lg);
  max-width: 400px;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-backdrop);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-lg);
  z-index: 10000;
  transform: translateY(150%);
  transition: transform var(--transition-medium);
}

.privacy-popup.show {
  transform: translateY(0);
}

.privacy-content {
  color: var(--color-frost);
  font-size: 0.9rem;
  margin-bottom: var(--space-md);
}

.privacy-buttons {
  display: flex;
  gap: var(--space-md);
}

.privacy-btn {
  flex: 1;
  padding: var(--space-sm) var(--space-md);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  font-family: var(--font-subheading);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.privacy-btn.accept {
  background: var(--color-walnut);
  color: var(--color-white);
  border-color: var(--color-gold);
}

.privacy-btn.accept:hover {
  background: var(--color-gold);
  color: var(--color-charcoal);
}

.privacy-btn.decline {
  background: transparent;
  color: var(--color-frost);
}

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

/* ============================================
   Thank You Page
   ============================================ */

.thank-you-container {
  text-align: center;
  max-width: 600px;
  margin: var(--space-xxl) auto;
  padding: var(--space-xxl);
  background: var(--glass-bg);
  backdrop-filter: var(--glass-backdrop);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

.thank-you-icon {
  font-size: 4rem;
  color: var(--color-gold);
  margin-bottom: var(--space-lg);
}

.thank-you-title {
  color: var(--color-sand);
  margin-bottom: var(--space-lg);
}

.thank-you-message {
  color: var(--color-frost);
  font-size: 1.1rem;
  line-height: 1.8;
}

/* ============================================
   404 Page
   ============================================ */

.error-container {
  text-align: center;
  max-width: 600px;
  margin: var(--space-xxl) auto;
  padding: var(--space-xxl);
  background: var(--glass-bg);
  backdrop-filter: var(--glass-backdrop);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

.error-code {
  font-family: var(--font-heading);
  font-size: 6rem;
  color: var(--color-gold);
  margin-bottom: var(--space-md);
}

.error-title {
  color: var(--color-sand);
  margin-bottom: var(--space-lg);
}

.error-message {
  color: var(--color-frost);
  margin-bottom: var(--space-xl);
}

/* ============================================
   Products Section
   ============================================ */

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-xl);
  margin: var(--space-xl) 0;
}

.product-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-backdrop);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-medium);
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-gold);
}

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

.product-info {
  padding: var(--space-lg);
}

.product-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--color-gold);
  margin-bottom: var(--space-sm);
}

.product-description {
  color: var(--color-frost);
  margin-bottom: var(--space-md);
  font-size: 0.95rem;
}

.product-price {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  color: var(--color-sand);
  font-weight: 600;
}

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

@media (max-width: 768px) {
  .burger-toggle {
    display: block;
  }
  
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(26, 26, 26, 0.98);
    backdrop-filter: var(--glass-backdrop);
    flex-direction: column;
    padding: var(--space-xxl) var(--space-lg);
    transition: right var(--transition-medium);
    z-index: 9999;
    border-left: 1px solid var(--glass-border);
  }
  
  .nav-menu.active {
    right: 0;
  }
  
  .nav-link {
    font-size: 1.1rem;
    padding: var(--space-md) 0;
  }
  
  .contact-container {
    grid-template-columns: 1fr;
  }
  
  .process-step {
    flex-direction: column !important;
  }
  
  .process-visual {
    min-height: 200px;
  }
  
  .hero-banner {
    min-height: 50vh;
  }
  
  .image-grid,
  .material-grid,
  .portfolio-grid,
  .products-grid {
    grid-template-columns: 1fr;
  }
  
  .privacy-popup {
    right: var(--space-md);
    left: var(--space-md);
    max-width: none;
  }
  
  main {
    padding: var(--space-lg) var(--space-md);
  }
  
  .content-section {
    padding: var(--space-lg);
  }
}

@media (max-width: 480px) {
  html {
    font-size: 14px;
  }
  
  .site-header {
    padding: var(--space-sm) var(--space-md);
  }
  
  .hero-banner {
    min-height: 40vh;
    padding: var(--space-lg) var(--space-md);
  }
  
  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .filter-buttons {
    flex-direction: column;
  }
  
  .filter-btn {
    width: 100%;
  }
}

@media (max-width: 320px) {
  html {
    font-size: 12px;
  }
  
  .content-section {
    padding: var(--space-md);
  }
  
  .material-card,
  .portfolio-card,
  .product-card {
    padding: var(--space-md);
  }
}

/* ============================================
   Animations
   ============================================ */

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

.fade-in {
  animation: fadeIn var(--transition-slow) ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.slide-in {
  animation: slideIn var(--transition-medium) ease-out;
}

/* ============================================
   Utility Classes
   ============================================ */

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

.mt-lg {
  margin-top: var(--space-lg);
}

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

.hidden {
  display: none;
}

