/* ==========================================================================
   Diva Healthcare Clinic - Custom Styles
   ========================================================================== */

:root {
  --color-dark: #18162b;
  --color-dark-soft: #211f3a;
  --color-gold: #e3b077;
  --color-gold-dark: #c9935a;
  --color-text: #7b798c;
  --color-light-bg: #f8f6f3;
  --color-white: #ffffff;
  --font-heading: "Lato", sans-serif;
  --font-body: "Heebo", sans-serif;
  --radius-pill: 50px;
  --transition: all 0.3s ease;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-dark);
  font-weight: 700;
}

a {
  text-decoration: none;
  transition: var(--transition);
}

p {
  line-height: 1.8;
}

.section-pad {
  padding: 90px 0;
}

@media (max-width: 768px) {
  .section-pad {
    padding: 55px 0;
  }
}

.bg-light-soft {
  background-color: var(--color-light-bg);
}

.bg-dark-navy {
  background-color: var(--color-dark) !important;
}

.text-gold {
  color: var(--color-gold) !important;
}

.subtitle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-gold-dark);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 12px;
}

.subtitle::before {
  content: "";
  width: 30px;
  height: 2px;
  background: var(--color-gold);
  display: inline-block;
}

/* ---------- Buttons ---------- */
.btn-gold {
  background-color: var(--color-dark);
  color: var(--color-white);
  border: 2px solid var(--color-dark);
  border-radius: var(--radius-pill);
  padding: 14px 32px;
  font-weight: 600;
  font-family: var(--font-heading);
  letter-spacing: 0.5px;
  display: inline-block;
  transition: var(--transition);
}

.btn-gold:hover {
  background-color: var(--color-gold);
  border-color: var(--color-gold);
  color: var(--color-dark);
}

/* On dark backgrounds the navy fill is invisible, so flip the primary CTA to gold */
.hero .btn-gold,
.hero-lp .btn-gold,
.cta-section .btn-gold {
  background-color: var(--color-gold);
  border-color: var(--color-gold);
  color: var(--color-dark);
}

.hero .btn-gold:hover,
.hero-lp .btn-gold:hover,
.cta-section .btn-gold:hover {
  background-color: var(--color-white);
  border-color: var(--color-white);
  color: var(--color-dark);
}

.btn-outline-light-pill {
  background: transparent;
  color: var(--color-white);
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius-pill);
  padding: 14px 32px;
  font-weight: 600;
  font-family: var(--font-heading);
  display: inline-block;
  transition: var(--transition);
}

.btn-outline-light-pill:hover {
  background: var(--color-gold);
  border-color: var(--color-gold);
  color: var(--color-dark);
}

/* ---------- Topbar ---------- */
.topbar {
  background-color: var(--color-dark);
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.85rem;
  padding: 8px 0;
}

.topbar a {
  color: rgba(255, 255, 255, 0.75);
}

.topbar a:hover {
  color: var(--color-gold);
}

.topbar .social-icons a {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  margin-left: 6px;
  color: #fff;
}

.topbar .social-icons a:hover {
  background: var(--color-gold);
  border-color: var(--color-gold);
  color: var(--color-dark);
}

/* ---------- Navbar ---------- */
.main-navbar {
  padding: 12px 0;
  background: var(--color-white);
  transition: var(--transition);
  z-index: 1030;
}

.main-navbar.scrolled {
  padding: 8px 0;
  box-shadow: 0 6px 24px rgba(24, 22, 43, 0.08);
}

.navbar-brand {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--color-dark) !important;
  display: inline-flex;
  align-items: center;
}

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

.brand-logo {
  height: 104px;
  width: auto;
  max-width: 100%;
  display: block;
  transition: height var(--transition);
}

/* Ease the logo down a notch once the sticky navbar compacts */
.main-navbar.scrolled .brand-logo {
  height: 82px;
}

.footer-logo-wrap {
  display: inline-block;
  background: #fff;
  padding: 12px 22px;
  border-radius: 12px;
  line-height: 0;
}

.footer-logo-wrap .brand-logo {
  height: 100px;
}

@media (max-width: 991px) {
  .brand-logo,
  .main-navbar.scrolled .brand-logo {
    height: 78px;
  }
  .footer-logo-wrap .brand-logo {
    height: 82px;
  }
}

@media (max-width: 575px) {
  .brand-logo,
  .main-navbar.scrolled .brand-logo {
    height: 58px;
  }
  .footer-logo-wrap {
    padding: 10px 16px;
  }
  .footer-logo-wrap .brand-logo {
    height: 66px;
  }
}

.main-navbar .nav-link {
  color: var(--color-dark);
  font-weight: 600;
  margin: 0 12px;
  position: relative;
}

.main-navbar .nav-link.active,
.main-navbar .nav-link:hover {
  color: var(--color-gold-dark);
}

.main-navbar .nav-link.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: var(--color-gold);
}

/* ---------- Hero ---------- */
.hero {
  background: var(--color-dark);
  position: relative;
  overflow: hidden;
  padding: 130px 0 150px;
}

.hero::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -120px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(227, 176, 119, 0.25), transparent 70%);
}

.hero::after {
  content: "";
  position: absolute;
  bottom: -150px;
  left: -100px;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(227, 176, 119, 0.12), transparent 70%);
}

.hero h1 {
  color: var(--color-white);
  font-size: 3rem;
  line-height: 1.25;
}

.hero p.lead {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.05rem;
  max-width: 620px;
}

.hero-shape {
  width: 100%;
  max-width: 460px;
  border-radius: 20px;
  border: 1px solid rgba(227, 176, 119, 0.3);
  position: relative;
  z-index: 2;
}

/* Hero photo */
.hero-image-wrap {
  position: relative;
  z-index: 2;
  max-width: 440px;
  margin-left: auto;
}

.hero-image-wrap img {
  width: 100%;
  height: auto;
  border-radius: 24px;
  display: block;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
}

.hero-image-wrap::before {
  content: "";
  position: absolute;
  inset: 18px -18px -18px 18px;
  border: 2px solid rgba(227, 176, 119, 0.55);
  border-radius: 24px;
  z-index: -1;
}

.hero-badge {
  position: absolute;
  left: -28px;
  bottom: 36px;
  background: var(--color-white);
  border-radius: 16px;
  padding: 16px 22px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-badge .hero-badge-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-gold), var(--color-gold-dark));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.hero-badge strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--color-dark);
  line-height: 1.1;
}

.hero-badge small {
  color: var(--color-text);
  font-size: 0.78rem;
}

.hero-badge strong,
.hero-badge small {
  white-space: nowrap;
}

@media (max-width: 991px) {
  .hero-image-wrap {
    margin: 0 auto;
    max-width: 380px;
  }
  .hero-badge {
    left: 50%;
    /* width:max-content stops the 50% offset from squeezing the box */
    width: max-content;
    transform: translateX(-50%);
    bottom: -26px;
  }
}

