/* ============================================
   CSS Variables - Warm Wood-Inspired Palette
   ============================================ */
:root {
  /* Colors */
  --color-primary: #2c6e49;
  --color-secondary: #f4f1de;
  --sawdust-beige: #E8DCC4;
  --soft-pinewood: #D7C6A4;
  --burnt-umber-grain: #8F634A;
  --walnut-char: #3C2B22;
  --carved-amber: #D19E5A;
  --graphite-sketch: #565656;
  --white-cream: #FAF8F3;
  
  /* Typography */
  --font-primary: 'Baskerville', 'Georgia', serif;
  --font-body: 'Karla', 'Arial', sans-serif;
  
  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-xxl: 4rem;
  
  /* Borders & Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --border-sketch: 2px solid var(--graphite-sketch);
  
  /* Shadows */
  --shadow-soft: 0 4px 12px rgba(60, 43, 34, 0.1);
  --shadow-workshop: 0 8px 24px rgba(60, 43, 34, 0.15);
  --shadow-texture: 0 2px 8px rgba(143, 99, 74, 0.2);
  
  /* Transitions */
  --transition-fast: 0.3s ease;
  --transition-smooth: 0.5s ease;
  --transition-slow: 0.8s ease;
}

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

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

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--walnut-char);
  background-color: var(--sawdust-beige);
  overflow-x: hidden;
}

/* ============================================
   Typography
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  font-weight: 600;
  line-height: 1.2;
  color: var(--burnt-umber-grain);
  margin-bottom: var(--space-md);
}

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

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

h3 {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
}

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

a {
  color: var(--burnt-umber-grain);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--carved-amber);
}

/* ============================================
   Header & Navigation
   ============================================ */
.site-header {
  background: linear-gradient(135deg, var(--soft-pinewood) 0%, var(--sawdust-beige) 100%);
  padding: var(--space-md) var(--space-lg);
  box-shadow: var(--shadow-soft);
  position: relative;
  z-index: 1000;
  transition: transform var(--transition-smooth);
}

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

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

.brand-name {
  flex: 0 0 auto;
}

.header-nav-wrapper {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  margin-left: auto;
}

.brand-name {
  font-family: var(--font-primary);
  font-size: clamp(1.5rem, 4vw, 1.7rem);
  font-weight: 700;
  color: var(--walnut-char);
  letter-spacing: 0.05em;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--walnut-char);
  cursor: pointer;
  padding: var(--space-sm);
  transition: color var(--transition-fast);
  order: 999;
  margin-left: auto;
}

.nav-toggle:hover {
  color: var(--carved-amber);
}

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

.main-nav li a {
  font-size: 1rem;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  transition: background-color var(--transition-fast);
}

.main-nav li a:hover {
  background-color: rgba(209, 158, 90, 0.1);
}

/* Mobile Navigation */
@media (max-width: 768px) {
  .header-container {
    flex-wrap: wrap;
  }
  
  .nav-toggle {
    display: block;
    order: 999;
    margin-left: auto;
  }
  
  .header-nav-wrapper {
    width: 100%;
    order: 999;
  }
  
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--soft-pinewood);
    flex-direction: column;
    padding: var(--space-lg);
    box-shadow: var(--shadow-workshop);
    gap: var(--space-md);
    z-index: 1001;
  }
  
  .main-nav.active {
    display: flex;
  }
  
  .main-nav li {
    width: 100%;
  }
  
  .main-nav li a {
    display: block;
    width: 100%;
    text-align: center;
    padding: var(--space-md);
  }
  
  .hero-section {
    min-height: 300px;
  }
}

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

.content-wrapper {
  max-width: 1200px;
  margin: 0 auto;
}

/* ============================================
   Hero Section
   ============================================ */
