:root {
  --color-purple: #5a2d82;
  --color-purple-dark: #3d1f5c;
  --color-green: #4a7c3a;
  --color-cream: #fdf8f2;
  --color-text: #2a2a2a;
  --color-muted: #6a6a6a;
  --max-width: 1100px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  color: var(--color-text);
  background: var(--color-cream);
  line-height: 1.55;
}

a {
  color: var(--color-purple);
}

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

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

/* Header / Nav */
.site-header {
  background: var(--color-purple-dark);
  color: #fff;
  padding: 16px 0;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.site-header .logo {
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
}

.site-nav a {
  color: #f0e6f7;
  text-decoration: none;
  margin-left: 20px;
  font-size: 0.95rem;
}

.site-nav a:hover {
  text-decoration: underline;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--color-purple) 0%, var(--color-purple-dark) 100%);
  color: #fff;
  padding: 64px 0;
  text-align: center;
}

.hero h1 {
  font-size: 2.4rem;
  margin: 0 0 16px;
}

.hero p {
  font-size: 1.15rem;
  max-width: 700px;
  margin: 0 auto 28px;
  color: #f0e6f7;
}

/* CTA buttons */
.cta-group {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.1s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: #fff;
  color: var(--color-purple-dark);
}

.btn-secondary {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
}

/* Sections */
.section {
  padding: 56px 0;
}

.section h2 {
  font-size: 1.8rem;
  margin-bottom: 12px;
  text-align: center;
}

.section-intro {
  max-width: 700px;
  margin: 0 auto 36px;
  text-align: center;
  color: var(--color-muted);
}

.section-alt {
  background: #f3e9f7;
}

/* Before/After slider */
.slider-wrap {
  max-width: 900px;
  margin: 0 auto;
}

.ba-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  user-select: none;
}

.ba-slider img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.ba-slider .ba-after-wrap {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  overflow: hidden;
}

.ba-slider .ba-after-wrap img {
  width: var(--ba-img-width, 900px);
  max-width: none;
}

.ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  background: #fff;
  cursor: ew-resize;
  transform: translateX(-2px);
}

.ba-handle::after {
  content: "\2194";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--color-purple-dark);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.ba-label {
  position: absolute;
  bottom: 14px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 0.85rem;
  pointer-events: none;
}

.ba-label-before {
  left: 14px;
}

.ba-label-after {
  right: 14px;
}

.slider-note {
  text-align: center;
  color: var(--color-muted);
  font-size: 0.9rem;
  margin-top: 12px;
}

/* Cards grid (used on multiple pages) */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.card {
  background: #fff;
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  text-align: center;
}

.card h3 {
  margin-top: 0;
  color: var(--color-purple-dark);
}

/* Forms */
form.simple-form {
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

form.simple-form label {
  font-weight: 600;
  font-size: 0.9rem;
}

form.simple-form input,
form.simple-form textarea {
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
}

form.simple-form button {
  align-self: flex-start;
  background: var(--color-purple);
  color: #fff;
  border: none;
  padding: 12px 28px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.95rem;
}

form.simple-form button:hover {
  background: var(--color-purple-dark);
}

.form-note {
  max-width: 480px;
  margin: 12px auto 0;
  font-size: 0.85rem;
  color: var(--color-muted);
  text-align: center;
}

/* Footer */
.site-footer {
  background: var(--color-purple-dark);
  color: #f0e6f7;
  padding: 32px 0;
  text-align: center;
  font-size: 0.9rem;
}

.site-footer a {
  color: #fff;
}

@media (max-width: 640px) {
  .site-nav a {
    margin-left: 12px;
  }
  .hero h1 {
    font-size: 1.9rem;
  }
}
