/* 1. Use a more-intuitive box-sizing model */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* 2. Remove default margin */
*:not(dialog) {
  margin: 0;
}

/* 3. Enable keyword animations */
@media (prefers-reduced-motion: no-preference) {
  html {
    interpolate-size: allow-keywords;
  }
}

body {
  /* 4. Add accessible line-height */
  line-height: 1.5;
  /* 5. Improve text rendering */
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* 6. Improve media defaults */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

/* 7. Inherit fonts for form controls */
input,
button,
textarea,
select {
  font: inherit;
}

/* 8. Avoid text overflows */
p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

/* 9. Improve line wrapping */
p {
  text-wrap: pretty;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: serif;
  text-wrap: balance;
}

h1,
h2 {
  margin-block-end: 1.5rem;
}

.button-reset {
  all: unset;
}

@view-transition {
  navigation: auto;
}

/* Variables */
:root {
  --atlantic-view-blue: #020E24;
}

a {
  color: var(--atlantic-view-blue);
  text-decoration: none;
  font-weight: 500;

  &:hover {
    text-decoration: underline;
    text-underline-offset: 5px;
  }
}

/* body */
body {
  display: grid;
  grid-template-columns: 1fr min(1200px, 100%) 1fr;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
  font-family: "Montserrat", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
}

body>* {
  grid-column: 1 / -1;
}

/* Headings */
h1 {
  margin-block-end: 1rem;
}

h2 {
  font-size: 2.5rem;
  line-height: 1.2;
  max-width: 23ch;
  margin-inline: auto;
}

/* Header */
header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  color: #fff;
  z-index: 1;
}

.header-section {
  position: relative;
  grid-column: 2;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-inline: 2rem;
  justify-content: space-between;
}

header a {
  color: #fff;
}

.logo img {
  width: 100px;
  height: auto;
  padding-block: 1rem;

}

.header-nav ul {
  display: flex;
  gap: 1rem;
  list-style: none;
  padding-inline-start: 0;
  font-size: 1.125rem;
  font-weight: 500;
}

.desktop-nav {
  align-items: center;
}

.header-nav .desktop-nav {
  @media (max-width: 768px) {
    display: none;
  }
}

.header-nav__details {
  position: relative;
}

.header-nav__details>summary {
  list-style: none;
  cursor: pointer;
}

.header-nav__details>summary:after {
  content: "+";
  display: inline-block;
  margin-left: 0.3rem;
  font-size: 1rem;
}

.lang-switcher {
  display: inline-flex;
  gap: 0.4rem;
  padding: 0.4rem;
  border-radius: 999px;
  background: rgb(2 14 36);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.lang-switcher.lang-switcher a {
  color: #E6D6BC;
  text-decoration: none;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
}

.lang-switcher a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.2);
  font-weight: 700;
}

/* hamburger icon */
.hamburger__button {
  width: 44px;
  height: 44px;
  padding: 7px;
  margin: 0;
  cursor: pointer;

  @media (min-width: 769px) {
    display: none;
  }
}

.hamburger__icon {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  box-sizing: initial;
}

.hamburger__icon .ham {
  background-color: #fff;
  height: 5px;
  width: 100%;
  border-radius: 2px;
  transition: transform 0.2s cubic-bezier(0.77, -0.39, 0.32, 1.63);
}

.hamburger__button[aria-pressed="true"] .hamburger__icon .ham:first-child {
  transform-origin: center center;
  transform: translatey(19.5px) rotate(45deg);
}

.hamburger__button[aria-pressed="true"] .hamburger__icon .ham:nth-child(2) {
  transform: translatex(57px);
}

.hamburger__button[aria-pressed="true"] .hamburger__icon .ham:last-child {
  transform-origin: center center;
  transform: translatey(-19.5px) rotate(-45deg);
}

/* Menu Drawer */
.menu-drawer {
  overflow: hidden;
  position: absolute;
  right: 0;
  z-index: 1;

  @media (min-width: 769px) {
    display: none;
  }
}

.menu-drawer ul {
  background-color: #fff;
  color: #000;
  padding: 1rem;
}

.menu-drawer ul {
  flex-direction: column;
  padding-inline-end: 2rem;
  list-style: none;
  text-align: end;
  transition: transform 0.3s ease-in-out;
}

.menu-drawer ul a {
  color: #000
}

.hamburger__button[aria-pressed="false"]+.menu-drawer ul {
  transform: translatex(100%);
}

/* Footer */
footer {
  position: relative;
  display: grid;
  grid-template-columns: subgrid;
  background-color: #020E24;
  color: #E6D6BC;
}

footer .svg-wave {
  top: -48%;
  transform: scalex(-1);
}

.footer-container {
  grid-column: 2;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 2rem;
}