.hero-section {
  text-align: center;
  padding: var(--space-xxl) var(--space-lg);
  background: url('../images/35mm-film-photography-handmade-wooden-dcor-project__37350.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-xl);
  box-shadow: var(--shadow-soft);
  position: relative;
  min-height: 400px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(232, 220, 196, 0.3);
  border-radius: var(--radius-lg);
  z-index: 0;
}

.hero-section > * {
  position: relative;
  z-index: 1;
}

/* Different banner images for different pages */
.hero-toolkit {
  background: linear-gradient(135deg, rgba(250, 248, 243, 0.95) 0%, rgba(232, 220, 196, 0.95) 100%),
              url('../images/35mm-film-photography-handmade-wooden-dcor-project__37342.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-projects {
  background: linear-gradient(135deg, rgba(250, 248, 243, 0.95) 0%, rgba(232, 220, 196, 0.95) 100%),
              url('../images/35mm-film-photography-handmade-wooden-dcor-project__37344.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-finishing {
  background: linear-gradient(135deg, rgba(250, 248, 243, 0.95) 0%, rgba(232, 220, 196, 0.95) 100%),
              url('../images/the-style-is-candid-image-photography-with-natural__37343.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-contact {
  background: linear-gradient(135deg, rgba(250, 248, 243, 0.95) 0%, rgba(232, 220, 196, 0.95) 100%),
              url('../images/the-style-is-candid-image-photography-with-natural__37349.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  margin-bottom: var(--space-md);
  color: var(--burnt-umber-grain);
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: var(--graphite-sketch);
  max-width: 800px;
  margin: 0 auto var(--space-lg);
}

/* ============================================
   Sections
   ============================================ */
.content-section {
  margin-bottom: var(--space-xxl);
  padding: var(--space-xl) var(--space-lg);
  background: var(--white-cream);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

.content-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--carved-amber), var(--burnt-umber-grain));
}

.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: 60px;
  height: 3px;
  background: var(--carved-amber);
  border-radius: 2px;
}

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

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-texture);
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
  background: var(--soft-pinewood);
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-workshop);
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform var(--transition-smooth);
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* ============================================
   Cards & Grids
   ============================================ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-lg);
  margin: var(--space-xl) 0;
}

.content-card {
  background: var(--white-cream);
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  border: 1px solid rgba(143, 99, 74, 0.1);
}

.content-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-workshop);
}

.card-title {
  color: var(--burnt-umber-grain);
  margin-bottom: var(--space-md);
  font-size: 1.5rem;
}

.card-content {
  color: var(--graphite-sketch);
  line-height: 1.7;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-block;
  padding: var(--space-md) var(--space-xl);
  background: var(--burnt-umber-grain);
  color: var(--white-cream);
  border: none;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: center;
  box-shadow: var(--shadow-soft);
}

.btn:hover {
    color: white;
  background: var(--carved-amber);
  transform: translateY(-2px);
  box-shadow: var(--shadow-workshop);
}

.btn-secondary {
  background: var(--soft-pinewood);
  color: var(--walnut-char);
}

.btn-secondary:hover {
  background: var(--carved-amber);
  color: var(--white-cream);
}

/* ============================================
   Forms
   ============================================ */
.contact-form {
  max-width: 600px;
  margin: var(--space-xl) auto;
  padding: var(--space-xl);
  background: var(--white-cream);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

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

.form-group label {
  display: block;
  margin-bottom: var(--space-sm);
  color: var(--burnt-umber-grain);
  font-weight: 600;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: var(--space-md);
  border: 2px solid var(--soft-pinewood);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--white-cream);
  color: var(--walnut-char);
  transition: border-color var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--carved-amber);
}

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

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

.checkbox-group input[type="checkbox"] {
  width: auto;
  margin-top: 4px;
  cursor: pointer;
}

.checkbox-group label {
  margin-bottom: 0;
  font-weight: normal;
  cursor: pointer;
}

/* ============================================
   Google Maps
   ============================================ */
.map-container {
  margin: var(--space-xl) 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  height: 400px;
}

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

/* ============================================
   Footer
   ============================================ */
.site-footer {
  background: var(--walnut-char);
  color: var(--white-cream);
  padding: var(--space-xl) var(--space-lg);
  margin-top: var(--space-xxl);
}

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

.footer-section h3 {
  color: var(--carved-amber);
  margin-bottom: var(--space-md);
  font-size: 1.25rem;
}

.footer-section ul {
  list-style: none;
}

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

.footer-section a {
  color: var(--sawdust-beige);
  transition: color var(--transition-fast);
}

.footer-section a:hover {
  color: var(--carved-amber);
}

.footer-bottom {
  text-align: center;
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(232, 220, 196, 0.2);
  color: var(--sawdust-beige);
}

/* ============================================
   Privacy Popup
   ============================================ */
.privacy-popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(60, 43, 34, 0.8);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
}

.privacy-popup.active {
  display: flex;
}

.popup-content {
  background: var(--white-cream);
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  max-width: 600px;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: var(--shadow-workshop);
  position: relative;
}

.popup-close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--walnut-char);
  cursor: pointer;
  padding: var(--space-sm);
  transition: color var(--transition-fast);
}

.popup-close:hover {
  color: var(--carved-amber);
}

