/*
Theme Name: CoHabit
Author: FabCom
Description: Custom theme built for CoHabit.
Version: 1.0
*/

/* poppins-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  src: url('fonts/poppins-v24-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* poppins-500 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 500;
  src: url('fonts/poppins-v24-latin-500.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* poppins-600 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  src: url('fonts/poppins-v24-latin-600.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* poppins-700 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  src: url('fonts/poppins-v24-latin-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* poppins-800 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 800;
  src: url('fonts/poppins-v24-latin-800.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

html {
   scroll-behavior: smooth;
}

body {
   font-family: 'Poppins', Arial, Helvetica, sans-serif;
}

p {
   font-size: 16px;
   color: #555e66;
   margin: 5px 0;
}

h2 {
   font-size: 40px;
   font-weight: 500;
   margin: 10px 0;
   color: #555E66;
   line-height: 45px;
}

a {
   display: block;
   color: inherit;
   text-decoration: none;
}

nav {
   margin-top: 50px;
   position: absolute;
   top: 0;
   left: 0;
   width: 100%;
   z-index: 100;
}

.nav-center-btns {
   flex:2; 
   margin:0 auto;
   gap:20px;
   justify-content:center;
   align-items: center;
}

.nav-center-btns a {
   color: white;
   font-weight: 500;
}

.nav-center-btns a:hover {
   border-bottom: #d8ff90 3px solid;
}

.get-started {
   text-align: center;
}

.get-started a {
   padding: 15px;
   width: fit-content;
   background-color: #5ed1ae;
   color: #d8ff90;
   border-radius: 10px;
   font-size: 14px;
   font-weight: 500;
   min-width: 170px;
   margin-left: auto;
}

.get-started a:hover {
   background-color: #d8ff90;
   color: #08605F;
}

.wrapper {
   padding: 90px 0;
   margin: 0 auto;
   max-width: 1240px;
}

.img-wrapper {
   max-width: 610px;
}

.img-wrapper img {
   width: 100%;
   border-radius: 20px;
}

.flex-box {
   display: flex;
}

.flex04 {
   flex: 0.4;
}
.flex05 {
   flex: 0.5;
}

.v-flex-box {
   display: flex;
   flex-direction: column;
}

.section-id {
   border-radius: 10px;
   background-color: #d8ff90;
   color: #08605f;
   font-size: 12px;
   font-weight: 600;
   padding: 10px 20px;
   width: fit-content;
}

.different-sec {
   width: 100%;
   height: min(56.25vw, 730px);
   min-height: 450px;
   background-size: cover;
   background-position: center;
   background-repeat: no-repeat;
   display: flex;
   align-items: center;
}

.different-sec {
   position: relative;
   overflow: hidden;
}
.hero-fade {
   position: absolute;
   inset: 0;
   background-size: cover;
   background-position: center;
   opacity: 0;
   transition: opacity 1.5s ease;
}
.hero-fade.show {
   opacity: 1;
}
.different-sec .wrapper {
   position: relative; /* keeps text above the fade layer */
}

.different {
   margin: 0 auto;
   text-align: center;
}

.different-btns {
   gap: 15px;
   margin-top: 50px;
   justify-content: center;
}

.different-btns a {
   padding: 15px;
   width: fit-content;
   background: rgba(255, 255, 255, 0.2);
   backdrop-filter: blur(20px) saturate(180%);
   color: white;
   border-radius: 10px;
   font-size: 14px;
   font-weight: 500;
   min-width: 190px;
}

.different-btns a:hover {
   background-color: #d8ff90;
   color: #08605F;
}

.different > h2, .different > p {
   color: white;
}

.different h2 {
   font-size: 55px
}

#price {
   position: relative;
   color: #d8ff90;
}

#price h2, #price p, #price span {
   color:#d8ff90;
}

.price-con {
   position: absolute;
   background-color: #5ed1ae;
   max-width: 1240px;
   border-radius: 20px;
   left: 0;
   right: 0;
   top: -82px;
   margin: 0 auto;
}

.price-flex-wrap {
   display: flex;
   gap: 10px;
}

