:root {
  --navy: #073b59;
  --ocean: #008fb3;
  --aqua: #20bfd0;
  --sun: #ffd11a;
  --sand: #fff8eb;
  --ink: #082f4b;
  --white: #fff;
  --shadow: 0 20px 50px rgba(7, 59, 89, .16);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "DM Sans", sans-serif;
  color: var(--ink);
  background: var(--sand);
  overflow-x: hidden;
}

img {
  display: block;
  width: 100%;
}

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

.script-kicker,
.brand-script,
.drinks-copy h2 {
  font-family: "Pacifico", cursive;
  font-weight: 400;
}

/* =========================================================
   Header
========================================================= */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;

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

  width: 100%;
  height: 108px;
  padding: 0 5vw;

  color: var(--white);
  background: transparent;

  transition:
    height .35s ease,
    padding .35s ease,
    color .35s ease,
    background .35s ease,
    box-shadow .35s ease,
    backdrop-filter .35s ease;
}

.site-header.scrolled {
  height: 78px;
  color: var(--navy);
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, .08);
}

/* Logo */

.brand {
  position: relative;
  display: flex;
  align-items: center;
  align-self: stretch;
  flex: 0 0 auto;
  width: 190px;
  min-width: 190px;
  line-height: 1;
}

.logo {
  position: absolute;
  top: 17px;
  left: 0;

  width: 320px;
  max-width: none;
  height: auto;

  object-fit: contain;
  transform-origin: top left;

  transition:
    top .35s ease,
    width .35s ease,
    filter .35s ease,
    opacity .35s ease;
}

.site-header.scrolled .logo {
  top: 7px;
  width: 94px;

  filter:
    brightness(0)
    saturate(100%)
    invert(49%)
    sepia(96%)
    saturate(1276%)
    hue-rotate(148deg)
    brightness(91%)
    contrast(91%);
}

.brand-script {
  font-size: 2rem;
}

.brand-sub {
  margin-top: 7px;
  font-size: .62rem;
  letter-spacing: .22em;
  text-transform: uppercase;
}

/* Navigation */

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;

  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.main-nav a {
  position: relative;
}

.main-nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  right: 100%;
  bottom: -7px;
  left: 0;

  height: 2px;
  background: var(--sun);

  transition: right .25s ease;
}

.main-nav a:hover::after {
  right: 0;
}

.nav-cta {
  padding: 12px 18px;
  border: 2px solid var(--sun);
}

.menu-toggle {
  display: none;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
}

/* =========================================================
   Hero
========================================================= */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100vh;

  background:
    url("images/gallery/the-reef-samui-04.webp")
    center / cover no-repeat;
}

.hero-shade {
  position: absolute;
  inset: 0;

  background:
    linear-gradient(
      90deg,
      rgba(3, 38, 63, .74),
      rgba(3, 38, 63, .15) 62%,
      rgba(3, 38, 63, .3)
    );
}

.hero-content {
  position: relative;
  z-index: 2;

  max-width: 650px;
  margin-left: 7vw;

  color: var(--white);
}

.eyebrow {
  font-size: .86rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 18px 0;

  font-family: "Pacifico", cursive;
  font-size: clamp(5rem, 11vw, 9rem);
  font-weight: 400;
  line-height: 1;
}

.hero-tagline {
  font-size: clamp(1.2rem, 2.5vw, 2rem);
  font-weight: 700;
  line-height: 1.35;
  text-transform: uppercase;
}

.hero-tagline span {
  color: var(--sun);
  font-family: "Pacifico", cursive;
  font-weight: 400;
  text-transform: none;
}

/* Buttons */

.button {
  display: inline-block;
  margin-top: 26px;
  padding: 15px 24px;

  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;

  transition:
    transform .25s ease,
    box-shadow .25s ease;
}

.button:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.button-sun {
  color: var(--navy);
  background: var(--sun);
}

.button-ocean {
  color: var(--white);
  background: var(--ocean);
}

/* Scroll cue */

.scroll-cue {
  position: absolute;
  bottom: 28px;
  left: 50%;
  z-index: 2;

  width: 28px;
  height: 44px;

  border: 2px solid var(--white);
  border-radius: 20px;
}

.scroll-cue span {
  position: absolute;
  top: 9px;
  left: 50%;

  width: 5px;
  height: 5px;

  border-radius: 50%;
  background: var(--white);
  transform: translateX(-50%);

  animation: scroll 1.6s infinite;
}

