/*-----------------------------------*\
  #CUSTOM PROPERTY
\*-----------------------------------*/

:root {
  /* Colors */
  --gold-crayola: hsl(38, 61%, 73%);
  --smoky-black-1: hsla(40, 12%, 5%, 1);
  --smoky-black-3: hsla(0, 3%, 7%, 1);
  --eerie-black-1: hsla(210, 4%, 9%, 1);
  --eerie-black-2: hsla(210, 4%, 11%, 1);
  --eerie-black-3: hsla(180, 2%, 8%, 1);
  --white: hsla(0, 0%, 100%, 1);
  --white-alpha-70: hsla(0, 0%, 100%, 0.7);
  --white-alpha-20: hsla(0, 0%, 100%, 0.2);
  --black: hsla(0, 0%, 0%, 1);
  --cream: #f7f5ef;

  /* Gradient Color */
  --loading-text-gradient: linear-gradient(90deg, transparent 0% 16.66%, var(--smoky-black-3) 33.33% 50%,  transparent 66.66% 75%);

  /* font-size */
  --fontSize-logo: 2rem;
  --fontSize-display-1: calc(1.3rem + 6.7vw);
  --fontSize-body-2: 1.6rem;
  --fontSize-label-2: 1.2rem;

  /* font-weight */
  --weight-regular: 400;
  --weight-bold: 700;

  /* line-height */
  --lineHeight-1: 1em;
  --lineHeight-4: 1.6em;

  /* letter-spacing */
  --letterSpacing-2: 0.4em;
  --letterSpacing-5: 3px;

  /* Other */
  --page-gutter: 26px;
  --radius-circle: 50%;
  --transition-1: 250ms ease;
  --transition-2: 500ms ease;
  --transition-3: 1000ms ease;
}





/*-----------------------------------*\
  #FONTS
\*-----------------------------------*/

@font-face {
  font-family: "ubuntu";
  src: url("../fonts/Ubuntu-Medium.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "ubuntu-light";
  src: url("../fonts/Ubuntu-Light.ttf") format("truetype");
  font-display: swap;
}





/*-----------------------------------*\
  #RESET
\*-----------------------------------*/

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

li { list-style: none; }

a,
img,
data,
span,
input,
button,
select,
ion-icon,
textarea { display: block; }

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

img { height: auto; }

button {
  background: none;
  border: none;
  font: inherit;
  cursor: pointer;
}

address { font-style: normal; }

html {
  font-size: 10px;
  scroll-behavior: smooth;
}

body {
  background-color: var(--eerie-black-1);
  color: var(--white);
  font-size: var(--fontSize-body-2);
  overflow: hidden;
  height: 300vh;
  font-family: "ubuntu-light", sans-serif;
}

body.loaded { overflow: overlay; }

section[id] { scroll-margin-top: 60px; }

::-webkit-scrollbar { width: 5px; }

::-webkit-scrollbar-track { background-color: transparent; }

::-webkit-scrollbar-thumb { background-color: var(--gold-crayola); }





/*-----------------------------------*\
  #TYPOGRAPHY
\*-----------------------------------*/

.display-1 {
  color: var(--white);
  font-weight: var(--weight-regular);
  font-size: var(--fontSize-display-1);
  line-height: var(--lineHeight-1);
}

.body-2 {
  font-size: var(--fontSize-body-2);
  line-height: var(--lineHeight-4);
}

.label-2 { font-size: var(--fontSize-label-2); }

.section-eyebrow {
  font-size: 14px;
  margin-bottom: 6px;
  font-family: 'ubuntu';
}

.section-title {
  font-size: 40px;
  font-family: 'ubuntu';
  margin-bottom: 30px;
}

.section-text {
  font-size: 15px;
  font-weight: var(--weight-bold);
  letter-spacing: 0;
  line-height: 24px;
  padding-right: 10px;
}





/*-----------------------------------*\
  #REUSED STYLE
\*-----------------------------------*/

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

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

.section-subtitle {
  position: relative;
  color: var(--gold-crayola);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: var(--letterSpacing-2);
  margin-block-end: 12px;
}

.section-subtitle::after {
  content: url('../images/separator.svg');
  display: block;
  width: 100px;
  margin-inline: auto;
  margin-block-start: 5px;
}

.btn {
  position: relative;
  color: var(--gold-crayola);
  font-size: var(--fontSize-label-2);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: var(--letterSpacing-5);
  max-width: max-content;
  border: 2px solid var(--gold-crayola);
  padding: 12px 45px;
  overflow: hidden;
  z-index: 1;
}

.btn::before {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 200%;
  height: 200%;
  border-radius: var(--radius-circle);
  background-color: var(--gold-crayola);
  transition: var(--transition-2);
  z-index: -1;
}

.btn .text { transition: var(--transition-1); }

.btn .text-2 {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: max-content;
  color: var(--smoky-black-1);
}

.btn:is(:hover, :focus-visible)::before { bottom: -50%; }

.btn:is(:hover, :focus-visible) .text-1 { transform: translateY(-40px); }

.btn:is(:hover, :focus-visible) .text-2 {
  top: 50%;
  transform: translate(-50%, -50%);
}

.btn-dark {
  color: var(--black);
  border-color: var(--black);
}

.btn-dark::before { background-color: var(--black); }

.btn-dark .text-2 { color: var(--white); }





/*-----------------------------------*\
  #PRELOAD
\*-----------------------------------*/

.preload {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--gold-crayola);
  z-index: 10;
  display: grid;
  place-content: center;
  justify-items: center;
  transition: var(--transition-2);
}