@media (max-width: 991px) {
  .hero {
    padding: 90px 0 110px;
    text-align: center;
  }
  .hero h1 {
    font-size: 2.2rem;
  }
  .hero p.lead {
    margin-left: auto;
    margin-right: auto;
  }
}

/* ---------- Page Header (inner pages) ---------- */
.page-header {
  background: var(--color-dark) url("../images/page-header-bg.jpg") center/cover no-repeat;
  padding: 90px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(24, 22, 43, 0.94) 0%,
    rgba(24, 22, 43, 0.86) 55%,
    rgba(24, 22, 43, 0.72) 100%
  );
}

.page-header .container {
  position: relative;
  z-index: 2;
}

.page-header h1 {
  color: #fff;
  margin-bottom: 8px;
}

.page-header .breadcrumb {
  justify-content: center;
  margin: 0;
}

.page-header .breadcrumb-item,
.page-header .breadcrumb-item a {
  color: rgba(255, 255, 255, 0.65);
}

.page-header .breadcrumb-item.active {
  color: var(--color-gold);
}

/* ---------- Landing-page hero (split: copy + booking form) ---------- */
.hero-lp {
  position: relative;
  background: var(--color-dark) center/cover no-repeat;
  padding: 84px 0 92px;
  overflow: hidden;
}

.hero-lp::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(24, 22, 43, 0.95) 0%,
    rgba(24, 22, 43, 0.87) 42%,
    rgba(24, 22, 43, 0.6) 100%
  );
}

.hero-lp::after {
  content: "";
  position: absolute;
  top: -160px;
  right: -90px;
  width: 540px;
  height: 540px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(227, 176, 119, 0.3), transparent 68%);
}

.hero-lp > .container {
  position: relative;
  z-index: 2;
}

.hero-lp .breadcrumb {
  margin-bottom: 18px;
}

.hero-lp .breadcrumb-item,
.hero-lp .breadcrumb-item a {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.85rem;
}

.hero-lp .breadcrumb-item a:hover {
  color: var(--color-gold);
}

.hero-lp .breadcrumb-item.active {
  color: rgba(255, 255, 255, 0.85);
}

.hero-lp .breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255, 255, 255, 0.35);
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: rgba(227, 176, 119, 0.14);
  border: 1px solid rgba(227, 176, 119, 0.38);
  color: #fff;
  border-radius: 50px;
  padding: 9px 20px;
  font-size: 0.84rem;
  font-weight: 600;
  margin-bottom: 22px;
}

.hero-pill i {
  color: var(--color-gold);
}

.hero-lp h1 {
  color: #fff;
  font-size: 3.05rem;
  line-height: 1.13;
  margin-bottom: 20px;
}

.hero-lp h1 .hl {
  color: var(--color-gold);
}

.hero-lp .hero-lead {
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.05rem;
  max-width: 560px;
  margin-bottom: 30px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 44px;
  margin-top: 46px;
}

.hero-stat strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.95rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
}

.hero-stat strong span {
  color: var(--color-gold);
}

.hero-stat small {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.84rem;
}

/* Glass booking card */
.hero-form {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 22px;
  padding: 34px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.38);
}

.hero-form h3 {
  color: #fff;
  font-size: 1.45rem;
  margin-bottom: 22px;
}

.hero-form .form-control,
.hero-form .form-select {
  background-color: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.17);
  color: #fff;
  border-radius: 12px;
  padding: 13px 16px;
}

.hero-form .form-control::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.hero-form .form-control:focus,
.hero-form .form-select:focus {
  background-color: rgba(255, 255, 255, 0.12);
  border-color: var(--color-gold);
  box-shadow: 0 0 0 0.2rem rgba(227, 176, 119, 0.2);
  color: #fff;
}

/* Light caret so the select arrow stays visible on the dark card */
.hero-form .form-select {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23e3b077' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 14px 11px;
}

/* native dropdown list renders on the OS surface, so force readable colors */
.hero-form .form-select option {
  color: var(--color-dark);
  background: #fff;
}

.hero-form .btn-gold {
  width: 100%;
  background-color: var(--color-gold);
  border-color: var(--color-gold);
  color: var(--color-dark);
}

.hero-form .btn-gold:hover {
  background-color: #fff;
  border-color: #fff;
}

.hero-form .form-note {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.78rem;
  text-align: center;
  margin: 14px 0 0;
}

@media (max-width: 1199px) {
  .hero-lp h1 {
    font-size: 2.6rem;
  }
}

@media (max-width: 991px) {
  .hero-lp {
    padding: 60px 0 70px;
  }
  .hero-lp h1 {
    font-size: 2.15rem;
  }
  .hero-form {
    margin-top: 44px;
    padding: 28px;
  }
  .hero-stats {
    gap: 30px;
    margin-top: 34px;
  }
}

@media (max-width: 575px) {
  .hero-lp h1 {
    font-size: 1.85rem;
  }
  .hero-cta .btn-gold,
  .hero-cta .btn-outline-light-pill {
    width: 100%;
    text-align: center;
  }
}

/* ---------- Service landing page bits ---------- */
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.tag-row .tag-pill {
  background: var(--color-white);
  margin: 0;
  font-size: 0.86rem;
  padding: 9px 20px;
  color: var(--color-dark);
  font-weight: 500;
}

.tag-row .tag-pill i {
  color: var(--color-gold-dark);
  margin-right: 7px;
}

/* FAQ accordion */
.faq-accordion .accordion-item {
  border: 1px solid rgba(24, 22, 43, 0.1);
  border-radius: 14px !important;
  margin-bottom: 14px;
  overflow: hidden;
  background: var(--color-white);
}

.faq-accordion .accordion-button {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-dark);
  background: var(--color-white);
  padding: 20px 24px;
  font-size: 1rem;
  box-shadow: none;
}

.faq-accordion .accordion-button:not(.collapsed) {
  background: rgba(227, 176, 119, 0.1);
  color: var(--color-dark);
}

.faq-accordion .accordion-button:focus {
  box-shadow: 0 0 0 0.2rem rgba(227, 176, 119, 0.25);
}

.faq-accordion .accordion-button::after {
  background-image: none;
  content: "\F282"; /* bootstrap-icons chevron-down */
  font-family: "bootstrap-icons";
  color: var(--color-gold-dark);
  transform: none;
  transition: transform 0.25s ease;
  width: auto;
  height: auto;
  line-height: 1;
}

.faq-accordion .accordion-button:not(.collapsed)::after {
  transform: rotate(180deg);
}

.faq-accordion .accordion-body {
  padding: 4px 24px 22px;
  color: var(--color-text);
  line-height: 1.8;
}

/* ---------- Icon Boxes / Feature Cards ---------- */
.icon-box {
  background: var(--color-white);
  border-radius: 16px;
  padding: 36px 28px;
  height: 100%;
  box-shadow: 0 10px 40px rgba(24, 22, 43, 0.06);
  transition: var(--transition);
  border: 1px solid rgba(24, 22, 43, 0.05);
}

.icon-box:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(24, 22, 43, 0.12);
}

.icon-box .icon-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-gold), var(--color-gold-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--color-white);
  margin-bottom: 20px;
}

