:root {
  /* Color Palette - Luminous Darkness */
  --color-pitch: #0D0D0D;
  --color-forest: #13211C;
  --color-slate: #1F262D;
  --color-violet: #2A1F36;
  --color-teal: #12303A;
  --color-light: #F8F9FA;
  --color-accent: #4A9B8E;
  --color-white: #FFFFFF;
  
  /* Typography Scale */
  --font-primary: 'Cormorant Garamond', serif;
  --font-secondary: 'Work Sans', sans-serif;
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.5rem;
  --text-2xl: 2rem;
  --text-3xl: 2.5rem;
  
  /* Spacing System */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  
  /* Visual Properties */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 1rem;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.12);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.15);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.2);
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* === FOUNDATION === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-secondary);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-light);
  background-color: var(--color-pitch);
  overflow-x: hidden;
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  line-height: 1.2;
  margin-bottom: var(--space-sm);
  font-weight: 500;
}

h1 {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-md);
}

h2 {
  font-size: var(--text-2xl);
}

h3 {
  font-size: var(--text-xl);
}

p {
  margin-bottom: var(--space-sm);
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-light);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* === LAYOUT CONTAINERS === */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.section {
  padding: var(--space-xl) 0;
}

.section-compact {
  padding: var(--space-lg) 0;
}

/* === HEADER - OVERLAY DESIGN === */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, rgba(13,13,13,0.95) 0%, rgba(13,13,13,0) 100%);
  padding: var(--space-sm) 0;
  transition: transform var(--transition-base), background var(--transition-base);
}

.site-header.hidden {
  transform: translateY(-100%);
}

.site-header.solid {
  background: var(--color-pitch);
  box-shadow: var(--shadow-md);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-primary);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--color-light);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* === NAVIGATION === */
.nav-toggle {
  background: transparent;
  border: 2px solid var(--color-accent);
  color: var(--color-accent);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: var(--text-sm);
  display: none;
  transition: all var(--transition-fast);
}

.nav-toggle:hover {
  background: var(--color-accent);
  color: var(--color-pitch);
}

.main-nav {
  display: flex;
  gap: var(--space-md);
  align-items: center;
}

.nav-link {
  color: var(--color-light);
  font-size: var(--text-sm);
  padding: var(--space-xs) 0;
  position: relative;
  transition: color var(--transition-fast);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width var(--transition-base);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-dropdown {
  position: relative;
}

.dropdown-toggle {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--color-forest);
  min-width: 200px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: var(--space-sm);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all var(--transition-base);
}

.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-link {
  display: block;
  padding: var(--space-xs) var(--space-sm);
  color: var(--color-light);
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast);
}

.dropdown-link:hover {
  background: var(--color-slate);
}

/* === HERO SECTION === */
.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, var(--color-forest), var(--color-teal));
  padding: var(--space-xl) var(--space-md);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 50%, rgba(74,155,142,0.1), transparent);
  pointer-events: none;
}

.hero-content {
  max-width: 800px;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: clamp(var(--text-2xl), 5vw, 3.5rem);
  margin-bottom: var(--space-md);
  animation: fadeInUp 0.8s ease;
}

.hero p {
  font-size: var(--text-lg);
  margin-bottom: var(--space-lg);
  opacity: 0.9;
  animation: fadeInUp 1s ease;
}

/* === BUTTONS === */
.btn {
  display: inline-block;
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-lg);
  font-size: var(--text-base);
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  border: none;
  transition: all var(--transition-base);
  text-decoration: none;
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-pitch);
}

.btn-primary:hover {
  background: var(--color-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: transparent;
  color: var(--color-light);
  border: 2px solid var(--color-light);
}

.btn-secondary:hover {
  background: var(--color-light);
  color: var(--color-pitch);
}

/* === CONTENT SECTIONS === */
.content-section {
  background: var(--color-forest);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.section-title {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.grid {
  display: grid;
  gap: var(--space-md);
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.card {
  background: var(--color-slate);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-sm);
}

.card-title {
  font-size: var(--text-lg);
  margin-bottom: var(--space-xs);
}

.card-text {
  font-size: var(--text-sm);
  opacity: 0.85;
}

.price {
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--color-accent);
  margin-top: var(--space-sm);
}

/* === CONTACT FORM === */
.contact-wrapper {
  max-width: 700px;
  margin: 0 auto;
  background: var(--color-forest);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-lg);
}

.form-group {
  margin-bottom: var(--space-md);
}

.form-label {
  display: block;
  margin-bottom: var(--space-xs);
  font-size: var(--text-sm);
  font-weight: 500;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: var(--space-sm);
  border: 2px solid var(--color-slate);
  border-radius: var(--radius-md);
  background: var(--color-pitch);
  color: var(--color-light);
  font-family: var(--font-secondary);
  font-size: var(--text-base);
  transition: border-color var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-accent);
}