.preload > * { transition: var(--transition-1); }

.preload.loaded > * { opacity: 0; }

.preload.loaded {
  transition-delay: 250ms;
  transform: translateY(100%);
}

.circle {
  width: 112px;
  height: 112px;
  border-radius: var(--radius-circle);
  border: 3px solid var(--white);
  border-block-start-color: var(--smoky-black-3);
  margin-block-end: 45px;
  animation: rotate360 1s linear infinite;
}

@keyframes rotate360 {
  0% { transform: rotate(0); }
  100% { transform: rotate(1turn); }
}

.preload .text {
  background-image: var(--loading-text-gradient);
  background-size: 500%;
  font-size: calc(2rem + 3vw);
  font-weight: var(--weight-bold);
  line-height: 1em;
  text-transform: uppercase;
  letter-spacing: 16px;
  padding-inline-start: 16px;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-stroke: 0.5px var(--eerie-black-3);
  animation: loadingText linear 2s infinite;
}

@keyframes loadingText {
  0% { background-position: 100%; }
  100% { background-position: 0%; }
}





/*-----------------------------------*\
  #HEADER
\*-----------------------------------*/

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: transparent;
  z-index: 4;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 14px 0;
  font-size: var(--fontSize-logo);
  transition: var(--transition-2);
}

.header.light-mode {
  color: black;
  background: white;
  box-shadow: rgba(0, 0, 0, 0.1) 0px 2px 0px 0px;
}

.navbar,
.header-actions { display: none; }





/*-----------------------------------*\
  #HERO
\*-----------------------------------*/

.hero .slider-btn { display: none; }

.hero {
  position: relative;
  padding-block: 120px;
  min-height: 85vh;
  overflow: hidden;
  z-index: 1;
}

.hero .slider-item {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  display: grid;
  place-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-3);
  z-index: 1;
}

.hero .slider-item.active {
  opacity: 1;
  visibility: visible;
}

.hero .slider-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform: scale(1.15);
  pointer-events: none;
  user-select: none;
  z-index: -1;
}

.hero .slider-filter {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  user-select: none;
  background-color: #0000008f;
}

.hero .slider-item.active .slider-bg {
  animation: smoothScale 7s linear forwards;
}

@keyframes smoothScale {
  0% { transform: scale(1); }
  100% { transform: scale(1.15); }
}

.hero .section-subtitle::after { margin-block: 14px 20px; }

.hero-text { margin-block: 10px 40px; }

.slider-reveal {
  transform: translateY(30px);
  opacity: 0;
}

.hero .slider-item.active .slider-reveal {
  animation: sliderReveal 1s ease forwards;
}

