/* Recoloured copy of nissy.css by Nissy Site Additions */
/* =====================================================================
   Nissy Home Care Services – custom CSS
   WHERE TO ADD (pick ONE, don't paste in two places):
     • Elementor → Site Settings → Custom CSS   (Elementor Pro), or
     • Appearance → Customize → Additional CSS  (any theme, Elementor Free)
   Everything is scoped to .nhc-* classes that the kit's templates use,
   so it will not change the rest of your existing design.
   ===================================================================== */

/* ---------- 1. Brand tokens ---------- */
:root {
  --nhc-teal: #038F9F;        /* primary brand */
  --nhc-teal-dark: #038F9F;   /* hover / pressed */
  --nhc-navy: #0B2540;        /* headings, footer */
  --nhc-text: #3A4A5C;        /* body text */
  --nhc-light: #E9F6F8;       /* soft healthcare background */
  --nhc-white: #FFFFFF;
  --nhc-radius: 16px;
  --nhc-shadow: 0 8px 28px rgba(11, 37, 64, .08);
}

/* ---------- 2. Global safety: no horizontal scrolling ---------- */
html, body { overflow-x: clip; } /* clip (not hidden) so the sticky header keeps working */
.nhc-section img, .nhc-section iframe { max-width: 100%; }

/* ---------- 3. Sticky header ----------
   Add the CSS class  nhc-sticky-header  to your header's outer
   section/container (Advanced → CSS Classes). Skip this block if your
   theme or Elementor Pro "Motion Effects → Sticky" already does it. */
.nhc-sticky-header {
  position: sticky !important;
  top: 0;
  z-index: 999;
  background: var(--nhc-white);
  box-shadow: 0 2px 14px rgba(11, 37, 64, .08);
}
.admin-bar .nhc-sticky-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .nhc-sticky-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .nhc-sticky-header { top: 0; } }

/* Header CTA: add class  nhc-header-cta  to the "Book a Caregiver" button */
.nhc-header-cta .elementor-button,
a.nhc-header-cta {
  background: var(--nhc-teal) !important;
  color: #fff !important;
  border-radius: 50px !important;
  padding: 12px 24px !important;
  font-weight: 600;
  white-space: nowrap;
}
.nhc-header-cta .elementor-button:hover, a.nhc-header-cta:hover { background: var(--nhc-teal-dark) !important; }

/* ---------- 4. Cards (icon boxes, testimonials) ---------- */
.nhc-card > .elementor-widget-container {
  background: var(--nhc-white);
  border: 1px solid rgba(3,143,159,.12);
  border-radius: var(--nhc-radius);
  box-shadow: var(--nhc-shadow);
  padding: 28px 22px;
  height: 100%;
  transition: transform .25s ease, box-shadow .25s ease;
}
.nhc-card:hover > .elementor-widget-container {
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(11, 37, 64, .12);
}
.nhc-grid .elementor-widget-wrap { height: 100%; }
.nhc-grid .nhc-card { height: 100%; }
.nhc-card .elementor-icon-box-description:empty { display: none; }
.nhc-card a { color: inherit; }

/* ---------- 5. Partnership process steps ---------- */
.nhc-steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px;
  counter-reset: none;
}
.nhc-step {
  position: relative; text-align: center;
  background: var(--nhc-light); border-radius: var(--nhc-radius);
  padding: 34px 18px 24px;
}
.nhc-step__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--nhc-teal); color: #fff; font-weight: 700; font-size: 20px;
  margin-bottom: 14px;
}
.nhc-step h3 { font-size: 17px; color: var(--nhc-navy); margin: 0 0 8px; line-height: 1.3; }
.nhc-step p { font-size: 15px; color: var(--nhc-text); margin: 0; line-height: 1.6; }
@media (max-width: 1024px) { .nhc-steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .nhc-steps { grid-template-columns: 1fr; } }