/* ============================================
   Tool Grid (Toolkit Page)
   ============================================ */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-lg);
  margin: var(--space-xl) 0;
}

.tool-card {
  background: var(--white-cream);
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  border: 2px solid var(--soft-pinewood);
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.tool-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--carved-amber);
  transform: scaleX(0);
  transition: transform var(--transition-fast);
}

.tool-card:hover::before {
  transform: scaleX(1);
}

.tool-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-workshop);
  border-color: var(--carved-amber);
}

.tool-icon {
  font-size: 3rem;
  color: var(--burnt-umber-grain);
  margin-bottom: var(--space-md);
  text-align: center;
}

.tool-name {
  font-size: 1.5rem;
  color: var(--burnt-umber-grain);
  margin-bottom: var(--space-sm);
}

.tool-description {
  color: var(--graphite-sketch);
  margin-bottom: var(--space-md);
}

.tool-alternative {
  padding: var(--space-sm) var(--space-md);
  background: var(--soft-pinewood);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--walnut-char);
  margin-top: var(--space-md);
}

/* ============================================
   Project Cards (Project Library)
   ============================================ */
.project-card {
  background: var(--white-cream);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: all var(--transition-smooth);
  border: 1px solid rgba(143, 99, 74, 0.1);
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-workshop);
}

.project-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

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

.project-meta {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
  flex-wrap: wrap;
}

.meta-badge {
  padding: var(--space-xs) var(--space-md);
  background: var(--soft-pinewood);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: var(--walnut-char);
}

.meta-badge.difficulty-easy {
  background: #d4edda;
  color: #155724;
}

.meta-badge.difficulty-medium {
  background: #fff3cd;
  color: #856404;
}

.meta-badge.difficulty-hard {
  background: #f8d7da;
  color: #721c24;
}

/* ============================================
   Finishing Guide (Finishing Page)
   ============================================ */
.finish-swatch {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-lg);
  margin: var(--space-xl) 0;
}

.swatch-item {
  background: var(--white-cream);
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  text-align: center;
}

.swatch-color {
  width: 100%;
  height: 80px;
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-md);
  box-shadow: var(--shadow-texture);
}

.swatch-name {
  font-weight: 600;
  color: var(--burnt-umber-grain);
  margin-bottom: var(--space-sm);
}

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

.product-card {
  background: var(--white-cream);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: all var(--transition-smooth);
}

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

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

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

.product-title {
  font-size: 1.5rem;
  color: var(--burnt-umber-grain);
  margin-bottom: var(--space-sm);
}

.product-price {
  font-size: 1.25rem;
  color: var(--carved-amber);
  font-weight: 600;
  margin-bottom: var(--space-md);
}

/* ============================================
   Thank You Page
   ============================================ */
.thank-you-container {
  text-align: center;
  padding: var(--space-xxl) var(--space-lg);
  max-width: 600px;
  margin: 0 auto;
}

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

/* ============================================
   Error 404 Page
   ============================================ */
.error-container {
  text-align: center;
  padding: var(--space-xxl) var(--space-lg);
  max-width: 600px;
  margin: 0 auto;
}

.error-code {
  font-size: 6rem;
  color: var(--burnt-umber-grain);
  font-weight: 700;
  margin-bottom: var(--space-md);
}

/* ============================================
   Contact Info
   ============================================ */
.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-lg);
  margin: var(--space-xl) 0;
}

.contact-item {
  background: var(--white-cream);
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  text-align: center;
}

.contact-icon {
  font-size: 2.5rem;
  color: var(--carved-amber);
  margin-bottom: var(--space-md);
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 768px) {
  :root {
    --space-xl: 2rem;
    --space-xxl: 3rem;
  }
  
  main {
    padding: var(--space-lg) var(--space-md);
  }
  
  .hero-section {
    padding: var(--space-xl) var(--space-md);
  }
  
  .content-section {
    padding: var(--space-lg) var(--space-md);
  }
  
  .image-gallery,
  .card-grid,
  .tool-grid,
  .finish-swatch,
  .products-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 14px;
  }
  
  .header-container {
    padding: var(--space-sm);
  }
  
  .popup-content {
    padding: var(--space-lg);
    margin: var(--space-md);
  }
}

@media (max-width: 320px) {
  html {
    font-size: 12px;
  }
  
  main {
    padding: var(--space-md) var(--space-sm);
  }
  
  .content-section {
    padding: var(--space-md) var(--space-sm);
  }
}

/* ============================================
   Utility Classes
   ============================================ */
.text-center {
  text-align: center;
}

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

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