.price-savings {
   display: block;
}

.price-divider {
   width:2px;
   background-color: #d8ff90;
   margin:30px 0;
}

.price-l, .price-r {
   padding: 27px 27px;
}

.price-l {
   flex: 1.2;
   padding-right: 0;
}

.price-l h2 {
   margin-top: 5px;
}

.price-r {
   display: flex;
   flex: 1;
   align-items: center;
   padding-left: 15px;
   justify-content: space-between;
}

.price-r-wrap {
   text-align:right;
}

.price-r-wrap-l {
   display:flex;
   gap:10px;
   text-align:left;
   line-height:60px;
   justify-content: center;
}

.price-btn-con {
   display: flex;
   justify-content: center;
}

#price a {
   padding: 15px;
   width: fit-content;
   background-color: #d8ff90;
   color: #08605F;
   border-radius: 10px;
   font-size: 14px;
   font-weight: 500;
   min-width: 150px;
   text-align: center;
}

#about .wrapper {
   padding-top: 160px;
}

.about-text {
   flex: 0.405;
   align-self: flex-end;
   padding-bottom: 40px;
}

.about-img {
   margin-left:auto;
}

.amenities-img {
   max-width: 610px;
}

.amenities-img img {
   width: 100%;
   border-radius: 25px ;
}

.amenities-text {
   margin-left: auto;
   margin-top: 20px;
   margin-bottom: 20px;
}

.amenities-text h2, .amenities-text p {
   color: white !important;
}

.vert-img {
   object-fit: cover;
   object-position: 65% center;
   width: 295;
   height: 355px;
}

.amenities-grid {
   display: grid;
   grid-template-columns: repeat(2, 1fr);
   gap: 40px 15px;
}

.amenity {
   display: flex;
   align-items: center;
   gap: 5px;
}

.amenity i {
   font-size: 40px;
   color: #d8ff90;
}

.amenity span {
   font-size: 20px;
   font-weight: 600;
   color: white;
   line-height: 21px;
}

.floor-plan-text i {
   font-size: 40px;
   color: #5ed1ae;
}

.floor-plan-text span {
   font-weight: 600;
}

.suite-details {
   gap: 35px;
   margin: 40px auto;
}

.suite-details > div {
   display: flex;
   flex-direction: column;
   align-items: center;
   justify-content: center;
}

.suite-details p {
   text-align: center;
}

.floorplan-slider {
   width: 100%;
   max-width: 610px;
   border-radius: 20px;
   background: white;
   box-shadow: 0 3px 6px #555e66;
   margin-right: 0 !important;
   --swiper-navigation-color: #5ed1ae;
   --swiper-navigation-size: 22px;
}

.floorplan-slider .swiper-slide {
   height: auto;
   box-sizing: border-box;
}

.floorplan-slider img {
   display: block;
   width: 100%;
}

.floorplan-slider .swiper-button-prev svg,
.floorplan-slider .swiper-button-next svg {
  stroke: currentColor;
  stroke-width: 1px;
}

.floorplan-slider .swiper-button-prev,
.floorplan-slider .swiper-button-next {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
}

section.neighborhood, section.ready-sec {
  position: relative;
  isolation: isolate;
}

section.neighborhood::before, section.ready-sec::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("https://www.cohabitliving.com/wp-content/uploads/2026/11/texture-1-scaled.png") center / cover no-repeat;
  opacity: 1;
  z-index: -1;
  pointer-events: none;
}

.temp {
   background-color: #d8ff90;
   border-radius: 20px;
   padding: 10px 30px;
   align-items: center;
   margin-top: 25px;
}

.cur-temp {
   color:#08605f;
}

.cur-condition {
   white-space: nowrap;
   overflow: hidden;
   text-overflow: ellipsis;
}

.neighborhood-img {
   max-width: 610px;
}

.neighborhood-text {
   margin-left: auto;
}

.neighborhood-addy {
   display: flex;
   font-size:14px; 
   font-weight:600; 
   color:#5ed1ae;
   margin: 25px 0;
}