/* ---------- Specialist highlight ---------- */
.specialist-card {
  background: var(--color-dark);
  border-radius: 20px;
  color: #fff;
  padding: 40px;
  position: relative;
  overflow: hidden;
}

.specialist-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid rgba(227, 176, 119, 0.6);
}

.specialist-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.specialist-degrees {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  font-size: 0.95rem;
  line-height: 1.7;
}

.specialist-degrees li {
  position: relative;
  padding-left: 16px;
}

.specialist-degrees li::before {
  content: "\2022";
  position: absolute;
  left: 0;
  line-height: inherit;
}

/* centred cards: keep the bullets left-aligned but the block centred */
.doctor-card .specialist-degrees {
  display: inline-block;
  text-align: left;
  margin-top: 16px;
}

/* ---------- Counters ---------- */
.counter-box {
  text-align: center;
  padding: 20px;
}

.counter-box .count {
  font-family: var(--font-heading);
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--color-dark);
}

.counter-box .count span {
  color: var(--color-gold);
}

.counter-box .label {
  color: var(--color-text);
  font-weight: 500;
}

/* ---------- Service Cards ---------- */
.service-card {
  border-radius: 18px;
  overflow: hidden;
  background: var(--color-white);
  box-shadow: 0 10px 40px rgba(24, 22, 43, 0.06);
  transition: var(--transition);
  height: 100%;
  border: 1px solid rgba(24,22,43,0.05);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(24, 22, 43, 0.14);
}

.service-card .service-thumb {
  height: 220px;
  position: relative;
  overflow: hidden;
  background: var(--color-dark);
}

.service-card .service-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.service-card:hover .service-thumb img {
  transform: scale(1.07);
}

.service-card .service-thumb .thumb-icon {
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--color-gold-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: 0 8px 20px rgba(24, 22, 43, 0.22);
  z-index: 2;
}

.service-card .service-body {
  padding: 26px;
}

.service-card .service-body small {
  color: var(--color-gold-dark);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.72rem;
}

.service-card .read-more {
  color: var(--color-dark);
  font-weight: 700;
  font-size: 0.9rem;
}

.service-card .read-more i {
  transition: var(--transition);
  margin-left: 4px;
}

.service-card:hover .read-more i {
  margin-left: 10px;
}

.service-card:hover .read-more {
  color: var(--color-gold-dark);
}

/* ---------- Steps / Journey ---------- */
.step-item {
  display: flex;
  gap: 20px;
  margin-bottom: 34px;
}

.step-number {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-dark);
  color: var(--color-gold);
  font-family: var(--font-heading);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

/* ---------- Process section visual (photo beside the steps) ---------- */
.process-visual {
  position: relative;
  /* own stacking context so the offset outline sits behind the photo,
     not behind the section background */
  z-index: 0;
  padding-left: 42px;
  padding-bottom: 46px;
}

/* :not() keeps this off the inset — otherwise `.process-visual > img` outranks
   `.process-inset` on specificity and stretches it to full width */
.process-visual > img:not(.process-inset) {
  width: 100%;
  height: auto;
  border-radius: 22px;
  display: block;
  box-shadow: 0 26px 60px rgba(24, 22, 43, 0.2);
}

.process-visual::before {
  content: "";
  position: absolute;
  top: -16px;
  right: -16px;
  bottom: 62px;
  left: 58px;
  border: 2px solid var(--color-gold);
  border-radius: 22px;
  z-index: -1;
}

.process-inset {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 182px;
  height: auto;
  border-radius: 18px;
  border: 6px solid var(--color-white);
  box-shadow: 0 18px 40px rgba(24, 22, 43, 0.26);
  display: block;
}

@media (max-width: 991px) {
  .process-visual {
    padding-left: 0;
    padding-bottom: 0;
    margin: 40px auto 0;
    max-width: 440px;
  }
  .process-visual::before {
    display: none;
  }
  .process-inset {
    width: 132px;
    left: 14px;
    bottom: 14px;
  }
}

/* ---------- Testimonials ---------- */
.testimonials-section {
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.08), transparent 25%),
    radial-gradient(circle at 88% 78%, rgba(255, 255, 255, 0.06), transparent 28%),
    #1487bd !important;
}

.testimonials-section .subtitle,
.testimonials-section h2 {
  color: #fff;
}

.testimonials-section .subtitle::before {
  background: #ff914d;
}

.testimonial-slider {
  overflow: hidden;
  padding: 58px 2px 28px;
}

.testimonial-track {
  display: flex;
  gap: 28px;
  align-items: stretch;
  will-change: transform;
}

.testimonial-card {
  background: #fff;
  border-radius: 24px;
  padding: 72px 34px 34px;
  min-width: calc((100% - 56px) / 3);
  position: relative;
  display: flex;
  flex-direction: column;
  height: 440px;
  box-shadow: 0 18px 35px rgba(13, 48, 79, 0.25);
}

.testimonial-card i.quote-icon {
  color: #ff914d;
  font-size: 4.5rem;
  position: absolute;
  top: -32px;
  left: 18px;
  margin: 0;
  line-height: 1;
  z-index: 2;
}

.testimonial-rating {
  color: #ff914d;
  font-size: 1.35rem;
  letter-spacing: 4px;
  order: 4;
  width: fit-content;
  margin-top: auto;
  padding-top: 16px;
  border-top: 2px solid #dedede;
}

.testimonial-card.has-long-review .testimonial-rating {
  margin-top: 14px;
}

.testimonial-card > p {
  color: #333;
  font-style: normal !important;
  font-size: 1rem;
  line-height: 1.65;
  margin: 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 7;
  line-clamp: 7;
  overflow: hidden;
  order: 2;
  flex: 0 0 auto;
}

.testimonial-card.is-expanded > p {
  display: block;
  flex: 1 1 auto;
  overflow-y: auto;
  padding-right: 8px;
  scrollbar-width: thin;
  scrollbar-color: #ff914d #eef2f5;
}

.testimonial-read-more {
  order: 3;
  align-self: flex-start;
  margin-top: auto;
  padding: 7px 18px;
  border: 0;
  border-radius: 22px;
  background: #2c537f;
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
  transition: background 0.2s ease, transform 0.2s ease;
}

.testimonial-read-more:hover,
.testimonial-read-more:focus-visible {
  background: #ff914d;
  color: #fff;
  transform: translateY(-1px);
}

.testimonial-card.is-expanded .testimonial-read-more {
  margin-top: 12px;
}

.testimonial-card > .d-flex {
  position: absolute;
  top: -46px;
  right: 14px;
  z-index: 3;
  width: min(68%, 310px);
  min-height: 82px;
  margin: 0 !important;
  padding: 17px 24px;
  border-radius: 44px;
  justify-content: center;
  text-align: center;
  background: #2c537f;
  color: #fff;
  box-shadow: 0 18px 22px rgba(0, 0, 0, 0.24);
}

.testimonial-card > .d-flex h6 {
  color: #fff;
  font-size: 1.15rem;
  line-height: 1.25;
}

