/* ============================================
   Retro-Futurism & Precision Design System
   Vintage Furniture Restoration Website
   ============================================ */

:root {
  /* Color Palette */
  --color-bg-primary: #1B1B1B;
  --color-bg-secondary: #252525;
  --color-accent-oak: #C4A484;
  --color-accent-steel: #E0E0E0;
  --color-text-primary: #E0E0E0;
  --color-text-secondary: #B0B0B0;
  --color-text-muted: #808080;
  --color-border: rgba(196, 164, 132, 0.2);
  --color-overlay: rgba(27, 27, 27, 0.85);
  
  /* Typography */
  --font-heading: 'Fraunces', serif;
  --font-body: 'Archivo Narrow', sans-serif;
  
  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;
  
  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 20px rgba(196, 164, 132, 0.3);
}

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

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

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

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text-primary);
  background-color: var(--color-bg-primary);
  overflow-x: hidden;
}

/* ============================================
   Typography
   ============================================ */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-md);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
}

h4 {
  font-size: clamp(1.25rem, 2.5vw, 2rem);
}

p {
  margin-bottom: var(--space-sm);
  color: var(--color-text-secondary);
}

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

a:hover {
  color: var(--color-accent-steel);
}

/* ============================================
   Header & Navigation
   ============================================ */

.site-header {
  position: relative;
  width: 100%;
  padding: var(--space-md) var(--space-md);
  background: rgba(27, 27, 27, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
  z-index: 1000;
}

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

.brand-name {
  font-family: var(--font-heading);
  font-size: clamp(0.8rem, 2vw, 1.3rem);
  font-weight: 700;
  color: var(--color-accent-oak);
}

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

.nav-list {
  display: flex;
  list-style: none;
  gap: 15px;
  align-items: center;
}

.nav-link {
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: var(--space-xs) 0;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-accent-oak);
  transition: width var(--transition-base);
}

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

/* Burger Menu - Visible only on mobile */
.burger-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: var(--space-xs);
  color: var(--color-accent-oak);
  font-size: 1.5rem;
  z-index: 10001;
  order: 999;
  position: relative;
}

.burger-icon {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-accent-oak);
  position: relative;
  transition: background var(--transition-fast);
}

.burger-icon::before,
.burger-icon::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 2px;
  background: var(--color-accent-oak);
  transition: transform var(--transition-base);
}

.burger-icon::before {
  top: -8px;
}

.burger-icon::after {
  bottom: -8px;
}

.burger-toggle.active .burger-icon {
  background: transparent;
}

.burger-toggle.active .burger-icon::before {
  transform: rotate(45deg) translate(5px, 5px);
}

.burger-toggle.active .burger-icon::after {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Desktop: Show navigation links in header */
@media (min-width: 1024px) {
  .burger-toggle {
    display: none;
  }
  
  .main-nav {
    position: relative;
    display: flex;
  }
  
  .nav-list {
    display: flex;
    flex-direction: row;
    list-style: none;
    gap: 15px;
    align-items: center;
  }
  
  .nav-link {
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: var(--space-xs) 0;
    position: relative;
  }
  
  .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-accent-oak);
    transition: width var(--transition-base);
  }
  
  .nav-link:hover::after {
    width: 100%;
  }
}

/* Mobile: Show burger menu, hide navigation links */
@media (max-width: 1023px) {
  .burger-toggle {
    display: block;
  }
  
  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px;
    height: 100vh;
    background: var(--color-bg-secondary);
    backdrop-filter: blur(20px);
    border-left: 1px solid var(--color-border);
    flex-direction: column;
    padding: var(--space-xl) var(--space-md);
    gap: var(--space-lg);
    transition: right var(--transition-base);
    z-index: 9999;
    overflow-y: auto;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.5);
  }
  
  .main-nav.active {
    right: 0;
  }
  
  .nav-list {
    flex-direction: column;
    width: 100%;
    gap: var(--space-md);
    align-items: flex-start;
  }
  
  .nav-link {
    width: 100%;
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--color-border);
  }
}

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

main {
  min-height: calc(100vh - 200px);
}

/* ============================================
   Hero Banners (Full-Width)
   ============================================ */

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

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

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--color-overlay);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 1200px;
  padding: var(--space-lg);
  text-align: center;
}

