:root {
  --primary-accent: #1A2940;
  --secondary-accent: #D9C7A3;
  --soft-bg: #F2EFE9;
  --text-color: #222222;
  --highlight: #D4A857;
  --white: #ffffff;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-xxl: 4rem;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-md: 1.125rem;
  --font-size-lg: 1.25rem;
  --font-size-xl: 1.5rem;
  --font-size-xxl: 2rem;
  --font-size-hero: 2.5rem;
  --border-radius-sm: 0.25rem;
  --border-radius-md: 0.5rem;
  --border-radius-lg: 1rem;
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.2);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', 'Work Sans', sans-serif;
  font-size: var(--font-size-base);
  line-height: 1.6;
  color: var(--text-color);
  background: var(--soft-bg);
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.hero-section {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url('../images/hero-bg.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(26, 41, 64, 0.7) 0%, rgba(212, 168, 87, 0.3) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
  padding: var(--space-xl) var(--space-md);
}

.hero-title {
  font-size: var(--font-size-hero);
  font-weight: 700;
  margin-bottom: var(--space-md);
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 1s ease;
}

.hero-subtitle {
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-lg);
  font-weight: 300;
  animation: fadeInUp 1.2s ease;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.header {
  position: relative;
  background: var(--primary-accent);
  padding: var(--space-md) 0;
  z-index: 1000;
  transition: transform var(--transition-base);
}

.header.hidden {
  transform: translateY(-100%);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--highlight);
  text-decoration: none;
  letter-spacing: 1px;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: var(--space-lg);
  align-items: center;
}

.nav-menu a {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition-fast);
  position: relative;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--highlight);
  transition: width var(--transition-base);
}

.nav-menu a:hover::after {
  width: 100%;
}

.nav-menu a:hover {
  color: var(--highlight);
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 2px solid var(--highlight);
  color: var(--highlight);
  padding: var(--space-xs) var(--space-sm);
  cursor: pointer;
  font-size: var(--font-size-lg);
  border-radius: var(--border-radius-sm);
  transition: all var(--transition-fast);
  z-index: 1001;
  position: relative;
}

.menu-toggle:hover {
  background: var(--highlight);
  color: var(--primary-accent);
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 300px;
  height: 100vh;
  background: var(--primary-accent);
  transform: translateY(-100%);
  transition: transform var(--transition-base);
  z-index: 10000;
  padding: var(--space-xxl) var(--space-lg);
  overflow-y: auto;
  visibility: visible;
  opacity: 1;
}

.mobile-menu.active {
  transform: translateY(0);
  visibility: visible;
  opacity: 1;
  display: block;
}

body.menu-open .menu-toggle {
  display: none;
}

.mobile-menu .nav-menu {
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-md);
  list-style: none;
  padding: 0;
  margin: 0;
  margin-top: var(--space-xl);
}

.mobile-menu .nav-menu li {
  margin: 0;
  padding: 0;
  width: 100%;
}

.mobile-menu .nav-menu a {
  font-size: var(--font-size-lg);
  display: block;
  width: 100%;
  padding: var(--space-sm) 0;
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  opacity: 1;
  visibility: visible;
  position: relative;
  z-index: 1;
  cursor: pointer;
}

.mobile-menu .nav-menu a:hover {
  color: var(--highlight);
}

