/* ============================================================
   Konseling Profesional Islami - Main CSS
   Tema: Islami Modern, Emerald Green + White
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
  --emerald-50:  #ecfdf5;
  --emerald-100: #d1fae5;
  --emerald-200: #a7f3d0;
  --emerald-300: #6ee7b7;
  --emerald-400: #34d399;
  --emerald-500: #10b981;
  --emerald-600: #059669;
  --emerald-700: #047857;
  --emerald-800: #065f46;
  --emerald-900: #064e3b;
  
  --gold-400: #f59e0b;
  --gold-500: #d97706;
  
  --primary: var(--emerald-600);
  --primary-dark: var(--emerald-700);
  --primary-light: var(--emerald-50);
  --accent: var(--gold-400);
  
  --text-dark: #1a2e1a;
  --text-muted: #6b7280;
  --text-light: #9ca3af;
  
  --bg-white: #ffffff;
  --bg-light: #f8fdf8;
  --bg-section: #f0fdf4;
  
  --shadow-sm: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md: 0 4px 16px rgba(5,150,105,.12);
  --shadow-lg: 0 10px 40px rgba(5,150,105,.15);
  --shadow-xl: 0 20px 60px rgba(5,150,105,.2);
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;
  
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;
  
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--bg-white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.3;
}

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

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

/* ============================================================
   SCROLLBAR
   ============================================================ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--emerald-50); }
::-webkit-scrollbar-thumb { background: var(--emerald-400); border-radius: 3px; }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar-brand-text {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary) !important;
  letter-spacing: -0.5px;
}

.navbar {
  background: rgba(255,255,255,0.92) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(5,150,105,0.1);
  transition: var(--transition);
  padding: 1rem 0;
}

.navbar.scrolled {
  padding: 0.6rem 0;
  box-shadow: var(--shadow-md);
}

.nav-link {
  font-weight: 500;
  color: var(--text-dark) !important;
  padding: 0.5rem 1rem !important;
  border-radius: var(--radius-full);
  transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
  color: var(--primary) !important;
  background: var(--emerald-50);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary-custom {
  background: linear-gradient(135deg, var(--emerald-500), var(--emerald-700));
  color: white;
  border: none;
  border-radius: var(--radius-full);
  padding: 0.75rem 2rem;
  font-weight: 600;
  font-family: var(--font-body);
  letter-spacing: 0.01em;
  box-shadow: 0 4px 20px rgba(5,150,105,0.35);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-primary-custom:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(5,150,105,0.45);
  color: white;
  background: linear-gradient(135deg, var(--emerald-600), var(--emerald-800));
}

.btn-primary-custom:active { transform: translateY(0); }

.btn-outline-custom {
  border: 2px solid var(--primary);
  color: var(--primary);
  border-radius: var(--radius-full);
  padding: 0.7rem 2rem;
  font-weight: 600;
  font-family: var(--font-body);
  background: transparent;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-outline-custom:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero-section {
  min-height: 100vh;
  background: linear-gradient(160deg, var(--emerald-900) 0%, var(--emerald-700) 40%, var(--emerald-500) 100%);
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 100px 0 80px;
}

.hero-pattern {
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(circle at 20% 50%, rgba(255,255,255,0.04) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255,255,255,0.06) 0%, transparent 40%),
    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='0.02'%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: 2; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.2);
  color: white;
  padding: 0.4rem 1.2rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(10px);
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  color: white;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.hero-title .highlight {
  color: var(--gold-400);
  font-style: italic;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.82);
  margin-bottom: 2.5rem;
  max-width: 500px;
  font-weight: 400;
}

.hero-stats {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.hero-stat {
  text-align: center;
}

.hero-stat .number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: white;
  line-height: 1;
}

.hero-stat .label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.7);
  margin-top: 0.25rem;
}

.hero-image-wrapper {
  position: relative;
  z-index: 2;
}

.hero-card {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  backdrop-filter: blur(20px);
  border-radius: var(--radius-xl);
  padding: 2rem;
  color: white;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

.hero-card-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem;
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  margin-bottom: 0.75rem;
  transition: var(--transition);
}

.hero-card-item:hover { background: rgba(255,255,255,0.18); }

.hero-card-item:last-child { margin-bottom: 0; }

.hero-card-icon {
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.2);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

/* ============================================================
   SECTION COMMON
   ============================================================ */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--emerald-50);
  color: var(--primary);
  padding: 0.35rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  border: 1px solid var(--emerald-200);
}

.section-title {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.section-desc {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* ============================================================
   ABOUT SECTION
   ============================================================ */
.about-section { padding: 100px 0; background: var(--bg-white); }

.about-feature {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.about-feature-icon {
  width: 50px;
  height: 50px;
  background: var(--emerald-50);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--primary);
  flex-shrink: 0;
  border: 1px solid var(--emerald-200);
}

.about-feature-text h5 {
  font-family: var(--font-body);
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: var(--text-dark);
}

.about-feature-text p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}

.about-image-wrapper {
  position: relative;
}

.about-image-wrapper img {
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
}

.about-floating-card {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: white;
  border-radius: var(--radius-lg);
  padding: 1.2rem 1.5rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--emerald-100);
}

