/* ============================================================
   Cosmos RCM - Redesigned Stylesheet
   Color Palette: Deep Navy + Teal + Amber accents
   Fonts: Plus Jakarta Sans, Space Grotesk
   ============================================================ */

:root {
  --navy: #0f1b2d;
  --navy-light: #1a2d47;
  --teal: #0d9488;
  --teal-light: #14b8a6;
  --teal-dark: #0a7a70;
  --amber: #f59e0b;
  --amber-light: #fbbf24;
  --slate: #64748b;
  --slate-light: #94a3b8;
  --off-white: #f8fafc;
  --white: #ffffff;
  --dark: #0f172a;
  --border: #e2e8f0;
  --font-primary: 'Plus Jakarta Sans', sans-serif;
  --font-heading: 'Space Grotesk', sans-serif;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(15,27,45,0.06);
  --shadow-md: 0 4px 20px rgba(15,27,45,0.08);
  --shadow-lg: 0 10px 40px rgba(15,27,45,0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-primary); color: #334155; margin: 0; overflow-x: hidden; line-height: 1.7; font-size: 16px; background: var(--white); }
body.menu-open { overflow: hidden; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); font-weight: 700; color: var(--navy); line-height: 1.2; }
a { text-decoration: none; color: var(--teal); transition: color .3s; }
a:hover { color: var(--teal-dark); }
img { max-width: 100%; }
p { color: #475569; }

.overline {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--teal);
  margin-bottom: 12px;
  background: rgba(13,148,136,0.08);
  padding: 6px 16px;
  border-radius: 100px;
}
.section-header { margin-bottom: 48px; }
.section-header h2 { font-size: 2.25rem; margin-bottom: 12px; }
.section-sub { font-size: 1.1rem; color: var(--slate); max-width: 600px; }
.btn-primary-cta {
  display: inline-block;
  background: var(--teal);
  color: var(--white);
  font-weight: 600;
  padding: 14px 32px;
  border-radius: var(--radius);
  border: none;
  font-size: .95rem;
  cursor: pointer;
  transition: all .3s;
  text-decoration: none;
}
.btn-primary-cta:hover { background: var(--teal-dark); color: var(--white); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(13,148,136,0.25); }
.btn-primary-cta.btn-lg { padding: 18px 40px; font-size: 1.05rem; }
.btn-ghost {
  display: inline-block;
  color: var(--slate);
  font-weight: 500;
  padding: 14px 24px;
  font-size: .95rem;
  transition: color .3s;
  text-decoration: none;
}
.btn-ghost:hover { color: var(--navy); }
.btn-ghost i { margin-left: 6px; }

.announce-bar {
  background: var(--navy);
  color: var(--white);
  padding: 10px 0;
  font-size: .85rem;
  text-align: center;
}
.announce-bar p { margin: 0; color: var(--slate-light); }
.announce-bar i { color: var(--amber); margin-right: 8px; }
.announce-bar a { color: var(--amber-light); font-weight: 600; }
.announce-bar a:hover { color: var(--white); }

.site-header { background: var(--white); position: sticky; top: 0; z-index: 1000; border-bottom: 1px solid var(--border); }
.site-header.scrolled { box-shadow: var(--shadow-md); }
.main-nav { padding: 0; }
.brand-logo { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 700; color: var(--navy); }
.brand-logo span { color: var(--teal); }
.brand-logo:hover { color: var(--navy); }
.nav-toggle { background: none; border: none; font-size: 1.4rem; color: var(--navy); cursor: pointer; display: none; }
.nav-menu { display: flex; align-items: center; gap: 8px; }
.nav-close { display: none; }
.nav-links { display: flex; list-style: none; margin: 0; padding: 0; gap: 4px; }
.nav-links > li > a { display: block; padding: 20px 14px; font-size: .9rem; font-weight: 500; color: #475569; transition: color .3s; }
.nav-links > li > a:hover, .nav-links > li > a.active { color: var(--teal); }
.nav-links > li > a i { font-size: .65rem; margin-left: 4px; }
.nav-cta {
  background: var(--teal);
  color: var(--white);
  padding: 10px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .88rem;
  white-space: nowrap;
  transition: all .3s;
}
.nav-cta:hover { background: var(--teal-dark); color: var(--white); }

.has-submenu { position: relative; }
.submenu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 12px 8px;
  min-width: 260px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all .25s;
  z-index: 100;
}
.submenu::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 0;
  width: 100%;
  height: 12px;
}
.has-submenu:hover > .submenu { opacity: 1; visibility: visible; transform: translateY(0); }
.submenu a { display: block; padding: 10px 16px; font-size: .88rem; color: #475569; border-radius: var(--radius-sm); transition: all .2s; }
.submenu a:hover { background: rgba(13,148,136,0.06); color: var(--teal); }
.submenu-wide { min-width: 500px; padding: 16px; }

.hero-section {
  background: linear-gradient(170deg, var(--off-white) 0%, var(--white) 60%);
  padding: 80px 0 60px;
  position: relative;
  overflow: hidden;
}
.hero-section::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(13,148,136,0.06) 0%, transparent 70%);
  border-radius: 50%;
}
.hero-inner { max-width: 800px; margin: 0 auto; text-align: center; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(13,148,136,0.08);
  color: var(--teal-dark);
  padding: 8px 20px;
  border-radius: 100px;
  font-size: .85rem;
  font-weight: 500;
  margin-bottom: 24px;
}
.hero-badge i { color: var(--teal); }
.hero-section h1 { font-size: 3.5rem; font-weight: 800; margin-bottom: 20px; letter-spacing: -1px; }
.hero-section p { font-size: 1.2rem; color: var(--slate); max-width: 560px; margin: 0 auto 32px; }
.hero-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-bottom: 56px; }

