* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  color: #000;
  background: #fff;
  font-family: "Lato", Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

a {
  color: #0095c8;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

p {
  margin: 0 0 17px;
}

strong {
  font-weight: 700;
}

.blue,
.welcome strong,
.profile-copy strong {
  color: #0095c8;
  font-weight: 700;
}

.container {
  width: 1200px;
  max-width: calc(100% - 80px);
  margin: 0 auto;
}

.site-header {
  background: #fff;
}

.header-main {
  position: relative;
  height: 105px;
}

.brand {
  position: absolute;
  top: 11px;
  left: 0;
  display: block;
}

.brand img {
  display: block;
  width: 270px;
  height: auto;
}

.phone-block {
  position: absolute;
  top: 31px;
  left: 435px;
  display: flex;
  align-items: center;
  color: #2299c3;
  font-size: 31px;
  font-weight: 400;
  line-height: 1;
  transform: none;
  white-space: nowrap;
}

.phone-icon {
  display: inline-flex;
  width: 27px;
  height: 27px;
  margin-right: 8px;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: #2299c3;
  border-radius: 5px;
  font-size: 18px;
  line-height: 1;
}

.find-us {
  position: absolute;
  top: 8px;
  right: 0;
  color: #2299c3;
  font-size: 18px;
}

.facebook-dot {
  display: inline-flex;
  width: 25px;
  height: 25px;
  margin-left: 4px;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: #31559d;
  border-radius: 50%;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 19px;
  font-weight: bold;
  line-height: 1;
  vertical-align: middle;
}

.site-search {
  position: absolute;
  top: 40px;
  right: 0;
  display: flex;
  width: 358px;
  height: 43px;
}

.site-search input {
  width: 307px;
  height: 43px;
  padding: 0 10px;
  border: 1px solid #d5d5d5;
  border-right: 0;
  color: #7a7a7a;
  font: inherit;
  font-size: 16px;
}

.site-search button {
  width: 51px;
  height: 43px;
  border: 0;
  color: #fff;
  background: #75c95b;
  font-size: 28px;
  line-height: 1;
  cursor: default;
}

.nav-bar {
  height: 53px;
  background: #2098be;
}

.nav-menu {
  display: flex;
  height: 53px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-menu li:nth-child(1) { flex: 0 0 153px; }
.nav-menu li:nth-child(2) { flex: 0 0 180px; }
.nav-menu li:nth-child(3) { flex: 0 0 198px; }
.nav-menu li:nth-child(4) { flex: 0 0 193px; }
.nav-menu li:nth-child(5) { flex: 0 0 282px; }
.nav-menu li:nth-child(6) { flex: 0 0 194px; }

.nav-menu a {
  display: block;
  height: 53px;
  padding: 16px 30px 0;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
}

.nav-menu .active a {
  background: #78c864;
}

.home-slider {
  position: relative;
  height: 402px;
  overflow: hidden;
  background: #ddd;
}

.home-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  animation: homeSlider 24s infinite;
}

.home-slide:nth-child(1) {
  opacity: 1;
  animation-delay: 0s;
}

.home-slide:nth-child(2) {
  animation-delay: 6s;
}

.home-slide:nth-child(3) {
  animation-delay: 12s;
}

.home-slide:nth-child(4) {
  animation-delay: 18s;
}

.home-slide img {
  display: block;
  width: 100%;
  height: 402px;
  object-fit: cover;
}

.home-slide .caption {
  position: absolute;
  left: 50%;
  bottom: 66px;
  padding: 6px 9px 7px;
  color: #fff;
  background: rgba(70, 70, 70, 0.72);
  font-size: 22px;
  line-height: 1.2;
  transform: translateX(-50%);
  white-space: nowrap;
}

@keyframes homeSlider {
  0%,
  23% {
    opacity: 1;
  }
  25%,
  98% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

.home-services {
  padding: 31px 0 47px;
  background: #fff;
  text-align: center;
}

.home-services h2,
.welcome h2 {
  margin: 0 0 30px;
  color: #000;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.service-card img {
  display: block;
  width: 100%;
  padding: 5px;
  border: 1px solid #cfcfcf;
  background: #fff;
}

.service-card h5 {
  margin: 18px 0 28px;
  color: #000;
  font-size: 21px;
  font-weight: 400;
  line-height: 1.2;
}

.button-row {
  clear: both;
  text-align: center;
}

.outline-button,
.contact-form button {
  display: inline-block;
  min-width: 144px;
  padding: 12px 21px;
  border: 1px solid #0095c8;
  color: #0095c8;
  background: transparent;
  font: inherit;
  font-size: 20px;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
}

.outline-button:hover {
  text-decoration: none;
}

.welcome {
  padding: 38px 0 47px;
  background: #f3f3f3;
}

.narrow {
  width: 800px;
  max-width: 100%;
  margin: 0 auto;
}

.welcome p {
  margin-bottom: 18px;
}

.welcome .button-row {
  padding-top: 24px;
}

.page-hero {
  height: 267px;
  background-color: #ccc;
  background-position: center center;
  background-size: cover;
}

.page-hero .container {
  display: flex;
  height: 267px;
  align-items: center;
}

.page-hero h1 {
  margin: 9px 0 0;
  color: #fff;
  font-size: 46px;
  font-weight: 700;
  line-height: 1;
  text-shadow: 1px 2px 1px rgba(0, 0, 0, 0.35);
  text-transform: uppercase;
}

.hero-profile {
  background-image: url("../img/slide-child-hand-paint.jpg");
}

.hero-services {
  background-image: url("../img/respite-care-800x600.jpg");
  background-position: center 44%;
}

.hero-careers {
  background-image: url("../img/slide-wheelchair-man.jpg");
  background-position: center 52%;
}

.hero-testimonials {
  background-image: url("../img/slide-nurse-smiling.jpg");
  background-position: center 38%;
}

.hero-contact {
  background-image: url("../img/slide-nurse-smiling.jpg");
  background-position: center 38%;
}

.content-section {
  padding: 23px 0 53px;
  background: #fff;
}

.content-section h4 {
  margin: 0 0 9px;
  color: #000;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.2;
}

.content-section p {
  margin-bottom: 17px;
}

.align-right {
  float: right;
  width: 350px;
  max-width: 36%;
  margin: 3px 0 28px 38px;
}

.align-left {
  float: left;
  width: 350px;
  max-width: 36%;
  margin: 29px 40px 30px 0;
}

.profile-copy:after,
.content-section:after {
  display: block;
  clear: both;
  content: "";
}

.check-list {
  margin: 15px 0 21px;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  margin: 3px 0;
  padding-left: 21px;
}

.check-list li:before {
  position: absolute;
  top: 0;
  left: 0;
  color: #2299c3;
  content: "✔";
  font-weight: 700;
}

.careers-copy p:first-child {
  font-weight: 700;
}

.careers-copy .contact-cta {
  margin: 13px 0 20px;
}

.careers-copy .contact-cta a {
  color: #0095c8;
  font-weight: 700;
  text-transform: uppercase;
}

.testimonial-block {
  margin: 2px 0 11px;
  padding: 24px 30px 18px;
  border: 1px solid #d6d6d6;
  color: #000;
  background: #f7f7f7;
  font-size: 18px;
  line-height: 1.6;
}

.testimonial-block p {
  margin-bottom: 18px;
}

.testimonial-mark {
  color: #2299c3;
  font-size: 30px;
  line-height: 1;
}

.contact-layout {
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 40px;
  align-items: start;
  margin-top: 8px;
}

.contact-info-box {
  padding: 21px 24px 20px;
  border: 1px solid #d6d6d6;
  background: #f7f7f7;
}

.contact-details {
  margin: 2px 0 0;
  padding: 0;
  list-style: none;
}

.contact-details li {
  margin: 2px 0;
}

.contact-form {
  width: 100%;
  max-width: 100%;
}

.contact-form label {
  display: block;
  margin: 0 0 5px;
  color: #000;
}

.contact-form input,
.contact-form textarea {
  display: block;
  width: 100%;
  margin: 0 0 13px;
  padding: 9px 10px;
  border: 1px solid #cfcfcf;
  background: #fff;
  color: #000;
  font: inherit;
}

.contact-form textarea {
  height: 150px;
  resize: vertical;
}

.contact-form button {
  min-width: 102px;
  padding: 8px 18px;
  font-size: 17px;
}

.footer-widgets {
  padding: 17px 0 54px;
  background: #e7e7e7;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1.7fr 1.38fr;
  gap: 29px;
}

.footer-widgets h4 {
  margin: 0 0 7px;
  padding: 0 0 3px;
  border-bottom: 1px solid #cfcfcf;
  color: #000;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.2;
}

.footer-widgets p,
.footer-widgets li {
  font-size: 14px;
  line-height: 1.5;
}

.footer-widgets p {
  margin: 0;
}

.footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.footer-links ul {
  margin: 0;
  padding-left: 20px;
}

.footer-links li {
  margin: 0 0 2px;
}

.cert-row {
  display: flex;
  gap: 29px;
  align-items: flex-start;
}

.cert-row img {
  display: block;
  height: auto;
}

.cert-row .iso {
  width: 106px;
}

.cert-row .bpc {
  width: 108px;
}

.cert-row .ndis {
  width: 107px;
  margin-top: 0;
}

.registered-provider {
  display: block;
  width: 382px;
  max-width: 100%;
  margin-top: 23px;
}

.site-credit {
  height: 49px;
  color: #fff;
  background: #242b34;
  font-size: 14px;
}

.credit-inner {
  display: flex;
  height: 49px;
  align-items: center;
  justify-content: space-between;
}

.site-credit a {
  color: #65d667;
}

@media (max-width: 900px) {
  .container {
    max-width: calc(100% - 32px);
  }

  .header-main {
    height: auto;
    min-height: 158px;
  }

  .brand,
  .phone-block,
  .find-us,
  .site-search {
    position: static;
    transform: none;
  }

  .brand {
    padding-top: 12px;
  }

  .phone-block {
    margin-top: 12px;
    font-size: 27px;
  }

  .find-us {
    margin-top: 8px;
  }

  .site-search {
    width: 100%;
    margin-top: 8px;
    padding-bottom: 13px;
  }

  .site-search input {
    width: calc(100% - 51px);
  }

  .nav-bar,
  .nav-menu {
    height: auto;
  }

  .nav-menu {
    flex-wrap: wrap;
  }

  .nav-menu li,
  .nav-menu li:nth-child(1),
  .nav-menu li:nth-child(2),
  .nav-menu li:nth-child(3),
  .nav-menu li:nth-child(4),
  .nav-menu li:nth-child(5),
  .nav-menu li:nth-child(6) {
    flex: 1 0 33.333%;
  }

  .service-grid,
  .footer-grid,
  .footer-links {
    grid-template-columns: 1fr;
  }

  .home-slider,
  .home-slide img {
    height: 300px;
  }

  .home-slide .caption {
    width: 90%;
    font-size: 19px;
    text-align: center;
    white-space: normal;
  }

  .page-hero,
  .page-hero .container {
    height: 220px;
  }

  .align-right,
  .align-left {
    float: none;
    width: 100%;
    max-width: 420px;
    margin: 15px 0;
  }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 22px;
  }
}
