/* ==========================================================================
   Plus Essentials Healthcare Services — Design System
   ========================================================================== */

:root {
  --primary: #1d5f8a;
  --primary-dark: #123f5c;
  --secondary: #1fa8dc;
  --accent-purple: #8b6fd0;
  --gradient: linear-gradient(135deg, #5b8def 0%, #9b6fd0 100%);
  --gradient-soft: linear-gradient(135deg, rgba(91,141,239,0.12) 0%, rgba(155,111,208,0.12) 100%);
  --bg-light: #f7f9fc;
  --bg-warm: #f8f6fb;
  --text-dark: #1f2937;
  --text-body: #47546b;
  --text-muted: #7c8aa0;
  --white: #ffffff;
  --border: #e6ebf2;
  --success: #2ea577;
  --shadow-sm: 0 2px 10px rgba(20, 40, 70, 0.06);
  --shadow-md: 0 10px 30px rgba(20, 40, 70, 0.10);
  --shadow-lg: 0 20px 50px rgba(20, 40, 70, 0.16);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 28px;
  --radius-pill: 999px;
  --font-head: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text-body);
  background: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--text-dark);
  line-height: 1.2;
  margin: 0 0 0.6em;
  font-weight: 600;
}
h1 { font-size: clamp(2.1rem, 4vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
section { padding: 88px 0; }
@media (max-width: 768px) {
  section { padding: 56px 0; }
}
.bg-light { background: var(--bg-light); }
.bg-warm { background: var(--bg-warm); }
.bg-gradient { background: var(--gradient); color: var(--white); }
.bg-gradient h2, .bg-gradient h3 { color: var(--white); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--gradient);
  display: inline-block;
  border-radius: 2px;
}
.section-head { max-width: 680px; margin: 0 0 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--text-muted); font-size: 1.05rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: var(--radius-pill);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--gradient); color: var(--white); box-shadow: var(--shadow-md); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-outline { background: transparent; border-color: rgba(255,255,255,0.7); color: var(--white); }
.btn-outline:hover { background: rgba(255,255,255,0.14); transform: translateY(-2px); }
.btn-outline-dark { background: transparent; border-color: var(--primary); color: var(--primary); }
.btn-outline-dark:hover { background: var(--primary); color: var(--white); transform: translateY(-2px); }
.btn-block { width: 100%; }
.btn-sm { padding: 10px 22px; font-size: 0.85rem; }

/* ---------- Utility bar + Header ---------- */
.utility-bar {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.9);
  font-size: 0.82rem;
}
.utility-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 9px;
  padding-bottom: 9px;
  flex-wrap: wrap;
}
.utility-left { display: flex; gap: 18px; flex-wrap: wrap; }
.utility-left span strong { color: var(--white); }
.utility-right { display: flex; align-items: center; gap: 20px; }
.utility-right a { display: inline-flex; align-items: center; gap: 6px; transition: color 0.2s; }
.utility-right a:hover { color: var(--secondary); }
.utility-social { display: flex; gap: 10px; }
.utility-social a {
  width: 26px; height: 26px; border-radius: 50%;
  background: rgba(255,255,255,0.12);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.75rem;
}
.utility-social a:hover { background: var(--secondary); }
@media (max-width: 760px) { .utility-bar { display: none; } }

.site-header {
  position: sticky; top: 0; z-index: 200;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.25s ease;
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 12px; padding-bottom: 12px; gap: 20px;
}
.brand { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.brand img { height: 52px; width: auto; }
.brand-tagline {
  font-family: var(--font-head); font-weight: 600; font-size: 0.66rem;
  letter-spacing: 0.05em; text-transform: uppercase; color: var(--secondary);
  padding-left: 2px;
}
.site-footer .brand-tagline { color: rgba(255,255,255,0.55); }
@media (max-width: 480px) { .brand-tagline { display: none; } }
.main-nav { display: flex; align-items: center; gap: 6px; }
.main-nav a {
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-dark);
  transition: background 0.2s, color 0.2s;
}
.main-nav a:hover, .main-nav a.active { background: var(--bg-light); color: var(--primary); }
.header-actions { display: flex; align-items: center; gap: 14px; }
.header-phone { display: flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 600; color: var(--primary); }
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--white);
  align-items: center; justify-content: center;
  cursor: pointer;
}
.nav-toggle span, .nav-toggle::before, .nav-toggle::after { display: none; }
.nav-toggle svg { width: 22px; height: 22px; }

