/* CSS Variables */
:root {
  --color-primary: #2c6e49;
  --color-secondary: #f4f1de;
  --warm-linen: #F3EBDD;
  --wood-brown: #C8A781;
  --soft-clay: #D9C2A3;
  --glass-gray: #DDE1E4;
  --dark-walnut: #4A3D33;
  --olive-mist: #C9D4C1;
  --stone-gray: #9C9C9C;
  --font-heading: 'Karla', sans-serif;
  --font-body: 'Lora', serif;
  --font-label: 'Quicksand', sans-serif;
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --transition-fast: 0.3s ease;
  --transition-slow: 0.6s ease;
  --shadow-sm: 0 2px 4px rgba(74, 61, 51, 0.1);
  --shadow-md: 0 4px 8px rgba(74, 61, 51, 0.15);
  --shadow-lg: 0 8px 16px rgba(74, 61, 51, 0.2);
}

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-body);
  color: var(--dark-walnut);
  background-color: var(--warm-linen);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--dark-walnut);
  line-height: 1.2;
  margin-bottom: var(--space-md);
}

h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
}

h2 {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
}

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

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

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

a:hover {
  color: var(--wood-brown);
}

/* Header */
.site-header {
  background-color: var(--warm-linen);
  padding: var(--space-md);
  box-shadow: var(--shadow-sm);
  position: relative;
  z-index: 100;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
  position: relative;
}

.brand-text {
  font-family: var(--font-heading);
  font-size: clamp(1rem, 2vw, 1.75rem);
  font-weight: 600;
  color: var(--dark-walnut);
  z-index: 1;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 15px;
  align-items: center;
  flex-wrap: wrap;
  z-index: 1;
  position: relative;
}

.nav-menu li a {
  font-family: var(--font-label);
  color: var(--dark-walnut);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  transition: background-color var(--transition-fast);
}

.nav-menu li a:hover {
  background-color: var(--olive-mist);
  color: var(--dark-walnut);
}

.burger-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-sm);
  margin-left: auto;
  order: 999;
  z-index: 1001;
  position: relative;
}

.burger-icon {
  width: 28px;
  height: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
}

.burger-icon span {
  width: 100%;
  height: 3px;
  background-color: var(--dark-walnut);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

.burger-btn.active .burger-icon span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.burger-btn.active .burger-icon span:nth-child(2) {
  opacity: 0;
}

.burger-btn.active .burger-icon span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Main Content */
main {
  flex: 1;
  width: 100%;
}

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

.section {
  margin-bottom: var(--space-xl);
  padding: var(--space-lg) 0;
}

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

/* Banner */
.banner {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-lg);
  box-shadow: var(--shadow-md);
}

@media (max-width: 768px) {
  .banner {
    height: 250px;
  }
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-lg);
}

.card {
  background-color: #fff;
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

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

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

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

.card-text {
  color: var(--stone-gray);
  font-size: 0.95rem;
}

/* Material Cards */
.material-card {
  background: linear-gradient(135deg, #fff 0%, var(--warm-linen) 100%);
  border: 2px solid var(--olive-mist);
}

.material-property {
  display: flex;
  justify-content: space-between;
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--glass-gray);
}

.material-property:last-child {
  border-bottom: none;
}

.property-label {
  font-family: var(--font-label);
  font-weight: 600;
  color: var(--dark-walnut);
}

.property-value {
  color: var(--stone-gray);
}

/* Progress Bars */
.progress-container {
  margin: var(--space-sm) 0;
}

.progress-label {
  font-size: 0.875rem;
  margin-bottom: var(--space-xs);
  color: var(--stone-gray);
}

.progress-bar {
  width: 100%;
  height: 8px;
  background-color: var(--glass-gray);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background-color: var(--color-primary);
  transition: width var(--transition-slow);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: var(--space-md) var(--space-lg);
  background-color: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-label);
  font-size: 1rem;
  cursor: pointer;
  transition: background-color var(--transition-fast), transform var(--transition-fast);
  text-align: center;
}

.btn:hover {
    color: black;
  background-color: var(--wood-brown);
  transform: translateY(-2px);
}

.footer-section a{
    color: white;
}

.btn-secondary {
  background-color: var(--olive-mist);
  color: var(--dark-walnut);
}