.testimonial-card > .d-flex small,
.testimonial-card .testimonial-avatar {
  display: none;
}

.testimonial-card::after {
  content: "”";
  position: absolute;
  right: 22px;
  bottom: -30px;
  color: #ff914d;
  font-family: Georgia, serif;
  font-size: 6.5rem;
  line-height: 1;
}

.testimonial-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid var(--color-gold);
  display: grid;
  place-items: center;
  background: rgba(203, 162, 88, 0.12);
  color: var(--color-gold);
  font-size: 1.35rem;
}

.testimonial-avatar i {
  line-height: 1;
}

.testimonial-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 991.98px) {
  .testimonial-card {
    min-width: calc((100% - 28px) / 2);
  }
}

@media (max-width: 575.98px) {
  .testimonial-track {
    gap: 18px;
  }

  .testimonial-card {
    min-width: 100%;
    height: 460px;
    padding: 70px 24px 30px;
  }

  .testimonial-card > .d-flex {
    right: 8px;
    width: 70%;
    min-height: 74px;
    padding: 14px 18px;
  }

  .testimonial-card i.quote-icon {
    top: -27px;
    left: 12px;
    font-size: 3.9rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .testimonial-track {
    transform: none !important;
  }
}

/* ---------- Homepage UI, UX & motion ---------- */
.home-page .hero .subtitle {
  opacity: 0;
  animation: homeFadeUp 0.65s ease 0.1s forwards;
}

.home-page .hero h1 {
  max-width: 760px;
  letter-spacing: -0.035em;
  opacity: 0;
  animation: homeFadeUp 0.75s ease 0.22s forwards;
}

.home-page .hero h1 span {
  color: var(--color-gold);
  background: linear-gradient(90deg, #f2c896, var(--color-gold), #fff0d8);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: homeTextShine 5s linear infinite;
}

.home-page .hero .lead {
  opacity: 0;
  animation: homeFadeUp 0.75s ease 0.36s forwards;
}

.home-page .hero .lead + .d-flex {
  opacity: 0;
  animation: homeFadeUp 0.75s ease 0.5s forwards;
}

.home-page .hero-image-wrap {
  opacity: 0;
  animation: homeImageIn 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 0.25s forwards;
}

.home-page .hero-image-wrap img {
  animation: homeImageFloat 5.5s ease-in-out 1.2s infinite;
}

.home-page .hero-badge {
  animation: homeBadgeFloat 3.8s ease-in-out 1.1s infinite;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  opacity: 0;
  animation: homeFadeUp 0.75s ease 0.64s forwards;
}

.hero-trust > div {
  display: grid;
  grid-template-columns: auto auto;
  column-gap: 8px;
  text-align: left;
}

.hero-trust i {
  grid-row: 1 / 3;
  align-self: center;
  color: var(--color-gold);
  font-size: 1.25rem;
}

.hero-trust strong {
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  line-height: 1.2;
}

.hero-trust span {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.75rem;
}

.home-features {
  position: relative;
  z-index: 3;
  margin-top: -68px;
}

.home-page .icon-box,
.home-page .service-card,
.home-page .blog-card {
  border: 1px solid rgba(24, 22, 43, 0.06);
}

.home-page .icon-box:hover {
  border-color: rgba(227, 176, 119, 0.45);
}

.home-page .btn-gold,
.home-page .btn-outline-light-pill {
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(24, 22, 43, 0.12);
}

.home-page .btn-gold i,
.home-page .btn-outline-light-pill i {
  display: inline-block;
  transition: transform 0.25s ease;
}

.home-page .btn-gold:hover i {
  transform: translateX(4px);
}

.home-page a:focus-visible,
.home-page button:focus-visible {
  outline: 3px solid rgba(227, 176, 119, 0.72);
  outline-offset: 4px;
}

.home-page .reveal-ready {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.65s ease var(--reveal-delay, 0ms),
    transform 0.65s cubic-bezier(0.2, 0.7, 0.2, 1) var(--reveal-delay, 0ms);
}

.home-page .reveal-ready.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes homeFadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes homeImageIn {
  from {
    opacity: 0;
    transform: translateX(34px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes homeTextShine {
  to {
    background-position: 200% center;
  }
}

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

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

@media (max-width: 991px) {
  .hero-trust {
    justify-content: center;
  }

  .home-features {
    margin-top: -38px;
  }

  .home-page .hero-badge {
    animation-name: homeBadgeFloatMobile;
  }
}

@keyframes homeBadgeFloatMobile {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-7px); }
}

@media (max-width: 575px) {
  .home-page .hero {
    padding-top: 72px;
  }

  .home-page .hero h1 {
    font-size: clamp(2rem, 10vw, 2.6rem);
  }

  .hero-trust {
    gap: 18px;
    justify-content: flex-start;
  }

  .hero-trust > div {
    width: calc(50% - 9px);
  }

  .home-features {
    margin-top: -18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-page .hero .subtitle,
  .home-page .hero h1,
  .home-page .hero .lead,
  .home-page .hero .lead + .d-flex,
  .home-page .hero-image-wrap,
  .home-page .hero-image-wrap img,
  .home-page .hero-badge,
  .hero-trust {
    opacity: 1;
    animation: none;
    transform: none;
  }

  .home-page .reveal-ready {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (max-width: 991px) and (prefers-reduced-motion: reduce) {
  .home-page .hero-badge {
    transform: translateX(-50%);
  }
}

/* ---------- Inner-page UI, UX & motion ---------- */
.site-animated:not(.home-page) .page-header .container {
  opacity: 0;
  animation: innerHeaderIn 0.75s cubic-bezier(0.2, 0.7, 0.2, 1) 0.12s forwards;
}

.site-animated:not(.home-page) .hero-lp .breadcrumb,
.site-animated:not(.home-page) .hero-lp .hero-pill,
.site-animated:not(.home-page) .hero-lp h1,
.site-animated:not(.home-page) .hero-lp .hero-lead,
.site-animated:not(.home-page) .hero-lp .hero-cta,
.site-animated:not(.home-page) .hero-lp .hero-stats {
  opacity: 0;
  animation: homeFadeUp 0.7s ease forwards;
}

.site-animated:not(.home-page) .hero-lp .breadcrumb {
  animation-delay: 0.08s;
}

.site-animated:not(.home-page) .hero-lp .hero-pill {
  animation-delay: 0.16s;
}

.site-animated:not(.home-page) .hero-lp h1 {
  animation-delay: 0.24s;
}

.site-animated:not(.home-page) .hero-lp .hero-lead {
  animation-delay: 0.34s;
}

.site-animated:not(.home-page) .hero-lp .hero-cta {
  animation-delay: 0.44s;
}

.site-animated:not(.home-page) .hero-lp .hero-stats {
  animation-delay: 0.54s;
}

.site-animated:not(.home-page) .hero-lp .hero-form {
  animation: innerFormIn 0.85s cubic-bezier(0.2, 0.7, 0.2, 1) 0.24s both;
}

.site-animated:not(.home-page) .reveal-ready {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.65s ease var(--reveal-delay, 0ms),
    transform 0.65s cubic-bezier(0.2, 0.7, 0.2, 1) var(--reveal-delay, 0ms);
}

.site-animated:not(.home-page) .reveal-ready.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.site-animated:not(.home-page) .service-card,
.site-animated:not(.home-page) .doctor-card,
.site-animated:not(.home-page) .blog-card,
.site-animated:not(.home-page) .contact-info-card,
.site-animated:not(.home-page) .appointment-widget,
.site-animated:not(.home-page) .sidebar-widget {
  border: 1px solid rgba(24, 22, 43, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.site-animated:not(.home-page) .contact-info-card:hover,
.site-animated:not(.home-page) .sidebar-widget:hover {
  transform: translateY(-5px);
  border-color: rgba(227, 176, 119, 0.42);
  box-shadow: 0 18px 42px rgba(24, 22, 43, 0.1);
}

.site-animated a:focus-visible,
.site-animated button:focus-visible,
.site-animated input:focus-visible,
.site-animated select:focus-visible,
.site-animated textarea:focus-visible {
  outline: 3px solid rgba(227, 176, 119, 0.72);
  outline-offset: 3px;
}

.site-animated .btn-gold i,
.site-animated .read-more i {
  display: inline-block;
  transition: transform 0.25s ease;
}

.site-animated .btn-gold:hover i,
.site-animated .read-more:hover i {
  transform: translateX(4px);
}

@keyframes innerHeaderIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

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

@media (prefers-reduced-motion: reduce) {
  .site-animated:not(.home-page) .page-header .container,
  .site-animated:not(.home-page) .hero-lp .breadcrumb,
  .site-animated:not(.home-page) .hero-lp .hero-pill,
  .site-animated:not(.home-page) .hero-lp h1,
  .site-animated:not(.home-page) .hero-lp .hero-lead,
  .site-animated:not(.home-page) .hero-lp .hero-cta,
  .site-animated:not(.home-page) .hero-lp .hero-stats,
  .site-animated:not(.home-page) .hero-lp .hero-form,
  .site-animated:not(.home-page) .reveal-ready {
    opacity: 1;
    animation: none;
    transform: none;
    transition: none;
  }
}

/* ---------- Blog Cards ---------- */
.blog-card {
  border-radius: 18px;
  overflow: hidden;
  background: var(--color-white);
  box-shadow: 0 10px 40px rgba(24, 22, 43, 0.06);
  transition: var(--transition);
  height: 100%;
}

.blog-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(24, 22, 43, 0.12);
}

.blog-card .blog-thumb {
  height: 220px;
  overflow: hidden;
  background: var(--color-light-bg);
}

.blog-card .blog-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 0.6s ease;
}

.blog-card:hover .blog-thumb img {
  transform: scale(1.06);
}

.blog-figure {
  width: 100%;
  border-radius: 14px;
  display: block;
  margin-bottom: 22px;
}

.blog-card .blog-body h5 {
  line-height: 1.4;
}

/* ---------- Blog post (single article) ---------- */
.post-hero {
  width: 100%;
  border-radius: 20px;
  display: block;
  margin-bottom: 34px;
  box-shadow: 0 18px 45px rgba(24, 22, 43, 0.12);
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  color: var(--color-gold-dark);
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 18px;
}

.post-content h3 {
  font-size: 1.3rem;
  margin: 34px 0 14px;
}

.post-content p {
  margin-bottom: 16px;
}

.post-content ul {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
}

.post-content ul li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 11px;
  color: var(--color-text);
}

.post-content ul li::before {
  content: "\F26E"; /* bootstrap-icons check-circle-fill */
  font-family: "bootstrap-icons";
  position: absolute;
  left: 0;
  top: 1px;
  color: var(--color-gold);
  font-size: 0.95rem;
}

.post-callout {
  background: var(--color-light-bg);
  border-left: 4px solid var(--color-gold);
  border-radius: 12px;
  padding: 24px 28px;
  margin: 30px 0;
}

.post-callout p:last-child {
  margin-bottom: 0;
}

/* Sidebar */
.sidebar-widget {
  background: var(--color-light-bg);
  border-radius: 16px;
  padding: 26px;
  margin-bottom: 26px;
}

.sidebar-widget h5 {
  font-size: 1.05rem;
  margin-bottom: 18px;
}

.recent-post {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px dashed rgba(24, 22, 43, 0.12);
}

.recent-post:last-child {
  border-bottom: none;
}

.recent-post img {
  width: 66px;
  height: 66px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}

.recent-post h6 {
  font-size: 0.88rem;
  margin: 0 0 4px;
  line-height: 1.4;
}

.recent-post h6 a {
  color: var(--color-dark);
}

.recent-post h6 a:hover {
  color: var(--color-gold-dark);
}

.recent-post small {
  color: var(--color-gold-dark);
  font-size: 0.75rem;
}

.tag-pill {
  display: inline-block;
  border: 1px solid rgba(24, 22, 43, 0.14);
  border-radius: 50px;
  padding: 6px 16px;
  margin: 0 6px 8px 0;
  font-size: 0.8rem;
  color: var(--color-text);
}

.tag-pill:hover {
  background: var(--color-gold);
  border-color: var(--color-gold);
  color: var(--color-dark);
}

.blog-card .blog-body {
  padding: 26px;
}

.blog-card .meta {
  font-size: 0.8rem;
  color: var(--color-gold-dark);
  font-weight: 600;
  margin-bottom: 10px;
}

/* ---------- Doctors ---------- */
.doctor-card {
  text-align: center;
  background: var(--color-white);
  border-radius: 18px;
  padding: 30px 20px;
  box-shadow: 0 10px 40px rgba(24, 22, 43, 0.06);
  transition: var(--transition);
}

.doctor-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(24, 22, 43, 0.12);
}

.doctor-avatar {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  margin: 0 auto 18px;
  overflow: hidden;
  border: 3px solid rgba(227, 176, 119, 0.5);
  transition: var(--transition);
}

.doctor-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.doctor-card:hover .doctor-avatar {
  border-color: var(--color-gold);
}

/* Small inline photo — same geometry as .specialist-monogram it replaces */
.specialist-avatar {
  width: 90px;
  height: 90px;
  flex-shrink: 0;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(227, 176, 119, 0.6);
}

.specialist-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.doctor-card .social {
  margin-top: 12px;
}

.doctor-card .social a {
  color: var(--color-text);
  margin: 0 6px;
}

.doctor-card .social a:hover {
  color: var(--color-gold-dark);
}

/* ---------- Progress stats (about page) ---------- */
.progress-stat {
  margin-bottom: 26px;
}

.progress-stat .progress {
  height: 10px;
  border-radius: 10px;
  background: rgba(24, 22, 43, 0.08);
}

.progress-stat .progress-bar {
  background: linear-gradient(90deg, var(--color-gold-dark), var(--color-gold));
  border-radius: 10px;
}

/* ---------- CTA ---------- */
.cta-section {
  background: var(--color-dark) url("../images/cta-bg.jpg") center/cover no-repeat;
  border-radius: 24px;
  padding: 70px;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.cta-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(24, 22, 43, 0.93) 0%,
    rgba(24, 22, 43, 0.84) 100%
  );
}

.cta-section > * {
  position: relative;
  z-index: 2;
}

.cta-section h2,
.cta-section h3 {
  color: #fff;
}

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

@media (max-width: 768px) {
  .cta-section {
    padding: 45px 24px;
  }
}

/* ---------- Appointment Widget ---------- */
.appointment-widget {
  background: var(--color-white);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(24, 22, 43, 0.1);
  padding: 36px;
}

.appt-steps {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0 0 30px;
  border-bottom: 1px solid rgba(24, 22, 43, 0.08);
}

.appt-steps li {
  flex: 1;
  text-align: center;
  padding-bottom: 14px;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--color-text);
  border-bottom: 3px solid transparent;
  cursor: pointer;
}

.appt-steps li.active {
  color: var(--color-dark);
  border-color: var(--color-gold);
}

.appt-pane {
  display: none;
}

.appt-pane.active {
  display: block;
  animation: fadeIn 0.35s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.service-option {
  border: 1px solid rgba(24, 22, 43, 0.1);
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  cursor: pointer;
  transition: var(--transition);
}

.service-option:hover,
.service-option.selected {
  border-color: var(--color-gold);
  background: rgba(227, 176, 119, 0.08);
}

.service-option .price {
  color: var(--color-gold-dark);
  font-weight: 700;
}

.time-slot {
  display: inline-block;
  border: 1px solid rgba(24, 22, 43, 0.15);
  border-radius: 10px;
  padding: 8px 14px;
  margin: 4px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: var(--transition);
}

.time-slot.selected,
.time-slot:hover {
  background: var(--color-dark);
  color: var(--color-gold);
  border-color: var(--color-dark);
}

/* ---------- Opening Hours ---------- */
.hours-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.hours-list li {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px dashed rgba(24, 22, 43, 0.1);
  color: var(--color-dark);
  font-weight: 600;
}

.hours-list li span:last-child {
  color: var(--color-gold-dark);
  font-weight: 500;
}

/* ---------- Contact ---------- */
.contact-info-card {
  background: var(--color-white);
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 10px 40px rgba(24, 22, 43, 0.06);
  height: 100%;
  text-align: center;
}

.contact-info-card .icon-circle {
  width: 60px;
  height: 60px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: rgba(227, 176, 119, 0.15);
  color: var(--color-gold-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.map-frame {
  border-radius: 18px;
  overflow: hidden;
  border: none;
  width: 100%;
  height: 380px;
}

/* ---------- Forms ---------- */
.form-control,
.form-select {
  border-radius: 10px;
  border: 1px solid rgba(24, 22, 43, 0.15);
  padding: 12px 16px;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--color-gold);
  box-shadow: 0 0 0 0.2rem rgba(227, 176, 119, 0.2);
}

/* ---------- Footer ---------- */
footer.site-footer {
  background: var(--color-dark);
  color: rgba(255, 255, 255, 0.6);
  padding: 80px 0 0;
}

footer.site-footer h5 {
  color: #fff;
  margin-bottom: 22px;
  font-size: 1.05rem;
}

footer.site-footer .footer-brand {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
  color: #fff;
}

footer.site-footer .footer-brand span {
  color: var(--color-gold);
}

footer.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

footer.site-footer ul li {
  margin-bottom: 12px;
}

footer.site-footer ul li a {
  color: rgba(255, 255, 255, 0.6);
}

footer.site-footer ul li a:hover {
  color: var(--color-gold);
  padding-left: 4px;
}

footer.site-footer .social-icons a {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  margin-right: 8px;
}

footer.site-footer .social-icons a:hover {
  background: var(--color-gold);
  border-color: var(--color-gold);
  color: var(--color-dark);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 50px;
  padding: 22px 0;
  font-size: 0.85rem;
}

.footer-bottom a {
  color: var(--color-gold);
}

/* ---------- Back to top ---------- */
#backToTop {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--color-dark);
  color: var(--color-gold);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
  border: none;
  box-shadow: 0 10px 25px rgba(24, 22, 43, 0.3);
  transition: var(--transition);
}

#backToTop:hover {
  background: var(--color-gold);
  color: var(--color-dark);
}

/* ---------- Preloader ---------- */
#preloader {
  position: fixed;
  inset: 0;
  background: var(--color-white);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

#preloader.hide {
  opacity: 0;
  visibility: hidden;
}

.loader-ring {
  width: 54px;
  height: 54px;
  border: 4px solid rgba(24, 22, 43, 0.1);
  border-top-color: var(--color-gold);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ---------- Utilities ---------- */
.divider-gold {
  width: 60px;
  height: 3px;
  background: var(--color-gold);
  margin: 18px auto;
  border-radius: 4px;
}

.rounded-xl {
  border-radius: 20px;
}

/* Framed photo with offset gold outline */
.framed-photo {
  position: relative;
  display: block;
  /* establishes a stacking context so the offset outline (z-index:-1)
     paints behind the photo but above the section background */
  z-index: 0;
}

.framed-photo img {
  width: 100%;
  height: auto;
  border-radius: 20px;
  display: block;
  box-shadow: 0 20px 50px rgba(24, 22, 43, 0.18);
}

.framed-photo::before {
  content: "";
  position: absolute;
  inset: -16px -16px 16px 16px;
  border: 2px solid var(--color-gold);
  border-radius: 20px;
  z-index: -1;
}

@media (max-width: 767px) {
  .framed-photo::before {
    display: none;
  }
}

/* ---------- Treatment Directory ---------- */
.treatment-group {
  margin-bottom: 56px;
}

.treatment-group:last-child {
  margin-bottom: 0;
}

.treatment-group-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(24, 22, 43, 0.09);
}

.treatment-group-head .group-icon {
  flex: 0 0 54px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-gold), var(--color-gold-dark));
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.treatment-group-head h3 {
  margin: 0;
  font-size: 1.5rem;
}

