/* ==========================================================================
   Antigen Pathlabs - custom theme layer on top of Bootstrap 5
   Brand palette carried over from the WordPress (Elementor) build.
   ========================================================================== */

:root {
  --ap-primary: #12c3d2;
  --ap-primary-dark: #0ea5b2;
  --ap-red: #e63450;
  --ap-blue: #1560b0;
  --ap-dark: #1a202c;
  --ap-body: #4a5568;
  --ap-muted: #718096;
  --ap-light: #f7fafc;
  --ap-border: #edf2f7;
}

body {
  font-family: 'Roboto', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--ap-body);
  font-size: 1rem;
  line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Roboto', system-ui, sans-serif;
  font-weight: 700;
  color: var(--ap-dark);
}

a { text-decoration: none; }

.text-primary-ap { color: var(--ap-primary) !important; }
.bg-primary-ap { background-color: var(--ap-primary) !important; }
.bg-light-ap { background-color: var(--ap-light) !important; }

/* Buttons ---------------------------------------------------------------- */
.btn-ap {
  background-color: var(--ap-primary);
  border-color: var(--ap-primary);
  color: #fff;
  font-weight: 600;
  padding: 0.65rem 1.6rem;
  border-radius: 50rem;
  transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}
.btn-ap:hover, .btn-ap:focus {
  background-color: var(--ap-primary-dark);
  border-color: var(--ap-primary-dark);
  color: #fff;
  transform: translateY(-2px);
}

.btn-ap-outline {
  background-color: transparent;
  border: 2px solid var(--ap-primary);
  color: var(--ap-primary);
  font-weight: 600;
  padding: 0.6rem 1.6rem;
  border-radius: 50rem;
  transition: all .2s ease;
}
.btn-ap-outline:hover {
  background-color: var(--ap-primary);
  color: #fff;
}

