/* ============================================
   MATHEMATICAL OPULENCE DESIGN SYSTEM
   Neo-Classical Grid & Layered Transparency
   ============================================ */

:root {
  /* Color Palette: The Champagne & Caviar */
  --color-pearl-white: #FCFBF4;
  --color-deep-truffle: #2F2B2A;
  --color-burnished-gold: #D4AF37;
  --color-transparent-slate: rgba(112, 128, 144, 0.53);
  --color-silk-ivory: #FAF9F5;
  
  /* Typography */
  --font-serif: 'Prata', serif;
  --font-sans: 'Public Sans', sans-serif;
  
  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;
  
  /* Borders & Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  
  /* Shadows */
  --shadow-soft: 0 2px 8px rgba(47, 43, 42, 0.08);
  --shadow-medium: 0 4px 16px rgba(47, 43, 42, 0.12);
  --shadow-strong: 0 8px 32px rgba(47, 43, 42, 0.16);
  --shadow-gold: 0 4px 20px rgba(212, 175, 55, 0.3);
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  /* Grid & Layout */
  --container-max: 1280px;
  --grid-gap: 2rem;
}

/* ============================================
   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-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-deep-truffle);
  background-color: var(--color-pearl-white);
  background-image: 
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(47, 43, 42, 0.02) 2px,
      rgba(47, 43, 42, 0.02) 4px
    );
  overflow-x: hidden;
}

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

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

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

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

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

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

p {
  margin-bottom: var(--space-md);
  font-size: clamp(1rem, 1.5vw, 1.125rem);
}

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

a:hover {
  color: var(--color-deep-truffle);
}

/* ============================================
   CONTAINER & LAYOUT
   ============================================ */

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.section {
  padding: var(--space-3xl) 0;
  position: relative;
  text-align: center;
}

.section .container {
  text-align: center;
}

/* Symmetry Guides (subtle grid lines) */
.section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 1px;
  height: 100%;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(212, 175, 55, 0.1) 20%,
    rgba(212, 175, 55, 0.1) 80%,
    transparent
  );
  pointer-events: none;
  opacity: 0.3;
}

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

.header {
  position: relative;
  padding: var(--space-lg) 0;
  background: rgba(252, 251, 244, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  z-index: 1000;
}

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

.brand-name {
  font-family: var(--font-serif);
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: var(--color-deep-truffle);
  font-weight: 400;
}

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

.burger-button {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-sm);
  z-index: 10001;
  position: relative;
  margin-left: var(--space-md);
}

.nav-link {
  font-size: 0.95rem;
  color: var(--color-deep-truffle);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 400;
  position: relative;
  padding: var(--space-xs) 0;
}

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

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


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

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

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

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

/* Mobile Navigation */
@media (max-width: 1023px) {
  .burger-button {
    display: flex;
  }
  
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: rgba(252, 251, 244, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: var(--space-3xl) var(--space-lg);
    gap: var(--space-lg);
    box-shadow: var(--shadow-strong);
    transition: right var(--transition-base);
    z-index: 999;
    border-left: 1px solid rgba(212, 175, 55, 0.2);
    margin: 0;
  }
  
  .nav-menu.active {
    right: 0;
  }
  
  .nav-link {
    font-size: 1.1rem;
    width: 100%;
    padding: var(--space-md) 0;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
  }
}

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

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

.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  display: none;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(47, 43, 42, 0.5) 0%,
    rgba(47, 43, 42, 0.3) 50%,
    rgba(47, 43, 42, 0.6) 100%
  );
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  color: var(--color-pearl-white);
  padding: var(--space-xl);
  max-width: 900px;
  margin: 0 auto;
}

.hero-title {
  color: var(--color-pearl-white);
  margin-bottom: var(--space-lg);
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}

.hero-text {
  color: rgba(252, 251, 244, 0.95);
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  margin-bottom: var(--space-xl);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.3);
}

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

.btn {
  display: inline-block;
  padding: var(--space-md) var(--space-xl);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: 1px solid var(--color-burnished-gold);
  background: transparent;
  color: var(--color-burnished-gold);
  cursor: pointer;
  transition: all var(--transition-base);
  text-align: center;
  margin-top: 10px;
}

.btn:hover {
  background: var(--color-burnished-gold);
  color: var(--color-pearl-white);
  box-shadow: var(--shadow-gold);
}

.btn-primary {
  background: var(--color-burnished-gold);
  color: var(--color-pearl-white);
}

.btn-primary:hover {
  background: transparent;
  color: var(--color-burnished-gold);
}

/* ============================================
   GRID LAYOUTS
   ============================================ */

.grid-two {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--grid-gap);
  max-width: 1200px;
  margin: 0 auto;
  align-items: center;
}

.grid-three {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--grid-gap);
  max-width: 1200px;
  margin: 0 auto;
}

.grid-four {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--grid-gap);
  max-width: 1200px;
  margin: 0 auto;
}

@media (max-width: 1023px) {
  .grid-two,
  .grid-three,
  .grid-four {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    max-width: 100%;
  }
}

/* ============================================
   GLASSMORPHISM CARDS
   ============================================ */

.glass-card {
  background: rgba(252, 251, 244, 0.7);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-soft);
  transition: all var(--transition-base);
}

.glass-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-medium);
  border-color: rgba(212, 175, 55, 0.4);
}

/* ============================================
   IMAGE GALLERIES
   ============================================ */

