:root {
  --teal: #0d685f;
  --teal-dark: #0a554e;
  --teal-tint: #d7ece7;
  --ink: #111418;
  --gray: #5b6470;
  --line: #e4e8ec;
  --bg: #ffffff;
  --warn-bg: #eef3fb;
  --warn-ink: #2b3a55;
  --red: #d43c3c;
  --radius: 14px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
}

/* ---------- Top notice bar (requested header) ---------- */
.notice-bar {
  background: #f2f6f5;
  border-bottom: 1px solid var(--line);
  font-size: 0.82rem;
  color: #33413f;
  text-align: center;
  padding: 8px 12px;
}
.notice-bar span { white-space: nowrap; }
.notice-bar .sep { display: inline-block; width: 1px; height: 12px; background: #c3cfcc; margin: 0 10px; vertical-align: middle; }
@media (max-width: 640px) {
  .notice-bar .sep { display: none; }
  .notice-bar span { display: block; padding: 2px 0; }
}

/* ---------- Header ---------- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: 908px;
  margin: 0 auto;
  background: #fff;
  position: relative;
}
.logo { text-decoration: none; display: inline-flex; align-items: center; }
.logo-img { height: 40px; width: auto; display: block; }
@media (max-width: 640px) { .logo-img { height: 32px; } }
@media (max-width: 640px) {
  .btn-primary, .btn-outline, .link-call { width: 100%; align-self: stretch; }
  .cta-row .btn-primary, .cta-row .btn-outline { margin-top: 0; }
}

.menu-wrap { position: relative; }
.menu-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1.5px solid var(--teal);
  color: var(--teal);
  background: #fff;
  border-radius: 999px;
  padding: 10px 22px;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
}
.menu-btn .bars { display: inline-flex; flex-direction: column; gap: 4px; }
.menu-btn .bars i { display: block; width: 20px; height: 2px; background: var(--teal); border-radius: 2px; }
.menu-dropdown {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.10);
  min-width: 210px;
  overflow: hidden;
  z-index: 50;
}
.menu-dropdown.open { display: block; }
.menu-dropdown a {
  display: block;
  padding: 13px 18px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
}
.menu-dropdown a:hover { background: #f4f8f7; color: var(--teal); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 4vh 24px 5vh;
  min-height: 31vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.hero-inner {
  width: 100%;
  max-width: 812px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
 background-image: url("../images/hands-bg.jpg");
  background-size: cover;
  background-position: center 70%;
  opacity: 0.3;
  z-index: 0;
}
@media (min-width: 900px) {
  .hero::before {
    inset: 0 0 0 auto;
    width: 56%;
    opacity: 0.88;
    background-position: center 35%;
    -webkit-mask-image: linear-gradient(to left, #000 55%, transparent 100%);
    mask-image: linear-gradient(to left, #000 55%, transparent 100%);
  }
  .hero::after {
    background: linear-gradient(90deg, rgba(250,247,242,0.55) 0%, rgba(250,247,242,0) 45%);
  }
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(250,247,242,0.9) 0%, rgba(250,247,242,0.5) 45%, rgba(250,247,242,0.88) 100%);
  z-index: 1;
}
.hero > * { position: relative; z-index: 2; }
.hero-plain::before, .hero-plain::after { content: none; }
.hero-plain {
  background:
    radial-gradient(60% 80% at 85% 10%, rgba(13,104,95,0.10), transparent 60%),
    radial-gradient(50% 70% at 10% 90%, rgba(13,104,95,0.08), transparent 60%),
    linear-gradient(160deg, #faf7f2 0%, #f3efe7 55%, #eef0ea 100%);
}
.hero h1 {
  font-size: clamp(3rem, 9vw, 5.2rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: 800;
}
.hero h1 .accent { color: var(--teal); display: block; }
.hero .sub {
  margin-top: 28px;
  font-size: clamp(1.25rem, 3.4vw, 1.7rem);
  color: #454e58;
  max-width: 34ch;
  font-weight: 500;
}
.hero .sub-mid {
  margin-top: 18px;
  font-size: clamp(1.05rem, 2.7vw, 1.2rem);
  color: #4d5661;
  max-width: 44ch;
  font-weight: 500;
}
.hero .fine {
  margin-top: 20px;
  font-size: 1rem;
  color: #3d4750;
  max-width: 46ch;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--teal);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 20px 44px;
  font-size: 1.35rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s;
  margin-top: 34px;
  align-self: flex-start;
}
.btn-primary:hover { background: var(--teal-dark); }
.btn-primary .arrow { font-weight: 400; }
.btn-block { width: 100%; }
.link-call, .btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 26px;
  color: var(--teal);
  font-size: 1.35rem;
  font-weight: 700;
  text-decoration: none;
  align-self: flex-start;
}
.link-call:hover { text-decoration: underline; }
.btn-outline {
  background: #fff;
  border: 3px solid var(--teal);
  border-radius: 999px;
  padding: 18px 40px;
}
.btn-outline:hover { background: var(--teal); color: #fff; }

/* ---------- Form page ---------- */
.form-shell { padding: 0 4vw 60px; max-width: 760px; margin: 0 auto; }
.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 34px 30px;
  margin-top: -0px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.05);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 26px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field label {
  display: block;
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 8px;
}
.field .req { color: var(--red); }
.field input, .field select, .field textarea {
  width: 100%;
  border: 1px solid #cfd6dc;
  border-radius: 10px;
  padding: 13px 14px;
  font-size: 1rem;
  font-family: inherit;
  color: var(--ink);
  background: #fff;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--teal-tint);
  border-color: var(--teal);
}
.field input::placeholder, .field textarea::placeholder { color: #9aa4ad; }
.field-full { grid-column: 1 / -1; }
.field textarea { min-height: 130px; resize: vertical; }
.form-error { color: var(--red); font-size: 0.9rem; margin-top: 14px; display: none; }
.form-note {
  margin-top: 18px;
  text-align: center;
  font-size: 0.85rem;
  color: #6b7480;
}

/* ---------- Confirmation page ---------- */
.confirm-hero {
  background:
    radial-gradient(60% 80% at 85% 10%, rgba(13,104,95,0.10), transparent 60%),
    linear-gradient(160deg, #faf7f2 0%, #f3efe7 60%, #eef0ea 100%);
  text-align: center;
  padding: 60px 6vw 40px;
}
.check-circle {
  width: 96px; height: 96px;
  border-radius: 50%;
  background: var(--teal-tint);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 22px;
}
.check-circle svg { width: 48px; height: 48px; }
.confirm-hero h1 {
  font-size: clamp(2.6rem, 7vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 800;
}
.confirm-hero h1 .accent { color: var(--teal); display: block; }
.confirm-card {
  max-width: 760px;
  margin: 0 auto 70px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 38px 34px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.05);
}
.confirm-card h2 { text-align: center; font-size: 1.5rem; margin-bottom: 30px; }
.step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 26px;
}
.step .icon {
  flex: 0 0 64px;
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--teal-tint);
  display: flex; align-items: center; justify-content: center;
}
.step .icon svg { width: 30px; height: 30px; stroke: var(--teal); }
.step h3 { font-size: 1.12rem; margin-bottom: 6px; }
.step p { color: #5b6470; }
.step .lead { color: var(--ink); font-weight: 600; }
.info-banner {
  display: flex;
  gap: 16px;
  align-items: center;
  background: var(--warn-bg);
  border-radius: 12px;
  padding: 18px 20px;
  margin: 30px 0;
}
.info-banner .dot {
  flex: 0 0 34px;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: #33507a;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-family: Georgia, serif;
}
.info-banner p { color: var(--warn-ink); font-weight: 500; }
.ref-label { color: #6b7480; font-size: 0.98rem; }
.ref-number { font-size: 2rem; font-weight: 800; letter-spacing: -0.01em; margin: 4px 0 6px; }
.ref-note { color: #6b7480; font-size: 0.95rem; }
.confirm-card hr { border: none; border-top: 1px solid var(--line); margin: 30px 0; }

footer {
  text-align: center;
  color: #8b949c;
  font-size: 0.8rem;
  padding: 24px 12px 34px;
}

/* ---------- Homepage content sections ---------- */
.s { padding: 60px 24px; max-width: 860px; margin: 0 auto; }
.s.alt { background: #f7faf9; max-width: none; }
.s.alt > * { max-width: 812px; margin-left: auto; margin-right: auto; }
.s-kicker {
  color: var(--teal);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}
.s h2 {
  font-size: clamp(1.7rem, 4.5vw, 2.4rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 22px;
}
.s-lead { font-size: 1.15rem; color: #333c46; margin-bottom: 22px; }
.s-note { margin-top: 24px; color: #454e58; font-weight: 500; }
.s-note.center { text-align: center; margin-top: 16px; }

.checks { list-style: none; }
.checks li { padding: 10px 0 10px 34px; position: relative; font-size: 1.08rem; font-weight: 500; }
.checks li::before {
  content: "\2713";
  position: absolute; left: 0; top: 8px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  font-size: 0.85rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}

.help-list, .reach { list-style: none; }
.help-list li, .reach li {
  padding: 12px 0 12px 30px;
  position: relative;
  border-bottom: 1px solid var(--line);
  font-size: 1.05rem;
  color: #333c46;
}
.help-list li:last-child, .reach li:last-child { border-bottom: none; }
.help-list li::before, .reach li::before {
  content: "\2713";
  position: absolute; left: 2px; top: 14px;
  color: var(--teal); font-weight: 800;
}
.contact-block { margin-bottom: 30px; }
.contact-block:last-child { margin-bottom: 0; }
.contact-block h3 { font-size: 1.15rem; margin-bottom: 8px; }
.contact-block p { color: #454e58; }
.contact-phone { color: var(--teal); font-weight: 800; font-size: 1.5rem; text-decoration: none; }
.contact-phone:hover { text-decoration: underline; }

.step-num { display: flex; gap: 18px; margin-bottom: 26px; }
.step-n {
  flex: 0 0 44px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  font-size: 1.25rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.step-num h3 { font-size: 1.15rem; margin: 8px 0 6px; }
.step-num p { color: #5b6470; }

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 4px 0;
}
.faq summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 14px 0;
  list-style-position: outside;
}
.faq details[open] summary { color: var(--teal); }
.faq details p { padding: 0 0 16px 26px; color: #454e58; }

.closing { text-align: center; padding-bottom: 70px; }
.closing .s-lead { font-size: 1.3rem; }
.cta-row {
  display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
  margin-top: 10px;
}
.cta-row .btn-primary { margin-top: 0; }
.btn-outline {
  background: #fff;
  color: var(--teal);
  border: 2px solid var(--teal);
}

.site-footer {
  background: #0e2b28;
  color: #b8c8c5;
  text-align: center;
  padding: 36px 6vw 44px;
  font-size: 0.85rem;
}
.foot-line { font-weight: 600; color: #e8efee; margin-bottom: 14px; }
.foot-legal { line-height: 1.6; max-width: 720px; margin: 0 auto; color: #b8c8c5 !important; }
/* ---------- Header parity (Netlify) ----------
 * The theme's style.css (loaded via wp_head) adds clearfix pseudo-elements to
 * .site-header. Inside this flex header they become extra flex items and push
 * the logo and menu toward the centre. Scoped to the landing templates' body classes. */
.medcare-support-page .site-header::before,
.medcare-support-page .site-header::after,
.medcare-apply-page .site-header::before,
.medcare-apply-page .site-header::after,
.medcare-thankyou-page .site-header::before,
.medcare-thankyou-page .site-header::after {
  content: none;
}

/* ---------- Primary button text colour ----------
 * Theme/plugin link colours (a, a:visited, a:hover…) loaded via wp_head override
 * the button text. Force white on all states; outline variant keeps its own colour. */
.btn-primary:not(.btn-outline),
.btn-primary:not(.btn-outline):link,
.btn-primary:not(.btn-outline):visited,
.btn-primary:not(.btn-outline):hover,
.btn-primary:not(.btn-outline):focus,
.btn-primary:not(.btn-outline):active,
.btn-primary:not(.btn-outline) .arrow {
  color: #fff !important;
}
