:root {
  --blue: #173c5c;
  --blue-2: #0f2d45;
  --teal: #1f8a89;
  --teal-dark: #146d6f;
  --cream: #f8f3e8;
  --gold: #c99f4a;
  --red: #d71f35;
  --red-soft: rgba(215, 31, 53, .11);
  --ink: #173044;
  --muted: #647789;
  --line: #dfe8ed;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(23, 60, 92, .14);
  --radius: 22px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #fffdf8;
  font-size: 16px;
  line-height: 1.65;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

.container {
  width: min(1140px, calc(100% - 40px));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 100;
  background: var(--blue);
  color: var(--white);
  padding: 10px 14px;
  border-radius: 8px;
}

.skip-link:focus { top: 16px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 253, 248, .9);
  border-bottom: 1px solid rgba(215, 31, 53, .12);
  backdrop-filter: blur(18px);
  transition: box-shadow .25s ease, background .25s ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 10px 30px rgba(23, 60, 92, .09);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 118px;
  gap: 72px;
  width: min(1440px, calc(100% - 64px));
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand img {
  width: 340px;
  height: auto;
  max-height: 104px;
  object-fit: contain;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 44px;
  font-size: 14px;
  font-weight: 700;
  margin-left: auto;
}

.primary-nav .menu,
.site-footer .menu {
  display: flex;
  align-items: center;
  gap: 44px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.primary-nav a,
.site-footer a {
  text-decoration: none;
}

.primary-nav .menu a {
  color: var(--blue-2);
  position: relative;
}

.primary-nav .menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width .2s ease;
}

.primary-nav .menu a:hover::after,
.primary-nav .menu a:focus::after { width: 100%; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 22px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--teal), var(--blue) 72%, var(--red));
  color: var(--white);
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 16px 34px rgba(31, 138, 137, .24), 0 0 0 1px rgba(215, 31, 53, .08);
  cursor: pointer;
}

.button:hover,
.button:focus {
  transform: translateY(-1px);
}

.button-small {
  min-height: 44px;
  padding: 11px 18px;
}

.button-ghost {
  background: rgba(255, 255, 255, .9);
  color: var(--blue);
  border: 1px solid rgba(215, 31, 53, .18);
  box-shadow: none;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  padding: 10px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--blue);
}

.hero {
  min-height: calc(100vh - 86px);
  display: grid;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: var(--blue-2);
  color: var(--white);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(15, 45, 69, .9) 0%, rgba(23, 60, 92, .76) 43%, rgba(31, 138, 137, .16) 100%),
    linear-gradient(180deg, rgba(15, 45, 69, .08), rgba(15, 45, 69, .3));
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  height: 120px;
  background: linear-gradient(180deg, transparent, #fffdf8);
}

.hero-slider {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.035);
  transition: opacity 1.15s ease, transform 6s ease;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.hero-grid {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 760px);
  align-items: center;
  gap: 0;
  padding: 86px 0 138px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
  color: var(--gold);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  line-height: 1.2;
}

.eyebrow::after {
  content: "";
  width: 46px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold), var(--red), rgba(31, 138, 137, .2));
}

h1,
h2,
h3,
p { overflow-wrap: anywhere; }

h1,
h2 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  line-height: 1.06;
  color: var(--blue-2);
}

.hero h1 {
  color: var(--white);
  font-size: clamp(46px, 7vw, 82px);
  max-width: 780px;
}

.hero-text {
  max-width: 710px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, .9);
  font-size: 20px;
}

.section {
  padding: 100px 0;
}

.section.soft {
  background: linear-gradient(180deg, #f7fbfb, var(--cream) 74%, rgba(215, 31, 53, .045));
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 500px);
  gap: 70px;
  align-items: center;
}

.two-column.align-start { align-items: start; }

.section-copy h2,
.section-heading h2,
.cta-inner h2,
.page-hero h1,
.statement-card h2,
.philosophy h2,
.contact-panel h2,
.form-card h2,
.job-panel h2 {
  font-size: clamp(34px, 4.2vw, 56px);
}

.section-copy p,
.page-hero p,
.cta-inner p,
.philosophy p {
  color: var(--muted);
  font-size: 18px;
}

