@import url("https://fonts.googleapis.com/css2?family=Epilogue:ital,wght@0,100..900;1,100..900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Sora:wght@100..800&display=swap");

@font-face {
  font-family: "Garet-Book";
  src: url("./public/Garet-Book.woff") format("woff");
  font-weight: normal;
  font-style: normal;
}

:root {
  --max-width: 1200px;

  --section-bg: #e8e8f0;
  --purple-bright: #c91fcc;

  --title-font: "Epilogue", sans-serif;
  --text-font: "Sora", sans-serif;
  --logo-font: "Garet-Book", sans-serif;

  --font-size-title: 5rem;
  --font-size-subtitle: 3rem;

  --font-size-text: 2rem;
  --font-size-subtext: 1.25rem;
  --font-size-subtext-mobile: 1rem;

  --font-size-button: 1rem;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
  user-select: none;
}

::-moz-selection {
  /* Code for Firefox */
  color: white;
  background: var(--purple-bright);
}

::selection {
  color: white;
  background: var(--purple-bright);
}

body {
  font-family: Arial, sans-serif;
}

/* Animate classes */
.animate {
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.delay {
  transition-delay: 0.5s;
}

.animate.visible {
  opacity: 1;
  transform: translateX(0);
}

h1 {
  font-family: var(--title-font);
  font-weight: 200;
  font-size: var(--font-size-title);
  color: white;
  user-select: none;
  line-height: 1.3;
}

h2 {
  font-family: var(--text-font);
  font-weight: 300;
  font-size: var(--font-size-subtitle);
  color: var(--purple-bright);
  user-select: none;
}

h3 {
  font-family: var(--text-font);
  font-weight: 100;
  font-size: var(--font-size-text);
  padding: 50px 0 15px 0;
  color: white;
  user-select: none;
}

h4 {
  font-family: var(--text-font);
  font-weight: 400;
  font-size: var(--font-size-text);
  padding: 50px 0 15px 0;
  color: var(--purple-bright);
  user-select: none;
}

h5 {
  font-family: var(--text-font);
  font-weight: 300;
  font-size: var(--font-size-subtext);
  color: white;
  user-select: none;
}

@media only screen and (max-width: 1000px) {
  h1 {
    font-size: 3rem;
  }

  h2 {
    font-size: 2rem;
  }

  h3,
  h4 {
    font-size: 1.5rem;
  }
}

.underline {
  position: relative;
  display: inline-block;
}

.underline::after {
  content: "";
  position: absolute;
  top: 85%;
  left: 0;
  display: block;
  width: 100%;
  height: 5px;
  border-radius: 50px;
  background-color: var(--purple-bright);
  z-index: -2;
}

.underline::before {
  content: "";
  position: absolute;
  top: 85%;
  left: 0;
  display: block;
  width: 100%;
  height: 5px;
  border-radius: 50px;
  background-color: white;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s ease;
  z-index: -1;
}

.underline:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}

/* Navbar styles */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  height: 110px;
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  user-select: none !important;
  transition: height 0.3s ease;
}

.nav-content {
  max-width: var(--max-width);
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
}

.navLogo {
  display: flex;
  align-items: center;
  gap: 20px;
  cursor: pointer;
  user-select: none !important;
}

.imgLogo {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  user-select: none !important;
}

.textLogo {
  font-family: var(--logo-font);
  font-size: 3.5rem;
  font-weight: 200;
  opacity: 1;
  transition: opacity 0.3s;

  color: white;
  text-decoration: none;
  user-select: none !important;
}

.nav-links {
  display: flex;
  align-items: center;
}

.nav-links a {
  font-family: var(--text-font);
  font-weight: 100;
  font-size: var(--font-size-button);

  letter-spacing: 2px;

  margin-left: 20px;
  text-decoration: none;
  color: white;
  transition: color 0.3s;

  position: relative;
  display: inline-block;
}