.btn-secondary:hover {
    color: black;
  background-color: var(--soft-clay);
}

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

.form-label {
  display: block;
  font-family: var(--font-label);
  font-weight: 600;
  margin-bottom: var(--space-sm);
  color: var(--dark-walnut);
}

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

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

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

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

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

.checkbox-label {
  font-size: 0.9rem;
  color: var(--stone-gray);
}

/* Footer */
.site-footer {
  background-color: var(--dark-walnut);
  color: var(--warm-linen);
  padding: var(--space-xl) var(--space-lg);
  margin-top: var(--space-xl);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-lg);
}

.footer-section h3 {
  color: var(--warm-linen);
  margin-bottom: var(--space-md);
  font-size: 1.1rem;
}

.footer-menu {
  list-style: none;
}

.footer-menu li {
  margin-bottom: var(--space-sm);
}

.footer-menu a {
  color: var(--warm-linen);
  transition: color var(--transition-fast);
}

.footer-menu a:hover {
  color: var(--olive-mist);
}

.footer-bottom {
  text-align: center;
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(243, 235, 221, 0.2);
  font-size: 0.9rem;
}

/* Privacy Popup */
.privacy-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(74, 61, 51, 0.8);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
}

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

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

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

.privacy-close:hover {
  background-color: var(--glass-gray);
}

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

.privacy-popup p {
  margin-bottom: var(--space-md);
  font-size: 0.95rem;
}

/* Map Container */
.map-container {
  width: 100%;
  height: 400px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-top: var(--space-lg);
}

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

/* Calculator */
.calc-container {
  background-color: #fff;
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-md);
  max-width: 600px;
  margin: 0 auto;
}

.calc-result {
  margin-top: var(--space-lg);
  padding: var(--space-lg);
  background-color: var(--olive-mist);
  border-radius: var(--radius-md);
  display: none;
}

.calc-result.active {
  display: block;
}

.result-item {
  margin-bottom: var(--space-md);
  padding: var(--space-md);
  background-color: #fff;
  border-radius: var(--radius-sm);
}

.result-label {
  font-family: var(--font-label);
  font-weight: 600;
  color: var(--dark-walnut);
}

.result-value {
  font-size: 1.5rem;
  color: var(--color-primary);
  font-weight: 600;
}

/* Room Ideas */
.room-section {
  margin-bottom: var(--space-xl);
  padding: var(--space-lg);
  background-color: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.room-title {
  font-size: 1.5rem;
  margin-bottom: var(--space-md);
  color: var(--dark-walnut);
}

.idea-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-md);
}

.idea-item {
  padding: var(--space-md);
  background-color: var(--warm-linen);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--color-primary);
}

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

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

/* 404 Page */
.error-container {
  text-align: center;
  padding: var(--space-xl);
  max-width: 600px;
  margin: 0 auto;
}

.error-code {
  font-size: 6rem;
  color: var(--color-primary);
  margin-bottom: var(--space-md);
}

/* Date Display */
.date {
  font-size: 0.9rem;
  color: var(--stone-gray);
  font-style: italic;
}


/* Responsive Design */
@media (max-width: 768px) {
  .nav-menu {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100%;
    background-color: var(--warm-linen);
    flex-direction: column;
    gap: var(--space-md);
    margin: 0;
    padding: var(--space-xl) var(--space-lg);
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    transform: translateX(100%);
    transition: transform var(--transition-fast);
    align-items: flex-start;
    justify-content: flex-start;
    overflow-y: auto;
  }

  .nav-menu.active {
    display: flex;
    transform: translateX(0);
  }

  .nav-menu li {
    width: 100%;
  }

  .nav-menu li a {
    display: block;
    width: 100%;
    padding: var(--space-md);
    border-bottom: 1px solid var(--glass-gray);
  }

  .burger-btn {
    display: block;
  }

  .header-container {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .container {
    padding: var(--space-md);
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .footer-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 14px;
  }

  .banner {
    height: 200px;
  }

  .calc-container {
    padding: var(--space-md);
  }

  .privacy-popup {
    padding: var(--space-md);
  }
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn var(--transition-slow) ease-out;
}

/* Button Groups */
.button-group {
  margin-top: var(--space-lg);
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

/* 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);
}

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

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

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