.hero-metrics { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }
.metric-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 36px;
  text-align: center;
  min-width: 180px;
  transition: all .3s;
}
.metric-card:hover { border-color: var(--teal); box-shadow: var(--shadow-md); }
.metric-card.featured { background: var(--navy); border-color: var(--navy); }
.metric-card.featured .metric-value { color: var(--amber); }
.metric-card.featured .metric-label { color: var(--slate-light); }
.metric-value { font-family: var(--font-heading); font-size: 2.5rem; font-weight: 700; color: var(--navy); line-height: 1; }
.metric-label { font-size: .82rem; color: var(--slate); margin-top: 8px; font-weight: 500; }

.pain-section { padding: 80px 0; background: var(--white); }
.pain-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.pain-card {
  padding: 32px 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all .3s;
  position: relative;
  overflow: hidden;
}
.pain-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--amber);
  opacity: 0;
  transition: opacity .3s;
}
.pain-card:hover { box-shadow: var(--shadow-md); border-color: transparent; }
.pain-card:hover::before { opacity: 1; }
.pain-icon { width: 48px; height: 48px; border-radius: var(--radius-sm); background: #fef3c7; color: var(--amber); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; margin-bottom: 20px; }
.pain-card h4 { font-size: 1.05rem; margin-bottom: 10px; }
.pain-card p { font-size: .9rem; margin: 0; }

.services-section { padding: 80px 0; background: var(--off-white); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
  transition: all .3s;
  position: relative;
}
.service-item:hover { box-shadow: var(--shadow-md); border-color: var(--teal); transform: translateY(-4px); }
.service-num { font-family: var(--font-heading); font-size: 2.5rem; font-weight: 700; color: rgba(13,148,136,0.12); line-height: 1; display: block; margin-bottom: 16px; }
.service-item h4 { font-size: 1.1rem; margin-bottom: 12px; }
.service-item > p { font-size: .9rem; margin-bottom: 16px; }
.service-bullets { list-style: none; padding: 0; margin: 0; }
.service-bullets li { font-size: .85rem; color: var(--slate); padding: 4px 0 4px 20px; position: relative; }
.service-bullets li::before { content: '\f00c'; font-family: 'Font Awesome 6 Free'; font-weight: 900; position: absolute; left: 0; color: var(--teal); font-size: .7rem; top: 7px; }

.approach-section { padding: 100px 0; background: var(--white); }
.approach-section h2 { font-size: 2rem; }
.approach-section > .container > .row > .col-lg-5 > p { color: var(--slate); margin-bottom: 32px; }
.approach-steps { display: flex; flex-direction: column; gap: 24px; }
.a-step { display: flex; gap: 16px; align-items: flex-start; }
.a-step-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: var(--radius-sm);
  background: rgba(13,148,136,0.08);
  color: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}
.a-step strong { color: var(--navy); font-size: .95rem; display: block; margin-bottom: 4px; }
.a-step p { font-size: .88rem; color: var(--slate); margin: 0; }