.image-panel {
  border-radius: 28px;
  overflow: hidden;
  min-height: 520px;
  box-shadow: var(--shadow);
  background: var(--cream);
}

.image-panel img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-heading.split {
  max-width: none;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 28px;
}

.text-link {
  color: var(--teal-dark);
  font-weight: 900;
  text-decoration: none;
}

.card-grid {
  display: grid;
  gap: 20px;
}

.card-grid.five {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.card-grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.feature-card,
.value-card,
.statement-card,
.service-card,
.service-detail,
.form-card,
.contact-panel,
.job-panel {
  position: relative;
  border: 1px solid rgba(223, 232, 237, .9);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .86);
  box-shadow: 0 18px 44px rgba(23, 60, 92, .08);
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}

.feature-card::before,
.value-card::before,
.statement-card::before,
.service-card::before,
.service-detail::before,
.form-card::before,
.contact-panel::before,
.job-panel::before {
  content: "";
  position: absolute;
  left: 22px;
  right: 22px;
  top: 0;
  height: 3px;
  border-radius: 0 0 999px 999px;
  background: linear-gradient(90deg, var(--gold), var(--red), var(--teal));
  opacity: .62;
  transform: scaleX(.42);
  transform-origin: left;
  transition: transform .28s ease, opacity .28s ease;
}

.feature-card:hover,
.value-card:hover,
.statement-card:hover,
.service-card:hover,
.service-detail:hover,
.form-card:hover,
.contact-panel:hover,
.job-panel:hover {
  transform: translateY(-6px);
  border-color: rgba(215, 31, 53, .18);
  box-shadow: 0 26px 70px rgba(23, 60, 92, .13), 0 14px 38px rgba(215, 31, 53, .08);
}

.feature-card:hover::before,
.value-card:hover::before,
.statement-card:hover::before,
.service-card:hover::before,
.service-detail:hover::before,
.form-card:hover::before,
.contact-panel:hover::before,
.job-panel:hover::before {
  opacity: .9;
  transform: scaleX(1);
}

.feature-card {
  min-height: 246px;
  padding: 26px;
}

.card-icon,
.service-number {
  display: inline-flex;
  color: var(--gold);
  font-weight: 900;
  margin-bottom: 18px;
}

.card-icon {
  color: var(--red);
}

.feature-card h3,
.service-card h3,
.value-card h3,
.job-panel h3 {
  margin: 0 0 10px;
  color: var(--blue);
  font-size: 20px;
  line-height: 1.2;
}