.btn-ap-red {
  background-color: var(--ap-red);
  border-color: var(--ap-red);
  color: #fff;
  font-weight: 600;
  padding: 0.65rem 1.6rem;
  border-radius: 50rem;
}
.btn-ap-red:hover { background-color: #c92840; color: #fff; }

/* Top utility bar -------------------------------------------------------- */
.topbar {
  background-color: var(--ap-dark);
  color: #cbd5e0;
  font-size: 0.875rem;
  padding: 0.5rem 0;
}
.topbar a { color: #cbd5e0; }
.topbar a:hover { color: var(--ap-primary); }

/* Navbar ----------------------------------------------------------------- */
.navbar-ap {
  background-color: #fff;
  box-shadow: 0 2px 14px rgba(0, 0, 0, .07);
  padding: 0.6rem 0;
}
.navbar-ap .navbar-brand img { height: 58px; width: auto; }
.navbar-ap .nav-link {
  color: var(--ap-dark);
  font-weight: 500;
  padding: 0.5rem 0.9rem !important;
  position: relative;
}
.navbar-ap .nav-link:hover,
.navbar-ap .nav-link.active { color: var(--ap-primary); }
.navbar-ap .nav-link.active::after {
  content: "";
  position: absolute;
  left: 0.9rem;
  right: 0.9rem;
  bottom: 0.15rem;
  height: 2px;
  background: var(--ap-primary);
}

/* Hero carousel ---------------------------------------------------------- */
/* Banner artwork is used as-is from the original site, so slides are plain
   images with no text overlay. Desktop and mobile crops are swapped by media
   query rather than scaled, matching how the WordPress slider behaved. */
.hero-carousel .carousel-item img {
  width: 100%;
  height: auto;
  display: block;
}
/* Both selectors qualify the img element so they outrank the rule above. */
.hero-carousel .carousel-item img.banner-mobile { display: none; }

@media (max-width: 767.98px) {
  .hero-carousel .carousel-item img.banner-desktop { display: none; }
  .hero-carousel .carousel-item img.banner-mobile { display: block; }
}

.hero-carousel .carousel-control-prev-icon,
.hero-carousel .carousel-control-next-icon {
  background-color: rgba(0, 0, 0, .35);
  border-radius: 50%;
  padding: 1.1rem;
  background-size: 45%;
}
.hero-carousel .carousel-indicators [data-bs-target] {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 0;
  background-color: rgba(0, 0, 0, .3);
}
.hero-carousel .carousel-indicators .active { background-color: var(--ap-primary); }

/* Page header (inner pages) ---------------------------------------------- */
.page-header {
  background: linear-gradient(rgba(10, 30, 60, .72), rgba(10, 30, 60, .72)),
              url('../img/page-header.jpg') center/cover no-repeat;
  color: #fff;
  padding: 5rem 0 4rem;
  text-align: center;
}
.page-header h1 { color: #fff; font-size: 2.5rem; }
.page-header .breadcrumb {
  justify-content: center;
  margin-bottom: 0;
  background: transparent;
}
.page-header .breadcrumb a { color: var(--ap-primary); }
.page-header .breadcrumb-item + .breadcrumb-item::before { color: #cbd5e0; }
.page-header .breadcrumb-item.active { color: #e2e8f0; }

/* Section helpers -------------------------------------------------------- */
.section { padding: 4.5rem 0; }
.section-title { margin-bottom: 2.75rem; }
.section-title .eyebrow {
  color: var(--ap-primary);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: .8rem;
  margin-bottom: .5rem;
  display: block;
}
.section-title h1,
.section-title h2 { font-size: 2.1rem; margin-bottom: .75rem; }
.section-title p { color: var(--ap-muted); max-width: 720px; }
.section-title.text-center p { margin-inline: auto; }

/* Service / feature cards ------------------------------------------------ */
.service-card {
  background: #fff;
  border: 1px solid var(--ap-border);
  border-radius: .9rem;
  padding: 2rem 1.5rem;
  height: 100%;
  text-align: center;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 34px rgba(18, 195, 210, .16);
  border-color: var(--ap-primary);
}
.service-card img { height: 68px; width: auto; margin-bottom: 1.15rem; }
.service-card h3 { font-size: 1.15rem; margin-bottom: .6rem; }
.service-card p { font-size: .95rem; color: var(--ap-muted); margin-bottom: 0; }

/* Package cards ---------------------------------------------------------- */
.package-card {
  background: #fff;
  border: 1px solid var(--ap-border);
  border-radius: .9rem;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease;
}
.package-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .1);
}
.package-card .package-media {
  aspect-ratio: 3 / 2;
  overflow: hidden;
}
.package-card .package-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.package-card .package-body {
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}
.package-card h3 { font-size: 1.1rem; margin-bottom: .5rem; }
.package-card .package-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ap-red);
}
.package-card .package-price del {
  font-size: 1rem;
  font-weight: 400;
  color: var(--ap-muted);
  margin-left: .4rem;
}
.package-card ul {
  list-style: none;
  padding: 0;
  margin: .9rem 0 1.25rem;
  font-size: .92rem;
}
.package-card ul li {
  padding-left: 1.5rem;
  position: relative;
  margin-bottom: .35rem;
}
.package-card ul li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--ap-primary);
  font-weight: 700;
}
.package-card .btn-ap { margin-top: auto; }

.ribbon {
  position: absolute;
  top: 1rem;
  right: 0;
  background: var(--ap-red);
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  padding: .3rem .85rem;
  border-radius: .35rem 0 0 .35rem;
  letter-spacing: .04em;
}

/* Stats ------------------------------------------------------------------ */
.stats {
  background: linear-gradient(rgba(18, 195, 210, .92), rgba(18, 195, 210, .92)),
              url('../img/doctor-bg.png') center/cover no-repeat;
  color: #fff;
  padding: 3.25rem 0;
}
.stats .stat-value { font-size: 2.5rem; font-weight: 700; line-height: 1; }
.stats .stat-label { font-size: .95rem; opacity: .92; margin-top: .4rem; }

