/* ============================================================
   FLYDOC - Main Stylesheet
   Design language: premium, modern healthcare-tech, minimal
   ============================================================ */

:root {
  --flydoc-navy: #0b1f33;
  --flydoc-teal: #0e7c86;
  --flydoc-teal-light: #e5f4f4;
  --flydoc-accent: #21b6a8;
  --flydoc-coral: #ff6b5e;
  --flydoc-gold: #f2a93b;
  --flydoc-ink: #10202c;
  --flydoc-muted: #5b6b76;
  --flydoc-bg-soft: #f6f9fa;
  --flydoc-border: #e3e9ec;
  --flydoc-white: #ffffff;
  --flydoc-radius: 16px;
  --flydoc-radius-lg: 26px;
  --flydoc-shadow: 0 14px 36px rgba(11, 31, 51, 0.10);
  --flydoc-shadow-sm: 0 4px 14px rgba(11, 31, 51, 0.06);
  --flydoc-shadow-lg: 0 24px 60px rgba(11, 31, 51, 0.14);
  --font-display: 'Space Grotesk', 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--flydoc-ink);
  background: var(--flydoc-white);
  line-height: 1.7;
  font-size: 1.02rem;
}

h1, h2, h3, h4, h5, .flydoc-brand-text {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--flydoc-navy);
  letter-spacing: -0.025em;
  line-height: 1.18;
}
h6 { font-family: var(--font-display); font-weight: 600; color: var(--flydoc-navy); }

/* Readable rhythm for long-form content: consistent gap between
   paragraphs, headings and lists so pages don't read as one dense block. */
.flydoc-page-content, .testimonial-card p, .journey-detail p {
  font-size: 1.05rem;
  line-height: 1.8;
}
.flydoc-page-content p { margin-bottom: 1.35rem; max-width: 68ch; }
.flydoc-page-content h2 { margin-top: 2.75rem; margin-bottom: 1rem; font-size: clamp(1.4rem, 2.4vw, 1.85rem); }
.flydoc-page-content h2:first-child { margin-top: 0; }
.flydoc-page-content h3 { margin-top: 1.75rem; margin-bottom: 0.75rem; font-size: 1.2rem; }
.flydoc-page-content ul, .flydoc-page-content ol { margin-bottom: 1.35rem; padding-left: 1.35rem; }
.flydoc-page-content li { margin-bottom: 0.5rem; line-height: 1.7; }
.flydoc-page-content strong { color: var(--flydoc-navy); }
.flydoc-page-hero-img { max-height: 380px; object-fit: cover; box-shadow: var(--flydoc-shadow); }

.skip-link {
  position: absolute;
  top: -50px;
  left: 10px;
  background: var(--flydoc-navy);
  color: #fff;
  padding: 8px 14px;
  border-radius: 8px;
  z-index: 2000;
}
.skip-link:focus { top: 10px; }

/* ---------- Header ---------- */
.flydoc-header {
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--flydoc-border);
}
.flydoc-brand-text {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--flydoc-navy);
}
.navbar-nav .nav-link {
  color: var(--flydoc-ink);
  font-weight: 500;
  padding: 0.5rem 0.9rem;
}
.navbar-nav .nav-link:hover { color: var(--flydoc-teal); }