.feature-card p,
.service-card p,
.service-detail p,
.job-panel p,
.contact-panel p,
.contact-panel address {
  color: var(--muted);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.services-feature img,
.image-break img,
.contact-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.services-feature {
  height: 440px;
  margin-bottom: 34px;
  overflow: hidden;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.image-break {
  height: 460px;
  overflow: hidden;
}

.contact-photo {
  height: 260px;
  border-radius: 20px;
  margin-bottom: 28px;
  box-shadow: 0 18px 42px rgba(23, 60, 92, .13);
}

.service-card {
  position: relative;
  min-height: 390px;
  padding: 0 28px 28px;
  text-decoration: none;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}

.service-thumb {
  width: calc(100% + 56px);
  max-width: none;
  height: auto;
  aspect-ratio: 16 / 10;
  margin: 0 -28px 24px;
  object-fit: cover;
  object-position: center center;
  border-radius: var(--radius) var(--radius) 0 0;
  transition: transform .45s ease, filter .45s ease;
}

.service-card:nth-child(1) .service-thumb,
.service-card:nth-child(3) .service-thumb,
.service-card:nth-child(6) .service-thumb {
  object-position: center 42%;
}

.service-card:nth-child(4) .service-thumb {
  object-position: center 48%;
}

.service-card:hover,
.service-card:focus {
  transform: translateY(-6px);
  box-shadow: 0 26px 70px rgba(23, 60, 92, .13), 0 14px 38px rgba(215, 31, 53, .08);
}

.service-card:hover .service-thumb,
.service-card:focus .service-thumb {
  transform: scale(1.045);
  filter: saturate(1.05) contrast(1.02);
}

.cta-band {
  padding: 100px 0;
  background:
    linear-gradient(135deg, rgba(15, 45, 69, .93), rgba(31, 138, 137, .86), rgba(215, 31, 53, .48)),
    url('../images/gentle-hands-care.jpg') center/cover no-repeat;
  color: var(--white);
}

.cta-inner {
  max-width: 720px;
}

.cta-inner h2 { color: var(--white); }
.cta-inner p { color: rgba(255, 255, 255, .86); }

.page-hero {
  padding: 128px 0 86px;
  background:
    linear-gradient(135deg, rgba(248, 243, 232, .96), rgba(247, 251, 251, .96)),
    radial-gradient(circle at 78% 18%, rgba(201, 159, 74, .18), transparent 30%);
}

.page-hero.compact {
  padding-bottom: 70px;
}

.narrow {
  max-width: 840px;
}

.mission-grid,
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.statement-card,
.contact-panel,
.form-card,
.job-panel {
  padding: 34px;
}

.value-card {
  min-height: 150px;
  padding: 26px;
  display: flex;
  align-items: end;
  background: linear-gradient(145deg, #ffffff, #f8f3e8);
}

.philosophy {
  background: var(--blue);
  color: var(--white);
}

.philosophy h2 { color: var(--white); }
.philosophy p { color: rgba(255, 255, 255, .85); }

.services-list {
  display: grid;
  gap: 24px;
}

.service-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: 38px;
  padding: 34px;
  align-items: start;
}

.service-detail h2 {
  font-size: clamp(28px, 3vw, 42px);
}

.service-detail ul,
.check-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.service-detail li,
.check-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  color: var(--ink);
}

.service-detail li::before,
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 5px rgba(31, 138, 137, .1);
}

.site-form {
  display: grid;
  gap: 16px;
}

.application-actions {
  margin-top: 28px;
}

.application-panel[hidden] {
  display: none;
}

.application-preview {
  padding-top: 0;
}

@supports selector(:has(*)) {
  .career-application-grid:has([data-application-form][hidden]) {
    grid-template-columns: minmax(0, 780px);
    justify-content: center;
  }
}

.site-form label {
  display: grid;
  gap: 7px;
  color: var(--blue);
  font-weight: 800;
  font-size: 14px;
}

.site-form input,
.site-form select,
.site-form textarea {
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 13px 14px;
  font: inherit;
  color: var(--ink);
  background: #fff;
}

.site-form textarea {
  resize: vertical;
}

.site-form input:focus,
.site-form select:focus,
.site-form textarea:focus {
  outline: 3px solid var(--red-soft);
  border-color: var(--red);
}

.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-notice {
  margin: 0 0 18px;
  padding: 14px 16px;
  border-radius: 14px;
  font-weight: 700;
}

.form-notice.success {
  color: #145d42;
  background: #e9f7ef;
}

.form-notice.error {
  color: #8f1f1f;
  background: #ffe8e8;
}

.contact-panel a {
  color: var(--teal-dark);
  font-weight: 800;
}

.contact-panel {
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .96), rgba(248, 243, 232, .84)),
    radial-gradient(circle at 16% 12%, rgba(215, 31, 53, .12), transparent 32%);
}

.contact-panel .eyebrow {
  font-size: 13px;
  max-width: 360px;
}

.contact-methods {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.contact-method {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  margin: 0;
  padding: 16px;
  border: 1px solid rgba(223, 232, 237, .9);
  border-radius: 18px;
  background: rgba(255, 255, 255, .74);
  box-shadow: 0 12px 30px rgba(23, 60, 92, .06);
}

.contact-method strong {
  display: block;
  margin-bottom: 4px;
  color: var(--blue);
  font-size: 14px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.method-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--blue), var(--teal) 62%, var(--red));
  color: var(--white);
  font-weight: 900;
  box-shadow: 0 14px 28px rgba(23, 60, 92, .16);
}

.map-section iframe {
  width: 100%;
  height: 420px;
  border: 0;
  display: block;
  filter: saturate(.85);
}