.approach-visual { position: relative; min-height: 420px; }
.av-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-md);
  position: absolute;
}
.av-card-1 { top: 0; left: 20px; right: 40px; }
.av-card-1 > i { color: var(--teal); margin-right: 8px; }
.av-card-1 > span { font-weight: 600; color: var(--navy); font-size: .95rem; }
.av-bar-group { margin-top: 20px; display: flex; flex-direction: column; gap: 12px; }
.av-bar {
  background: linear-gradient(90deg, var(--teal), var(--teal-light));
  height: 32px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  color: var(--white);
  font-size: .78rem;
  font-weight: 600;
}
.av-card-2 { bottom: 60px; left: 0; z-index: 2; }
.av-stat { text-align: center; }
.av-stat-num { font-family: var(--font-heading); font-size: 2rem; font-weight: 700; color: var(--teal); display: block; }
.av-stat-label { font-size: .8rem; color: var(--slate); }
.av-card-3 {
  bottom: 20px;
  right: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 2;
}
.av-card-3 > i { color: var(--teal); }
.av-card-3 > span:first-of-type { font-size: .85rem; font-weight: 600; color: var(--navy); }
.av-check { width: 24px; height: 24px; border-radius: 50%; background: #d1fae5; color: var(--teal); display: flex; align-items: center; justify-content: center; font-size: .7rem; }

.testimonials-section { padding: 80px 0; background: var(--navy); }
.testimonials-section .section-header h2 { color: var(--white); }
.testimonials-section .overline { background: rgba(255,255,255,0.1); color: var(--teal-light); }
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimonial-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: all .3s;
}
.testimonial-card:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.15); }
.stars { color: var(--amber); font-size: .85rem; margin-bottom: 16px; display: flex; gap: 3px; }
.testimonial-card blockquote { font-size: .95rem; color: var(--slate-light); line-height: 1.7; margin: 0 0 20px; font-style: normal; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--teal);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
  font-weight: 700;
}
.testimonial-author strong { color: var(--white); font-size: .9rem; display: block; }
.testimonial-author span { color: var(--slate-light); font-size: .8rem; }

.trust-bar { padding: 40px 0; background: var(--off-white); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.trust-items { display: flex; justify-content: center; flex-wrap: wrap; gap: 40px; }
.trust-item { display: flex; align-items: center; gap: 10px; }
.trust-item i { font-size: 1.3rem; color: var(--teal); }
.trust-item span { font-size: .88rem; font-weight: 600; color: var(--navy); }

.faq-section { padding: 80px 0; background: var(--white); }
.faq-section h2 { font-size: 2rem; }
.faq-section > .container > .row > .col-lg-4 > p { color: var(--slate); }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: border-color .3s; }
.faq-item.active { border-color: var(--teal); }
.faq-trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  background: none;
  border: none;
  font-family: var(--font-primary);
  font-size: .95rem;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  text-align: left;
  transition: color .3s;
}
.faq-trigger:hover { color: var(--teal); }
.faq-trigger i { font-size: .8rem; color: var(--slate); transition: transform .3s; }
.faq-item.active .faq-trigger i { transform: rotate(45deg); color: var(--teal); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .4s ease, padding .4s ease; }
.faq-item.active .faq-answer { max-height: 300px; }
.faq-answer p { padding: 0 24px 20px; font-size: .9rem; color: var(--slate); margin: 0; }

.resources-section { padding: 80px 0; background: var(--off-white); }
.resources-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.resource-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: all .3s;
  display: flex;
  flex-direction: column;
}
.resource-card:hover { box-shadow: var(--shadow-md); border-color: var(--teal); transform: translateY(-4px); }
.resource-type {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--teal);
  background: rgba(13,148,136,0.08);
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 16px;
  width: fit-content;
}
.resource-card h4 { font-size: 1.05rem; margin-bottom: 12px; line-height: 1.4; }
.resource-card p { font-size: .88rem; color: var(--slate); flex: 1; }
.resource-link { font-size: .88rem; font-weight: 600; color: var(--teal); }
.resource-link i { margin-left: 6px; font-size: .75rem; transition: margin-left .3s; }
.resource-link:hover i { margin-left: 10px; }

.final-cta {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  position: relative;
  overflow: hidden;
}
.final-cta::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(13,148,136,0.15) 0%, transparent 70%);
  border-radius: 50%;
}
.final-cta h2 { color: var(--white); font-size: 2.5rem; margin-bottom: 16px; }
.final-cta p { color: var(--slate-light); font-size: 1.1rem; max-width: 550px; margin: 0 auto 32px; }
.final-cta .btn-primary-cta { background: var(--amber); color: var(--navy); }
.final-cta .btn-primary-cta:hover { background: var(--amber-light); box-shadow: 0 8px 24px rgba(245,158,11,0.3); }
.cta-note { display: block; margin-top: 16px; font-size: .85rem; color: var(--slate-light); }