/* ---------- 6. Forms (Elementor Pro form + Contact Form 7) ---------- */
.nhc-form-card > .elementor-widget-wrap,
.nhc-form-card .elementor-widget-wrap {
  background: var(--nhc-white);
  border-radius: var(--nhc-radius);
  box-shadow: var(--nhc-shadow);
  padding: 30px !important;
}
@media (max-width: 600px) {
  .nhc-form-card > .elementor-widget-wrap, .nhc-form-card .elementor-widget-wrap { padding: 20px !important; }
}
.nhc-form-card input:not([type=submit]), .nhc-form-card select, .nhc-form-card textarea {
  width: 100%; border: 1px solid #CDE2E5; border-radius: 10px;
  padding: 12px 14px; font-size: 16px; /* 16px stops iOS zoom */ background: #fff;
}
.nhc-form-card input:focus, .nhc-form-card select:focus, .nhc-form-card textarea:focus {
  outline: none; border-color: var(--nhc-teal); box-shadow: 0 0 0 3px rgba(2,116,129,.18);
}
.nhc-form-card .wpcf7-submit, .nhc-form-card button[type=submit] {
  width: 100%; background: var(--nhc-teal); color: #fff; border: 0;
  border-radius: 50px; padding: 15px 28px; font-weight: 600; font-size: 16px; cursor: pointer;
}
.nhc-form-card .wpcf7-submit:hover, .nhc-form-card button[type=submit]:hover { background: var(--nhc-teal-dark); }
.nhc-cf7 .nhc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.nhc-cf7 p { margin: 0 0 14px; }
.nhc-cf7 label { font-weight: 600; color: var(--nhc-navy); font-size: 14px; }
@media (max-width: 600px) { .nhc-cf7 .nhc-row { grid-template-columns: 1fr; gap: 0; } }

/* ---------- 7. Gallery ---------- */
.nhc-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.nhc-chip {
  background: var(--nhc-light); color: var(--nhc-teal-dark);
  border-radius: 50px; padding: 8px 16px; font-size: 14px; font-weight: 600;
}
.nhc-gallery-item img {
  border-radius: var(--nhc-radius);
  transition: transform .35s ease, filter .35s ease;
}
.nhc-gallery-item .elementor-widget-container { overflow: hidden; border-radius: var(--nhc-radius); }
.nhc-gallery-item a:hover img, .nhc-gallery-item a:focus img { transform: scale(1.04); }
.nhc-gallery-item figcaption, .nhc-gallery-item .widget-image-caption {
  margin-top: 10px; font-weight: 600; color: var(--nhc-navy); font-size: 15px; text-align: center;
}

