/* ============================================
   PsychoEmpathy — Main Stylesheet
   Theme: Sky Blue & Light Blue
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Nunito:wght@300;400;600;700&display=swap');

:root {
  --sky-deep:    #1a8ec2;
  --sky-mid:     #38b6e8;
  --sky-light:   #87ceeb;
  --sky-pale:    #d6eefa;
  --sky-bg:      #edf6fb;
  --white:       #ffffff;
  --text-dark:   #1a2e3a;
  --text-mid:    #3a5568;
  --text-soft:   #6b8fa3;
  --card-bg:     #f5fbff;
  --shadow-sm:   0 2px 12px rgba(56,182,232,0.12);
  --shadow-md:   0 6px 28px rgba(56,182,232,0.18);
  --shadow-lg:   0 12px 40px rgba(56,182,232,0.22);
  --radius:      16px;
  --radius-sm:   10px;
  --transition:  all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:   'Nunito', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--sky-bg);
  color: var(--text-dark);
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  color: var(--text-dark);
}

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

section { padding: 90px 0; }

/* ─── Scrollbar ─────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--sky-bg); }
::-webkit-scrollbar-thumb { background: var(--sky-mid); border-radius: 3px; }

/* ─── Utility ───────────────────────────────── */
.section-label {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sky-mid);
  display: block;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-soft);
  max-width: 560px;
  margin: 0 auto;
}

.divider {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--sky-mid), var(--sky-light));
  border-radius: 2px;
  margin: 1rem auto 2rem;
}

/* ─── Buttons ───────────────────────────────── */
.btn-sky {
  background: linear-gradient(135deg, var(--sky-deep), var(--sky-mid));
  color: var(--white);
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 50px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 18px rgba(56,182,232,0.35);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-sky:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(56,182,232,0.45);
  color: var(--white);
}

.btn-outline-sky {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.7);
  padding: 0.7rem 1.8rem;
  border-radius: 50px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-outline-sky:hover {
  background: rgba(255,255,255,0.15);
  border-color: var(--white);
  color: var(--white);
  transform: translateY(-2px);
}

/* ─── Navbar ────────────────────────────────── */
.navbar-custom {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(135,206,235,0.3);
  padding: 1rem 0;
  transition: var(--transition);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar-custom.scrolled {
  padding: 0.65rem 0;
  box-shadow: var(--shadow-sm);
}

.navbar-brand-text {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--sky-deep), var(--sky-mid));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-link-custom {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text-mid) !important;
  padding: 0.4rem 0.9rem !important;
  border-radius: 8px;
  transition: var(--transition);
  letter-spacing: 0.02em;
}

.nav-link-custom:hover {
  color: var(--sky-deep) !important;
  background: var(--sky-pale);
}

/* ─── Hero ──────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, #0a4f6e 0%, #1a8ec2 40%, #38b6e8 70%, #87ceeb 100%);
}

.hero-bg-pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 80%, rgba(255,255,255,0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255,255,255,0.1) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(135,206,235,0.15) 0%, transparent 60%);
  pointer-events: none;
}

.hero-floating {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  animation: float 8s ease-in-out infinite;
}

.hero-floating:nth-child(1) { width: 200px; height: 200px; top: 10%; right: 15%; }
.hero-floating:nth-child(2) { width: 120px; height: 120px; bottom: 20%; right: 30%; animation-delay: 2s; }
.hero-floating:nth-child(3) { width: 80px; height: 80px; top: 60%; left: 5%; animation-delay: 4s; }

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

/* Content */
.hero-content { 
  position: relative; 
  z-index: 2; 
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 50px;
  padding: 0.4rem 1rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: rgba(255,255,255,0.9);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.8s ease both;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.8s ease 0.15s both;
}

.hero-title span {
  color: var(--sky-light);
}

.hero-subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.82);
  max-width: 520px;
  margin-bottom: 2.5rem;
  animation: fadeInUp 0.8s ease 0.3s both;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.45s both;
}

/* ─── NEW: HERO IMAGE ───────────────────────── */
.hero-image {
  position: relative;
  z-index: 2;
  animation: fadeInRight 0.9s ease 0.3s both;
}