.treatment-group-head small {
  display: block;
  margin-top: 3px;
  font-size: 0.85rem;
  color: var(--color-text);
}

.treatment-item {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  height: 100%;
  padding: 20px 22px;
  border: 1px solid rgba(24, 22, 43, 0.07);
  border-radius: 14px;
  background: var(--color-light-bg);
  transition: var(--transition);
}

.treatment-item:hover {
  transform: translateY(-5px);
  background: var(--color-white);
  border-color: rgba(227, 176, 119, 0.5);
  box-shadow: 0 16px 40px rgba(24, 22, 43, 0.1);
}

.treatment-item .ti-mark {
  flex: 0 0 auto;
  margin-top: 2px;
  color: var(--color-gold-dark);
  font-size: 1.1rem;
}

.treatment-item h6 {
  margin: 0 0 5px;
  font-size: 1rem;
  line-height: 1.45;
}

.treatment-item h6 a {
  color: inherit;
}

.treatment-item h6 a:hover {
  color: var(--color-gold-dark);
}

.treatment-item p {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.65;
}

@media (max-width: 575px) {
  .treatment-group-head h3 {
    font-size: 1.25rem;
  }

  .treatment-item {
    padding: 17px 18px;
  }
}

/* ---------- Appointment: grouped service list ---------- */
.service-option-list {
  max-height: 430px;
  overflow-y: auto;
  padding-right: 8px;
}

