/* ============================================================
   DR. ABDULLAH AKRAM — CHILD SPECIALIST
   Custom overrides & enhancements
   Color palette: Deep teal #0d4f6c + Soft sky #e8f4f8 + Warm gold #f0a500
   ============================================================ */

:root {
  --accent-color: #0d6e8a;
  --heading-color: #0a3d52;
  --default-color: #3a4856;
  --background-color: #ffffff;
  --surface-color: #ffffff;
  --teal-deep: #0a3d52;
  --teal-mid: #0d6e8a;
  --teal-light: #e6f4f8;
  --gold: #f0a500;
  --gold-light: #fff8e7;
  --text-muted-custom: #6b7d8a;
}

/* ---- Topbar ---- */
.header .topbar {
  background: var(--teal-deep) !important;
}
.header .topbar a,
.header .topbar span {
  color: #cce8f0 !important;
}

/* ---- Branding / Nav ---- */
.header .branding {
  background: #fff;
  box-shadow: 0 2px 12px rgba(10,61,82,0.08);
}
.header .sitename {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--teal-deep) !important;
  letter-spacing: -0.5px;
}
.header .sitename span {
  color: var(--gold);
}

/* credential badge in nav */
.nav-credential {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--teal-mid);
  background: var(--teal-light);
  border-radius: 4px;
  padding: 2px 7px;
  margin-left: 8px;
  vertical-align: middle;
  letter-spacing: 0.4px;
}

/* ---- Hero ---- */
.hero-section-custom {
  background: linear-gradient(135deg, var(--teal-deep) 0%, #0d6e8a 55%, #1a9bb8 100%);
  min-height: 88vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 120px 0 80px;
}
.hero-section-custom::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 420px; height: 420px;
  background: rgba(255,255,255,0.04);
  border-radius: 50%;
}
.hero-section-custom::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -80px;
  width: 500px; height: 500px;
  background: rgba(240,165,0,0.07);
  border-radius: 50%;
  z-index: 0;
}
.hero-section-custom .container {
  position: relative;
  z-index: 1;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(240,165,0,0.15);
  border: 1px solid rgba(240,165,0,0.4);
  color: #f0c84a;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 30px;
  margin-bottom: 22px;
}
.hero-eyebrow i { color: var(--gold); }

.hero-name {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 8px;
  letter-spacing: -1px;
}
.hero-name .highlight-name {
  color: #f0c84a;
}
.hero-title-line {
  font-size: 1.05rem;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.5px;
  margin-bottom: 20px;
}
.hero-degree-pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.hero-degree-pills .pill {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 20px;
  letter-spacing: 0.3px;
}
.hero-desc {
  color: rgba(255,255,255,0.78);
  font-size: 1.0rem;
  line-height: 1.7;
  max-width: 520px;
  margin-bottom: 32px;
}
.hero-stats-row {
  display: flex;
  gap: 28px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.hero-stat {
  text-align: center;
}
.hero-stat .num {
  font-size: 1.9rem;
  font-weight: 900;
  color: #f0c84a;
  line-height: 1;
}
.hero-stat .lbl {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.7);
  font-weight: 500;
  margin-top: 3px;
  letter-spacing: 0.3px;
}
.hero-cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
  position: relative;
  z-index: 2;
}
.btn-consult-now {
  background: var(--gold);
  color: var(--teal-deep);
  font-weight: 800;
  padding: 13px 30px;
  border-radius: 8px;
  border: none;
  font-size: 0.95rem;
  letter-spacing: 0.2px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s;
  text-decoration: none;
}
.btn-consult-now:hover {
  background: #e09800;
  color: var(--teal-deep);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(240,165,0,0.4);
}
.btn-wa-hero {
  background: #25D366;
  color: #fff;
  font-weight: 700;
  padding: 13px 24px;
  border-radius: 8px;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: all 0.25s;
}
.btn-wa-hero:hover {
  background: #1db954;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37,211,102,0.4);
}
.hero-image-wrap {
  position: relative;
  text-align: center;
}
.hero-doctor-img {
  width: 100%;
  max-width: 380px;
  border-radius: 24px;
  object-fit: cover;
  border: 5px solid rgba(255,255,255,0.18);
  box-shadow: 0 30px 60px rgba(0,0,0,0.3);
}
.hero-img-badge {
  position: absolute;
  bottom: 30px;
  left: -10px;
  background: #fff;
  border-radius: 12px;
  padding: 12px 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero-img-badge .badge-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--teal-light);
  display: flex; align-items: center; justify-content: center;
  color: var(--teal-mid);
  font-size: 1.2rem;
}
.hero-img-badge .badge-text strong { display: block; font-size: 0.85rem; color: var(--teal-deep); }
.hero-img-badge .badge-text span { font-size: 0.72rem; color: var(--text-muted-custom); }