.btn-flydoc-primary {
  background: var(--flydoc-teal);
  color: #fff;
  border: none;
  border-radius: 100px;
  padding: 0.6rem 1.4rem;
  font-weight: 600;
  transition: all .2s ease;
}
.btn-flydoc-primary:hover { background: var(--flydoc-navy); color: #fff; transform: translateY(-1px); }

.btn-flydoc-outline {
  border: 1.5px solid var(--flydoc-navy);
  color: var(--flydoc-navy);
  border-radius: 100px;
  padding: 0.6rem 1.4rem;
  font-weight: 600;
  background: transparent;
  transition: all .2s ease;
}
.btn-flydoc-outline:hover { background: var(--flydoc-navy); color: #fff; }

.btn-flydoc-outline-light {
  border: 1.5px solid rgba(255,255,255,0.4);
  color: #fff;
  border-radius: 100px;
  font-weight: 600;
}
.btn-flydoc-outline-light:hover { background: #fff; color: var(--flydoc-navy); }

/* ---------- Hero ---------- */
.flydoc-hero {
  position: relative;
  background: linear-gradient(180deg, var(--flydoc-teal-light) 0%, #ffffff 75%);
  padding: 5.5rem 0 4.5rem;
  overflow: hidden;
}
.flydoc-hero::before, .flydoc-hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.35;
  z-index: 0;
  pointer-events: none;
}
.flydoc-hero::before {
  width: 340px; height: 340px;
  background: var(--flydoc-accent);
  top: -120px; right: -80px;
}
.flydoc-hero::after {
  width: 260px; height: 260px;
  background: var(--flydoc-gold);
  bottom: -100px; left: -60px;
  opacity: 0.18;
}
.flydoc-hero .container { position: relative; z-index: 1; }
.flydoc-hero h1 {
  font-size: clamp(2.1rem, 4.2vw, 3.35rem);
  line-height: 1.12;
}
.flydoc-hero .lead {
  color: var(--flydoc-muted);
  font-size: 1.18rem;
  max-width: 600px;
  line-height: 1.65;
}
.flydoc-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--flydoc-teal-light);
  color: var(--flydoc-teal);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border-radius: 100px;
  margin-bottom: 1.1rem;
}
.flydoc-eyebrow::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--flydoc-teal);
  display: inline-block;
}
.flydoc-trust-line {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--flydoc-teal);
}

/* ---------- Hero visual (homepage) ---------- */
.flydoc-hero-visual { position: relative; }
.flydoc-hero-img {
  width: 100%;
  border-radius: var(--flydoc-radius-lg);
  box-shadow: var(--flydoc-shadow-lg);
  aspect-ratio: 4/3;
  object-fit: cover;
}
.flydoc-hero-float-card {
  position: absolute;
  bottom: -18px; left: -18px;
  background: #fff;
  border-radius: var(--flydoc-radius);
  box-shadow: var(--flydoc-shadow);
  padding: 0.9rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  max-width: 250px;
  animation: floatCard 4s ease-in-out infinite;
}
@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.flydoc-soft-shadow { box-shadow: var(--flydoc-shadow); }

