/* Box Model Hack */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 62.5%; /* 1rem = 10px, set once on the root, not on every element */
}

body {
  margin: 0;
  padding: 0;
  line-height: 1.5;
  letter-spacing: 0.02em;
  font-family: "Nunito", sans-serif;
  overflow-x: hidden;
}

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

/* Clear fix hack */
.clearfix:after {
  content: ".";
  display: block;
  clear: both;
  visibility: hidden;
  line-height: 0;
  height: 0;
}

.clear {
  clear: both;
}

/******************************************
/* BASE STYLES
/*******************************************/

header, footer {
  background: rgb(0, 49, 105);
  padding: 1.5rem 5%;
}
header section > h4,
footer section > h4 {
  padding-bottom: 2%;
}

h1, .force a {
  color: white;
}
#why {
  color: orange;
}

body > section {
  background: rgb(0, 49, 105);
  padding: 4rem 5%;
}
body > section h2 {
  color: orange;
  padding-bottom: 1rem;
  font-weight: 400;
  font-size: clamp(1.4rem, 1rem + 1.2vw, 1.8rem);
  letter-spacing: 0.15em;
}
body > section h3 {
  color: black;
  font-weight: bold;
  font-family: "Lilita One", sans-serif;
  padding-bottom: 0.8rem;
  font-size: clamp(1.8rem, 1.4rem + 1.5vw, 2.4rem);
}
body > section h3 + p {
  text-align: left;
  padding-bottom: 1.5rem;
  max-width: 60ch;
  width: 100%;
}
body > section h4 {
  color: rgb(2, 42, 94);
  font-size: 1.6rem;
  padding-bottom: 2%;
}

.miniSection {
  background: rgb(213, 94, 30);
  padding: 1rem 5%;
}
.miniSection > p {
  text-align: center;
  font-weight: bold;
  color: white;
  font-size: 1.3rem;
}

.firstBigSection h3 {
  color: white;
  font-weight: bold;
  font-size: clamp(2.4rem, 1.8rem + 3vw, 4.8rem);
  line-height: 1.15;
  text-transform: capitalize;
}
.firstBigSection p {
  color: white;
  font-size: 1.5rem;
}

.secondBigSection, .fourthBigSection {
  background: rgb(225, 224, 216);
}

.SecondBigSectionContainerBox ul {
  list-style-type: none;
}
.SecondBigSectionContainerBox li {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 0.6rem 0;
}
.SecondBigSectionContainerBox li p {
  display: inline-block;
  font-size: 1.4rem;
}
.SecondBigSectionContainerBox .item {
  text-align: left;
  flex: 1 1 auto;
}
.SecondBigSectionContainerBox .price {
  text-align: right;
  white-space: nowrap;
  color: rgb(187, 51, 1);
  font-weight: bold;
}

.fourthBigSectionContainerBox a {
  display: block;
  word-break: break-word;
}

/******************************************
/* COMPONENTS
/*******************************************/
.button1, .button2, .button3 {
  display: inline-block;
  border: 1px solid black;
  border-radius: 50px;
  padding: 1rem 2rem;
  color: white;
  text-decoration: none;
  margin: 0;
  text-align: center;
  font-size: 1.4rem;
  white-space: nowrap;
}
.button1, .button3 {
  background: rgb(212, 89, 0);
  border-color: rgb(212, 89, 0);
}
.button2 {
  border-color: white;
}

.SecondBigSectionContainerBox {
  border: 1px solid black;
  border-top: 5px solid black;
  border-radius: 5px;
  padding: 2rem;
  width: 100%;
}
.rightMenu {
  border-top: 5px solid rgb(187, 51, 1);
}
.fourthBigSectionContainerBox {
  border: 1px solid black;
  border-radius: 5px;
  padding: 2rem;
  width: 100%;
}
.thirdBigSectionContainer li {
  list-style-type: none;
  border-radius: 5px;
  border: 1px solid black;
  padding: 2rem;
  width: 100%;
}
.thirdBigSectionContainer li h5 {
  color: white;
  margin-bottom: 1rem;
}
.thirdBigSectionContainer li p {
  color: white;
  font-size: 1.4rem;
}
.thirdBigSectionContainer li h5 + p {
  font-weight: bold;
  padding-bottom: 1rem;
}
.thirdBigSectionContainer li p + p {
  font-weight: 300;
}

footer {
  color: rgb(220, 214, 214);
}
footer h4 {
  color: white;
  font-weight: bold;
  font-size: 1.6rem;
}
footer p, footer small {
  font-size: 1.3rem;
}
footer a {
  color: white;
  font-size: 1.3rem;
}
footer section {
  width: 100%;
}