footer section:first-child {
  display: flex;
  gap: 1rem;

  @media (max-width: 768px) {
    text-align: center;
    flex-direction: column;
  }
}

.footer-text {
  flex: 2;
}

.logo-wrapper {
  display: flex;
  flex: 1;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

footer hr {
  border: none;
  border-top: 1px solid #000;
  margin-block: 2rem .5rem;
}

.copyright {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-socials {
  display: flex;
  gap: 0.5rem;
}

.footer-socials a img {
  width: 44px;
  height: 44px;
}

/* Button */
.button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: var(--atlantic-view-blue);
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  font-weight: bold;
}

/* list */
.unstyled-list {
  list-style: none;
  padding-inline-start: 0;
  margin-block-start: 0;
  margin-block-end: 0;
}

/* Main */
main {
  display: grid;
  grid-template-columns: subgrid;
}

.main-content-wrapper {
  grid-column: 1 / -1;
}

.homepage-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  max-height: 100vh;
}

.homepage-hero__title-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  max-width: 100%;
  padding: 2rem;
}

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

.homepage-hero .homepage-hero__title-container {
  color: #E6D6BC;
  display: flex;
  align-items: center;
  position: absolute;
  text-align: center;
  bottom: 0;
  left: 50%;
  transform: translatex(-50%);
}

.section-intro {
  display: flex;
  align-items: center;
  flex-direction: column-reverse;

  @media (min-width: 768px) {
    flex-direction: row;
  }
}

.intro-images {
  width: 100%;
  flex-shrink: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;

  @media (min-width: 768px) {
    width: 50%;
  }
}

.intro-images picture {
  width: 50%;
  aspect-ratio: 1/1;
  overflow: hidden;
}

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

.intro-text {
  padding-inline: 2rem;
  padding-block: 4rem;

  @media (min-width: 768px) {
    padding-block: 0;
  }
}

.intro-text blockquote {
  margin-block: 2rem .5rem;
  font-style: italic;
}

.intro-text blockquote+p {
  font-weight: 500;
}

.book-now {
  border-radius: 999px;
  margin-top: 1.5rem;
  border: 2px solid #E6D6BC;
  color: #E6D6BC;
}

.homepage-hero--two div {
  position: static;
}

.homepage-hero__title-container h1 {
  font-weight: 300;
  letter-spacing: 10px;
  font-size: 2.5rem;
  line-height: 1.2;
  text-align: center;
  margin: 0;
}

.homepage-hero__title-container h1,
.subtitle {
  font-family: "Montserrat", sans-serif;
}

.subtitle {
  font-size: 1rem;
  letter-spacing: 5px;
}

.line-through {
  width: 50px;
  height: 0;
  border-bottom: 1px solid #fff;
  display: block;
  margin-inline: auto;
  margin-block-end: 1rem;
}

.line-through--last {
  margin-block: 1rem 0;
}

.homepage-hero__title-container p {
  text-align: center;
}

.homepage-hero--two {
  padding-block: 50px;
  background-color: #020E24;
  text-align: center;
}

.homepage-hero--two .tour-info-wrapper {
  padding-inline: 2rem;
  color: #fff;
}

.homepage-hero--two .tour-info {
  background-color: #fff;
  color: #000;
  border-radius: 20px;
  max-width: max-content;
  margin-inline: auto;
}

.homepage-hero--two .svg-wave:first-of-type {
  top: -1px;
  transform: rotate(180deg);
}

/* Homepage Info */
.homepage-info {
  padding-block: 50px;
  text-align: center;
  position: relative;
  color: #E6D6BC;
  background-color: #020E24;
}

.homepage-info__list,
.tour-info__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: start;
  align-items: center;
}

.homepage-info__list {
  flex-direction: row;
  flex-wrap: wrap;
  padding-inline: 2rem;

  @media screen and (min-width: 769px) {}
}

.tour-info__list {
  padding-block: 2rem;
  padding-inline: 1.5rem;
  align-items: start;
}

.homepage-info__list-item,
.tour-info__list-item {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.homepage-info__list-item {
  flex-direction: column;
  align-items: center;
  flex: 1 1 calc(209px + .5rem);
  padding-inline: .5rem;

  @media screen and (min-width: 1058px) {
    border-inline-end: .5px solid #E6D6BC;
  }
}

.homepage-info__list-item:last-child {
  border-inline-end: none;
}

.tour-info__list-item {
  align-items: center;
}

.homepage-info__list-item div {
  text-align: center;
}

:is(.homepage-info__list-item, .tour-info__list-item) svg {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.svg-wave {
  position: absolute;
  bottom: -8%;
}

.trail-info {
  margin-top: 2rem;
}

p+p {
  margin-top: 1rem;
}