/* CSS Variables */
:root {
  --color-alabaster: #F9F7F2;
  --color-obsidian: #1A1A1A;
  --color-brass: #A68966;
  --color-smoke: rgba(128, 128, 128, 0.3);
  --font-primary: 'Inter', sans-serif;
  --font-secondary: 'Playfair Display', serif;
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-xxl: 4rem;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --transition-fast: 0.3s ease;
  --transition-slow: 0.6s ease;
  --shadow-soft: 0 4px 20px rgba(26, 26, 26, 0.1);
  --shadow-strong: 0 8px 40px rgba(26, 26, 26, 0.2);
}

/* 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-primary);
  color: var(--color-obsidian);
  background-color: var(--color-alabaster);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Light-Ray Cursor Effect */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 9999;
  transition: background 0.5s ease;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-secondary);
  font-weight: 600;
  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);
  font-size: clamp(0.9rem, 2vw, 1.1rem);
}

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

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

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

/* Header Styles */
.header-container {
  position: relative;
  width: 100%;
  padding: var(--space-lg) var(--space-md);
  background: rgba(249, 247, 242, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(166, 137, 102, 0.2);
  z-index: 1000;
}

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

.brand-name {
  font-family: var(--font-secondary);
  font-size: clamp(1rem, 2vw, 1.45rem);
  font-weight: 700;
  color: var(--color-obsidian);
  letter-spacing: -0.5px;
}

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

.nav-link {
  font-size: clamp(0.875rem, 2vw, 1rem);
  color: var(--color-obsidian);
  position: relative;
  padding: var(--space-xs) 0;
}

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

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

/* Burger Menu Button */
.burger-menu-btn {
  display: none;
  background: transparent;
  border: 2px solid var(--color-obsidian);
  width: 44px;
  height: 44px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  z-index: 100001;
  padding: var(--space-sm);
  border-radius: var(--radius-sm);
  position: relative;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.burger-menu-btn:hover {
  background: var(--color-brass);
  border-color: var(--color-brass);
}

.burger-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-obsidian);
  transition: all var(--transition-fast);
}

.burger-menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(7px, 7px);
}

.burger-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.burger-menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(249, 247, 242, 0.98);
  backdrop-filter: blur(20px);
  z-index: 100000;
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-fast), visibility var(--transition-fast);
}

.mobile-menu.active {
  opacity: 1;
  visibility: visible;
  display: flex;
}

.mobile-nav {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  align-items: center;
}

.mobile-nav-link {
  padding: var(--space-md) var(--space-xl);
  font-size: 1.5rem;
  color: var(--color-obsidian);
  font-weight: 500;
  border-bottom: 2px solid transparent;
  transition: all var(--transition-fast);
}

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

@media (max-width: 1023px) {
  .burger-menu-btn {
    display: flex;
    order: 999;
    margin-left: auto;
  }
  
  .nav-menu {
    display: none;
  }
}

@media (max-width: 480px) {
  .header-container {
    padding: var(--space-md) var(--space-sm);
  }
  
  .header-content {
    gap: var(--space-sm);
  }
}

/* Full-Width Banner */
.full-width-banner {
  width: 100vw;
  position: relative;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: var(--space-xxl) var(--space-md);
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background: linear-gradient(135deg, var(--color-alabaster) 0%, rgba(166, 137, 102, 0.1) 100%);
}

.full-width-banner[style*="background-image"] {
  background-attachment: fixed;
}

.full-width-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(249, 247, 242, 0.85) 0%, rgba(26, 26, 26, 0.6) 100%);
  z-index: 1;
}

.banner-content {
  max-width: 1200px;
  width: 100%;
  text-align: center;
  z-index: 2;
  position: relative;
}

.banner-title {
  font-size: clamp(2.5rem, 6vw, 5rem);
  margin-bottom: var(--space-lg);
  color: var(--color-obsidian);
  text-shadow: 0 2px 15px rgba(249, 247, 242, 0.95), 0 4px 20px rgba(26, 26, 26, 0.3);
}

.banner-text {
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  color: var(--color-obsidian);
  max-width: 800px;
  margin: 0 auto;
  text-shadow: 0 1px 10px rgba(249, 247, 242, 0.9), 0 2px 15px rgba(26, 26, 26, 0.2);
  font-weight: 400;
}

/* Isometric Grid Container */
.isometric-grid {
  perspective: 1500px;
  perspective-origin: center center;
  padding: var(--space-xxl) var(--space-md);
}

.isometric-item {
  transform-style: preserve-3d;
  transition: transform var(--transition-slow);
  margin-bottom: var(--space-lg);
}

.isometric-item:hover {
  transform: translateY(-10px) rotateX(5deg);
}