@keyframes scroll {
  to {
    top: 27px;
    opacity: 0;
  }
}

/* =========================================================
   About split section
========================================================= */

.split {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  min-height: 610px;
}

.split-image {
  position: relative;
  min-height: 520px;
}

.split-image img {
  height: 100%;
  object-fit: cover;
}

.signpost {
  position: absolute;
  bottom: 8%;
  left: 8%;

  padding: 18px 24px;

  color: var(--white);
  background: rgba(7, 59, 89, .88);
  box-shadow: var(--shadow);
  transform: rotate(-2deg);

  font-weight: 700;
  line-height: 1.8;
}

.split-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;

  padding: 9vw 8vw;

  background:
    radial-gradient(
      circle at 90% 20%,
      rgba(32, 191, 208, .13),
      transparent 35%
    ),
    var(--sand);
}

.script-kicker {
  margin-bottom: 16px;
  color: var(--ocean);
  font-size: 1.5rem;
}

.split-copy h2,
.food-intro h2 {
  font-size: clamp(2rem, 3vw, 3.5rem);
  line-height: 1.12;
}

.split-copy p,
.food-intro p {
  max-width: 650px;
  margin-top: 22px;
  line-height: 1.8;
}

.sun-line {
  display: block;
  width: 42px;
  height: 4px;
  margin-top: 22px;
  background: var(--sun);
}

/* =========================================================
   Experience cards
========================================================= */

.experience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.experience-card {
  position: relative;
  height: 400px;
  overflow: hidden;
  color: var(--white);
}

.experience-card::after {
  content: "";
  position: absolute;
  inset: 0;

  background:
    linear-gradient(
      0deg,
      rgba(3, 38, 63, .78),
      rgba(3, 38, 63, .08)
    );
}

.experience-card img {
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}

.experience-card:hover img {
  transform: scale(1.06);
}

.experience-card div {
  position: absolute;
  inset: auto 30px 32px;
  z-index: 2;

  text-align: center;
}

.experience-card span {
  font-size: 2rem;
}

.experience-card h3 {
  margin: 10px 0;
  font-size: 2rem;
  line-height: 1.05;
  text-transform: uppercase;
}

/* =========================================================
   Food
========================================================= */

.food-section {
  display: grid;
  grid-template-columns: .8fr 1.5fr;
  gap: 34px;

  padding: 7vw 5vw;
  background: var(--white);
}

.food-intro {
  align-self: center;
}

.food-collage {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 180px;
  gap: 12px;
}

.food-collage a {
  overflow: hidden;
}

.food-collage img {
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}

.food-collage a:hover img {
  transform: scale(1.05);
}

.food-collage .tall {
  grid-row: span 2;
}

.food-collage .wide {
  grid-column: span 2;
}

/* =========================================================
   Drinks
========================================================= */

.drinks-band {
  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 5vw 6vw;
  overflow: hidden;

  color: var(--white);
  background:
    linear-gradient(
      90deg,
      var(--ocean),
      var(--aqua)
    );
}

.drinks-copy h2 {
  font-size: clamp(2.8rem, 5vw, 5rem);
}

.drinks-copy p {
  max-width: 500px;
  line-height: 1.7;
}

.drink-art {
  display: flex;
  gap: 20px;

  font-size: clamp(3rem, 8vw, 7rem);
  filter: drop-shadow(0 18px 18px rgba(0, 0, 0, .2));
}

/* =========================================================
   Sunset quote
========================================================= */

.sunset-quote {
  position: relative;
  display: grid;
  place-items: center;

  height: 360px;

  background:
    url("https://www.samuiunlocked.com/asset/uploads/businesslistings/1935/gallery/gallery-1782894000-5032.webp")
    center / cover fixed;
}

.sunset-quote::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(7, 59, 89, .28);
}

.sunset-quote p {
  position: relative;
  z-index: 2;

  color: var(--white);
  font-family: "Pacifico", cursive;
  font-size: clamp(2.2rem, 5vw, 4.8rem);
  text-align: center;
  text-shadow: 0 4px 20px rgba(0, 0, 0, .4);
}

/* =========================================================
   Contact
========================================================= */

.contact-section {
  display: grid;
  grid-template-columns: .75fr 1.3fr .75fr;
  min-height: 450px;
  background: var(--sand);
}