.form-textarea {
  min-height: 150px;
  resize: vertical;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
}

.checkbox-input {
  margin-top: 0.25rem;
}

.checkbox-label {
  font-size: var(--text-sm);
  line-height: 1.5;
}

/* === FOOTER === */
.site-footer {
  background: var(--color-forest);
  padding: var(--space-lg) 0 var(--space-sm);
  margin-top: var(--space-xl);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.footer-info {
  flex: 1;
  min-width: 250px;
}

.footer-title {
  font-size: var(--text-lg);
  margin-bottom: var(--space-sm);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.footer-bottom {
  text-align: center;
  padding-top: var(--space-sm);
  border-top: 1px solid var(--color-slate);
  font-size: var(--text-sm);
  opacity: 0.7;
}

/* === PRIVACY POPUP === */
.privacy-popup {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--color-forest);
  padding: var(--space-md);
  box-shadow: var(--shadow-lg);
  z-index: 9999;
  transform: translateY(100%);
  transition: transform var(--transition-base);
}

.privacy-popup.visible {
  transform: translateY(0);
}

.privacy-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.privacy-text {
  flex: 1;
  font-size: var(--text-sm);
}

.privacy-actions {
  display: flex;
  gap: var(--space-sm);
}

.btn-sm {
  padding: var(--space-xs) var(--space-md);
  font-size: var(--text-sm);
}

/* === MAP === */
.map-container {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  height: 400px;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* === THANK YOU & ERROR PAGES === */
.message-page {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.message-content {
  padding: 60px 0;
  max-width: 600px;
}

.message-icon {
  font-size: 4rem;
  margin-bottom: var(--space-md);
  color: var(--color-accent);
}

/* === ANIMATIONS === */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeInUp 0.6s ease;
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 768px) {
  :root {
    --text-3xl: 2rem;
    --text-2xl: 1.5rem;
    --space-xl: 3rem;
    --space-lg: 2rem;
  }
  
  .nav-toggle {
    display: block;
  }
  
  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: var(--color-forest);
    flex-direction: column;
    align-items: flex-start;
    padding: var(--space-xl) var(--space-md);
    box-shadow: var(--shadow-lg);
    transition: right var(--transition-base);
    overflow-y: auto;
  }
  
  .main-nav.active {
    right: 0;
  }
  
  .nav-dropdown .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: var(--color-slate);
    margin-top: var(--space-xs);
    display: none;
  }
  
  .nav-dropdown.active .dropdown-menu {
    display: block;
  }
  
  .footer-content {
    flex-direction: column;
  }
  
  .privacy-content {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--space-sm);
  }
  
  .hero {
    min-height: 80vh;
  }
  
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }
  
  .btn {
    width: 100%;
  }
}

@media (max-width: 320px) {
  :root {
    --text-xs: 0.65rem;
    --text-sm: 0.75rem;
    --text-base: 0.8rem;
    --text-lg: 1rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.8rem;
    
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 0.75rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
  }

  /* Hero Section */
  .hero {
    padding: var(--space-lg) var(--space-sm);
    min-height: 70vh;
  }

  .hero h1 {
    font-size: 1.5rem;
  }

  .hero p {
    font-size: 0.9rem;
    margin-bottom: var(--space-md);
  }

  /* Header */
  .header-content {
    gap: var(--space-xs);
  }

  .logo {
    font-size: 1rem;
  }

  .nav-toggle {
    padding: var(--space-xs) var(--space-sm);
    font-size: var(--text-xs);
  }

  /* Buttons */
  .btn {
    font-size: 0.8rem;
    padding: var(--space-xs) var(--space-sm);
  }

  /* Grid layout */
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
  }

  .card {
    padding: var(--space-sm);
  }

  .card-image {
    height: 150px;
  }

  .card-title {
    font-size: 0.9rem;
  }

  .card-text {
    font-size: 0.75rem;
  }

  .price {
    font-size: 1rem;
  }

  /* Contact Form */
  .contact-wrapper {
    padding: var(--space-md);
  }

  .form-input,
  .form-textarea {
    font-size: 0.8rem;
    padding: var(--space-xs);
  }

  /* Footer */
  .footer-title {
    font-size: 0.9rem;
  }

  .footer-links {
    font-size: 0.75rem;
  }

  /* Privacy Popup */
  .privacy-text {
    font-size: 0.7rem;
  }

  .privacy-actions {
    flex-direction: column;
    gap: var(--space-xs);
  }
}
