/* DoctorDoctor — Custom styles on top of Bootstrap 5 */

/* ── Font faces ── */
@font-face { font-family: 'Poppins'; font-weight: 400; font-style: normal; font-display: swap; src: url('../fonts/poppins-400.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-weight: 500; font-style: normal; font-display: swap; src: url('../fonts/poppins-500.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-weight: 600; font-style: normal; font-display: swap; src: url('../fonts/poppins-600.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-weight: 700; font-style: normal; font-display: swap; src: url('../fonts/poppins-700.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 400; font-style: normal; font-display: swap; src: url('../fonts/inter-400.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 500; font-style: normal; font-display: swap; src: url('../fonts/inter-500.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 600; font-style: normal; font-display: swap; src: url('../fonts/inter-600.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 700; font-style: normal; font-display: swap; src: url('../fonts/inter-700.woff2') format('woff2'); }

/* ── Base ── */
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; color: #02090b; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, h5, h6, .font-heading { font-family: 'Poppins', sans-serif; }
img { max-width: 100%; height: auto; }

/* ── Brand colors ── */
:root {
  --dd-primary: #21B5E2;
  --dd-primary-dark: #1a91b5;
  --dd-dark: #02090b;
  --dd-dark-2: #1b2123;
  --dd-grey: #d9dada;
  --dd-light: #f2f2f2;
  --dd-white: #ffffff;
  --bs-primary: #21B5E2;
  --bs-primary-rgb: 33, 181, 226;
}

/* ── Color scheme sections ── */
.scheme-1 { background-color: #ffffff; color: #02090b; }
.scheme-2 { background-color: #02090b; color: #ffffff; }
.scheme-3 { background-color: #1b2123; color: #ffffff; }
.scheme-4 { background-color: #d9dada; color: #02090b; }
.scheme-5 { background-color: #f2f2f2; color: #02090b; }

/* ── Section padding ── */
.section-padding { padding: 4rem 0; }
@media (min-width: 768px) { .section-padding { padding: 6rem 0; } }
@media (min-width: 992px) { .section-padding { padding: 7rem 0; } }

/* ── Section side padding for full-bleed backgrounds ── */
.section-wrap { padding-left: 5%; padding-right: 5%; }

/* ── Override Bootstrap container max-width ── */
.container { max-width: 1280px; }

/* ── Brand buttons ── */
.btn-dd-primary {
  background-color: var(--dd-primary);
  border-color: var(--dd-primary);
  color: #fff;
  font-weight: 500;
  padding: 0.5rem 1.25rem;
  border-radius: 0.375rem;
  transition: all 0.2s;
}
.btn-dd-primary:hover, .btn-dd-primary:focus {
  background-color: var(--dd-primary-dark);
  border-color: var(--dd-primary-dark);
  color: #fff;
}
.btn-dd-secondary {
  background-color: rgba(2, 9, 11, 0.05);
  border: 1px solid transparent;
  color: #02090b;
  font-weight: 500;
  padding: 0.5rem 1.25rem;
  border-radius: 0.375rem;
  transition: all 0.2s;
}
.btn-dd-secondary:hover { background-color: rgba(2, 9, 11, 0.12); }

.scheme-2 .btn-dd-secondary,
.scheme-3 .btn-dd-secondary {
  background-color: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.scheme-2 .btn-dd-secondary:hover,
.scheme-3 .btn-dd-secondary:hover {
  background-color: rgba(255, 255, 255, 0.2);
}
.btn-dd-outline {
  background: transparent;
  border: 1px solid #02090b;
  color: #02090b;
  font-weight: 500;
  padding: 0.5rem 1.25rem;
  border-radius: 0.375rem;
}
.btn-dd-outline:hover { background: #02090b; color: #fff; }
.scheme-2 .btn-dd-outline,
.scheme-3 .btn-dd-outline { border-color: #fff; color: #fff; }
.scheme-2 .btn-dd-outline:hover,
.scheme-3 .btn-dd-outline:hover { background: #fff; color: #02090b; }

/* ── Link arrow ── */
.link-arrow { text-decoration: none; font-weight: 500; display: inline-flex; align-items: center; gap: 0.25rem; }
.link-arrow::after { content: '→'; transition: transform 0.2s; }
.link-arrow:hover::after { transform: translateX(4px); }

/* ── Step number badges ── */
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.5rem; height: 2.5rem; border-radius: 50%;
  background-color: var(--dd-primary); color: #fff;
  font-weight: 700; font-size: 0.875rem;
}

/* ── Label pills ── */
.label-pill {
  display: inline-block; font-size: 0.875rem; font-weight: 600;
  padding: 0.25rem 0.75rem; border-radius: 9999px;
  background: rgba(33, 181, 226, 0.1); color: var(--dd-primary);
}
.scheme-2 .label-pill, .scheme-3 .label-pill {
  background: rgba(33, 181, 226, 0.2);
}

/* ── Card hover ── */
.card-hover { transition: transform 0.2s, box-shadow 0.2s; }
.card-hover:hover { transform: translateY(-4px); box-shadow: 0 12px 24px rgba(0,0,0,0.08); }

/* ── Image placeholder ── */
.img-placeholder {
  background: #e5e7eb; display: flex; align-items: center; justify-content: center;
  border-radius: 0.5rem; min-height: 200px; color: #9ca3af;
}
.img-placeholder svg { width: 48px; height: 48px; opacity: 0.5; }

/* ── Specialty overlay cards ── */
.specialty-card {
  position: relative; overflow: hidden; border-radius: 0.5rem;
  min-height: 250px; display: flex; align-items: flex-end;
}
.specialty-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.specialty-card .overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 60%);
}
.specialty-card-body { position: relative; z-index: 1; color: #fff; padding: 1.5rem; }
.specialty-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.25rem; height: 2.25rem; border-radius: 50%;
  background-color: var(--dd-primary);
}
.specialty-icon svg { stroke: #fff; }
.specialty-card-body .link-arrow::after { color: #fff; }
.specialty-card-body .link-arrow:hover { color: var(--dd-primary); }

/* ── CTA icons ── */
.cta-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 3rem; height: 3rem; border-radius: 50%;
  background-color: rgba(33, 181, 226, 0.1);
}

/* ── Testimonial card ── */
.testimonial-card {
  border: 1px solid #e5e7eb; border-radius: 0.75rem; padding: 2rem;
}
.testimonial-stars { color: #02090b; font-size: 1.125rem; letter-spacing: 2px; }
.scheme-2 .testimonial-stars { color: #fbbf24; }

/* ── FAQ accordion ── */
.faq-item { border-bottom: 1px solid rgba(0,0,0,0.1); }
.scheme-2 .faq-item, .scheme-3 .faq-item { border-bottom-color: rgba(255,255,255,0.15); }
.faq-item:last-child { border-bottom: none; }
.faq-trigger {
  width: 100%; text-align: left; background: none; border: none;
  padding: 1.25rem 0; font-size: 1.125rem; font-weight: 600;
  display: flex; justify-content: space-between; align-items: center;
  color: inherit; cursor: pointer;
}
.faq-trigger:hover { color: var(--dd-primary); }
.faq-trigger .icon { font-size: 1.5rem; font-weight: 300; transition: transform 0.3s; flex-shrink: 0; }
.faq-trigger[aria-expanded="true"] .icon { transform: rotate(45deg); }
.faq-content { max-height: 0; overflow: hidden; transition: max-height 0.3s ease-out; }
.faq-content .inner { padding-bottom: 1.25rem; opacity: 0.8; }

/* ── Scroll fade-up animation ── */
.fade-up { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ── Navbar dark ── */
.navbar-dd {
  background-color: var(--dd-dark);
  padding: 0 5%;
  z-index: 1030;
}
.navbar-dd .navbar-brand img { height: 2.5rem; }
@media (min-width: 992px) { .navbar-dd .navbar-brand img { height: 3rem; } }
.navbar-dd .nav-link { color: rgba(255,255,255,0.85); font-weight: 500; padding: 0.75rem 1rem !important; }
.navbar-dd .nav-link:hover, .navbar-dd .nav-link.active { color: #fff; }
.navbar-dd .navbar-toggler { border: none; padding: 0.25rem; }
.navbar-dd .navbar-toggler:focus { box-shadow: none; }
.navbar-dd .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ── Mega dropdown ── */
.mega-dropdown { position: static !important; }
.mega-dropdown .dropdown-menu {
  width: 100%; left: 0; right: 0; border: none;
  background: var(--dd-dark); border-top: 1px solid rgba(255,255,255,0.1);
  border-radius: 0; padding: 2rem 5%;
}
.mega-dropdown .dropdown-menu a {
  color: rgba(255,255,255,0.85); text-decoration: none; display: flex; gap: 0.75rem;
  padding: 0.5rem 0; align-items: flex-start;
}
.mega-dropdown .dropdown-menu a:hover { color: var(--dd-primary); }
.mega-dropdown .dropdown-menu .menu-label {
  font-size: 0.8125rem; font-weight: 600; color: rgba(255,255,255,0.5);
  text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.75rem;
}
.mega-dropdown .dropdown-menu .link-title { font-weight: 600; display: block; }
.mega-dropdown .dropdown-menu .link-desc { font-size: 0.875rem; color: rgba(255,255,255,0.5); display: block; }

/* ── Language dropdown ── */
.lang-dropdown .dropdown-menu {
  max-height: 320px; overflow-y: auto; background: var(--dd-dark-2);
  border: 1px solid rgba(255,255,255,0.1); border-radius: 0.5rem;
}
.lang-dropdown .dropdown-item { color: rgba(255,255,255,0.85); padding: 0.375rem 1rem; font-size: 0.875rem; }
.lang-dropdown .dropdown-item:hover, .lang-dropdown .dropdown-item.active { background: rgba(255,255,255,0.1); color: #fff; }

/* ── Footer ── */
.footer-dd { background-color: var(--dd-dark); color: rgba(255,255,255,0.7); }
.footer-dd a { color: rgba(255,255,255,0.85); text-decoration: none; }
.footer-dd a:hover { color: var(--dd-primary); }
.footer-dd .footer-social a { color: #fff; }
.footer-dd .footer-social a:hover { color: var(--dd-primary); }

/* ── Pricing table ── */
.pricing-table th, .pricing-table td { padding: 0.75rem 1rem; vertical-align: middle; }
.pricing-table thead th { font-weight: 700; border-bottom: 2px solid #dee2e6; }
.pricing-table .section-header td { font-weight: 700; background: rgba(33,181,226,0.05); font-size: 0.9375rem; }
.pricing-table .check-icon { color: var(--dd-primary); }

/* ── Map styles ── */
.leaflet-popup-content { font-family: 'Inter', sans-serif; font-size: 13px; }

/* ── RTL ── */
[dir="rtl"] .link-arrow::after { content: '←'; }

/* ── Sticky TOC sidebar ── */
@media (min-width: 992px) {
  .sticky-toc { position: sticky; top: 6rem; }
}
.toc-link { color: rgba(2,9,11,0.6); text-decoration: none; display: block; padding: 0.375rem 0; font-size: 0.9375rem; border-left: 2px solid transparent; padding-left: 1rem; }
.toc-link:hover, .toc-link.active { color: var(--dd-primary); border-left-color: var(--dd-primary); }

/* ── Alert/flash ── */
.alert-dd-success { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; border-radius: 0.375rem; }
.alert-dd-danger { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; border-radius: 0.375rem; }

/* ── Comparison pricing cards ── */
.pricing-card { border: 1px solid #e5e7eb; border-radius: 0.75rem; padding: 2.5rem; height: 100%; }
.pricing-card.featured { border-color: var(--dd-primary); box-shadow: 0 0 0 1px var(--dd-primary); }
.pricing-card .price { font-size: 3.5rem; font-weight: 700; line-height: 1; }
.pricing-card .price-period { font-size: 1rem; font-weight: 400; opacity: 0.6; }
.pricing-card .feature-list { list-style: none; padding: 0; margin: 1.5rem 0; }
.pricing-card .feature-list li { padding: 0.5rem 0; display: flex; align-items: flex-start; gap: 0.75rem; }
.pricing-card .feature-list .check { color: var(--dd-primary); flex-shrink: 0; font-weight: 700; }

/* ── Hero banner for inner pages ── */
.hero-banner {
  padding: 5rem 0 4rem;
  text-align: center;
}
@media (min-width: 768px) { .hero-banner { padding: 6rem 0 5rem; } }
.hero-banner h1 { font-weight: 700; margin-bottom: 1rem; }
.hero-banner .lead { opacity: 0.85; max-width: 640px; margin: 0 auto; }

/* ── Contact info card ── */
.contact-card { text-align: center; }
.contact-card .icon-wrap {
  width: 3rem; height: 3rem; margin: 0 auto 1rem;
  display: flex; align-items: center; justify-content: center;
}
.contact-card .icon-wrap svg { width: 1.5rem; height: 1.5rem; }