.hero-title {
  color: var(--color-accent-steel);
  margin-bottom: var(--space-md);
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  color: var(--color-text-secondary);
  max-width: 800px;
  margin: 0 auto;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

/* ============================================
   Section Layouts
   ============================================ */

.content-section {
  padding: var(--space-xl) var(--space-md);
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

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

.section-title {
  color: var(--color-accent-oak);
  margin-bottom: var(--space-sm);
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  max-width: 700px;
  margin: 0 auto;
}

/* Grid Layouts - Centered and balanced */
.grid-container {
  display: grid;
  gap: var(--space-md);
  margin-top: var(--space-lg);
  justify-items: center;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.grid-two {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  max-width: 800px;
}

.grid-three {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  max-width: 1000px;
}

.grid-four {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  max-width: 1200px;
}

/* Card Components */
.content-card {
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  backdrop-filter: blur(10px);
}

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

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

.card-title {
  font-size: 1.5rem;
  color: var(--color-accent-oak);
  margin-bottom: var(--space-sm);
}

.card-text {
  color: var(--color-text-secondary);
  line-height: 1.7;
}

/* Image with Text Overlay */
.image-text-block {
  position: relative;
  width: 100%;
  max-width: 1000px;
  min-height: 350px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: var(--space-lg) auto;
}

.image-text-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.image-text-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, transparent 0%, var(--color-overlay) 100%);
  z-index: 2;
}

.image-text-content {
  position: relative;
  z-index: 3;
  padding: var(--space-xl);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

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

.contact-form {
  max-width: 700px;
  margin: var(--space-xl) auto;
  background: var(--color-bg-secondary);
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
}

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

.form-label {
  display: block;
  margin-bottom: var(--space-xs);
  color: var(--color-text-primary);
  font-weight: 500;
  letter-spacing: 0.05em;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: var(--space-sm);
  background: var(--color-bg-primary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-accent-oak);
  box-shadow: 0 0 0 3px rgba(196, 164, 132, 0.1);
}

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

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

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

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

.form-submit {
  width: 100%;
  padding: var(--space-sm) var(--space-md);
  background: var(--color-accent-oak);
  color: var(--color-bg-primary);
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: background var(--transition-base), transform var(--transition-fast);
}

.form-submit:hover {
  background: var(--color-accent-steel);
  color: var(--color-bg-primary);
  transform: translateY(-2px);
}

.form-submit:active {
  transform: translateY(0);
}

/* ============================================
   Google Maps
   ============================================ */

.map-container {
  width: 100%;
  height: 400px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: var(--space-lg) 0;
  border: 1px solid var(--color-border);
}

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

/* ============================================
   Products Grid
   ============================================ */

.product-card {
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  text-align: center;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

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

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

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

.product-description {
  color: var(--color-text-secondary);
  margin-bottom: var(--space-md);
  line-height: 1.7;
}

.product-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-accent-steel);
  font-family: var(--font-heading);
}

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

.site-footer {
  background: var(--color-bg-secondary);
  border-top: 1px solid var(--color-border);
  padding: var(--space-lg) var(--space-md);
  margin-top: var(--space-xl);
}

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

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

.footer-title {
  font-size: 1rem;
  color: var(--color-accent-oak);
  margin-bottom: var(--space-sm);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

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

.footer-link {
  display: block;
  padding: var(--space-xs) 0;
  color: var(--color-text-secondary);
  font-size: 0.9rem;
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: var(--color-accent-oak);
}

.footer-text {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-top: var(--space-sm);
}

.footer-copyright {
  text-align: center;
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-size: 0.85rem;
}

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

.thank-you-container {
  max-width: 800px;
  margin: var(--space-xl) auto;
  padding: var(--space-xl);
  text-align: center;
  background: var(--color-bg-secondary);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
}

.thank-you-title {
  color: var(--color-accent-oak);
  margin-bottom: var(--space-md);
}

.thank-you-message {
  font-size: 1.1rem;
  color: var(--color-text-secondary);
  line-height: 1.8;
  margin-bottom: var(--space-lg);
}

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

.error-container {
  max-width: 800px;
  margin: var(--space-xl) auto;
  padding: var(--space-xl);
  text-align: center;
}

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

.error-message {
  font-size: 1.5rem;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-lg);
}

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

.privacy-popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 10000;
  overflow-y: auto;
}

.privacy-popup.active {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
}

.privacy-content {
  max-width: 800px;
  background: var(--color-bg-secondary);
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  max-height: 90vh;
  overflow-y: auto;
}

.privacy-close {
  float: right;
  background: transparent;
  border: none;
  color: var(--color-accent-oak);
  font-size: 1.5rem;
  cursor: pointer;
  padding: var(--space-xs);
}

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

@media (max-width: 768px) {
  :root {
    --space-lg: 3rem;
    --space-xl: 4rem;
  }
  
  .content-section {
    padding: var(--space-lg) var(--space-sm);
  }
  
  .grid-two,
  .grid-three,
  .grid-four {
    grid-template-columns: 1fr;
  }
  
  .hero-banner {
    min-height: 50vh;
  }
  
  .image-text-block {
    min-height: 300px;
  }
  
  .contact-form {
    padding: var(--space-md);
  }
  
  .footer-container {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
}

@media (max-width: 480px) {

  
  .brand-name {
    font-size: 1rem;
  }
  
  .content-section {
    padding: var(--space-md) var(--space-sm);
  }
  
  .hero-content {
    padding: var(--space-md);
  }
}

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

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

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

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

