/* assets/css/style.css */
@font-face {
  font-family: 'Handel Gothic BT';
  src: url('../fonts/handel-gothic-bt.woff2') format('woff2'),
       url('../fonts/handel-gothic-bt.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}



:root {
  --primary: #1a3c6e;
  --accent: #0a7a85;         /* darkened for WCAG AA contrast (was #0e9aa7) */
  --accent-hover: #086e78;
  --light-bg: #f4f8fc;
  --text-dark: #1e293b;
  --text-muted: #4a5568;     /* darkened for WCAG AA contrast (was #64748b) */
  --white: #ffffff;
  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #ef4444;
  --footer-bg: #0f2444;
}

html,
body {
  overflow-x: hidden;
}

body {
  font-family: 'Poppins', sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  background-color: var(--white);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Handel Gothic BT', sans-serif;
  font-weight: bold !important;
  color: var(--primary);
  margin-bottom: 1rem;
}

p {
  color: var(--text-muted);
}

a {
  text-decoration: none;
  transition: all 0.3s ease;
}

/* Colors */
.text-primary {
  color: var(--primary) !important;
}

.text-accent {
  color: var(--accent) !important;
}

.bg-primary {
  background-color: var(--primary) !important;
}

.bg-accent {
  background-color: var(--accent) !important;
}

.bg-light-bg {
  background-color: var(--light-bg) !important;
}

/* Buttons */
.btn {
  padding: 0.6rem 1.5rem;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: #122b50;
  border-color: #122b50;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(26, 60, 110, 0.3);
}

.btn-accent {
  background-color: var(--accent);
  border-color: var(--accent);
  color: var(--white);
}

.btn-accent:hover,
.btn-accent:focus {
  background-color: var(--accent-hover);
  border-color: var(--accent-hover);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(14, 154, 167, 0.3);
}

button:focus,
.btn:focus {
  box-shadow: none !important;
}

/* Topbar */
.topbar {
  font-size: 0.85rem;
}

/* Navbar */
.navbar {
  padding: 1rem 0;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  padding: 0.5rem 0;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1) !important;
}

.navbar-nav .nav-link {
  color: var(--text-dark);
  padding: 0.5rem 1rem !important;
  position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--accent);
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background-color: var(--accent);
  transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  width: 70%;
}

/* Section specific padding */
.section-padding {
  padding: 80px 0;
}

.section-title {
  font-family: 'Handel Gothic BT', sans-serif;
  font-weight: bold !important;
  position: relative;
  padding-bottom: 15px;
  margin-bottom: 40px;
}

.section-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 60px;
  height: 3px;
  background-color: var(--accent);
}

.section-title.text-center::after {
  left: 50%;
  transform: translateX(-50%);
}

/* Feature/Service Cards */
.service-card {
  background: var(--white);
  border-radius: 12px;
  padding: 30px 20px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  height: 100%;
  border: 1px solid rgba(0, 0, 0, 0.02);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  border-color: var(--accent);
}

.service-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background-color: rgba(14, 154, 167, 0.1);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 20px;
  transition: all 0.3s ease;
}

.service-card:hover .service-icon {
  background-color: var(--accent);
  color: var(--white);
}

/* Footer */
.footer {
  background-color: var(--footer-bg);
  color: var(--white);
}

.text-light-muted {
  color: rgba(255, 255, 255, 0.82); /* improved contrast on dark footer bg */
}

/* Breadcrumbs Styling */
.breadcrumb-section {
  background-color: var(--primary);
  padding: 80px 0 60px;
  position: relative;
}

.breadcrumb-item {
  font-size: 0.95rem;
  font-weight: 400;
}

.breadcrumb-item+.breadcrumb-item::before {
  color: rgba(255, 255, 255, 0.4) !important;
  content: "/" !important;
  padding-right: 0.75rem;
}

.breadcrumb-item a {
  color: rgba(255, 255, 255, 0.8) !important;
  text-decoration: none;
  transition: all 0.3s ease;
}

.breadcrumb-item a:hover {
  color: var(--white) !important;
  opacity: 1;
}

.breadcrumb-item.active {
  color: var(--white) !important;
  font-weight: 500;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.3s ease;
}

.footer-links a:hover {
  color: var(--accent);
  padding-left: 5px;
}

.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.social-icons a:hover {
  background-color: var(--accent);
  transform: translateY(-3px);
}

/* Floating Elements */
.floating-btns-wrapper {
  position: fixed;
  right: 25px;
  bottom: 25px;
  z-index: 1000;
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 12px;
}

.floating-btn {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  text-align: center;
  font-size: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.floating-btn:hover {
  transform: scale(1.1);
  color: #fff;
}

.whatsapp-float {
  background-color: #25d366;
  color: #FFF;
}

.call-float {
  background-color: var(--primary);
  color: #FFF;
}

.back-to-top {
  position: fixed;
  bottom: 25px;
  left: 25px;
  width: 45px;
  height: 45px;
  background: var(--accent);
  color: var(--white);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--primary);
  transform: translateY(-3px);
}