/* ============================================================
   SERVICES SECTION
   ============================================================ */
.services-section { padding: 100px 0; background: var(--bg-section); }

.service-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 2rem;
  height: 100%;
  border: 1px solid var(--emerald-100);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--emerald-400), var(--emerald-600));
  transform: scaleX(0);
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--emerald-200);
}

.service-card:hover::before { transform: scaleX(1); }

.service-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--emerald-50), var(--emerald-100));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--primary);
  margin-bottom: 1.2rem;
  border: 1px solid var(--emerald-200);
}

.service-card h4 {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.6rem;
}

.service-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.service-price {
  font-weight: 700;
  color: var(--primary);
  font-size: 0.95rem;
}

/* ============================================================
   KONSELOR SECTION
   ============================================================ */
.konselor-section { padding: 100px 0; background: var(--bg-white); }

.konselor-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--emerald-100);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  text-align: center;
}

.konselor-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.konselor-img-wrapper {
  position: relative;
  padding-top: 2rem;
  background: linear-gradient(180deg, var(--emerald-50) 0%, white 100%);
}

.konselor-img {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid white;
  box-shadow: var(--shadow-md);
  margin: 0 auto;
  display: block;
  background: var(--emerald-200);
}

.konselor-img-placeholder {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--emerald-400), var(--emerald-600));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: white;
  font-weight: 600;
  border: 4px solid white;
  box-shadow: var(--shadow-md);
  margin: 0 auto;
}

.konselor-info { padding: 1.5rem; }

.konselor-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--text-dark);
  margin-bottom: 0.25rem;
}

.konselor-title {
  font-size: 0.82rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.konselor-spec {
  font-size: 0.83rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.konselor-harga {
  font-size: 0.85rem;
  font-weight: 600;
}

.konselor-jadwal {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

/* ============================================================
   FAQ SECTION
   ============================================================ */
.faq-section { padding: 100px 0; background: var(--bg-section); }

.accordion-item {
  border: 1px solid var(--emerald-100) !important;
  border-radius: var(--radius-md) !important;
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.accordion-button {
  font-weight: 600;
  font-family: var(--font-body);
  color: var(--text-dark) !important;
  background: white !important;
  padding: 1.2rem 1.5rem;
}

.accordion-button:not(.collapsed) {
  color: var(--primary) !important;
  background: var(--emerald-50) !important;
  box-shadow: none !important;
}

.accordion-button::after {
  filter: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23059669'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e") !important;
}

.accordion-body {
  background: white;
  color: var(--text-muted);
  padding: 1.2rem 1.5rem;
  font-size: 0.93rem;
  line-height: 1.7;
}

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--emerald-800), var(--emerald-600));
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='40' cy='40' r='30'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.cta-content { position: relative; z-index: 2; text-align: center; }

.cta-title {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  color: white;
  margin-bottom: 1rem;
}

.cta-desc {
  color: rgba(255,255,255,0.8);
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.btn-cta-white {
  background: white;
  color: var(--primary);
  border: none;
  border-radius: var(--radius-full);
  padding: 0.85rem 2.5rem;
  font-weight: 700;
  font-family: var(--font-body);
  font-size: 1rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-cta-white:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
  color: var(--primary-dark);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--emerald-900);
  color: rgba(255,255,255,0.7);
  padding: 70px 0 0;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: white;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.footer-desc {
  font-size: 0.9rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.footer h5 {
  color: white;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.footer-links { list-style: none; padding: 0; }

.footer-links li { margin-bottom: 0.6rem; }

.footer-links a {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-links a:hover { color: var(--emerald-300); padding-left: 4px; }

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
}

.footer-contact-item i {
  color: var(--emerald-300);
  margin-top: 0.15rem;
  flex-shrink: 0;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.footer-social a {
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  transition: var(--transition);
  font-size: 1rem;
}

.footer-social a:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
}

.footer-bottom {
  margin-top: 50px;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 1.5rem 0;
  font-size: 0.85rem;
  text-align: center;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-delay-1 { transition-delay: 0.1s; }
.fade-delay-2 { transition-delay: 0.2s; }
.fade-delay-3 { transition-delay: 0.3s; }
.fade-delay-4 { transition-delay: 0.4s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .hero-section { padding: 80px 0 60px; text-align: center; }
  .hero-stats { justify-content: center; }
  .hero-subtitle { margin: 0 auto 2rem; }
  .about-floating-card { right: 0; bottom: 0; }
  .konselor-card { margin-bottom: 1.5rem; }
}

@media (max-width: 576px) {
  .btn-primary-custom, .btn-outline-custom { width: 100%; justify-content: center; }
  .hero-stats { gap: 1.5rem; }
}
