/* Cedar Grove Adult Family Home
   Plain brochure layout modeled on a basic adult-family-home site:
   fixed-width page, left menu, blue contact bar, stacked content boxes. */

html {
  font-family: "Segoe UI", "Open Sans", sans-serif;
  font-size: 15px;
  color: #444;
  background: #fff;
}

body {
  margin: 0;
  background: #fff;
}

img {
  max-width: 100%;
  height: auto;
  border: 0;
}

a {
  color: #21a0da;
}

a:hover {
  color: #1477a8;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: #fff;
  padding: 8px 12px;
  z-index: 5;
}

.skip-link:focus {
  left: 8px;
  top: 8px;
}

#page {
  display: flex;
  width: 1010px;
  margin: 0 auto;
  min-height: 100vh;
  box-sizing: border-box;
  background: #fff;
}

#masthead {
  flex: 0 0 300px;
  width: 300px;
  box-sizing: border-box;
  padding: 40px 40px 24px;
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: #fff;
  overflow: auto;
}

.site-logo {
  margin: 0 0 28px;
}

.site-logo a {
  text-decoration: none;
  color: #333;
}

.logo-mark {
  width: 210px;
  height: auto;
  display: block;
}

.menu-toggle {
  display: none;
}

.main-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-navigation a {
  display: block;
  width: 218px;
  border-top: 1px solid #e7e7e7;
  padding: 8px 0 8px 8px;
  color: #444;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  box-sizing: border-box;
}

.main-navigation li:last-child a {
  border-bottom: 1px solid #e7e7e7;
}

.main-navigation a:hover,
.main-navigation .current-menu-item a {
  color: #21a0da;
}

.desktopfooter {
  margin-top: auto;
  padding-top: 28px;
  font-size: 12px;
  color: #777;
  line-height: 1.4;
}

.site-footer {
  display: none;
  padding: 16px 20px 28px;
  font-size: 12px;
  color: #777;
}

#content {
  flex: 1 1 auto;
  width: 710px;
  box-sizing: border-box;
  background: #fff;
  min-width: 0;
}

.infosection {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  background: #359dd7;
  padding: 14px 20px;
  color: #fff;
}

.infosection a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.infosection a:hover {
  text-decoration: underline;
}

.infosection svg {
  flex: 0 0 auto;
}

.entry {
  padding: 40px;
}

body.home .entry {
  padding: 0 0 32px;
}

.entry-title {
  margin: 0 0 20px;
  font-family: Georgia, "Palatino Linotype", serif;
  font-weight: 400;
  font-size: 32px;
  color: #333;
}

.slider {
  position: relative;
  height: 320px;
  background: #d7eef8;
  overflow: hidden;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.45s ease;
}

.slide.is-active {
  opacity: 1;
  z-index: 1;
}

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

.slide figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 10px 16px;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 14px;
}

.slider-controls {
  position: absolute;
  right: 10px;
  bottom: 46px;
  z-index: 2;
  display: flex;
  gap: 6px;
}

.slider-controls button {
  width: 28px;
  height: 28px;
  border: 0;
  background: #fff;
  color: #21a0da;
  font-weight: 700;
  cursor: pointer;
}

.whyLoving {
  text-align: center;
  margin: 14px 16px 16px;
  line-height: 1.5;
}

.whyLoving span {
  font-family: Georgia, "Palatino Linotype", serif;
}

.homeboxes {
  display: flex;
  align-items: flex-start;
}

.homebox {
  width: 33.33%;
  box-sizing: border-box;
  padding-bottom: 16px;
}

.homebox img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
  border-top: 1px solid #e7e7e7;
  border-bottom: 1px solid #e7e7e7;
}

.homebox h3 {
  background: #21a0da;
  margin: 0;
  padding: 4px 16px;
  color: #fff;
  font-weight: 400;
  font-size: 18px;
  font-family: "Segoe UI", "Open Sans", sans-serif;
}

.homebox p.description {
  font-size: 12px;
  line-height: 1.45;
  margin: 8px 0 12px;
  padding: 0 16px;
  min-height: 108px;
}

.homebox ul {
  list-style: none;
  margin: 0;
  padding: 0 16px;
}

.homebox li a {
  display: block;
  border-top: 1px solid #e7e7e7;
  padding: 6px 0 6px 16px;
  color: #444;
  font-size: 12px;
  text-decoration: none;
}

.homebox li:last-child a {
  border-bottom: 1px solid #e7e7e7;
}

.homebox li a:hover {
  color: #fff;
  background: #21a0da;
}

