/* ============================================
   CSS Variables & Root Styles
   ============================================ */
:root {
  --color-primary: #2c6e49;
  --color-secondary: #f4f1de;
  --color-bg: #F4F5F3;
  --color-accent: #D8CFC4;
  --color-sandstone: #C9BBAA;
  --color-blue: #445B73;
  --color-text: #222A2E;
  --color-text-light: rgba(34, 42, 46, 0.7);
  --color-white: #ffffff;
  
  --font-primary: 'Inter Tight', sans-serif;
  --font-secondary: 'Manrope', sans-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: 12px;
  
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
  
  --transition-fast: 0.3s ease;
  --transition-medium: 0.5s ease;
  --transition-slow: 0.8s ease;
  
  --max-width: 1200px;
  --header-height: 80px;
}

/* ============================================
   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-secondary);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ============================================
   Typography
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: var(--space-md);
  color: var(--color-text);
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
}

h3 {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
}

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

/* ============================================
   Header & Navigation
   ============================================ */
.site-header {
  background-color: var(--color-white);
  box-shadow: var(--shadow-sm);
  position: relative;
  z-index: 1000;
  transition: transform var(--transition-medium);
}
.footer-copyright p{
    color: white;
}
.header-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-md) var(--space-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.brand-name {
  font-family: var(--font-primary);
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: -0.5px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 30px;
  height: 30px;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 1001;
  background-color: transparent;
  border: none;
  padding: 5px;
}

.nav-toggle span {
  width: 100%;
  height: 2px;
  background-color: var(--color-text);
  transition: all var(--transition-fast);
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

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

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

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

.nav-menu a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text);
  padding: var(--space-xs) 0;
  position: relative;
}

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

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

/* ============================================
   Main Content
   ============================================ */
.main-content {
  min-height: calc(100vh - var(--header-height) - 200px);
  padding: var(--space-xl) var(--space-lg);
}

.content-wrapper {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section {
  margin-bottom: var(--space-xxl);
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards;
}

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

.section-title {
  text-align: center;
  margin-bottom: var(--space-xl);
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background-color: var(--color-blue);
  margin: var(--space-md) auto 0;
}

/* ============================================
   Hero Section
   ============================================ */
.hero-section {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-xxl) var(--space-lg);
  background: linear-gradient(135deg, var(--color-bg) 0%, var(--color-accent) 100%);
  margin-bottom: var(--space-xxl);
  overflow: hidden;
}

.hero-section.has-banner {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-section.has-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(34, 42, 46, 0.6);
  z-index: 1;
}

.hero-content {
  max-width: 800px;
  z-index: 2;
  position: relative;
}

