/* =========================================================
   HAKUBA SNOW TOURS

========================================================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  width:100%;
  max-width:100%;
}

body {
  font-family: "Inter", sans-serif;
  background: #f4efe7;
  color: #151515;
  line-height: 1.6;
  overflow-x: hidden;
  width:100%;
  max-width:100%;
}

*{
  box-sizing:border-box;
}

img,
video {
  max-width: 100%;
  display: block;
}

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

/* NAV */

.site-nav{
  position:fixed;
  top:0;
  left:0;
  width:100%;
  z-index:50;

  min-height:76px;
  padding:14px clamp(18px,4vw,50px);

  display:flex;
  align-items:center;
  justify-content:space-between;

  color:#fff;
  opacity:0;
  pointer-events:none;
  transform:translateY(-12px);

  transition:opacity .5s ease, transform .5s ease, background .5s ease, padding .35s ease;
}

.site-nav.nav-visible{
  opacity:1;
  pointer-events:auto;
  transform:translateY(0);
  background:rgba(12,12,12,.72);
  backdrop-filter:blur(14px);
}

.nav-logo{
  display:flex;
  align-items:center;
  height:48px;
  max-width:45vw;
}

.nav-logo img{
  display:block;
  height:46px;
  width:auto;
  max-height:100%;
  transition:height .35s ease;
}

.site-nav.scrolled{
  min-height:62px;
  padding:9px clamp(18px,4vw,50px);
}

.site-nav.scrolled .nav-logo{
  height:40px;
}

.site-nav.scrolled .nav-logo img{
  height:38px;
}

.nav-links{
  display:flex;
  gap:clamp(16px,3vw,42px);
  font-size:14px;
  font-weight:600;
}

.nav-links a{
  opacity:.86;
  transition:opacity .25s ease;
}

.nav-links a:hover{
  opacity:1;
}

/* HERO */

.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  text-align: center;
  color: #fff;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -3;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at center, rgba(0, 0, 0, .15), rgba(0, 0, 0, .72)),
    linear-gradient(to bottom, rgba(0,0,0,.15), rgba(0,0,0,.82));
  z-index: -2;
  transition: opacity .8s ease;
}

.hero-content{
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 16px;
  color: rgba(255,255,255,.78);
}

.eyebrow.dark {
  color: #756b5e;
}

.hero h1 {
  font-family: "Playfair Display", serif;
  font-size: clamp(58px, 10vw, 132px);
  line-height: .92;
  letter-spacing: -.055em;
  margin-bottom: 26px;
}

.hero-subtitle {
  max-width: 760px;
  margin: 0 auto 38px;
  font-size: clamp(18px, 2.3vw, 26px);
  line-height: 1.45;
  color: rgba(255,255,255,.9);
}

.hero-button{
    background:none;
    border:none;
    color:#fff;
    font-size:15px;
    letter-spacing:.22em;
    text-transform:uppercase;
    cursor:pointer;
    opacity:0;
    animation:buttonFade 1s ease forwards;
    animation-delay:1.8s;
}

.hero-button span{
    display:block;
    width:0;
    height:1px;
    margin:12px auto 0;
    background:#fff;
    transition:.4s;
}

.hero-button:hover span{
    width:100%;
}

.hero-entered .hero-overlay {
  opacity: .78;
}

.hero-entered .hero-content {
  opacity: .72;
  transform: translateY(-12px);
}

.scroll-cue{
    position:absolute;
    bottom:35px;
    left:50%;
    transform:translateX(-50%);
}

.mouse{
    width:26px;
    height:42px;
    border:2px solid rgba(255,255,255,.8);
    border-radius:20px;
    display:flex;
    justify-content:center;
}

.mouse span{

    width:4px;

    height:8px;

    background:#fff;

    border-radius:10px;

    margin-top:8px;

    animation:wheel 2s infinite;

}

@keyframes wheel{
    0%{

        opacity:1;
        transform:translateY(0);
    }
    100%{
        opacity:0;
        transform:translateY(16px);
    }
}