/* Glassmorphic Panels */
.glass-panel {
  background: rgba(249, 247, 242, 0.7);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(166, 137, 102, 0.3);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-soft);
  transition: all var(--transition-fast);
}

.glass-panel:hover {
  background: rgba(249, 247, 242, 0.9);
  border-color: var(--color-brass);
  box-shadow: var(--shadow-strong);
}

/* Tactile Texture Buttons */
.texture-button {
  position: relative;
  padding: var(--space-md) var(--space-xl);
  background: var(--color-brass);
  color: var(--color-alabaster);
  border: none;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  overflow: hidden;
  transition: all var(--transition-fast);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 4px 10px rgba(26, 26, 26, 0.2);
  margin-top: 10px;
}

.texture-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 2px,
      rgba(255, 255, 255, 0.05) 2px,
      rgba(255, 255, 255, 0.05) 4px
    );
  opacity: 0.3;
  pointer-events: none;
}

.texture-button:hover {
  color:white;
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 6px 20px rgba(26, 26, 26, 0.3);
}

.texture-button:active {
  transform: translateY(0);
}

/* Main Container */
.main-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: var(--space-xxl) var(--space-md);
}

.section-spacer {
  margin-bottom: var(--space-xxl);
}

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

.content-card {
  background: var(--color-alabaster);
  border: 1px solid rgba(166, 137, 102, 0.2);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.content-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(166, 137, 102, 0.1) 0%, transparent 70%);
  opacity: 0;
  transition: opacity var(--transition-slow);
}

.content-card:hover::before {
  opacity: 1;
}

.content-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-strong);
  border-color: var(--color-brass);
}

.card-title {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  margin-bottom: var(--space-md);
  color: var(--color-obsidian);
}

.card-description {
  color: rgba(26, 26, 26, 0.8);
  line-height: 1.7;
  margin-bottom: var(--space-md);
}

/* Contact Form */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xxl);
  margin: var(--space-xxl) 0;
}

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

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

.form-label {
  font-weight: 600;
  color: var(--color-obsidian);
  font-size: 0.95rem;
}

.form-input,
.form-textarea {
  padding: var(--space-md);
  border: 2px solid rgba(166, 137, 102, 0.3);
  border-radius: var(--radius-md);
  background: var(--color-alabaster);
  font-family: var(--font-primary);
  font-size: 1rem;
  transition: all var(--transition-fast);
  width: 100%;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-brass);
  box-shadow: 0 0 0 3px rgba(166, 137, 102, 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-sm);
}

.checkbox-input {
  width: 20px;
  height: 20px;
  cursor: pointer;
  margin-top: 2px;
  flex-shrink: 0;
}

.checkbox-label {
  font-size: 0.9rem;
  color: rgba(26, 26, 26, 0.8);
  cursor: pointer;
  line-height: 1.5;
}

.form-submit {
  align-self: flex-start;
}

/* Google Maps */
.map-container {
  width: 100%;
  height: 400px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(166, 137, 102, 0.2);
}

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

@media (max-width: 768px) {
  .contact-wrapper {
    grid-template-columns: 1fr;
  }
  
  .map-container {
    height: 300px;
  }
}

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-xl);
  margin: var(--space-xxl) 0;
}

.product-card {
  background: var(--color-alabaster);
  border: 1px solid rgba(166, 137, 102, 0.2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-fast);
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-strong);
  border-color: var(--color-brass);
}

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

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

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

.product-description {
  color: rgba(26, 26, 26, 0.7);
  margin-bottom: var(--space-md);
  line-height: 1.6;
}

.product-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-brass);
  font-family: var(--font-secondary);
}

/* Footer */
.footer-container {
  background: var(--color-obsidian);
  color: var(--color-alabaster);
  padding: var(--space-xxl) var(--space-md);
  margin-top: var(--space-xxl);
}

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

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

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

.footer-link {
  color: rgba(249, 247, 242, 0.8);
  transition: color var(--transition-fast);
}

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

.footer-info {
  color: rgba(249, 247, 242, 0.7);
  font-size: 0.9rem;
  line-height: 1.8;
}

.footer-bottom {
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(166, 137, 102, 0.3);
  text-align: center;
  color: rgba(249, 247, 242, 0.6);
  font-size: 0.875rem;
}

/* Privacy Policy Popup */
.privacy-popup {
  display: none;
  position: fixed;
  bottom: var(--space-lg);
  left: var(--space-lg);
  right: var(--space-lg);
  max-width: 500px;
  background: rgba(249, 247, 242, 0.98);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(166, 137, 102, 0.3);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-strong);
  z-index: 10000;
}

