
/* -------------------------------------------------- */
/* Reset - http://purecss.io/base
/* -------------------------------------------------- */

a,abbr,acronym,address,applet,article,aside,audio,b,big,blockquote,body,canvas,caption,center,cite,code,dd,del,details,dfn,div,dl,dt,em,embed,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,header,hgroup,html,i,iframe,img,ins,kbd,label,legend,li,mark,menu,nav,object,ol,output,p,pre,q,ruby,s,samp,section,small,span,strike,strong,sub,summary,sup,table,tbody,td,tfoot,th,thead,time,tr,tt,u,ul,var,video{margin:0;padding:0;border:0;font:inherit;vertical-align:baseline;}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section, main{display:block;}body{line-height:1;}ol,ul{list-style:none;}blockquote,q{quotes:none;}blockquote:after,blockquote:before,q:after,q:before{content:'';content:none;}table{border-collapse:collapse;border-spacing:0;}.hide{display:none;}html{box-sizing: border-box;}*,*:before,*:after{box-sizing:inherit;}.clear{font-size:0px;clear: both;height: 0px;}*:focus{outline: none;}strong{font-weight:bold;}em{font-style:italic;}input:invalid{box-shadow: none;}button{border:none;background:none;padding:0;margin: 0;}button::-moz-focus-inner{border:0;}input,button{border-radius:0;border-radius:none;}html{scroll-behavior: smooth;}

/* -------------------------------------------------- */
/* Common
/* -------------------------------------------------- */

body{
  font-family: Montserrat, sans-serif;
  font-size: 16px;
  color: #2f3540;
}
p{
  line-height: 1.6em;
  padding: 12px 0;
}
a{
  color: #0a2342;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 500;
}
a:hover{
  color: #e08f2f;
}
.center{
  text-align: center;
  justify-content: center;
}
button:hover{ 
  cursor: pointer; 
}

/* -------------------------------------------------- */
/* Containers
/* -------------------------------------------------- */

.container,
.container-sm{
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 24px;
}
.container-sm{
  max-width: 800px;
}

/* -------------------------------------------------- */
/* Headers
/* -------------------------------------------------- */

h1,h2,h3,h4{
  font-family: 'Libre Baskerville', serif;
  font-weight: 700;
  line-height: 1.1em;
  padding: 12px 0;
  color: #0a2342;
}
h1{ font-size: 60px; }
h2{ font-size: 48px; }
h3{ font-size: 30px; }
h4{ font-size: 18px; }

.hr{
  display: block;
  width: 120px;
  height: 14px;
  border-bottom: 2px solid #e08f2f;
  margin-bottom: 12px;
}
.hr.sm{
  width: 60px;
}
.center .hr{
  margin: 0 auto 12px auto;
}
p.eyebrow{
  display: inline-block;
  color: #e08f2f;
  font-weight: 700;
  letter-spacing: 1px;
  font-size: 14px;
  text-transform: uppercase;
  padding: 6px 0;
}

/* Breakpoints */

@media screen and (max-width: 690px) {
  h1{ font-size: 48px; }
  h2{ font-size: 39px; }
  h3{ font-size: 24px; }
}

/* -------------------------------------------------- */
/* Header / Navigation
/* -------------------------------------------------- */

header{
  position: absolute;
  width: 100%;
  padding: 12px 0;
}
header .container{
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo{
  position: relative;
  z-index: 110;
  display: block;
  width: 332px;
  height: 110px;
  background: url('/assets/images/crosstar-logo.png') no-repeat;
  background-size: 332px auto;
}

/* Navigation */

.topnav{
  padding-top: 54px;
}
.topnav ul{
  display: flex;
}
.topnav li{
  position: relative;
  padding: 0 12px;
}
.topnav a{
  display: block;
  padding: 12px 0 0 0;
  font-size: 13px;
  text-transform: uppercase;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 1px;
  transition: color .25s;
}
.topnav li:hover a{
  color: #e08f2f;
}
.topnav li span{
  display: block;
  width: 100%;
  border-bottom: 2px solid #e08f2f;
  height: 12px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s;
}
.topnav li:hover span{
   transform: scaleX(1);
}

/* Sub Navigation */

.topnav ul ul{
  display: block;
  width: 230px;
  background: #0a2342;
  padding: 15px 30px;
  position: absolute;
  top: 100%;
  left: 50%;
  opacity: 0;
  visibility: hidden;
  transform: translateX(calc(-50% - 6px));
  transition: opacity .25s, transform .25s, .25s;
}
.topnav ul li:hover ul{
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%);
}
.topnav ul ul li{
  padding: 0;
  border-bottom: 1px solid rgba(255,255,255,.1)
}
.topnav ul ul li:last-child{
  border: none;
}
.topnav ul ul a{
  text-transform: none;
  letter-spacing: normal;
  padding: 15px 0;
  font-weight: 500;
  color: #fff !important;
}
.topnav ul ul a:hover{
  color: #e08f2f !important;
}

