
/*///////   Banner Section   \\\\\\\*/

.c-banner {
  display: flex;
  width: 100vw; 
  min-height: 47vh;
  background-image: url('https://cdn.fbhl.dev/insurance/images/home-banner.jpg');
  background-size: cover;
  background-position: center; 
  background-repeat: no-repeat;
  color:var(--white);
  align-items: flex-start;
  justify-content: center;
}
.c-banner__header {
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  padding-block: var(--space-xl) var(--space-2xl);
}
.c-banner__heading {
  text-align: center;
  color:var(--white);
  max-width: 14ch;
  /* 4rem */
  font-size: var(--step-5);
  line-height: 1;
}

@media (min-width: 768px) { 
  .c-banner {
    padding-bottom:5vh;
  }
}

/*///////   Welcome Section   \\\\\\\*/

.c-welcome {
  display: grid;
  min-width: 100vw;
  align-items: stretch;
  padding-block: var(--space-xl);
  box-sizing: border-box;
}
.c-welcome__left-side {
  text-align: center;
  color: var(--corporate-green); 
  margin: auto;
  margin-bottom: var(--space-s);
  max-width:50ch;
}
.c-welcome__heading {
  line-height:.9;
  font-size: var(--step-4);
  margin-bottom:var(--space-s);
}

.c-welcome__carousel {
  background-color: var(--pistachio); 
  padding: var(--space-xs-xl);
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  min-height: 100%;
  grid-row-gap: var(--space-s);
  /* min-height: 250px; */
}

.c-welcome-carousel__inner {
  display: flex;
  justify-content: space-between;
  max-width:calc(.7 * var(--wrapper-max-width-l));
}
.c-welcome-carousel__arrow {
  display:flex;
  align-items: center;
  justify-content: center;
  cursor:pointer;
  /* 1.875rem */
  font-size: var(--step-2);
  transition:.5s all ease-in-out;
}

@media (hover:hover) {
  .c-welcome-carousel__arrow:hover {
    transform-origin:center center;
    transform:scale(1.2);
    color:var(--pine);
  }
}

.c-welcome-carousel__slides {
  position: relative;
  overflow: hidden;
  padding-bottom:var(--space-s);
  margin-inline:var(--space-l);
  /* height: 250px;  */
}
.c-welcome-carousel__slide {
  position: absolute;
  width: 100%;
  top: 0;
  left: 0;
  /* height: 200px; */
  display: flex;
  flex-direction: column;
  justify-content: center;
  height:100%;
  transition: transform 0.5s ease;
  /* min-height: 250px; */
}

/* Longest text sets position, or can use a min-height */
.c-welcome-carousel__slide[data-index="2"] {
  position:relative;
}

.c-welcome-carousel__line {
  border:0;
  flex-shrink:0;
  width: 100px;
  height:2px;
  margin: var(--space-s) 0;
  background-color: var(--pine);
}
.c-welcome-carousel__heading {
  /* 1.75rem */
  font-size: var(--step-2);
  text-align: left;
  min-width:10ch;
}
.c-welcome-carousel__content {
  /* 1.2rem */
  font-size: var(--step-1);
  max-width: 1000px;
}

.c-welcome-carousel__circles {
  display: flex;
  justify-content: center;
  align-items: center;
}
.c-welcome-carousel__circle {
  border: 1px solid var(--pine); 
  border-radius: 50%;
  margin: var(--space-3xs);
  width: 32px;
  height: 32px;
  padding: var(--space-3xs);
  display: flex;
  flex-direction: column;
  justify-content: center;
  cursor: pointer;
  transition:.5s all ease-in-out;
}
@media (hover:hover) {
  .c-welcome-carousel__circle:hover {
    transform:scale(1.1);
    background-color: var(--pine);
  }
}
.c-welcome-carousel__circle.js-is-active {
  background-color: var(--pine); 
}

@media (min-width: 768px) { 
  .c-welcome {
      min-height:auto;
      padding: 0;
      grid-template-columns: 1fr 2fr;
  }

  .c-welcome__left-side {
      text-align: right;
      margin:var(--space-l-2xl);
      display: inline-flex;
      align-items: center;
      justify-self:flex-end;
  }

  .c-welcome__heading {
    margin-bottom:0;
  }

  .c-welcome__right-side {
      position: relative;
      background-color:var(--pistachio);
      display: flex;
      align-items: center;
      margin-top:-5vh;
  }
}

@media (min-width: 1024px) {
  .c-welcome {
      grid-template-columns: 2fr 3fr;
  }
}

