/* ============================================
   TACTILE TECHNICALITY - LEATHER CRAFTING
   Futuristic Design System
   ============================================ */

:root {
  /* Color Palette */
  --color-raw-tan: #D2B48C;
  --color-deep-onyx: #080808;
  --color-copper-wire: #B87333;
  --color-accent-glow: rgba(184, 115, 51, 0.3);
  --color-text-primary: #f4f1de;
  --color-text-secondary: #D2B48C;
  --color-border-stitch: rgba(210, 180, 140, 0.4);
  
  /* Typography */
  --font-header: 'Saira Stencil', sans-serif;
  --font-body: 'PT Serif', serif;
  
  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-xxl: 4rem;
  
  /* Layout */
  --radius-md: 8px;
  --radius-lg: 12px;
  --transition-fast: 0.3s ease;
  --transition-slow: 0.6s ease;
  --shadow-glow: 0 0 20px var(--color-accent-glow);
  --shadow-deep: 0 10px 40px rgba(0, 0, 0, 0.5);
}

/* ============================================
   RESET & BASE
   ============================================ */

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

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

body {
  font-family: var(--font-body);
  background-color: var(--color-deep-onyx);
  color: var(--color-text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

a:hover {
  color: var(--color-copper-wire);
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

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

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

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

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

p {
  margin-bottom: var(--space-md);
  font-size: clamp(1rem, 2vw, 1.125rem);
}

/* ============================================
   HEADER
   ============================================ */

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

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

.brand-text {
  font-family: var(--font-header);
  font-size: clamp(1rem, 2vw, 1.35rem);
  color: var(--color-copper-wire);
  text-transform: uppercase;
}

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

.nav-menu li a {
  font-size: clamp(0.875rem, 2vw, 1rem);
  padding: var(--space-sm) var(--space-md);
  border-bottom: 2px solid transparent;
  transition: border-color var(--transition-fast);
}

.nav-menu li a:hover {
  border-bottom-color: var(--color-copper-wire);
}

.burger-toggle {
  display: block;
  background: transparent;
  border: 2px solid var(--color-copper-wire);
  color: var(--color-copper-wire);
  padding: var(--space-sm) var(--space-md);
  cursor: pointer;
  font-size: 1.5rem;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  z-index: 100001;
  position: relative;
}

.burger-toggle:hover {
  background: var(--color-copper-wire);
  color: var(--color-deep-onyx);
}

.burger-toggle.active {
  background: var(--color-copper-wire);
  color: var(--color-deep-onyx);
}



@media (max-width: 1023px) {
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 320px;
    height: 100vh;
    background: var(--color-deep-onyx);
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: var(--space-xxl) var(--space-lg);
    gap: var(--space-md);
    border-left: 2px dashed var(--color-border-stitch);
    transition: right var(--transition-slow);
    z-index: 10000;
    overflow-y: auto;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.5);
  }
  
  .nav-menu.active {
    right: 0;
  }
  
  .nav-menu li {
    width: 100%;
    border-bottom: 1px solid var(--color-border-stitch);
    padding-bottom: var(--space-md);
  }
  
  .nav-menu li a {
    display: block;
    width: 100%;
    font-size: 1.125rem;
  }
}

@media (min-width: 1024px) {
  .burger-toggle {
    display: none;
  }
  
  .nav-menu {
    display: flex !important;
  }
}

/* ============================================
   HERO BANNERS
   ============================================ */

.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-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0.4;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(8, 8, 8, 0.7) 0%,
    rgba(8, 8, 8, 0.9) 100%
  );
  z-index: 2;
}

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

.hero-title {
  font-size: clamp(2.5rem, 6vw, 5rem);
  margin-bottom: var(--space-lg);
  text-shadow: 0 0 30px var(--color-accent-glow);
}

.hero-subtitle {
  font-size: clamp(1.125rem, 3vw, 1.5rem);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-xl);
}

/* ============================================
   MAIN CONTENT
   ============================================ */

.main-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: var(--space-xxl) var(--space-lg);
}

/* ============================================
   SECTIONS
   ============================================ */

.content-section {
  margin-bottom: var(--space-xxl);
  padding: var(--space-xl) 0;
  position: relative;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-lg);
  padding-right: var(--space-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: 100px;
  height: 2px;
  background: var(--color-copper-wire);
  box-shadow: 0 0 10px var(--color-accent-glow);
}

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

.grid-item {
  background: rgba(210, 180, 140, 0.05);
  border: 1px dashed var(--color-border-stitch);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  transition: all var(--transition-fast);
  text-align: center;
}

.grid-item:hover {
  background: rgba(210, 180, 140, 0.1);
  border-color: var(--color-copper-wire);
  box-shadow: var(--shadow-glow);
  transform: translateY(-5px);
}

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

.grid-item-centered {
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-lg);
}

/* Two Column Layout */
.two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.two-column img {
  width: 100%;
  max-width: 500px;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-deep);
  margin: 0 auto;
}

.two-column {
  align-items: center;
  text-align: center;
}

.two-column > div {
  text-align: left;
}

@media (max-width: 768px) {
  .two-column > div {
    text-align: center;
  }
}

