h2 {
  font-size: clamp(2rem, 1.545rem + 1.818vi, 3rem);
}

/*           HERO            */

#hero {
  padding-top: 0;
  padding-bottom: 0;
  height: 100vh;
  /* background-image: url('/images/senior_wc.png'); */
  background-image: url('/images/handholding.png');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: 60%;
  position: relative;

  &::before {
    content: "";
    height: 100%;
    width: 100%;
    /* background: rgba(0,0,0,0.2); */
    background-color: rgba(255, 255, 255, 0.15); /* Light backdrop */
    position:absolute;
    inset: 0;
    z-index: 1;
  }
}

#hero .container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 85vh;
  margin-top: -7rem;
  z-index: 3;
}

.hero-context {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
  padding-top: 2rem;
  margin-top: 4rem;
  height: 100%;
  width: 100%;
  z-index: 3;
  /* color: white; */
  /* color: black; */
  color: var(--brand-blue-dark);
}

.hero-context h1 {
    font-size: clamp(2.5rem, 1.818rem + 2.727vi, 4rem);
    line-height: clamp(2.25rem, 1.568rem + 2.727vi, 3.75rem);
    margin-bottom: 1rem;
  }

.hero-context h2 {
    font-size: 1rem;
    font-weight:normal;
    line-height: 1.75rem;
    margin-bottom: 1rem;
  }

.hero-context a{
    display: block;
    width: fit-content;
    margin-inline: auto;
  }

@media only screen and (min-width: 1024.1px) {
  #hero {
    background-size: 135%;
    padding-block: 0;

    & h1 {
      line-height: 4.5rem;
      letter-spacing: -2px;
    }
  }

  #hero .container {
    flex-direction: column;
    gap: 4rem;
    height: 90vh;
  }

  .hero-context {
    display: flex;
    flex-direction: column;
    justify-content:center;
    align-items: center;
    height: 100%;
    /* margin-top: 9rem; */
  }
}

/*               FEATURES             */

#features {
  position: relative;
  padding-inline: 1rem;
  padding-top: 0;
  z-index: 3;
}

#features .container {
  margin-top: -4rem;
  /* background: var(--brand-blue-light); */
  background: white;
  border-radius: 20px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  box-shadow: 0px 6px 24px rgba(1,123,170,0.1);
  align-items: center;
}

.feature-box {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  padding: 1rem;
  max-width: 830px;
  width: 100%;
}

.feature-bold {
  font-weight: 650;
  font-size: 1.5rem;
  color: var(--brand-blue);
  margin-bottom: 0.5rem;
}

@media only screen and (min-width: 1024.1px) {
  #features {
    position: relative;
    padding-top: 0;
  }

  #features .container {
    max-width: 1400px;
    margin-top: -7rem;
    flex-direction: row;
    padding: 3rem;

  }
}

/*           SERVICE CARDS            */
#services {
  background: linear-gradient(to bottom, white 0%, var(--brand-blue-light) 50%);
}

#services .container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  
  & h2 {
    text-align: center;
    color: var(--brand-blue-dark);
  }
}

.card-row {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: stretch;
}

.service-card {
  position: relative;
  flex: 1;
  padding: 2rem 3rem;
  width: 100%;
  display: flex;
  flex-direction: column;
  text-align: center;
  justify-content: center;
  margin-block: auto;
  background-repeat: no-repeat;
  background-size: cover;

  & h3 {
    font-weight: 600px;
    font-size: 1.75rem;
  }

  &::before {
    content: "";
    height: 100%;
    width: 100%;
    background: rgba(0,0,0,0.2);
    position:absolute;
    top:0;
    left:0;
    z-index: 1;
  }
}

.card-content {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  z-index: 2;
  color: white;

  & h2 {
    font-size: clamp(1.5rem, 1.273rem + 0.909vi, 2rem);
  }

  & a {
    margin-top: auto;
    margin-inline: auto;
  }
}

.service-card {
  border-radius: 20px;

  &:before {
    border-radius: 20px;
  }
}

.card-row:nth-child(2){

    .service-card:nth-child(1){
      background-image: url('/images/support.jpg');
    }
    
    .service-card:nth-child(2){
      background-image: url('/images/signing.jpg');
    }
  }

  .card-row:nth-child(3){

    .service-card:nth-child(1){
      background-image: url('/images/coated_wc.png');
      background-size: 130%;
      background-position: -4rem;
    }
    
    .service-card:nth-child(2){
      background-image: url('/images/together.jpg');
    }
  }

@media only screen and (min-width: 1024.1px) {
  #services .container {
    flex-direction: column;
  }

  .service-card{
    min-height: 20rem;
  }

  .card-row {
    flex: 1;
    flex-direction: row;
  }

  .card-row:nth-child(3){

    .service-card:nth-child(1){
      background-position: -5rem;
    }
  }
}

.intro .container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

/*           TWO COLUMN SECTION            */

.two-cs .container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.two-cs .context {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  
  & h2 {
    color: var(--brand-blue-dark);
  }
}

.two-cs img {
    max-height: 22rem;
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: top;
    border-radius: 20px;
    max-height: 444px;
}

@media only screen and (min-width: 1024.1px) {
  .two-cs .container {
    flex-direction: column;
    gap: 4rem;
    align-items: center;
  }

  .two-cs .context, .two-cs picture {
    flex: 1;
  }

  .two-cs img {
    max-height: 444px;
  }
}

/*---------------- #about  ----------------------*/

#about .container{
  display: flex;
  flex-direction: column;

  & h2 {
    color: var(--brand-blue-dark);
  }
}

#about .context {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

#about picture {
    overflow-y: hidden;
}

