/* ============================================
   DESIGN SYSTEM — Pondok Pesantren Darut Taubah
   Theme: Soft Green Islamic Premium
   ============================================ */

/* ---- Google Fonts ---- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Playfair+Display:wght@400;500;600;700;800&family=Amiri:wght@400;700&display=swap');

/* ---- CSS Variables ---- */
:root {
  /* Primary Green Palette */
  --primary-50: #f0fdf4;
  --primary-100: #dcfce7;
  --primary-200: #bbf7d0;
  --primary-300: #86efac;
  --primary-400: #4ade80;
  --primary-500: #1a7a4c;
  --primary-600: #15663f;
  --primary-700: #0d5a35;
  --primary-800: #0a4528;
  --primary-900: #06301c;

  /* Gold Accent */
  --gold-50: #fefce8;
  --gold-100: #fef9c3;
  --gold-200: #fef08a;
  --gold-300: #fde047;
  --gold-400: #d4a844;
  --gold-500: #c8a96e;
  --gold-600: #b8942a;
  --gold-700: #a37e20;

  /* Neutrals */
  --neutral-50: #fafdf7;
  --neutral-100: #f3f7f0;
  --neutral-200: #e8ede5;
  --neutral-300: #d1d9cd;
  --neutral-400: #9ca89a;
  --neutral-500: #6b7a69;
  --neutral-600: #4a5a48;
  --neutral-700: #2d3a2c;
  --neutral-800: #1a2e1a;
  --neutral-900: #0d1a0d;

  /* Semantic */
  --success: #16a34a;
  --warning: #f59e0b;
  --danger: #dc2626;
  --info: #0ea5e9;

  /* Layout */
  --max-width: 1280px;
  --header-height: 80px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(13,26,13,0.06);
  --shadow-md: 0 4px 12px rgba(13,26,13,0.08);
  --shadow-lg: 0 12px 32px rgba(13,26,13,0.10);
  --shadow-xl: 0 24px 64px rgba(13,26,13,0.14);
  --shadow-glow: 0 0 40px rgba(26,122,76,0.15);

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
  --transition-spring: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-arabic: 'Amiri', serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background: var(--neutral-50);
  color: var(--neutral-800);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--primary-500);
  text-decoration: none;
  transition: color var(--transition-fast);
}
a:hover { color: var(--primary-700); }

/* ---- Typography ---- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-serif);
  color: var(--neutral-800);
  line-height: 1.3;
  font-weight: 700;
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.25rem; }

p { margin-bottom: 1rem; }

.text-gold { color: var(--gold-500); }
.text-green { color: var(--primary-500); }
.text-muted { color: var(--neutral-500); }
.text-center { text-align: center; }

.font-arabic {
  font-family: var(--font-arabic);
  direction: rtl;
  font-size: 1.4em;
  line-height: 2;
  color: var(--primary-700);
}

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

/* ---- Section ---- */
.section {
  padding: 80px 0;
}
.section-sm { padding: 50px 0; }

.section-header {
  text-align: center;
  margin-bottom: 50px;
}
.section-header h2 {
  margin-bottom: 12px;
}
.section-header .subtitle {
  color: var(--primary-500);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.section-header .desc {
  color: var(--neutral-500);
  max-width: 600px;
  margin: 0 auto;
  font-size: 15px;
}

.section-divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-500), var(--gold-500));
  margin: 16px auto;
  border-radius: 3px;
}

