*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --teal: #1a8c7a;
  --teal-lt: #2bb8a0;
  --teal-bg: #e8f7f5;
  --coral: #f4845f;
  --warm: #fff8f5;
  --dark: #1c2b2a;
  --mid: #4a6b68;
  --light: #ffffff;
  --shadow: 0 4px 24px rgba(26, 140, 122, 0.12);
}

html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden; /* Mengunci halaman agar tidak bisa digeser ke samping */
}

body {
  font-family: "Nunito", sans-serif;
  color: var(--dark);
  background: var(--light);
  -webkit-font-smoothing: antialiased;
}

/* ── NAV BAR ── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  max-width: 100%;
  z-index: 900;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 48px;
  height: 76px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.nav-logo-img-wrapper {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  flex-shrink: 0;
}
.nav-logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.nav-logo-text {
  font-weight: 900;
  font-size: 1.1rem;
  color: var(--teal);
  line-height: 1.1;
}
.nav-logo-text span {
  font-weight: 500;
  font-size: 0.75rem;
  color: var(--mid);
  display: block;
}
.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  text-decoration: none;
  color: var(--mid);
  font-weight: 700;
  font-size: 0.92rem;
  transition: color 0.2s;
}
.nav-links a:hover {
  color: var(--teal);
}
.nav-cta {
  background: var(--teal);
  color: #fff;
  border: none;
  padding: 10px 22px;
  border-radius: 30px;
  font-family: inherit;
  font-weight: 800;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s;
}
.nav-cta:hover {
  background: var(--teal-lt);
}
.cta-icon-img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  border-radius: 50%;
}
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  width: 24px;
  height: 3px;
  background: var(--teal);
  border-radius: 2px;
  transition: 0.3s;
}

/* ── HERO SECTION ── */
#hero {
  min-height: 100vh;
  padding-top: 76px;
  background: linear-gradient(135deg, var(--teal-bg) 0%, #fff 60%);
  display: flex;
  align-items: center;
}
.hero-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 48px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--teal);
  color: #fff;
  border-radius: 30px;
  padding: 5px 16px;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 20px;
}
.hero-badge::before {
  content: "✦";
}
.hero-h1 {
  font-family: "Lora", serif;
  font-size: 3rem;
  line-height: 1.18;
  color: var(--dark);
  margin-bottom: 18px;
}
.hero-h1 em {
  font-style: italic;
  color: var(--teal);
}
.hero-p {
  color: var(--mid);
  font-size: 1.05rem;
  line-height: 1.75;
  margin-bottom: 32px;
}
.hero-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.hero-img-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  width: 100%;
}
.hero-image-box {
  width: 100%;
  max-width: 420px;
  height: 380px;
  border-radius: 28px;
  overflow: hidden;
  border: 6px solid #ffffff;
  box-shadow: 0 16px 32px rgba(26, 140, 122, 0.12);
  background: var(--teal-bg);
}
.hero-main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-floaty {
  position: absolute;
  top: -12px;
  right: -12px;
  z-index: 10;
  background: #ffffff;
  border-radius: 16px;
  padding: 12px 18px;
  box-shadow: var(--shadow);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--teal);
  line-height: 1.3;
}
.hero-floaty span {
  display: block;
  font-size: 0.75rem;
  color: var(--mid);
  font-weight: 600;
}

/* ── SEKSI STATISTIK KUNJUNGAN BARU ── */
#visitor-stats {
  padding: 40px 48px;
  background: #ffffff;
  width: 100%;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  width: 100%;
}
.stat-card {
  background: var(--light);
  border: 1px solid #eaf4f3;
  border-radius: 16px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 4px 12px rgba(26, 140, 122, 0.03);
  transition: transform 0.2s ease;
}
.stat-card:hover {
  transform: translateY(-2px);
}
.stat-icon-wrapper {
  width: 44px;
  height: 44px;
  background: var(--teal-bg);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.stat-icon {
  font-size: 1.25rem;
}
.stat-info h4 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--dark);
  line-height: 1.2;
}
.stat-info p {
  font-size: 0.85rem;
  color: var(--mid);
  font-weight: 600;
  margin-top: 2px;
}

