/* HCMIS 2026 public site theme — deep green + gold
   Load this AFTER css/style.css so it wins on cascade order.

   style.css drives most of its own color scheme through CSS custom
   properties (--primary, --secondary, --light, --dark), used directly
   in .service-icon, .navbar-nav hover underline, carousel controls, etc.
   Redefining them here recolors those automatically. Bootstrap's own
   utility classes (.text-primary, .bg-primary, .btn-primary) are a
   SEPARATE variable system (--bs-primary) that may or may not have been
   compiled against these same values, so both are covered below to be
   safe. */

:root{
  --primary: #2E5B44;   /* was #13C5DD cyan */
  --secondary: #C98A22; /* was #354F8E navy-blue */
  --light: #F4F5F1;     /* was #EFF5F9 */
  --dark: #1B3B2E;      /* was #1D2A4D */

  --ink:#1B3B2E;
  --ink-2:#234737;
  --ink-3:#2E5B44;
  --canvas:#F4F5F1;
  --text-1:#1C271F;
  --text-2:#57685D;
  --gold-500:#C98A22;
  --gold-600:#B27A1D;
  --gold-50:#FBF1DE;

  /* Bootstrap 5.2+ reads these directly for .bg-primary/.text-primary/.btn-primary/.border-primary */
  --bs-primary: var(--ink-3);
  --bs-primary-rgb: 46, 91, 68;
}

body{
  color: var(--text-1);
}

/* ---------- Fallback overrides for older Bootstrap builds that hardcode
   colors instead of reading CSS variables ---------- */
.text-primary{ color: var(--ink-3) !important; }
.bg-primary{ background-color: var(--ink-3) !important; }
.btn-primary{
  background-color: var(--ink-3) !important;
  border-color: var(--ink-3) !important;
}
.btn-primary:hover,
.btn-primary:focus{
  background-color: var(--ink-2) !important;
  border-color: var(--ink-2) !important;
}
.border-primary{ border-color: var(--ink-3) !important; }

/* ---------- Topbar ---------- */
.container-fluid.py-2.border-bottom a,
.container-fluid.py-2.border-bottom i{
  color: var(--text-2) !important;
}
.container-fluid.py-2.border-bottom a:hover{
  color: var(--ink-3) !important;
}

/* ---------- Navbar ---------- */
.navbar-brand h1{
  color: var(--ink-3) !important;
}
/* .navbar-nav .nav-link color/hover/underline already recolor via the
   --primary/--dark variables redefined above — no override needed. */

/* ---------- Hero ---------- */
.hero-header{
  background: linear-gradient(135deg, var(--ink) 0%, #142A20 100%) !important;
  position: relative;
  overflow: hidden;
}
.hero-header::before{
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 85% 15%, rgba(201,138,34,0.14) 0, transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(255,255,255,0.04) 0, transparent 40%);
  pointer-events: none;
}
.hero-header h5{
  color: var(--gold-500) !important;
  border-color: rgba(201,138,34,0.4) !important;
}
.hero-header .btn-light{
  background-color: var(--gold-500) !important;
  color: #fff !important;
  border-color: var(--gold-500) !important;
}
.hero-header .btn-light:hover{
  background-color: var(--gold-600) !important;
}
.hero-header .btn-outline-light{
  border-color: rgba(255,255,255,0.5) !important;
  color: #fff !important;
}
.hero-header .btn-outline-light:hover{
  background-color: rgba(255,255,255,0.12) !important;
  border-color: #fff !important;
}

/* ---------- Section headers (About / Services) ---------- */
h5.text-primary.border-bottom{
  border-color: var(--gold-500) !important;
}

/* ---------- About icon tiles ---------- */
.bg-light.text-center.rounded-circle{
  background-color: var(--canvas) !important;
  border: 1px solid #E3E4DC;
  transition: transform .15s, box-shadow .15s;
}
.bg-light.text-center.rounded-circle:hover{
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(27,59,46,0.12);
}
.bg-light.text-center.rounded-circle i{
  color: var(--ink-3) !important;
}
.bg-light.text-center.rounded-circle small{
  color: var(--gold-600) !important;
}