/* ---- Background Variations ---- */
.bg-white { background: #fff; }
.bg-soft { background: var(--neutral-100); }
.bg-green {
  background: linear-gradient(135deg, var(--primary-800), var(--primary-700));
  color: #fff;
}
.bg-green h2, .bg-green h3 { color: #fff; }
.bg-green .subtitle { color: var(--gold-400); }
.bg-green .desc { color: var(--primary-200); }

.bg-pattern {
  background-image:
    radial-gradient(circle at 20% 50%, rgba(26,122,76,0.04) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(200,169,110,0.05) 0%, transparent 50%);
}

/* ============================================
   HEADER / NAVIGATION
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(26,122,76,0.08);
  transition: all var(--transition-base);
  height: var(--header-height);
}
.navbar.scrolled {
  box-shadow: var(--shadow-md);
  background: rgba(255,255,255,0.97);
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.nav-brand img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary-200);
}
.nav-brand-text {
  display: flex;
  flex-direction: column;
}
.nav-brand-name {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 16px;
  color: var(--primary-700);
  line-height: 1.2;
}
.nav-brand-sub {
  font-size: 11px;
  color: var(--neutral-500);
  font-weight: 500;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 4px;
}
.nav-menu a {
  display: block;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--neutral-600);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  position: relative;
}
.nav-menu a:hover,
.nav-menu a.active {
  color: var(--primary-600);
  background: var(--primary-50);
}
.nav-menu a.active::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 3px;
  background: var(--primary-500);
  border-radius: 3px;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  border: none;
  background: none;
  z-index: 1001;
}
.nav-toggle span {
  width: 24px;
  height: 2.5px;
  background: var(--neutral-700);
  border-radius: 3px;
  transition: all var(--transition-base);
}
.nav-toggle.open span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}
.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
  color: #fff;
  box-shadow: 0 4px 16px rgba(26,122,76,0.25);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-600), var(--primary-700));
  color: #fff;
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
  color: #fff;
  box-shadow: 0 4px 16px rgba(200,169,110,0.3);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary-500);
  color: var(--primary-500);
}
.btn-outline:hover {
  background: var(--primary-500);
  color: #fff;
}

.btn-whatsapp {
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: #fff;
  box-shadow: 0 4px 16px rgba(37,211,102,0.3);
}
.btn-whatsapp:hover {
  color: #fff;
  background: linear-gradient(135deg, #128c7e, #075e54);
}

.btn-lg {
  padding: 16px 36px;
  font-size: 16px;
  border-radius: var(--radius-lg);
}
.btn-sm {
  padding: 8px 18px;
  font-size: 13px;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary-900) 0%, var(--primary-800) 50%, var(--primary-700) 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.25;
  transition: opacity 1.2s ease;
}
.hero-bg img.active {
  opacity: 0.3;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(180deg, rgba(6,48,28,0.7) 0%, rgba(13,90,53,0.5) 40%, rgba(26,122,76,0.3) 100%),
    radial-gradient(ellipse at 30% 80%, rgba(200,169,110,0.08) 0%, transparent 60%);
}

/* Decorative geometric patterns */
.hero-pattern {
  position: absolute;
  inset: 0;
  z-index: 3;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content {
  position: relative;
  z-index: 5;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 120px 24px 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-text {
  color: #fff;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--gold-300);
  margin-bottom: 24px;
  animation: fadeInUp 0.8s ease;
}
.hero-text h1 {
  color: #fff;
  font-size: clamp(2.2rem, 5.5vw, 3.8rem);
  margin-bottom: 8px;
  line-height: 1.15;
  animation: fadeInUp 0.8s ease 0.1s both;
}
.hero-text h1 span {
  color: var(--gold-400);
}
.hero-tagline {
  font-family: var(--font-arabic);
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: var(--gold-300);
  margin-bottom: 20px;
  animation: fadeInUp 0.8s ease 0.2s both;
}
.hero-desc {
  font-size: 16px;
  color: rgba(255,255,255,0.8);
  max-width: 520px;
  line-height: 1.8;
  margin-bottom: 32px;
  animation: fadeInUp 0.8s ease 0.3s both;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.4s both;
}

/* Hero Image Showcase */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeInRight 1s ease 0.3s both;
}
.hero-image-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  max-width: 460px;
}
.hero-image-grid .img-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 2px solid rgba(255,255,255,0.1);
  aspect-ratio: 4/3;
  transition: transform var(--transition-base);
}
.hero-image-grid .img-card:hover {
  transform: scale(1.03);
}
.hero-image-grid .img-card:nth-child(2) {
  margin-top: 30px;
}
.hero-image-grid .img-card:nth-child(3) {
  margin-top: -30px;
}
.hero-image-grid .img-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Hero Stats */
.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 40px;
  animation: fadeInUp 0.8s ease 0.5s both;
}
.hero-stat {
  text-align: center;
}
.hero-stat-value {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 800;
  color: var(--gold-400);
  line-height: 1;
}
.hero-stat-label {
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  margin-top: 4px;
  font-weight: 500;
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.5);
  font-size: 12px;
  animation: bounce 2s infinite;
}
.hero-scroll-line {
  width: 1px;
  height: 30px;
  background: linear-gradient(180deg, rgba(255,255,255,0.4), transparent);
}

