@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700&family=Syne:wght@500;600;700;800&display=swap');

:root {
  --base-bg: #f8f8f7;
  --glass-panel: rgba(255, 255, 255, 0.78);
  --glass-border: rgba(197, 141, 71, 0.18);
  --bronze: #c58d47;
  --bronze-glow: rgba(197, 141, 71, 0.35);
  --cyan: #0891b2;
  --cyan-glow: rgba(8, 145, 178, 0.25);
  --espresso: #1c1917;
  --espresso-light: #44403c;
  --white: #ffffff;
  --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --radius-lg: 20px;
  --radius-md: 12px;
  --shadow: 0 10px 30px -10px rgba(28, 25, 23, 0.08);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

body {
  background-color: var(--base-bg);
  color: var(--espresso);
  overflow-x: hidden;
  line-height: 1.6;
  padding-top: 60px; /* Aligned with perfectly slim static/fixed header */
}

h1, h2, h3, h4, .brand-font {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Glassmorphism Classes */
.glass-card {
  background: var(--glass-panel);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.glass-card:hover {
  border-color: var(--bronze);
  box-shadow: 0 20px 40px -15px var(--bronze-glow);
  transform: translateY(-4px);
}

/* Perfect and Slim Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px; /* Slim professional height profile */
  z-index: 1000;
  padding: 0 2rem;
  background: rgba(248, 248, 247, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(197, 141, 71, 0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--espresso);
}

.logo-icon {
  width: 26px; /* Scaled down for slim profile */
  height: 26px;
  animation: spinSlow 20s linear infinite;
}

@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.logo-text {
  font-size: 1.1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.logo-text span {
  color: var(--bronze);
}

.nav-links {
  display: flex;
  gap: 1.75rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--espresso-light);
  font-weight: 600;
  font-size: 0.85rem;
  transition: var(--transition);
  position: relative;
  padding: 0.25rem 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--bronze);
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--espresso);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--espresso), #2d2a26);
  color: var(--white);
  border: none;
  padding: 0.55rem 1.25rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.8rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 12px rgba(28, 25, 23, 0.15);
  transition: var(--transition);
}

.btn-primary:hover {
  background: var(--bronze);
  box-shadow: 0 8px 20px var(--bronze-glow);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: var(--espresso);
  border: 1px solid rgba(28, 25, 23, 0.15);
  padding: 0.55rem 1.25rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.8rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
}

.btn-secondary:hover {
  background: rgba(28, 25, 23, 0.03);
  border-color: var(--espresso);
}

.btn-reserve {
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--espresso);
  transition: var(--transition);
}

.btn-reserve:hover {
  color: var(--bronze);
}

.reserve-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background: var(--cyan);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--base-bg);
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

/* Hero Section */
.hero {
  padding: 6rem 2rem 4rem 2rem;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: radial-gradient(circle at top right, rgba(197, 141, 71, 0.08), transparent 45%),
              radial-gradient(circle at bottom left, rgba(8, 145, 178, 0.05), transparent 45%);
}

.hero-container {
  max-width: 1200px;
  width: 100%;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: center;
}

.hero-content h1 {
  font-size: 3.5rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--espresso) 60%, var(--bronze));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-content p {
  font-size: 1.15rem;
  color: var(--espresso-light);
  margin-bottom: 2.5rem;
  max-width: 600px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
}

/* Live Dynamic Blueprint Diagram */
.hero-diagram {
  position: relative;
  width: 100%;
  height: 420px;
  background: rgba(28, 25, 23, 0.02);
  border-radius: var(--radius-lg);
  border: 1px dashed rgba(197, 141, 71, 0.3);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.telemetry-overlay {
  position: absolute;
  top: 1rem;
  left: 1rem;
  display: flex;
  gap: 1rem;
}

.telemetry-pill {
  font-size: 0.75rem;
  background: rgba(28, 25, 23, 0.05);
  padding: 0.25rem 0.6rem;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-family: monospace;
}

.telemetry-pill .pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  animation: pulseGlow 1.5s infinite;
}

@keyframes pulseGlow {
  0% { transform: scale(0.9); opacity: 0.4; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.4; }
}

.blueprint-svg {
  width: 80%;
  height: 80%;
  stroke: var(--espresso);
  stroke-width: 1;
  fill: none;
}

.blueprint-wall-active {
  stroke: var(--bronze);
  stroke-width: 2;
  animation: wallSlide 6s ease-in-out infinite alternate;
}

@keyframes wallSlide {
  0% { transform: translateX(0px); }
  50% { transform: translateX(60px); }
  100% { transform: translateX(0px); }
}