/* GLOBAL SECTIONS */

.section-pad {
  padding: clamp(78px, 10vw, 140px) clamp(20px, 5vw, 70px);
}

.section-heading {
  max-width: 780px;
}

.section-heading.center {
  text-align: center;
  margin: 0 auto 54px;
}

.section-heading h2,
.split-layout h2,
.image-band-text h2,
.location-card h2,
.contact-panel h2 {
  font-family: "Playfair Display", serif;
  font-size: clamp(38px, 6vw, 78px);
  line-height: .98;
  letter-spacing: -.04em;
}

.intro {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(30px, 6vw, 90px);
  align-items: end;
  max-width: 1320px;
  margin: 0 auto;
}

.intro-text {
  font-size: clamp(20px, 2.2vw, 30px);
  color: #4f473e;
  max-width: 650px;
}

/* PROPERTY CARDS */

.stays,
.footer{
  position:relative;
  overflow:hidden;
  background:#f4efe7;
}

.stays::before,
.footer::before{
  content:"";
  position:absolute;
  inset:0;
  background-image:
    linear-gradient(rgba(244,239,231,.50), rgba(244,239,231,.50)),
    url("images/background.png");
  background-size:700px;
  background-repeat:repeat;
  background-position:center;
  opacity:1;
  filter:grayscale(10%);
  pointer-events:none;
  z-index:0;
}

.stays > *,
.footer > *{
  position:relative;
  z-index:1;
}

.property-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 42px);
}

.property-card{
    background:#fff;
    box-shadow:0 15px 40px rgba(0,0,0,.08);
    transition:.35s ease;
}

.property-image{
  position:relative;
  aspect-ratio:16/10;
  overflow:hidden;
  background:#ddd;
}

.property-image img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  opacity:0;
  transform:scale(1.05);
  transition:opacity 1.2s ease, transform 3s ease;
}

.property-image img.active{
  opacity:1;
  transform:scale(1.12);
}

.property-image::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(to top, rgba(0,0,0,.62), transparent 60%);
  z-index:2;
}

.property-image span{
  position:absolute;
  left:30px;
  bottom:28px;
  z-index:3;
  color:#fff;
  font-family:"Playfair Display", serif;
  font-size:clamp(34px,4vw,58px);
}

.property-card:hover .property-image img {
  transform: scale(1.045);
  box-shadow:0 30px 60px rgba(0,0,0,.12)
}

.property-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.58), transparent 60%);
}

.property-image span {
  position: absolute;
  left: 28px;
  bottom: 24px;
  z-index: 2;
  color: #fff;
  font-family: "Playfair Display", serif;
  font-size: clamp(34px, 4vw, 58px);
  letter-spacing: -.04em;
}

.property-content{
  padding:clamp(28px, 4vw, 44px);
}

.property-action{
  margin-top:24px;
  display:flex;
  justify-content:flex-end;
}

.enquire-btn{
    position:relative;
    display:inline-flex;
    align-items:center;
    gap:12px;

    color:#111;
    text-decoration:none;
    text-transform:uppercase;
    letter-spacing:.2em;
    font-size:12px;
    font-weight:700;
    padding-bottom:8px;
    transition:.35s;
}

.enquire-btn::before{
    content:"";
    position:absolute;
    left:0;
    bottom:0;
    width:36px;
    height:2px;
    background:#111;
    transition:.35s;
}

.enquire-btn::after{
    content:"→";
    transition:.35s;
}

.enquire-btn:hover{
    color:#7a5b3a;
}

.enquire-btn:hover::before{
    width:100%;
    background:#7a5b3a;
}

.enquire-btn:hover::after{
    transform:translateX(6px);
}


.property-content h3 {
  font-family: "Playfair Display", serif;
  font-size: clamp(28px, 3vw, 42px);
  letter-spacing: -.035em;
  margin-bottom: 12px;
}

