/* ============================================
   TEXTILE SANCTUARY - FUTURISTIC DESIGN SYSTEM
   ============================================ */

:root {
  /* Color Palette */
  --color-obsidian-moss: #050A05;
  --color-bioluminescent-amber: #FFB347;
  --color-sterling-silver: #C0C0C0;
  --color-dark-surface: #0A120A;
  --color-light-accent: #E8E8E8;
  --color-text-primary: #F5F5F5;
  --color-text-secondary: #B8B8B8;
  
  /* Typography */
  --font-serif: 'Playfair Display', serif;
  --font-sans: 'Space Grotesk', sans-serif;
  
  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  
  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  
  /* 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(255, 179, 71, 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 {
  font-size: 16px;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-obsidian-moss);
  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: inherit;
  transition: color var(--transition-fast);
}

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

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

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

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

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);
  color: var(--color-text-secondary);
}

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

.site-header {
  position: relative;
  width: 100%;
  padding: var(--space-md) var(--space-lg);
  background: linear-gradient(180deg, rgba(5, 10, 5, 0.95) 0%, rgba(5, 10, 5, 0.8) 100%);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(192, 192, 192, 0.1);
  z-index: 1000;
}

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

.brand-name {
  font-family: var(--font-serif);
  font-size: clamp(0.9rem, 2vw, 1.75rem);
  font-weight: 700;
  color: var(--color-text-primary);
  letter-spacing: 0.05em;
}

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

.nav-link {
  font-size: 0.9375rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  position: relative;
  padding: var(--space-sm) 0;
}

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

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

/* Burger Menu */
.burger-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 30px;
  height: 24px;
  position: relative;
  z-index: 10001;
  background: transparent;
  border: none;
  cursor: pointer;
}

.burger-line {
  width: 100%;
  height: 2px;
  background: var(--color-text-primary);
  transition: all var(--transition-base);
  transform-origin: center;
}

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

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

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

/* Mobile Navigation */
@media (max-width: 1023px) {
  .burger-toggle {
    display: flex;
  }
  
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: linear-gradient(135deg, rgba(5, 10, 5, 0.98) 0%, rgba(10, 18, 10, 0.98) 100%);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: var(--space-2xl) var(--space-lg);
    gap: var(--space-lg);
    transition: right var(--transition-base);
    border-left: 1px solid rgba(192, 192, 192, 0.1);
    box-shadow: -4px 0 32px rgba(0, 0, 0, 0.5);
    z-index: 1000;
  }
  
  .nav-menu.active {
    right: 0;
  }
  
  .nav-link {
    font-size: 1.125rem;
    width: 100%;
    padding: var(--space-md) 0;
    border-bottom: 1px solid rgba(192, 192, 192, 0.1);
  }
}

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

.hero-banner {
  width: 100vw;
  position: relative;
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: var(--space-2xl) var(--space-lg);
  overflow: hidden;
  background: linear-gradient(135deg, var(--color-obsidian-moss) 0%, var(--color-dark-surface) 100%);
  z-index: 10;
}

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

.hero-image-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(5, 10, 5, 0.7) 0%, rgba(10, 18, 10, 0.6) 100%);
  z-index: 2;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
}

/* Scanning Effect */
.hero-image-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 179, 71, 0.15), transparent);
  animation: scan 8s infinite;
  pointer-events: none;
  z-index: 2;
}

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

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

.hero-title {
  font-size: clamp(2.5rem, 6vw, 5rem);
  margin-bottom: var(--space-lg);
  background: linear-gradient(135deg, var(--color-text-primary) 0%, var(--color-bioluminescent-amber) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 40px rgba(255, 179, 71, 0.3);
  position: relative;
  z-index: 3;
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  color: var(--color-text-primary);
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
  position: relative;
  z-index: 3;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

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

main {
  width: 100%;
  min-height: 60vh;
  position: relative;
  z-index: 1;
}

.content-section {
  padding: var(--space-2xl) var(--space-lg);
  max-width: var(--max-width);
  margin: 0 auto;
}

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

/* ============================================
   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: linear-gradient(135deg, rgba(10, 18, 10, 0.6) 0%, rgba(5, 10, 5, 0.8) 100%);
  border: 1px solid rgba(192, 192, 192, 0.1);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  transition: all var(--transition-base);
  backdrop-filter: blur(10px);
}

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

.grid-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
  border: 1px solid rgba(192, 192, 192, 0.2);
}

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

.grid-text {
  color: var(--color-text-secondary);
  font-size: 0.9375rem;
  line-height: 1.7;
}

/* ============================================
   TWO COLUMN LAYOUT
   ============================================ */

.two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
  margin-top: var(--space-xl);
}

.two-column-image {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(192, 192, 192, 0.2);
}

.two-column-content {
  padding: var(--space-lg);
}

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

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

.btn {
  display: inline-block;
  padding: var(--space-md) var(--space-xl);
  font-size: 0.9375rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
  cursor: pointer;
  border: 2px solid transparent;
  margin-top: 10px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-bioluminescent-amber) 0%, #FF9500 100%);
  color: var(--color-obsidian-moss);
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(255, 179, 71, 0.5);
  color: var(--color-obsidian-moss);
}

.btn-secondary {
  background: transparent;
  color: var(--color-bioluminescent-amber);
  border-color: var(--color-bioluminescent-amber);
}

