/* CSS Variables - Scandinavian Minimalism Theme */
:root {
  /* Colors - Wood tones and sustainability */
  --color-primary: #8B5E3C;
  --color-secondary: #F2EFEA;
  --color-accent: #4A7C59;
  --color-neutral: #D9D9D9;
  --color-text: #2C2C2C;
  --color-text-light: #6B6B6B;
  --color-white: #FFFFFF;
  --color-black: #1A1A1A;
  
  /* Typography */
  --font-primary: 'Montserrat', sans-serif;
  --font-heading: 'Lora', serif;
  
  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-xxl: 3rem;
  
  /* Border & Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --border-thin: 1px solid var(--color-neutral);
  
  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.15);
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  /* Layout */
  --max-width: 1200px;
  --header-height: 70px;
}

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

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

body {
  font-family: var(--font-primary);
  color: var(--color-text);
  background-color: var(--color-white);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

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

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

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

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

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

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

/* Container */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* Header */
.header-main {
  background-color: var(--color-white);
  box-shadow: var(--shadow-sm);
  position: relative;
  z-index: 1000;
  transition: transform var(--transition-base);
}

.header-main.hidden {
  transform: translateY(-100%);
}

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

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

.nav-primary {
  display: flex;
  gap: var(--space-lg);
  list-style: none;
}

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

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

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

.burger-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-xs);
  color: var(--color-text);
  font-size: 1.5rem;
}

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

/* Mobile Navigation */
@media (max-width: 768px) {
  .burger-toggle {
    display: block;
  }
  
  .nav-primary {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--color-white);
    flex-direction: column;
    padding: var(--space-md);
    box-shadow: var(--shadow-md);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
    gap: var(--space-md);
  }
  
  .nav-primary.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
}

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

/* Hero Section */
.hero-banner {
  background-color: var(--color-secondary);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: var(--space-xxl) var(--space-md);
  text-align: center;
  position: relative;
  overflow: hidden;
  min-height: 500px;
  display: flex;
  align-items: center;
}

.hero-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(44, 44, 44, 0.4);
  z-index: 1;
}

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

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

.hero-description {
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: var(--color-white);
  margin-bottom: var(--space-xl);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-image {
  display: none;
}

/* Section Styles */
.content-section {
  padding: var(--space-xxl) 0;
}

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

.section-text {
  max-width: 800px;
  margin: 0 auto var(--space-xl);
  text-align: center;
}

/* Grid Layouts */
.grid-two {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-xl);
  margin-top: var(--space-xl);
}

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

.grid-four {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

@media (max-width: 320px) {
  .grid-two,
  .grid-three,
  .grid-four {
    grid-template-columns: 1fr;
  }
}

/* Card Components */
.card-item {
  background-color: var(--color-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

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

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

.card-body {
  padding: var(--space-lg);
}

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

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

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

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

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

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

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

/* Form Styles */
.form-container {
  max-width: 600px;
  margin: 0 auto;
  background-color: var(--color-secondary);
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
}

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

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

.form-input,
.form-textarea {
  width: 100%;
  padding: var(--space-md);
  border: var(--border-thin);
  border-radius: var(--radius-md);
  font-family: var(--font-primary);
  font-size: 1rem;
  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;
}

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

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

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

.form-submit {
  width: 100%;
  margin-top: var(--space-lg);
}

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

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

/* Footer */
.footer-main {
  background-color: var(--color-black);
  color: var(--color-white);
  padding: var(--space-xl) var(--space-md);
  margin-top: var(--space-xxl);
}

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

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

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

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

.footer-links a {
  color: var(--color-neutral);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--color-white);
}

.footer-bottom {
  text-align: center;
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--color-neutral);
  font-size: 0.9rem;
}

/* Privacy Popup */
.privacy-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
}

.privacy-overlay.active {
  opacity: 1;
  visibility: visible;
}

.privacy-modal {
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  transform: scale(0.9);
  transition: transform var(--transition-base);
}

.privacy-overlay.active .privacy-modal {
  transform: scale(1);
}

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

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

.privacy-content h2 {
  margin-bottom: var(--space-lg);
  color: var(--color-primary);
}

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

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

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

.thank-you-title {
  color: var(--color-primary);
  margin-bottom: var(--space-lg);
}

.thank-you-text {
  font-size: 1.125rem;
  margin-bottom: var(--space-xl);
}

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

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

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

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

/* Image Gallery */
.image-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

.gallery-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-base);
}

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

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

/* Feature List */
.feature-list {
  list-style: none;
  max-width: 600px;
  margin: var(--space-xl) auto;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
  padding: var(--space-md);
  background-color: var(--color-secondary);
  border-radius: var(--radius-md);
}

.feature-icon {
  font-size: 1.5rem;
  color: var(--color-accent);
  flex-shrink: 0;
}

.feature-content h4 {
  margin-bottom: var(--space-xs);
  color: var(--color-primary);
}

/* Contact Info */
.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

.contact-card {
  background-color: var(--color-secondary);
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  text-align: center;
}

.contact-icon {
  font-size: 2rem;
  color: var(--color-primary);
  margin-bottom: var(--space-md);
}

.contact-card h4 {
  margin-bottom: var(--space-sm);
  color: var(--color-primary);
}

.contact-card p,
.contact-card a {
  color: var(--color-text-light);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  :root {
    --space-xl: 1.5rem;
    --space-xxl: 2rem;
  }
  
  .hero-banner {
    padding: var(--space-xl) var(--space-md);
    min-height: 400px;
  }
  
  .content-section {
    padding: var(--space-xl) 0;
  }
  
  .form-container {
    padding: var(--space-lg);
  }
}

@media (max-width: 480px) {
  :root {
    --space-md: 0.75rem;
    --space-lg: 1rem;
  }
  
  .hero-banner {
    min-height: 350px;
  }
  
  .card-body {
    padding: var(--space-md);
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
}

@media (max-width: 320px) {
  html {
    font-size: 14px;
  }
  
  .container {
    padding: 0 var(--space-sm);
  }
  
  .hero-banner {
    min-height: 300px;
  }
  
  .btn-primary,
  .btn-secondary {
    padding: var(--space-sm) var(--space-lg);
    font-size: 0.9rem;
  }
}

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

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

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