.nav-links a:not(.buttonCircle)::after {
  content: "";
  position: absolute;
  top: 110%;
  left: 0;
  display: block;
  width: 0%;
  height: 2px;
  border-radius: 50px;
  background-color: white;
  z-index: -2;
  transition: width 0.2s ease;
}

.nav-links a:not(.buttonCircle):hover::after {
  width: 100%;
}

.menu-toggle {
  display: none; /* Hide the button by default */
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  z-index: 1001; /* Higher than the nav-content */
}

@media only screen and (max-width: 1000px) {
  .navbar.active {
    height: 100vh;
  }

  .navLogo {
    gap: 10px;
  }

  .textLogo {
    font-size: 2rem;
  }

  .imgLogo {
    width: 3rem;
    height: 3rem;
  }

  .textLogo.active {
    opacity: 0;
  }

  .imgLogo.active {
    opacity: 0;
  }

  .menu-toggle {
    display: block;
    position: absolute;
    top: 0;
    right: 0;
    padding: 30px;
  }

  .nav-links {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 100%; /* Start off-screen */
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.25);
    justify-content: center;
    align-items: center;
    z-index: 1000; /* Ensure the nav-links are above the menu-toggle */
    transition: left 0.3s ease;
  }

  .nav-links.active {
    left: 0%;
  }

  .nav-links a {
    margin: 20px 0 20px 30px;
    color: white;
    font-size: 1.5rem;
    width: 200px;
    text-align: left;
  }
}

.search-container {
  position: relative;
  display: flex;
  justify-content: left;
  align-items: center;
}

.search-icon {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  margin: 0 15px;
}

.search-icon img {
  width: 30px;
  aspect-ratio: 1/1;
  background-color: transparent;
}

#searchBar {
  padding: 8px 12px;
  font-size: 1rem;
  border: none;
  outline: none;
  width: 0;
  transition: width 0.3s ease, opacity 0.3s ease;
  opacity: 0;
  visibility: hidden;
}

.search-container.active #searchBar {
  width: 150px;
  opacity: 1;
  visibility: visible;
}

.search-results {
  position: absolute;
  top: 100%;
  left: 60px;
  width: 150px;
  max-height: 120px;
  overflow-y: auto;
  background-color: white;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  display: none; /* Hidden by default */
  z-index: 1001;
  padding: 0;
  margin: 0;
  list-style: none;
  transition: height 1s ease;
}