/* Badges / statuses */
.badge-pending {
  background-color: var(--warning);
  color: #fff;
}

.badge-confirmed {
  background-color: var(--primary);
  color: #fff;
}

.badge-completed {
  background-color: var(--success);
  color: #fff;
}

.badge-cancelled {
  background-color: var(--danger);
  color: #fff;
}

/* Dynamic UI utilities */
.hover-lift {
  transition: transform 0.2s;
}

.hover-lift:hover {
  transform: translateY(-5px);
}

/* Form Elements */
.form-control:focus,
.form-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 0.25rem rgba(14, 154, 167, 0.25);
}

/* Utility classes */
.max-w-700 {
  max-width: 700px;
}

.object-fit-cover {
  object-fit: cover;
}

.limit-lines-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* =============================================
   RESPONSIVE MEDIA QUERIES
   ============================================= */

/* ---------- Extra Small Devices (phones, <576px) ---------- */
@media (max-width: 575.98px) {

  body {
    padding-bottom: 70px;
  }

  /* Typography */
  h1,
  .display-4 {
    font-size: 1.75rem !important;
  }

  h2,
  .section-title {
    font-size: 1.4rem !important;
  }

  h3,
  .display-5 {
    font-size: 1.5rem !important;
  }

  h4 {
    font-size: 1.1rem;
  }

  h5 {
    font-size: 1rem;
  }

  .lead {
    font-size: 0.95rem !important;
  }

  /* Sections */
  .section-padding {
    padding: 40px 0;
  }

  .section-title {
    margin-bottom: 20px;
    padding-bottom: 10px;
  }

  /* Navbar */
  .navbar-brand img {
    height: 40px !important;
  }

  .navbar-brand span {
    font-size: 0.9rem !important;
  }

  .navbar-collapse {
    background: #fff;
    padding: 15px;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1050;
  }

  .navbar-nav .nav-link {
    padding: 10px 15px !important;
    border-bottom: 1px solid #f0f0f0;
  }

  .navbar-nav .nav-link::after {
    display: none;
  }

  .navbar-collapse .btn {
    width: 100%;
    margin-top: 10px;
  }

  /* Hero Section */
  .hero {
    padding: 30px 0 !important;
  }

  .hero .container {
    padding-top: 20px !important;
    padding-bottom: 20px !important;
  }

  .hero .badge {
    font-size: 0.75rem;
  }

  .hero-image-wrapper {
    width: 200px !important;
    height: 200px !important;
    padding: 8px !important;
  }

  .hero-image-wrapper img {
    width: 200px !important;
    height: 200px !important;
  }

  .floating-badge {
    display: none !important;
  }

  .trust-badges {
    flex-wrap: wrap;
    gap: 15px !important;
    justify-content: center;
  }

  .trust-badges>div {
    text-align: center;
  }

  .hero .btn-lg {
    padding: 10px 20px;
    font-size: 0.9rem;
  }

  .hero .d-flex.flex-wrap {
    justify-content: center;
  }

  /* Stats Bar */
  .stats-bar .display-5 {
    font-size: 2rem !important;
  }

  .stats-bar .stat-item {
    padding: 10px !important;
  }

  .stats-bar .border-start {
    border: none !important;
  }

  .stats-bar .small {
    font-size: 0.65rem !important;
  }

  /* Services */
  .service-card {
    padding: 20px 15px;
  }

  .service-card:hover {
    transform: translateY(-3px);
  }

  .service-icon {
    width: 60px !important;
    height: 60px !important;
  }

  /* About / Doctors */
  .about-preview .d-flex.align-items-center {
    flex-direction: column;
    text-align: center;
  }

  .about-preview img,
  .about-preview .bg-light-bg.rounded-circle {
    margin-bottom: 10px;
    margin-right: 0 !important;
  }

  /* Appointment Form (mini h3 in about-preview section) */
  .about-preview .bg-white.p-4 {
    padding: 20px !important;
  }

  .about-preview .bg-white.p-4 h3 {
    font-size: 1.15rem;
  }

  /* Why Choose Us */
  .why-choose-us .fa-3x {
    font-size: 2rem !important;
  }

  .why-choose-us .p-3 {
    padding: 15px 10px !important;
  }

  /* Testimonials */
  .testimonials .bg-white.p-4 {
    padding: 20px !important;
  }

  /* Gallery */
  .gallery-preview .col-6 .overflow-hidden {
    height: 140px !important;
  }

  /* Blog Cards */
  .blog-preview .card-img-top {
    height: 160px !important;
  }

  /* FAQ */
  .accordion-button {
    font-size: 0.9rem;
    padding: 12px 16px;
  }

  .accordion-body {
    font-size: 0.85rem;
  }

  /* Footer */
  .footer {
    text-align: center;
  }

  .footer h5 {
    margin-top: 20px;
  }

  .footer .d-flex.mb-3 {
    justify-content: center;
  }

  .footer .social-icons {
    justify-content: center;
  }

  .footer .contact-info .d-flex {
    justify-content: center;
  }

  /* Floating buttons */
  .floating-btns-wrapper {
    right: 16px;
    bottom: 16px;
    gap: 10px;
  }

  .floating-btn {
    width: 44px;
    height: 44px;
    font-size: 20px;
  }

  .back-to-top {
    width: 38px;
    height: 38px;
    font-size: 1rem;
    left: 15px;
    bottom: 15px;
  }

  /* Breadcrumb pages */
  .bg-primary.pt-5 .display-5 {
    font-size: 1.5rem !important;
  }

  .bg-primary.pt-5 .breadcrumb {
    font-size: 0.8rem;
  }

  /* Blog detail page */
  .blog-detail .p-4.p-md-5 {
    padding: 20px !important;
  }

  .article-body {
    font-size: 0.95rem;
  }

  .article-body h2 {
    font-size: 1.3rem;
  }

  .article-body h3 {
    font-size: 1.15rem;
  }
}