.homereview {
  border: 1px solid #e7e7e7;
  margin: 8px 16px 0;
  padding-bottom: 8px;
}

.testquotes {
  font-family: Georgia, "Palatino Linotype", serif;
  font-size: 100px;
  text-align: center;
  color: #ccc;
  line-height: 0.8;
  margin: 10px 0 -20px;
  font-weight: 400;
}

.thehreview {
  font-family: Georgia, "Palatino Linotype", serif;
  font-style: italic;
  font-size: 16px;
  padding: 0 48px;
  color: #999;
  text-align: center;
  margin: 0;
}

.thehrevauth {
  text-align: center;
  font-weight: 700;
  font-size: 16px;
}

.thanks {
  text-align: center;
  margin: 18px 16px 0;
}

.pagebox {
  border: 1px solid #e7e7e7;
  box-sizing: border-box;
  background: #f8f8f8;
  padding: 40px;
  margin-bottom: 20px;
  overflow: hidden;
}

.pagebox h2 {
  margin: 18px 0 8px;
  font-family: Georgia, "Palatino Linotype", serif;
  font-weight: 400;
  font-size: 28px;
  color: #333;
}

.pagebox p,
.prose p {
  line-height: 1.55;
}

.pagebox ul {
  line-height: 1.5;
}

.pboximg {
  width: calc(100% + 80px);
  max-width: none;
  height: 240px;
  object-fit: cover;
  margin-left: -40px;
  margin-top: -40px;
  display: block;
  border-bottom: 1px solid #e7e7e7;
  background: #e7f3f8;
}

.lead {
  font-size: 16px;
  line-height: 1.55;
}

.note {
  border: 1px solid #e7e7e7;
  padding: 20px 24px;
  margin-bottom: 16px;
  background: #fff;
}

.note h2,
.note h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.toggle {
  background: none;
  border: 0;
  padding: 0;
  color: #21a0da;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
}

.note-body {
  margin-top: 10px;
}

.note-body p {
  font-family: Georgia, "Palatino Linotype", serif;
  font-style: italic;
  color: #666;
}

.vidgrid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.vid {
  width: 308px;
  max-width: 100%;
}

.vidframe {
  border: 4px solid #444;
  background: #1d3340;
  color: #fff;
  height: 174px;
  display: flex;
  align-items: flex-end;
  padding: 12px;
  box-sizing: border-box;
  font-weight: 700;
}

.gallery-block h2 {
  font-family: Georgia, "Palatino Linotype", serif;
  font-weight: 400;
  margin: 8px 0 12px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 28px;
}

.gallery button {
  display: block;
  padding: 0;
  border: 1px solid #e7e7e7;
  background: #fff;
  cursor: pointer;
  text-align: left;
}

.gallery img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
}

.gallery .caption {
  display: block;
  font-size: 12px;
  padding: 4px 6px 6px;
  color: #444;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lightbox[hidden] {
  display: none;
}

.lightbox img {
  max-width: min(900px, 92vw);
  max-height: 72vh;
  background: #fff;
}

.lightbox p {
  color: #fff;
  margin: 12px 0 0;
}

.lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: #fff;
  border: 0;
  padding: 8px 12px;
  cursor: pointer;
  font-weight: 700;
}

