/* ============================================
   UPcycled Furniture Refinishing - Stylesheet
   Organic Industrialism Design System
   ============================================ */

/* CSS Variables */
:root {
  /* Color Palette */
  --color-primary: #373737; /* Raw Concrete */
  --color-secondary: #E3C5A8; /* Linseed Oil */
  --color-accent: #1B3022; /* Deep Forest */
  --color-highlight: #F9F1E7; /* Varnish Glow */
  --color-text-dark: #1a1a1a;
  --color-text-light: #ffffff;
  --color-text-muted: #666666;
  
  /* Typography */
  --font-primary: 'Archivo Black', 'Tenor Sans', sans-serif;
  --font-secondary: 'Inter', 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;
  
  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.2);
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  /* Layout */
  --max-width: 1200px;
  --header-height: 80px;
}

/* 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-secondary);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text-dark);
  background-color: var(--color-highlight);
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: var(--space-md);
  color: var(--color-text-dark);
}

h1 {
  font-size: clamp(1.5rem, 4vw, 3rem);
}

h2 {
  font-size: clamp(1.3rem, 3vw, 2rem);
}

h3 {
  font-size: clamp(1rem, 2vw, 1.2rem);
}

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

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

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

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

/* Header */
.site-header {
  position: relative;
  width: 100%;
  background-color: rgba(249, 241, 231, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--color-secondary);
  z-index: 1000;
}

.header-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-md) var(--space-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.brand-name {
  font-family: var(--font-primary);
  font-size: clamp(1rem, 1.5vw, 1.35rem);
  color: var(--color-primary);
  font-weight: 900;
}

.nav-menu {
  display: flex;
  list-style: none;
  align-items: center;
}

.nav-menu li a {
  font-family: var(--font-secondary);
  font-size: 0.95rem;
  color: var(--color-text-dark);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: var(--space-sm) var(--space-md);
  transition: all var(--transition-base);
}

.nav-menu li a:hover {
  color: var(--color-accent);
  background-color: var(--color-secondary);
  border-radius: var(--radius-sm);
}

/* Burger Menu */
.burger-toggle {
  display: none;
  background: none;
  border: 2px solid var(--color-primary);
  cursor: pointer;
  padding: var(--space-sm);
  width: 44px;
  height: 44px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  transition: all var(--transition-base);
  position: absolute;
  right: var(--space-lg);
  top: 50%;
  transform: translateY(-50%);
  z-index: 10001;
}

.burger-toggle:hover {
  background-color: var(--color-secondary);
}

.burger-line {
  width: 24px;
  height: 2px;
  background-color: var(--color-primary);
  transition: all var(--transition-base);
}

.burger-toggle.active .burger-line:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.burger-toggle.active .burger-line:nth-child(2) {
  opacity: 0;
}

.burger-toggle.active .burger-line:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Navigation Menu - Always separate from header */
.nav-menu {
  display: flex;
  list-style: none;
  align-items: center;
  margin-right: 60px;
}
.footer-section p{color: white}
.footer-bottom p{color: white}
/* Mobile Menu Overlay */
.menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.menu-overlay.active {
  display: block;
  opacity: 1;
}

@media (max-width: 1023px) {
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background-color: var(--color-highlight);
    border-left: 2px solid var(--color-secondary);
    flex-direction: column;
    padding: var(--space-xxl) var(--space-lg);
    transition: right var(--transition-base);
    z-index: 1000;
    box-shadow: -4px 0 16px rgba(0, 0, 0, 0.1);
    margin-right: 0;
    justify-content: flex-start;
    padding-top: 80px;
  }
  
  .nav-menu.active {
    right: 0;
  }
  
  .nav-menu li {
    width: 100%;
  }
  
  .nav-menu li a {
    display: block;
    width: 100%;
    padding: var(--space-md);
    text-align: left;
  }
  
  .burger-toggle {
    display: flex;
    position: absolute;
    right: var(--space-lg);
    top: 50%;
    transform: translateY(-50%);
  }
}

/* Main Content */
main {
  min-height: calc(100vh - 200px);
}

/* Full-Width Banner Sections */
.hero-banner {
  position: relative;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.banner-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.banner-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}

.banner-content {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  width: 100%;
  padding: var(--space-xl) var(--space-lg);
  text-align: center;
  color: var(--color-text-dark);
  background-color: rgba(249, 241, 231, 0.85);
  backdrop-filter: blur(5px);
  margin: var(--space-lg);
  border-radius: var(--radius-md);
}

.banner-content h1 {
  color: var(--color-text-dark);
  text-shadow: 2px 2px 4px rgba(249, 241, 231, 0.8);
  margin-bottom: var(--space-lg);
}

.banner-content p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--color-text-dark);
  max-width: 800px;
  margin: 0 auto var(--space-lg);
  text-shadow: 1px 1px 2px rgba(249, 241, 231, 0.8);
}

/* Before/After Slider */
.before-after-container {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: var(--space-xl) auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.slider-wrapper {
  position: relative;
  width: 100%;
  padding-top: 75%; /* 4:3 aspect ratio */
  overflow: hidden;
}

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

.slider-image.before {
  z-index: 2;
  clip-path: inset(0 50% 0 0);
}

.slider-image.after {
  z-index: 1;
}

.slider-handle {
  position: absolute;
  top: 0;
  left: 50%;
  width: 4px;
  height: 100%;
  background-color: var(--color-accent);
  cursor: ew-resize;
  z-index: 3;
  transform: translateX(-50%);
}

.slider-handle::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  background-color: var(--color-accent);
  border: 3px solid var(--color-highlight);
  border-radius: 50%;
  box-shadow: var(--shadow-md);
}

