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

:root {
  --primary-color: #8531AF;
  --secondary-color: #7F2F71;
  --accent-color: #7B67E0;
  --primary-rgb: 133, 49, 175;
  --secondary-rgb: 127, 47, 113;
  --accent-rgb: 123, 103, 224;

  --bg-primary: #FAF8F5;
  --bg-alt: #F0ECE6;
  --bg-dark: #2C2520;
  --bg-accent: #EDE6DD;

  --text-primary: #2C2520;
  --text-muted: #6B6055;

  --spacing-xs: 8px;
  --spacing-sm: 16px;
  --spacing-md: 24px;
  --spacing-lg: 32px;
  --spacing-xl: 48px;
  --spacing-xxl: 64px;

  --font-xs: 0.75rem;
  --font-sm: 0.875rem;
  --font-base: 1rem;
  --font-lg: 1.125rem;
  --font-xl: 1.25rem;
  --font-xxl: 1.5rem;
  --font-hero: 2rem;

  --max-width: 1200px;
  --gutter: 24px;
}

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

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

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: var(--font-base);
  line-height: 1.5;
  color: var(--text-primary);
  background: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

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

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

h1 {
  font-size: var(--font-hero);
  font-weight: 700;
}

h2 {
  font-size: var(--font-xxl);
}

h3 {
  font-size: var(--font-xl);
}

h4 {
  font-size: var(--font-lg);
}

h5, h6 {
  font-size: var(--font-base);
}

p {
  margin-bottom: var(--spacing-sm);
}

ul, ol {
  margin-left: var(--spacing-md);
  margin-bottom: var(--spacing-sm)
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gutter);
}

.grid {
  display: grid;
  gap: var(--gutter);
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-2 {
  display: grid;
  gap: var(--gutter);
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  display: grid;
  gap: var(--gutter);
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  display: grid;
  gap: var(--gutter);
  grid-template-columns: repeat(4, 1fr);
}

.text-center {
  text-align: center;
}

.text-muted {
  color: var(--text-muted);
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(250, 248, 245, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(133, 49, 175, 0.1);
  z-index: 1000;
  transition: background 0.15s ease;
}

.navbar.scrolled {
  background: rgba(250, 248, 245, 0.95);
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-sm) var(--gutter);
}

.logo {
  font-size: var(--font-xl);
  font-weight: 700;
  color: var(--primary-color);
  transition: color 0.15s ease;
}

.logo:hover {
  color: var(--accent-color);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: var(--spacing-lg);
  margin: 0;
}

.nav-item {
  margin: 0;
}

.nav-link {
  color: var(--text-primary);
  font-weight: 500;
  font-size: var(--font-sm);
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: 4px;
  transition: all 0.15s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-color);
  background: rgba(133, 49, 175, 0.05);
}

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

main {
  padding-top: 60px;
}

.hero {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--bg-dark) 0%, #3a3330 100%);
  color: #ffffff;
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% 95%, 0 100%);
}

.hero::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--primary-rgb), 0.2) 0%, transparent 70%);
  top: -100px;
  right: -100px;
  z-index: 0;
  animation: float 8s ease-in-out infinite;
}

.hero::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.15) 0%, transparent 70%);
  bottom: -80px;
  left: -80px;
  z-index: 0;
  animation: float 10s ease-in-out infinite reverse;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: var(--spacing-md);
  color: #ffffff;
}

.hero p {
  font-size: var(--font-lg);
  margin-bottom: var(--spacing-lg);
  color: rgba(255, 255, 255, 0.9);
}

.header-hero {
  min-height: 400px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: #ffffff;
  clip-path: polygon(0 0, 100% 0, 100% 92%, 0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--spacing-xxl) var(--gutter);
}

.header-hero h1 {
  color: #ffffff;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
}

.content-section {
  padding: var(--spacing-xxl) 0;
  position: relative;
}

.content-section:nth-child(even) {
  background: var(--bg-alt);
}

.content-section:nth-child(odd) {
  background: var(--bg-primary);
}

.section-dark {
  background: var(--bg-dark);
  color: #ffffff;
  padding: var(--spacing-xxl) 0;
}

.section-dark h2,
.section-dark h3 {
  color: #ffffff;
}

.section-dark p {
  color: rgba(255, 255, 255, 0.85);
}

.section-accent {
  background: var(--bg-accent);
  padding: var(--spacing-xxl) 0;
}

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

.section-header h2 {
  font-size: var(--font-xxl);
  margin-bottom: var(--spacing-sm);
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

.card {
  background: #ffffff;
  border-radius: 8px;
  padding: var(--spacing-lg);
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transition: all 0.15s ease;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.15s ease;
}

.card:hover::before {
  transform: scaleX(1);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(133, 49, 175, 0.15);
}

.card h3 {
  font-size: var(--font-xl);
  margin-bottom: var(--spacing-sm);
  color: var(--text-primary);
}

.card p {
  color: var(--text-muted);
  line-height: 1.6;
}

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

.feature {
  text-align: center;
  padding: var(--spacing-lg);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  transition: all 0.15s ease;
}

.feature:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 25px rgba(133, 49, 175, 0.2);
}