/* Breakpoint */
@media screen and (max-width: 479px) {
  .logo{
    width: 78px;
    height: 94px;
    background: url('/assets/images/crosstar-logo-star.png') no-repeat;
    background-size: 78px auto;
  }
  .topnav{
    padding-top: 0;
  }
}

/* -------------------------------------------------- */
/* Hero
/* -------------------------------------------------- */

.hero{
  background: #fef9ea url('/assets/images/hero-homes-watercolor.webp') no-repeat center center;
  background-size: cover;
  display: flex;
  align-items: center;
  min-height: 100vh;
  padding: 170px 0 36px 0;
}
.hero-text{
  width: 100%;
  max-width: 680px;
}

/* Breakpoints */

@media screen and (max-width: 1000px) {
  .hero{
    padding-top: 142px;
  }
}

/* -------------------------------------------------- */
/* Buttons
/* -------------------------------------------------- */

button.btn,.btn,.btn-alt{
  display: inline-block;
  font-family: Montserrat, sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
  padding: 18px;
  background: #0a2342;
  text-decoration: none;
  transition: background-color .25s, color .25s;
  line-height: 1em;
}
.btn-alt{
  color: #0a2342;
  background-color: rgba(10,35,66,.1);
}
button.btn:hover,.btn:hover,.btn-alt:hover{
  background-color: rgba(14,48,90,1);
  color: #fff;
}
.btn-alt:hover{
  color: #fff;
}
.dark-bg .btn{
  background-color: rgba(255,255,255,.1)
}
.dark-bg .btn:hover{
  background-color: rgba(255,255,255,.2)
}
.btn-icon {
  display: flex;
  gap: 12px;
}
.btn-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 24px;
  color: #fff;
  transition: border-color .25s ease, color .25s ease;
}
.btn-icon:hover {
  border-color: #e08f2f;
  color: #e08f2f;
}
.btn-icon svg {
  width: 18px;
  height: 18px;
}

/* -------------------------------------------------- */
/* Sections
/* -------------------------------------------------- */

.sec{
  padding: 96px 0;
}
.bg-img1{
  background: url('/assets/images/bg-img1.webp') no-repeat;
  background-size: 700px auto;
}
.bg-img2{
  background: url('/assets/images/bg-img2.webp') no-repeat right -72px;
  background-size: 1300px auto;
}
.bg-cream{
  background-color: #fef9ea;
}
.bg-silver{
  background-color: #EDEBE8;
}
.sec-header{
  padding-bottom: 24px;
  max-width: 680px;
}
.center .sec-header{
  max-width: none;
}
.dark-bg{
  background-color: #0a2342;
}
.dark-bg, .dark-bg h2, .dark-bg h3{
  color: #fff;
}

/* Breakpoints */
@media screen and (max-width: 1000px) {
  .sec{
    padding: 48px 0;
  }
}


/* -------------------------------------------------- */
/* Side by Side
/* -------------------------------------------------- */

.sbs{
  display: flex;
  align-items: center;
  gap: 48px;
}
.sbs.reverse{
  flex-direction: row-reverse;
}
.sbs-text{
  width: 50%;
}
.sbs-img{
  width: 50%;
  line-height: 0;
}
.sbs-img img{
  width: 100%;
  height: auto;
}

/* Break points */