.contact-card,
.hours-card {
  align-self: center;
  padding: 70px 45px;
}

.contact-card h2 {
  margin-bottom: 20px;
  font-size: 2.2rem;
}

.contact-card p,
.hours-card p {
  line-height: 1.8;
}

.map-wrap iframe {
  width: 100%;
  height: 100%;
  min-height: 450px;
  border: 0;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 10px;

  margin-top: 24px;

  color: var(--ocean);
  font-weight: 700;
}

/* =========================================================
   Footer
========================================================= */

.site-footer {
  position: relative;
  padding-top: 54px;
  color: var(--white);
  background: var(--navy);
}

.wave {
  position: absolute;
  top: -25px;
  left: 0;
  width: 100%;
  height: 45px;
  background: var(--navy);
  clip-path:
    polygon(
      0 50%,
      8% 20%,
      17% 60%,
      29% 30%,
      42% 66%,
      56% 33%,
      69% 62%,
      82% 25%,
      100% 55%,
      100% 100%,
      0 100%
    );
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(320px, auto) minmax(180px, 1fr);
  align-items: center;
  gap: 56px;

  width: min(1320px, calc(100% - 120px));
  margin: 0 auto;
  padding: 34px 0 56px;
}

.footer-brand {
  justify-self: start;
}

.footer-logo {
  display: block;
  width: 190px;
  max-width: 100%;
  height: auto;
}

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

.footer-copy p {
  margin: 0;
  color: rgba(255, 255, 255, .78);
  font-size: .78rem;
  line-height: 1.65;
}

.footer-credit {
  margin-top: 4px !important;
}

.footer-credit a {
  color: var(--white);
  font-weight: 600;
  transition: color .25s ease;
}

.footer-credit a:hover {
  color: var(--sun);
}

.footer-credit span {
  display: inline-block;
  margin: 0 7px;
  color: rgba(255, 255, 255, .4);
}

.footer-social {
  justify-self: end;
  padding-right: 92px;
  text-align: right;
}