/* ============================================
   CARDS
   ============================================ */
.card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--neutral-200);
  transition: all var(--transition-base);
}
.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: var(--primary-200);
}

.card-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--primary-50), var(--primary-100));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 16px;
}

.card-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--neutral-800);
}

.card-desc {
  font-size: 14px;
  color: var(--neutral-500);
  line-height: 1.7;
}

/* Feature Card */
.feature-card {
  text-align: center;
  padding: 36px 24px;
}
.feature-card .card-icon {
  margin: 0 auto 16px;
  width: 64px;
  height: 64px;
  font-size: 28px;
}

/* Grid Layouts */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* ============================================
   ABOUT / PROFIL SECTION
   ============================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-image {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  position: relative;
}
.about-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}
.about-image::after {
  content: '';
  position: absolute;
  bottom: -12px;
  right: -12px;
  width: 100%;
  height: 100%;
  border: 3px solid var(--primary-200);
  border-radius: var(--radius-xl);
  z-index: -1;
}

.about-content h2 {
  margin-bottom: 6px;
}
.about-content .subtitle {
  color: var(--primary-500);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

/* ============================================
   PROGRAMS SECTION
   ============================================ */
.program-card {
  position: relative;
  overflow: hidden;
}
.program-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--primary-500), var(--gold-500));
  border-radius: 4px 0 0 4px;
  opacity: 0;
  transition: opacity var(--transition-base);
}
.program-card:hover::before {
  opacity: 1;
}

/* ============================================
   GALLERY
   ============================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.gallery-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  aspect-ratio: 4/3;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}
.gallery-item:hover img {
  transform: scale(1.08);
}
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(6,48,28,0.7) 100%);
  opacity: 0;
  transition: opacity var(--transition-base);
  display: flex;
  align-items: flex-end;
  padding: 20px;
}
.gallery-item:hover .gallery-overlay {
  opacity: 1;
}
.gallery-overlay span {
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.92);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
  backdrop-filter: blur(10px);
}
.lightbox.active { display: flex; }
.lightbox img {
  max-width: 90%;
  max-height: 85vh;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}
.lightbox-close:hover {
  background: rgba(255,255,255,0.2);
}

/* ============================================
   SCHEDULE / JADWAL
   ============================================ */
.schedule-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--neutral-200);
}
.schedule-item:last-child { border-bottom: none; }
.schedule-time {
  flex-shrink: 0;
  width: 70px;
  font-weight: 700;
  color: var(--primary-600);
  font-size: 15px;
}
.schedule-dot {
  flex-shrink: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary-500);
  margin-top: 6px;
  box-shadow: 0 0 0 4px var(--primary-100);
}
.schedule-activity {
  font-size: 15px;
  color: var(--neutral-700);
}

/* ============================================
   BIAYA / PRICING
   ============================================ */
.pricing-card {
  background: #fff;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--neutral-200);
  transition: all var(--transition-base);
}
.pricing-card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-6px);
}
.pricing-card.featured {
  border-color: var(--primary-400);
  box-shadow: var(--shadow-glow);
}
.pricing-header {
  background: linear-gradient(135deg, var(--primary-600), var(--primary-800));
  padding: 28px;
  text-align: center;
  color: #fff;
}
.pricing-card.featured .pricing-header {
  background: linear-gradient(135deg, var(--gold-500), var(--gold-700));
}
.pricing-type {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  opacity: 0.8;
}
.pricing-amount {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 800;
  margin: 8px 0;
}
.pricing-period {
  font-size: 14px;
  opacity: 0.7;
}
.pricing-body {
  padding: 28px;
}
.pricing-item {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px dashed var(--neutral-200);
  font-size: 14px;
}
.pricing-item:last-child { border-bottom: none; }
.pricing-item-name { color: var(--neutral-600); }
.pricing-item-value { font-weight: 700; color: var(--neutral-800); }
.pricing-footer {
  padding: 0 28px 28px;
  text-align: center;
}

