/* Font import */

@font-face {
  font-family: "Publica Sans";
  src: url("../fonts/PublicaSans-Thin.otf") format("opentype");
  font-weight: 100;
  font-style: normal;
}

@font-face {
  font-family: "Publica Sans";
  src: url("../fonts/PublicaSans-UltraLight.otf") format("opentype");
  font-weight: 200;
  font-style: normal;
}

@font-face {
  font-family: "Publica Sans";
  src: url("../fonts/PublicaSans-ExtraLight.otf") format("opentype");
  font-weight: 250;
  font-style: normal;
}

@font-face {
  font-family: "Publica Sans";
  src: url("../fonts/PublicaSans-Light.otf") format("opentype");
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: "Publica Sans";
  src: url("../fonts/PublicaSans-Medium.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: "Publica Sans";
  src: url("../fonts/PublicaSans-Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: "Publica Sans";
  src: url("../fonts/PublicaSans-ExtraBold.otf") format("opentype");
  font-weight: 800;
  font-style: normal;
}

@font-face {
  font-family: "Publica Sans";
  src: url("../fonts/PublicaSans-Black.otf") format("opentype");
  font-weight: 900;
  font-style: normal;
}

/* Global styles */

:root {
  --primary-color: #e08a33;
  --bg-img: url(/src/img/bg-sea.webp);
}

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

body * {
  font-family: "Publica Sans", sans-serif;
}

body {
  background-image: var(--bg-img);
  background-size: cover;
  height: 100dvh;
  background-position: center;
  background-repeat: no-repeat;
  width: 100%;
  color: white;
  font-size: 20px;
  padding: 2rem;
  backdrop-filter: blur(2px);
}

h1 {
  font-size: 3.5rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

h1, h2, h3, p, span, a {
  margin-block-start: 0;
  margin-block-end: 0;
}

p {
  font-weight: 300;
}

a.btn-primary {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 0.7rem 2rem;
  border-radius: 50px;
  font-size: 1rem;
  cursor: pointer;
  margin: 2rem 0;
  line-height: 1;
  text-decoration: none;
  transition: all 0.3s ease;
}

a.btn-primary:hover {
  background-color: #d4792d;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(224, 138, 51, 0.4);
}

.text-content {
  position: absolute;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: start;
}

.brand-names {
  position: absolute;
  bottom: 10px;
  left: 0;
  right: 0;
  padding: 0 3rem;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 2;
  font-weight: 200;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

/* Content grid */

.grid-container {
  display: grid;
  grid-template-rows: 65% 35%;
  grid-template-columns: repeat(3, 1fr);
  height: 100%;
  gap: 1rem;
}

.box-lg {
  grid-column: 1 / -1;
  grid-row: 1;
  background: url(/src/img/sail-on-the-llaut-divina-i.webp) 0 70% / cover no-repeat;
  border-radius: 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: start;
  padding: 7rem;
  text-align: center;
  position: relative;
}

.box-lg::after,
.box-sm::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 50px;
}

.box-sm {
  grid-row: 2;
  border-radius: 50px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  transition: all 0.3s ease;
  cursor: pointer;
}

.box-sm.left {
  background: url(/src/img/sail-on-the-llaut-divina-i-sea.webp) center/cover
    no-repeat;
}

.box-sm.center {
  background: url(/src/img/make-your-personalized-tour.webp) center/cover
    no-repeat;
}

.box-sm.right {
  background: url(/src/img/make-your-personalized-tour-girls.webp) center/cover
    no-repeat;
}

.box-sm .text-title {
  position: absolute;
  z-index: 2;
  color: white;
  font-size: 1.8rem;
  font-weight: 800;
  bottom: 5px;
  padding: 1rem;
  text-transform: uppercase;
  transition: transform 0.3s ease;
}

.box-sm:hover {
  transform: scale(1.02);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.box-sm:hover::after {
  background-color: rgba(0, 0, 0, 0.1);
}

.box-sm:hover .text-title {
  transform: translateY(-5px);
}

/* Mobile */

@media (max-width: 768px) {
  body {
    max-height: unset;
    height: fit-content;
  }

  h1 {
    font-size: 1.8rem;
  }

  .grid-container {
    grid-template-rows: 95svh 40svh 40svh 40svh;
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .box-lg {
    grid-column: 1;
    grid-row: 1;
    background-position: center;
    padding: 0;
    align-items: center
  }

  .box-sm {
    grid-column: 1;
  }

  .box-sm.left {
    grid-row: 2;
  }

  .box-sm.center {
    grid-row: 3;
  }

  .box-sm.right {
    grid-row: 4;
  }

  .text-content {
    align-items: center;
    padding: .5rem;
  }

  .brand-names {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    bottom: 1.5rem;
    font-size: 1.2rem;
  }
}