.feature-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto var(--spacing-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  border-radius: 50%;
  font-size: 2rem;
  color: #ffffff;
}

.feature h3 {
  font-size: var(--font-lg);
  margin-bottom: var(--spacing-xs);
}

.testimonial-card {
  background: #ffffff;
  padding: var(--spacing-lg);
  border-radius: 8px;
  border-left: 4px solid var(--primary-color);
  box-shadow: 0 2px 15px rgba(0,0,0,0.05);
  position: relative;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: var(--spacing-sm);
  left: var(--spacing-sm);
  font-size: 3rem;
  color: var(--accent-color);
  opacity: 0.2;
  font-family: Georgia, serif;
  line-height: 1;
}

.testimonial-card p {
  margin-bottom: var(--spacing-md);
  font-style: italic;
  color: var(--text-muted);
}

.testimonial-card .author {
  font-weight: 600;
  color: var(--text-primary);
  font-style: normal;
}

.pricing-card {
  background: #ffffff;
  border-radius: 8px;
  padding: var(--spacing-xl);
  text-align: center;
  border: 2px solid transparent;
  transition: all 0.15s ease;
  box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

.pricing-card:hover {
  border-color: var(--primary-color);
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(133, 49, 175, 0.2);
}

.pricing-card.featured {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
  color: #ffffff;
  transform: scale(1.05);
}

.pricing-card.featured h3,
.pricing-card.featured .price {
  color: #ffffff;
}

.pricing-card h3 {
  font-size: var(--font-xl);
  margin-bottom: var(--spacing-md);
}

.pricing-card .price {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: var(--spacing-md);
}

.two-col-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xl);
  align-items: center;
}

.two-col-layout.reverse {
  direction: rtl;
}

.two-col-layout.reverse > * {
  direction: ltr;
}

.two-col-layout img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
}

.btn {
  display: inline-block;
  padding: 12px 28px;
  font-size: var(--font-base);
  font-weight: 600;
  text-align: center;
  border-radius: 4px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: 'Inter', sans-serif;
}

.btn-primary {
  background: var(--primary-color);
  color: #ffffff;
  border-color: var(--primary-color);
}

.btn-primary:hover {
  background: var(--accent-color);
  border-color: var(--accent-color);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(133, 49, 175, 0.3);
}

.btn-secondary {
  background: var(--secondary-color);
  color: #ffffff;
  border-color: var(--secondary-color);
}

.btn-secondary:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: #ffffff;
  transform: translateY(-2px);
}

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

.btn-outline:hover {
  background: var(--primary-color);
  color: #ffffff;
}

.btn-lg {
  padding: 16px 40px;
  font-size: var(--font-lg);
}

form {
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: var(--spacing-md);
}

label {
  display: block;
  margin-bottom: var(--spacing-xs);
  font-weight: 500;
  color: var(--text-primary);
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
textarea,
select {
  width: 100%;
  padding: 12px 16px;
  font-size: var(--font-base);
  font-family: 'Inter', sans-serif;
  border: 2px solid #ddd;
  border-radius: 4px;
  transition: border-color 0.15s ease;
}

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

textarea {
  min-height: 140px;
  resize: vertical;
}

.faq-section {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: var(--spacing-md);
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e0e0e0;
}

.faq-question {
  width: 100%;
  padding: var(--spacing-md);
  background: transparent;
  border: none;
  text-align: left;
  font-size: var(--font-lg);
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.15s ease;
}

.faq-question:hover {
  background: var(--bg-alt);
}

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--primary-color);
  font-weight: 400;
  transition: transform 0.15s ease;
}

.faq-question.active::after {
  content: '−';
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.15s ease;
  padding: 0 var(--spacing-md);
}

.faq-answer.active {
  max-height: 500px;
  padding: 0 var(--spacing-md) var(--spacing-md);
}

.faq-answer p {
  color: var(--text-muted);
  line-height: 1.6;
}

.gmb-card {
  background: #ffffff;
  border-radius: 8px;
  padding: var(--spacing-lg);
  box-shadow: 0 2px 15px rgba(0,0,0,0.05);
  border: 2px solid var(--bg-alt);
  transition: all 0.15s ease;
}

.gmb-card:hover {
  border-color: var(--accent-color);
  box-shadow: 0 6px 25px rgba(123, 103, 224, 0.15);
}

.gmb-card h3 {
  color: var(--primary-color);
  margin-bottom: var(--spacing-sm);
}