@media (max-width: 960px) {
  .main-nav { position: fixed; inset: 0 0 0 auto; width: min(320px, 84vw); height: 100vh;
    background: var(--white); flex-direction: column; align-items: stretch;
    padding: 100px 24px 24px; gap: 4px; transform: translateX(100%);
    transition: transform 0.3s ease; box-shadow: var(--shadow-lg); overflow-y: auto; }
  .main-nav.open { transform: translateX(0); }
  .main-nav a { padding: 14px 16px; }
  .nav-toggle { display: inline-flex; }
  .header-phone span.phone-label { display: none; }
  .nav-scrim { display: none; position: fixed; inset: 0; background: rgba(15,25,40,0.4); z-index: 190; }
  .nav-scrim.open { display: block; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  color: var(--white);
  background-size: cover;
  background-position: center;
  isolation: isolate;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(15,30,50,0.86) 0%, rgba(20,40,65,0.68) 45%, rgba(30,45,70,0.32) 100%);
  z-index: -1;
}
.hero-content { max-width: 640px; }
.hero-content p.lead { font-size: 1.15rem; color: rgba(255,255,255,0.92); }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 30px; }
.hero-badges {
  display: flex; gap: 28px; flex-wrap: wrap; margin-top: 56px;
  padding-top: 28px; border-top: 1px solid rgba(255,255,255,0.22);
}
.hero-badge { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 500; font-size: 0.92rem; }
.hero-badge svg { width: 22px; height: 22px; color: var(--secondary); flex-shrink: 0; }

.page-banner {
  position: relative;
  padding: 150px 0 70px;
  min-height: 380px;
  display: flex;
  align-items: flex-end;
  color: var(--white);
  background-size: cover;
  background-position: center 30%;
  isolation: isolate;
}
.page-banner .container { width: 100%; }
@media (max-width: 640px) { .page-banner { min-height: 320px; padding: 130px 0 50px; } }
.page-banner::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(15,30,50,0.88), rgba(30,45,75,0.62));
  z-index: -1;
}
.breadcrumb { font-size: 0.9rem; color: rgba(255,255,255,0.8); margin-bottom: 12px; }
.breadcrumb a:hover { color: var(--white); }
.page-banner h1 { color: var(--white); margin-bottom: 6px; }

/* ---------- Cards & Grids ---------- */
.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 34px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.card-icon {
  width: 56px; height: 56px; border-radius: 16px;
  background: var(--gradient-soft);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.card-icon svg { width: 28px; height: 28px; color: var(--primary); }
.card h3 { margin-bottom: 10px; }
.card p { margin-bottom: 0; color: var(--text-muted); font-size: 0.96rem; }
.card .card-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-family: var(--font-head); font-weight: 600; color: var(--primary); font-size: 0.9rem; }

.split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
}
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 36px; } }

/* Form layout: label/intro column + form card column. Used in place of inline
   grid-template-columns so it actually collapses to one column on mobile. */
.form-split {
  display: grid; grid-template-columns: 1fr 1.3fr; gap: 48px; align-items: flex-start;
}
@media (max-width: 860px) { .form-split { grid-template-columns: 1fr; gap: 32px; } }
.form-split.contact-split { grid-template-columns: 0.9fr 1.3fr; }
.split-media { position: relative; }
.split-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); width: 100%; height: 100%; object-fit: cover; }
.split-media.reverse { order: 2; }
.stat-chip {
  position: absolute; bottom: -22px; left: -22px;
  background: var(--white); border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg); padding: 18px 24px;
}
@media (max-width: 640px) { .stat-chip { position: static; margin-top: 20px; display: inline-block; } }
.stat-chip .num { font-family: var(--font-head); font-weight: 700; font-size: 1.8rem; color: var(--primary); }
.stat-chip .label { font-size: 0.82rem; color: var(--text-muted); }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; counter-reset: step; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding: 34px 26px; background: var(--white); border-radius: var(--radius-md); border: 1px solid var(--border); }
.step-num {
  width: 46px; height: 46px; border-radius: 50%; background: var(--gradient);
  color: var(--white); font-family: var(--font-head); font-weight: 700;
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}

/* ---------- Badges / pills ---------- */
.pill-list { display: flex; flex-wrap: wrap; gap: 12px; }
.pill {
  padding: 10px 20px; border-radius: var(--radius-pill);
  background: var(--bg-light); border: 1px solid var(--border);
  font-family: var(--font-head); font-weight: 500; font-size: 0.92rem; color: var(--text-dark);
}