@keyframes sliderReveal {
  0% {
    transform: translateY(30px);
    opacity: 0;
  }

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

.hero .slider-item.active .section-subtitle { animation-delay: 500ms; }

.hero .slider-item.active .hero-title { animation-delay: 1000ms; font-family: 'ubuntu'; padding: 0 16px; }

.hero .slider-item.active .hero-text { animation-delay: 1.5s; }

.hero-actions { display: none; }





/*-----------------------------------*\
  #INFO STRIP
\*-----------------------------------*/

.info-strip {
  background-color: var(--eerie-black-2);
  padding: 30px var(--page-gutter);
}

.info-list {
  display: grid;
  gap: 22px;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.info-item ion-icon {
  flex-shrink: 0;
  font-size: 24px;
  color: var(--gold-crayola);
  margin-top: 2px;
}

.info-label {
  font-family: 'ubuntu';
  font-size: 12px;
  letter-spacing: var(--letterSpacing-5);
  text-transform: uppercase;
  color: var(--gold-crayola);
  margin-bottom: 4px;
}

.info-value {
  font-size: 16px;
  line-height: 24px;
}

a.info-value { transition: color var(--transition-1); }

a.info-value:is(:hover, :focus-visible) { color: var(--gold-crayola); }





/*-----------------------------------*\
  #MENU
\*-----------------------------------*/

.buffet-section {
  padding: 55px 0 29px var(--page-gutter);
  height: 85vh;
  background-color: white;
  color: black;
  box-shadow: inset 0 10px 10px rgba(0, 0, 0, 0.1);
}

.buffet-menu {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-right: 16px;
  padding-bottom: 16px;
}

.dish {
  flex-shrink: 0;
  width: 300px;
}

.dish img {
  width: 300px;
  height: 300px;
  object-fit: cover;
}

.dish-name {
  font-family: 'ubuntu';
  font-size: 15px;
  margin-top: 10px;
}





/*-----------------------------------*\
  #PHILOSOPHY
\*-----------------------------------*/

.cake-section {
  padding: 55px 0 29px var(--page-gutter);
  height: 75vh;
  background-color: var(--cream);
  color: black;
  position: relative;
}

.cake-art { display: contents; }

.cake {
  position: absolute;
  transition: transform 0.1s linear;
}

.cheesecake2 {
  right: 20px;
  top: -156px;
  width: 150px;
}

.passionfruitcake2 {
  left: 20px;
  bottom: 83px;
  width: 200px;
}

.pineapple {
  bottom: -70px;
  right: 17px;
  width: 210px;
}





/*-----------------------------------*\
  #REVIEWS
\*-----------------------------------*/

.reviews-section {
  background-color: var(--eerie-black-2);
  padding: 55px var(--page-gutter) 45px;
}

.reviews-section .section-eyebrow { color: var(--gold-crayola); }

.reviews-section .section-title { margin-bottom: 12px; }

.review-summary {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 30px;
  font-size: 16px;
  color: var(--white-alpha-70);
  transition: color var(--transition-1);
}

.review-summary:is(:hover, :focus-visible) { color: var(--white); }

.review-summary-score {
  font-family: 'ubuntu';
  font-size: 20px;
  color: var(--gold-crayola);
}

.review-list {
  display: grid;
  gap: 20px;
}

.review-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  border: 1px solid var(--white-alpha-20);
  padding: 28px 24px;
}

.review-stars {
  color: var(--gold-crayola);
  font-size: 16px;
  letter-spacing: 4px;
}

.review-text {
  font-family: 'ubuntu';
  font-size: 20px;
  line-height: 1.4;
}

.review-author {
  margin-top: auto;
  font-size: 13px;
  color: var(--white-alpha-70);
}

.review-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  margin-top: 30px;
}

.review-links a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--gold-crayola);
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  border-bottom: 1px solid currentColor;
  padding-bottom: 4px;
  transition: color var(--transition-1);
}

.review-links a:is(:hover, :focus-visible) { color: var(--white); }





/*-----------------------------------*\
  #VISIT
\*-----------------------------------*/

.map-section {
  padding: 55px var(--page-gutter) 40px;
  background-color: white;
  color: black;
}

.map-section .section-text { margin-bottom: 24px; }

.visit-details {
  display: grid;
  gap: 14px;
  margin-bottom: 28px;
}

.visit-row {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 12px;
  font-size: 15px;
  line-height: 22px;
}

.visit-row dt {
  font-family: 'ubuntu';
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding-top: 1px;
}

.visit-row a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.visit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 30px;
}

.visit-actions .btn {
  min-width: 250px;
  text-align: center;
}

.map-frame { height: 400px; }

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





/*-----------------------------------*\
  #FOOTER
\*-----------------------------------*/

.footer { padding: 50px var(--page-gutter) 24px; }

.footer-grid {
  display: grid;
  gap: 32px;
  text-align: center;
}

.footer-logo {
  font-size: var(--fontSize-logo);
  margin-bottom: 10px;
}

.footer-title {
  font-family: 'ubuntu';
  font-size: 12px;
  letter-spacing: var(--letterSpacing-5);
  text-transform: uppercase;
  color: var(--gold-crayola);
  margin-bottom: 12px;
}

.footer-text,
.footer-link {
  font-size: 15px;
  line-height: 24px;
  color: var(--white-alpha-70);
}

.footer-link { transition: color var(--transition-1); }

.footer-link:is(:hover, :focus-visible) { color: var(--gold-crayola); }

.social-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
}

.social-links a {
  color: white;
  font-size: 20px;
  transition: color 0.3s ease;
}