.footer-social-label {
  display: block;
  margin-bottom: 12px;
  color: rgba(255, 255, 255, .62);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.socials {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.socials a {
  display: grid;
  place-items: center;

  width: 42px;
  height: 42px;

  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 50%;

  color: var(--white);
  font-size: .95rem;

  transition:
    transform .25s ease,
    color .25s ease,
    background .25s ease,
    border-color .25s ease;
}

.socials a:hover {
  color: var(--navy);
  background: var(--sun);
  border-color: var(--sun);
  transform: translateY(-3px);
}

/* =========================================================
   Floating controls
========================================================= */

.floating-contact,
.back-to-top {
  position: fixed;
  right: 24px;
  z-index: 1200;

  display: grid;
  place-items: center;

  width: 54px;
  height: 54px;

  border: 0;
  border-radius: 50%;

  color: var(--white);
  box-shadow: 0 8px 25px rgba(0, 0, 0, .25);

  cursor: pointer;
}

.floating-contact {
  bottom: 24px;
  background: #00aef0;
  font-size: 1.35rem;
}

.back-to-top {
  bottom: 90px;
  background: var(--ocean);
  font-size: 1.2rem;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(10px);

  transition:
    opacity .25s ease,
    visibility .25s ease,
    transform .25s ease,
    background .25s ease;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
}

.floating-contact:hover,
.back-to-top:hover {
  transform: translateY(-3px);
}

/* =========================================================
   Reveal animation
========================================================= */

.reveal,
.reveal-left {
  opacity: 0;
  transform: translateY(28px);
  transition: .8s ease;
}

.reveal-left {
  transform: translateX(-35px);
}

.visible {
  opacity: 1;
  transform: none;
}

/* =========================================================
   Tablet and mobile
========================================================= */

@media (max-width: 900px) {
  .site-header,
  .site-header.scrolled {
    height: 82px;
    padding: 0 22px;
    overflow: visible;
  }

  .brand {
    position: relative;
    z-index: 10002;
    width: 150px;
    min-width: 150px;
  }

  .logo {
    top: 10px;
    width: 150px;
  }

  .site-header.scrolled .logo {
    top: 7px;
    width: 92px;
  }

  .menu-toggle {
    position: relative;
    z-index: 10002;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;

    width: 52px;
    height: 52px;
    padding: 0;

    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 50%;
    background: rgba(7, 59, 89, .18);
    color: var(--white);

    cursor: pointer;
  }

  .site-header.scrolled .menu-toggle {
    border-color: rgba(7, 59, 89, .22);
    background: rgba(7, 59, 89, .06);
    color: var(--navy);
  }

  .menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: currentColor;
    transition:
      transform .3s ease,
      opacity .3s ease;
  }

  .main-nav {
    position: fixed;
    inset: 0;
    z-index: 10000;

    width: 100%;
    height: 100dvh;
    min-height: 100vh;
    padding: 110px 28px 50px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 25px;

    overflow-y: auto;
    overscroll-behavior: contain;

    color: var(--white);
    background:
      radial-gradient(
        circle at 50% 110%,
        rgba(32, 191, 208, .2),
        transparent 42%
      ),
      var(--navy);

    font-size: 1rem;
    text-align: center;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(100%);

    transition:
      transform .35s ease,
      opacity .35s ease,
      visibility .35s ease;
  }

  .main-nav.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0);
  }

  .main-nav a {
    width: auto;
    font-size: 1.05rem;
    letter-spacing: .1em;
  }

  .main-nav a:not(.nav-cta)::after {
    display: none;
  }

  .main-nav .nav-cta {
    margin-top: 10px;
    padding: 14px 22px;
    border: 2px solid var(--sun);
    color: var(--navy);
    background: var(--sun);
  }

  .site-header.menu-open,
  .site-header.scrolled.menu-open {
    color: var(--white);
    background: transparent;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .site-header.menu-open .logo,
  .site-header.scrolled.menu-open .logo {
    opacity: 0;
    pointer-events: none;
  }

  .site-header.menu-open .menu-toggle {
    position: fixed;
    top: 15px;
    right: 22px;

    border-color: rgba(255, 255, 255, .35);
    background: rgba(255, 255, 255, .08);
    color: var(--white);
  }

  .site-header.menu-open .menu-toggle span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .site-header.menu-open .menu-toggle span:nth-child(2) {
    opacity: 0;
  }

  .site-header.menu-open .menu-toggle span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  body.menu-open {
    overflow: hidden;
    touch-action: none;
  }

  .split,
  .food-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

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

  .experience-card {
    height: 330px;
  }

  .food-collage {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .drinks-band {
    flex-direction: column;
    gap: 30px;
    text-align: center;
  }

  .contact-card,
  .hours-card {
    padding: 55px 7vw;
  }

  .hero-content {
    margin: 0 7vw;
  }

  .sunset-quote {
    background-attachment: scroll;
  }

  .split-copy {
    padding: 70px 7vw;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 28px;

    width: min(100% - 40px, 720px);
    padding: 32px 0 48px;

    text-align: center;
  }

  .footer-brand,
  .footer-social {
    justify-self: center;
  }

  .footer-logo {
    width: 175px;
    margin: 0 auto;
  }

  .footer-social {
    padding-right: 0;
    text-align: center;
  }

  .socials {
    justify-content: center;
  }
}

@media (max-width: 560px) {
  .site-header,
  .site-header.scrolled {
    height: 74px;
    padding: 0 18px;
  }

  .brand {
    width: 132px;
    min-width: 132px;
  }

  .logo {
    top: 8px;
    width: 132px;
  }

  .site-header.scrolled .logo {
    top: 5px;
    width: 84px;
  }

  .site-header.menu-open .menu-toggle {
    top: 11px;
    right: 18px;
  }

  .hero h1 {
    font-size: 4.8rem;
  }

  .food-collage {
    grid-auto-rows: 140px;
  }

  .food-section {
    padding: 70px 20px;
  }

  .experience-card h3 {
    font-size: 1.6rem;
  }

  .drink-art {
    font-size: 3.2rem;
  }

  .site-footer {
    padding-top: 46px;
  }

  .footer-inner {
    width: min(100% - 32px, 540px);
    gap: 24px;
    padding-bottom: 42px;
  }

  .footer-logo {
    width: 160px;
  }

  .footer-copy p {
    font-size: .74rem;
  }

  .footer-credit span {
    display: none;
  }

  .footer-credit a {
    display: inline-block;
    margin: 2px 4px;
  }

  .floating-contact,
  .back-to-top {
    right: 16px;
  }
}