/* ============================================
   FORM STYLES
   ============================================ */
.form-group {
  margin-bottom: 20px;
}
.form-label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  color: var(--neutral-700);
  margin-bottom: 8px;
}
.form-label .required {
  color: var(--danger);
}
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--neutral-300);
  border-radius: var(--radius-md);
  font-size: 15px;
  font-family: var(--font-sans);
  color: var(--neutral-800);
  background: #fff;
  transition: all var(--transition-fast);
  outline: none;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--primary-500);
  box-shadow: 0 0 0 4px rgba(26,122,76,0.08);
}
.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--neutral-400);
}
.form-textarea {
  resize: vertical;
  min-height: 100px;
}
.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7a69' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}
.form-hint {
  font-size: 12px;
  color: var(--neutral-400);
  margin-top: 6px;
}
.form-error {
  font-size: 12px;
  color: var(--danger);
  margin-top: 6px;
  display: none;
}
.form-group.error .form-input,
.form-group.error .form-select,
.form-group.error .form-textarea {
  border-color: var(--danger);
  box-shadow: 0 0 0 4px rgba(220,38,38,0.06);
}
.form-group.error .form-error {
  display: block;
}
.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

/* Checkbox */
.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
}
.form-checkbox input[type="checkbox"] {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  accent-color: var(--primary-500);
  flex-shrink: 0;
  margin-top: 2px;
}
.form-checkbox-text {
  font-size: 14px;
  color: var(--neutral-600);
  line-height: 1.5;
}

/* Form Section Card */
.form-section {
  background: #fff;
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--neutral-200);
  margin-bottom: 24px;
}
.form-section-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-700);
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary-100);
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
  background: linear-gradient(135deg, var(--primary-700), var(--primary-900));
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(200,169,110,0.15), transparent 70%);
  border-radius: 50%;
}
.cta-content {
  text-align: center;
  position: relative;
  z-index: 2;
}
.cta-content h2 {
  color: #fff;
  margin-bottom: 12px;
}
.cta-content p {
  color: var(--primary-200);
  max-width: 500px;
  margin: 0 auto 28px;
}
.cta-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--neutral-900);
  color: var(--neutral-400);
  padding: 60px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  margin-bottom: 12px;
  border: 2px solid var(--primary-700);
}
.footer-brand h3 {
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 8px;
}
.footer-brand p {
  font-size: 14px;
  line-height: 1.7;
}
.footer h4 {
  color: #fff;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
}
.footer-links {
  list-style: none;
}
.footer-links li { margin-bottom: 10px; }
.footer-links a {
  color: var(--neutral-400);
  font-size: 14px;
  transition: color var(--transition-fast);
}
.footer-links a:hover { color: var(--gold-400); }

.footer-contact-item {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 14px;
}
.footer-contact-icon {
  flex-shrink: 0;
  font-size: 16px;
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}
.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--neutral-400);
  transition: all var(--transition-fast);
}
.footer-social a:hover {
  background: var(--primary-600);
  border-color: var(--primary-600);
  color: #fff;
  transform: translateY(-2px);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom p {
  font-size: 13px;
  margin: 0;
}
.footer-bottom a {
  color: var(--gold-500);
}

/* ============================================
   FLOATING WHATSAPP
   ============================================ */
.wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 10px;
}
.wa-float-btn {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: #fff;
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(37,211,102,0.35);
  text-decoration: none;
  transition: all var(--transition-base);
  animation: pulse 2s infinite;
}
.wa-float-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 32px rgba(37,211,102,0.5);
  color: #fff;
}
.wa-float-label {
  background: #fff;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  color: var(--neutral-700);
  box-shadow: var(--shadow-md);
  white-space: nowrap;
}

/* Back to top */
.back-to-top {
  position: fixed;
  bottom: 90px;
  right: 30px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary-500);
  color: #fff;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  border: none;
  z-index: 998;
  opacity: 0;
  transform: translateY(20px);
  transition: all var(--transition-base);
}
.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
}
.back-to-top:hover {
  background: var(--primary-700);
  transform: translateY(-2px);
}