.gmb-card .rating {
  color: #f59e0b;
  font-weight: 600;
  margin-bottom: var(--spacing-xs);
}

.gmb-card .address {
  color: var(--text-muted);
  font-size: var(--font-sm);
  margin-bottom: var(--spacing-sm);
}

.gmb-features {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-xs);
  margin-top: var(--spacing-md);
}

.gmb-feature {
  padding: 4px 12px;
  background: var(--bg-accent);
  border-radius: 20px;
  font-size: var(--font-xs);
  color: var(--text-primary);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--spacing-md);
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  aspect-ratio: 4/3;
  background: var(--bg-alt);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.15s ease;
}

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

.gallery-item-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--spacing-md);
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  color: #ffffff;
  transform: translateY(100%);
  transition: transform 0.15s ease;
}

.gallery-item:hover .gallery-item-overlay {
  transform: translateY(0);
}

.section-divider {
  display: block;
  width: 100%;
  height: auto;
  margin: -1px 0;
  line-height: 0;
}

.section-divider svg {
  display: block;
  width: 100%;
  height: 60px;
}

.section-divider.flip {
  transform: scaleY(-1);
}

footer {
  background: var(--bg-dark);
  color: #ffffff;
  padding: var(--spacing-xxl) 0 var(--spacing-lg);
}

footer h4 {
  color: #ffffff;
  margin-bottom: var(--spacing-md);
}

footer a {
  color: rgba(255, 255, 255, 0.8);
}

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

footer .footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
}

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

footer .footer-links li {
  margin-bottom: var(--spacing-xs);
}

footer .copyright {
  text-align: center;
  padding-top: var(--spacing-md);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
  font-size: var(--font-sm);
}

footer .footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
}

footer .footer-section p {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
}

footer .footer-bottom {
  padding-top: var(--spacing-md);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
  font-size: var(--font-sm);
}

.cta-footer {
  background: var(--bg-primary);
  padding: var(--spacing-xl) 0;
  border-top: 1px solid var(--bg-alt);
}

.cta-footer .cta-section {
  max-width: 700px;
  margin: 0 auto 2rem;
  text-align: center;
  padding: var(--spacing-xl) var(--spacing-md);
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  border-radius: 12px;
  color: #ffffff;
}

.cta-footer .cta-section h3 {
  font-size: var(--font-xxl);
  margin-bottom: var(--spacing-md);
  color: #ffffff;
}

.cta-footer .cta-section p {
  font-size: var(--font-lg);
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: var(--spacing-lg);
}

.cta-footer .cta-button {
  display: inline-block;
  padding: 14px 36px;
  background: #ffffff;
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 4px;
  font-weight: 600;
  font-size: var(--font-lg);
  transition: all 0.15s ease;
}

.cta-footer .cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.cta-footer .footer-links {
  display: flex;
  justify-content: center;
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-md);
  flex-wrap: wrap;
  list-style: none;
}

.cta-footer .footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: var(--font-sm);
}

.cta-footer .copyright {
  text-align: center;
  color: var(--text-muted);
  font-size: var(--font-xs);
}

[data-animate] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}

[data-animate="fade-in"] {
  transform: none;
}

[data-animate="fade-in"].visible {
  opacity: 1;
}

[data-animate="slide-left"] {
  transform: translateX(-30px);
}

[data-animate="slide-left"].visible {
  opacity: 1;
  transform: translateX(0);
}

[data-animate="slide-right"] {
  transform: translateX(30px);
}

[data-animate="slide-right"].visible {
  opacity: 1;
  transform: translateX(0);
}

[data-stagger] > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

[data-stagger] > *.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-25px);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% center;
  }
  100% {
    background-position: 200% center;
  }
}

.shimmer-effect {
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(var(--accent-rgb), 0.3) 50%,
    transparent 100%);
  background-size: 200% 100%;
  animation: shimmer 3s ease-in-out infinite;
}

.cta-spacing {
  margin-top: var(--spacing-xl);
}

@media screen and (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .two-col-layout {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }
}

@media screen and (max-width: 768px) {
  .mobile-menu-toggle {
    display: block;
  }

  .nav-menu {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    background: rgba(250, 248, 245, 0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    gap: 0;
    padding: var(--spacing-md) 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transform: translateX(-100%);
    transition: transform 0.15s ease;
  }

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

  .nav-item {
    width: 100%;
    text-align: center;
    border-bottom: 1px solid var(--bg-alt);
  }

  .nav-link {
    display: block;
    padding: var(--spacing-md) var(--spacing-lg);
  }

  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 500px;
  }

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

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

@media screen and (max-width: 480px) {
  :root {
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-xxl: 48px;
  }

  .hero {
    min-height: 450px;
  }

  .btn {
    width: 100%;
  }

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

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