/* ==================================================
  Variables
================================================== */
:root {
  /* Colors */
  --clr-white: hsl(0, 0%, 100%);
  --clr-champagne: hsl(39, 84%, 88%);
  --clr-old-copper: hsl(31, 42%, 33%);
  --clr-black-marlin: hsl(26, 39%, 16%);

  /* Fonts */
  --ff-serif: "DM Serif Text", serif;
  --ff-sans-serif: "Lato", sans-serif;
}

/* ==================================================
  General Styles
================================================== */
*, ::before, ::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 100%;
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
  background-color: var(--clr-champagne);
  color: var(--clr-black-marlin);
  font-family: var(--ff-sans-serif);
  font-size: 1rem;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--ff-serif);
}

h1 {
  margin-block-end: .16em;
  font-size: clamp(3.813rem, 3.375rem + 2.188vw, 6rem);
  line-height: 1.2;
  letter-spacing: 8px;
}

h2 {
  color: var(--clr-old-copper);
  font-size: clamp(2.5rem, 2.083rem + 0.868vw, 3.125rem);
  margin-block-end: .5em;
}

h3 {
  font-size: 2.438rem;
}

h4 {
  font-size: 1.938rem;
}

h5 {
  font-size: 1.563rem;
}

h6 {
  font-size: 1.25rem;
}

p {
  font-size: clamp(1rem, 0.833rem + 0.347vw, 1.25rem);
  line-height: 1.7;
}

a {
  color: inherit;
  text-decoration: none;
  line-height: 1.7;
}

ul {
  list-style: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

address {
  font-style: normal;
}

.grid {
  display: grid;
  grid-template-columns: .625rem repeat(2, 1fr) .625rem;
  gap: .625rem;
}

.section {
  padding-block: 6.25rem;
  align-items: center;
}

.section-text {
  grid-column: 2 / span 2;
}

.section-image {
  aspect-ratio: 1 / 1;
  margin-top: 1.25rem;
}

.section-image--left, .section-image--right {
  grid-column: 2 / span 2;
}

.section-text--left, .section-text--right {
  grid-column: 2 / span 2;
}

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

/* ==================================================
  Preloader
================================================== */
.preloader {
  display: flex;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 14;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
}

.preloader__bar {
  width: 25vw;
  height: 100%;
  background-color: var(--clr-champagne);
}

.preloader__logo {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 15;
  translate: -50% -50%;
  color: var(--clr-old-copper);
  font-family: var(--ff-serif);
  font-size: clamp(3.813rem, 3.375rem + 2.188vw, 6rem);
  letter-spacing: 8px;
}

/* ==================================================
  Hero
================================================== */
.hero {
  position: relative;
  width: 100vw;
  height: 100vh;
  background-color: var(--clr-black-marlin);
}

.hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  grid-column: 2 / span 2;
  align-self: center;
  text-align: center;
}

.hero__title, .hero__description {
  color: var(--clr-white);
  font-family: var(--ff-serif);
}

.hero__description {
  font-size: clamp(1rem, 0.813rem + 0.938vw, 1.938rem);
  max-width: 19em;
  line-height: 1.5;
}

.scroll-icon-animation {
  position: absolute;
  bottom: 48px;
  left: 50%;
  z-index: 2;
  translate: -50% 0;
  width: 30px;
  height: 48px;
  border: 1px solid var(--clr-white);
  border-radius: 12px;
  opacity: 0;
}

.scroll-icon-animation::after {
  content: "";
  position: absolute;
  top: 10px;
  left: 50%;
  translate: -50% 0;
  width: 8px;
  height: 12px;
  background-color: var(--clr-white);
  border-radius: 4px;
  animation: scrollWheel 2s infinite ease-in-out;
}

.hero__images {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  opacity: .7;
}

.hero__image {
  object-fit: cover;
  width: 100vw;
  height: 100vh;
}

/* ==================================================
  Navbar
================================================== */
.navbar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;
  z-index: 10;
  align-items: center;
  background: linear-gradient(to bottom, hsla(26, 39%, 16%, 50%), hsla(26, 39%, 16%, 0%))
}

