/* Masscare — site styles. Brand colours and type follow the Masscare company profile (Poppins, deep teal + teal). */
:root {
  --ink: #062f35;
  --ink-2: #0b3d44;
  --teal: #0a9e94;
  --teal-dark: #07857c;
  --teal-light: #43c6b7;
  --mint: #e6f7f5;
  --mint-2: #f2fbfa;
  --line: #cdebe7;
  --text: #22393d;
  --muted: #587175;
  --white: #ffffff;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 10px 30px rgba(6, 47, 53, 0.08);
  --shadow-lg: 0 24px 60px rgba(6, 47, 53, 0.14);
  --container: 1180px;
  --font: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--teal-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; margin: 0 0 .6em; font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1em; }
.accent { color: var(--teal); }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 60ch; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .container { padding: 0 16px; } }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -48px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--teal-light); outline-offset: 3px; border-radius: 6px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .85em 1.5em; border-radius: 999px; font-weight: 600; font-size: .98rem;
  border: 2px solid transparent; cursor: pointer; transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
  text-decoration: none !important; white-space: nowrap; font-family: inherit;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--teal); color: var(--white); box-shadow: 0 8px 22px rgba(10, 158, 148, .28); }
.btn-primary:hover { background: var(--teal-dark); }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: var(--ink-2); }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: var(--white); }
.btn-light { background: var(--white); color: var(--ink); }
.btn-light:hover { background: var(--mint); }
.btn-ghost-light { border-color: rgba(255,255,255,.5); color: var(--white); }
.btn-ghost-light:hover { background: rgba(255,255,255,.12); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn svg, .more svg { width: 1.15em; height: 1.15em; flex: none; display: inline-block; }
.nav-links svg { width: 16px; height: 16px; display: inline-block; }
.menu-toggle svg { width: 26px; height: 26px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92); backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 4px 18px rgba(6,47,53,.06); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.brand img { height: 44px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-links > li > a, .nav-links > li > button {
  display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; border-radius: 10px;
  color: var(--ink); font-weight: 500; font-size: .96rem; background: none; border: 0; cursor: pointer; font-family: inherit;
}
.nav-links > li > a:hover, .nav-links > li > button:hover { background: var(--mint); text-decoration: none; }
.nav-links a[aria-current="page"], .nav-links button[aria-current="page"] { color: var(--teal-dark); }
.has-menu { position: relative; }
.submenu {
  position: absolute; top: calc(100% + 8px); left: -12px; min-width: 300px; list-style: none; margin: 0; padding: 10px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: all .18s ease;
}
.has-menu:hover .submenu, .has-menu:focus-within .submenu, .has-menu.open .submenu { opacity: 1; visibility: visible; transform: none; }
.submenu a { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; color: var(--ink); }
.submenu a:hover { background: var(--mint-2); text-decoration: none; }
.submenu strong { display: block; font-weight: 600; font-size: .95rem; }
.submenu small { color: var(--muted); font-size: .8rem; line-height: 1.4; }
.submenu .ico { flex: none; width: 34px; height: 34px; }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.menu-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; border-radius: 10px; cursor: pointer; color: var(--ink); }
.menu-toggle:hover { background: var(--mint); }
@media (max-width: 960px) {
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav-cta .btn { display: none; }
  .nav-links {
    position: fixed; inset: 76px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--line); padding: 8px 16px 20px; box-shadow: var(--shadow-lg);
    max-height: calc(100vh - 76px); overflow-y: auto; display: none;
  }
  .nav-open .nav-links { display: flex; }
  .nav-links > li > a, .nav-links > li > button { width: 100%; padding: 14px 8px; font-size: 1.02rem; }
  .submenu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 8px 8px; min-width: 0; display: none; }
  .has-menu.open .submenu { display: block; }
  .mobile-cta { display: block !important; padding: 12px 8px 0; }
  .mobile-cta .btn { width: 100%; }
}
.mobile-cta { display: none; }
.nav-links .mobile-cta .btn-primary { background: var(--teal); color: var(--white); justify-content: center; }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--mint); overflow: hidden; padding: 72px 0 120px; }
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; background: #c9ece7; opacity: .6; }
.hero::before { width: 560px; height: 560px; right: -160px; top: -200px; }
.hero::after { width: 260px; height: 260px; left: -120px; top: 45%; opacity: .45; }
.hero .container { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.pill { display: inline-block; background: var(--ink); color: var(--white); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; padding: 8px 16px; border-radius: 999px; margin-bottom: 22px; font-weight: 500; }
.hero p.lead { color: #3b5559; margin-bottom: 28px; }
.trust-row { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 28px; padding: 0; list-style: none; color: var(--ink); font-size: .9rem; font-weight: 500; }
.trust-row li { display: inline-flex; align-items: center; gap: 8px; }
.trust-row svg { width: 20px; height: 20px; color: var(--teal); }
.wave { position: absolute; left: 0; right: 0; bottom: -1px; height: 90px; z-index: 1; }
.wave svg { width: 100%; height: 100%; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; } .hero { padding: 48px 0 110px; } }

/* hero panel (illustrative workflow card) */
.panel { background: var(--white); border-radius: 22px; box-shadow: var(--shadow-lg); padding: 22px; border: 1px solid var(--line); }
.panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.panel-head strong { color: var(--ink); font-size: .98rem; }
.panel-head span { font-size: .75rem; color: var(--muted); background: var(--mint-2); padding: 4px 10px; border-radius: 999px; }
.task { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 14px; border: 1px solid var(--line); margin-top: 10px; background: var(--mint-2); }
.task .ico { width: 38px; height: 38px; flex: none; }
.task b { display: block; color: var(--ink); font-size: .92rem; font-weight: 600; }
.task small { color: var(--muted); font-size: .8rem; }
.task .tick { margin-left: auto; width: 26px; height: 26px; border-radius: 50%; background: var(--teal); color: #fff; display: grid; place-items: center; flex: none; }
.task .tick svg { width: 14px; height: 14px; }
.task.pending .tick { background: #fff; border: 2px dashed var(--teal-light); }
.panel-note { font-size: .74rem; color: var(--muted); margin: 12px 2px 0; }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section.tight { padding: 72px 0; }
.section.mint { background: var(--mint-2); }
.section.dark { background: var(--ink); color: #cfe7e4; }
.section.dark h2, .section.dark h3 { color: var(--white); }
.eyebrow { display: inline-block; color: var(--teal); font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; margin-bottom: 14px; }
.section.dark .eyebrow { color: var(--teal-light); }
.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .lead { margin-left: auto; margin-right: auto; }
.rule { display: block; width: 44px; height: 4px; background: var(--teal); border-radius: 4px; margin: 10px 0 18px; }
@media (max-width: 600px) { .section { padding: 64px 0; } .section.tight { padding: 52px 0; } }

.grid { display: grid; gap: 24px; }
.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: 1024px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease; height: 100%; }
.card.soft { background: var(--mint-2); box-shadow: none; }
.card.accent-left { border-left: 5px solid var(--teal); }
a.card { display: block; color: inherit; }
a.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); text-decoration: none; }
.card .ico { width: 52px; height: 52px; margin-bottom: 18px; }
.card p { color: var(--muted); }
.card .more { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--teal-dark); margin-top: 6px; }
.card .num { width: 44px; height: 44px; border-radius: 50%; background: var(--teal); color: #fff; font-weight: 600; display: grid; place-items: center; margin-bottom: 16px; }
.dark-card { background: var(--ink); color: #cfe7e4; border-color: var(--ink); }
.dark-card h3 { color: #fff; }

.ico { display: grid; place-items: center; border-radius: 14px; background: var(--mint); color: var(--teal-dark); }
.ico svg { width: 55%; height: 55%; }

.list { list-style: none; padding: 0; margin: 14px 0 0; }
.list li { position: relative; padding-left: 22px; margin: 8px 0; color: var(--text); }
.list li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }
.section.dark .list li, .dark-card .list li { color: #d7ecea; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.chips li { border: 1px solid var(--line); background: var(--white); color: var(--ink); padding: 8px 18px; border-radius: 999px; font-size: .9rem; font-weight: 500; }
.chips.filled li { background: var(--mint); border-color: var(--mint); }
.section.dark .chips li { background: rgba(255,255,255,.06); color: #e7f6f4; border-color: rgba(255,255,255,.18); }

/* steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; position: relative; }
.step { position: relative; padding-top: 6px; }
.step .num { width: 52px; height: 52px; border-radius: 50%; background: var(--teal); color: #fff; display: grid; place-items: center; font-weight: 600; font-size: 1.1rem; margin-bottom: 18px; position: relative; z-index: 1; box-shadow: 0 0 0 8px var(--mint-2); }
.section.dark .step .num { box-shadow: 0 0 0 8px var(--ink); }
.steps::before { content: ""; position: absolute; top: 32px; left: 26px; right: 26px; height: 2px; background: repeating-linear-gradient(90deg, var(--teal-light) 0 8px, transparent 8px 16px); }
.step p { color: var(--muted); font-size: .96rem; }
.section.dark .step p { color: #b9d8d5; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } .steps::before { display: none; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* split blocks */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 32px; } }

/* band */
.band { background: var(--ink); color: #cfe7e4; border-radius: 24px; padding: 40px 44px; display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; position: relative; overflow: hidden; border-left: 6px solid var(--teal); }
.band h3 { color: #fff; font-size: 1.45rem; margin-bottom: .3em; }
.band p { margin: 0; max-width: 62ch; }
.band.teal { background: var(--teal); color: #eafaf8; border-left: 0; }
@media (max-width: 600px) { .band { padding: 30px 24px; } }

/* page hero (inner pages) */
.page-hero { background: var(--mint); padding: 64px 0 100px; position: relative; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%; background: #c9ece7; opacity: .55; right: -120px; top: -160px; }
.page-hero .container { position: relative; z-index: 2; }
.breadcrumb { font-size: .85rem; color: var(--muted); margin-bottom: 16px; }
.breadcrumb a { color: var(--muted); }
.page-hero h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); max-width: 18ch; }

/* cycle columns (RCM) */
.phase-label { font-size: .85rem; color: var(--muted); margin: -6px 0 6px; }

/* FAQ */
.faq { max-width: 860px; margin: 0 auto; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--white); margin-bottom: 12px; padding: 0 22px; }
.faq summary { cursor: pointer; list-style: none; padding: 20px 0; font-weight: 600; color: var(--ink); display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; color: var(--teal); line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 18px; margin: 0; }

/* contact */
.contact-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.form { display: grid; gap: 18px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 600px) { .form .row { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 500; color: var(--ink); margin-bottom: 6px; font-size: .94rem; }
.field label .opt { color: var(--muted); font-weight: 400; }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; color: var(--text); background: var(--white); border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(10,158,148,.15); }
.field textarea { min-height: 140px; resize: vertical; }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 600px) { .checks { grid-template-columns: 1fr; } }
.checks label { display: flex; gap: 10px; align-items: center; border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 14px; font-weight: 500; color: var(--ink); cursor: pointer; font-size: .92rem; }
.checks input { accent-color: var(--teal); width: 18px; height: 18px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: .84rem; color: var(--muted); }
.form-status { padding: 14px 16px; border-radius: 12px; font-size: .95rem; display: none; }
.form-status.ok { display: block; background: #e3f7ee; color: #145c3d; border: 1px solid #b7e6cf; }
.form-status.err { display: block; background: #fdeeee; color: #8a2424; border: 1px solid #f3c7c7; }
.contact-card { background: var(--ink); color: #cfe7e4; border-radius: var(--radius); padding: 32px; }
.contact-card h3 { color: #fff; }
.contact-card .item { display: flex; gap: 14px; margin-top: 20px; align-items: flex-start; }
.contact-card .item .ico { width: 42px; height: 42px; background: rgba(255,255,255,.08); color: var(--teal-light); flex: none; }
.contact-card .item small { display: block; text-transform: uppercase; letter-spacing: .14em; font-size: .7rem; color: var(--teal-light); }
.contact-card a { color: #fff; }

/* prose (privacy) */
.prose { max-width: 780px; }
.prose h2 { font-size: 1.4rem; margin-top: 2em; }
.prose p, .prose li { color: var(--text); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #b9d8d5; padding: 72px 0 28px; position: relative; }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: var(--teal); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 36px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 8px 0; }
.site-footer a { color: #d7ecea; }
.site-footer a:hover { color: #fff; }
.footer-logo { width: 190px; height: auto; margin-bottom: 14px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 48px; padding-top: 22px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .85rem; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* 404 */
.notfound { text-align: center; padding: 120px 0; }
.notfound .big { font-size: clamp(4rem, 14vw, 9rem); font-weight: 700; color: var(--teal); line-height: 1; margin-bottom: 10px; }
