:root {
  --bg: #faf8f5;
  --surface: #ffffff;
  --surface-alt: #f2eee7;
  --primary: #0f4c3a;
  --primary-dark: #093528;
  --primary-soft: #e6f0ec;
  --accent: #c89b3c;
  --accent-dark: #a67e26;
  --text: #1c2420;
  --text-muted: #526059;
  --border: #e2ddd3;
  --shadow-sm: 0 2px 8px rgba(15, 76, 58, 0.06);
  --shadow-md: 0 10px 28px rgba(15, 76, 58, 0.09);
  --radius: 16px;
  --radius-sm: 10px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  margin: 0 0 0.65rem;
  line-height: 1.25;
  color: var(--text);
}

h1,
h2 {
  font-family: "Playfair Display", Georgia, serif;
}

p {
  margin: 0 0 1rem;
  color: var(--text-muted);
}

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

.container {
  width: min(1120px, 100% - 2rem);
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background-color: rgba(250, 248, 245, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.25s ease, background-color 0.25s ease;
}

.site-header.is-scrolled {
  background-color: rgba(250, 248, 245, 0.98);
  box-shadow: 0 6px 20px rgba(15, 76, 58, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
  position: relative;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border: 1px solid rgba(200, 155, 60, 0.4);
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-text strong {
  font-size: 1.05rem;
  color: var(--primary);
}

.brand-text small {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0 9px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--primary);
  border-radius: 2px;
}

.main-nav {
  display: none;
  position: absolute;
  top: calc(100% + 1px);
  left: 0;
  right: 0;
  flex-direction: column;
  align-items: stretch;
  gap: 0.5rem;
  padding: 1rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

.main-nav.is-open {
  display: flex;
}

.nav-link {
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  font-weight: 500;
  color: var(--text);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-link:hover,
.nav-link:focus-visible,
.nav-link.is-active {
  background-color: var(--primary-soft);
  color: var(--primary);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.15s ease, border-color 0.2s ease;
}

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

.btn-sm {
  padding: 0.6rem 1.05rem;
  font-size: 0.88rem;
}

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

.btn-primary:hover,
.btn-primary:focus-visible {
  background-color: var(--primary-dark);
}

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

.btn-outline:hover,
.btn-outline:focus-visible {
  background-color: var(--primary-soft);
}

.btn-accent {
  background-color: var(--accent);
  color: #1a160c;
}

.btn-accent:hover,
.btn-accent:focus-visible {
  background-color: var(--accent-dark);
  color: #ffffff;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 4.25rem 0 4.75rem;
  background-color: var(--primary-dark);
  color: #ffffff;
  border-bottom: 1px solid rgba(200, 155, 60, 0.35);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("assets/makkah.jpg");
  background-size: cover;
  background-position: center;
  animation: heroKenBurns 26s ease-in-out infinite alternate;
  transform-origin: center;
  z-index: 0;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    125deg,
    rgba(9, 53, 40, 0.78) 0%,
    rgba(15, 76, 58, 0.62) 55%,
    rgba(9, 53, 40, 0.76) 100%
  );
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 2rem;
  align-items: center;
}

@keyframes heroKenBurns {
  0% {
    transform: scale(1) translate3d(0, 0, 0);
  }
  100% {
    transform: scale(1.07) translate3d(-1%, -1%, 0);
  }
}

.badge {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background-color: rgba(200, 155, 60, 0.22);
  border: 1px solid rgba(243, 215, 150, 0.45);
  color: #f3d796;
  font-size: 0.82rem;
  font-weight: 600;
}

.hero h1 {
  font-size: clamp(1.95rem, 4vw, 3rem);
  color: #ffffff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

.hero-subtitle {
  font-size: 1.05rem;
  max-width: 60ch;
  margin-bottom: 1.5rem;
  color: rgba(255, 255, 255, 0.9);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}

.hero .btn-primary {
  background-color: var(--accent);
  color: #1a160c;
}

.hero .btn-primary:hover,
.hero .btn-primary:focus-visible {
  background-color: #d9ac4b;
  color: #1a160c;
}

.hero .btn-outline {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.65);
  color: #ffffff;
}

.hero .btn-outline:hover,
.hero .btn-outline:focus-visible {
  background-color: rgba(255, 255, 255, 0.2);
}

.hero-highlights {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.88);
}

.hero-highlights li::before {
  content: "✓ ";
  color: #f3d796;
  font-weight: 700;
}

.hero-card {
  background-color: rgba(9, 53, 40, 0.78);
  backdrop-filter: blur(8px);
  color: #ffffff;
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(200, 155, 60, 0.45);
}

.hero-card-label {
  color: #f3d796;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.hero-service-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
  display: grid;
  gap: 0.75rem;
}

.hero-service-list li {
  border-radius: 10px;
}

.hero-service-list a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-weight: 500;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.hero-service-list a:hover,
.hero-service-list a:focus-visible {
  background-color: rgba(200, 155, 60, 0.22);
  border-color: rgba(243, 215, 150, 0.55);
  transform: translateX(4px);
}

.hero-service-list span {
  font-size: 0.8rem;
  font-weight: 700;
  color: #f3d796;
}

.hero-service-list em {
  margin-left: auto;
  font-style: normal;
  color: #f3d796;
  opacity: 0.8;
  transition: transform 0.2s ease;
}

.hero-service-list a:hover em {
  transform: translateX(3px);
  opacity: 1;
}

.hero-card-note {
  margin: 0;
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.82);
}

/* Sections */
.section {
  padding: 4rem 0;
}

.section-alt {
  background-color: var(--surface-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-header {
  max-width: 660px;
  margin-bottom: 2.25rem;
}

.section-eyebrow {
  display: inline-block;
  margin-bottom: 0.45rem;
  color: var(--accent-dark);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.section-header h2 {
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  color: var(--primary-dark);
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.35rem;
}

.service-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(15, 76, 58, 0.35);
}

.service-card.is-highlighted {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(200, 155, 60, 0.28), var(--shadow-md);
}

.service-icon {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background-color: var(--primary-soft);
  color: var(--primary);
  margin-bottom: 1rem;
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.service-card:hover .service-icon {
  background-color: var(--primary);
  color: #ffffff;
  transform: scale(1.06);
}

.service-card h3 {
  font-size: 1.2rem;
  color: var(--primary-dark);
}

.service-highlights {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
  display: grid;
  gap: 0.45rem;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.service-highlights li {
  position: relative;
  padding-left: 1.2rem;
}

.service-highlights li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent-dark);
  font-weight: 700;
}

.service-footer {
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.service-price {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-dark);
}

.service-footer .btn {
  width: 100%;
}

/* Steps */
.steps-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.step-card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.step-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(200, 155, 60, 0.55);
}

.step-num {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background-color: var(--primary);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.9rem;
  box-shadow: 0 0 0 4px rgba(15, 76, 58, 0.1);
  transition: background-color 0.25s ease, transform 0.25s ease;
}

.step-card:hover .step-num {
  background-color: var(--accent);
  color: #1a160c;
  transform: scale(1.08);
}

.step-card h3 {
  font-size: 1.08rem;
}

.step-card p {
  margin-bottom: 0;
  font-size: 0.94rem;
}

/* Benefits */
#keunggulan {
  position: relative;
  background-color: var(--primary-dark);
  background-image: linear-gradient(
      135deg,
      rgba(9, 53, 40, 0.68) 0%,
      rgba(15, 76, 58, 0.58) 55%,
      rgba(9, 53, 40, 0.72) 100%
    ),
    url("assets/madinah.jpg");
  background-size: cover;
  background-position: center 42%;
  background-attachment: fixed;
}

#keunggulan .section-eyebrow {
  color: #f3d796;
}

