/* =========================================================
   Doctor House Call Malaysia - Main Stylesheet
   Bootstrap 5.3 compatible
   ========================================================= */

/* ---------- Root Variables ---------- */
:root {
  --navy: #0b2f4f;
  --blue: #0f6fb7;
  --teal: #15a398;
  --green: #25d366;
  --light: #f5fbff;
  --text: #253445;
  --muted: #6b7a8c;
  --border: #e5eef5;
  --radius: 22px;
  --shadow: 0 14px 36px rgba(11, 47, 79, 0.12);
}

/* ---------- Base ---------- */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: #ffffff;
  overflow-x: hidden;
}

a {
  text-decoration: none;
}

img {
  max-width: 100%;
}

/* ---------- Top Bar ---------- */
.top-bar {
  background: var(--navy);
  color: #ffffff;
  font-size: 14px;
  padding: 8px 0;
}

.top-bar a {
  color: #ffffff;
  font-weight: 700;
}

/* ---------- Navbar ---------- */
.navbar {
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(11, 47, 79, 0.08);
}

.navbar-brand {
  color: var(--navy);
  font-weight: 900;
}

.navbar-brand span {
  color: var(--teal);
}

.nav-link {
  color: var(--text) !important;
  font-weight: 700;
}

.nav-link.active,
.nav-link:hover {
  color: var(--blue) !important;
}

/* ---------- Buttons ---------- */
.btn-dhc-primary,
.btn-dhc-outline,
.btn-dhc-whatsapp {
  border-radius: 999px;
  padding: 12px 22px;
  font-weight: 800;
}

.btn-dhc-primary {
  background: var(--blue);
  color: #ffffff;
}

.btn-dhc-primary:hover {
  background: #0b5f9e;
  color: #ffffff;
}

.btn-dhc-whatsapp {
  background: var(--green);
  color: #ffffff;
}

.btn-dhc-whatsapp:hover {
  background: #1ebe5d;
  color: #ffffff;
}

.btn-dhc-outline {
  background: #ffffff;
  border: 2px solid var(--blue);
  color: var(--blue);
}

.btn-dhc-outline:hover {
  background: var(--blue);
  color: #ffffff;
}