.hero-image img {
  width: 100%;
  max-width: 500px;
  border-radius: 20px;
  box-shadow: 0 25px 60px rgba(0,0,0,0.25);
  transition: transform 0.4s ease;
}

.hero-image img:hover {
  transform: scale(1.05);
}

/* ─── OPTIONAL: remove old card if unused ─── */
/* You can delete this block if not using stats anymore */
/*
.hero-image-card { ... }
.hero-stat-grid { ... }
.hero-stat-item { ... }
*/

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

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

/* ─── RESPONSIVE FIX ───────────────────────── */
@media (max-width: 992px) {
  .hero {
    text-align: center;
    padding: 80px 0;
  }

  .hero-image {
    margin-top: 40px;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-buttons {
    justify-content: center;
  }
}

/* ─── About ─────────────────────────────────── */
.about-section {
  background: var(--white);
}

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

.about-image-blob {
  width: 100%;
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  overflow: hidden;
  aspect-ratio: 1;
  background: linear-gradient(135deg, var(--sky-pale), var(--sky-light));
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-icon-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  padding: 2rem;
}

.about-icon-item {
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 1.5rem 1rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.about-icon-item i {
  font-size: 2rem;
  color: var(--sky-mid);
  display: block;
  margin-bottom: 0.5rem;
}

.about-icon-item span {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-mid);
}

.about-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--sky-pale);
  color: var(--sky-deep);
  border-radius: 50px;
  padding: 0.4rem 1rem;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

/* ─── Services ──────────────────────────────── */
.services-section {
  background: var(--sky-bg);
}

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  border: 1px solid rgba(135,206,235,0.2);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  height: 100%;
  cursor: pointer;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--sky-deep), var(--sky-mid));
  transform: scaleX(0);
  transition: var(--transition);
  transform-origin: left;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(56,182,232,0.3);
}

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

.service-icon-wrap {
  width: 64px;
  height: 64px;
  background: var(--sky-pale);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  transition: var(--transition);
}

.service-card:hover .service-icon-wrap {
  background: linear-gradient(135deg, var(--sky-deep), var(--sky-mid));
}

.service-icon-wrap i {
  font-size: 1.6rem;
  color: var(--sky-deep);
  transition: var(--transition);
}

.service-card:hover .service-icon-wrap i {
  color: var(--white);
}

.service-card h5 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  color: var(--text-dark);
}

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

.btn-book {
  background: var(--sky-pale);
  color: var(--sky-deep);
  border: none;
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
  transition: var(--transition);
}

.btn-book:hover {
  background: linear-gradient(135deg, var(--sky-deep), var(--sky-mid));
  color: var(--white);
}

/* ─── Booking Modal ─────────────────────────── */
.modal-content {
  border: none;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.modal-header {
  background: linear-gradient(135deg, var(--sky-deep), var(--sky-mid));
  color: var(--white);
  border: none;
  padding: 1.5rem 2rem;
}

.modal-header .modal-title {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--white);
}

.modal-body { padding: 2rem; }

.form-label {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text-mid);
  margin-bottom: 0.4rem;
}

.form-control, .form-select {
  border: 1.5px solid rgba(135,206,235,0.4);
  border-radius: 10px;
  padding: 0.65rem 1rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-dark);
  background: var(--card-bg);
  transition: var(--transition);
}

.form-control:focus, .form-select:focus {
  border-color: var(--sky-mid);
  box-shadow: 0 0 0 3px rgba(56,182,232,0.15);
  outline: none;
  background: var(--white);
}

/* ─── Workshops ─────────────────────────────── */
.workshops-section {
  background: var(--white);
}

.workshop-card {
  background: var(--sky-bg);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(135,206,235,0.2);
  transition: var(--transition);
  height: 100%;
}

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

.workshop-card-header {
  background: linear-gradient(135deg, var(--sky-deep), var(--sky-mid));
  padding: 1.5rem;
  position: relative;
}

.workshop-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255,255,255,0.2);
  color: var(--white);
  border-radius: 50px;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.workshop-card-header h5 {
  color: var(--white);
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0;
}