/* Why choose us ---------------------------------------------------------- */
.why-item { display: flex; gap: 1rem; align-items: flex-start; }
.why-item img { height: 54px; width: auto; flex: 0 0 auto; }
.why-item h3 { font-size: 1.05rem; margin-bottom: .35rem; }
.why-item p { font-size: .93rem; color: var(--ap-muted); margin-bottom: 0; }

/* CTA strip -------------------------------------------------------------- */
.cta-strip {
  background: var(--ap-dark);
  color: #fff;
  padding: 3rem 0;
}
.cta-strip h2 { color: #fff; font-size: 1.85rem; }
.cta-strip p { color: #cbd5e0; margin-bottom: 0; }

/* Accordion (FAQs) ------------------------------------------------------- */
.accordion-button:not(.collapsed) {
  background-color: rgba(18, 195, 210, .09);
  color: var(--ap-dark);
  box-shadow: none;
}
.accordion-button:focus {
  box-shadow: 0 0 0 .2rem rgba(18, 195, 210, .2);
  border-color: var(--ap-primary);
}
.accordion-button { font-weight: 600; }

/* Forms ------------------------------------------------------------------ */
.form-control, .form-select {
  padding: .7rem .95rem;
  border-color: #dde3ea;
}
.form-control:focus, .form-select:focus {
  border-color: var(--ap-primary);
  box-shadow: 0 0 0 .2rem rgba(18, 195, 210, .18);
}

/* Booking form ----------------------------------------------------------- */
/* Honeypot: kept out of the layout and off the tab order, but not
   `display:none`, which some bots skip. */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.booking-form select[multiple] {
  min-height: 190px;
  padding: .4rem;
}
.booking-form select[multiple] option {
  padding: .35rem .5rem;
  border-radius: .25rem;
}
.booking-form select[multiple] option:checked {
  background: var(--ap-primary) linear-gradient(0deg, var(--ap-primary) 0%, var(--ap-primary) 100%);
  color: #fff;
}
.booking-form optgroup {
  font-weight: 700;
  color: var(--ap-dark);
}

.booking-embed {
  background: #fff;
  border: 1px solid var(--ap-border);
  border-radius: .9rem;
  padding: 1.75rem;
}

#bookingModal .modal-header {
  background: var(--ap-primary);
  color: #fff;
}
#bookingModal .modal-header .modal-title { color: #fff; }
#bookingModal .btn-close { filter: invert(1) grayscale(100%) brightness(200%); }

@media (min-width: 768px) {
  .w-md-auto { width: auto !important; }
}

/* Footer ----------------------------------------------------------------- */
.footer {
  background: var(--ap-dark);
  color: #a0aec0;
  padding: 3.5rem 0 0;
  font-size: .94rem;
}
.footer h4 {
  color: #fff;
  font-size: 1.05rem;
  margin-bottom: 1.1rem;
}
.footer a { color: #a0aec0; }
.footer a:hover { color: var(--ap-primary); }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer ul li { margin-bottom: .55rem; }
.footer .footer-logo {
  height: 62px;
  width: auto;
  background: #fff;
  padding: .35rem .5rem;
  border-radius: .4rem;
  margin-bottom: 1rem;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .1);
  margin-top: 2.5rem;
  padding: 1.2rem 0;
  font-size: .875rem;
}

/* Floating contact buttons ----------------------------------------------- */
.floating-contact {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 1030;
  display: flex;
  flex-direction: column;
  gap: .6rem;
}
.floating-contact a {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .22);
  background: #fff;
  transition: transform .2s ease;
}
.floating-contact a:hover { transform: scale(1.08); }
.floating-contact img { width: 30px; height: 30px; }

@media (max-width: 575.98px) {
  .section { padding: 3rem 0; }
  .section-title h2 { font-size: 1.6rem; }
  .page-header { padding: 3.25rem 0 2.5rem; }
  .page-header h1 { font-size: 1.85rem; }
  .stats .stat-value { font-size: 2rem; }
}