/* ---- Section titles ---- */
.section-title-custom {
  margin-bottom: 48px;
}
.section-title-custom .eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--teal-mid);
  display: block;
  margin-bottom: 10px;
}
.section-title-custom h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--teal-deep);
  margin-bottom: 14px;
  letter-spacing: -0.5px;
}
.section-title-custom p {
  color: var(--text-muted-custom);
  font-size: 1rem;
  max-width: 560px;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* ---- About section ---- */
.about-section {
  padding: 90px 0;
  background: #fff;
}
.about-img-wrap {
  position: relative;
}
.about-img-main {
  border-radius: 20px;
  width: 100%;
  box-shadow: 0 20px 50px rgba(10,61,82,0.12);
  object-fit: cover;
  max-height: 480px;
}
.about-exp-badge {
  position: absolute;
  bottom: 24px; right: -20px;
  background: var(--gold);
  color: var(--teal-deep);
  border-radius: 16px;
  padding: 18px 22px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(240,165,0,0.35);
}
.about-exp-badge .yr-num { font-size: 2.2rem; font-weight: 900; line-height: 1; }
.about-exp-badge .yr-lbl { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.5px; }

.about-content .degree-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--teal-light);
  color: var(--teal-mid);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 20px;
  margin-right: 8px;
  margin-bottom: 8px;
}
.about-content .degree-chip i { color: var(--gold); }

.about-list { list-style: none; padding: 0; margin: 24px 0; }
.about-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 8px 0;
  color: var(--default-color);
  font-size: 0.95rem;
}
.about-list li i {
  color: var(--teal-mid);
  font-size: 1.1rem;
  margin-top: 2px;
  flex-shrink: 0;
}

/* ---- Services / Specializations ---- */
.services-section {
  background: var(--teal-light);
  padding: 90px 0;
}
.service-card-custom {
  background: #fff;
  border-radius: 16px;
  padding: 32px 28px;
  box-shadow: 0 4px 20px rgba(10,61,82,0.06);
  border: 1px solid rgba(13,110,138,0.08);
  transition: all 0.3s ease;
  height: 100%;
}
.service-card-custom:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(10,61,82,0.13);
  border-color: rgba(13,110,138,0.2);
}
.service-icon-box {
  width: 60px; height: 60px;
  border-radius: 14px;
  background: var(--teal-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  color: var(--teal-mid);
  margin-bottom: 20px;
  transition: all 0.3s;
}
.service-card-custom:hover .service-icon-box {
  background: var(--teal-mid);
  color: #fff;
}
.service-card-custom h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--teal-deep);
  margin-bottom: 10px;
}
.service-card-custom p {
  color: var(--text-muted-custom);
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
}