/* ============================================
   PAGE HEADER (for inner pages)
   ============================================ */
.page-header {
  background: linear-gradient(135deg, var(--primary-800), var(--primary-900));
  padding: 140px 0 60px;
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.page-header-content {
  position: relative;
  z-index: 2;
  text-align: center;
}
.page-header h1 {
  color: #fff;
  margin-bottom: 12px;
}
.page-header .breadcrumb {
  display: flex;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  color: var(--primary-300);
}
.page-header .breadcrumb a {
  color: var(--gold-400);
}

/* ============================================
   TOAST / NOTIFICATION
   ============================================ */
.toast {
  position: fixed;
  top: 100px;
  right: 24px;
  z-index: 9999;
  background: #fff;
  border-radius: var(--radius-md);
  padding: 16px 24px;
  box-shadow: var(--shadow-xl);
  border-left: 4px solid var(--success);
  display: flex;
  align-items: center;
  gap: 12px;
  transform: translateX(120%);
  transition: transform var(--transition-spring);
  max-width: 400px;
}
.toast.show { transform: translateX(0); }
.toast.error { border-left-color: var(--danger); }
.toast-icon { font-size: 24px; flex-shrink: 0; }
.toast-message { font-size: 14px; font-weight: 500; }

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-8px); }
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 6px 24px rgba(37,211,102,0.35); }
  50% { box-shadow: 0 6px 24px rgba(37,211,102,0.55), 0 0 0 12px rgba(37,211,102,0.1); }
}

/* Scroll Animation */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-desc { margin: 0 auto 32px; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-visual { display: none; }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: #fff;
    flex-direction: column;
    padding: 100px 24px 40px;
    transition: right var(--transition-base);
    box-shadow: -10px 0 40px rgba(0,0,0,0.1);
    z-index: 999;
  }
  .nav-menu.open { right: 0; }
  .nav-toggle { display: flex; }
  .nav-cta .btn { display: none; }

  .section { padding: 50px 0; }
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  .hero-stats {
    flex-wrap: wrap;
    gap: 20px;
  }
  .pricing-card { margin-bottom: 20px; }

  .wa-float-label { display: none; }
}

@media (max-width: 480px) {
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.5rem; }
  .container { padding: 0 16px; }
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .form-section { padding: 20px 16px; }
}

/* ============================================
   LOADING SKELETON
   ============================================ */
.skeleton {
  background: linear-gradient(90deg, var(--neutral-200) 25%, var(--neutral-100) 50%, var(--neutral-200) 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s ease infinite;
  border-radius: var(--radius-sm);
}

@keyframes skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ============================================
   ALERT/NOTICE
   ============================================ */
.alert {
  padding: 16px 20px;
  border-radius: var(--radius-md);
  font-size: 14px;
  margin-bottom: 16px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.alert-success {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #15803d;
}
.alert-warning {
  background: #fefce8;
  border: 1px solid #fef08a;
  color: #a16207;
}
.alert-info {
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  color: #0369a1;
}
.alert-icon { font-size: 20px; flex-shrink: 0; }

/* ============================================
   MAP TABS — 3 View Design
   ============================================ */
.map-container {
  background: #fff;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--neutral-200);
}
.map-tabs {
  display: flex;
  background: var(--neutral-100);
  border-bottom: 2px solid var(--neutral-200);
  padding: 6px;
  gap: 4px;
}
.map-tab {
  flex: 1;
  padding: 14px 16px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  color: var(--neutral-500);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.map-tab:hover {
  color: var(--primary-600);
  background: rgba(26,122,76,0.06);
}
.map-tab.active {
  background: #fff;
  color: var(--primary-700);
  box-shadow: var(--shadow-sm);
}
.map-tab-icon {
  font-size: 18px;
}
.map-panel {
  display: none;
  min-height: 400px;
}
.map-panel.active {
  display: block;
}
.map-panel iframe {
  width: 100%;
  height: 450px;
  border: 0;
  display: block;
}
.map-panel-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  padding: 40px;
  text-align: center;
  background: linear-gradient(135deg, var(--primary-50), var(--neutral-100));
}
.map-panel-link .map-link-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-500), var(--primary-700));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  margin-bottom: 20px;
  box-shadow: 0 8px 24px rgba(26,122,76,0.25);
}
.map-panel-link h3 {
  margin-bottom: 8px;
  color: var(--neutral-800);
}
.map-panel-link p {
  color: var(--neutral-500);
  font-size: 14px;
  max-width: 400px;
  margin-bottom: 24px;
}
.map-info-bar {
  background: var(--neutral-100);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  border-top: 1px solid var(--neutral-200);
}
.map-info-bar .map-address {
  font-size: 13px;
  color: var(--neutral-600);
  display: flex;
  align-items: center;
  gap: 8px;
}
.map-info-bar .map-coords {
  font-size: 12px;
  color: var(--neutral-400);
  font-family: monospace;
}
@media (max-width: 768px) {
  .map-tabs {
    flex-direction: column;
  }
  .map-panel iframe {
    height: 350px;
  }
  .map-info-bar {
    flex-direction: column;
    text-align: center;
  }
}