.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-lg);
  margin: var(--space-xl) 0;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-soft);
  max-width: 100%;
}

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

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

.section-content {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.section-image {
  max-width: 500px;
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-medium);
  margin: var(--space-lg) auto;
  display: block;
}

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

.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

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

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

.form-input,
.form-textarea {
  width: 100%;
  padding: var(--space-md);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: var(--radius-sm);
  background: rgba(252, 251, 244, 0.8);
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--color-deep-truffle);
  transition: all var(--transition-base);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-burnished-gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

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

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

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

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

/* ============================================
   DRAG-AND-DROP BUILDER
   ============================================ */

.builder-container {
  max-width: 1000px;
  margin: var(--space-xl) auto;
}

.builder-surface {
  position: relative;
  width: 100%;
  min-height: 500px;
  background: var(--color-silk-ivory);
  border: 2px dashed rgba(212, 175, 55, 0.3);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  margin: var(--space-lg) 0;
}

.builder-tools {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  margin-bottom: var(--space-lg);
  padding: var(--space-lg);
  background: rgba(252, 251, 244, 0.6);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-md);
  border: 1px solid rgba(212, 175, 55, 0.2);
}

.builder-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md);
  background: var(--color-pearl-white);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: var(--radius-sm);
  cursor: grab;
  transition: all var(--transition-base);
  min-width: 80px;
}

.builder-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
  border-color: var(--color-burnished-gold);
}

.builder-item.dragging {
  opacity: 0.5;
  cursor: grabbing;
}

.builder-icon {
  font-size: 2rem;
  color: var(--color-burnished-gold);
}

.builder-item-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-deep-truffle);
}

.placed-item {
  position: absolute;
  cursor: move;
  padding: var(--space-sm);
  background: rgba(252, 251, 244, 0.9);
  backdrop-filter: blur(10px);
  border: 2px solid var(--color-burnished-gold);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  box-shadow: var(--shadow-medium);
  z-index: 10;
}

.placed-item:hover {
  z-index: 20;
}

.service-map {
  margin-top: var(--space-xl);
  padding: var(--space-lg);
  background: rgba(252, 251, 244, 0.8);
  border-radius: var(--radius-md);
  border: 1px solid rgba(212, 175, 55, 0.2);
}

/* ============================================
   PRODUCT CARDS
   ============================================ */

.product-card {
  background: var(--color-pearl-white);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-soft);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-medium);
  border-color: rgba(212, 175, 55, 0.4);
}

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

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

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

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

/* ============================================
   TOGGLE SECTIONS (Etiquette Library)
   ============================================ */

.toggle-buttons {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
  flex-wrap: wrap;
  justify-content: center;
}

.toggle-btn {
  padding: var(--space-md) var(--space-lg);
  background: transparent;
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: var(--color-deep-truffle);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: all var(--transition-base);
  border-radius: var(--radius-sm);
}

.toggle-btn.active {
  background: var(--color-burnished-gold);
  color: var(--color-pearl-white);
  border-color: var(--color-burnished-gold);
}

.toggle-content {
  display: none;
}

.toggle-content.active {
  display: block;
  animation: fadeIn var(--transition-base);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

.footer {
  background: var(--color-deep-truffle);
  color: var(--color-pearl-white);
  padding: var(--space-2xl) 0 var(--space-lg);
  margin-top: var(--space-3xl);
}

.footer-content {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.footer-nav {
  display: flex;
  gap: var(--space-lg);
  flex-wrap: wrap;
  margin-bottom: var(--space-lg);
  justify-content: center;
}

.footer-link {
  color: rgba(252, 251, 244, 0.8);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color var(--transition-fast);
}

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

.footer-info {
  text-align: center;
  font-size: 0.85rem;
  color: rgba(252, 251, 244, 0.6);
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(212, 175, 55, 0.2);
}

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

.privacy-popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(47, 43, 42, 0.8);
  backdrop-filter: blur(5px);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
}

.privacy-popup.active {
  display: flex;
}

.popup-content {
  background: var(--color-pearl-white);
  max-width: 600px;
  max-height: 80vh;
  overflow-y: auto;
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-strong);
  border: 1px solid rgba(212, 175, 55, 0.3);
  position: relative;
}

.popup-close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--color-deep-truffle);
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.popup-close:hover {
  background: rgba(212, 175, 55, 0.1);
}

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

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

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

/* ============================================
   UTILITY CLASSES
   ============================================ */

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

.text-gold {
  color: var(--color-burnished-gold);
}

.mt-lg {
  margin-top: var(--space-lg);
}

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

.mt-xl {
  margin-top: var(--space-xl);
}

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

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

@media (max-width: 768px) {
  .section {
    padding: var(--space-2xl) 0;
  }
  
  .hero-banner {
    min-height: 50vh;
  }
  
  .container {
    padding: 0 var(--space-md);
  }
  
  .toggle-buttons {
    flex-direction: column;
  }
  
  .toggle-btn {
    width: 100%;
  }
}

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

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

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

.error-code {
  font-family: var(--font-serif);
  font-size: clamp(4rem, 10vw, 8rem);
  color: var(--color-burnished-gold);
  margin-bottom: var(--space-md);
}

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

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

.thank-you-content {
  max-width: 700px;
  margin: var(--space-3xl) auto;
  text-align: center;
  padding: var(--space-xl);
}

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