.service-option-list::-webkit-scrollbar {
  width: 6px;
}

.service-option-list::-webkit-scrollbar-thumb {
  background: rgba(24, 22, 43, 0.18);
  border-radius: 50px;
}

.appt-group-label {
  margin: 18px 0 10px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.76rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--color-gold-dark);
}

.appt-group-label:first-child {
  margin-top: 0;
}

/* ---------- Monogram avatars (placeholder until real photo supplied) ---------- */
.specialist-monogram,
.doctor-monogram {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-gold), var(--color-gold-dark));
  color: var(--color-dark);
  font-family: var(--font-heading);
  font-weight: 800;
  letter-spacing: 1px;
}

.specialist-monogram {
  width: 90px;
  height: 90px;
  font-size: 1.7rem;
  border: 2px solid rgba(227, 176, 119, 0.6);
}

.doctor-monogram {
  width: 150px;
  height: 150px;
  margin: 0 auto 18px;
  font-size: 2.6rem;
  border: 3px solid rgba(227, 176, 119, 0.5);
}

/* ---------- Credential list ---------- */
.credential-list {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
}

.credential-list li {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  padding: 14px 0;
  border-bottom: 1px solid rgba(24, 22, 43, 0.07);
}

.credential-list li:last-child {
  border-bottom: 0;
}