.neighborhood-addy i {
   color:#08605F;
   padding-top: 3px;
   padding-right: 3px;
}

.vibe {
   display: flex;
   align-items: center;
   gap: 5px;
}

.vibe i {
   font-size: 40px;
   color: #5ed1ae;
}

.vibe span {
   font-size: 18px;
   font-weight: 500;
   line-height: 21px;
   color: #555E66;
   white-space: nowrap;
}

.neighborhood .wide-text {
   font-size: 18px;
   font-weight: 600;
   letter-spacing: 2px;
}

.xl-text {
   font-size: 60px;
   font-weight: 600;
}

.facts-banner {
   gap: 90px;
}

.facts-banner p {
   color:#d8ff90;
}

.facts .xl-text {
   line-height: 50px;
}

.sm-fact-text {
   font-size: 14px;
   font-weight: 600;
}

.med-fact-text {
   font-size: 24px;
   font-weight: 700;
   line-height: 25px;
}

.facts.flex-box {
   gap: 20px;
   padding-top: 60px;
   padding-bottom: 40px;
}

.tab-container {
   gap: 15px;
   margin: 35px 0 25px;
}

.pic-tab {
   width: fit-content;
   padding: 10px 20px;
   border-radius: 8px;
   color: #08605F;
   background-color: #F7F8F8;
   border: none;
   font-size: 12px;
   font-weight: 600;
}

.pic-tab.active {
   background-color: #08605F;
   color: #d8ff90;
}

/*_____________________ GALLERY ______________________*/

/* fade + slide in whenever a layout is added */
.gallery-layout {
   animation: galleryIn 0.5s ease both;
}

@keyframes galleryIn {
   from { opacity: 0; transform: translateY(20px); }
   to   { opacity: 1; transform: translateY(0); }
}

/* fade out before removal (class added by JS) */
.gallery-layout.fade-out {
   animation: galleryOut 0.3s ease both;
}

@keyframes galleryOut {
   to { opacity: 0; transform: translateY(20px); }
}

/* stagger: each extra layout arrives a little later */
.gallery-layout:nth-of-type(2) { animation-delay: 0.1s; }
.gallery-layout:nth-of-type(3) { animation-delay: 0.2s; }
.gallery-layout:nth-of-type(4) { animation-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
   .gallery-layout,
   .gallery-layout.fade-out { animation: none; }
}

.gallery-layout {
   display: flex;
   flex-direction: column;
   gap: 20px;
   margin-bottom: 20px;
}

/* both rows */
.gallery-layout > .flex-box {
   gap: 20px;
}

/* top row: two equal images */
.gallery-layout > .flex-box:first-child .slot {
   height: 280px;
}

/* bottom row: one large + two stacked */
.gallery-layout > .flex-box:last-child {
   height: 440px;
}

.gallery-layout > .flex-box:last-child > div {
   display: flex;
   flex-direction: column;
   gap: 20px;
}

.gallery-layout > .flex-box:last-child .slot {
   flex: 1;
   min-height: 0;
}

/* images fill their slot and crop to fit */
.slot img {
   display: block;
   width: 100%;
   height: 100%;
   object-fit: cover;
   border-radius: 20px;
   box-shadow: 0 3px 6px rgba(85, 94, 102, 0.3);
}

.view-more-btn {
   display: flex;
   align-items: center;
   gap: 8px;
   margin: 20px auto 0;
   padding: 15px 30px;
   background: none;
   border: none;
   color: #08605F;
   font-family: inherit;
   font-size: 14px;
   font-weight: 600;
   cursor: pointer;
}

@media (max-width: 768px) {
   /* stack every row into one column */
   .gallery-layout > .flex-box {
      flex-direction: column;
      height: auto;
   }

   /* every image the same height on mobile */
   .gallery-layout .slot,
   .gallery-layout > .flex-box:first-child .slot,
   .gallery-layout > .flex-box:last-child .slot {
      height: 240px;
      flex: none;
   }

   .gallery-layout > .flex-box > div {
      flex: none !important;   /* overrides the inline flex:0.75 / 0.25 */
   }

   /* tabs wrap onto multiple lines */
   .tab-container {
      flex-wrap: wrap;
      gap: 10px;
   }

   .pic-tab {
      font-size: 14px;
      padding: 8px 14px;
   }
}