#keunggulan .section-header h2 {
  color: #ffffff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

.benefits-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.benefit-card {
  background-color: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 1.35rem 1.5rem;
  box-shadow: var(--shadow-md);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.benefit-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(9, 53, 40, 0.24);
}

.benefit-card h3 {
  font-size: 1.08rem;
  color: var(--primary-dark);
}

.benefit-card p {
  margin-bottom: 0;
  font-size: 0.94rem;
}

/* FAQ */
.faq-list {
  display: grid;
  gap: 0.85rem;
  max-width: 820px;
}

.faq-item {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  background: transparent;
  border: 0;
  text-align: left;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
}

.faq-question:hover,
.faq-question:focus-visible {
  background-color: rgba(15, 76, 58, 0.04);
}

.faq-icon {
  flex-shrink: 0;
  font-size: 1.25rem;
  color: var(--primary);
  font-weight: 700;
}

.faq-answer {
  padding: 0 1.25rem 1.15rem;
}

.faq-answer p {
  margin: 0;
  font-size: 0.95rem;
}

/* Footer */
.site-footer {
  background-color: var(--primary-dark);
  color: #ffffff;
  padding: 2.75rem 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-brand {
  display: block;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.35rem;
  margin-bottom: 0.4rem;
}

.footer-desc {
  color: rgba(255, 255, 255, 0.8);
  max-width: 48ch;
  margin: 0;
}

.footer-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
}

.footer-copy {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

/* Floating WhatsApp */
.floating-wa {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 50;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.8rem 1.25rem;
  border-radius: 999px;
  background-color: var(--primary);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 8px 24px rgba(9, 53, 40, 0.32);
  border: 2px solid var(--accent);
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.floating-wa:hover,
.floating-wa:focus-visible {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(9, 53, 40, 0.4);
}

.wa-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: #4ade80;
  box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7);
  animation: waPulse 2s infinite;
}

@keyframes waPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(74, 222, 128, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(74, 222, 128, 0);
  }
}

/* Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

@media (prefers-reduced-motion: reduce) {
  .hero::before,
  .wa-dot {
    animation: none;
  }

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

  #keunggulan {
    background-attachment: scroll;
  }
}

.noscript-box {
  padding: 1.25rem;
  border-radius: var(--radius-sm);
  background-color: var(--surface);
  border: 1px solid var(--border);
}

/* Tablet & Desktop */
@media (min-width: 640px) {
  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .steps-grid,
  .benefits-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 860px) {
  .nav-toggle {
    display: none;
  }

  .main-nav {
    display: flex;
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  .hero-inner {
    grid-template-columns: 1.25fr 0.9fr;
    gap: 3rem;
  }

  .services-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .steps-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .footer-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .footer-actions {
    align-items: flex-end;
  }
}