.btn-secondary:hover {
  background: var(--color-bioluminescent-amber);
  color: var(--color-obsidian-moss);
}

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

.contact-form {
  max-width: 600px;
  margin: var(--space-xl) auto;
  padding: var(--space-xl);
  background: linear-gradient(135deg, rgba(10, 18, 10, 0.6) 0%, rgba(5, 10, 5, 0.8) 100%);
  border: 1px solid rgba(192, 192, 192, 0.1);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
}

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

.form-label {
  display: block;
  margin-bottom: var(--space-sm);
  font-weight: 500;
  color: var(--color-text-primary);
  font-size: 0.9375rem;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: var(--space-md);
  background: rgba(5, 10, 5, 0.6);
  border: 1px solid rgba(192, 192, 192, 0.2);
  border-radius: var(--radius-md);
  color: var(--color-text-primary);
  font-family: inherit;
  font-size: 1rem;
  transition: all var(--transition-base);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-bioluminescent-amber);
  box-shadow: 0 0 0 3px rgba(255, 179, 71, 0.1);
}

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

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

.checkbox-input {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  cursor: pointer;
  accent-color: var(--color-bioluminescent-amber);
}

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

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

.map-container {
  width: 100%;
  height: 400px;
  margin: var(--space-xl) 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(192, 192, 192, 0.2);
  box-shadow: var(--shadow-md);
}

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

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

.site-footer {
  background: linear-gradient(180deg, var(--color-dark-surface) 0%, var(--color-obsidian-moss) 100%);
  border-top: 1px solid rgba(192, 192, 192, 0.1);
  padding: var(--space-xl) var(--space-lg);
  margin-top: var(--space-2xl);
}

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

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

.footer-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
  color: var(--color-text-primary);
}

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

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

.footer-text {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.copyright {
  text-align: center;
  padding-top: var(--space-lg);
  margin-top: var(--space-lg);
  border-top: 1px solid rgba(192, 192, 192, 0.1);
  font-size: 0.875rem;
  color: var(--color-text-secondary);
}

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

.product-card {
  background: linear-gradient(135deg, rgba(10, 18, 10, 0.6) 0%, rgba(5, 10, 5, 0.8) 100%);
  border: 1px solid rgba(192, 192, 192, 0.1);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  transition: all var(--transition-base);
  backdrop-filter: blur(10px);
}

.product-card:hover {
  transform: translateY(-5px);
  border-color: var(--color-bioluminescent-amber);
  box-shadow: var(--shadow-glow);
}

.product-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
  border: 1px solid rgba(192, 192, 192, 0.2);
}

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

.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-bioluminescent-amber);
  font-family: var(--font-serif);
}

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

.thank-you-container {
  max-width: 800px;
  margin: var(--space-2xl) auto;
  padding: var(--space-2xl);
  text-align: center;
  background: linear-gradient(135deg, rgba(10, 18, 10, 0.6) 0%, rgba(5, 10, 5, 0.8) 100%);
  border: 1px solid rgba(192, 192, 192, 0.1);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
}

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

.thank-you-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: var(--space-md);
}

.thank-you-text {
  font-size: 1.125rem;
  color: var(--color-text-secondary);
  line-height: 1.8;
}

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

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

.error-code {
  font-size: clamp(6rem, 15vw, 12rem);
  font-weight: 700;
  background: linear-gradient(135deg, var(--color-text-primary) 0%, var(--color-bioluminescent-amber) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--space-md);
}

.error-title {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  margin-bottom: var(--space-md);
}

.error-text {
  font-size: 1.125rem;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-xl);
}

/* ============================================
   POLICY PAGES
   ============================================ */

.policy-container {
  max-width: 900px;
  margin: var(--space-2xl) auto;
  padding: var(--space-xl);
}

.policy-section {
  margin-bottom: var(--space-xl);
}

.policy-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: var(--space-lg);
  color: var(--color-text-primary);
}

.policy-subtitle {
  font-size: 1.25rem;
  margin-bottom: var(--space-md);
  margin-top: var(--space-lg);
  color: var(--color-text-primary);
}

.policy-text {
  color: var(--color-text-secondary);
  line-height: 1.8;
  margin-bottom: var(--space-md);
}

.policy-list {
  margin-left: var(--space-lg);
  margin-bottom: var(--space-md);
  color: var(--color-text-secondary);
}

.policy-list li {
  margin-bottom: var(--space-sm);
  line-height: 1.7;
}

.date {
  font-size: 0.875rem;
  color: var(--color-bioluminescent-amber);
  font-style: italic;
  margin-top: var(--space-lg);
}

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

@media (max-width: 768px) {
  .content-section {
    padding: var(--space-xl) var(--space-md);
  }
  
  .hero-banner {
    min-height: 50vh;
    padding: var(--space-xl) var(--space-md);
  }
  
  .grid-container {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
  
  .footer-container {
    grid-template-columns: 1fr;
  }
  
  .contact-form {
    padding: var(--space-lg);
  }
}

@media (max-width: 480px) {
  .site-header {
    padding: var(--space-sm) var(--space-md);
  }
  
  .header-container {
    gap: var(--space-md);
  }
  
  .hero-banner {
    min-height: 40vh;
  }
  
  .content-section {
    padding: var(--space-lg) var(--space-sm);
  }
}

/* ============================================
   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;
}