/* Feature/Grid Systems */
.section {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* Override massive inline section paddings for consistency with slim header */
section[style*="padding-top: 10rem"] {
  padding-top: 3rem !important;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-subtitle {
  color: var(--bronze);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 3px;
  margin-bottom: 0.5rem;
  display: block;
}

.section-title {
  font-size: 2.5rem;
  color: var(--espresso);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

/* Feature Cards */
.feat-card {
  padding: 2.5rem;
}

.feat-icon-wrapper {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  background: rgba(197, 141, 71, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bronze);
  margin-bottom: 1.5rem;
}

.feat-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.feat-card p {
  color: var(--espresso-light);
  font-size: 0.95rem;
}

/* Product Cards */
.product-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.product-media {
  position: relative;
  width: 100%;
  height: 240px;
  background: #eae9e6;
  overflow: hidden;
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.product-card:hover .product-image {
  transform: scale(1.05);
}

.badge-cert {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(28, 25, 23, 0.85);
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.35rem 0.65rem;
  border-radius: 4px;
  letter-spacing: 1px;
  text-transform: uppercase;
  z-index: 5;
}

.product-info {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.product-specs-pills {
  display: flex;
  gap: 0.5rem;
  margin: 0.75rem 0;
  flex-wrap: wrap;
}

.spec-pill {
  font-size: 0.7rem;
  background: rgba(28, 25, 23, 0.04);
  color: var(--espresso-light);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-weight: 500;
}

.product-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--bronze);
  margin-bottom: 1rem;
}

.product-card-desc {
  font-size: 0.85rem;
  color: var(--espresso-light);
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

.product-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem;
  margin-top: auto;
}

/* Cart Reserve Drawer */
.cart-drawer {
  position: fixed;
  top: 0;
  right: -420px;
  width: 400px;
  height: 100%;
  background: var(--base-bg);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.08);
  z-index: 1100;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--glass-border);
}

.cart-drawer.active {
  right: 0;
}

.cart-header {
  padding: 1.5rem;
  border-bottom: 1px solid rgba(197, 141, 71, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.btn-close-cart {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--espresso-light);
  transition: var(--transition);
}

.btn-close-cart:hover {
  color: var(--espresso);
}

.cart-items {
  flex-grow: 1;
  overflow-y: auto;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cart-item {
  display: flex;
  gap: 1rem;
  align-items: center;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(28, 25, 23, 0.05);
}

.cart-item-info {
  flex-grow: 1;
}

.cart-item-title {
  font-size: 0.9rem;
  font-weight: 700;
}

.cart-item-meta {
  font-size: 0.75rem;
  color: var(--espresso-light);
}

.cart-item-price {
  font-weight: 700;
  color: var(--bronze);
  font-size: 0.9rem;
}

.cart-item-remove {
  background: none;
  border: none;
  color: #ef4444;
  cursor: pointer;
  font-size: 0.8rem;
}

.cart-footer {
  padding: 1.5rem;
  border-top: 1px solid rgba(197, 141, 71, 0.1);
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  margin-bottom: 1rem;
}

.cart-empty {
  text-align: center;
  color: var(--espresso-light);
  margin-top: 4rem;
}

/* Cookie Consent Banner - FIXED ITS JUMPING POSITION */
.cookie-banner {
  position: fixed;
  bottom: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 4rem);
  max-width: 1000px;
  z-index: 999;
  padding: 1.25rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  transition: var(--transition);
}

.cookie-banner.active {
  bottom: 2rem;
}

/* Enforce translate centering on hover to completely fix moving banner */
.cookie-banner.glass-card:hover {
  transform: translate(-50%, -4px) !important;
  border-color: var(--bronze);
  box-shadow: 0 20px 40px -15px var(--bronze-glow);
}

.cookie-content {
  flex-grow: 1;
}

.cookie-content h4 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cookie-content p {
  font-size: 0.85rem;
  color: var(--espresso-light);
}

.cookie-actions {
  display: flex;
  gap: 0.5rem;
}

/* Interactive Spatial Lab Tool */
.lab-grid {
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 2rem;
}

.lab-panel {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.lab-view {
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(28, 25, 23, 0.02);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(28, 25, 23, 0.08);
  position: relative;
  overflow: hidden;
}

.control-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.control-group label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.input-range {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: rgba(28, 25, 23, 0.1);
  outline: none;
}

.input-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--bronze);
  cursor: pointer;
  transition: var(--transition);
}

.input-range::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

/* Dynamic Product Detail Styling */
.detail-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  margin-top: 3rem;
}

.detail-gallery {
  background: #eae9e6;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(28, 25, 23, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 480px;
  position: relative;
  overflow: hidden;
}

.detail-gallery .product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.detail-specs-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.5rem;
}

.detail-specs-table th, .detail-specs-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(28, 25, 23, 0.05);
}

.detail-specs-table th {
  font-weight: 700;
  color: var(--espresso);
}

/* Form Styling */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-full {
  grid-column: span 2;
}

.form-control {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-control label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--espresso-light);
}

.input-text, .input-select, .input-textarea {
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(28, 25, 23, 0.15);
  background: var(--white);
  font-size: 0.95rem;
  color: var(--espresso);
  transition: var(--transition);
}

.input-text:focus, .input-select:focus, .input-textarea:focus {
  outline: none;
  border-color: var(--bronze);
  box-shadow: 0 0 0 3px rgba(197, 141, 71, 0.15);
}

/* Success Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(28, 25, 23, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1200;
  display: none;
  align-items: center;
  justify-content: center;
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  max-width: 480px;
  width: 90%;
  padding: 3rem;
  text-align: center;
}

.modal-icon {
  width: 64px;
  height: 64px;
  background: rgba(8, 145, 178, 0.1);
  color: var(--cyan);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem auto;
}

/* Footer */
footer {
  background: var(--espresso);
  color: var(--white);
  padding: 6rem 2rem 3rem 2rem;
  border-top: 1px solid rgba(197, 141, 71, 0.2);
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 4rem;
}

.footer-info p {
  color: #a8a29e;
  margin-top: 1rem;
  font-size: 0.9rem;
}

.footer-links h4 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1.5rem;
  color: var(--bronze);
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: #a8a29e;
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--white);
}

.footer-bottom {
  max-width: 1200px;
  margin: 4rem auto 0 auto;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #78716c;
}

/* Mobile Responsive */
@media (max-width: 991px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .lab-grid {
    grid-template-columns: 1fr;
  }
  .detail-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .navbar {
    padding: 0 1rem;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--base-bg);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    border-bottom: 1px solid var(--glass-border);
  }
  .nav-links.active {
    display: flex;
  }
  .mobile-toggle {
    display: block;
  }
  .hero-content h1 {
    font-size: 2.5rem;
  }
  .grid-3, .grid-2 {
    grid-template-columns: 1fr;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-full {
    grid-column: span 1;
  }
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}