/* ---------- Service cards ----------
   .service-icon's size/shape (150x100, rotated -14deg) comes from
   style.css and already reads var(--primary) for its background, so it
   recolors automatically from the :root redefinition above. Only adding
   per-card color cycling here for variety, without touching geometry. */
.service-item:nth-child(4n+2) .service-icon{ background-color: var(--gold-500) !important; }
.service-item:nth-child(4n+3) .service-icon{ background-color: #3E4BA8 !important; }
.service-item:nth-child(4n+4) .service-icon{ background-color: #C6532F !important; }

.service-item h4{
  color: var(--text-1);
  font-weight: 700;
}

/* ---------- Footer ---------- */
.container-fluid.bg-dark{
  background-color: var(--ink) !important;
}
.container-fluid.bg-dark h4.text-primary{
  color: var(--gold-500) !important;
  border-color: var(--ink-2) !important;
}
.container-fluid.bg-dark a.text-light:hover{
  color: var(--gold-500) !important;
}
.container-fluid.bg-dark a.text-primary{
  color: var(--gold-500) !important;
}
.container-fluid.bg-dark p,
.container-fluid.bg-dark i{
  color: #C9D9CC;
}
.container-fluid.bg-dark i.text-primary{
  color: var(--gold-500) !important;
}
.border-top.border-secondary{
  border-color: var(--ink-2) !important;
}

/* ---------- Back to top ---------- */
.back-to-top{
  background-color: var(--ink-3) !important;
  border-color: var(--ink-3) !important;
}
.back-to-top:hover{
  background-color: var(--gold-500) !important;
  border-color: var(--gold-500) !important;
}

/* ---------- Long-form document pages (privacy, etc.) ---------- */
.hcp-doc{
  background-color: #fff !important;
  border: 1px solid #E3E4DC;
}
.hcp-doc p{
  color: var(--text-1);
  line-height: 1.7;
  margin-bottom: 16px;
}
.hcp-doc h3{
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  border-left: 3px solid var(--gold-500);
  padding-left: 12px;
  margin: 30px 0 12px 0;
}
.hcp-doc h3:first-child{
  margin-top: 0;
}
.hcp-doc ul{
  padding-left: 20px;
  margin-bottom: 16px;
}
.hcp-doc ul li{
  color: var(--text-1);
  line-height: 1.7;
  margin-bottom: 8px;
}

/* ---------- Contact page icon tiles ---------- */
.hcp-contact-icon{
  background-color: var(--ink-3) !important;
}
.hcp-contact-icon.hcp-contact-2{
  background-color: var(--gold-500) !important;
}
.hcp-contact-icon.hcp-contact-3{
  background-color: #3E4BA8 !important;
}

/* =====================================================================
   HOMEPAGE-ONLY: Trust-first editorial redesign (index.php)
   Namespaced under .hcp-ed- so it never touches about.html/service.html,
   which keep the original card-based layout.
   ===================================================================== */

.hcp-ed-serif{
  font-family: 'Fraunces', Georgia, serif;
}

/* ---- Hero ---- */
.hcp-ed-hero{
  background: var(--canvas) !important;
  padding: 72px 0 56px 0 !important;
  position: relative;
}
.hcp-ed-eyebrow{
  display: inline-block;
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold-600);
  margin-bottom: 18px;
}
.hcp-ed-headline{
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500;
  font-size: 46px;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 20px;
}
.hcp-ed-sub{
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-2);
  max-width: 46em;
  margin-bottom: 30px;
}
.hcp-ed-hero .btn-light{
  background-color: var(--gold-500) !important;
  color: #fff !important;
  border-color: var(--gold-500) !important;
}
.hcp-ed-hero .btn-light:hover{
  background-color: var(--gold-600) !important;
}
.hcp-ed-hero .btn-outline-light{
  background-color: transparent !important;
  border-color: var(--ink) !important;
  color: var(--ink) !important;
}
.hcp-ed-hero .btn-outline-light:hover{
  background-color: var(--ink) !important;
  color: #fff !important;
}