.hero-section.has-banner .hero-title {
  color: var(--color-white);
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.hero-section.has-banner .hero-subtitle {
  color: var(--color-white);
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

.hero-section.has-banner .hero-cta {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  margin-bottom: var(--space-lg);
  color: var(--color-text);
}

.hero-subtitle {
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
  color: var(--color-text-light);
  margin-bottom: var(--space-xl);
}

.hero-cta {
  display: inline-block;
  padding: var(--space-md) var(--space-xl);
  background-color: var(--color-blue);
  color: var(--color-white);
  border-radius: var(--radius-md);
  font-weight: 600;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-md);
}

.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* ============================================
   Grid Layouts
   ============================================ */
.grid-container {
  display: grid;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.grid-two {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-three {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-four {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* ============================================
   Cards & Modules
   ============================================ */
.card {
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
  overflow: hidden;
}

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

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

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

.card-description {
  color: var(--color-text-light);
  font-size: 0.95rem;
  margin-bottom: var(--space-md);
}

.card-price {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-blue);
  margin-top: var(--space-md);
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-block;
  padding: var(--space-md) var(--space-xl);
  border-radius: var(--radius-md);
  font-weight: 600;
  text-align: center;
  transition: all var(--transition-fast);
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-primary {
  background-color: var(--color-blue);
  color: var(--color-white);
}

.btn-primary:hover {
  background-color: var(--color-text);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-blue);
  border-color: var(--color-blue);
}

.btn-secondary:hover {
  background-color: var(--color-blue);
  color: var(--color-white);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--color-text);
  color: var(--color-text);
}

.btn-outline:hover {
  background-color: var(--color-text);
  color: var(--color-white);
}

/* ============================================
   Forms
   ============================================ */
.form-container {
  max-width: 600px;
  margin: 0 auto;
  background-color: var(--color-white);
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

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

.form-label {
  display: block;
  margin-bottom: var(--space-sm);
  font-weight: 500;
  color: var(--color-text);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: var(--space-md);
  border: 2px solid var(--color-accent);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color var(--transition-fast);
  background-color: var(--color-bg);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-blue);
}

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

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.form-checkbox input[type="checkbox"] {
  margin-top: 4px;
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.form-checkbox label {
  font-size: 0.9rem;
  color: var(--color-text-light);
  cursor: pointer;
}

.form-error {
  color: #d32f2f;
  font-size: 0.875rem;
  margin-top: var(--space-xs);
  display: none;
}

.form-error.active {
  display: block;
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
  background-color: var(--color-text);
  color: var(--color-white);
  padding: var(--space-xl) var(--space-lg);
  margin-top: var(--space-xxl);
}

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

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

.footer-menu a {
  color: var(--color-white);
  opacity: 0.8;
  transition: opacity var(--transition-fast);
  font-size: 0.9rem;
}

.footer-menu a:hover {
  opacity: 1;
}

.footer-copyright {
  text-align: center;
  font-size: 0.875rem;
  opacity: 0.6;
  padding-top: var(--space-md);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ============================================
   Privacy Popup
   ============================================ */
.privacy-popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
}

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

.popup-content {
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  max-width: 600px;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-lg);
}

.popup-close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.5rem;
  color: var(--color-text);
  transition: color var(--transition-fast);
}

.popup-close:hover {
  color: var(--color-blue);
}

.popup-title {
  margin-bottom: var(--space-lg);
  color: var(--color-text);
}

.popup-text {
  color: var(--color-text-light);
  line-height: 1.8;
}

/* ============================================
   Modular Planner Styles
   ============================================ */
.planner-container {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.configurator-area {
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  min-height: 500px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.module-preview {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: var(--space-md);
}

.module-block {
  background-color: var(--color-sandstone);
  border: 2px solid var(--color-accent);
  border-radius: var(--radius-md);
  position: relative;
  transition: all var(--transition-fast);
}

.module-block:hover {
  box-shadow: var(--shadow-md);
}

.controls-panel {
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: var(--space-lg);
  max-height: calc(100vh - var(--space-xl));
  overflow-y: auto;
}

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

.control-label {
  display: block;
  margin-bottom: var(--space-sm);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--color-text);
}

.control-input {
  width: 100%;
  padding: var(--space-sm) var(--space-md);
  border: 2px solid var(--color-accent);
  border-radius: var(--radius-md);
  font-family: inherit;
}

.finish-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-sm);
  margin-top: var(--space-sm);
}

.finish-option {
  padding: var(--space-sm);
  border: 2px solid var(--color-accent);
  border-radius: var(--radius-md);
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-size: 0.875rem;
}

.finish-option.active {
  border-color: var(--color-blue);
  background-color: var(--color-blue);
  color: var(--color-white);
}

/* ============================================
   Before/After Slider
   ============================================ */
.slider-container {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.slider-wrapper {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 75%;
}

.slider-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity var(--transition-medium);
}

.slider-image.active {
  opacity: 1;
}

.slider-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.9);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all var(--transition-fast);
  font-size: 1.5rem;
  color: var(--color-text);
}

.slider-control:hover {
  background-color: var(--color-white);
  transform: translateY(-50%) scale(1.1);
}

.slider-control.prev {
  left: var(--space-md);
}

.slider-control.next {
  right: var(--space-md);
}