/* ---- Online Consultation Form ---- */
.consultation-section {
  padding: 90px 0;
  background: #fff;
}
.consult-form-card {
  background: #fff;
  border-radius: 20px;
  padding: 48px 40px;
  box-shadow: 0 8px 40px rgba(10,61,82,0.1);
  border: 1px solid rgba(13,110,138,0.1);
}
.consult-form-card h3 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--teal-deep);
  margin-bottom: 6px;
}
.consult-form-card .sub-note {
  color: var(--text-muted-custom);
  font-size: 0.9rem;
  margin-bottom: 32px;
}
.consult-form-card .form-label {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--teal-deep);
  margin-bottom: 6px;
}
.consult-form-card .form-control,
.consult-form-card .form-select {
  border: 1.5px solid #d5e8ef;
  border-radius: 10px;
  padding: 11px 15px;
  font-size: 0.93rem;
  color: var(--default-color);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.consult-form-card .form-control:focus,
.consult-form-card .form-select:focus {
  border-color: var(--teal-mid);
  box-shadow: 0 0 0 3px rgba(13,110,138,0.12);
  outline: none;
}
.consult-form-card textarea.form-control {
  min-height: 110px;
  resize: vertical;
}
.btn-send-whatsapp {
  background: #25D366;
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  padding: 14px 32px;
  border-radius: 10px;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s;
  margin-top: 10px;
}
.btn-send-whatsapp:hover {
  background: #1db954;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37,211,102,0.4);
}
.btn-send-whatsapp i { font-size: 1.3rem; }

.wa-note {
  text-align: center;
  color: var(--text-muted-custom);
  font-size: 0.82rem;
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.wa-note i { color: #25D366; }

/* side info panel */
.consult-info-panel {
  padding-left: 12px;
}
.info-card-item {
  background: var(--teal-light);
  border-radius: 14px;
  padding: 22px 20px;
  margin-bottom: 18px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.info-card-item .ico {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--teal-mid);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.info-card-item h6 {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--teal-deep);
  margin-bottom: 4px;
}
.info-card-item p {
  font-size: 0.83rem;
  color: var(--text-muted-custom);
  margin: 0;
  line-height: 1.5;
}

/* ---- Testimonials ---- */
.testimonials-section {
  background: var(--teal-light);
  padding: 90px 0;
}
.testimonial-card {
  background: #fff;
  border-radius: 16px;
  padding: 30px 28px;
  box-shadow: 0 4px 20px rgba(10,61,82,0.06);
  height: 100%;
}
.testimonial-card .stars { color: var(--gold); font-size: 0.9rem; margin-bottom: 14px; }
.testimonial-card .quote-text {
  color: var(--default-color);
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 20px;
  font-style: italic;
}
.testimonial-card .patient-info { display: flex; align-items: center; gap: 12px; }
.testimonial-card .patient-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--teal-mid);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 1rem;
}
.testimonial-card .patient-name { font-weight: 700; color: var(--teal-deep); font-size: 0.9rem; }
.testimonial-card .patient-detail { color: var(--text-muted-custom); font-size: 0.8rem; }

/* ---- Footer ---- */
.footer-custom {
  background: var(--teal-deep);
  color: rgba(255,255,255,0.8);
  padding: 60px 0 0;
}
.footer-custom .footer-logo {
  font-size: 1.35rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 16px;
  display: block;
}
.footer-custom .footer-logo span { color: var(--gold); }
.footer-custom p { color: rgba(255,255,255,0.65); font-size: 0.9rem; line-height: 1.7; }
.footer-custom h5 { color: #fff; font-size: 0.95rem; font-weight: 700; margin-bottom: 18px; letter-spacing: 0.3px; }
.footer-custom ul { list-style: none; padding: 0; margin: 0; }
.footer-custom ul li { margin-bottom: 10px; }
.footer-custom ul li a {
  color: rgba(255,255,255,0.65);
  font-size: 0.88rem;
  text-decoration: none;
  transition: color 0.2s;
  display: flex; align-items: center; gap: 7px;
}
.footer-custom ul li a:hover { color: var(--gold); }
.footer-custom ul li a i { font-size: 0.75rem; color: var(--gold); }
.footer-bottom {
  margin-top: 48px;
  padding: 20px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  color: rgba(255,255,255,0.4);
  font-size: 0.82rem;
}
.footer-contact-item {
  display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px;
}
.footer-contact-item i { color: var(--gold); margin-top: 3px; flex-shrink: 0; }
.footer-contact-item span { color: rgba(255,255,255,0.7); font-size: 0.88rem; line-height: 1.5; }

/* wa float btn */
.wa-float-btn {
  position: fixed;
  bottom: 28px; right: 28px;
  width: 58px; height: 58px;
  background: #25D366;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 1.6rem;
  box-shadow: 0 6px 20px rgba(37,211,102,0.5);
  text-decoration: none;
  z-index: 9999;
  transition: all 0.3s;
  animation: pulse-wa 2s infinite;
}
.wa-float-btn:hover { background: #1db954; color: #fff; transform: scale(1.1); }
@keyframes pulse-wa {
  0%, 100% { box-shadow: 0 6px 20px rgba(37,211,102,0.5); }
  50% { box-shadow: 0 6px 30px rgba(37,211,102,0.8); }
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .hero-section-custom { padding: 100px 0 60px; min-height: auto; }
  .hero-doctor-img { max-width: 280px; margin-top: 40px; }
  .about-exp-badge { right: 10px; }
  .consult-form-card { padding: 30px 20px; }
  .consult-info-panel { padding-left: 0; margin-top: 30px; }
  .hero-stats-row { gap: 18px; }
}

/* ---- Smooth appearance for custom sections ---- */
.hero-section-custom [data-aos],
.about-section [data-aos],
.services-section [data-aos],
.consultation-section [data-aos],
.testimonials-section [data-aos] { transition-duration: 0.6s; }

/* ---- Nav active state ---- */
.navmenu a.active { color: var(--teal-mid) !important; }

/* ---- Scrolled header ---- */
.header.scrolled .branding {
  box-shadow: 0 4px 20px rgba(10,61,82,0.12);
}

/* ---- Form validation feedback ---- */
.field-error {
  color: #dc3545;
  font-size: 0.8rem;
  margin-top: 4px;
  display: none;
}
.field-error.show { display: block; }
.form-control.invalid,
.form-select.invalid {
  border-color: #dc3545 !important;
}