.credential-list i {
  flex: 0 0 auto;
  margin-top: 3px;
  color: var(--color-gold-dark);
  font-size: 1.15rem;
}

.credential-list strong {
  display: block;
  color: var(--color-dark);
  font-family: var(--font-heading);
  margin-bottom: 2px;
}

.credential-list p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ---------- About: mission quote ---------- */
.about-mission-quote {
  position: relative;
  max-width: 760px;
  margin: 38px auto 0;
  padding: 30px 36px 28px;
  overflow: hidden;
  border-left: 3px solid var(--color-gold);
  border-radius: 0 14px 14px 0;
  background: linear-gradient(135deg, rgba(227, 176, 119, 0.12), rgba(255, 255, 255, 0.8));
  text-align: left;
}

.about-mission-quote::after {
  content: "\201C";
  position: absolute;
  top: -25px;
  right: 18px;
  color: rgba(227, 176, 119, 0.18);
  font-family: Georgia, serif;
  font-size: 9rem;
  line-height: 1;
}

.about-mission-quote p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--color-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.25rem, 2.2vw, 1.75rem);
  font-style: italic;
  line-height: 1.55;
}

.about-mission-quote footer {
  position: relative;
  z-index: 1;
  margin-top: 13px;
  color: var(--color-gold-dark);
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (max-width: 575px) {
  .about-mission-quote {
    padding: 24px 23px 22px;
  }
}

/* ---------- Consultation popup ---------- */
body.popup-open {
  overflow: hidden;
}

.consultation-popup {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 24px;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.consultation-popup.is-open {
  visibility: visible;
  opacity: 1;
}

.consultation-popup__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(24, 22, 43, 0.76);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.consultation-popup__dialog {
  position: relative;
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(390px, 1.15fr);
  width: min(920px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  border-radius: 24px;
  background: var(--color-white);
  box-shadow: 0 30px 90px rgba(9, 8, 20, 0.34);
  transform: translateY(18px) scale(0.98);
  transition: transform 0.3s ease;
}

.consultation-popup.is-open .consultation-popup__dialog {
  transform: translateY(0) scale(1);
}

.consultation-popup__close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: var(--color-gold);
  color: var(--color-dark);
  font-size: 1.15rem;
  box-shadow: 0 6px 18px rgba(9, 8, 20, 0.22);
  transition: var(--transition);
}

.consultation-popup__close i {
  display: block;
  color: var(--color-dark);
  line-height: 1;
}

.consultation-popup__close:hover {
  background: var(--color-white);
  color: var(--color-dark);
}

.consultation-popup__quote {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 54px 42px;
  background:
    linear-gradient(145deg, rgba(24, 22, 43, 0.94), rgba(33, 31, 58, 0.88)),
    url("../images/cta-bg.jpg") center/cover;
  color: rgba(255, 255, 255, 0.78);
}

.consultation-popup__eyebrow {
  margin-bottom: 26px;
  color: var(--color-gold);
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.consultation-popup__quote blockquote {
  margin: 0;
}

.consultation-popup__quote blockquote p {
  margin: 0;
  color: var(--color-white);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  font-style: italic;
  line-height: 1.5;
}

.consultation-popup__quote blockquote footer {
  margin-top: 20px;
  color: var(--color-gold);
  font-family: var(--font-heading);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.consultation-popup__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 20px;
  margin-top: 38px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.82rem;
}

.consultation-popup__trust i {
  margin-right: 6px;
  color: var(--color-gold);
}

.consultation-popup__form {
  padding: 48px 44px 42px;
}

.consultation-popup__form h3 {
  margin-bottom: 8px;
}

.consultation-popup__intro {
  margin-bottom: 22px;
  font-size: 0.92rem;
}

.consultation-popup__form .form-label {
  margin-bottom: 6px;
  color: var(--color-dark);
  font-size: 0.82rem;
  font-weight: 600;
}

@media (max-width: 767px) {
  .consultation-popup {
    align-items: center;
    padding: 8px;
  }

  .consultation-popup__dialog {
    grid-template-columns: 1fr;
    width: min(430px, 100%);
    max-height: calc(100vh - 16px);
    max-height: calc(100dvh - 16px);
    border-radius: 14px;
  }

  .consultation-popup__close {
    top: 12px;
    right: 12px;
    width: 38px;
    height: 38px;
  }

  .consultation-popup__quote {
    min-height: auto;
    padding: 20px 54px 17px 20px;
  }

  .consultation-popup__eyebrow {
    margin-bottom: 7px;
    font-size: 0.62rem;
  }

  .consultation-popup__quote blockquote p {
    font-size: 0.98rem;
    line-height: 1.35;
  }

  .consultation-popup__quote blockquote footer {
    margin-top: 8px;
    font-size: 0.59rem;
  }

  .consultation-popup__trust {
    display: none;
  }

  .consultation-popup__form {
    padding: 17px 18px 18px;
  }

  .consultation-popup__form .subtitle {
    margin-bottom: 7px;
    font-size: 0.7rem;
  }

  .consultation-popup__form h3 {
    margin-bottom: 4px;
    font-size: 1.15rem;
  }

  .consultation-popup__intro {
    margin-bottom: 10px;
    font-size: 0.78rem;
    line-height: 1.4;
  }

  .consultation-popup__form .row {
    --bs-gutter-x: 0.65rem;
    --bs-gutter-y: 0.55rem;
  }

  .consultation-popup__form .form-label {
    margin-bottom: 3px;
    font-size: 0.72rem;
  }

  .consultation-popup__form .form-control,
  .consultation-popup__form .form-select {
    min-height: 39px;
    padding: 8px 9px;
    font-size: 0.8rem;
  }

  .consultation-popup__optional {
    display: none;
  }

  .consultation-popup__form .btn-gold {
    padding: 9px 18px;
    font-size: 0.82rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .consultation-popup,
  .consultation-popup__dialog {
    transition: none;
  }
}

/* ---------- Gallery page ---------- */
.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 40px;
}

.gallery-filter {
  border: 1px solid rgba(24, 22, 43, 0.12);
  background: var(--color-white);
  color: var(--color-dark);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  transition: var(--transition);
}

.gallery-filter:hover {
  border-color: var(--color-gold);
  color: var(--color-gold-dark);
}

.gallery-filter.active {
  background: var(--color-dark);
  border-color: var(--color-dark);
  color: var(--color-white);
}

/* Uniform grid: every tile is the same size, so rows and columns line up
   exactly regardless of each source image's aspect ratio. The landscape
   press-coverage scan gets a 2-column tile so it is not squeezed, which
   also fills the grid to a clean rectangle. Full uncropped images are
   always available in the lightbox. */
.gallery-masonry {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

.gallery-masonry .gallery-col {
  display: block;
  min-width: 0;
}

/* Wide tile for landscape source images (e.g. newspaper scans) */
.gallery-masonry .gallery-col--wide {
  grid-column: span 2;
}

.gallery-item {
  position: relative;
  margin: 0;
  /* width:100% is essential — without it, aspect-ratio resolves backwards
     (width from height) when the row is stretched, and the tile overflows
     its grid column. */
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  background: var(--color-light-bg);
  box-shadow: 0 10px 30px rgba(24, 22, 43, 0.07);
}

/* The wide tile takes its height from the row it shares, so it must not
   impose a ratio of its own. Alone on a row it falls back to the image's
   natural ratio, which is what we want for a landscape scan. */
.gallery-col--wide .gallery-item {
  aspect-ratio: auto;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.55s ease;
}

.gallery-item:hover img {
  transform: scale(1.07);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px;
  text-align: left;
  color: var(--color-white);
  background: linear-gradient(to top, rgba(24, 22, 43, 0.88) 0%, rgba(24, 22, 43, 0.35) 45%, rgba(24, 22, 43, 0) 75%);
  opacity: 0;
  transition: var(--transition);
}

.gallery-item:hover .gallery-overlay,
.gallery-item:focus-within .gallery-overlay {
  opacity: 1;
}

.gallery-cat {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 6px;
}

.gallery-overlay h6 {
  color: var(--color-white);
  font-size: 1.02rem;
  margin: 0;
}

.gallery-zoom {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--color-gold);
  color: var(--color-dark);
  font-size: 0.95rem;
}

/* Filter transition */
.gallery-col.is-hidden {
  display: none;
}

.gallery-col.is-showing {
  animation: galleryFadeIn 0.4s ease both;
}

@keyframes galleryFadeIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- Gallery lightbox ---------- */
.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1080;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.gallery-lightbox.is-open {
  display: flex;
}

.gallery-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 14, 26, 0.92);
}

.gallery-lightbox__inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  max-width: 1100px;
  width: 100%;
}