.thirdBigSection h3 {
  color: white;
}
.thirdBigSection h5 {
  text-align: center;
  border: 1px solid black;
  background-color: rgb(248, 107, 0);
  border-radius: 50%;
  width: 3rem;
  height: 3rem;
  line-height: 3rem;
  color: white;
  font-weight: bold;
}

/******************************************
/* NAV TOGGLE (mobile menu button)
/*******************************************/
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 2.8rem;
  height: 2.2rem;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 20;
}
.nav-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background: white;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle.is-active span:nth-child(1) {
  transform: translateY(9.5px) rotate(45deg);
}
.nav-toggle.is-active span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.is-active span:nth-child(3) {
  transform: translateY(-9.5px) rotate(-45deg);
}

/******************************************
/* LAYOUT
/*******************************************/

header > section, footer > section.footerContainer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
  gap: 1.5rem;
}

header nav ul {
  display: flex;
  list-style-type: none;
  gap: 2rem;
  align-items: center;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
}
header nav ul li {
  flex-basis: auto;
}
header nav ul li a {
  text-decoration: none;
  color: white;
  font-size: 1.4rem;
  white-space: nowrap;
}

.firstBigSection section {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
  margin-bottom: 1.5rem;
}
.firstBigSection {
  background-image: linear-gradient(90deg, rgba(36, 52, 60, 0.75), rgba(36, 52, 60, 0.35)), url("LobsterTaco.jpg");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.firstBigSection h2 {
  color: orange;
}

.SecondBigSectionContainer,
.fourthBigSectionContainer,
.thirdBigSectionContainer,
.footerContainer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
  width: 100%;
}
.SecondBigSectionContainer > *,
.fourthBigSectionContainer > *,
.footerContainer > * {
  flex: 1 1 260px;
}
.thirdBigSectionContainer {
  padding: 0;
  list-style: none;
}
.thirdBigSectionContainer > li {
  flex: 1 1 220px;
}

.secondBigSection section + p {
  text-align: center;
  padding-top: 2rem;
  font-size: 1.4rem;
}

.baseFooter {
  padding: 1.5rem 5%;
  border-top: 1px solid gray;
  margin-top: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.baseFooter small,
.baseFooter a {
  font-size: 1.2rem;
}

/******************************************
/* RESPONSIVE BREAKPOINTS
/*******************************************/

/* Tablet and below: stack the three-column grids */
@media (max-width: 900px) {
  .SecondBigSectionContainer,
  .fourthBigSectionContainer,
  .thirdBigSectionContainer,
  .footerContainer {
    flex-direction: column;
  }
  .firstBigSection {
    min-height: 50vh;
  }
}

/* Mobile nav: collapse into a hamburger-triggered dropdown */
@media (max-width: 860px) {
  .nav-toggle {
    display: flex;
  }
  header > section {
    position: relative;
  }
  header nav {
    position: absolute;
    top: calc(100% + 1rem);
    right: 0;
    left: 0;
    background: rgb(0, 49, 105);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 1.5rem;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    z-index: 10;
  }
  header nav.is-open {
    max-height: 40rem;
    opacity: 1;
    pointer-events: auto;
  }
  header nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.2rem;
  }
  header nav ul li {
    width: 100%;
  }
  header nav ul li a {
    display: block;
    padding: 0.5rem 0;
  }
  header nav ul li a.button3 {
    display: inline-block;
    padding: 1rem 2rem;
  }
}

@media (min-width: 700px) {
  h1 {
    font-size: 2.2rem;
  }
  #why {
    font-size: 2.2rem;
  }
}

@media (max-width: 700px) {
  h1 {
    font-size: 1.6rem;
  }
  #why {
    font-size: 1.6rem;
  }
  .force a {
    font-size: 1.3rem;
  }
  body > section {
    padding: 3rem 6%;
  }
  .SecondBigSectionContainerBox,
  .fourthBigSectionContainerBox {
    padding: 1.5rem;
  }
  .firstBigSection section {
    flex-direction: column;
    width: 100%;
  }
  .firstBigSection section a {
    width: 100%;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 56%;
  }
  h1 {
    font-size: 1.4rem;
  }
  #why {
    font-size: 1.4rem;
  }
  .firstBigSection h3 {
    font-size: 2.4rem;
  }
  body > section {
    padding: 2.5rem 6%;
  }
  .baseFooter {
    flex-direction: column;
    text-align: center;
  }
}