#about picture img {
  max-width: 100vw;
  width: 100%;
  object-fit: contain;
  height: 100%;
  overflow-y: hidden;
}

@media only screen and (min-width: 1024.1px){
  #about .container {
    max-width: unset;
    padding: unset;
    margin: unset;
    display: grid;
    grid-template-columns: [main-start] 1fr [content-start] 608px [content-divider] 64px [content-middle] 608px [content-end] 1fr [main-end];
    grid-template-rows: [single-row] auto;
  }

  #about picture img {
      height: 125%;
      width: 100%;
      object-fit: cover;
      object-position: center;
      border-top-right-radius: 20px;
      border-bottom-right-radius: 20px;
    }
  

  #about picture {
    max-width: 50vw;
    align-items: center;
    margin-inline: auto;
    grid-column-start: main-start;
    grid-column-end: content-divider;
    grid-row: single-row;
    max-height: 70vh;
  }

  #about .context {
    grid-column-start: content-middle;
    grid-column-end: content-end;
    grid-row: single-row;
    margin-block: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
}


/*             BENEFITS                  */

#benefits {
  background: var(--brand-blue-light);
}

#benefits .container{
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  & h2 {
    margin-bottom: 1rem;
    color: var(--brand-blue-dark);
  }

  & .picture-link {
    max-height:fit-content;

    & img {
      max-height: 300px;
      height: 100%;
      width: 100%;
      object-fit: contain;
      object-position: center;
    }
  }

  & .button-secondary {
    margin-top: -1rem;
    margin-inline: auto;
  }
}

#benefits .context {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
}

.benefit-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1rem;
  flex: 1;
  margin-bottom: 1rem;
  gap: 1rem;
  text-align: center;
  align-items: center;

  & h3 {
    font-weight:550;
  }
}

@media only screen and (min-width: 1024.1px){
  #benefits picture {
    max-height: 20rem;
    height: 100%;

    & img {
      height: 100%;
      width: 100%;
      object-fit: cover;
      object-position: center;
    }
  }

  #benefits .picture-link {
    margin-block: auto;
  }

  #benefits .context {
    display: grid;
    grid-template-columns: 1fr 1fr auto 1fr 1fr;
    grid-template-rows: 1fr 1fr;

    & .picture-link {
      grid-column-start: 3;
      grid-column-end: 4;
      grid-row-start: 1;
      grid-row-end: 3;
    }

    & .benefit-card:nth-child(1){
      grid-column-start: 1;
      grid-column-end: 3;
      grid-row-start: 1;
      grid-row-end: 2;
    }

    & .benefit-card:nth-child(2){
      grid-column-start: 4;
      grid-column-end: 6;
      grid-row-start: 1;
      grid-row-end: 2;
    }

    & .benefit-card:nth-child(3){
      grid-column-start: 1;
      grid-column-end: 3;
      grid-row-start: 2;
      grid-row-end: 3;
    }

    & .benefit-card:nth-child(4){
      grid-column-start: 4;
      grid-column-end: 6;
      grid-row-start: 2;
      grid-row-end: 3;
    }
  }
}


/* #benefits {
  background: var(--shade-color);
}

#benefits .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

#benefits .container > p {
  max-width: 550px;
  margin-bottom: 2rem;
}

.benefits-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.benefits-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.benefits-left img {
  max-height: 22rem;
  height: 100%;
  width: 100%;
  object-fit: cover;
  object-position: top;
}

.benefits-right {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

.benefit-card {
  background: #ffffff;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.benefit-card h3 {
  font-size: clamp(1.25rem, 1.136rem + 0.455vi, 1.5rem);
}

.benefit-card img {
  height: 4rem;
  width: 4rem;
  object-fit: cover;
  transform: translateY(0);
  
  transition: 0.5s cubic-bezier(.59,-4,.62,8);
}

.benefit-card:hover img {
  transform: translateY(1px);
}

@media only screen and (max-width: 600px) {
  .benefit-card {
    max-width: 375px;
  }
}

@media only screen and (min-width:600.1px) {
  .benefits-right {
    flex: 1;
    align-items: center;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 1.5rem;
    row-gap: 1.5rem;
  }
}

@media only screen and (min-width: 830.1px){
  .benefits-container {
    flex-direction: row;
    gap: 4rem;
    margin-bottom: 2rem;
  }
} */

/*            BANNER              */

#banner {
  height: 80vh;
  border-image: fill 0 linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5));
  background: url('/images/elderly_couple.jpg');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

#banner .container {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
}

#banner h2 {
  max-width: 600px;
}

#banner ul {
  max-width: 600px;
  list-style-type:disc;
  text-align: left;

  & li {
    margin-bottom: 1rem;
  }
}

@media only screen and (min-width: 1024.1px){
  #banner {
    background-attachment: fixed;
  }
}

#testimonials {
  background: var(--shade-color);
}

#testimonials .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

#testimonials h2, #testimonials p {
  margin-bottom: 2rem;
  max-width: 600px;
}

.testimonial-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.testimonial-card {
  padding: 2rem;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.quotes {
  height: 4rem;
  width: 4rem;
}

.testimonial-card span {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

@media only screen and (min-width: 1024.1px) {

  .testimonial-container {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    column-gap: 2rem;
  }
  
  .testimonial-card {
    grid-column: span 4;
  }
} */
  
  /*         FINAL CALL TO ACTION          */
  
#final-cta {
  padding-bottom: 0;
}
  
#final-cta .container {
  background: #e1ddcc;
}

#final-cta .context {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 2rem;
}



@media only screen and (min-width: 1024.1px) {
  .row-reversed {
   flex-direction: row-reverse !important;
  }
}