/* ── LAYOUT STRUKTUR GLOBAL ── */
section {
  padding: 80px 48px;
  width: 100%;
  max-width: 100%;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}
.section-eyebrow {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 8px;
}
.section-title {
  font-family: "Lora", serif;
  font-size: 2.2rem;
  color: var(--dark);
  line-height: 1.3;
  margin-bottom: 12px;
}
.section-sub {
  color: var(--mid);
  font-size: 1rem;
  line-height: 1.65;
  max-width: 600px;
}
.divider {
  width: 48px;
  height: 4px;
  background: var(--coral);
  border-radius: 4px;
  margin: 16px 0 40px;
}

/* ── BERBAGAI MACAM BUTTONS ── */
.btn-primary {
  background: var(--teal);
  color: #fff;
  padding: 12px 26px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  transition:
    background 0.2s,
    transform 0.15s;
}
.btn-primary:hover {
  background: var(--teal-lt);
  transform: translateY(-1px);
}
.btn-outline {
  border: 2px solid var(--teal);
  color: var(--teal);
  padding: 10px 24px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  transition: all 0.2s;
}
.btn-outline:hover {
  background: var(--teal);
  color: #fff;
}

/* ── LAYANAN / SERVICES WRAPPER ── */
#services {
  background: var(--warm);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
  width: 100%;
}
.service-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 4px 16px rgba(26, 140, 122, 0.05);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
  border: 1.5px solid transparent;
  width: 100%;
}
.service-card:hover {
  border-color: var(--teal-lt);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.service-card-with-img {
  padding: 0 0 28px 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.service-card-img-box {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: var(--teal-bg);
}
.service-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.service-card-with-img:hover .service-card-img {
  transform: scale(1.04);
}
.service-card h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--dark);
  margin: 20px 24px 8px 24px;
}
.service-card p {
  font-size: 0.9rem;
  color: var(--mid);
  line-height: 1.6;
  margin: 0 24px 16px 24px;
  flex-grow: 1;
}
.service-tag {
  align-self: flex-start;
  margin-left: 24px;
  background: var(--teal-bg);
  color: var(--teal);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
}
.tag-featured {
  background: #ffebe5;
  color: var(--coral);
}

/* ── LAYANAN HOMECARE BANNER ── */
.homecare-banner {
  background: linear-gradient(120deg, #1a8c7a, #0f6659);
  border-radius: 24px;
  padding: 40px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin-top: 56px;
  width: 100%;
}
.homecare-text {
  flex: 1;
}
.homecare-text h2 {
  font-family: "Lora", serif;
  color: #fff;
  font-size: 1.8rem;
  line-height: 1.3;
}
.homecare-text p {
  color: rgba(255, 255, 255, 0.85);
  margin-top: 8px;
  font-size: 0.95rem;
  line-height: 1.65;
}
.homecare-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.homecare-badge {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 700;
}
.homecare-cta .btn-light {
  background: #fff;
  color: var(--teal);
  padding: 12px 26px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.95rem;
  white-space: nowrap;
  display: inline-block;
  transition: opacity 0.2s;
}
.homecare-cta .btn-light:hover {
  opacity: 0.95;
}

/* ── AREA & JADWAL COVERAGE ── */
#coverage {
  background: var(--teal-bg);
}
.coverage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  width: 100%;
}
.coverage-card {
  background: #fff;
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 4px 16px rgba(26, 140, 122, 0.04);
  width: 100%;
}
.coverage-card h3 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 6px;
}
.coverage-card p {
  font-size: 0.88rem;
  color: var(--mid);
  line-height: 1.6;
}

/* ── JADWAL TABLE OPERASIONAL ── */
.schedule-wrap {
  margin-top: 48px;
  width: 100%;
}
.schedule-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 16px;
}

