/* ============================================
   THE SYMMETRY ENGINE - Design System
   Table Setting & Etiquette Aesthetics
   ============================================ */

:root {
  /* Base Colors - The Symmetry Engine Palette */
  --color-surface: #0D0D0D; /* Polished Onyx */
  --color-instrument: #F5F5F7; /* Liquid Silver */
  --color-highlight: #007AFF; /* Electric Cobalt */
  --color-accent: #FFD700; /* Golden Ratio Accent */
  --color-text-primary: #F5F5F7;
  --color-text-secondary: #B8B8B8;
  --color-text-muted: #6B6B6B;
  
  /* Typography */
  --font-heading: 'Quicksand', 'Tenor Sans', sans-serif;
  --font-body: 'Cormorant', 'Georgia', serif;
  --font-base: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* Spacing System */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;
  
  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-full: 50%;
  
  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.2);
  --shadow-glow: 0 0 20px rgba(0, 122, 255, 0.3);
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  /* Grid & Layout */
  --grid-gap: 1.5rem;
  --container-max: 1200px;
  --section-padding: 4rem 1rem;
}

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

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

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

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text-primary);
  background-color: var(--color-surface);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Golden Ratio Grid Background */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(0, 122, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 122, 255, 0.03) 1px, transparent 1px);
  background-size: 61.8px 61.8px; /* Fibonacci-based grid */
  pointer-events: none;
  z-index: 0;
}

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

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

h1 {
  font-size: clamp(1.4rem, 5vw, 4rem);
  font-weight: 200;
  letter-spacing: 0.05em;
}

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

h3 {
  font-size: clamp(1rem, 3vw, 2.25rem);
}

h4 {
  font-size: clamp(0.9rem, 2.5vw, 1.75rem);
}

p {
  margin-bottom: var(--space-md);
  color: var(--color-text-secondary);
}

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

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

/* ============================================
   HEADER & NAVIGATION
   ============================================ */

.site-header {
  position: relative;
  width: 100%;
  padding: var(--space-md) var(--space-lg);
  background: rgba(13, 13, 13, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(245, 245, 247, 0.1);
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-text {
  font-family: var(--font-heading);
  font-size: clamp(1rem, 2vw, 1.35rem);
  font-weight: 300;
  color: var(--color-text-primary);
}

.nav-container {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

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

.nav-link {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 300;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  padding: var(--space-sm) var(--space-md);
  border-bottom: 1px solid transparent;
  transition: all var(--transition-base);
}

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

/* Burger Menu Button - Always Last in Header */
.burger-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(245, 245, 247, 0.2);
  width: 44px;
  height: 44px;
  cursor: pointer;
  position: relative;
  padding: 0;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  z-index: 100001;
  transition: all var(--transition-base);
}

.burger-toggle:hover {
  border-color: var(--color-highlight);
}

.burger-line {
  width: 24px;
  height: 2px;
  background: var(--color-text-primary);
  transition: all var(--transition-base);
}

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

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

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

/* Mobile Navigation Menu */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(13, 13, 13, 0.98);
  backdrop-filter: blur(20px);
  z-index: 999;
  padding: var(--space-3xl) var(--space-lg);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: var(--space-xl);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
}

.mobile-nav.active {
  opacity: 1;
  visibility: visible;
}

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

.mobile-nav-link {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  color: var(--color-text-primary);
  text-transform: uppercase;
  padding: var(--space-md);
  border-bottom: 2px solid transparent;
  transition: all var(--transition-base);
}

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

/* Responsive Navigation */
@media (max-width: 1023px) {
  .nav-menu {
    display: none;
  }
  
  .burger-toggle {
    display: flex;
  }
  
  .mobile-nav {
    display: flex;
  }
}

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

main {
  position: relative;
  z-index: 1;
}

/* ============================================
   HERO BANNERS (Full-Width)
   ============================================ */

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

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(13, 13, 13, 0.7) 0%,
    rgba(13, 13, 13, 0.5) 50%,
    rgba(13, 13, 13, 0.8) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: var(--space-xl);
  max-width: 800px;
  margin: 0 auto;
}

.hero-title {
  font-size: clamp(1.5rem, 6vw, 5rem);
  font-weight: 200;
  margin-bottom: var(--space-lg);
  text-shadow: 0 0 30px rgba(0, 122, 255, 0.5);
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  font-weight: 300;
  color: var(--color-text-secondary);
  line-height: 1.8;
}

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

.content-section {
  padding: var(--section-padding);
  max-width: var(--container-max);
  margin: 0 auto;
  position: relative;
}

.section-title {
  text-align: center;
  margin-bottom: var(--space-2xl);
  position: relative;
  padding-bottom: var(--space-md);
  width: 100%;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-highlight), transparent);
}

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

.grid-item {
  background: rgba(245, 245, 247, 0.03);
  border: 1px solid rgba(245, 245, 247, 0.1);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  transition: all var(--transition-base);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  text-align: center;
}

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

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

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

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