/* ============================================
   ANIMATIONS: Smooth Zoom
   ============================================ */
@keyframes zoomIn {
  from { opacity: 0; transform: scale(0.85); }
  to { opacity: 1; transform: scale(1); }
}

.lightbox.active img {
  animation: zoomIn 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

.zoomable {
  cursor: zoom-in;
  transition: transform 0.3s ease;
}
.zoomable:hover {
  transform: scale(1.02);
}

/* ============================================
   QUOTE CAROUSEL / MUTIARA HIKMAH
   ============================================ */
.quote-section {
  padding: 80px 0;
  background: var(--primary-900);
  background-image:
    linear-gradient(rgba(6,48,28,0.9), rgba(6,48,28,0.9)),
    url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 86c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zm66-3c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zm-40-39c.552 0 1-.448 1-1s-.448-1-1-1-1 .448-1 1 .448 1 1 1zm50 38c.552 0 1-.448 1-1s-.448-1-1-1-1 .448-1 1 .448 1 1 1zM21 39c.552 0 1-.448 1-1s-.448-1-1-1-1 .448-1 1 .448 1 1 1zm56 49c.552 0 1-.448 1-1s-.448-1-1-1-1 .448-1 1 .448 1 1 1zM95 54c.552 0 1-.448 1-1s-.448-1-1-1-1 .448-1 1 .448 1 1 1zM37 5c.552 0 1-.448 1-1s-.448-1-1-1-1 .448-1 1 .448 1 1 1z' fill='%23c8a96e' fill-opacity='0.1' fill-rule='evenodd'/%3E%3C/svg%3E");
  color: #fff;
  text-align: center;
}
.quote-slider-container {
  max-width: 800px;
  margin: 40px auto 0;
  position: relative;
  overflow: hidden;
}
.quote-wrapper {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.645, 0.045, 0.355, 1);
}
.quote-slide {
  flex: 0 0 100%;
  padding: 0 20px;
}
.quote-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-xl);
  padding: 10px;
  backdrop-filter: blur(5px);
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}
.quote-card img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  display: block;
}
.quote-nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
}
.quote-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}
.quote-dot.active {
  background: var(--gold-400);
  transform: scale(1.3);
  box-shadow: 0 0 10px var(--gold-500);
}

/* ============================================
   LIGHTBOX NAVIGATION
   ============================================ */
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.1);
  border: none;
  color: #fff;
  font-size: 30px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 1002;
  backdrop-filter: blur(5px);
}
.lightbox-nav:hover {
  background: var(--gold-500);
  width: 70px;
  height: 70px;
}
.lightbox-prev { left: 30px; }
.lightbox-next { right: 30px; }

@media (max-width: 768px) {
  .lightbox-nav {
    width: 44px;
    height: 44px;
    font-size: 20px;
  }
  .lightbox-prev { left: 10px; }
  .lightbox-next { right: 10px; }
}

/* Hidden utility */
.hidden { display: none !important; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}