.search-results li {
  padding: 10px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.search-results li:hover {
  background-color: rgba(0, 0, 0, 0.1);
}

/* Nav Links on being in a section */
.nav-links a.active:not(.buttonCircle)::after {
  width: 100%; /* Fully underlined */
}

.nav-links a.active {
  color: white; /* Ensure the active link color is consistent */
}

/* Section styles */
.section {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  position: relative;
  text-align: left;
  background-color: var(--section-bg);
}

@media screen and (max-width: 1000px) {
  .section {
    min-height: 100vh;
    padding-top: 10px;
  }
}

/* Center and constrain content */
.content-wrapper {
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  position: relative;
  padding: 0px 20px;
  z-index: 10;
}

.split {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}

.buttonSquare {
  font-family: var(--text-font);
  font-weight: 100;
  font-size: var(--font-size-button);
  display: inline-block;
  padding: 10px 20px;
  border-radius: 0px 0px 0px 0px;
  cursor: pointer;
  transition: background-color 0.2s ease, transform inherit;
  user-select: none;
}

.buttonDesign1 {
  background-color: transparent;
  color: white;
  border: 1px solid var(--purple-bright);
}

.buttonDesign1:hover {
  transition: transform 0.2s ease, background-color 0.2s ease;
  background-color: var(--purple-bright);
}

.buttonDesign1:active {
  transition: transform 0.2s ease, background-color 0.2s ease;
  transform: scale(0.95);
}

.buttonDesign2 {
  background-color: var(--purple-bright);
  color: white;
  font-weight: 300;
  border: 1px solid var(--purple-bright);
}

.buttonDesign2:hover {
  transition: transform 0.2s ease, background-color 0.2s ease;
  background-color: transparent;
  color: var(--purple-bright);
}

.buttonCircle {
  font-family: var(--text-font);
  font-weight: 300 !important;
  font-size: var(--font-size-button);
  display: inline-block;
  padding: 10px 20px;
  background-color: var(--purple-bright);
  border-radius: 20px;
}

.buttonCircle:hover {
  background-color: white;
  color: var(--purple-bright);
}

.buttonCircle:active {
  transform: scale(0.95);
}

/* Section 2 */

.textSection2 {
  font-family: var(--text-font);
  font-weight: 200;
  font-size: var(--font-size-subtext);
  margin-right: 10px;
  flex: 1; /* Section to grow and shrink */
}

.textBox {
  margin: 30px 0px 15px 0px;
  user-select: text !important;
}

.imgSection2 {
  width: 100%;
  max-width: 500px;
  aspect-ratio: 1/1;
  flex-shrink: 1;
}

/* Split container styling */

@media only screen and (max-width: 850px) {
  .split {
    flex-direction: column;
    align-items: center;
  }

  .textSection2 {
    margin-right: 0px;
    font-size: var(--font-size-subtext-mobile);
    text-align: center;
  }

  .imgSection2 {
    width: 100%;
    max-width: 300px;
    height: auto;
  }
}

/* Section 3 */

.bolden {
  font-weight: 400;
  display: inline;
  user-select: text !important;
}

.cards-wrapper {
  margin-top: 50px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  width: 100%;
}

.card {
  position: relative;
  width: 300px;
  height: 400px;
  overflow: hidden;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.card-text {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 20px;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.9) 25%,
    rgba(0, 0, 0, 0) 100%
  );
  color: white;
  transition: opacity 0.3s ease;
}

.card:hover .card-text {
  opacity: 0;
}

.card:hover {
  transform: scale(1.05);
}

.card:hover img {
  transform: scale(1.05);
  filter: grayscale(0%);
}

.card.hover .card-text,
.card:hover .card-text {
  opacity: 0;
}

.card.hover img,
.card:hover img {
  filter: grayscale(0%); /* Remove grayscale filter on hover */
}

.card:hover,
.card.hover {
  transform: scale(1.05); /* Slight zoom effect on hover */
}

@media screen and (max-width: 1000px) {
  .cards-wrapper {
    flex-direction: column;
    align-items: center;
  }

  .card {
    width: 300px;
    height: 200px;
    margin: 10px 0px;
  }
}

.purpleSubText {
  font-family: var(--text-font);
  font-weight: 500;
  color: var(--purple-bright);
}

/* Footer styles */

.footer {
  background-color: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  color: white;
  text-align: left;
}

.footerText {
  font-family: var(--text-font);
  font-weight: 100;
  font-size: var(--font-size-subtext);
  user-select: text !important;
}

.form-group {
  display: flex;
  flex-direction: column;
  margin: 20px 0px;
}

.form-group label {
  font-family: var(--text-font);
  font-weight: 100;
  font-size: var(--font-size-subtext);
  margin-bottom: 5px;
}

.form-group input {
  font-family: var(--text-font);
  font-weight: 400;
  font-size: var(--font-size-subtext);
  padding: 10px;
  border: 1px solid white;
  background-color: transparent;
  color: var(--purple-bright);
}

.form-group textarea {
  font-family: var(--text-font);
  font-weight: 300;
  font-size: var(--font-size-subtext);
  padding: 10px;
  border: 1px solid white;
  background-color: transparent;
  color: var(--purple-bright);
  resize: vertical;
  min-height: 60px;
  max-height: 120px;
}

.form-group input:focus {
  outline: none;
  border-color: var(--purple-bright);
}

.form-group input::placeholder {
  color: rgba(255, 255, 255, 0.147);
  font-weight: 100;
  font-size: 1rem;
}