/* ---------- 8. Buttons / CTA pills ---------- */
.nhc-cta-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.nhc-pill {
  display: inline-block; padding: 14px 26px; border-radius: 50px; font-weight: 600;
  background: var(--nhc-teal); color: #fff !important; text-decoration: none !important;
  border: 2px solid var(--nhc-teal); transition: background .2s ease;
}
.nhc-pill:hover { background: var(--nhc-teal-dark); border-color: var(--nhc-teal-dark); }
.nhc-pill--outline { background: transparent; color: var(--nhc-teal) !important; }
.nhc-pill--outline:hover { color: #fff !important; }
.nhc-pill--light { background: #fff; color: var(--nhc-teal-dark) !important; border-color: #fff; }
.nhc-pill--light:hover { background: var(--nhc-light); border-color: var(--nhc-light); }
.nhc-pill--ghost { background: transparent; border-color: rgba(255,255,255,.7); }
.nhc-pill--ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; }
@media (max-width: 480px) { .nhc-cta-row .nhc-pill { width: 100%; text-align: center; } }

/* ---------- 9. Lists ---------- */
@media (min-width: 768px) {
  .nhc-list-2col .elementor-icon-list-items { display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; }
  .nhc-list-2col .elementor-icon-list-item { margin: 0 !important; padding: 5px 0 !important; }
}
.nhc-rounded-img img { border-radius: 20px; box-shadow: var(--nhc-shadow); }

/* ---------- 10. Footer ---------- */
.nhc-footer a { color: #C9D6E2; text-decoration: none; }
.nhc-footer a:hover, .nhc-footer a:focus { color: #fff; }
.nhc-footer-title .elementor-heading-title { position: relative; padding-bottom: 12px; }
.nhc-footer-title .elementor-heading-title::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 40px; height: 3px; background: var(--nhc-teal); border-radius: 3px;
}
.nhc-footer-list .elementor-icon-list-text { font-size: 15px; }
.nhc-copy { margin: 0; text-align: center; color: #9FB2C4; font-size: 14px; }
@media (max-width: 767px) { .nhc-footer .elementor-column { margin-bottom: 26px; } }

/* ---------- 11. Map ---------- */
.nhc-map iframe { border-radius: var(--nhc-radius); box-shadow: var(--nhc-shadow); display: block; }

/* ---------- 12. Partner logos (only real, approved partners) ---------- */
.nhc-logos img { max-height: 70px; width: auto; filter: grayscale(1); opacity: .75; transition: .25s; }
.nhc-logos img:hover { filter: none; opacity: 1; }

/* ---------- 13. Accessibility ---------- */
.nhc-section a:focus-visible, .nhc-social a:focus-visible, .nhc-footer a:focus-visible {
  outline: 3px solid #FFB547; outline-offset: 3px; border-radius: 6px;
}
@media (prefers-reduced-motion: reduce) {
  .nhc-card > .elementor-widget-container, .nhc-gallery-item img { transition: none; }
}

/* ---------- 14. Packages page ---------- */
.nhc-price-note {
  margin: 0; padding: 16px 20px; border-radius: 12px;
  background: #FFF8E6; border-left: 4px solid #E0A526; color: #5A4A1F;
  font-size: 15px; line-height: 1.6;
}
.nhc-price-note i { color: #C98A0B; margin-right: 6px; }
.nhc-pkg > .elementor-widget-wrap {
  background: var(--nhc-white);
  border: 1px solid rgba(3,143,159,.16);
  border-top: 5px solid var(--nhc-teal);
  border-radius: var(--nhc-radius);
  box-shadow: var(--nhc-shadow);
  padding: 28px 24px !important;
  align-content: flex-start;
  transition: transform .25s ease, box-shadow .25s ease;
}
.nhc-pkg:hover > .elementor-widget-wrap { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(11, 37, 64, .12); }
.nhc-pkg .elementor-widget { margin-bottom: 10px !important; }
.nhc-pkg__desc p { margin: 0; }
.nhc-pkg__type { margin-top: 8px; padding-top: 14px; border-top: 1px dashed #D3E9EC; }
.nhc-pkg__type + .nhc-pkg__price { margin-top: -4px; }
.nhc-pkg__unit { font-size: 14px; font-weight: 500; color: var(--nhc-text); white-space: nowrap; }
.nhc-pkg__features { margin-top: 8px; padding-top: 14px; border-top: 1px dashed #D3E9EC; }
.nhc-pkg__features .elementor-icon-list-text { font-size: 15px; }
/* push the button to the bottom so buttons line up across a row */
.nhc-pkg-row .nhc-pkg > .elementor-widget-wrap { display: flex; flex-direction: column; }
.nhc-pkg-row .nhc-pkg__btn { margin-top: auto !important; padding-top: 10px; }
.nhc-pkg__btn .elementor-button { width: 100%; }
@media (max-width: 1024px) { .nhc-pkg-row > .elementor-container { flex-wrap: wrap; } }
@media (max-width: 767px)  { .nhc-pkg { margin-bottom: 18px; } }

/* ---------- 15. Enquiry form ---------- */
.nhc-enquiry { scroll-margin-top: 90px; } /* keeps the form clear of the sticky header */
#enquiry-form { scroll-margin-top: 90px; }
.nhc-form .elementor-field-group { margin-bottom: 14px; }
.nhc-form .elementor-message-success { color: #0B7A4B; font-weight: 600; }
.nhc-form .elementor-message-danger, .wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.invalid .wpcf7-response-output { color: #B42318; border-color: #F3B8B2 !important; }
.wpcf7 form.sent .wpcf7-response-output { color: #0B7A4B; border-color: #9FD8BD !important; background: #EEFAF4; }
.wpcf7 .wpcf7-response-output { border-radius: 10px; padding: 12px 14px !important; margin: 14px 0 0 !important; }
.wpcf7-not-valid-tip { font-size: 13px; margin-top: 4px; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---------- 16. Plugin extras (header, footer, forms, X icon) ---------- */
/* Menu "Book a Caregiver" item (class is on the <li>) */
li.nhc-header-cta > a {
  background: var(--nhc-teal) !important; color: #fff !important; border-radius: 50px !important;
  padding: 10px 22px !important; font-weight: 600; line-height: 1.2 !important; white-space: nowrap;
  margin-left: 8px; display: inline-block;
}
li.nhc-header-cta > a:hover, li.nhc-header-cta > a:focus { background: var(--nhc-teal-dark) !important; color: #fff !important; }
@media (max-width: 921px) { li.nhc-header-cta > a { margin: 10px 16px; } }

/* Sticky header for common themes (switch off in Tools → Nissy Site Update) */
body.nhc-sticky #masthead, body.nhc-sticky header.site-header, body.nhc-sticky #site-header,
body.nhc-sticky header#header, body.nhc-sticky .elementor-location-header {
  position: sticky; top: 0; z-index: 999; background: #fff; box-shadow: 0 2px 14px rgba(11,37,64,.08);
}
body.admin-bar.nhc-sticky #masthead, body.admin-bar.nhc-sticky header.site-header, body.admin-bar.nhc-sticky #site-header,
body.admin-bar.nhc-sticky header#header, body.admin-bar.nhc-sticky .elementor-location-header { top: 32px; }
@media (max-width: 782px) {
  body.admin-bar.nhc-sticky #masthead, body.admin-bar.nhc-sticky header.site-header, body.admin-bar.nhc-sticky #site-header,
  body.admin-bar.nhc-sticky header#header, body.admin-bar.nhc-sticky .elementor-location-header { top: 46px; }
}
@media (max-width: 600px) {
  body.admin-bar.nhc-sticky #masthead, body.admin-bar.nhc-sticky header.site-header, body.admin-bar.nhc-sticky #site-header,
  body.admin-bar.nhc-sticky header#header, body.admin-bar.nhc-sticky .elementor-location-header { top: 0; }
}

/* New footer replaces the theme footer (switch off in Tools → Nissy Site Update) */
body.nhc-footer-on #colophon, body.nhc-footer-on footer.site-footer, body.nhc-footer-on div.site-footer,
body.nhc-footer-on #site-footer, body.nhc-footer-on footer#footer, body.nhc-footer-on .elementor-location-footer { display: none !important; }
.nhc-site-footer { clear: both; width: 100%; }

/* Forms rendered by [nissy_enquiry_form] / [nissy_partner_form] */
.nhc-form-wrap { scroll-margin-top: 110px; }
.nhc-form-wrap.nhc-standalone {
  background: #fff; border-radius: var(--nhc-radius); box-shadow: var(--nhc-shadow);
  padding: 28px; max-width: 760px; margin: 30px auto;
}
.nhc-form-wrap h3.nhc-form-title { margin: 0 0 16px; color: var(--nhc-navy); font-size: 24px; }
.nhc-form-wrap input:not([type=submit]):not([type=hidden]), .nhc-form-wrap select, .nhc-form-wrap textarea {
  width: 100%; border: 1px solid #CDE2E5; border-radius: 10px; padding: 12px 14px; font-size: 16px;
  background: #fff; color: #1c2b3a; box-sizing: border-box; margin-top: 4px;
}
.nhc-form-wrap input:focus, .nhc-form-wrap select:focus, .nhc-form-wrap textarea:focus {
  outline: none; border-color: var(--nhc-teal); box-shadow: 0 0 0 3px rgba(2,116,129,.18);
}
.nhc-form-wrap label { font-weight: 600; color: var(--nhc-navy); font-size: 14px; display: block; }
.nhc-form-wrap .nhc-req { color: #B42318; }
.nhc-form-wrap .nhc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.nhc-form-wrap .nhc-field { margin: 0 0 14px; }
.nhc-form-wrap .nhc-field-error { color: #B42318; font-size: 13px; margin-top: 4px; display: block; }
.nhc-form-wrap .nhc-invalid { border-color: #E5484D !important; }
.nhc-form-wrap .nhc-submit {
  width: 100%; background: var(--nhc-teal); color: #fff; border: 0; border-radius: 50px;
  padding: 15px 28px; font-weight: 600; font-size: 16px; cursor: pointer; transition: background .2s;
}
.nhc-form-wrap .nhc-submit:hover, .nhc-form-wrap .nhc-submit:focus { background: var(--nhc-teal-dark); }
.nhc-form-wrap .nhc-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.nhc-msg { border-radius: 10px; padding: 14px 16px; margin: 0 0 16px; font-weight: 600; line-height: 1.5; }
.nhc-msg--ok { background: #EEFAF4; color: #0B7A4B; border: 1px solid #9FD8BD; }
.nhc-msg--err { background: #FEF3F2; color: #B42318; border: 1px solid #F3B8B2; }
.nhc-form-note { font-size: 13px; color: #64748B; margin: 10px 0 0; text-align: center; }
@media (max-width: 600px) {
  .nhc-form-wrap .nhc-row { grid-template-columns: 1fr; gap: 0; }
  .nhc-form-wrap.nhc-standalone { padding: 20px; }
}

/* X (Twitter) logo – works even if the site's Font Awesome version has no X icon */
.fa-x-twitter::before, .fab.fa-x-twitter::before {
  content: "" !important; display: inline-block; width: 1em; height: 1em; background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M389.2 48h70.6L305.6 224.2 487 464H345L233.7 318.6 106.5 464H35.8L200.7 275.5 26.8 48H172.4L272.9 180.9 389.2 48zM364.4 421.8h39.1L151.1 88h-42L364.4 421.8z'/%3E%3C/svg%3E") no-repeat center / contain;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M389.2 48h70.6L305.6 224.2 487 464H345L233.7 318.6 106.5 464H35.8L200.7 275.5 26.8 48H172.4L272.9 180.9 389.2 48zM364.4 421.8h39.1L151.1 88h-42L364.4 421.8z'/%3E%3C/svg%3E") no-repeat center / contain;
  vertical-align: -0.125em;
}
.nhc-center-list .elementor-icon-list-items { max-width: 620px; margin: 0 auto; }