.social-links a:hover { color: var(--gold-crayola); }

.social-links ion-icon {
  width: 24px;
  height: 24px;
}

.copyright {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--white-alpha-20);
  text-align: center;
  font-size: 13px;
  color: var(--white-alpha-70);
}





/*-----------------------------------*\
  #MEDIA QUERIES
\*-----------------------------------*/

@media (min-width: 575px) {
  :root { --fontSize-body-2: 2rem; }
}

@media (min-width: 768px) {
  .hero .slider-btn {
    display: grid;
    position: absolute;
    z-index: 1;
    color: var(--gold-crayola);
    font-size: 2.4rem;
    border: 1px solid var(--gold-crayola);
    width: 45px;
    height: 45px;
    place-items: center;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    transition: var(--transition-1);
  }

  .hero .slider-btn ion-icon { transform: rotate(-45deg); }

  .hero .slider-btn.prev { left: 30px; }

  .hero .slider-btn.next { right: 30px; }

  .hero .slider-btn:is(:hover, :focus-visible) {
    background-color: var(--gold-crayola);
    color: var(--black);
  }

  .hero-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    position: absolute;
    left: 50%;
    bottom: 50px;
    transform: translateX(-50%);
    z-index: 2;
  }
}

@media (min-width: 992px) {
  :root { --page-gutter: max(40px, calc((100% - 1200px) / 2)); }

  .header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    padding: 16px var(--page-gutter);
  }

  .navbar {
    display: flex;
    gap: 36px;
    font-size: 15px;
    letter-spacing: 1px;
  }

  .navbar-link { position: relative; }

  .navbar-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 100%;
    height: 1px;
    background-color: currentColor;
    transform: scaleX(0);
    transition: transform var(--transition-1);
  }

  .navbar-link:is(:hover, :focus-visible)::after { transform: scaleX(1); }

  .header-actions {
    display: flex;
    justify-self: end;
    align-items: center;
    gap: 24px;
    font-size: 15px;
    letter-spacing: 1px;
  }

  .header-call {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .header-cta {
    border: 1px solid currentColor;
    padding: 8px 18px;
    transition: var(--transition-1);
  }

  .header-cta:is(:hover, :focus-visible) {
    background-color: var(--gold-crayola);
    border-color: var(--gold-crayola);
    color: var(--black);
  }

  .info-strip { padding-block: 36px; }

  .info-list {
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
  }

  .info-item + .info-item {
    border-left: 1px solid var(--white-alpha-20);
    padding-left: 30px;
  }

  .section-eyebrow { letter-spacing: 2px; }

  .section-title { font-size: 48px; }

  .buffet-section {
    height: auto;
    padding: 100px var(--page-gutter);
  }

  .buffet-menu {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px 24px;
    overflow: visible;
    padding: 0;
  }

  .dish { width: auto; }

  .dish img {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
  }

  .dish-name { font-size: 17px; margin-top: 14px; }

  .cake-section {
    height: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
    padding: 100px var(--page-gutter);
  }

  .cake-text .section-text {
    font-size: 18px;
    line-height: 32px;
    max-width: 52ch;
  }

  .cake-art {
    display: block;
    position: relative;
    height: 480px;
  }

  .cake-art .cheesecake2 {
    top: 0;
    right: 30px;
    width: 200px;
  }

  .cake-art .passionfruitcake2 {
    top: 60px;
    left: 0;
    bottom: auto;
    width: 260px;
  }

  .cake-art .pineapple {
    bottom: -10px;
    left: 230px;
    right: auto;
    width: 190px;
  }

  .reviews-section { padding-block: 100px; }

  .review-list {
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
  }

  .review-card { padding: 36px 32px; }

  .review-text { font-size: 24px; }

  .review-links { margin-top: 40px; }

  .map-section {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: 60px;
    padding-block: 100px;
  }

  .map-section .section-text {
    font-size: 17px;
    line-height: 28px;
  }

  .visit-row {
    font-size: 17px;
    line-height: 26px;
  }

  .visit-actions { margin-bottom: 0; }

  .visit-actions .btn {
    min-width: 0;
    padding-inline: 30px;
  }

  .map-frame {
    height: auto;
    min-height: 480px;
  }

  .footer { padding: 80px var(--page-gutter) 30px; }

  .footer-grid {
    grid-template-columns: 1.6fr 1.3fr 1.3fr 1.4fr;
    gap: 40px;
    text-align: left;
  }

  .social-links { justify-content: flex-start; }

  .copyright { text-align: left; }
}

@media (min-width: 1200px) {
  .hero { height: 880px; }
}