.form-group textarea:focus {
  outline: none;
  border-color: var(--purple-bright);
}

.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.147);
  font-weight: 100;
  font-size: 1rem;
}

.footerContact {
  padding: 50px 0 0px 100px;
  width: 100%;
}

.footerText .footerSubText {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;

  user-select: text !important;

  font-size: 1.25rem;
  margin-top: 25px;
}

.footerText .footerSubText a {
  color: white;
  text-decoration: underline;
  margin-left: 10px;
  transition: color 0.3s;
  user-select: text !important;
}

.footerText .footerSubText a:hover {
  color: var(--purple-bright);
}

.footerText .footerSubText img {
  width: 25px;
  height: 25px;
  margin-right: 15px;
}

@media only screen and (max-width: 850px) {
  .footerContact {
    padding: 50px 0 10px 0px;
    width: 100%;

    text-align: right;
    box-sizing: border-box;
  }

  .footerText .footerSubText {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;

    user-select: text !important;

    font-size: 1.1rem;
    margin-top: 25px;
  }
}

.phpResponsePositive {
  font-family: var(--text-font);
  font-weight: 300;
  font-size: var(--font-size-subtext);
  color: green;
}

.phpResponseNegative {
  font-family: var(--text-font);
  font-weight: 300;
  font-size: var(--font-size-subtext);
  color: red;
}

/* Products */

.productDivider {
  height: 3px;
  width: 100%;
  background-color: rgba(128, 128, 128, 0.064);
  margin: 50px 0px;
}

.productType {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 100px;
  margin: 20px 0px;
  scroll-margin: 100px;
}

.productText {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: space-between;
  width: 100%;
  text-wrap: wrap;
}

.productText .productDescription {
  font-family: var(--text-font);
  font-weight: 300;
  font-size: var(--font-size-subtext);
  margin: 20px 0px 10px 0px;
  user-select: text !important;
}

.productFeatures {
  font-family: var(--text-font);
  font-weight: 300;
  font-size: 0.75rem;
  color: gray;
  list-style: none;
}

.productFeatures li {
  user-select: text !important;
  margin: 5px 0px;
  letter-spacing: 0.8px;
}

.productImg {
  width: 100%;
  max-width: 250px;
  aspect-ratio: 1/1;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.productImg:hover {
  transform: scale(1.05);
}

@media only screen and (max-width: 850px) {
  .productType {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    align-items: center;
    gap: 20px;
  }

  .productImg {
    width: 100%;
    max-width: 300px;
    height: auto;
  }
}

/* Page Titles */

#Home {
  background-image: linear-gradient(
      to right,
      rgba(0, 0, 0, 0.9),
      rgba(28, 28, 28, 0.4)
    ),
    url("public/Images/TitleHome.webp");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  min-height: 100vh !important;
}

@media screen and (max-width: 1000px) {
  #Home {
    background-attachment: scroll;
  }
}

#Towels {
  background-image: linear-gradient(
      to right,
      rgba(0, 0, 0, 0.8),
      rgba(28, 28, 28, 0.1)
    ),
    url("public/Images/TitleTowel.jpeg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  min-height: 100vh !important;
}

@media screen and (max-width: 1000px) {
  #Towels {
    background-attachment: scroll;
  }
}

/* Linens Page */

#Linens {
  background-image: linear-gradient(
      to right,
      rgba(0, 0, 0, 0.8),
      rgba(28, 28, 28, 0.1)
    ),
    url("public/Images/TitleLinens.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  min-height: 100vh !important;
}

@media screen and (max-width: 1000px) {
  #Linens {
    background-attachment: scroll;
  }
}

#GuestAmenities {
  background-image: linear-gradient(
      to right,
      rgba(0, 0, 0, 0.8),
      rgba(28, 28, 28, 0.1)
    ),
    url("public/Images/TitleSlippers.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  min-height: 100vh !important;
}

@media screen and (max-width: 1000px) {
  #GuestAmenities {
    background-attachment: scroll;
  }
}