/* Section Styles */
.content-section {
  padding: var(--space-xxl) var(--space-lg);
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
}

.content-section > * {
  text-align: left;
}

.content-section > .section-title {
  text-align: center;
}

.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: 3px;
  background: linear-gradient(90deg, transparent, var(--color-secondary), transparent);
}

/* Grid Layouts */
.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-xl);
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding: 0 var(--space-lg);
}

.grid-item {
  background-color: var(--color-highlight);
  border: 2px solid var(--color-secondary);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  transition: all var(--transition-base);
}

.grid-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-accent);
}

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

/* Material Borders */
.material-border {
  border: 3px solid;
  border-image: linear-gradient(45deg, var(--color-secondary), var(--color-accent), var(--color-secondary)) 1;
  border-radius: var(--radius-md);
  padding: var(--space-lg);
}

/* Brutalist Blocks */
.brutalist-block {
  background-color: var(--color-primary);
  color: var(--color-text-light);
  padding: var(--space-xl);
  margin: var(--space-lg) 0;
  position: relative;
}

.brutalist-block::before {
  content: '';
  position: absolute;
  top: -10px;
  left: -10px;
  width: 100%;
  height: 100%;
  background-color: var(--color-accent);
  z-index: -1;
}

.brutalist-block h2,
.brutalist-block h3 {
  color: var(--color-text-light);
}

.brutalist-block p {
  color: rgba(255, 255, 255, 0.9);
}

/* Contact Form */
.contact-form {
  max-width: 600px;
  margin: var(--space-xl) auto;
  padding: var(--space-xl);
  background-color: var(--color-highlight);
  border: 2px solid var(--color-secondary);
  border-radius: var(--radius-lg);
}

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

.form-group label {
  display: block;
  margin-bottom: var(--space-sm);
  font-family: var(--font-secondary);
  font-weight: 600;
  color: var(--color-text-dark);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: var(--space-md);
  border: 2px solid var(--color-secondary);
  border-radius: var(--radius-sm);
  font-family: var(--font-secondary);
  font-size: 1rem;
  background-color: var(--color-highlight);
  transition: border-color var(--transition-fast);
}

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

.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;
}

.checkbox-group label {
  margin-bottom: 0;
  font-weight: normal;
  font-size: 0.9rem;
}

.btn-primary {
  display: inline-block;
  padding: var(--space-md) var(--space-xl);
  background-color: var(--color-accent);
  color: var(--color-text-light);
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-secondary);
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  margin-top: 10px;
  transition: all var(--transition-base);
}

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

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-xl);
  margin-top: var(--space-xl);
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding: 0 var(--space-lg);
}

.product-card {
  background-color: var(--color-highlight);
  border: 2px solid var(--color-secondary);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition-base);
}

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

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

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

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

.product-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-accent);
  margin-top: var(--space-md);
}

/* Google Maps */
.map-container {
  width: 100%;
  height: 400px;
  margin: var(--space-xl) 0;
  border: 2px solid var(--color-secondary);
  border-radius: var(--radius-md);
  overflow: hidden;
}

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

/* Footer */
.site-footer {
  background-color: var(--color-primary);
  color: var(--color-text-light);
  padding: var(--space-xl) var(--space-lg);
  margin-top: var(--space-xxl);
}

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

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

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

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

.footer-section a {
  color: rgba(255, 255, 255, 0.8);
  transition: color var(--transition-fast);
}

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

.footer-bottom {
  text-align: center;
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.7);
}

/* Privacy Popup */
.privacy-popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 10000;
  align-items: center;
  justify-content: center;
}

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

.popup-content {
  background-color: var(--color-highlight);
  padding: var(--space-xl);
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  border-radius: var(--radius-lg);
  position: relative;
}

.popup-close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: var(--color-primary);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color var(--transition-fast);
}

.popup-close:hover {
  background-color: var(--color-secondary);
}

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

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

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

.date {
  font-style: italic;
  color: var(--color-text-muted);
}

/* Responsive Design */
@media (max-width: 768px) {
  :root {
    --space-xl: 2rem;
    --space-xxl: 3rem;
  }
  
  .header-container {
    padding: var(--space-md);
  }
  
  .content-section {
    padding: var(--space-xl) var(--space-md);
  }
  
  .hero-banner {
    min-height: 40vh;
  }
  
  .banner-content {
    margin: var(--space-md);
    padding: var(--space-lg);
  }
  
  .grid-container {
    grid-template-columns: 1fr;
    padding: 0 var(--space-md);
  }
  
  .products-grid {
    grid-template-columns: 1fr;
    padding: 0 var(--space-md);
  }
  
  .footer-container {
    grid-template-columns: 1fr;
  }
  
  .nav-menu {
    width: 280px;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 14px;
  }
  
  .banner-content {
    padding: var(--space-lg) var(--space-md);
  }
  
  .contact-form {
    padding: var(--space-lg);
  }
}

/* 404 Page Styles */
.error-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-xxl);
}

.error-code {
  font-size: clamp(4rem, 10vw, 8rem);
  font-family: var(--font-primary);
  color: var(--color-accent);
  margin-bottom: var(--space-md);
}

/* Thank You Page */
.thank-you-section {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-xxl);
}

.thank-you-message {
  max-width: 600px;
  padding: var(--space-xl);
  background-color: var(--color-highlight);
  border: 2px solid var(--color-secondary);
  border-radius: var(--radius-lg);
}

