:root {
  --background: #f7f3f0;
  --foreground: #4f4d54;
  --card: #dcd5d2;
  --primary: #7e5bb1;
  --primary-foreground: #ffffff;
  --secondary: #bfb0a5;
  --muted: #dcd5d2;
  --muted-foreground: #7a7980;
  --accent: #dcd5d2;
  --accent-foreground: #7e5bb1;
  --border: #bfb0a5;
  --heading: #4f4d54;
  --surface-alt: #dcd5d2;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: 'DM Sans', sans-serif;
  line-height: 1.65;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

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

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

h1,
h2,
h3,
h4,
h5,
h6,
.heading-font {
  font-family: 'DM Serif Display', serif;
  color: var(--heading);
}

.text-primary-custom {
  color: var(--primary) !important;
}

.text-muted-custom {
  color: var(--muted-foreground) !important;
}

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

.section-block {
  padding: 5rem 0;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-bottom: 1rem;
}

.section-kicker::before,
.section-kicker::after {
  content: '';
  width: 2rem;
  height: 1px;
  background: var(--secondary);
}

.site-header {
  background: rgba(247, 243, 240, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.logo-brand {
  height: 40px;
  width: auto;
}

.navbar .nav-link {
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--foreground);
  transition: color 0.25s ease;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
  color: var(--primary);
}

.dropdown-menu {
  border: 1px solid var(--border);
  border-radius: 0.8rem;
  background: var(--background);
  padding: 0.55rem;
  box-shadow: 0 14px 30px rgba(35, 24, 53, 0.12);
}

.dropdown-item {
  border-radius: 0.6rem;
  font-size: 0.9rem;
  padding: 0.55rem 0.75rem;
  color: var(--foreground);
}

.dropdown-item:hover,
.dropdown-item:focus {
  color: var(--primary);
  background: var(--accent);
}

@media (min-width: 992px) {
  .navbar .nav-item.dropdown:hover > .dropdown-menu {
    display: block;
    margin-top: 0;
  }
}

.btn {
  border-radius: 0.6rem;
}

.btn-primary,
.btn-whatsapp {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--primary-foreground);
}

.btn-primary:hover,
.btn-whatsapp:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--primary-foreground);
  opacity: 0.92;
}

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

.btn-outline-primary:hover {
  background: rgba(126, 91, 177, 0.08);
  color: var(--primary);
  border-color: var(--primary);
}

.hero-section {
  padding: 6rem 0;
  background: var(--surface-alt);
  overflow: hidden;
}

.hero-title {
  font-size: clamp(2.3rem, 5.8vw, 4.4rem);
  line-height: 1.08;
}

.hero-photo-wrap {
  position: relative;
  max-width: 512px;
  margin-left: auto;
}

.hero-photo-wrap::before {
  content: '';
  position: absolute;
  inset: -14px;
  background: rgba(126, 91, 177, 0.12);
  border-radius: 1.1rem;
  transform: rotate(-3deg);
}

.hero-photo {
  position: relative;
  border-radius: 1.1rem;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  box-shadow: 0 20px 40px rgba(35, 24, 53, 0.18);
}

.mhs-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.mhs-card.bg-base {
  background: var(--background);
}

.mhs-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 35px rgba(44, 31, 67, 0.14);
  border-color: rgba(126, 91, 177, 0.35);
}

.icon-box {
  width: 76px;
  height: 76px;
  border-radius: 1rem;
  background: var(--accent);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.mhs-card:hover .icon-box {
  background: var(--primary);
  color: var(--primary-foreground);
  transform: scale(1.08);
}

.icon-box.icon-sm {
  width: 46px;
  height: 46px;
  border-radius: 0.7rem;
}

.icon-box.icon-lg {
  width: 130px;
  height: 130px;
  border-radius: 1.1rem;
  font-size: 3rem;
}

.card-image-wrap {
  height: 210px;
  display: block;
  overflow: hidden;
  background: var(--card);
}

.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.mhs-card:hover .card-image {
  transform: scale(1.06);
}

.post-cover {
  border-radius: 1rem;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--border);
}