.site-footer { background: var(--dark); padding: 60px 0 0; }
.brand-logo-footer { font-size: 1.4rem; display: inline-block; margin-bottom: 16px; }
.brand-logo-footer span { color: var(--teal-light); }
.footer-desc { color: var(--slate-light); font-size: .9rem; margin-bottom: 20px; }
.footer-socials { display: flex; gap: 12px; }
.footer-socials a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--slate-light);
  font-size: .85rem;
  transition: all .3s;
}
.footer-socials a:hover { background: var(--teal); border-color: var(--teal); color: var(--white); }
.footer-top { padding-bottom: 40px; }
.footer-top h4 { color: var(--white); font-size: .95rem; margin-bottom: 20px; font-family: var(--font-primary); font-weight: 600; }
.footer-top ul { list-style: none; padding: 0; margin: 0; }
.footer-top ul li { margin-bottom: 10px; }
.footer-top ul a { color: var(--slate-light); font-size: .88rem; transition: color .3s; }
.footer-top ul a:hover { color: var(--white); }

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px 14px;
  margin-bottom: 10px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.05);
  color: var(--white);
  font-family: var(--font-primary);
  font-size: .88rem;
  transition: border-color .3s;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--slate); }
.contact-form input:focus,
.contact-form textarea:focus { outline: none; border-color: var(--teal); background: rgba(255,255,255,0.08); }
.contact-form .btn-primary-cta { margin-top: 4px; padding: 12px; font-size: .88rem; }
.contact-form .is-invalid { border-color: #ef4444; }
.form-message { padding: 10px 14px; border-radius: var(--radius-sm); margin-top: 10px; font-size: .85rem; }
.form-message.success { background: #d1fae5; color: #065f46; }
.form-message.error { background: #fee2e2; color: #991b1b; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { color: var(--slate); font-size: .85rem; margin: 0; }
.footer-contact-info { list-style: none; display: flex; gap: 24px; margin: 0; padding: 0; }
.footer-contact-info li { font-size: .85rem; color: var(--slate-light); }
.footer-contact-info a { color: var(--slate-light); }
.footer-contact-info a:hover { color: var(--white); }
.footer-contact-info i { color: var(--teal); margin-right: 6px; }

.floating-actions { position: fixed; right: 24px; bottom: 90px; z-index: 999; }
.fab-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.2rem;
  box-shadow: var(--shadow-lg);
  transition: all .3s;
}
.fab-btn:hover { transform: scale(1.1); color: var(--white); }
.fab-call { background: var(--teal); }

.scroll-top {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transition: all .3s;
  z-index: 999;
  cursor: pointer;
}
.scroll-top.visible { opacity: 1; visibility: visible; }
.scroll-top:hover { background: var(--teal); transform: translateY(-3px); }

@media (max-width: 991px) {
  .nav-toggle { display: block; }
  .nav-menu {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: 60px 24px 24px;
    z-index: 1002;
    overflow-y: auto;
    transition: right .3s;
    box-shadow: -10px 0 40px rgba(0,0,0,.15);
    gap: 0;
  }
  .nav-menu.open { right: 0; }
  .nav-close { display: block; position: absolute; top: 16px; right: 16px; background: none; border: none; font-size: 1.4rem; color: var(--navy); cursor: pointer; }
  .nav-links { flex-direction: column; gap: 0; }
  .nav-links > li > a { padding: 14px 0; border-bottom: 1px solid var(--border); }
  .nav-cta { text-align: center; margin-top: 16px; display: block; }
  .submenu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; padding: 0 0 0 16px; min-width: auto; }
  .submenu-wide { min-width: auto; }
  .has-submenu > .submenu { display: none; }
  .has-submenu.open > .submenu { display: block; }

  .hero-section h1 { font-size: 2.5rem; }
  .pain-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: 1fr; }
  .resources-grid { grid-template-columns: repeat(2, 1fr); }
  .approach-visual { min-height: 350px; margin-top: 40px; }
}

@media (max-width: 767px) {
  .hero-section { padding: 50px 0 40px; }
  .hero-section h1 { font-size: 2rem; }
  .hero-section p { font-size: 1rem; }
  .hero-metrics { gap: 12px; }
  .metric-card { min-width: 140px; padding: 20px 24px; }
  .metric-value { font-size: 2rem; }
  .pain-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .resources-grid { grid-template-columns: 1fr; }
  .section-header h2 { font-size: 1.75rem; }
  .final-cta h2 { font-size: 1.75rem; }
  .trust-items { gap: 20px; }
  .approach-visual { display: none; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-contact-info { justify-content: center; }
  .floating-actions { right: 16px; bottom: 80px; }
  .announce-bar { font-size: .78rem; }
}