/* FIX UTAMA JADWAL TABEL: Mengamankan overflow geser agar tabel tidak merusak bodi HP */
.table-responsive {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(26, 140, 122, 0.06);
  -webkit-overflow-scrolling: touch;
}
.schedule-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px; /* Dikunci agar teks di dalam tabel tidak berantakan saat direndering browser */
}
.schedule-table th {
  background: var(--teal);
  color: #fff;
  padding: 16px 20px;
  text-align: left;
  font-size: 0.9rem;
  font-weight: 800;
}
.schedule-table td {
  padding: 14px 20px;
  font-size: 0.9rem;
  color: var(--mid);
  border-bottom: 1px solid #eaf4f3;
  background: #fff;
}
.schedule-table tr:last-child td {
  border-bottom: none;
}
.schedule-note {
  margin-top: 14px;
  font-size: 0.85rem;
  color: var(--mid);
  font-style: italic;
}
.tag-green,
.tag-coral {
  padding: 4px 12px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.8rem;
  display: inline-block;
}
.tag-green {
  background: #d4f5ee;
  color: var(--teal);
}
.tag-coral {
  background: #ffebe5;
  color: var(--coral);
}

/* ── REVIEW PASIEN ── */
#reviews {
  background: var(--warm);
}
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  width: 100%;
}
.review-card {
  background: #fff;
  border-radius: 20px;
  padding: 32px 28px;
  box-shadow: 0 4px 16px rgba(26, 140, 122, 0.04);
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
}
.review-quote {
  font-size: 3rem;
  color: var(--teal-bg);
  font-family: Georgia, serif;
  position: absolute;
  top: 10px;
  left: 20px;
  line-height: 1;
}
.review-subtitle-context {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--teal);
  margin-top: 20px;
  line-height: 1.4;
}
.review-text {
  font-size: 0.9rem;
  color: var(--mid);
  line-height: 1.7;
  margin-top: 8px;
  flex-grow: 1;
}
.review-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  border-top: 1px solid #eaf4f3;
  padding-top: 16px;
}
.review-avatar-wrapper {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--teal-bg);
  flex-shrink: 0;
}
.review-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.review-name {
  font-weight: 800;
  font-size: 0.88rem;
  color: var(--dark);
}
.review-stars {
  color: #f4b942;
  font-size: 0.8rem;
  margin-top: 2px;
}

/* ── PROFIL KLINIK / ABOUT ── */
#about {
  background: #fff;
}
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
  width: 100%;
}
.about-visual-box {
  width: 100%;
  height: 400px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}
.about-clinic-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.about-content p {
  color: var(--mid);
  font-size: 0.98rem;
  line-height: 1.75;
  margin-bottom: 20px;
}
.about-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 24px;
  width: 100%;
}
.info-item {
  background: var(--teal-bg);
  border-radius: 14px;
  padding: 14px 16px;
}
.info-item .label {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--teal);
  margin-bottom: 3px;
}
.info-item .value {
  font-size: 0.88rem;
  color: var(--dark);
  font-weight: 700;
}
.address-box-link {
  text-decoration: none;
  display: block;
  color: inherit;
  margin-top: 24px;
  width: 100%;
}
.address-box {
  background: var(--teal-bg);
  border-radius: 16px;
  padding: 20px 24px;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
  width: 100%;
}
.address-box p {
  font-size: 0.9rem;
  color: var(--mid);
  line-height: 1.6;
  margin-bottom: 0;
}
.address-box strong {
  color: var(--dark);
}
.address-box-link:hover .address-box {
  background: #d9f2ee;
  transform: translateY(-2px);
}

/* Batasi lebar pembungkus foto agar tidak melebar semelebar kolom */
.foto-bidan-wrapper {
  background: var(--teal-bg);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(26, 140, 122, 0.06);
  text-align: center;
  max-width: 280px; /* <── UKURAN DIKUNCI DI SINI: Silakan ganti ke 250px atau 300px sesuai selera */
  margin: 0 auto;   /* Memastikan posisi box foto tetap di tengah kolom kiri */
}