/* Asymmetrical Grid */
.asymmetrical-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--grid-gap);
  margin-top: var(--space-xl);
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.asymmetrical-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: rgba(245, 245, 247, 0.02);
  border: 1px solid rgba(245, 245, 247, 0.08);
}

.asymmetrical-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.asymmetrical-item:hover .asymmetrical-image {
  transform: scale(1.05);
}

.asymmetrical-content {
  padding: var(--space-lg);
  text-align: center;
}

/* ============================================
   PRECISION OVERLAYS & LINES
   ============================================ */

.precision-overlay {
  position: relative;
  padding: var(--space-xl);
  border: 1px solid rgba(0, 122, 255, 0.2);
  border-radius: var(--radius-md);
  background: rgba(0, 122, 255, 0.02);
}

.precision-line {
  position: absolute;
  background: var(--color-highlight);
  opacity: 0.6;
}

.precision-line-horizontal {
  width: 100%;
  height: 1px;
  top: 50%;
  left: 0;
}

.precision-line-vertical {
  width: 1px;
  height: 100%;
  left: 50%;
  top: 0;
}

/* ============================================
   BUTTONS & CTAs
   ============================================ */

.btn {
  display: inline-block;
  padding: var(--space-md) var(--space-xl);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-primary);
  background: transparent;
  border: 1px solid var(--color-highlight);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-base);
  text-align: center;
  margin-top: 10px;
}

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

.btn-primary {
  background: var(--color-highlight);
  color: var(--color-surface);
}

.btn-primary:hover {
  background: var(--color-accent);
  color: black;
  border-color: var(--color-accent);
}

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

.contact-form {
  max-width: 600px;
  margin: 0 auto;
  padding: var(--space-xl);
  background: rgba(245, 245, 247, 0.03);
  border: 1px solid rgba(245, 245, 247, 0.1);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
}

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

.form-label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 300;
  letter-spacing: 0.05em;
  color: var(--color-text-primary);
  margin-bottom: var(--space-sm);
  text-transform: uppercase;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: var(--space-md);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text-primary);
  background: rgba(245, 245, 247, 0.05);
  border: 1px solid rgba(245, 245, 247, 0.2);
  border-radius: var(--radius-sm);
  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(0, 122, 255, 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-md);
}

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

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

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

.product-card {
  background: rgba(245, 245, 247, 0.03);
  border: 1px solid rgba(245, 245, 247, 0.1);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  transition: all var(--transition-base);
  text-align: center;
}

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

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

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

.product-description {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-md);
  line-height: 1.7;
}

.product-price {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--color-highlight);
  letter-spacing: 0.1em;
}

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

.map-container {
  width: 100%;
  height: 400px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(245, 245, 247, 0.1);
  margin-top: var(--space-xl);
}

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

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

.privacy-popup {
  display: none;
  position: fixed;
  bottom: var(--space-lg);
  left: 50%;
  transform: translateX(-50%);
  max-width: 500px;
  width: calc(100% - 2rem);
  background: rgba(13, 13, 13, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 122, 255, 0.3);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  z-index: 10000;
  box-shadow: var(--shadow-lg);
}

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

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

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

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

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

.privacy-popup-buttons {
  display: flex;
  gap: var(--space-md);
  justify-content: flex-end;
}

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

.site-footer {
  padding: var(--space-xl) var(--space-lg);
  background: rgba(13, 13, 13, 0.95);
  border-top: 1px solid rgba(245, 245, 247, 0.1);
  margin-top: var(--space-3xl);
}

.footer-content {
  max-width: var(--container-max);
  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-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-primary);
  margin-bottom: var(--space-sm);
}

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

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

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

.footer-info {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.8;
}

.footer-copyright {
  text-align: center;
  padding-top: var(--space-lg);
  margin-top: var(--space-lg);
  border-top: 1px solid rgba(245, 245, 247, 0.1);
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* ============================================
   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); }
.mt-xl { margin-top: var(--space-xl); }

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

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

@media (max-width: 768px) {
  :root {
    --section-padding: 3rem 1rem;
    --grid-gap: 1rem;
  }
  
  .site-header {
    padding: var(--space-sm) var(--space-md);
  }
  
  .hero-banner {
    min-height: 50vh;
  }
  
  .grid-container,
  .asymmetrical-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .contact-form {
    padding: var(--space-md);
  }
}

@media (max-width: 480px) {
  :root {
    --section-padding: 2rem 1rem;
  }
  
  .hero-content {
    padding: var(--space-md);
  }
  
  .privacy-popup {
    bottom: var(--space-md);
    padding: var(--space-md);
  }
}

@media (max-width: 320px) {
  :root {
    --section-padding: 1.5rem 0.75rem;
  }
  
  .site-header {
    padding: var(--space-sm);
  }
  
  .brand-text {
    font-size: 1rem;
  }
}

/* ============================================
   SPECIAL PAGES
   ============================================ */

.thank-you-message {
  text-align: center;
  padding: var(--space-3xl) var(--space-lg);
  max-width: 600px;
  margin: 0 auto;
}

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

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

.error-page {
  text-align: center;
  padding: var(--space-3xl) var(--space-lg);
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

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

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

.date {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  font-style: italic;
}