/* ---------- Sidebar (service/about pages) ---------- */
.flydoc-sidebar-sticky {
  position: sticky;
  top: 96px;
  align-self: start;
}
.flydoc-card-cta {
  background: linear-gradient(160deg, var(--flydoc-navy) 0%, #143349 100%);
  color: #fff;
  border: none;
}
.flydoc-card-cta h5, .flydoc-card-cta p { color: #fff; }
.flydoc-card-cta p { opacity: 0.8; }
.flydoc-card-cta .icon-badge { background: rgba(255,255,255,0.12); color: #fff; }

/* ---------- Sections ---------- */
.section { padding: 4.5rem 0; }
.section-soft { background: var(--flydoc-bg-soft); }
.section-navy { background: var(--flydoc-navy); color: #fff; }
.section-navy h2, .section-navy h3 { color: #fff; }
.section-title { font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: 0.75rem; }
.section-sub { color: var(--flydoc-muted); max-width: 680px; }
.section-navy .section-sub { color: rgba(255,255,255,0.75); }

/* ---------- Cards ---------- */
.flydoc-card {
  background: #fff;
  border: 1px solid var(--flydoc-border);
  border-radius: var(--flydoc-radius);
  padding: 1.75rem;
  transition: box-shadow .25s ease, transform .25s ease, border-color .25s ease;
}
/* Equal-height grid cards (homepage service/solution grids) opt in explicitly with .h-100 */
.flydoc-card.h-100, a.h-100 > .flydoc-card { height: 100%; }
.flydoc-card:hover { box-shadow: var(--flydoc-shadow); transform: translateY(-4px); border-color: rgba(14,124,134,0.25); }
.flydoc-card .icon-badge {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--flydoc-teal-light);
  color: var(--flydoc-teal);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

/* ---------- Patient Journey (interactive) ---------- */
.journey-track {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  padding: 2rem 0 1rem;
}
.journey-step {
  background: #fff;
  border: 1px solid var(--flydoc-border);
  border-radius: var(--flydoc-radius);
  padding: 1.25rem 1rem;
  width: 150px;
  text-align: center;
  cursor: pointer;
  transition: all .25s ease;
  position: relative;
}
.journey-step .num {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--flydoc-teal-light);
  color: var(--flydoc-teal);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  margin: 0 auto 0.6rem;
  font-size: 0.85rem;
}
.journey-step.active, .journey-step:hover {
  border-color: var(--flydoc-teal);
  box-shadow: var(--flydoc-shadow-sm);
  transform: translateY(-2px);
}
.journey-step.active .num { background: var(--flydoc-teal); color: #fff; }
.journey-step .label { font-weight: 600; font-size: 0.9rem; }
.journey-arrow { align-self: center; color: var(--flydoc-border); font-size: 1.3rem; display: none; }
@media (min-width: 992px) { .journey-arrow { display: block; } }

.journey-detail {
  background: var(--flydoc-teal-light);
  border-radius: var(--flydoc-radius-lg);
  padding: 2rem;
  margin-top: 1.5rem;
  min-height: 110px;
}

/* ---------- Counters ---------- */
.stat-block { text-align: center; padding: 1rem; }
.stat-number {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  color: var(--flydoc-teal);
}
.stat-label { color: var(--flydoc-muted); font-size: 0.9rem; }
.stat-source { color: var(--flydoc-muted); font-size: 0.72rem; font-style: italic; }

/* ---------- Testimonials / clients ---------- */
.testimonial-card {
  background: #fff;
  border: 1px solid var(--flydoc-border);
  border-radius: var(--flydoc-radius);
  padding: 1.85rem;
  height: 100%;
  position: relative;
}
.testimonial-card::before {
  content: '\201C';
  font-family: var(--font-display);
  font-size: 3.5rem;
  color: var(--flydoc-teal-light);
  position: absolute;
  top: 0.5rem; right: 1.25rem;
  line-height: 1;
  z-index: 0;
}
.testimonial-quote { color: var(--flydoc-ink); position: relative; z-index: 1; }
.testimonial-person-row { display: flex; align-items: center; gap: 0.75rem; margin-top: 1.1rem; }
.testimonial-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--flydoc-teal);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}
.testimonial-person { font-weight: 700; }
.testimonial-role { color: var(--flydoc-muted); font-size: 0.85rem; }

.client-logo-wrap {
  height: 60px;
  display: flex; align-items: center; justify-content: center;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: all .2s ease;
}
.client-logo-wrap:hover { filter: none; opacity: 1; }
.client-logo-wrap img { max-height: 40px; max-width: 100%; }

/* ---------- Blog ---------- */
.blog-card img { border-radius: var(--flydoc-radius) var(--flydoc-radius) 0 0; aspect-ratio: 16/9; object-fit: cover; }
.blog-card-body { padding: 1.4rem; }
.blog-meta { color: var(--flydoc-muted); font-size: 0.82rem; }

/* ---------- Forms ---------- */
.flydoc-form-card {
  background: #fff;
  border-radius: var(--flydoc-radius-lg);
  box-shadow: var(--flydoc-shadow);
  padding: 2rem;
}
.form-label { font-weight: 600; font-size: 0.9rem; }
.form-control, .form-select {
  border-radius: 10px;
  border: 1px solid var(--flydoc-border);
  padding: 0.65rem 0.9rem;
}
.form-control:focus, .form-select:focus {
  border-color: var(--flydoc-teal);
  box-shadow: 0 0 0 3px rgba(14,124,134,0.12);
}
.honeypot-field { position: absolute; left: -9999px; opacity: 0; height: 0; }

/* ---------- FAQ Accordion ---------- */
.accordion-item { border: 1px solid var(--flydoc-border); border-radius: var(--flydoc-radius) !important; margin-bottom: 0.75rem; overflow: hidden; }
.accordion-button { font-family: var(--font-display); font-weight: 600; color: var(--flydoc-navy); padding: 1.1rem 1.4rem; }
.accordion-button:not(.collapsed) { background: var(--flydoc-teal-light); color: var(--flydoc-teal); box-shadow: none; }
.accordion-button:focus { box-shadow: 0 0 0 3px rgba(14,124,134,0.12); }
.accordion-body { padding: 1rem 1.4rem 1.4rem; color: var(--flydoc-muted); line-height: 1.7; }

/* ---------- Section-soft dot texture (subtle, non-distracting) ---------- */
.section-soft {
  background-color: var(--flydoc-bg-soft);
  background-image: radial-gradient(rgba(11,31,51,0.05) 1px, transparent 1px);
  background-size: 22px 22px;
}

/* ---------- Breadcrumb ---------- */
.flydoc-breadcrumb-wrap { padding: 1.1rem 0 0; }
.flydoc-breadcrumb {
  display: inline-flex;
  background: var(--flydoc-bg-soft);
  border: 1px solid var(--flydoc-border);
  border-radius: 100px;
  padding: 0.45rem 1.1rem;
  margin-bottom: 0;
  font-size: 0.82rem;
  font-weight: 500;
}
.flydoc-breadcrumb .breadcrumb-item { color: var(--flydoc-muted); }
.flydoc-breadcrumb .breadcrumb-item a { color: var(--flydoc-muted); text-decoration: none; transition: color .15s ease; }
.flydoc-breadcrumb .breadcrumb-item a:hover { color: var(--flydoc-teal); }
.flydoc-breadcrumb .breadcrumb-item.active { color: var(--flydoc-navy); font-weight: 600; }
.flydoc-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
  content: '\F285'; /* bootstrap-icons chevron-right */
  font-family: 'bootstrap-icons';
  font-size: 0.7rem;
  color: var(--flydoc-border);
  padding-right: 0.6rem;
}
.flydoc-breadcrumb .bi-house-door-fill { font-size: 0.75rem; margin-right: 0.15rem; }

/* ---------- FAQ full-width section (breaks out below content+sidebar row) ---------- */
.flydoc-faq-full { margin-top: 3rem; padding-top: 2.5rem; border-top: 1px solid var(--flydoc-border); max-width: 900px; }

/* ---------- FAQ "Have More Questions?" contact band (matches client-site pattern) ---------- */
.flydoc-faq-contact-band {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  justify-content: space-between;
  align-items: center;
  background: var(--flydoc-teal-light);
  border-radius: var(--flydoc-radius-lg);
  padding: 1.75rem 2rem;
  margin-top: 2.25rem;
  max-width: 900px;
}

/* ---------- Secondary link under the sidebar CTA button ---------- */
.flydoc-cta-secondary-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
}
.flydoc-cta-secondary-link:hover { color: #fff; }

/* ---------- Inline content images (spliced into blog/page body) ---------- */
.flydoc-content-figure { margin: 2rem 0; }
.flydoc-content-figure img { width: 100%; border-radius: var(--flydoc-radius); box-shadow: var(--flydoc-shadow-sm); }
.flydoc-content-figure figcaption { font-size: 0.85rem; color: var(--flydoc-muted); font-style: italic; margin-top: 0.6rem; text-align: center; }

/* ---------- Footer ---------- */
.flydoc-footer { background: var(--flydoc-navy); color: rgba(255,255,255,0.85); }
.footer-heading { color: #fff; font-size: 0.95rem; margin-bottom: 1rem; }
.footer-links li { margin-bottom: 0.55rem; font-size: 0.9rem; }
.footer-links a, .text-footer-link { color: rgba(255,255,255,0.72); text-decoration: none; }
.footer-links a:hover, .text-footer-link:hover { color: #fff; }
.text-footer-muted { color: rgba(255,255,255,0.65); }
.footer-divider { border-color: rgba(255,255,255,0.15); margin: 2rem 0 1.25rem; }

.flydoc-wa-float {
  position: fixed;
  bottom: 22px; right: 22px;
  width: 56px; height: 56px;
  background: #25D366;
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  z-index: 1000;
}

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal, .journey-step, .flydoc-card, .btn-flydoc-primary { transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Admin-adjacent shared badge styles used in frontend too ---------- */
.badge-soft-teal { background: var(--flydoc-teal-light); color: var(--flydoc-teal); font-weight: 600; }

@media (max-width: 767.98px) {
  .section { padding: 3rem 0; }
  .flydoc-hero { padding: 3rem 0 2.5rem; }
  .journey-step { width: 130px; }
}