.post-cover-image {
  width: 100%;
  height: auto;
  min-height: 260px;
  object-fit: cover;
}

.post-content p {
  color: var(--muted-foreground);
  line-height: 1.8;
}

.blog-post-content {
  background: transparent;
  border: 0;
  border-radius: 0;
}

.blog-post-content .post-cover {
  background: transparent;
  border: 0;
  border-radius: 1rem;
}

.badge-soft {
  background: rgba(126, 91, 177, 0.12);
  color: var(--primary);
  border-radius: 999px;
  padding: 0.25rem 0.8rem;
  font-size: 0.78rem;
  font-weight: 600;
}

.filter-btn {
  border: 0;
  background: var(--card);
  color: var(--foreground);
  padding: 0.55rem 1rem;
  border-radius: 0.6rem;
  font-size: 0.88rem;
  font-weight: 600;
  transition: all 0.25s ease;
}

.filter-btn:hover {
  background: var(--secondary);
}

.filter-btn.active {
  background: var(--primary);
  color: var(--primary-foreground);
}

.cta-box {
  background: var(--primary);
  color: var(--primary-foreground);
  border-radius: 1.2rem;
  padding: clamp(2rem, 5vw, 4rem);
}

.cta-box .text-soft {
  color: rgba(255, 255, 255, 0.8);
}

.cta-box .btn-light {
  background: var(--background);
  border-color: var(--background);
  color: var(--primary) !important;
}

.cta-box .btn-light:hover,
.cta-box .btn-light:focus {
  background: var(--background);
  border-color: var(--background);
  color: var(--primary) !important;
  opacity: 0.92;
}

.cta-box .btn-outline-light:hover,
.cta-box .btn-outline-light:focus {
  color: var(--primary-foreground);
}

.contact-card,
.info-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
}

.form-control,
.form-select,
textarea.form-control {
  background: var(--background);
  border: 1px solid var(--border);
  color: var(--foreground);
  border-radius: 0.65rem;
  padding: 0.72rem 0.9rem;
}

.form-control:focus,
.form-select:focus {
  border-color: rgba(126, 91, 177, 0.5);
  box-shadow: 0 0 0 0.24rem rgba(126, 91, 177, 0.15);
  background: var(--background);
}

.share-btn {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 0;
  background: var(--card);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}

.share-btn:hover {
  background: var(--primary);
  color: var(--primary-foreground);
}

.site-footer {
  background: var(--surface-alt);
  border-top: 1px solid var(--border);
}

.footer-logo {
  height: 52px;
  width: auto;
}

.footer-link {
  color: var(--muted-foreground);
  font-size: 0.94rem;
}

.footer-link:hover {
  color: var(--primary);
}

.footer-copy {
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.copyright-text {
  margin: 0;
  text-align: left;
}

.copyright-brand {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
}

.webdezan {
  width: 154px;
  height: auto;
}

.text-dark {
  color: var(--heading) !important;
}

.reveal {
  opacity: 0;
  transform: translateY(30px) scale(0.98);
  transition: opacity 0.75s ease, transform 0.75s ease;
}

.reveal-left {
  transform: translateX(-32px);
}

.reveal-right {
  transform: translateX(32px);
}

.reveal.in-view,
.reveal-left.in-view,
.reveal-right.in-view {
  opacity: 1;
  transform: none;
}

@media (max-width: 991.98px) {
  .hero-section {
    padding: 4.7rem 0;
  }

  .hero-photo-wrap {
    margin: 0 auto;
  }

  .navbar .btn-whatsapp {
    width: 100%;
  }

  .section-block {
    padding: 4rem 0;
  }

  .footer-copy {
    flex-direction: column;
    text-align: center;
  }

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

  .copyright-brand {
    justify-content: center;
  }
}

@media (max-width: 575.98px) {
  .logo-brand {
    height: 50px;
  }

  .cta-box {
    border-radius: 1rem;
  }

  .card-image-wrap {
    height: 190px;
  }
}
