/* ============================================
   CYBER-ORGANIC DESIGN SYSTEM
   Leather Craftsmanship - Tactile Tech-Luxury
   ============================================ */

:root {
  /* Color Palette */
  --color-primary: #4B3621; /* Raw Umber */
  --color-secondary: #1A1A1B; /* Matte Carbon */
  --color-accent: #B87333; /* Burnished Copper */
  --color-highlight: #C68E17; /* Saddle Tan */
  --color-text: #E8E6E1;
  --color-text-muted: #A8A6A1;
  --color-bg: #0F0F0F;
  --color-bg-light: #1A1A1A;
  --color-bg-overlay: rgba(26, 26, 27, 0.85);
  
  /* Typography */
  --font-primary: 'Cormorant Garamond', serif;
  --font-secondary: 'IBM Plex Mono', monospace;
  
  /* 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: 12px;
  --border-thin: 1px solid var(--color-accent);
  
  /* 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(184, 115, 51, 0.3);
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  /* Layout */
  --max-width: 1400px;
  --header-height: 80px;
}

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

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

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

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

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

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

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

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

h3 {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
}

h4 {
  font-size: clamp(1rem, 1.4vw, 1.2rem);
}

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

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

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

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

.site-header {
  position: relative;
  width: 100%;
  padding: var(--space-md) var(--space-md);
  background: var(--color-bg-overlay);
  backdrop-filter: blur(10px);
  border-bottom: var(--border-thin);
  z-index: 1000;
}

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

.brand-name {
  font-family: var(--font-primary);
  font-size: clamp(1rem, 2vw, 1.3rem);
  font-weight: 700;
  color: var(--color-text);
  flex-shrink: 0;
}

.main-nav {
  display: flex;
  gap: 15px;
  align-items: center;
  flex-wrap: wrap;
  flex: 1;
  justify-content: flex-end;
}

.nav-link {
  font-family: var(--font-secondary);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  padding: var(--space-xs) var(--space-sm);
  border-bottom: 2px solid transparent;
  transition: all var(--transition-base);
}

.nav-link:hover {
  color: var(--color-accent);
  border-bottom-color: var(--color-accent);
}

/* Burger Menu */
.burger-toggle {
  display: none;
  background: transparent;
  border: var(--border-thin);
  padding: var(--space-xs) var(--space-sm);
  cursor: pointer;
  color: var(--color-text);
  font-size: 1.5rem;
  transition: all var(--transition-base);
  flex-shrink: 0;
  margin-left: var(--space-sm);
}

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

.burger-icon {
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  position: relative;
  transition: all var(--transition-base);
}

.burger-icon::before,
.burger-icon::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  background: currentColor;
  transition: all 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 {
  top: 0;
  transform: rotate(45deg);
}

.burger-toggle.active .burger-icon::after {
  bottom: 0;
  transform: rotate(-45deg);
}

/* Mobile Navigation */
@media (max-width: 1023px) {
  .burger-toggle {
    display: block;
  }
  
  .main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 80%;
    max-width: 400px;
    height: 100vh;
    background: var(--color-bg-overlay);
    backdrop-filter: blur(15px);
    flex-direction: column;
    padding: var(--space-xl) var(--space-lg);
    transform: translateX(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
    border-right: var(--border-thin);
    z-index: 9999;
    justify-content: flex-start;
    align-items: flex-start;
    overflow-y: auto;
  }
  
  .main-nav.active {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
  }
  
  .nav-link {
    width: 100%;
    text-align: left;
    padding: var(--space-md);
    border-bottom: 1px solid rgba(184, 115, 51, 0.2);
    font-size: 1.1rem;
  }
  
  .header-container {
    flex-wrap: nowrap;
  }
}

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

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

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

.banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(15, 15, 15, 0.7) 0%,
    rgba(15, 15, 15, 0.9) 100%
  );
  z-index: 2;
}

.banner-content {
  position: relative;
  z-index: 3;
  max-width: var(--max-width);
  width: 100%;
  padding: var(--space-lg);
  text-align: center;
}

.banner-title {
  font-size: clamp(1.5rem, 4vw, 3rem);
  margin-bottom: var(--space-md);
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
}

.banner-subtitle {
  font-size: clamp(1rem, 2vw, 1.5rem);
  color: var(--color-text-muted);
  max-width: 800px;
  margin: 0 auto;
}

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

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-xl) var(--space-md);
}

.content-section {
  margin-bottom: var(--space-xl);
  padding: var(--space-lg) 0;
}

.section-title {
  text-align: center;
  margin-bottom: var(--space-lg);
  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-accent);
}

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

.grid-item {
  background: var(--color-bg-light);
  border: var(--border-thin);
  padding: var(--space-md);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.grid-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(184, 115, 51, 0.1),
    transparent
  );
  transition: left 0.5s ease;
}