.pic-tab {
   cursor: pointer;
}

/*_____________________ MOVING BANNER ______________________*/

.banner {
  overflow: hidden;
}

.facts-banner {
  display: flex;
  width: max-content;
  animation: banner 40s linear infinite;
}

.facts-banner > * {
  flex-shrink: 0;
  margin-right: 60px; /* spacing between items — use margin, not gap */
}

/* direction: add this class to go the other way */
.banner--reverse .facts-banner {
  animation-direction: reverse;
}

/* optional: pause on hover */
.banner:hover .facts-banner {
  animation-play-state: paused;
}

@keyframes banner {
  to { transform: translateX(-50%); }
}

/* respect users who turn off motion */
@media (prefers-reduced-motion: reduce) {
  .facts-banner { animation: none; }
}

.ready {
   max-width: 820px;
   margin: 0 auto;
   text-align: center;
}

.ready-btns {
   gap: 15px;
   margin-top: 50px;
   justify-content: center;
}

.ready-btns a {
   padding: 15px;
   width: fit-content;
   background-color: #d8ff90;
   color: #08605F;
   border-radius: 10px;
   font-size: 14px;
   font-weight: 500;
   min-width: 190px;
}

.ready-btns a:hover {
   background-color: #5ed1ae;
   color: #d8ff90;
}

/*_____________________ Footer ______________________*/
footer {
   height: 295px;
   background: #555e66;
   color: white;
}

address {
   font-style: normal;
   line-height: 16px;  
}

.foot-wrapper {
   display: flex;
   padding: 90px 0;
   max-width: 1240px; 
   margin: 0 auto;
}

.foot-address {
   padding: 5px 0 10px;
}

.foot-contact {
   padding-bottom: 3px;
}

.foot-logo-cont {
   max-width: 170px;
}

.foot-logo-cont img {
   width: 100%;
}

.foot-sm-logos  {
   display: flex;
   max-width: 123px;
   gap: 20px;
   margin-left: auto;
   padding-right: 16px;
   padding-bottom: 42px;
}

.foot-sm-logos img {
   height: 20px;
}

.align-r {
   text-align: right;
}

.foot-col a {
   display: block;
   color: inherit;
   text-decoration: none;
   font-size: 14px;
   line-height: 25px;
}

.foot-col a, address {
   font-weight: 500;
}

.foot-col.foot-icon div {
   display: flex;
   gap: 5px;
}

.foot-icon i {
   color: #d8ff90;
   padding-top: 3px;
}

/*_____________________ MOBILE ______________________*/
.nav-toggle {
   display: none;
}

@media(max-width:1275px) {
   .wrapper { padding: 60px 20px; }
   .price-con {
      margin: 0 20px;
   }
}

@media(max-width:1150px) {
   .price-r {
      gap: 20px;
   }
   #about .wrapper {
      padding-top:180px;
   }
}