.gallery-lightbox__figure {
  margin: 0;
  flex: 1;
  text-align: center;
  animation: galleryFadeIn 0.35s ease both;
}

.gallery-lightbox__figure img {
  max-width: 100%;
  max-height: 78vh;
  border-radius: 12px;
  display: block;
  margin: 0 auto;
}

.gallery-lightbox__figure figcaption {
  color: var(--color-white);
  font-family: var(--font-heading);
  font-weight: 700;
  margin-top: 16px;
  font-size: 1rem;
}

.gallery-lightbox__close,
.gallery-lightbox__nav {
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
  color: var(--color-white);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition);
}

.gallery-lightbox__close:hover,
.gallery-lightbox__nav:hover {
  background: var(--color-gold);
  border-color: var(--color-gold);
  color: var(--color-dark);
}

.gallery-lightbox__close {
  position: absolute;
  top: -58px;
  right: 0;
}

body.gallery-open {
  overflow: hidden;
}

@media (max-width: 767px) {
  .gallery-filter {
    padding: 8px 16px;
    font-size: 0.74rem;
  }

  .gallery-overlay {
    padding: 16px;
    opacity: 1;
    background: linear-gradient(to top, rgba(24, 22, 43, 0.85) 0%, rgba(24, 22, 43, 0) 65%);
  }

  .gallery-overlay h6 {
    font-size: 0.85rem;
  }

  .gallery-zoom {
    width: 34px;
    height: 34px;
    top: 12px;
    right: 12px;
    font-size: 0.8rem;
  }

  .gallery-lightbox {
    padding: 16px;
  }

  .gallery-lightbox__inner {
    gap: 8px;
  }

  .gallery-lightbox__close {
    top: -50px;
  }

  .gallery-lightbox__close,
  .gallery-lightbox__nav {
    width: 38px;
    height: 38px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gallery-item img,
  .gallery-col.is-showing,
  .gallery-lightbox__figure {
    transition: none;
    animation: none;
  }
}

/* ---------- Gallery video block ---------- */
.gallery-video-block {
  margin-top: 60px;
  text-align: center;
}

.gallery-video-block h3 {
  margin-bottom: 28px;
}

.gallery-video-wrap {
  max-width: 420px;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  background: var(--color-dark);
  box-shadow: 0 18px 44px rgba(24, 22, 43, 0.18);
}

.gallery-video-wrap video {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 991px) {
  .gallery-masonry {
    grid-template-columns: repeat(2, 1fr);
  }

  /* With 5 tiles in 2 columns, move the wide tile last so it fills the
     final row edge to edge instead of leaving a hole mid-grid. */
  .gallery-masonry .gallery-col--wide {
    order: 1;
  }
}

@media (max-width: 575px) {
  .gallery-masonry {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* No room to span on a single-column layout */
  .gallery-masonry .gallery-col--wide {
    grid-column: span 1;
  }

  .gallery-video-block {
    margin-top: 44px;
  }
}

/* ---------- Mobile horizontal-overflow fix ----------
   Bootstrap's .g-5 sets --bs-gutter-x: 3rem, giving the row -24px side
   margins, but .container only carries 12px of padding. The 12px difference
   pushed every g-5 row past the viewport edge and let the page scroll
   sideways on phones. Columns stack below lg anyway, so the wide horizontal
   gutter buys nothing there. Vertical spacing (--bs-gutter-y) is untouched. */
@media (max-width: 991.98px) {
  .row.g-5,
  .row.gx-5 {
    --bs-gutter-x: 1.5rem;
  }
}