.foto-bidan {
  width: 100%;
  height: 340px;    /* <── TINGGI FOTO: Dibatasi agar tidak terlalu memanjang ke bawah */
  object-fit: cover; /* Memotong foto secara proporsional agar tidak gepeng/melar */
  display: block;
}

.bidan-profile-grid {
  display: grid;
  grid-template-columns: 1fr 2fr; /* Menjaga pembagian kolom kiri dan kanan */
  gap: 40px;                      /* Jarak antar kolom */
  align-items: center;            /* <── INI KUNCINYA: Membuat teks di kanan turun pas di tengah vertikal */
}
/* Styling baru untuk memposisikan sertifikat di tengah */
.sertifikat-section-center {
  margin-top: 50px;
  display: flex;
  justify-content: center;
  width: 100%;
}

.sertifikat-section-center .sertifikat-wrapper {
  max-width: 650px; /* Membatasi lebar sertifikat agar pas di tengah dan proporsional */
  width: 100%;
  text-align: center;
  background: #f8fbfb;
  border-radius: 16px;
  padding: 24px;
  border: 1px solid #eaf4f3;
  box-shadow: 0 8px 24px rgba(26, 140, 122, 0.05);
}

.sertifikat-section-center .sertifikat-wrapper h4 {
  font-size: 1.1rem;
  color: var(--dark);
  margin-bottom: 16px;
  font-weight: 700;
}

.sertifikat-section-center .foto-sertifikat {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

/* Penyesuaian layar HP agar margin tidak terlalu renggang */
@media (max-width: 768px) {
  .sertifikat-section-center {
    margin-top: 32px;
  }
}

/* Bagian Informasi (Kanan) */
.nama-bidan {
  font-size: 2rem;
  color: var(--dark);
  font-weight: 800;
  margin-bottom: 4px;
}
.jabatan-bidan {
  font-size: 1rem;
  color: var(--teal);
  font-weight: 600;
  margin-bottom: 30px;
}
.info-block {
  margin-bottom: 25px;
}
.info-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.info-icon {
  font-size: 1.4rem;
}
.info-block h4 {
  font-size: 1.15rem;
  color: var(--dark);
  font-weight: 700;
  margin: 0;
}
.info-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-left: 2px solid var(--teal-bg);
  padding-left: 15px;
}
.info-list li {
  margin-bottom: 14px;
  position: relative;
}
.info-list li::before {
  content: '';
  position: absolute;
  left: -20px;
  top: 6px;
  width: 8px;
  height: 8px;
  background: var(--teal);
  border-radius: 50%;
}
.info-list li strong {
  display: block;
  font-size: 1rem;
  color: var(--dark);
  font-weight: 600;
}
.info-list li span {
  font-size: 0.88rem;
  color: var(--mid);
}

/* ── FOOTER & SOSMED MINI ── */
footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.6);
  padding: 48px 24px;
  text-align: center;
  font-size: 0.85rem;
  width: 100%;
  max-width: 100%;
}
footer strong {
  color: rgba(255, 255, 255, 0.9);
}
.footer-socials {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 24px;
}
.footer-social-link {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-social-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.footer-social-link:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
}

/* ── RESERVASI WA FLOATING BUTTON FIXES ── */
.wa-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.wa-fab:hover {
  transform: scale(1.08);
}
.wa-fab-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.wa-pulse {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 12px;
  height: 12px;
  background: var(--coral);
  border-radius: 50%;
  border: 2px solid #fff;
}
.wa-tooltip {
  position: fixed;
  bottom: 92px;
  right: 24px;
  z-index: 999;
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
  width: calc(100% - 48px);
  max-width: 290px;
  font-size: 0.88rem;
  line-height: 1.5;
  display: none;
}
.wa-tooltip.show {
  display: block;
  animation: fadeUp 0.25s ease-out;
}
.wa-tooltip-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  border-bottom: 1px solid #eaf4f3;
  padding-bottom: 8px;
}
.wa-popup-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
}
.wa-tooltip strong {
  color: var(--teal);
  font-size: 0.95rem;
}
.wa-popup-text {
  color: var(--mid);
  margin-bottom: 12px;
}
.wa-tooltip a {
  display: block;
  background: #25d366;
  color: #fff;
  text-align: center;
  padding: 10px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 800;
}
.wa-tooltip-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  color: var(--mid);
}