/* ============================================
   STITCHED BORDERS
   ============================================ */

.stitched-divider {
  width: 100%;
  height: 2px;
  border-top: 2px dashed var(--color-border-stitch);
  margin: var(--space-xxl) 0;
  position: relative;
}

.stitched-divider::before,
.stitched-divider::after {
  content: '';
  position: absolute;
  top: -4px;
  width: 8px;
  height: 8px;
  background: var(--color-copper-wire);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--color-accent-glow);
}

.stitched-divider::before {
  left: 20%;
}

.stitched-divider::after {
  right: 20%;
}

/* ============================================
   BLUEPRINT OVERLAY
   ============================================ */

.blueprint-grid {
  position: relative;
  background-image: 
    linear-gradient(rgba(184, 115, 51, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(184, 115, 51, 0.1) 1px, transparent 1px);
  background-size: 20px 20px;
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border-stitch);
}

/* ============================================
   THREAD SELECTOR (Interactive)
   ============================================ */

.thread-selector-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xl);
  padding: var(--space-xxl);
  background: rgba(210, 180, 140, 0.05);
  border-radius: var(--radius-lg);
  border: 2px dashed var(--color-border-stitch);
}

.thread-selector-text {
  text-align: center;
  color: var(--color-text-secondary);
}

.thread-visualizer {
  width: 100%;
  max-width: 400px;
  height: 400px;
  position: relative;
  background: var(--color-deep-onyx);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.thread-item {
  width: 200px;
  height: 200px;
  background: var(--color-raw-tan);
  border-radius: var(--radius-md);
  position: relative;
  box-shadow: var(--shadow-glow);
}

.thread-stitch {
  position: absolute;
  width: 100%;
  height: 2px;
  background: var(--thread-color, var(--color-copper-wire));
  box-shadow: 0 0 10px var(--thread-color, var(--color-copper-wire));
  animation: stitch-glow 2s ease-in-out infinite;
}

.thread-stitch:nth-child(1) { top: 20%; }
.thread-stitch:nth-child(2) { top: 40%; }
.thread-stitch:nth-child(3) { top: 60%; }
.thread-stitch:nth-child(4) { top: 80%; }

@keyframes stitch-glow {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

.color-wheel {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  justify-content: center;
}

.color-option {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 3px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}

.color-option:hover {
  transform: scale(1.1);
  box-shadow: 0 0 20px var(--color-accent-glow);
}

.color-option.active {
  border-color: var(--color-copper-wire);
  box-shadow: 0 0 25px var(--color-accent-glow);
}

/* ============================================
   PRODUCTS
   ============================================ */

.product-card {
  background: rgba(210, 180, 140, 0.05);
  border: 1px dashed var(--color-border-stitch);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  text-align: center;
  transition: all var(--transition-fast);
}

.product-card:hover {
  background: rgba(210, 180, 140, 0.1);
  border-color: var(--color-copper-wire);
  box-shadow: var(--shadow-glow);
}

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

.product-title {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  margin-bottom: var(--space-sm);
  color: var(--color-copper-wire);
}

.product-price {
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
  color: var(--color-text-secondary);
  font-weight: bold;
  margin-top: var(--space-md);
}

/* ============================================
   CONTACT FORM
   ============================================ */

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

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.form-group label {
  color: var(--color-text-secondary);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.form-group input,
.form-group textarea {
  padding: var(--space-md);
  background: rgba(210, 180, 140, 0.05);
  border: 1px dashed var(--color-border-stitch);
  border-radius: var(--radius-md);
  color: var(--color-text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-copper-wire);
  box-shadow: 0 0 15px var(--color-accent-glow);
  background: rgba(210, 180, 140, 0.1);
}

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

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

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

.checkbox-group label {
  font-size: 0.875rem;
  text-transform: none;
  letter-spacing: 0;
}

.btn-submit {
  padding: var(--space-md) var(--space-xl);
  background: var(--color-copper-wire);
  color: var(--color-deep-onyx);
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-header);
  font-size: 1.125rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-glow);
  margin-top: 10px;
}

.btn-submit:hover {
  background: var(--color-raw-tan);
  transform: translateY(-2px);
  color: black;
  box-shadow: 0 0 30px var(--color-accent-glow);
}

.map-container {
  width: 100%;
  height: 400px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 2px dashed var(--color-border-stitch);
}

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

.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  padding: var(--space-lg);
  background: rgba(210, 180, 140, 0.05);
  border-radius: var(--radius-lg);
  border: 1px dashed var(--color-border-stitch);
}

.contact-info-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.contact-info-item i {
  color: var(--color-copper-wire);
  font-size: 1.5rem;
}

/* ============================================
   PATINA SLIDER
   ============================================ */

.patina-slider-container {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 2px dashed var(--color-border-stitch);
}

.patina-slider {
  position: relative;
  width: 100%;
  height: 500px;
}

.patina-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity var(--transition-slow);
}

.patina-slide.active {
  opacity: 1;
}

.patina-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.patina-controls {
  position: absolute;
  bottom: var(--space-lg);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: var(--space-md);
  z-index: 10;
}