/* ---------- Hero / Page Header ---------- */
.hero-section,
.page-hero {
  background:
    radial-gradient(circle at top right, rgba(21, 163, 152, 0.16), transparent 34%),
    linear-gradient(135deg, #f5fbff 0%, #ffffff 55%, #eef9f8 100%);
}

.hero-section {
  padding: 90px 0 70px;
}

.page-hero {
  padding: 82px 0;
  text-align: center;
}

.page-hero h1,
.hero-title {
  color: var(--navy);
  font-weight: 900;
  letter-spacing: -1.4px;
}

.hero-title {
  font-size: clamp(38px, 5vw, 62px);
  line-height: 1.05;
}

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

.page-hero h1 {
  font-size: clamp(38px, 5vw, 58px);
}

.hero-text,
.page-hero p,
.muted-text,
.section-subtitle {
  color: var(--muted);
  line-height: 1.7;
}

.hero-text {
  max-width: 630px;
  font-size: 18px;
}

.hero-badge {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 8px 14px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: 0 8px 22px rgba(11, 47, 79, 0.08);
  color: var(--blue);
  font-weight: 800;
}

/* ---------- Hero Image Card ---------- */
.hero-card {
  position: relative;
  min-height: 430px;
  padding: 28px;
  background: linear-gradient(135deg, #eef9f8, #ffffff);
  border: 1px solid var(--border);
  border-radius: 30px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* Use this class when hero-card contains images/big-image.webp */
.hero-card.hero-image-card {
  min-height: auto;
  padding: 12px;
  background: #ffffff;
  display: block;
  overflow: hidden;
  text-align: left;
}

.hero-main-image {
  width: 100%;
  height: 430px;
  max-height: 430px;
  object-fit: cover;
  object-position: center;
  border-radius: 22px;
  display: block;
}

.placeholder-icon {
  font-size: 72px;
}

.hero-floating-card {
  position: absolute;
  left: -18px;
  bottom: 28px;
  max-width: 250px;
  padding: 16px 18px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow);
  text-align: left;
  z-index: 2;
}

.hero-floating-card strong {
  display: block;
  color: var(--navy);
  margin-bottom: 4px;
}

.hero-floating-card small {
  display: block;
  color: var(--muted);
  line-height: 1.5;
}

/* ---------- Trust Strip ---------- */
.trust-strip {
  position: relative;
  z-index: 3;
  margin-top: -34px;
}

.trust-box,
.service-card,
.step-card,
.pricing-card,
.contact-card,
.text-panel,
.alert-box {
  height: 100%;
  padding: 26px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 10px 28px rgba(11, 47, 79, 0.07);
}

.trust-box h6,
.service-card h5,
.step-card h5,
.pricing-card h5 {
  color: var(--navy);
  font-weight: 900;
}

.trust-box p,
.service-card p,
.step-card p,
.pricing-card p {
  color: var(--muted);
  line-height: 1.65;
}

/* ---------- Sections ---------- */
.section-padding {
  padding: 86px 0;
}

.section-light {
  background: var(--light);
}

.section-title {
  color: var(--navy);
  font-weight: 900;
  letter-spacing: -0.8px;
}

.section-subtitle {
  max-width: 760px;
  margin: 0 auto 42px;
}

/* ---------- Cards / Icons ---------- */
.icon-box {
  width: 54px;
  height: 54px;
  margin-bottom: 18px;
  background: rgba(21, 163, 152, 0.12);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
}

.service-card,
.step-card,
.trust-box {
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.service-card:hover,
.step-card:hover,
.trust-box:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

/* ---------- Check List ---------- */
.check-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
}

.check-list li {
  display: flex;
  gap: 10px;
  margin-bottom: 13px;
  line-height: 1.55;
}

.check-list li::before {
  content: "✓";
  min-width: 22px;
  height: 22px;
  margin-top: 1px;
  background: var(--teal);
  border-radius: 50%;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 900;
}

/* ---------- Areas ---------- */
.area-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.area-tag {
  padding: 10px 16px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(11, 47, 79, 0.06);
  color: var(--navy);
  font-weight: 800;
}

/* ---------- Steps ---------- */
.step-number {
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  background: var(--blue);
  border-radius: 50%;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
}

/* ---------- Pricing ---------- */
.pricing-highlight {
  color: var(--blue);
  font-size: 34px;
  font-weight: 900;
}

/* ---------- FAQ / Accordion ---------- */
.accordion-item {
  margin-bottom: 14px;
  border: 1px solid var(--border);
  border-radius: 16px !important;
  overflow: hidden;
}

.accordion-button {
  color: var(--navy);
  font-weight: 900;
}

.accordion-button:not(.collapsed) {
  color: var(--blue);
  background: #f4fbff;
  box-shadow: none;
}

.accordion-body {
  color: var(--muted);
  line-height: 1.7;
}

/* ---------- Alert Box ---------- */
.alert-box {
  border-left: 6px solid #f59e0b;
}

/* ---------- CTA ---------- */
.cta-section {
  padding: 72px 0;
  background:
    radial-gradient(circle at top right, rgba(37, 211, 102, 0.18), transparent 32%),
    linear-gradient(135deg, var(--navy), #0f5f8d);
  color: #ffffff;
}

.cta-section h2 {
  font-weight: 900;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.82);
}

/* ---------- Footer ---------- */
.footer {
  padding: 52px 0 24px;
  background: #071f35;
  color: rgba(255, 255, 255, 0.76);
}

.footer h5,
.footer h6 {
  color: #ffffff;
  font-weight: 900;
}

.footer a {
  display: block;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.76);
}

.footer a:hover {
  color: #ffffff;
}

.footer-bottom {
  margin-top: 32px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 14px;
}

/* ---------- Floating Buttons ---------- */
.floating-actions {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.floating-actions a,
.back-to-top {
  width: 54px;
  height: 54px;
  border: 0;
  border-radius: 50%;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.floating-actions a {
  padding: 0;
  overflow: hidden;
}

.floating-actions a img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* If icon image has transparent background, these colors still look good */
.float-whatsapp {
  background: var(--green);
}

.float-call {
  background: var(--blue);
}

.back-to-top {
  background: var(--navy);
  display: none;
  cursor: pointer;
  font-size: 22px;
  font-weight: 900;
}

.back-to-top.show {
  display: flex;
}

.floating-actions a:hover,
.back-to-top:hover {
  transform: translateY(-2px);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.26);
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
  .hero-card {
    margin-top: 34px;
  }

  .hero-main-image {
    height: 380px;
    max-height: 380px;
  }

  .hero-floating-card {
    position: static;
    max-width: 100%;
    margin-top: 16px;
  }

  .trust-strip {
    margin-top: 0;
    padding-top: 24px;
  }
}

@media (max-width: 575px) {
  .top-bar {
    text-align: center;
  }

  .hero-section {
    padding: 62px 0 56px;
  }

  .hero-title {
    font-size: 38px;
  }

  .hero-text {
    font-size: 16px;
  }

  .section-padding {
    padding: 62px 0;
  }

  .btn-dhc-primary,
  .btn-dhc-whatsapp,
  .btn-dhc-outline {
    width: 100%;
    margin-bottom: 10px;
  }

  .hero-card.hero-image-card {
    padding: 8px;
    border-radius: 24px;
  }

  .hero-main-image {
    height: 280px;
    max-height: 280px;
    border-radius: 18px;
  }

  .floating-actions {
    right: 14px;
    bottom: 14px;
  }
}
