/* =========================================================
   STYLE.CSS — RS Sehat Sentosa
   Struktur:
   1. Design Tokens (CSS Variables)
   2. Reset & Base
   3. Utilities (container, buttons, section-head)
   4. Loader
   5. Header / Navbar
   6. Hero
   7. Services
   8. Doctors (table + slider)
   9. About
   10. Contact
   11. Footer
   12. Scroll To Top
   ========================================================= */

/* ---------- 1. DESIGN TOKENS ---------- */
:root {
  --white: #ffffff;
  --bg-soft: #f3faf8;
  --navy: #0b3b4a;
  --text-body: #4d6470;

  --blue: #0e7c9c;
  --blue-dark: #085a73;
  --blue-light: #e4f4f8;

  --green: #22a67a;
  --green-dark: #17805d;
  --green-light: #dff5ec;

  --border: #e3eef0;
  --shadow-sm: 0 2px 10px rgba(11, 59, 74, 0.06);
  --shadow-md: 0 12px 30px rgba(11, 59, 74, 0.1);
  --shadow-lg: 0 20px 50px rgba(11, 59, 74, 0.14);

  --font-display: "Poppins", sans-serif;
  --font-body: "Inter", sans-serif;

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;

  --transition: 0.3s ease;
  --header-h: 78px;
}

/* ---------- 2. RESET & BASE ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  font-family: var(--font-body);
  color: var(--text-body);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input, textarea {
  font-family: inherit;
  font-size: 1rem;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- 3. UTILITIES ---------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--green-dark);
  background: var(--green-light);
  padding: 7px 16px;
  border-radius: 100px;
  margin-bottom: 16px;
}

.section-head {
  max-width: 620px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-head--sm {
  margin-bottom: 28px;
}

.section-head h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  margin-bottom: 12px;
  font-weight: 700;
}

.section-head h3 {
  font-size: 1.4rem;
  font-weight: 600;
}

.section-head p {
  font-size: 1rem;
  color: var(--text-body);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 26px;
  border-radius: 100px;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
  white-space: nowrap;
}

.btn--primary {
  background: linear-gradient(135deg, var(--blue), var(--green));
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.btn--primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.btn--outline {
  background: var(--white);
  color: var(--blue-dark);
  border: 1.5px solid var(--border);
}

.btn--outline:hover {
  border-color: var(--blue);
  color: var(--blue);
  transform: translateY(-3px);
}

.btn--sm {
  padding: 10px 20px;
  font-size: 0.88rem;
}

.btn--block {
  width: 100%;
}

/* Swiper nav buttons (shared) */
.swiper-nav-group {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 28px;
}

.swiper-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--white);
  border: 1.5px solid var(--border);
  color: var(--blue-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.swiper-btn:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
}

.swiper-pagination-bullet-active {
  background: var(--blue) !important;
}

/* ---------- 4. LOADER ---------- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader__pulse {
  width: 140px;
}

.loader__ekg polyline {
  fill: none;
  stroke: var(--blue);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
  animation: draw-ekg 1.3s ease-in-out infinite;
}

@keyframes draw-ekg {
  to { stroke-dashoffset: 0; }
}

.loader__text {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.02em;
}

/* ---------- 5. HEADER ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 999;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow var(--transition), border-color var(--transition);
}

.header.is-scrolled {
  box-shadow: var(--shadow-sm);
  border-color: var(--border);
}

.header__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--navy);
  font-size: 1.05rem;
}

.header__logo-icon {
  font-size: 1.5rem;
  color: var(--blue);
}

.header__menu {
  display: flex;
  align-items: center;
  gap: 34px;
}

.header__link {
  position: relative;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--navy);
  padding-block: 6px;
  transition: color var(--transition);
}

.header__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background: var(--green);
  transition: width var(--transition);
}

.header__link:hover,
.header__link.is-active {
  color: var(--blue);
}

.header__link.is-active::after,
.header__link:hover::after {
  width: 100%;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 30px;
}

.header__toggle span {
  height: 2.5px;
  width: 100%;
  background: var(--navy);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ---------- 6. HERO ---------- */
.hero {
  position: relative;
  padding: 70px 0 90px;
  overflow: hidden;
  background: var(--bg-soft);
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 85% 10%, rgba(34, 166, 122, 0.14), transparent 45%),
    radial-gradient(circle at 5% 90%, rgba(14, 124, 156, 0.14), transparent 45%);
  z-index: 0;
}

.hero__ekg-line {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 90px;
  z-index: 0;
  opacity: 0.5;
}

.hero__ekg-line polyline {
  fill: none;
  stroke: var(--green);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1400;
  stroke-dashoffset: 1400;
  animation: draw-line 3.5s ease forwards 0.4s;
}