.patina-btn {
  padding: var(--space-sm) var(--space-lg);
  background: rgba(8, 8, 8, 0.8);
  color: var(--color-text-primary);
  border: 2px solid var(--color-copper-wire);
  border-radius: var(--radius-md);
  cursor: pointer;
  font-family: var(--font-header);
  transition: all var(--transition-fast);
}

.patina-btn:hover {
  background: var(--color-copper-wire);
  color: var(--color-deep-onyx);
}

/* ============================================
   TEXTURE SWATCHES
   ============================================ */

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

.swatch-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 2px dashed var(--color-border-stitch);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.swatch-item:hover {
  border-color: var(--color-copper-wire);
  box-shadow: var(--shadow-glow);
  transform: scale(1.05);
}

.swatch-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.8);
  transition: filter var(--transition-slow);
}

.swatch-item:hover img {
  filter: brightness(1.2) contrast(1.2);
}

.swatch-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-md);
  background: linear-gradient(to top, rgba(8, 8, 8, 0.9), transparent);
  text-align: center;
  font-family: var(--font-header);
  color: var(--color-copper-wire);
}

/* ============================================
   EXPLODED VIEW
   ============================================ */

.exploded-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-xl);
  padding: var(--space-xl);
  background: rgba(210, 180, 140, 0.05);
  border-radius: var(--radius-lg);
  border: 2px dashed var(--color-border-stitch);
}

.exploded-piece {
  text-align: center;
  padding: var(--space-md);
  background: rgba(8, 8, 8, 0.5);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.exploded-piece:hover {
  background: rgba(210, 180, 140, 0.1);
  transform: translateY(-5px);
}

.exploded-piece img {
  width: 100%;
  height: 150px;
  object-fit: contain;
  margin-bottom: var(--space-sm);
}

/* ============================================
   FOOTER
   ============================================ */

.site-footer {
  margin-top: var(--space-xxl);
  padding: var(--space-xl) var(--space-lg);
  background: rgba(8, 8, 8, 0.95);
  border-top: 2px dashed var(--color-border-stitch);
}

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

.footer-section h3 {
  font-size: 1.125rem;
  margin-bottom: var(--space-md);
  color: var(--color-copper-wire);
}

.footer-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-menu li a {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  transition: color var(--transition-fast);
}

.footer-menu li a:hover {
  color: var(--color-copper-wire);
}

.footer-bottom {
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--color-border-stitch);
  text-align: center;
  font-size: 0.875rem;
  color: var(--color-text-secondary);
}

/* ============================================
   THANK YOU PAGE
   ============================================ */

.thank-you-container {
  text-align: center;
  padding: var(--space-xxl);
  max-width: 800px;
  margin: 0 auto;
}

.thank-you-message {
  font-size: 1.25rem;
  margin-bottom: var(--space-lg);
}

.thank-you-description {
  max-width: 600px;
  margin: 0 auto var(--space-xl);
}

.thank-you-phone-link {
  color: var(--color-copper-wire);
}

.thank-you-button-container {
  margin-top: var(--space-xxl);
}

.thank-you-icon {
  font-size: 4rem;
  color: var(--color-copper-wire);
  margin-bottom: var(--space-lg);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

/* ============================================
   404 PAGE
   ============================================ */

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

.error-code {
  font-size: clamp(4rem, 10vw, 8rem);
  color: var(--color-copper-wire);
  margin-bottom: var(--space-md);
  text-shadow: 0 0 30px var(--color-accent-glow);
}

/* ============================================
   LEGAL PAGES
   ============================================ */

.legal-content {
  max-width: 900px;
  margin: 0 auto;
  padding: var(--space-xl) var(--space-lg);
}

.legal-content h2 {
  margin-top: var(--space-xl);
  margin-bottom: var(--space-md);
  color: var(--color-copper-wire);
}

.legal-content h3 {
  margin-top: var(--space-lg);
  margin-bottom: var(--space-sm);
}

.legal-content ul {
  margin-left: var(--space-xl);
  margin-bottom: var(--space-md);
}

.legal-content li {
  margin-bottom: var(--space-sm);
}

.date {
  color: var(--color-text-secondary);
  font-style: italic;
  margin-bottom: var(--space-lg);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
  
  .main-content {
    padding: var(--space-lg) var(--space-md);
  }
  
  .two-column {
    grid-template-columns: 1fr;
  }
  
  .contact-container {
    grid-template-columns: 1fr;
  }
  
  .grid-container {
    grid-template-columns: 1fr;
  }
  
  .hero-banner {
    min-height: 50vh;
  }
  
  .thread-visualizer {
    max-width: 100%;
    height: 300px;
  }
  
  .patina-slider {
    height: 300px;
  }
}

@media (max-width: 480px) {
  :root {
    --space-xl: 2rem;
    --space-xxl: 3rem;
  }
  
  .hero-content {
    padding: var(--space-lg) var(--space-md);
  }
  
  .color-option {
    width: 50px;
    height: 50px;
  }
}

/* ============================================
   UTILITIES
   ============================================ */

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

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

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

.hidden {
  display: none;
}