.navbar__logo {
  grid-column: 2 / span 1;
  grid-row: 1 / -1;
  color: var(--clr-white);
  font-size: clamp(2.25rem, 2.087rem + 0.813vw, 3.063rem);
  font-family: var(--ff-serif);
}

.navbar__navigation {
  display: none;
}

.mobile-nav-button {
  justify-self: end;
  grid-column: 3 / -2;
  grid-row: 1 / -1;
  width: 3.75rem;
  height: 3.75rem;
  background: none;
  border: none;
}

.mobile-nav-button__icon {
  color: var(--clr-white);
  font-size: 2.5rem;
}

.navbar-fixed {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: hsla(26, 39%, 16%, 80%);
  animation: slideDown .5s ease-in-out;
  backdrop-filter: blur(20px);
}

/* ==================================================
  Mobile Menu
================================================== */
.mobile-nav {
  display: grid;
  grid-template-columns: .625rem 1fr .625rem;
  grid-template-rows: 9.375rem 1fr 9.375rem;
  position: fixed;
  inset: 0;
  z-index: 13;
  background-color: var(--clr-champagne);
  clip-path: inset(0 0 100% 0);
  pointer-events: none;
}

.mobile-nav--is-open {
  pointer-events: all;
}

.close-nav-button {
  grid-column: 2 / -2;
  grid-row: 1 / 2;
  align-self: center;
  justify-self: end;
  margin-right: 2rem;
  width: 3.75rem;
  height: 3.75rem;
  background: none;
  color: var(--clr-black-marlin);
  border: none;
  opacity: 0;
}

.close-nav-button__icon {
  font-size: 3.75rem;
}

.mobile-nav__list {
  grid-column: 2 / -2;
  grid-row: 2 / 3;
  align-self: center;
  justify-self: center;
  text-align: center;
}

.mobile-nav__item {
  overflow: hidden;
}

.mobile-nav__link {
  display: block;
  font-family: var(--ff-serif);
  font-size: 2.5rem;
  line-height: 1.2;
}

.mobile-nav__contact {
  grid-column: 2 / -2;
  grid-row: 3 / 4;
  align-self: center;
  justify-self: center;
  opacity: 0;
}

.mobile-nav-contact__item {
  display: flex;
  align-items: center;
}

.mobile-nav-contact__icon {
  margin-right: .5em;
  color: var(--clr-old-copper);
  font-size: 1.25rem;  
}

.mobile-nav-contact__link {
  font-size: 1.25rem;
}
/* ==================================================
  Image Gallery Carousel
================================================== */
.image-carousel__item {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.image-carousel__item::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  border: 3px solid var(--clr-white);
  transition: inset .5s ease-in-out, opacity .5s ease-in-out;
  pointer-events: none;
}

.image-carousel__item:hover::after {
  inset: 5%;
  opacity: 1;
}


.image-carousel__zoom-icon {
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  z-index: 1;
  font-size: 6rem;
  color: var(--clr-white);
  opacity: 0;
  transition: opacity .5s .2s ease-in-out;
  pointer-events: none;
}

.image-carousel__item:hover .image-carousel__zoom-icon {
  opacity: 1;
}

.image-carousel__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  scale: 1;
  transition: scale .5s ease-in-out;
}

.image-carousel__item:hover img {
  scale: 1.2;
}

/* ==================================================
  O Nas
================================================== */
.about-image-1, .about-image-2 {
  grid-column: 2 / span 2;
}

/* ==================================================
  Footer
================================================== */
.footer {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 4.375rem;
  background-color: var(--clr-black-marlin);
  color: var(--clr-champagne);
  z-index: -1;
}

/* ==================================================
  Contact
================================================== */
.contact a, .contact p {
  font-size: clamp(1.25rem, 1.175rem + 0.375vw, 1.625rem);
}

.contact__logo {
  font-size: clamp(3.813rem, 3.375rem + 2.188vw, 6rem);
}

.contact__logo, .contact__item--1, .contact__item--2 {
  grid-column: 2 / span 2;
  margin-bottom: 1.25rem;
}

.contact__link-wrapper {
  display: flex;
  align-items: center;
  gap: .38em;
}