.property-content p {
  color: #5b5146;
  font-size: 17px;
}

@media (max-width:900px){

  .property-grid{
    width:100%;
    max-width:520px;
    margin:0 auto;
    grid-template-columns:1fr;
    justify-items:center;
  }

  .property-card{
    width:100%;
  }

}

@media (max-width:600px){

  .stays.section-pad{
    padding-left:20px;
    padding-right:20px;
  }

  .property-grid{
    max-width:100%;
  }

}

.feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 26px 0 28px;
}

.feature-list span {
  border: 1px solid rgba(20,20,20,.13);
  border-radius: 100px;
  padding: 8px 13px;
  font-size: 13px;
  font-weight: 700;
  color: #4c4238;
  background: #f6efe6;
}

.text-link {
  font-weight: 800;
  border-bottom: 2px solid #111;
  padding-bottom: 4px;
}

.reviews{

    background:#f4efe7;

}

.reviews-list{

    width:min(100%,900px);

    margin:70px auto 0;

}

.review{

    padding:38px 0;

    border-bottom:1px solid rgba(0,0,0,.12);

}

.review:first-child{

    border-top:1px solid rgba(0,0,0,.12);

}

.review-header{

    display:flex;

    justify-content:space-between;

    align-items:center;

    margin-bottom:18px;

}

.review-author{

    text-align:right;

    font-weight:600;

}

.review-author span{

    display:block;

    font-size:13px;

    color:#888;

    margin-top:4px;

}

.stars{

    color:#b88c45;

    letter-spacing:.18em;

    font-size:14px;

}

.review p{

    font-size:20px;

    line-height:1.7;

    color:#444;

    max-width:760px;

}


/* IMAGE BAND */

.image-band {
  position: relative;
  min-height: 76vh;
  display: grid;
  place-items: center;
  color: #fff;
  text-align: center;
  overflow: hidden;
}

.image-band img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.42);
}

.image-band-text {
  position: relative;
  z-index: 2;
  max-width: 820px;
  padding: 30px;
}

.image-band-text p {
  margin-top: 20px;
  font-size: clamp(18px, 2vw, 25px);
  color: rgba(255,255,255,.86);
}

/* WHY */

.why-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.why-card {
  background: #fffaf3;
  border: 1px solid rgba(35, 28, 20, .1);
  padding: clamp(28px, 4vw, 44px);
  min-height: 260px;
}

.why-card h3 {
  font-size: 25px;
  margin-bottom: 14px;
}

.why-card p {
  color: #5b5146;
}

/* GALLERY */

.gallery{
  width:100vw;
  margin-left:calc(50% - 50vw);
  background:#f4efe7;
  padding:0;
  overflow:hidden;
}

.gallery-grid{
  width:100%;
  display:grid;
  grid-template-columns:repeat(6,1fr);
  grid-auto-rows:210px;
  gap:5px;
  background:#fff;
}

.gallery-grid img {
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  cursor:pointer;
  filter:brightness(.92);
  transition:transform .7s ease, filter .7s ease;
}

.gallery-grid img:hover {
  transform: scale(1.06);
  filter: brightness(1.08);
}

