/* ==========================================================================
   GIA AQIQAH — Design System & Core Stylesheet
   Brand: SYAR'I • HEMAT • ENAK
   Palette: Hot Pink (#E92AB8), Deep Purple (#700078), Soft Pink (#F5B4E8),
            Metallic Silver (#D9D9E0), White (#FFFFFF)
   ========================================================================== */

:root {
  /* Brand Palette */
  --hot-pink: #E92AB8;
  --hot-pink-dark: #C81D9C;
  --deep-purple: #700078;
  --deep-purple-dark: #4E0054;
  --soft-pink: #F5B4E8;
  --soft-pink-bg: #FBE4F6;
  --soft-pink-card: #FFF5FD;
  --silver: #D9D9E0;
  --silver-light: #EFEFF4;
  --white: #FFFFFF;

  /* Neutrals & Functional */
  --ink: #241729;
  --ink-muted: #5F5266;
  --wa-green: #25D366;
  --wa-green-dark: #1EB355;

  /* Gradients */
  --grad-brand: linear-gradient(135deg, #700078 0%, #E92AB8 100%);
  --grad-brand-rev: linear-gradient(135deg, #E92AB8 0%, #700078 100%);
  --grad-soft: linear-gradient(180deg, #FBE4F6 0%, #F5B4E8 100%);
  --grad-card-tint: linear-gradient(180deg, #FFFFFF 0%, #FDF0FA 100%);

  /* Typography */
  --font-heading: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Radii & Shadows */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 999px;

  --shadow-xs: 0 2px 8px rgba(112, 0, 120, 0.06);
  --shadow-sm: 0 6px 20px rgba(112, 0, 120, 0.09);
  --shadow-md: 0 12px 32px rgba(112, 0, 120, 0.14);
  --shadow-pink: 0 10px 26px rgba(233, 42, 184, 0.32);

  /* Layout */
  --container: 1200px;
  --nav-h: 74px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-body);
  color: var(--ink);
  background-color: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
  padding-top: var(--nav-h);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

ul, ol {
  list-style: none;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

button {
  background: none;
  border: none;
  cursor: pointer;
}

/* Focus Accessibility */
:focus-visible {
  outline: 3px solid var(--hot-pink);
  outline-offset: 3px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.28;
  color: var(--deep-purple);
}

h1 { font-size: clamp(2rem, 3.6vw, 2.85rem); }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); }
h4 { font-size: 1.125rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* Container & Sections */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 20px;
}

.section {
  padding-block: 76px;
  background:
    radial-gradient(circle at 8% 12%, rgba(255, 198, 242, 0.45) 0%, transparent 42%),
    radial-gradient(circle at 92% 88%, rgba(233, 42, 184, 0.12) 0%, transparent 44%),
    linear-gradient(125deg, #FFFFFF 0%, #FFF4FC 50%, #FBE8F7 100%);
}

.section--soft {
  background:
    radial-gradient(circle at 12% 18%, rgba(233, 42, 184, 0.22) 0%, transparent 44%),
    radial-gradient(circle at 88% 82%, rgba(245, 180, 232, 0.55) 0%, transparent 48%),
    linear-gradient(125deg, #FFF0FB 0%, #FBD6F4 50%, #F5C3EE 100%);
}

.section--soft .section-eyebrow {
  background: var(--white);
}

.section--soft .section-subtitle {
  color: var(--deep-purple);
}

.section--silver {
  background:
    radial-gradient(circle at 18% 22%, rgba(245, 180, 232, 0.35) 0%, transparent 45%),
    linear-gradient(125deg, #FFFFFF 0%, #F5ECF8 55%, #ECECF2 100%);
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 48px;
}

.section-eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--hot-pink);
  background: var(--soft-pink-bg);
  border: 1px solid var(--soft-pink);
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 12px;
}

.section-title {
  margin-bottom: 12px;
}

.section-title::after {
  content: '';
  display: block;
  width: 56px;
  height: 4px;
  border-radius: 4px;
  background: var(--grad-brand-rev);
  margin: 14px auto 0;
}

.section-subtitle {
  color: var(--ink-muted);
  font-size: 1.02rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 28px;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background-color 0.25s ease, color 0.25s ease;
  white-space: nowrap;
}

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

.btn-primary {
  background: var(--hot-pink);
  color: var(--white);
  box-shadow: var(--shadow-pink);
}

.btn-primary:hover {
  background: var(--hot-pink-dark);
}

.btn-secondary {
  background: var(--deep-purple);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: var(--deep-purple-dark);
}

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

.btn-outline:hover {
  background: var(--deep-purple);
  color: var(--white);
}

.btn-outline-white {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.75);
}

.btn-outline-white:hover {
  background: var(--white);
  color: var(--deep-purple);
}

.btn-wa {
  background: var(--wa-green);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.28);
}

.btn-wa:hover {
  background: var(--wa-green-dark);
}

.btn-sm {
  padding: 9px 20px;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 15px 34px;
  font-size: 1.05rem;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
}

.badge-pink {
  background: var(--soft-pink);
  color: var(--deep-purple);
}

.badge-purple {
  background: var(--deep-purple);
  color: var(--white);
}

.badge-silver {
  background: var(--silver-light);
  color: var(--deep-purple);
  border: 1px solid var(--silver);
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  background: var(--deep-purple);
  z-index: 1000;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: box-shadow 0.3s ease;
}

.navbar.scrolled {
  box-shadow: 0 8px 28px rgba(78, 0, 84, 0.35);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.navbar-brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.navbar-brand img {
  height: 46px;
  width: auto;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-link {
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
  padding: 8px 0;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

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

.nav-link.active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2.5px;
  background: var(--hot-pink);
  border-radius: 2px;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: -12px;
  min-width: 210px;
  background: var(--white);
  border: 1px solid var(--silver);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 1005;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-menu a {
  display: block;
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink);
}

.nav-dropdown-menu a:hover,
.nav-dropdown-menu a.active {
  background: var(--soft-pink-bg);
  color: var(--deep-purple);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 6px;
  border-radius: var(--radius-sm);
  z-index: 1010;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2.5px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.2s ease;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* Hero Section */
.hero {
  background: var(--grad-brand);
  color: var(--white);
  padding: 64px 0 76px;
  position: relative;
  overflow: hidden;
}

.hero::before,
.hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.hero::before {
  width: 460px;
  height: 460px;
  top: -160px;
  right: -120px;
  background: radial-gradient(circle, rgba(245, 180, 232, 0.28) 0%, transparent 70%);
}

.hero::after {
  width: 340px;
  height: 340px;
  bottom: -140px;
  left: -100px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.14) 0%, transparent 70%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-tagline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(245, 180, 232, 0.65);
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  margin-bottom: 18px;
}

.hero-title {
  color: var(--white);
  margin-bottom: 18px;
}

.hero-subtitle {
  font-size: 1.08rem;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 28px;
  max-width: 540px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-media {
  position: relative;
}

.hero-media-card {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius-xl);
  padding: 12px;
  box-shadow: 0 24px 48px rgba(48, 0, 52, 0.35);
}

.hero-media-card img {
  width: 100%;
  border-radius: var(--radius-lg);
  object-fit: cover;
}

/* Page Hero (Inner Pages) */
.page-hero {
  background: var(--grad-brand);
  color: var(--white);
  padding: 52px 0 56px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero h1 {
  color: var(--white);
  margin-bottom: 12px;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.9);
  max-width: 640px;
  margin-inline: auto;
  font-size: 1.05rem;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 0.875rem;
  margin-bottom: 18px;
}

.page-hero .breadcrumb {
  justify-content: center;
}

.breadcrumb a {
  color: var(--deep-purple);
  font-weight: 500;
}

.breadcrumb a:hover {
  color: var(--hot-pink);
}

.breadcrumb .sep {
  color: var(--silver);
}

.breadcrumb .current {
  color: var(--hot-pink);
  font-weight: 600;
}

.page-hero .breadcrumb a {
  color: rgba(255, 255, 255, 0.8);
}

.page-hero .breadcrumb a:hover {
  color: var(--white);
}

.page-hero .breadcrumb .sep {
  color: rgba(255, 255, 255, 0.5);
}

.page-hero .breadcrumb .current {
  color: var(--soft-pink);
}

/* Cards */
.card {
  background: var(--grad-card-tint);
  border: 2.5px solid var(--soft-pink);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s ease;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md), 0 8px 24px rgba(233, 42, 184, 0.18);
  border-color: var(--hot-pink);
}

.card-img-wrap {
  overflow: hidden;
  background: var(--soft-pink-bg);
}

.card-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.45s var(--ease);
}

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

.card-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-title {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.card-text {
  color: var(--ink-muted);
  font-size: 0.9375rem;
  margin-bottom: 16px;
  flex: 1;
}

/* CTA Banner */
.cta-banner {
  background: var(--grad-brand);
  color: var(--white);
  padding: 64px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner h2 {
  color: var(--white);
  margin-bottom: 12px;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
  margin: 0 auto 28px;
  font-size: 1.05rem;
}

/* Footer */
.footer {
  background: var(--deep-purple);
  color: var(--white);
  padding-top: 64px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 36px;
  padding-bottom: 48px;
}

.footer-logo {
  height: 48px;
  width: auto;
  margin-bottom: 16px;
}

.footer-desc {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.92rem;
  margin-bottom: 20px;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.footer-social a:hover {
  background: var(--hot-pink);
  transform: translateY(-2px);
}

.footer-col h4 {
  color: var(--white);
  font-size: 1.05rem;
  margin-bottom: 18px;
  padding-bottom: 10px;
  position: relative;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 32px;
  height: 2.5px;
  background: var(--hot-pink);
  border-radius: 2px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.92rem;
}

.footer-links a:hover {
  color: var(--soft-pink);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.72);
}

.footer-tagline {
  color: var(--soft-pink);
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 0.06em;
}

/* Floating WhatsApp & Back to Top */
.wa-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--wa-green);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.42);
  z-index: 990;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.wa-float:hover {
  transform: scale(1.08);
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.55);
}

.back-to-top {
  position: fixed;
  right: 27px;
  bottom: 92px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--deep-purple);
  color: var(--white);
  border: 2px solid var(--soft-pink);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 989;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease, background-color 0.2s ease;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--hot-pink);
}

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

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

/* Utilities */
.text-center { text-align: center; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 36px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