.privacy-popup.active {
  display: block;
  animation: slideUp 0.5s ease;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.privacy-popup-content {
  margin-bottom: var(--space-md);
}

.privacy-popup-title {
  font-size: 1.25rem;
  margin-bottom: var(--space-sm);
  color: var(--color-obsidian);
}

.privacy-popup-text {
  font-size: 0.9rem;
  color: rgba(26, 26, 26, 0.8);
  line-height: 1.6;
  margin-bottom: var(--space-md);
}

.privacy-popup-actions {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

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

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

.error-message {
  font-size: clamp(1.25rem, 3vw, 2rem);
  margin-bottom: var(--space-lg);
  color: var(--color-obsidian);
}

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

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

.thank-you-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: var(--space-md);
  color: var(--color-obsidian);
}

.thank-you-text {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: rgba(26, 26, 26, 0.8);
  max-width: 600px;
  margin-bottom: var(--space-xl);
}

/* Material Cards */
.material-card {
  background: var(--color-alabaster);
  border: 2px solid rgba(166, 137, 102, 0.2);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  margin-bottom: var(--space-xl);
  position: relative;
  overflow: hidden;
}

.material-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-md);
  flex-wrap: wrap;
  gap: var(--space-md);
}

.material-specs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid rgba(166, 137, 102, 0.2);
}

.spec-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.spec-label {
  font-size: 0.875rem;
  color: rgba(26, 26, 26, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.spec-value {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-obsidian);
}

/* Blueprint Gallery */
.blueprint-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: var(--space-xl);
  margin: var(--space-xxl) 0;
}

.blueprint-card {
  background: var(--color-alabaster);
  border: 1px solid rgba(166, 137, 102, 0.2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-fast);
}

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

.blueprint-image {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.blueprint-details {
  padding: var(--space-xl);
}

.blueprint-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid rgba(166, 137, 102, 0.2);
}

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

.metric-label {
  font-size: 0.75rem;
  color: rgba(26, 26, 26, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: var(--space-xs);
}

.metric-value {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-brass);
}

/* Atmospheric Configurator */
.light-temp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-xl);
  margin: var(--space-xxl) 0;
}

.temp-card {
  background: var(--color-alabaster);
  border: 1px solid rgba(166, 137, 102, 0.2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-fast);
  position: relative;
}

.temp-card:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-strong);
}

.temp-preview {
  width: 100%;
  height: 250px;
  object-fit: cover;
  filter: brightness(0.95);
  transition: filter var(--transition-fast);
}

.temp-card[data-temp="1800"] .temp-preview {
  filter: brightness(0.7) sepia(0.3);
}

.temp-card[data-temp="2700"] .temp-preview {
  filter: brightness(0.85) sepia(0.15);
}

.temp-card[data-temp="4000"] .temp-preview {
  filter: brightness(1.1) contrast(1.1);
}

.temp-info {
  padding: var(--space-xl);
}

.temp-label {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-obsidian);
  margin-bottom: var(--space-xs);
}

.temp-kelvin {
  font-size: 0.875rem;
  color: rgba(26, 26, 26, 0.6);
  margin-bottom: var(--space-md);
}

.temp-description {
  color: rgba(26, 26, 26, 0.7);
  line-height: 1.6;
}

/* Wireframe Transition Effect */
.wireframe-transition {
  position: relative;
  overflow: hidden;
}

.wireframe-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(166, 137, 102, 0.3) 2px, rgba(166, 137, 102, 0.3) 4px),
    repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(166, 137, 102, 0.3) 2px, rgba(166, 137, 102, 0.3) 4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-slow);
}

.wireframe-transition:hover .wireframe-overlay {
  opacity: 1;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .content-grid,
  .products-grid,
  .blueprint-grid,
  .light-temp-grid {
    grid-template-columns: 1fr;
  }
  
  .material-specs,
  .blueprint-metrics {
    grid-template-columns: 1fr;
  }
  
  .full-width-banner {
    min-height: 50vh;
    padding: var(--space-xl) var(--space-md);
  }
  
  .main-container {
    padding: var(--space-lg) var(--space-md);
  }
}

@media (max-width: 480px) {
  :root {
    --space-xxl: 2rem;
    --space-xl: 1.5rem;
  }
  
  .privacy-popup {
    left: var(--space-sm);
    right: var(--space-sm);
    bottom: var(--space-sm);
    padding: var(--space-lg);
  }
  
  .banner-content {
    margin-bottom: var(--space-lg);
  }
  
  .content-card,
  .glass-panel {
    padding: var(--space-lg);
  }
}

@media (max-width: 320px) {
  .header-container {
    padding: var(--space-sm);
  }
  
  .main-container {
    padding: var(--space-md) var(--space-sm);
  }
  
  .full-width-banner {
    padding: var(--space-lg) var(--space-sm);
  }
}