@keyframes draw-line {
  to { stroke-dashoffset: 0; }
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 40px;
}

.hero__title {
  font-size: clamp(2.1rem, 4.2vw, 3.4rem);
  font-weight: 700;
  margin-bottom: 20px;
}

.hero__title span {
  color: var(--blue);
  background: linear-gradient(90deg, var(--blue), var(--green));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__desc {
  font-size: 1.05rem;
  max-width: 520px;
  margin-bottom: 30px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 42px;
}

.hero__mini-stats {
  display: flex;
  gap: 34px;
}

.hero__mini-stats div {
  display: flex;
  flex-direction: column;
}

.hero__mini-stats strong {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--navy);
}

.hero__mini-stats span {
  font-size: 0.85rem;
  color: var(--text-body);
}

.hero__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__illustration {
  width: 100%;
  max-width: 420px;
}

.hero__card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--white);
  padding: 14px 18px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  animation: float 4s ease-in-out infinite;
}

.hero__card i {
  font-size: 1.3rem;
  color: var(--blue);
  background: var(--blue-light);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__card strong {
  display: block;
  font-size: 0.88rem;
  color: var(--navy);
}

.hero__card span {
  font-size: 0.76rem;
  color: var(--text-body);
}

.hero__card--float-1 {
  top: 6%;
  left: -4%;
}

.hero__card--float-2 {
  bottom: 6%;
  right: -6%;
  animation-delay: 1.2s;
}

.hero__card--float-2 i {
  color: var(--green);
  background: var(--green-light);
}

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

/* ---------- 7. SERVICES ---------- */
.services {
  padding: 100px 0;
}

.services__swiper {
  padding-bottom: 10px;
}

.service-card {
  height: 100%;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 34px 26px;
  text-align: left;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

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

.service-card__icon {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-sm);
  background: var(--blue-light);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
  transition: background var(--transition), color var(--transition);
}

.service-card:hover .service-card__icon {
  background: var(--blue);
  color: var(--white);
}

.service-card h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.service-card p {
  font-size: 0.92rem;
  margin-bottom: 20px;
  min-height: 66px;
}

.service-card__link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--green-dark);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap var(--transition);
}

.service-card__link:hover {
  gap: 10px;
}

/* ---------- 8. DOCTORS ---------- */
.doctors {
  padding: 100px 0;
  background: var(--bg-soft);
}

.schedule-table__wrap {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow-x: auto;
  margin-bottom: 70px;
  border: 1px solid var(--border);
}

.schedule-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}

.schedule-table thead {
  background: linear-gradient(135deg, var(--blue), var(--green));
}

.schedule-table th {
  color: var(--white);
  text-align: left;
  font-weight: 600;
  font-size: 0.88rem;
  padding: 16px 22px;
  white-space: nowrap;
}

.schedule-table td {
  padding: 16px 22px;
  font-size: 0.92rem;
  border-top: 1px solid var(--border);
  color: var(--navy);
}

.schedule-table tbody tr {
  transition: background var(--transition);
}

.schedule-table tbody tr:hover {
  background: var(--bg-soft);
}

.schedule-table td:nth-child(2) {
  color: var(--text-body);
}

.doctor-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
}

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

.doctor-card__photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.doctor-card__body {
  padding: 22px;
}

.doctor-card__body h3 {
  font-size: 1.02rem;
  margin-bottom: 4px;
}

.doctor-card__specialist {
  color: var(--green-dark);
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 6px;
}

.doctor-card__exp {
  font-size: 0.82rem;
  color: var(--text-body);
  margin-bottom: 18px;
}

.doctor-card__btn {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 9px 20px;
  border-radius: 100px;
  border: 1.5px solid var(--blue);
  color: var(--blue);
  transition: all var(--transition);
}

.doctor-card__btn:hover {
  background: var(--blue);
  color: var(--white);
}

/* ---------- 9. ABOUT ---------- */
.about {
  padding: 100px 0;
}

.about__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.about__text h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 18px;
}

.about__text > p {
  margin-bottom: 30px;
  font-size: 1rem;
}

.about__vm {
  display: grid;
  gap: 20px;
  margin-bottom: 30px;
}

.about__vm-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.about__vm-item i {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  border-radius: 12px;
  background: var(--green-light);
  color: var(--green-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.about__vm-item h4 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.about__vm-item p {
  font-size: 0.92rem;
}

.about__list {
  display: grid;
  gap: 14px;
}

.about__list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--navy);
  font-weight: 500;
}

.about__list i {
  color: var(--green);
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.stat-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 30px 22px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

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

.stat-card i {
  font-size: 1.6rem;
  color: var(--blue);
  margin-bottom: 14px;
}

.stat-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.9rem;
  color: var(--navy);
}