/* ── ANIMASI INTERACTION OBSERVER SCROLL ── */
.scroll-anim {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.7s cubic-bezier(0.25, 1, 0.5, 1),
    transform 0.7s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: opacity, transform;
}
.scroll-anim.appear {
  opacity: 1;
  transform: translateY(0);
}
.animate-delay-0 {
  transition-delay: 0ms;
}
.animate-delay-1 {
  transition-delay: 80ms;
}
.animate-delay-2 {
  transition-delay: 160ms;
}
.animate-delay-3 {
  transition-delay: 240ms;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── BREAKPOINTS MEDIA QUERIES MOBILE FRIENDLY ── */

@media (max-width: 1024px) {
  nav {
    padding: 14px 32px;
  }
  .hero-inner {
    gap: 30px;
  }
  .hero-h1 {
    font-size: 2.5rem;
  }
  .about-grid {
    gap: 40px;
  }
}

@media (max-width: 860px) {
  nav {
    padding: 14px 24px;
  }
  .hamburger {
    display: flex;
  }
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 76px;
    left: 0;
    width: 100%;
    background: #ffffff;
    padding: 24px;
    gap: 20px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
    border-top: 1px solid #f0f7f6;
  }
  .nav-links.open {
    display: flex;
    animation: fadeUp 0.2s ease-out;
  }
  .nav-cta {
    display: none;
  }

  /* Konstruksi Ulang Hero Grid Menjadi Satu Kolom Vertikal */
  .hero-inner {
    grid-template-columns: 1fr;
    padding: 40px 24px;
    text-align: center;
    gap: 24px;
  }
  .hero-btns {
    justify-content: center;
  }
  .hero-h1 {
    font-size: 2.2rem;
  }
  .hero-img-wrap {
    margin-top: 16px;
  }
  .hero-image-box {
    max-width: 100%;
    height: 300px;
  }
  .hero-floaty {
    right: 12px;
  }

  section {
    padding: 50px 20px;
  }
  #visitor-stats {
    padding: 30px 20px;
  }
  .section-title {
    font-size: 1.75rem;
  }

  /* Transformasi Banner Homecare Agar Mengunci di HP */
  .homecare-banner {
    padding: 28px 24px;
    flex-direction: column;
    text-align: center;
    gap: 20px;
    margin-top: 36px;
    width: 100%;
    max-width: 100%;
  }
  .homecare-badges {
    justify-content: center;
  }
  .homecare-cta {
    width: 100%;
  }
  .homecare-cta .btn-light {
    width: 100%;
    text-align: center;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .about-visual-box {
    height: 260px;
  }
  
  /* Responsive untuk Profil Bidan */
  .bidan-profile-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .nama-bidan {
    font-size: 1.6rem;
  }
}

@media (max-width: 480px) {
  .hero-h1 {
    font-size: 1.8rem;
  }
  .services-grid,
  .reviews-grid,
  .coverage-grid,
  .stats-grid {
    grid-template-columns: 1fr; /* Memaksa menyusun 1 kolom penuh tanpa bocor */
  }
  #profil-bidan {
    padding: 60px 20px;
  }
  .service-card h3 {
    margin: 16px 20px 6px 20px;
  }
  .service-card p {
    margin: 0 20px 14px 20px;
  }
  .service-tag {
    margin-left: 20px;
  }
  .about-info {
    grid-template-columns: 1fr;
  }
  .review-card {
    padding: 24px 16px;
  }
  .review-subtitle-context {
    margin-top: 16px;
  }
  .address-box {
    padding: 16px 20px;
  }
  footer {
    padding: 40px 16px;
  }
}