@media (max-width: 930px) {
   img { max-width: 100%; }

   h2 { font-size: 30px; line-height: 36px; }

   /* ----- Nav: hamburger that pushes content down ----- */
   nav {
      position: relative;
      margin-top: 0;
      background: #08605F;
      padding: 15px 20px;
      box-sizing: border-box;
   }
   .nav { flex-wrap: wrap; align-items: center; }
   nav .foot-logo-cont { max-width: 130px; }
   .nav-toggle {
      display: block;
      margin-left: auto;
      background: none;
      border: none;
      color: #d8ff90;
      font-size: 26px;
      padding: 5px;
      cursor: pointer;
   }
   .nav-box {
      display: flex;
   }
   .nav-center-btns,
   .get-started { display: none; }
   nav.open .nav-center-btns {
      display: flex;
      flex: 1 1 100%;
      flex-direction: column;
      align-items: stretch;
      gap: 0;
      padding-top: 15px;
   }
   .nav-center-btns a,
   .nav-center-btns a:hover {
      padding: 12px 0;
      border-bottom: 1px solid rgba(255, 255, 255, 0.15);
   }
   .nav-center-btns a:hover { color: #d8ff90; }
   nav.open .get-started {
      display: block;
      flex: 1 1 100% !important;
      padding: 20px 0 5px;
      text-align: left;
   }
   .get-started a { margin-left: 0; }

   /* ----- Hero ----- */
   .different-sec { height: auto; min-height: 480px; }
   .different h2 { font-size: 36px; line-height: 42px; }
   .different-btns,
   .ready-btns { flex-wrap: wrap; margin-top: 30px; }
   .different-btns a,
   .ready-btns a { min-width: 0; flex: 1 1 160px; }

   /* ----- Stack sections, text on top, everything full width ----- */
   #about .wrapper > .flex-box,
   #amenities .wrapper > .flex-box,
   #floor-plan .wrapper > .flex-box,
   #neighborhood .wrapper > .flex-box {
      flex-direction: column;
      gap: 40px;
   }
   #about .wrapper > .flex-box > *,
   #amenities .wrapper > .flex-box > *,
   #floor-plan .wrapper > .flex-box > *,
   #neighborhood .wrapper > .flex-box > * {
      flex: none;
      width: 100%;
      max-width: none;
      margin-left: 0;
   }
   .about-text,
   .amenities-text,
   .floor-plan-text,
   .neighborhood-text {
      order: -1;
      align-self: stretch;
      padding-bottom: 0;
      margin: 0;
   }
   .img-wrapper,
   .amenities-img,
   .neighborhood-img,
   .floorplan-slider { max-width: none; }

   /* ----- Amenities ----- */
   .amenities-img .vert-img { width: 100%; height: 260px; }
   .amenities-grid { gap: 25px 15px; }
   .amenity i,
   .vibe i { font-size: 30px; }
   .amenity span,
   .vibe span { font-size: 16px; line-height: 19px; white-space: normal; }

   /* ----- Floor plan ----- */
   .suite-details { gap: 15px; margin: 30px 0; justify-content: space-between; }

   /* ----- Neighborhood weather ----- */
   .temp { padding: 15px 20px; flex-wrap: wrap; }
   .temp .xl-text { font-size: 44px; }

   /* ----- Banner ----- */
   .facts .xl-text { font-size: 44px; line-height: 40px; }
   .med-fact-text { font-size: 20px; line-height: 22px; }
   .facts.flex-box { padding: 40px 0 30px; }

   /* Gallery */
   .gallery-layout > .flex-box:last-child {
      height: auto;
   }

   /* ----- Footer ----- */
   footer { height: auto; }
   .foot-wrapper {
      flex-wrap: wrap;
      gap: 30px 0;
      padding: 50px 20px;
   }
   .foot-wrapper > div { flex: 1 1 100% !important; }
   .foot-wrapper > .foot-col:not(.foot-icon):not(.align-r) { flex: 1 1 50% !important; }
   .align-r { text-align: left; }
   .foot-sm-logos { margin-left: 0; max-width: none; padding: 0 0 15px; }
}

@media(max-width:850px) {
   .price-con {
      position:static;
      margin:30px;
   }
   .price-flex-wrap {
      display: block;
   }
   .price-r {
      display: block;
      padding-left: 27px;
   }
   .price-l {
      padding-right: 27px;
      text-align: center;
   }
   .price-r-wrap {
      text-align:center;
   }
   .price-divider {
      width: calc(100% - 60px);
      margin: 0 30px !important;
      height:2px;
   }
   .price-savings {
      margin-left:83px;
      margin-bottom:30px;
   }
   #price a {
      min-width: 280px;
   }

   #about .wrapper {
      padding-top:0;
   }
}

@media (max-width: 480px) {
   h2 { font-size: 26px; line-height: 32px; }
   .different h2 { font-size: 30px; line-height: 36px; }
   .amenities-grid { grid-template-columns: 1fr; }
}

@media(max-width:400px){
   .price-savings {
      text-align: right;
   }
}