.contact__icon {
  color: var(--clr-old-copper);
  font-size: clamp(1.25rem, 1.175rem + 0.375vw, 1.625rem);
}

/* ==================================================
  Media Queries
================================================== */
@media screen and (min-width: 48em) {
  /* General Styles */
  .section-image {
    margin-top: 0;
  }

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

  .section-image--left {
    grid-column: 2 / span 5;
    grid-row: 1 / -1;
  }

  .section-image--right {
    grid-column: 9 / span 5;
    grid-row: 1 / -1;
  }

  .section-text--left {
    grid-column: 2 / span 6;
    grid-row: 1 / -1;
  }

  .section-text--right {
    grid-column: 8 / span 6;
    grid-row: 1 / -1;
  }

  .grid {
    grid-template-columns: .625rem repeat(12, 1fr) .625rem;
  }

  /* Navbar */
  .navbar__navigation {
    display: block;
    grid-column: 2 / span 12;
    grid-row: 1 / -1;
    justify-self: end;
  }

  .navbar__list {
    display: flex;
  }

  .navbar__link {
    position: relative;
    display: block;
    padding: .5em 1em;
    color: var(--clr-white);
    font-family: var(--ff-sans-serif);
    font-size: clamp(1.125rem, 1.042rem + 0.174vw, 1.25rem);
  }

  .navbar__link::after {
    content: "";
    position: absolute;
    left: 10%;
    right: 10%;
    bottom: 0;
    width: 80%;
    height: 1px;
    scale: 0 1;
    transition: scale .5s ease-in-out;
    transform-origin: left;
    background-color: var(--clr-white);
  }

  .navbar__link:hover::after {
    scale: 1 1;
  }

  .mobile-nav-button {
    display: none;
  }

  /* Mobile Menu */
  .mobile-nav {
    display: none;
  }

  .mobile-nav-overlay--1, .mobile-nav-overlay--2 {
    display: none;
  }

  /* Hero */
  .hero__content {
    grid-column: 2 / span 12;
  }

  /* O Nas */
  .about-image-1 {
    display: none;
  }
  
  .about-text {
    grid-column: 2 / span 6;
    grid-row: 1 / -1;
    align-self: center;
  }
  
  .about-image-2 {
    grid-column: 8 / span 6;
    grid-row: 1 / -1;
  }

  /* Contact */
  .contact__logo, .contact__item--1, .contact__item--2 {
    grid-column: 6 / span 5;
  }

@media screen and (min-width: 75em) {
  /* Geneal Styles */
  .section {
    padding-block: 12.5rem;
  }

  .grid {
    grid-template-columns: 1.25rem repeat(12, 1fr) 1.25rem;
    gap: 1.25rem;
  }

  /* Contact */
  .contact {
    align-items: start;
  }

  .contact__logo {
    grid-column: 2 / span 4;
  }

  .contact__item--1 {
    grid-column: 6 / span 4;
  }

  .contact__item--2 {
    grid-column: 10 / span 4;
  }

  /* Hero */
  .hero__content {
    grid-column: 2 / span 12;
  }

  /* Navbar */
  .navbar {
    height: 150px;
  }

  .navbar__navigation {
    grid-column: 7 / span 7;
  }

  .navbar-fixed {
    height: 6.25rem;
  }

  /* O Nas */
  .about-image-1 {
    display: block;
    grid-column: 2 / span 4;
    grid-row: 1 / -1;
  }
  
  .about-text {
    grid-column: 6 / span 4;
    grid-row: 1 / -1;
    align-self: center;
  }
  
  .about-image-2 {
    grid-column: 10 / span 4;
    grid-row: 1 / -1;
  }
}

@media screen and (min-width: 90em) {
  /* General Styles */
  .grid {
    grid-template-columns: 6.25rem repeat(12, 1fr) 6.25rem;
  }
}

/* ==================================================
  Keyframes
================================================== */
@keyframes scrollWheel {
  to {
    translate: -50% 12px;
    opacity: 0;
  }
}

@keyframes slideDown {
  from {
    translate: 0 -100%;
  }
  to {
    translate: 0 0;
  }
}