.site-footer {
  background: var(--blue-2);
  color: rgba(255, 255, 255, .76);
  padding: 70px 0 26px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr .85fr 1fr 1fr;
  gap: 38px;
}

.footer-logo {
  width: 190px;
  max-height: 80px;
  object-fit: contain;
  background: rgba(255, 255, 255, .96);
  border-radius: 14px;
  padding: 8px;
  margin-bottom: 18px;
}

.site-footer h2 {
  margin: 0 0 14px;
  color: var(--white);
  font-family: Inter, sans-serif;
  font-size: 16px;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer .menu {
  align-items: flex-start;
  flex-direction: column;
  gap: 9px;
}

.site-footer li {
  margin-bottom: 9px;
}

.site-footer address {
  font-style: normal;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .14);
  margin-top: 40px;
  padding-top: 22px;
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-credit {
  color: rgba(255, 255, 255, .82);
}

.footer-credit a {
  color: var(--gold);
  font-weight: 800;
}

.mobile-call {
  display: none;
}

/* Hide third-party cookie revisit buttons when hosting installers add one automatically. */
.cky-btn-revisit-wrapper,
.cky-revisit-bottom-left,
.cky-revisit-bottom-right,
#cookie-law-info-again,
.cmplz-cookiebanner .cmplz-manage-consent {
  display: none !important;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s ease, transform .7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.feature-card.reveal.is-visible,
.value-card.reveal.is-visible,
.service-card.reveal.is-visible,
.statement-card.reveal.is-visible,
.service-detail.reveal.is-visible,
.form-card.reveal.is-visible,
.contact-panel.reveal.is-visible,
.job-panel.reveal.is-visible {
  animation: card-rise .72s ease both;
}

.delay-1 { transition-delay: .12s; }

@keyframes card-rise {
  0% {
    opacity: 0;
    transform: translateY(24px) scale(.985);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
    animation: none !important;
  }
}

@media (max-width: 1040px) {
  .card-grid.five { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-grid.four,
  .service-grid,
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-grid,
  .two-column,
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .container { width: min(100% - 28px, 1140px); }
  .header-inner { width: min(100% - 28px, 1140px); }
  .header-inner { min-height: 84px; }
  .brand img { width: 230px; max-height: 72px; }
  .menu-toggle { display: block; }
  .primary-nav {
    position: absolute;
    left: 14px;
    right: 14px;
    top: calc(100% + 8px);
    display: none;
    align-items: stretch;
    flex-direction: column;
    gap: 16px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--white);
    box-shadow: var(--shadow);
  }
  .primary-nav.is-open { display: flex; }
  .primary-nav .menu {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .hero {
    min-height: auto;
  }
  .hero-grid {
    padding: 76px 0 114px;
    gap: 34px;
  }
  .hero h1 { font-size: clamp(42px, 13vw, 62px); }
  .hero-text { font-size: 18px; }
  .section { padding: 72px 0; }
  .section-heading.split {
    display: block;
  }
  .image-panel,
  .image-panel img {
    min-height: 360px;
  }
  .services-feature,
  .image-break {
    height: 320px;
  }
  .service-detail {
    grid-template-columns: 1fr;
  }
  .mission-grid,
  .card-grid.four,
  .service-grid,
  .footer-grid { grid-template-columns: 1fr; }
  .mobile-call {
    position: fixed;
    left: 14px;
    right: 14px;
    bottom: 14px;
    z-index: 60;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 52px;
    border-radius: 999px;
    background: var(--teal);
    color: var(--white);
    font-weight: 900;
    text-decoration: none;
    box-shadow: 0 16px 36px rgba(20, 109, 111, .28);
  }
  .site-footer { padding-bottom: 90px; }
}

@media (max-width: 560px) {
  body { font-size: 15px; }
  .button-row,
  .button {
    width: 100%;
  }
  .card-grid.five { grid-template-columns: 1fr; }
  .feature-card,
  .statement-card,
  .service-detail,
  .form-card,
  .contact-panel,
  .job-panel {
    padding: 24px;
    border-radius: 18px;
  }
  .page-hero {
    padding: 90px 0 62px;
  }
}