.menu-close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  background: transparent;
  border: 2px solid var(--highlight);
  color: var(--highlight);
  width: 40px;
  height: 40px;
  cursor: pointer;
  font-size: var(--font-size-xl);
  border-radius: var(--border-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.menu-close:hover {
  background: var(--highlight);
  color: var(--primary-accent);
}

.section {
  padding: var(--space-xxl) 0;
}

.section-title {
  font-size: var(--font-size-xxl);
  color: var(--primary-accent);
  margin-bottom: var(--space-lg);
  text-align: center;
  font-weight: 700;
}

.section-subtitle {
  font-size: var(--font-size-lg);
  color: var(--text-color);
  margin-bottom: var(--space-md);
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

.card {
  background: var(--white);
  padding: var(--space-lg);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.card-title {
  font-size: var(--font-size-lg);
  color: var(--primary-accent);
  margin-bottom: var(--space-sm);
  font-weight: 600;
}

.card-text {
  color: var(--text-color);
  margin-bottom: var(--space-sm);
}

.card-price {
  font-size: var(--font-size-xl);
  color: var(--highlight);
  font-weight: 700;
  margin-top: var(--space-md);
}

.btn {
  display: inline-block;
  padding: var(--space-sm) var(--space-lg);
  background: var(--primary-accent);
  color: var(--white);
  text-decoration: none;
  border-radius: var(--border-radius-md);
  font-weight: 600;
  transition: all var(--transition-base);
  border: 2px solid var(--primary-accent);
  margin-top: var(--space-md);
  cursor: pointer;
  font-size: var(--font-size-base);
}

.btn:hover {
  background: transparent;
  color: var(--primary-accent);
  border-color: var(--primary-accent);
}

.btn-secondary {
  background: var(--highlight);
  border-color: var(--highlight);
  color: var(--primary-accent);
}

.btn-secondary:hover {
  background: transparent;
  color: var(--highlight);
  border-color: var(--highlight);
}

.form-group {
  margin-bottom: var(--space-md);
}

.form-label {
  display: block;
  margin-bottom: var(--space-xs);
  color: var(--primary-accent);
  font-weight: 500;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: var(--space-sm);
  border: 2px solid var(--secondary-accent);
  border-radius: var(--border-radius-md);
  font-size: var(--font-size-base);
  font-family: inherit;
  transition: border-color var(--transition-fast);
  background: var(--white);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--highlight);
}

.form-textarea {
  min-height: 150px;
  resize: vertical;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: var(--space-xs);
  margin-top: var(--space-md);
}

.checkbox-group input[type="checkbox"] {
  margin-top: 4px;
  cursor: pointer;
}

.checkbox-group label {
  font-size: var(--font-size-sm);
  color: var(--text-color);
  cursor: pointer;
}

.contact-section {
  background: var(--white);
  padding: var(--space-xxl);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  margin-top: var(--space-xl);
}

.map-container {
  margin-top: var(--space-xl);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.map-container iframe {
  width: 100%;
  height: 450px;
  border: 0;
}

.footer {
  background: var(--primary-accent);
  color: var(--white);
  padding: var(--space-lg) 0;
  margin-top: var(--space-xxl);
}

.footer-content {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.footer a {
  color: var(--secondary-accent);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer a:hover {
  color: var(--highlight);
}

.service-category {
  margin-bottom: var(--space-xxl);
}

.service-category h3 {
  font-size: var(--font-size-xl);
  color: var(--primary-accent);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--highlight);
}

.service-item {
  background: var(--white);
  padding: var(--space-md);
  margin-bottom: var(--space-md);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--highlight);
}

.service-item h4 {
  color: var(--primary-accent);
  margin-bottom: var(--space-xs);
  font-size: var(--font-size-lg);
}

.service-item p {
  color: var(--text-color);
  margin-bottom: var(--space-xs);
}

.service-price {
  color: var(--highlight);
  font-weight: 600;
  margin-top: var(--space-sm);
}

.legal-page {
  max-width: 900px;
  margin: 0 auto;
  padding: var(--space-xxl) var(--space-md);
  background: var(--white);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  margin-top: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.legal-page h1 {
  color: var(--primary-accent);
  margin-bottom: var(--space-lg);
  font-size: var(--font-size-xxl);
}

.legal-page h2 {
  color: var(--primary-accent);
  margin-top: var(--space-lg);
  margin-bottom: var(--space-md);
  font-size: var(--font-size-xl);
}

.legal-page p {
  margin-bottom: var(--space-md);
  line-height: 1.8;
}

.legal-page ul {
  margin-left: var(--space-lg);
  margin-bottom: var(--space-md);
}

.legal-page li {
  margin-bottom: var(--space-xs);
}

.home-button {
  display: inline-block;
  margin-top: var(--space-lg);
  color: var(--primary-accent);
  text-decoration: none;
  font-weight: 600;
  transition: color var(--transition-fast);
}

.home-button:hover {
  color: var(--highlight);
}

.error-page {
  text-align: center;
  padding: var(--space-xxl) var(--space-md);
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.error-page h1 {
  font-size: 6rem;
  color: var(--primary-accent);
  margin-bottom: var(--space-md);
}

.error-page h2 {
  font-size: var(--font-size-xxl);
  color: var(--text-color);
  margin-bottom: var(--space-md);
}

.error-page p {
  font-size: var(--font-size-lg);
  color: var(--text-color);
  margin-bottom: var(--space-lg);
}

.thank-you-page {
  text-align: center;
  padding: var(--space-xxl) var(--space-md);
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.thank-you-page h1 {
  font-size: var(--font-size-xxl);
  color: var(--primary-accent);
  margin-bottom: var(--space-md);
}

.thank-you-page p {
  font-size: var(--font-size-lg);
  color: var(--text-color);
  margin-bottom: var(--space-lg);
}

.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: var(--space-md);
}

.popup-content {
  background: var(--white);
  padding: var(--space-xl);
  border-radius: var(--border-radius-lg);
  max-width: 600px;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}

.popup-content h2 {
  color: var(--primary-accent);
  margin-bottom: var(--space-md);
}

.popup-content p {
  margin-bottom: var(--space-md);
}

.popup-buttons {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-lg);
  justify-content: flex-end;
}

@media (max-width: 768px) {
  .popup-buttons {
    flex-direction: column;
    justify-content: stretch;
  }

  .popup-buttons .btn {
    width: 100%;
  }

  .logo {
    font-size: 1rem;
  }

  .header .nav-menu {
    display: none;
  }

  .mobile-menu .nav-menu {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .hero-title {
    font-size: var(--font-size-xl);
  }

  .hero-subtitle {
    font-size: var(--font-size-lg);
  }

  .section-title {
    font-size: var(--font-size-xl);
  }

  .content-grid {
    grid-template-columns: 1fr;
  }

  .contact-section {
    margin-bottom: var(--space-lg);
  }

  .map-container iframe {
    height: 300px;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .error-page h1 {
    font-size: 4rem;
  }
}

@media (max-width: 480px) {
  :root {
    --font-size-hero: 1.75rem;
    --font-size-xxl: 1.5rem;
    --space-xxl: 2rem;
  }

  .logo {
    font-size: 0.9rem;
  }

  .hero-section {
    min-height: 50vh;
  }

  .section {
    padding: var(--space-lg) 0;
  }

  .card {
    padding: var(--space-md);
  }

  .contact-section {
    padding: var(--space-md);
  }
}

@media (max-width: 320px) {
  .container {
    padding: 0 var(--space-sm);
  }

  .hero-content {
    padding: var(--space-md) var(--space-sm);
  }
}