.contact-wrap {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.contactdetails {
  flex: 0 0 200px;
  line-height: 1.5;
}

.getdirections {
  flex: 1 1 auto;
  border-left: 1px solid #e7e7e7;
  padding-left: 20px;
  min-width: 0;
}

.getdirections iframe {
  width: 100%;
  height: 320px;
  border: 1px solid #e7e7e7;
}

form label {
  display: block;
  font-weight: 700;
  margin: 14px 0 4px;
}

.hint {
  font-weight: 400;
  color: #777;
  font-size: 13px;
}

fieldset {
  border: 0;
  margin: 14px 0 0;
  padding: 0;
}

fieldset legend {
  font-weight: 700;
  margin-bottom: 6px;
}

fieldset label {
  font-weight: 400;
  margin: 4px 0;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
textarea {
  width: 100%;
  max-width: 460px;
  box-sizing: border-box;
  border: 1px solid #ccc;
  padding: 8px;
  font: inherit;
  color: #333;
  background: #fff;
}

textarea {
  min-height: 120px;
}

button.submit,
input.submit {
  margin-top: 16px;
  background: #21a0da;
  color: #fff;
  border: 1px solid #21a0da;
  padding: 8px 16px;
  font-family: "Segoe UI", "Open Sans", sans-serif;
  font-size: 12px;
  cursor: pointer;
}

button.submit:hover,
input.submit:hover {
  background: #1477a8;
}

.form-note {
  background: #f3fafe;
  border: 1px solid #c5e4f5;
  padding: 12px 14px;
  margin-top: 16px;
}

.blog-card {
  padding: 10px;
  border: 1px solid #f7f7f7;
  box-shadow: 0 0 4px #93939326;
  margin: 10px 0 16px;
  background: #fff;
}

.blog-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.blog-card h2 {
  font-size: 22px;
  margin: 10px 0 6px;
  font-family: Georgia, "Palatino Linotype", serif;
  font-weight: 400;
}

.blog-card h2 a {
  text-decoration: none;
}

.meta {
  color: #777;
  font-size: 12px;
  margin: 0 0 8px;
}

.person {
  margin-top: 8px;
}

.person h2 {
  margin-bottom: 0;
}

.person .role {
  margin-top: 0;
  color: #777;
  font-size: 14px;
}

@media (max-width: 1040px) {
  #page {
    width: 100%;
  }
}

@media (max-width: 598px) {
  #page {
    display: block;
  }

  #masthead {
    position: relative;
    width: 100%;
    height: auto;
    padding: 12px 16px;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    overflow: visible;
    border-bottom: 1px solid #e6eaee;
  }

  .site-logo {
    margin: 0;
    min-width: 0;
  }

  .logo-mark {
    width: 168px;
  }

  .desktopfooter {
    display: none;
  }

  .main-navigation {
    position: static;
    flex: 0 0 auto;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: auto;
    min-height: 44px;
    padding: 8px 14px;
    border: 1px solid #cfd6dc;
    border-radius: 8px;
    background: #fff;
    color: #243038;
    font-family: "Segoe UI", "Open Sans", sans-serif;
    font-size: 16px;
    font-weight: 650;
    line-height: 1;
    text-align: center;
    cursor: pointer;
    box-shadow: none;
  }

  .menu-toggle::before {
    content: "";
    width: 16px;
    height: 2px;
    border-radius: 1px;
    background: currentColor;
    box-shadow: 0 -5px 0 currentColor, 0 5px 0 currentColor;
  }

  .main-navigation ul {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 30;
    margin: 0;
    background: #fff;
    border-bottom: 1px solid #e6eaee;
    box-shadow: 0 12px 24px rgba(20, 32, 40, 0.12);
  }

  .main-navigation.toggled ul {
    display: block;
  }

  .main-navigation a {
    width: 100%;
    padding: 14px 16px;
    font-size: 16px;
    font-weight: 600;
  }

  #content {
    width: 100%;
  }

  .infosection {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    background: #fff;
    color: #243038;
    padding: 8px 16px 14px;
  }

  .infosection a {
    color: #176f9a;
    font-size: 16px;
    font-weight: 600;
    min-height: 44px;
    padding: 4px 0;
  }

  .infosection a:hover {
    text-decoration: none;
    color: #0f5578;
  }

  .infosection svg {
    stroke: #176f9a;
  }

  .entry,
  body.home .entry {
    padding: 8px 16px 28px;
  }

  .slider {
    height: 220px;
    margin-top: 8px;
    border-radius: 12px;
  }

  .slide img {
    height: 220px;
  }

  .whyLoving {
    margin: 18px 4px 8px;
  }

  .homeboxes {
    display: block;
  }

  .homebox {
    width: 100%;
    margin: 16px 0 0;
    padding-bottom: 8px;
    border: 1px solid #e6eaee;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
  }

  .homebox img {
    height: 150px;
    border: 0;
  }

  .homebox h3 {
    background: transparent;
    color: #243038;
    margin: 14px 16px 0;
    padding: 0 0 0 10px;
    border-left: 4px solid #21a0da;
    font-size: 20px;
    font-weight: 650;
  }

  .homebox p.description {
    min-height: 0;
    font-size: 15px;
    line-height: 1.5;
    margin: 8px 0 4px;
  }

  .homebox li a {
    padding: 12px 0 12px 16px;
    font-size: 16px;
  }

  .thehreview {
    padding: 0 16px;
  }

  .pagebox {
    padding: 20px;
  }

  .pboximg {
    width: calc(100% + 40px);
    margin-left: -20px;
    margin-top: -20px;
    height: 180px;
  }

  .gallery {
    grid-template-columns: 1fr 1fr;
  }

  .contact-wrap {
    display: block;
  }

  .getdirections {
    border-left: 0;
    padding-left: 0;
    margin-top: 16px;
  }

  .site-footer {
    display: block;
  }
}