.grid-item:hover::before {
  left: 100%;
}

.grid-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
  border-color: var(--color-highlight);
}

.grid-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  margin-bottom: var(--space-md);
  border: var(--border-thin);
}

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

.column-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border: var(--border-thin);
}

@media (max-width: 768px) {
  .two-column {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   LEATHER TEXTURE BACKGROUND
   ============================================ */

.texture-section {
  position: relative;
  background-image: url('../images/freepik__35mm-film-photography-closeup-of-handmade-leather-__4355.webp');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  padding: var(--space-xl) 0;
}

.texture-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 15, 15, 0.85);
  z-index: 1;
}

.texture-content {
  position: relative;
  z-index: 2;
}

/* ============================================
   STITCH ANIMATION
   ============================================ */

.stitch-line {
  position: relative;
  padding: var(--space-md) 0;
  overflow: hidden;
}

.stitch-line::before {
  content: '';
  position: absolute;
  top: 50%;
  left: -100%;
  width: 100%;
  height: 2px;
  background: repeating-linear-gradient(
    90deg,
    var(--color-accent) 0px,
    var(--color-accent) 10px,
    transparent 10px,
    transparent 20px
  );
  animation: stitchMove 3s linear infinite;
}

@keyframes stitchMove {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
  display: inline-block;
  padding: var(--space-sm) var(--space-lg);
  font-family: var(--font-secondary);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-bg);
  background: var(--color-accent);
  border: var(--border-thin);
  border-color: var(--color-accent);
  cursor: pointer;
  transition: all var(--transition-base);
  text-align: center;
  margin-top: 10px;
}

.btn:hover {
  background: var(--color-highlight);
  border-color: var(--color-highlight);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
  color: black;
}

.btn-outline {
  background: transparent;
  color: var(--color-accent);
}

.btn-outline:hover {
  background: var(--color-accent);
  color: var(--color-bg);
}

/* ============================================
   FORMS
   ============================================ */

.form-container {
  max-width: 600px;
  margin: 0 auto;
  padding: var(--space-lg);
  background: var(--color-bg-light);
  border: var(--border-thin);
}

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

.form-label {
  display: block;
  margin-bottom: var(--space-xs);
  font-family: var(--font-secondary);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: var(--space-sm);
  background: var(--color-bg);
  border: var(--border-thin);
  color: var(--color-text);
  font-family: var(--font-secondary);
  font-size: 1rem;
  transition: all var(--transition-base);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-highlight);
  box-shadow: 0 0 0 3px rgba(184, 115, 51, 0.2);
}

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

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

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

.checkbox-label {
  font-size: 0.85rem;
  line-height: 1.5;
  cursor: pointer;
}

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

.product-card {
  background: var(--color-bg-light);
  border: var(--border-thin);
  padding: var(--space-md);
  text-align: center;
  transition: all var(--transition-base);
}

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

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

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

/* ============================================
   MAPS
   ============================================ */

.map-container {
  width: 100%;
  height: 400px;
  border: var(--border-thin);
  margin-top: var(--space-md);
  overflow: hidden;
}

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

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

.site-footer {
  background: var(--color-bg-light);
  border-top: var(--border-thin);
  padding: var(--space-lg) var(--space-md);
  margin-top: var(--space-xl);
}

.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 h4 {
  font-size: 1rem;
  margin-bottom: var(--space-sm);
  color: var(--color-accent);
}

.footer-link {
  display: block;
  margin-bottom: var(--space-xs);
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

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

.footer-text {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-xs);
}

.copyright {
  text-align: center;
  padding-top: var(--space-md);
  margin-top: var(--space-md);
  border-top: 1px solid rgba(184, 115, 51, 0.2);
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

/* ============================================
   PRIVACY POPUP
   ============================================ */

.privacy-popup {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--color-bg-overlay);
  backdrop-filter: blur(10px);
  padding: var(--space-md);
  border-top: var(--border-thin);
  z-index: 10000;
  transform: translateY(100%);
  transition: transform var(--transition-base);
}

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

.popup-content {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.popup-text {
  flex: 1;
  min-width: 250px;
  font-size: 0.9rem;
  color: var(--color-text);
}

.popup-buttons {
  display: flex;
  gap: 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); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }

.hidden {
  display: none;
}

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

@media (max-width: 768px) {
  :root {
    --space-lg: 2rem;
    --space-xl: 3rem;
  }
  
  main {
    padding: var(--space-lg) var(--space-sm);
  }
  
  .hero-banner {
    min-height: 50vh;
  }
  
  .grid-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 320px) {
  html {
    font-size: 14px;
  }
  
  .header-container {
    padding: var(--space-sm);
  }
}