.gallery-grid img:nth-child(1) {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-grid img:nth-child(2) {
  grid-column: span 2;
}

.gallery-grid img:nth-child(3) {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-grid img:nth-child(4),
.gallery-grid img:nth-child(5),
.gallery-grid img:nth-child(6),
.gallery-grid img:nth-child(7) {
  grid-column: span 2;
}

.gallery-grid img:nth-child(8) {
  grid-column: span 3;
}

.gallery-grid img:nth-child(9) {
  grid-column: span 3;
}

.gallery-grid img:nth-child(10) {
  grid-column: span 6;
}

/* LIGHTBOX */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(8, 8, 8, .88);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  backdrop-filter: blur(10px);
}

.lightbox.active {
  display: flex;
}

.lightbox img{
    max-width:min(1100px,92vw);
    max-height:86vh;
    object-fit:contain;
    border-radius:0;
    box-shadow:0 35px 80px rgba(0,0,0,.45);
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 30px;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  color: #fff;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
}

@keyframes galleryPop {
  from {
    opacity: 0;
    transform: scale(.94);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (max-width:900px){

  .gallery{
    width:100%;
    margin-left:0;
  }

  .gallery-grid{
    grid-template-columns:repeat(2, 1fr);
    grid-auto-rows:170px;
  }

  .gallery-grid img,
  .gallery-grid img:nth-child(n){
    grid-column:span 1;
    grid-row:span 1;
    height:100%;
    margin-top:0;
  }

  .gallery-grid img:nth-child(1),
  .gallery-grid img:nth-child(6){
    grid-column:span 2;
    grid-row:span 2;
  }

}


/* LOCATION */

.location{
  width:100%;
  min-height:650px;
  display:flex;
  background:#f4efe7;
  padding:0;
}

.location-text{
  width:35%;
  min-width:360px;
  padding:70px;
  background:#fffaf3;
  display:flex;
  flex-direction:column;
  justify-content:center;
}

.location-map{
  flex:1;
  min-height:650px;
}

.location-map iframe{
  width:100%;
  height:650px;
  border:0;
  display:block;
}

.location-text p{
  color:#5b5146;
  font-size:18px;
  line-height:1.8;
  margin-top:18px;
}

@media (max-width:900px){
  .location{
    flex-direction:column;
  }

  .location-text{
    width:100%;
    min-width:0;
    padding:45px 26px;
  }

  .location-map,
  .location-map iframe{
    height:420px;
    min-height:420px;
  }
}

/* CONTACT */

.contact {
  background:#f4efe7;
}

.contact-panel {
  max-width:980px;
  margin:0 auto;
  color:#111;
  text-align:center;
}

.contact-panel p {
  max-width:720px;
  margin:18px auto 34px;
  color:#5b5146;
  font-size:18px;
  line-height:1.7;
}

.contact-form {
  display:grid;
  gap:14px;
  margin-top:30px;
}

.form-row {
  display:grid;
  grid-template-columns:repeat(2, 1fr);
  gap:14px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width:100%;
  border:1px solid rgba(17,17,17,.18);
  background:#fffaf3;
  color:#111;
  border-radius:0;
  padding:16px 18px;
  font-family:inherit;
  font-size:15px;
  outline:none;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color:#7a7168;
}

.contact-form select {
  color:#5b5146;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color:#111;
  background:#fff;
}

.contact-form button {
  margin-top:18px;
  justify-self:center;
  border:0;
  background:transparent;
  color:#111;
  cursor:pointer;

  text-transform:uppercase;
  letter-spacing:.18em;
  font-size:12px;
  font-weight:700;

  padding:14px 0;
  border-bottom:2px solid #111;

  transition:.35s ease;
}

.contact-form button::after {
  content:" →";
  font-size:16px;
}

.contact-form button:hover {
  color:#7a5b3a;
  border-color:#7a5b3a;
  transform:translateY(-2px);
}

/* FOOTER */

.footer{
  color:#111;
  padding:70px clamp(20px,5vw,70px) 32px;
}

.footer-grid{
  max-width:1280px;
  margin:0 auto 50px;
  display:grid;
  grid-template-columns:1.5fr .7fr .9fr;
  gap:40px;
}

.footer-brand img{
  max-width:240px;
  height:auto;
}

.footer h4{
  margin-bottom:16px;
  color:#111;
  font-size:20px;
  font-weight:700;
  letter-spacing:.03em;
}

.footer p{
  color:#4f4740;
  line-height:1.7;
}

.footer a{
  display:block;
  margin-bottom:10px;
  color:#3f3933;
  text-decoration:none;
  transition:color .25s ease;
}

.footer a:hover{
  color:#111;
}

.footer-social{
  display:flex;
  gap:14px;
  margin-top:26px;
}

.footer-social a{
  width:42px;
  height:42px;
  display:flex;
  align-items:center;
  justify-content:center;
  margin-bottom:0;

  border:1px solid rgba(17,17,17,.22);
  color:#3f3933;

  transition:all .3s ease;
}

.footer-social a:hover{
  background:#111;
  border-color:#111;
  color:#fff;
  transform:translateY(-3px);
}

.footer-brand p{
  margin-top:22px;
  max-width:320px;
  color:#4f4740;
}

.footer-bottom{
  max-width:1280px;
  margin:0 auto;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px;

  padding-top:30px;

  border-top:1px solid rgba(17,17,17,.15);

  font-size:14px;
  color:#5b5146;
}

.footer-bottom a{
  display:inline;
  color:#3f3933;
}

.footer-bottom a:hover{
  color:#111;
}

@media (max-width:900px){

  .footer-grid{
    grid-template-columns:1fr;
    gap:40px;
  }

  .footer-brand{
    text-align:center;
  }

  .footer-brand img{
    margin:0 auto;
  }

  .footer-social{
    justify-content:center;
  }

  .footer-bottom{
    flex-direction:column;
    text-align:center;
  }

}

/* RESPONSIVE */

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

  .intro,
  .split-layout,
  .location-card,
  .footer-grid {
    grid-template-columns: 1fr;
  }


  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-grid img {
    height: 300px;
  }

  .gallery-grid img:nth-child(even) {
    margin-top: 0;
  }
}

@media (max-width: 600px) {
  .site-nav {
    padding: 18px 20px;
  }

  .hero h1 {
    font-size: clamp(52px, 16vw, 82px);
  }

  .property-image,
  .property-image img {
    min-height: 310px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

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

  .map-placeholder {
    min-height: 300px;
  }
}


.hero-logo{

    width:min(82vw,700px);
	max-width:100%;
    height:auto;

    margin-bottom:50px;

    animation:
        logoFloat 6s ease-in-out infinite,
        logoFade 2s ease;

    filter:
        drop-shadow(0 15px 40px rgba(0,0,0,.45));

}

@keyframes logoFloat{

    0%{

        transform:translateY(0px) scale(1);

    }

    50%{

        transform:translateY(-10px) scale(1.015);

    }

    100%{

        transform:translateY(0px) scale(1);

    }

}

@keyframes logoFade{

    from{

        opacity:0;
        transform:translateY(30px);

    }

    to{

        opacity:1;
        transform:translateY(0);

    }

}

.hero-content{

    display:flex;

    flex-direction:column;

    align-items:center;

    justify-content:center;

}

.hero-button{

    opacity:0;

    animation:buttonFade 1s ease forwards;

    animation-delay:1.5s;

}

@keyframes buttonFade{

    from{

        opacity:0;
        transform:translateY(20px);

    }

    to{

        opacity:1;
        transform:translateY(0);

    }

}

.scroll-cue{

    animation:bounce 2.5s infinite;

}

@keyframes bounce{

    0%,20%,50%,80%,100%{

        transform:translateX(-50%) translateY(0);

    }

    40%{

        transform:translateX(-50%) translateY(-8px);

    }

    60%{

        transform:translateX(-50%) translateY(-4px);

    }

}
/* FINAL MOBILE STAYS FIX */
@media (max-width:900px){

  .stays{
    overflow:hidden;
  }

  .stays.section-pad{
    padding-left:18px;
    padding-right:18px;
  }

  .property-grid{
    width:100%;
    max-width:520px;
    margin:0 auto;
    display:grid;
    grid-template-columns:1fr;
    gap:28px;
  }

  .property-card{
    width:100%;
    max-width:100%;
    margin:0 auto;
    overflow:hidden;
  }

  .property-image{
    width:100%;
    overflow:hidden;
  }

  .property-image img,
  .property-image img.active,
  .property-card:hover .property-image img{
    width:100%;
    height:100%;
    transform:none;
  }
}