/* ---------- Small Devices (landscape phones, 576px - 767px) ---------- */
@media (min-width: 576px) and (max-width: 767.98px) {

  h1,
  .display-4 {
    font-size: 2rem !important;
  }

  .section-padding {
    padding: 50px 0;
  }

  .hero {
    padding: 30px 0 !important;
  }

  .hero-image-wrapper {
    width: 250px !important;
    height: 250px !important;
  }

  .hero-image-wrapper img {
    width: 250px !important;
    height: 250px !important;
  }

  .floating-badge {
    display: none !important;
  }

  .stats-bar .display-5 {
    font-size: 2.2rem !important;
  }

  .stats-bar .border-start {
    border: none !important;
  }

  .gallery-preview .col-6 .overflow-hidden {
    height: 160px !important;
  }

  .blog-preview .card-img-top {
    height: 180px !important;
  }
}

/* ---------- Medium Devices (tablets, 768px - 991px) ---------- */
@media (min-width: 768px) and (max-width: 991.98px) {
  .section-padding {
    padding: 60px 0;
  }

  .hero-image-wrapper {
    width: 300px !important;
    height: 300px !important;
  }

  .hero-image-wrapper img {
    width: 300px !important;
    height: 300px !important;
  }

  .floating-badge {
    display: none !important;
  }

  .navbar-collapse {
    background: #fff;
    padding: 15px;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1050;
  }

  .navbar-nav .nav-link {
    padding: 10px 15px !important;
    border-bottom: 1px solid #f0f0f0;
  }

  .navbar-nav .nav-link::after {
    display: none;
  }

  .navbar-collapse .btn {
    width: 100%;
    margin-top: 10px;
  }

  .stats-bar .display-5 {
    font-size: 2.5rem !important;
  }
}

/* ---------- Large Devices (desktops, 992px+) ---------- */
@media (min-width: 992px) {
  .hero-image-wrapper {
    width: 380px !important;
    height: 380px !important;
  }

  .hero-image-wrapper img {
    width: 380px !important;
    height: 380px !important;
  }

  .service-card {
    padding: 30px 20px;
  }

  .section-padding {
    padding: 80px 0;
  }
}

/* ---------- Extra Large Devices (≥1200px) ---------- */
@media (min-width: 1200px) {
  .hero-image-wrapper {
    width: 400px !important;
    height: 400px !important;
  }

  .hero-image-wrapper img {
    width: 400px !important;
    height: 400px !important;
  }
}

/* ---------- Print Styles ---------- */
@media print {

  .topbar,
  .navbar,
  .footer,
  .floating-btn,
  .back-to-top,
  .whatsapp-float,
  .call-float {
    display: none !important;
  }

  .section-padding {
    padding: 20px 0;
  }

  body {
    font-size: 12pt;
  }
}

/* =============================================================
   PERFORMANCE: font-display overrides for CDN icon fonts
   These @font-face rules override the CDN FontAwesome CSS to
   add font-display:swap, eliminating FOIT and reducing FCP.
   The browser uses the last matching @font-face rule it finds.
============================================================= */



/* Google Fonts — Poppins (font-display override) */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: local('Poppins Regular'), local('Poppins-Regular');
}

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: local('Poppins SemiBold'), local('Poppins-SemiBold');
}

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: local('Poppins Bold'), local('Poppins-Bold');
}

/* =============================================================
   PERFORMANCE: Image layout stability helpers
   Prevent layout shifts on service/gallery images
============================================================= */

/* Service card icon images — known display size 80×80 */
.service-icon img {
  width: 80px;
  height: 80px;
  aspect-ratio: 1 / 1;
}

/* Prevent layout shift for gallery images */
.gallery-preview .overflow-hidden {
  contain: layout style;
}
/* Form Elements */
.form-control.bg-light, .form-select.bg-light {
  background-color: #eff2f6 !important;
}