@media (min-width: 1600px) {
  .c-welcome-carousel__slides {
    width: 90%;
  }

  .c-welcome-carousel__slide {
    flex-direction: row;
    justify-content: center;
    align-items: center;
  }

  .c-welcome-carousel__line {
    height: 60%;
    width: 2px;
    margin-inline:var(--space-m-l);
  }

  .c-welcome-carousel__heading {
    text-align:right;
  }
}

/*///////   About Section   \\\\\\\*/

.c-about {
  background-image: url('https://cdn.fbhl.com/fbis/fbis-about-section-bg-img-min.jpg');
  background-size: cover;
  background-position-x: 100%;
  padding-block:var(--space-xl);
  padding-inline:var(--gutter);
  color:var(--white);
  /* margin-top: 75px; */
  min-width: 100vw;
}

.c-about__inner {
  width:100%;
  display:flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}
  
.c-about__heading {
  margin-bottom: var(--space-m);
  /* 2.875rem */
  font-size: var(--step-4);
  line-height: 1;
  max-width:29ch;
}

.c-about__content {
  margin-bottom: var(--space-xs-xl);
  /* 1.2rem */
  font-size: var(--step-1);
  max-width: 32ch;
}

.c-about__signature {
  display: grid;
  grid-template-columns: 1fr 5fr;
  grid-template-rows: 1fr;
  align-items: center;
  grid-template-areas: 
    "hr sign"
    "empty by";
  max-width: 40ch;
}
  
.c-about-signature__line {
  grid-area: hr;
  height: 2px;
  width: 80%;
  margin: auto;
}

.c-about-signature__empty {
  grid-area: empty;
}

.c-about-signature__name {
  grid-area: sign;
  font-style: italic;
  font-size: var(--step-2);
}

.c-about-signature__by-line {
  grid-area: by;
  /* .8rem */
  font-size: var(--step-0);
  margin-top:var(--space-xs);
}

@media (min-width: 768px) { 
  .c-about {
    /* 50 - 150 */
    padding: var(--space-xl-5xl);
  }
  .c-about__inner {
    text-align: left;
    align-items: flex-start;
  }
}

/*///////   Products Section   \\\\\\\*/

.c-products {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width:100%;
  padding-block: var(--space-xl);
  text-align: center;
}
.c-products__heading {
  color: var(--corporate-green);
  text-align: center;
  /* 3rem */
  font-size: var(--step-4);
  line-height: 1;
}
  
.c-products__subheading {
  text-align: center;
  margin-top:0;
  /* 1.2 */
  font-size: var(--step-1); 
}

.c-products__products {
  display: flex;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
  gap: var(--space-m);
  text-align: center;
}

.c-products__product {
  background-color: var(--pistachio);
  text-decoration: none;
  padding: var(--space-m);
  min-width: 350px;
  max-width: 450px;
  min-height: 375px;
  flex-basis: calc(25% - var(--space-m));
  border: 1px solid var(--corporate-green);
  border-radius: 5px;
  color: var(--black);
  display:flex;
  flex-direction: column;
  align-items: center;
  gap:var(--space-s);
}

.c-products-product__heading {
  line-height: 1;
  /* 1.4rem */
  font-size: var(--step-2);
  font-weight:700;
}

.c-products-product__icon {
  color: var(--corporate-green);
  /* 3rem */
  font-size: var(--step-3);
}

.c-products-product__subheading {
  text-align: center;
  /* 1.2rem */
  font-size: var(--step-1);
}
  
@media (hover:hover) {
  .c-products__product:hover {
    background-color: var(--powder);
  }
}

@media (max-width: 1024px) { 
  .c-products__product {
    flex-grow:1;
  }
}
  
/*///////   Locations Section   \\\\\\\*/
  
.c-locations {
  background-image: url('https://cdn.fbhl.dev/insurance/images/our-locations-stock-photo.png');
  background-size: cover;
  background-position: 75%;
  color:var(--white);
  padding-top: 0;
  height: 100%;
  padding-block:var(--space-xl);
}

.c-locations__line {
  width: 100px;
  height: 2px;
  background-color:var(--white);
  border: none;
  margin:0 auto;
}

.c-locations__locations {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-l);
  text-align: center;
}

.c-locations__location {
  background:var(--white);
  padding: var(--space-l);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  min-width: 350px;
  max-width: 450px;
  flex-basis: calc(33% - var(--space-l));
  text-align: center;
  color: black;
}

/* Responsive styles */
@media (max-width: 768px) {
  .c-locations__contact {
      flex-direction: column;
      align-items: center;
  }
}