.slider-dots {
  position: absolute;
  bottom: var(--space-md);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: var(--space-sm);
  z-index: 10;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.slider-dot.active {
  background-color: var(--color-white);
  width: 30px;
  border-radius: 5px;
}

/* ============================================
   Google Maps
   ============================================ */
.map-container {
  width: 100%;
  height: 400px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin: var(--space-xl) 0;
}

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

/* ============================================
   Thank You Page
   ============================================ */
.thank-you-container {
  text-align: center;
  padding: var(--space-xxl) var(--space-lg);
  max-width: 600px;
  margin: 0 auto;
}

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

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

.thank-you-message {
  font-size: 1.125rem;
  color: var(--color-text-light);
  margin-bottom: var(--space-xl);
  line-height: 1.8;
}

/* ============================================
   404 Page
   ============================================ */
.error-container {
  text-align: center;
  padding: var(--space-xxl) 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: 700;
  color: var(--color-blue);
  margin-bottom: var(--space-md);
}

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

/* ============================================
   Legal Pages
   ============================================ */
.legal-container {
  max-width: 800px;
  margin: 0 auto;
  padding: var(--space-xl) var(--space-lg);
}

.legal-title {
  margin-bottom: var(--space-xl);
  text-align: center;
}

.legal-content {
  background-color: var(--color-white);
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

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

.legal-section h2 {
  font-size: 1.5rem;
  margin-bottom: var(--space-md);
  color: var(--color-text);
  border-bottom: 2px solid var(--color-accent);
  padding-bottom: var(--space-sm);
}

.legal-section h3 {
  font-size: 1.25rem;
  margin-top: var(--space-lg);
  margin-bottom: var(--space-md);
  color: var(--color-text);
}

.legal-date {
  text-align: center;
  font-style: italic;
  color: var(--color-text-light);
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--color-accent);
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }
  
  .main-nav {
    position: fixed;
    top: 8%;
    left: 0;
    width: 100%;
    background-color: var(--color-white);
    box-shadow: var(--shadow-md);
    transform: translateX(-100%);
    transition: transform var(--transition-medium);
    padding: var(--space-lg);
    flex-direction: column;
  }
  
  .main-nav.active {
    transform: translateX(0);
  }
  
  .nav-menu {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-md);
    width: 100%;
    display: none;
  }
  
  .main-nav.active .nav-menu {
    display: flex;
  }
  
  .nav-menu li {
    width: 100%;
  }
  
  .nav-menu a {
    display: block;
    padding: var(--space-sm) 0;
    width: 100%;
  }
  
  .planner-container {
    grid-template-columns: 1fr;
  }
  
  .controls-panel {
    position: relative;
    top: 0;
    max-height: none;
  }
  
  .grid-three {
    grid-template-columns: 1fr;
  }
  
  .grid-four {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .hero-section {
    min-height: 50vh;
    padding: var(--space-xl) var(--space-lg);
  }
  
  .footer-menu {
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
  }
}

@media (max-width: 480px) {
  :root {
    --space-xl: 2rem;
    --space-xxl: 3rem;
  }
  
  .header-container {
    padding: var(--space-sm) var(--space-md);
  }
  
  .main-content {
    padding: var(--space-lg) var(--space-md);
  }
  
  .form-container {
    padding: var(--space-lg);
  }
  
  .grid-two,
  .grid-four {
    grid-template-columns: 1fr;
  }
  
  .popup-content {
    padding: var(--space-lg);
    max-height: 90vh;
  }
}

@media (max-width: 320px) {
  html {
    font-size: 14px;
  }
  
  .hero-section {
    min-height: 40vh;
    padding: var(--space-lg) var(--space-md);
  }
  
  .card {
    padding: var(--space-md);
  }
}

/* ============================================
   Utility Classes
   ============================================ */
.text-center {
  text-align: center;
}

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

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

.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); }

.hidden {
  display: none;
}

.fade-in {
  animation: fadeInUp 0.8s ease forwards;
}

