:root {
  --primary: #7b2d8e;
  --primary-dark: #652577;
  --accent: #e8a838;
  --bg: #fdf8f3;
  --bg-alt: #f5ede4;
  --text: #2d3436;
  --text-muted: #636e72;
  --white: #ffffff;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 8px 32px rgba(45, 52, 54, 0.08);
  --header-h: 64px;
  --transition: 0.25s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

h1,
h2,
h3,
.section__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  line-height: 1.2;
}

/* Bootstrap overrides */

.btn-primary {
  --bs-btn-bg: var(--primary);
  --bs-btn-border-color: var(--primary);
  --bs-btn-hover-bg: var(--primary-dark);
  --bs-btn-hover-border-color: var(--primary-dark);
  --bs-btn-active-bg: var(--primary-dark);
  --bs-btn-active-border-color: var(--primary-dark);
  min-height: 44px;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.btn-outline-primary {
  --bs-btn-color: var(--primary);
  --bs-btn-border-color: var(--primary);
  --bs-btn-hover-bg: var(--primary);
  --bs-btn-hover-border-color: var(--primary);
  --bs-btn-active-bg: var(--primary-dark);
  --bs-btn-active-border-color: var(--primary-dark);
  min-height: 44px;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.form-control,
.form-select {
  border-radius: var(--radius-sm);
  border-color: rgba(123, 45, 142, 0.2);
  min-height: 44px;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem rgba(123, 45, 142, 0.15);
}

.form-control.is-invalid,
.form-select.is-invalid {
  border-color: #dc3545;
}

/* Header */

.site-nav {
  height: var(--header-h);
  background: rgba(253, 248, 243, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(123, 45, 142, 0.12);
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
}

.site-brand strong {
  color: var(--primary);
}

.site-nav .nav-link {
  color: var(--text);
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}

.site-nav .nav-link:hover,
.site-nav .nav-link:focus {
  color: var(--primary);
}

.nav-cta {
  min-width: 7rem;
}

.navbar-toggler {
  border-color: rgba(123, 45, 142, 0.25);
  padding: 0.4rem 0.6rem;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(123, 45, 142, 0.15);
}

@media (max-width: 991.98px) {
  .site-nav {
    height: auto;
    min-height: var(--header-h);
    background: var(--bg);
    backdrop-filter: none;
  }

  .site-nav .navbar-collapse {
    padding: 0.5rem 0 1rem;
    background: var(--bg);
    border-top: 1px solid rgba(123, 45, 142, 0.1);
  }

  .site-nav .navbar-nav {
    gap: 0.125rem;
  }

  .site-nav .nav-link {
    padding: 0.75rem 0.5rem;
  }

  .nav-cta {
    width: 100%;
    margin-top: 0.5rem !important;
    margin-left: 0 !important;
  }
}

/* Hero */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 2rem) 0 3rem;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(123, 45, 142, 0.82) 0%,
    rgba(45, 52, 54, 0.55) 100%
  );
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__content {
  position: relative;
  z-index: 1;
  color: var(--white);
  max-width: 680px;
}

.hero__tag {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.35rem 0.85rem;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  background: rgba(232, 168, 56, 0.9);
  color: var(--text);
  border-radius: 999px;
}

.hero__title {
  font-size: clamp(2rem, 6vw, 3.25rem);
  margin-bottom: 1rem;
}

.hero__desc {
  font-size: clamp(1rem, 2.5vw, 1.125rem);
  opacity: 0.95;
  margin-bottom: 1.75rem;
  max-width: 540px;
}

.hero__actions .btn {
  min-width: 200px;
}

/* Stats */

.stats {
  padding: 2rem 0;
  background: var(--white);
  border-bottom: 1px solid rgba(123, 45, 142, 0.08);
}

.stat {
  padding: 1rem;
  border-radius: var(--radius);
  background: var(--bg);
}

.stat__num {
  display: block;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  color: var(--primary);
  line-height: 1.1;
}

.stat__label {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Sections */

.section {
  padding: 3.5rem 0;
}

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

.section--contact {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
}

.section__header {
  margin-bottom: 2.5rem;
}

.section__tag {
  display: inline-block;
  margin-bottom: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

.section__title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 0.75rem;
}

.section__desc {
  max-width: 560px;
  color: var(--text-muted);
}

/* Service cards */

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(123, 45, 142, 0.12);
}

.service-card__img {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.service-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.service-card:hover .service-card__img img {
  transform: scale(1.05);
}

.service-card__body {
  padding: 1.25rem;
}

.service-card__body h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.service-card__body p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

/* Steps */

.step {
  height: 100%;
  padding: 1.5rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.step__num {
  display: block;
  margin-bottom: 0.75rem;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.step h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.step p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

/* Gallery */

.gallery-item {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow);
}

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

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

/* About */

.about__img {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.about__text p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.about__info {
  display: grid;
  gap: 1rem;
}

.info-item {
  display: grid;
  gap: 0.25rem;
  padding: 1rem 1.25rem;
  background: var(--white);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--accent);
}

.info-item__label {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--primary);
}

/* Contact form */

.contact-form {
  max-width: 640px;
  padding: 1.5rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.field {
  display: block;
  width: 100%;
}

.field__label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
}

.field__error {
  display: block;
  min-height: 1.25rem;
  margin-top: 0.25rem;
  font-size: 0.8125rem;
  color: #dc3545;
}

.form-success {
  max-width: 480px;
  padding: 2.5rem 1.5rem;
  text-align: center;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.form-success__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin-bottom: 1rem;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--white);
  background: var(--primary);
  border-radius: 50%;
}

.form-success h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.form-success p {
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

/* Footer */

.site-footer {
  padding: 1.5rem 0;
  background: var(--primary);
  color: rgba(255, 255, 255, 0.9);
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
}

.site-footer__brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9375rem;
}

.site-footer__address {
  font-size: 0.875rem;
  opacity: 0.85;
}

/* Reveal animation */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Desktop enhancements */

@media (min-width: 992px) {
  .section {
    padding: 5rem 0;
  }

  .site-footer__inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }

  .contact-form {
    padding: 2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .service-card,
  .service-card__img img,
  .gallery-item img {
    transition: none;
  }
}