/* ---- EKG divider — the recurring signature motif, drawn from the
   heartbeat line already in the DASURECO logo ---- */
.hcp-ed-ekg{
  width: 100%;
  height: 28px;
  display: block;
  margin: 0 0 40px 0;
}
.hcp-ed-ekg path{
  fill: none;
  stroke: var(--gold-500);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.hcp-ed-ekg.hcp-ed-ekg-section{
  margin: 0 auto 40px auto;
  max-width: 220px;
  opacity: .8;
}

/* ---- Coverage trust strip ---- */
.hcp-ed-strip{
  background-color: #fff;
  border-top: 1px solid var(--line, #E3E4DC);
  border-bottom: 1px solid var(--line, #E3E4DC);
  padding: 26px 0;
}
.hcp-ed-strip-row{
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
}
.hcp-ed-strip-item{
  flex: 1 1 200px;
  padding: 0 20px;
  border-left: 2px solid var(--gold-500);
}
.hcp-ed-strip-item:first-child{
  padding-left: 0;
}
.hcp-ed-strip-num{
  font-family: 'Fraunces', Georgia, serif;
  font-size: 26px;
  font-weight: 600;
  color: var(--ink);
  display: block;
  line-height: 1;
  margin-bottom: 4px;
}
.hcp-ed-strip-label{
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-2);
  display: block;
}

/* ---- About "at a glance" ledger list ---- */
.hcp-ed-glance{
  list-style: none;
  padding: 0;
  margin: 28px 0 0 0;
  border-top: 1px solid var(--line, #E3E4DC);
}
.hcp-ed-glance li{
  display: flex;
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line, #E3E4DC);
}
.hcp-ed-glance-label{
  flex: 0 0 180px;
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--gold-600);
  padding-top: 2px;
}
.hcp-ed-glance-text{
  color: var(--text-1);
  font-size: 14.5px;
  line-height: 1.55;
}

/* ---- Coverage accordion (replaces the 6 service cards on the
   homepage only — reads like a schedule of benefits) ---- */
.hcp-ed-accordion .accordion-item{
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line, #E3E4DC);
  border-radius: 0 !important;
}
.hcp-ed-accordion .accordion-item:first-child{
  border-top: 1px solid var(--line, #E3E4DC);
}
.hcp-ed-accordion .accordion-button{
  background: transparent !important;
  box-shadow: none !important;
  padding: 22px 0;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 20px;
  font-weight: 500;
  color: var(--ink);
}
.hcp-ed-accordion .accordion-button:not(.collapsed){
  color: var(--gold-600);
}
.hcp-ed-accordion .accordion-button::after{
  filter: none;
  background-image: none;
  content: "+";
  font-family: Georgia, serif;
  font-size: 26px;
  font-weight: 400;
  color: var(--gold-500);
  transition: transform .2s ease;
  line-height: 1;
}
.hcp-ed-accordion .accordion-button:not(.collapsed)::after{
  content: "\2212"; /* minus sign */
}
.hcp-ed-accordion-num{
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-2);
  margin-right: 16px;
  letter-spacing: .04em;
}
.hcp-ed-accordion .accordion-body{
  padding: 0 0 26px 0;
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.65;
  max-width: 46em;
}

@media (max-width: 767px){
  .hcp-ed-headline{
    font-size: 32px;
  }
  .hcp-ed-strip-item{
    flex: 1 1 45%;
    border-left: 2px solid var(--gold-500);
    padding-left: 14px !important;
  }
  .hcp-ed-glance li{
    flex-direction: column;
    gap: 6px;
  }
  .hcp-ed-glance-label{
    flex: none;
  }
}