:root {
  --primary: #8B4D6B;
  --secondary: #D4A574;
  --accent: #E8B4B8;
  --bg: #FFFBF7;
  --bg-alt: #FDF5ED;
  --text: #3D2B2E;
  --text-muted: #7A6568;
  --border: #E8DDD5;
  --success: #7CB87C;
  --error: #D4736B;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Lato', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
}

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

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

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

.burger {
  width: 40px;
  height: 40px;
  position: relative;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.burger span {
  position: absolute;
  width: 32px;
  height: 3px;
  border-radius: 3px;
  background-color: var(--primary);
  transition: all 0.3s ease;
}

.burger span:nth-child(1) {
  top: 10px;
}

.burger span:nth-child(2) {
  top: 50%;
  transform: translateY(-50%);
}

.burger span:nth-child(3) {
  bottom: 10px;
}

.burger.active span:nth-child(1) {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}

.burger.active span:nth-child(2) {
  opacity: 0;
  transform: translateY(-50%) scale(0);
}

.burger.active span:nth-child(3) {
  bottom: 50%;
  transform: translateY(50%) rotate(-45deg);
}

.header-scrolled {
  box-shadow: 0 2px 20px rgba(61, 43, 46, 0.1);
  background-color: rgba(255, 251, 247, 0.98);
}

.hero-card {
  background: rgba(255, 251, 247, 0.95);
  backdrop-filter: blur(10px);
}

.service-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(139, 77, 107, 0.15);
}

.portfolio-item {
  transition: transform 0.3s ease;
  overflow: hidden;
}

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

.portfolio-item img {
  transition: transform 0.5s ease;
}

.portfolio-item:hover img {
  transform: scale(1.1);
}

.team-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(139, 77, 107, 0.12);
}

.testimonial-slide {
  opacity: 0;
  position: absolute;
  transition: opacity 0.5s ease;
}

.testimonial-slide.active {
  opacity: 1;
  position: relative;
}

.pricing-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pricing-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(139, 77, 107, 0.15);
}

.pricing-card.featured {
  transform: scale(1.05);
  border-color: var(--primary);
}

.pricing-card.featured:hover {
  transform: scale(1.05) translateY(-5px);
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-question {
  cursor: pointer;
  transition: color 0.3s ease;
}

.faq-question:hover {
  color: var(--primary);
}

.accordion-item {
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 12px;
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}

.accordion-item:hover {
  box-shadow: 0 4px 15px rgba(139, 77, 107, 0.1);
}

.accordion-btn {
  width: 100%;
  text-align: left;
  padding: 20px 24px;
  background: var(--bg);
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  transition: background-color 0.3s ease;
}

.accordion-btn:hover {
  background-color: var(--bg-alt);
}

.accordion-btn .icon {
  font-size: 24px;
  transition: transform 0.3s ease;
  color: var(--primary);
}

.accordion-btn.active .icon {
  transform: rotate(45deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  background: var(--bg-alt);
}

.accordion-content.open {
  max-height: 500px;
  padding: 0 24px 20px 24px;
}

.accordion-content p {
  padding-top: 0;
  color: var(--text-muted);
  line-height: 1.7;
}

.process-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.process-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(139, 77, 107, 0.12);
}

.process-number {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  font-weight: 700;
}

.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 48px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}

@media (min-width: 768px) {
  .stat-number {
    font-size: 64px;
  }
}

.wizard-step {
  display: none;
}

.wizard-step.active {
  display: block;
}

.wizard-progress {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
}

.wizard-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--border);
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.wizard-dot.active {
  background: var(--primary);
  transform: scale(1.2);
}

.wizard-dot.completed {
  background: var(--success);
}

.btn-primary {
  background-color: var(--primary);
  color: white;
  padding: 14px 32px;
  border-radius: 8px;
  font-weight: 600;
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 16px;
}

.btn-primary:hover {
  background-color: #7a3f5a;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(139, 77, 107, 0.3);
  color: white;
}

.btn-secondary {
  background-color: transparent;
  color: var(--primary);
  padding: 14px 32px;
  border-radius: 8px;
  font-weight: 600;
  transition: background-color 0.3s ease, color 0.3s ease;
  border: 2px solid var(--primary);
  cursor: pointer;
  font-size: 16px;
}

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

.btn-accent {
  background-color: var(--accent);
  color: var(--text);
  padding: 14px 32px;
  border-radius: 8px;
  font-weight: 600;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 16px;
}

.btn-accent:hover {
  background-color: #dba0a5;
  transform: translateY(-2px);
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid var(--border);
  border-radius: 8px;
  font-family: 'Lato', sans-serif;
  font-size: 16px;
  color: var(--text);
  background-color: white;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(139, 77, 107, 0.1);
}

input[type="text"]::placeholder,
input[type="email"]::placeholder,
input[type="tel"]::placeholder,
textarea::placeholder {
  color: var(--text-muted);
}

input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--primary);
  cursor: pointer;
}

label {
  font-weight: 500;
  color: var(--text);
  margin-bottom: 6px;
  display: block;
}

.cookie-popup {
  animation: slideUp 0.4s ease;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.scroll-top-btn {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.scroll-top-btn.visible {
  opacity: 1;
  pointer-events: auto;
}

.scroll-top-btn:hover {
  transform: translateY(-3px);
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.slide-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.slide-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.testimonial-nav-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
  color: var(--primary);
}

.testimonial-nav-btn:hover {
  background-color: var(--primary);
  border-color: var(--primary);
  color: white;
  transform: scale(1.1);
}

.testimonial-dots {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.testimonial-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.testimonial-dot.active {
  background: var(--primary);
  transform: scale(1.3);
}

.mobile-menu {
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.mobile-menu.open {
  transform: translateX(0);
}

.section-title {
  font-size: 32px;
  margin-bottom: 16px;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 40px;
  }
}

@media (min-width: 1024px) {
  .section-title {
    font-size: 48px;
  }
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 18px;
  max-width: 600px;
  margin: 0 auto;
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, #6d3a54 100%);
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(61, 43, 46, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 40;
}

.overlay.active {
  opacity: 1;
  pointer-events: auto;
}

body.menu-open {
  overflow: hidden;
}

.error-message {
  color: var(--error);
  font-size: 14px;
  margin-top: 4px;
}

.success-message {
  color: var(--success);
  font-size: 14px;
  margin-top: 4px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}