.workshop-card-body {
  padding: 1.5rem;
}

.workshop-meta {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--text-soft);
  margin-bottom: 0.5rem;
}

/* ─── Wellness Feed ─────────────────────────── */
.wellness-section {
  background: var(--sky-bg);
}

.wellness-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(135,206,235,0.15);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  height: 100%;
}

.wellness-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.wellness-card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: linear-gradient(135deg, var(--sky-pale), var(--sky-light));
  display: flex;
  align-items: center;
  justify-content: center;
}

.wellness-card-img-placeholder {
  width: 100%;
  height: 180px;
  background: linear-gradient(135deg, var(--sky-pale), var(--sky-light));
  display: flex;
  align-items: center;
  justify-content: center;
}

.wellness-card-img-placeholder i {
  font-size: 3rem;
  color: var(--sky-mid);
}

.wellness-card-body { padding: 1.5rem; }

.wellness-card-body h5 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.wellness-card-body p {
  font-size: 0.87rem;
  color: var(--text-soft);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.wellness-date {
  font-size: 0.75rem;
  color: var(--sky-mid);
  font-weight: 700;
  margin-top: 0.75rem;
  display: block;
}

/* ─── Education Videos ──────────────────────── */
.education-section {
  background: var(--white);
}

.video-card {
  background: var(--sky-bg);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(135,206,235,0.2);
  transition: var(--transition);
  height: 100%;
}

.video-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.video-embed-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  background: var(--sky-pale);
}

.video-embed-wrap iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: 0;
}

.video-card-body { padding: 1.25rem; }

.video-card-body h5 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.video-card-body p {
  font-size: 0.85rem;
  color: var(--text-soft);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ─── Contact ───────────────────────────────── */
.contact-section {
  background: var(--sky-bg);
}

.contact-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(135,206,235,0.2);
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-info-icon {
  width: 44px;
  height: 44px;
  background: var(--sky-pale);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info-icon i {
  color: var(--sky-deep);
  font-size: 1.1rem;
}

.contact-info-item h6 {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-soft);
  margin-bottom: 0.1rem;
}

.contact-info-item p {
  font-size: 0.92rem;
  color: var(--text-dark);
  margin: 0;
}

/* ─── Flash Messages ────────────────────────── */
.flash-container {
  position: fixed;
  top: 80px;
  right: 1.5rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 360px;
}

.flash-msg {
  background: var(--white);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow-md);
  border-left: 4px solid var(--sky-mid);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  animation: slideInRight 0.4s ease both;
  font-size: 0.9rem;
  font-weight: 600;
}

.flash-msg.success { border-color: #22c55e; }
.flash-msg.danger  { border-color: #ef4444; }
.flash-msg.warning { border-color: #f59e0b; }
.flash-msg.info    { border-color: var(--sky-mid); }

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

/* ─── Footer ────────────────────────────────── */
.footer {
  background: linear-gradient(135deg, #0a3a52 0%, #0d5a80 100%);
  color: rgba(255,255,255,0.75);
  padding: 4rem 0 2rem;
}

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

.footer h6 {
  color: var(--sky-light);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-link {
  display: block;
  color: rgba(255,255,255,0.65);
  font-size: 0.88rem;
  padding: 0.2rem 0;
  transition: var(--transition);
}

.footer-link:hover { color: var(--sky-light); padding-left: 4px; }

.footer-divider {
  border-color: rgba(255,255,255,0.1);
  margin: 2rem 0 1.5rem;
}

.social-link {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255,255,255,0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  transition: var(--transition);
  margin-right: 0.5rem;
}

.social-link:hover {
  background: var(--sky-mid);
  color: var(--white);
  transform: translateY(-2px);
}

/* ─── Empty State ───────────────────────────── */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-soft);
}

.empty-state i {
  font-size: 3rem;
  color: var(--sky-light);
  margin-bottom: 1rem;
  display: block;
}

/* ─── Responsive ────────────────────────────── */
@media (max-width: 768px) {
  section { padding: 60px 0; }
  .hero { min-height: 90vh; }
  .hero-buttons { flex-direction: column; }
  .hero-image-wrap { display: none; }
}