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

* {
  margin: 0;
  padding: 0;
  font: inherit;
}

img,
picture,
svg,
video {
  display: block;
  max-width: 100%;
}

svg {
  flex-shrink: 0;
}

:root {
  --primary-color: #F7F6F4;
  --secondary-color: #B54D36;
  --text-color: #343434;
  --font-family: "Montserrat", sans-serif;
  --background-color: #343434;
}
html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: var(--font-family);
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.25rem);
  line-height: 1.4;
  font-weight: 400;
  background-color: var(--background-color);
}

h1 {
  font-size: clamp(1.75rem, 1.25rem + 2vw, 2.25rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h2 {
  font-size: clamp(1.375rem, 1rem + 1.5vw, 1.75rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h3 {
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.25rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

a {
  text-decoration: none;
}

/*-- Buttons --*/

.button-group {
  display: flex;
  flex-direction: row;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.button {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .5rem 1rem;
  width: fit-content;
  text-wrap: balance;

  color: var(--primary-color);
  background-color: var(--secondary-color);
  
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-decoration: none;
}
.button:hover {
  background-color: var(--background-color);
}

.button svg {
  display: block;
  flex-shrink: 0;
  fill: currentColor;
}

.button--light {
  color: var(--text-color);
  background-color: var(--primary-color);
}

.button--light:hover {
  color: var(--primary-color);
  background-color: var(--secondary-color);
}

.button--light svg {
  fill: #B54D36;
}
.button--light:hover svg {
  fill: var(--primary-color);
}


.wrapper {
  position: relative;
  max-width: 1280px;
  margin-inline: auto;
  padding: 0 1.5rem;
}
.inset {
  padding-inline: clamp(0rem, -6rem + 24vw, 6rem);
}
.wrapper.inset {
  padding-inline: clamp(1.5rem, -3rem + 18vw, 6rem);
}

.bg-white {
  color: var(--text-color);
  background-color: var(--primary-color);
}

/*-- Header --*/

.hero {
  position: relative;
  min-height: 75vh;
}

.hero__image {
  position: absolute;
  z-index: -1;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__grid {
  display: grid;
  align-items: center;
  grid-template-rows: 5rem 2fr 1fr;
  grid-template-columns: 1fr;
  height: 100%;
  min-height: inherit;
  padding-bottom: 3.5rem;
}

.hero__grid h3 {
  color: var(--primary-color);
  max-width: 480px;
  font-size: 1.75rem;
  font-weight: 600;
}

.navbar {
  grid-row: 1/2;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;

  color: var(--primary-color);
}

.nav {
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
}

.navlinks {
  display: flex;
  justify-content: end;
  align-items: center;
  gap: .5rem 1.5rem;
  flex-wrap: wrap;
}

.navlinks a {
  font-size: 1rem;
  color: var(--primary-color);
}

.navlinks a:hover {
  color: var(--secondary-color);
  text-underline-offset: .375em;
  text-decoration: underline;
}

.navlinks li {
  list-style: none;
}

.hamburger {
  display: none;
}

.bar {
  display: block;
  width: 1.5rem;
  height: 3px;
  margin: 5px auto;
  transition: all 0.3s ease-in-out;
  background-color: var(--primary-color);
}

.hero__content {
  grid-row: 3/4;

  display: flex;
  gap: 1.5rem 4rem;
  flex-wrap: wrap;
  justify-content: space-between;

  color: var(--primary-color);
}

.hero__text {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 640px;
}

.logo svg {
  width: 100%;
  flex-shrink: 1;
  min-width: 200px;
  max-width: 65vw;
}


/*intro*/

.intro {
  display: flex;
  flex-direction: column;
  padding: 6rem 0;
  max-width: 640px;
  gap: 1.5rem;
}

.shape-divider {
  width: 100%;
  height: 100%;
  transform: translate(0, 1px);
  margin-top: clamp(-1rem, 0.5rem - 6vw, -4rem);
}

/*-- Features --*/
.features {
  padding: 0;
}

.feature {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  margin: 6rem 0;
  color: var(--primary-color);
  gap: 3.5rem;
}
.feature--left {
  padding-left: 6rem;
}
.feature--right {
  padding-right: 6rem;
}

.feature__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3.5rem;
  max-width: 640px;
}

.feature__text h2 {
  margin-bottom: 1.5rem;
}

.feature__image {
  min-width: 320px;
}
.feature__image img {
  width: 100%;
  height: auto;
}

.items {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
  max-width: 640px;
  list-style: none;
}

.item {
  padding-bottom: 0.5rem;
  border-bottom: solid 1px var(--primary-color);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}


.cta {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}


/*--contact--*/

.contact {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;

  padding-block: 6rem;
  color: var(--text-color);
  background-color: var(--primary-color);
}

.contact__left {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 640px;
}

.contact__right {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: right;
}


/*-- Footer --*/
.footer {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 0;
  color: var(--primary-color);
  font-size: .875rem;
}

.footer__column {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  align-items: baseline;
}

.footer .divider {
  font-size: .875rem;
  color: white;
  opacity: .48;
}

.poweredby {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: .25rem;
  color: var(--primary-color);
}



@media (max-width:1040px) {
  .hero__grid {
    grid-template-rows: 5rem 1fr 1fr;
  }

  .contact {
    flex-direction: column;
    align-items: flex-start;
  }

  .contact__right {
    text-align: left;
  }
}


@media (max-width: 800px) {
  .nav {
    flex-direction: row;
  }

  .navlinks {
    display: none;
    opacity: 0;

    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    padding: 4rem 1.5rem 2.5rem;
    flex-direction: column;
    gap: 1.5rem;
    color: var(--primary-color);
    background-color: var(--background-color);
    
    transition: all 0.3s ease;
    transition-behavior: allow-discrete;
    
  }
  
  .navlinks.active {
    opacity: 1;
    display: flex;

    @starting-style {
      opacity: 0;
    }
  }

  .hamburger {
    display: block;
    cursor: pointer;
  }

  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active .bar:nth-child(1) {
    transform: translateY(0.5rem) rotate(45deg);
  }

  .hamburger.active .bar:nth-child(3) {
    transform: translateY(-0.5rem) rotate(-45deg);
  }

  .feature {
    gap: 5rem;
    flex-direction: column;
    padding: 0;
  }

  .feature__content {
    max-width: 100%;
    gap: 2.5rem;
    padding-inline: 1.5rem;
  }
  .feature__image {
    width: 100%;
    max-width: 100%;
  }

  .contact {
    padding: 5rem 0;
    flex-direction: column;
  }

  .footer {
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
    text-align: center;
  }

  .logo-icon-dark {
    display: none;
  }
}



@media (max-width: 480px) {
  .hero__content {
    gap: 0.5rem;
  }
  
  .hero__content h3 {
    font-size: 1.5rem;
  }
}