@import url('https://fonts.googleapis.com/css2?family=Crimson+Pro:wght@300;400;600&family=Karla:wght@300;400;500;700&display=swap');

:root {
  --color-primary: #8B5A3C;
  --color-secondary: #6B8E23;
  --color-accent: #D2691E;
  --color-bg: #F5F0E8;
  --color-text: #3E2723;
  --color-light: #FFF8E7;
  --color-moss: #556B2F;
  --color-water: #87CEEB;
  --color-terracotta: #C65D3B;
  
  --font-heading: 'Crimson Pro', serif;
  --font-body: 'Karla', sans-serif;
  
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 3rem;
  --space-xl: 5rem;
  
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 1rem;
  
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.15);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.2);
  
  --transition: 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: var(--space-sm);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: var(--space-sm);
  font-size: 0.95rem;
}

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

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

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

button, .btn {
  font-family: var(--font-body);
  font-size: 0.9rem;
  padding: 0.7rem 1.5rem;
  border: none;
  border-radius: var(--radius-md);
  background: var(--color-primary);
  color: white;
  cursor: pointer;
  transition: var(--transition);
  font-weight: 500;
}

button:hover, .btn:hover {
  background: var(--color-accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: white;
}

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

.header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: var(--space-sm) 0;
  background: linear-gradient(180deg, rgba(245,240,232,0.95) 0%, rgba(245,240,232,0) 100%);
  transition: var(--transition);
}

.header.scrolled {
  background: rgba(245,240,232,0.98);
  box-shadow: var(--shadow-sm);
}

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

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-primary);
  text-transform: capitalize;
}

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

.nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text);
  position: relative;
}

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

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

.burger {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  padding: 0.5rem;
}

.burger span {
  width: 24px;
  height: 2px;
  background: var(--color-primary);
  transition: var(--transition);
}

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

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

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

.scene-container {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background: linear-gradient(180deg, #87CEEB 0%, #F5DEB3 100%);
}

#canvas3d {
  width: 100%;
  height: 100%;
  display: block;
}

.hero-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: var(--color-text);
  z-index: 10;
  pointer-events: none;
}

.hero-overlay h1 {
  font-size: 3rem;
  text-shadow: 2px 2px 8px rgba(255,255,255,0.8);
  margin-bottom: var(--space-sm);
}

.hero-overlay p {
  font-size: 1.2rem;
  text-shadow: 1px 1px 4px rgba(255,255,255,0.8);
}

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

.section-alt {
  background: var(--color-light);
}

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

.section-header h2 {
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
}

.section-header p {
  font-size: 1rem;
  color: var(--color-text);
  max-width: 800px;
  margin: 0 auto;
}

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

/* Styles for content sections with h3 and p in grid */
.grid > div:not(.card) {
  padding: var(--space-md);
}

.grid > div:not(.card) h3 {
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
  margin-top: var(--space-md);
  font-size: 1.4rem;
  position: relative;
  padding-left: var(--space-sm);
}

.grid > div:not(.card) h3:first-child {
  margin-top: 0;
}

.grid > div:not(.card) h3::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--color-accent);
  border-radius: var(--radius-sm);
}

.grid > div:not(.card) p {
  color: var(--color-text);
  line-height: 1.7;
  margin-bottom: var(--space-md);
}

.grid > div:not(.card) p:last-child {
  margin-bottom: 0;
}

.card {
  background: white;
  padding: var(--space-md);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

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

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

.card h3 {
  color: var(--color-primary);
  margin-bottom: var(--space-xs);
}

.price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-accent);
  margin: var(--space-sm) 0;
}

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

.form-group label {
  display: block;
  margin-bottom: var(--space-xs);
  font-weight: 500;
  font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.7rem;
  border: 2px solid #E0E0E0;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: var(--transition);
}

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

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

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

.checkbox-group input[type="checkbox"] {
  width: auto;
  margin-top: 4px;
}

.checkbox-group label {
  font-size: 0.85rem;
  margin: 0;
}

.contact-info {
  background: white;
  padding: var(--space-md);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.contact-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.contact-item i {
  font-size: 1.5rem;
  color: var(--color-primary);
}

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

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

.footer {
  background: var(--color-primary);
  color: white;
  padding: var(--space-md) 0;
  text-align: center;
  font-size: 0.85rem;
}

.footer a {
  color: white;
  text-decoration: underline;
}

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

.popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

.popup.active {
  display: flex;
}

.popup-content {
  background: white;
  padding: var(--space-md);
  border-radius: var(--radius-lg);
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
}

.popup-close {
  position: absolute;
  top: var(--space-sm);
  right: var(--space-sm);
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--color-text);
  background: none;
  border: none;
  padding: 0;
  width: 30px;
  height: 30px;
}

.faq-item {
  background: white;
  padding: var(--space-sm);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-sm);
  box-shadow: var(--shadow-sm);
}

.faq-question {
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--color-primary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition);
  padding-top: 0;
}

.faq-answer.active {
  max-height: 500px;
  padding-top: var(--space-sm);
}

.thank-you-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-md);
}

.thank-you-content {
  max-width: 600px;
}

.thank-you-content i {
  font-size: 4rem;
  color: var(--color-secondary);
  margin-bottom: var(--space-md);
}

.error-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-md);
}

.error-content h1 {
  font-size: 6rem;
  color: var(--color-accent);
}

@media (max-width: 768px) {
  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background: var(--color-light);
    flex-direction: column;
    padding: var(--space-xl) var(--space-md);
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    align-items: flex-start;
    display: none;
  }
  
  .nav.active {
    right: 0;
    display: flex;
  }
  
  .burger {
    display: flex;
  }
  
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  
  .hero-overlay h1 {
    font-size: 2rem;
  }
  
  .hero-overlay p {
    font-size: 1rem;
  }
  
  .grid-2, .grid-3 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 14px;
  }
  
  .section {
    padding: var(--space-md) 0;
  }
  
  .card {
    padding: var(--space-sm);
  }
}