/* ---------- Accordion (Services detail / FAQ) ---------- */
.accordion { display: flex; flex-direction: column; gap: 14px; }
.accordion-item { border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; background: var(--white); }
.accordion-trigger {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  padding: 20px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-family: var(--font-head); font-weight: 600; font-size: 1.02rem; color: var(--text-dark);
}
.accordion-trigger .plus { width: 22px; height: 22px; flex-shrink: 0; position: relative; }
.accordion-trigger .plus::before, .accordion-trigger .plus::after {
  content: ""; position: absolute; background: var(--primary); border-radius: 2px; transition: transform 0.25s ease;
}
.accordion-trigger .plus::before { width: 100%; height: 2px; top: 50%; left: 0; transform: translateY(-50%); }
.accordion-trigger .plus::after { width: 2px; height: 100%; left: 50%; top: 0; transform: translateX(-50%); }
.accordion-item.open .accordion-trigger .plus::after { transform: translateX(-50%) rotate(90deg); opacity: 0; }
.accordion-panel { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.accordion-panel-inner { padding: 0 24px 22px; color: var(--text-muted); }
.accordion-panel-inner ul { margin-top: 10px; }
.accordion-panel-inner ul li { position: relative; padding-left: 22px; margin-bottom: 8px; font-size: 0.95rem; }
.accordion-panel-inner ul li::before { content: "✓"; position: absolute; left: 0; color: var(--secondary); font-weight: 700; }

/* ---------- Testimonials ---------- */
.testimonial-card {
  background: var(--white); border-radius: var(--radius-md); padding: 30px 28px;
  border: 1px solid var(--border); box-shadow: var(--shadow-sm);
}
.testimonial-quote { font-size: 1.02rem; color: var(--text-dark); margin-bottom: 18px; }
.testimonial-quote::before { content: "“"; color: var(--accent-purple); font-size: 2rem; line-height: 0; vertical-align: -8px; margin-right: 4px; }
.testimonial-person { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
  width: 42px; height: 42px; border-radius: 50%; background: var(--gradient);
  color: var(--white); display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 700;
}
.testimonial-name { font-family: var(--font-head); font-weight: 600; color: var(--text-dark); font-size: 0.92rem; }
.testimonial-role { font-size: 0.82rem; color: var(--text-muted); }
.testimonial-note { font-size: 0.85rem; color: var(--text-muted); font-style: italic; margin-top: 10px; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--gradient); border-radius: var(--radius-lg); color: var(--white);
  padding: 56px; display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
}
.cta-band h2 { color: var(--white); margin-bottom: 8px; }
.cta-band p { color: rgba(255,255,255,0.9); margin-bottom: 0; }
@media (max-width: 640px) { .cta-band { padding: 36px 26px; text-align: center; justify-content: center; } }

.dual-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
@media (max-width: 760px) { .dual-cta { grid-template-columns: 1fr; } }
.dual-cta-card {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; min-height: 320px;
  display: flex; align-items: flex-end; padding: 40px; color: var(--white);
  background-size: cover; background-position: center; isolation: isolate;
}
.dual-cta-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,30,50,0.15), rgba(10,20,35,0.88)); z-index: -1; }
.dual-cta-card h3 { color: var(--white); font-size: 1.6rem; }

/* ---------- Forms ---------- */
.form-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 44px; box-shadow: var(--shadow-md);
}
@media (max-width: 640px) { .form-card { padding: 28px 22px; } }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.field { margin-bottom: 20px; }
.field label { display: block; font-family: var(--font-head); font-weight: 500; font-size: 0.88rem; color: var(--text-dark); margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 16px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--border); font-family: var(--font-body); font-size: 0.96rem;
  background: var(--bg-light); color: var(--text-dark); transition: border-color 0.2s, background 0.2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--secondary); background: var(--white);
}
.field textarea { min-height: 120px; resize: vertical; }
.field-hint { font-size: 0.78rem; color: var(--text-muted); margin-top: 6px; }
.form-note {
  display: flex; gap: 10px; align-items: flex-start; font-size: 0.85rem; color: var(--text-muted);
  background: var(--bg-light); padding: 14px 16px; border-radius: var(--radius-sm); margin-top: 8px;
}
.form-success {
  display: none; text-align: center; padding: 40px 20px;
}
.form-success.show { display: block; }
.form-success svg { width: 52px; height: 52px; color: var(--success); margin-bottom: 14px; }

/* ---------- Footer ---------- */
.site-footer { background: #10253a; color: rgba(255,255,255,0.78); padding-top: 72px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,0.1); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { color: var(--white); font-size: 1rem; margin-bottom: 20px; }
.site-footer .brand img { height: 50px; margin-bottom: 16px; }
.footer-grid ul li { margin-bottom: 12px; }
.footer-grid ul li a:hover { color: var(--white); }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.92rem; margin-bottom: 16px; }
.footer-contact svg { width: 18px; height: 18px; color: var(--secondary); flex-shrink: 0; margin-top: 2px; }
.footer-social { display: flex; gap: 12px; margin-top: 20px; }
.footer-social a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center; transition: background 0.2s; }
.footer-social a:hover { background: var(--secondary); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding: 24px 0; font-size: 0.82rem; flex-wrap: wrap; gap: 10px; }
.footer-bottom a:hover { color: var(--white); }
.footer-license { font-size: 0.78rem; color: rgba(255,255,255,0.5); margin-top: 6px; }

/* ---------- Reveal animation ----------
   Only ever hidden once JS confirms it can reveal it (see the has-js class set
   in a blocking inline script in <head>). If JS is disabled, slow, or errors,
   .reveal content stays visible by default instead of being stuck at opacity:0. */
.has-js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.has-js .reveal.in-view { opacity: 1; transform: translateY(0); }

/* ---------- Misc ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.icon-check { color: var(--success); }
hr.divider { border: none; border-top: 1px solid var(--border); margin: 48px 0; }

.map-embed { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); border: 1px solid var(--border); }
.map-embed iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; }