.stat-card span {
  font-size: 0.85rem;
  color: var(--text-body);
}


/* ---------- 10. CONTACT ---------- */

.contact {
  padding: 100px 0;
  background: var(--bg-soft);
}

/* =========================
   CONTACT GRID
========================= */

.contact__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  margin-bottom: 40px;
}

/* =========================
   CONTACT INFORMATION
========================= */

.contact__info {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.contact__item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  transition:
    transform var(--transition),
    box-shadow var(--transition);
}

.contact__item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

.contact__item i {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--green-light);
  color: var(--green-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
}

.contact__item h4 {
  font-size: 0.95rem;
  margin-bottom: 3px;
  color: var(--navy);
}

.contact__item p {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text);
}

/* =========================
   CONTACT FORM
========================= */

.contact__form {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 36px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  height: fit-content;
}

.contact__form h3 {
  margin-bottom: 22px;
  font-size: 1.25rem;
  color: var(--navy);
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 7px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  background: var(--bg-soft);
  color: var(--navy);
  font-family: inherit;
  font-size: 0.9rem;
  transition:
    border-color var(--transition),
    background var(--transition),
    box-shadow var(--transition);
  resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #9aa5b1;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
}

/* =========================
   FORM NOTE
========================= */

.contact__form-note {
  margin-top: 14px;
  font-size: 0.86rem;
  color: var(--green-dark);
  min-height: 20px;
  font-weight: 500;
}

/* =========================
   GOOGLE MAPS
========================= */

.contact__grid--map {
  display: block;
  margin-bottom: 40px;
}

.contact__map {
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  background: var(--white);
}

.contact__map iframe {
  width: 100%;
  height: 380px;
  border: 0;
  display: block;
}

/* =========================
   VIDEO
========================= */

.contact__grid--video {
  display: block;
  margin-bottom: 0;
}

.contact__video {
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  background: #000;
}

.contact__video video {
  width: 100%;
  height: auto;
  min-height: 300px;
  max-height: 600px;
  display: block;
  object-fit: cover;
}

/* =========================
   RESPONSIVE TABLET
========================= */

@media (max-width: 900px) {
  .contact {
    padding: 80px 0;
  }

  .contact__grid {
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 30px;
  }

  .contact__form {
    padding: 30px;
  }

  .contact__map iframe {
    height: 350px;
  }
}

/* =========================
   RESPONSIVE MOBILE
========================= */

@media (max-width: 600px) {
  .contact {
    padding: 65px 0;
  }

  .contact__grid {
    gap: 22px;
    margin-bottom: 22px;
  }

  .contact__item {
    gap: 12px;
    padding: 15px;
  }

  .contact__item i {
    width: 38px;
    height: 38px;
    border-radius: 9px;
  }

  .contact__item h4 {
    font-size: 0.9rem;
  }

  .contact__item p {
    font-size: 0.82rem;
    line-height: 1.5;
  }

  .contact__form {
    padding: 24px 20px;
  }

  .contact__form h3 {
    font-size: 1.15rem;
    margin-bottom: 18px;
  }

  .form-group {
    margin-bottom: 15px;
  }

  .form-group input,
  .form-group textarea {
    padding: 12px 14px;
  }

  .contact__map iframe {
    height: 280px;
  }

  .contact__video video {
    min-height: 220px;
  }
}



/* ---------- 11. FOOTER ---------- */
.footer {
  background: var(--navy);
  color: #b9d3da;
  padding: 70px 0 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 1fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin-bottom: 14px;
}

.footer__logo i {
  color: var(--green);
  font-size: 1.4rem;
}

.footer__brand p {
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 20px;
  max-width: 320px;
}

.footer__social {
  display: flex;
  gap: 12px;
}

.footer__social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.footer__social a:hover {
  background: var(--green);
  color: var(--white);
  transform: translateY(-3px);
}

.footer__col h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 20px;
}

.footer__col ul {
  display: grid;
  gap: 12px;
}

.footer__col ul a {
  font-size: 0.9rem;
  transition: color var(--transition), padding-left var(--transition);
}

.footer__col ul a:hover {
  color: var(--white);
  padding-left: 4px;
}

.footer__contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  line-height: 1.6;
}

.footer__contact i {
  margin-top: 4px;
  color: var(--green);
  width: 16px;
}

.footer__bottom {
  text-align: center;
  padding: 22px 0;
  font-size: 0.85rem;
}

/* ---------- 12. SCROLL TO TOP ---------- */
.scroll-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--green));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition);
  z-index: 500;
}

.scroll-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top:hover {
  transform: translateY(-4px);
}