@media screen and (max-width: 1000px) {
  .sbs{
    flex-wrap: wrap;
    flex-direction: column;
    gap: 24px;
  }
  .sbs-text, .sbs-img{
    width: 100%;
  }
  .sbs.reverse{
    flex-direction: column-reverse;
  }
}

/* -------------------------------------------------- */
/* Cards
/* -------------------------------------------------- */

.cards{
  display: flex;
  margin: -6px;
}
.card{
  width: 33.33%;
  padding: 6px;
}
.card-bg{
  background-color: #fff;
  height: 100%;
}
.card-img{
  display: flex;
  justify-content: center;
  align-items: center;
  aspect-ratio: 16 / 9;
  background-color: #0a2342;
  border-bottom:  6px solid #e08f2f;
  color: #fff;
}
.card-img img{
  width: 100%;
  height: auto;
}
.card-img svg{
  width: auto;
  height: 96px;
}
.card-text{
  padding: 24px 36px;
}

/* Break points */

@media screen and (max-width: 1000px) {
  .cards{
    flex-wrap: wrap;
    flex-direction: column;
    gap: 24px;
  }
  .card{
    width: 100%;
  }
  .card-img{
    aspect-ratio: auto;
    padding: 36px;
    justify-content: flex-start;
  }
}

/* -------------------------------------------------- */
/* Testimony
/* -------------------------------------------------- */

.testimonial-carousel {
  position: relative;
  overflow: hidden;
}
.testimonial-track {
  position: relative;
}
.testimonial {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateX(24px);
  transition:
    opacity 0.35s ease,
    transform 0.35s ease,
    visibility 0.35s;
}
.testimonial.active {
  position: relative;
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}
.testimonial.exit-left {
  transform: translateX(-24px);
}
.testimonial.exit-right {
  transform: translateX(24px);
}
.testimonial p:first-child {
  font-family: 'Libre Baskerville', serif;
  font-size: 24px;
  font-style: italic;
}
.testimonial cite {
  display: block;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.testimonial-nav {
  padding: 24px 0 0;
  display: flex;
  justify-content: center;
  gap: 6px;
}
.testimonial-nav button {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 2px solid #e08f2f;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}
.testimonial-nav button.active {
  background: #e08f2f;
}

/* -------------------------------------------------- */
/* Footer
/* -------------------------------------------------- */

footer {
  padding: 36px 0 24px 0;
  background: #071a30;
  color: #fff;
}
.footer-top{
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 12px;
}
.div-line{
  border-top: 1px solid rgba(255,255,255,.1);
  height: 1px;
  flex-grow: 1;
}
.btns{
  display: flex;
  gap: 6px;
}
p.footer-bottom {
  font-size: 13px;
}

/* -------------------------------------------------- */
/* Mobile Navigation
/* -------------------------------------------------- */

/* Trigger */ 

.mnav-trigger{
  display: none;
  position: relative;
  z-index: 110;
  width: 40px;
  height: 40px;
}
.mnav-x,
body.show .mnav-menu{ 
  display: none; 
}
body.show .mnav-x{
  display: block;
}

/* Nav */ 

.mnav{
  display: none;
  background: linear-gradient(to bottom, #fff 0%, #fef9ea 100%);
  position: fixed;
  inset: 0;
  z-index: 100;
  flex-direction: column;
}
body.show{
  overflow: hidden;
}
body.show .mnav{
  display: flex;
}
.mnav nav{
  padding: 158px 24px 24px 24px;
  display: flex;
  align-items: center;
}
.mnav nav ul{
  width: 100%;
}
.mnav nav li{
  border-top: 1px solid rgba(0,0,0,.075);
}
.mnav nav a{
  display: block;
  padding: 18px 0;
  font-size: 14px;
  text-transform: uppercase;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 1px;
}
.mnav nav ul ul a{
  font-size: 13px;
  text-transform: none;
  font-weight: 400;
  letter-spacing: normal;
}
.mnav .btns{
  margin-top: auto;
  background: #071a30;
  justify-content: center;
  padding: 24px;
}

/* Breakpoints */

@media screen and (max-width: 1000px) {
  .topnav ul{ display: none; }
  .mnav-trigger{ display: block; }
}
@media screen and (max-width: 479px) {
  .mnav nav{
    padding-top: 142px;
  }
}
