/* Import Font */
@import url('https://fonts.googleapis.com/css2?family=Asset&family=Reem+Kufi+Fun:wght@400..700&family=Reem+Kufi:wght@400..700&family=Sue+Ellen+Francisco&family=Urbanist:ital,wght@0,100..900;1,100..900&display=swap');

/* #BASE CSS (Initital Setup)
---------------------------------
    #GLOBAL SETTINGS
        # GLOBAL VARIABLES
        # GLOBAL RESETS
        # GLOBAL COLORS
    #BASE CONTENT
        #TYPOGRAPHY
            #BODY
            #HEADINGS
            #PARAGRAPHS
            #LINKS
        #HELPERS
        #MEDIA
            #IMAGES
            #VIDEO
        #COMPONENTS
            #BUTTONS
    #BASE LAYOUT
        #CONTAINER
        #MEDIA QUERIES
        #GRID SYSTEM
    #BASE SITE
        #SITE STRUCTURE
            #HEADER
                # site-logo (LOGO)
            #SITE NAVIGATION
                # toggle-nav (Default for Small Screens)
            #FOOTER
            #SECTIONS
              #...
            #SUB PAGES
              #...
--------------------------------- */
/* ----------------------------- */
/* ----- GLOBAL STYLING -------- */
/* ----------------------------- */
/* ----- SET GLOBAL VARIABLES ----- */
:root {
  /* BRAND COLORS */
  --cruzin-blue: #D2ECEA;
  --cruzin-red: #e35555;
  --cruzin-beige: #FFF8EF;
  /* BASE COLORS */
  --color-body-background: var(--cruzin-beige);
  --color-text-body: rgba(0, 0, 0, 0.8);
  --color-text-headings: var(--cruzin-red);
  --color-links: var(--cruzin-red);
  --color-links-hover: salmon;
  /* BASE TYPOGRAPHY */
  --font-body: urbanist, system-ui, Helvetica, Arial, sans-serif;
  --font-headings: reem kufi, system-ui, Helvetica, Arial, sans-serif;
}

/* GLOBAL RESETS */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

html {
  scroll-behavior: smooth;
}

/* GLOBAL COLORS */
body {
  background-color: var(--color-body-background);
  color: var(--color-text-body);
}

h1, h2, h3, h4, h5, h6 {
  color: var(--color-text-headings);
}

a {
  color: var(--color-links);
}
a:hover {
  color: var(--color-links-hover);
}

/* ----- SET GLOBAL TYPOGRAPHY ----- */
body {
  font-family: var(--font-body);
  font-size: 100%;
  line-height: 1.4;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-headings);
  margin: 1em 0 0.25em 0;
  text-wrap: balance;
}
h1:first-child, h2:first-child, h3:first-child, h4:first-child, h5:first-child, h6:first-child {
  margin-top: 0.5em;
}

h1 {
  font-size: 3em;
  line-height: 1;
}

h2 {
  font-size: 2.25em;
  line-height: 1.1;
}

h3 {
  font-size: 1.5em;
  line-height: 1.2;
}

h4 {
  font-size: 1.3125em;
  line-height: 1.3;
}

h5 {
  font-size: 1.125em;
  line-height: 1.4;
}

h6 {
  font-size: 1em;
  line-height: 1.5;
}

p {
  margin: 0.5em 0;
  max-width: 65ch;
  text-wrap: pretty;
}

.text-centered {
  text-align: center;
}

p.text-centered,
.text-centered p {
  margin-inline: auto;
}

img + h1,
img + h2,
img + h3 {
  margin-block-start: 0.25em;
}

/* ----- #MEDIA -----  */
img {
  max-width: 100%;
  height: auto;
}

video {
  max-width: 100%;
  height: auto;
}

/* ----- #COMPONENTS -----  */
/* #BUTTONS */
button,
a.button {
  display: inline-block;
  background-color: var(--color-links);
  border: 1px solid var(--color-links);
  color: white;
  padding: 0.75em 1em;
  border-radius: 0.32em;
  margin-top: 0.5em;
  margin-bottom: 0.5em;
  cursor: pointer;
  text-decoration: none;
  font-size: inherit;
  font-family: inherit;
  line-height: 1;
}

button.alt,
a.button.alt {
  background-color: transparent;
  border: 1px solid var(--color-links);
  color: var(--color-links);
}

button:hover,
a.button:hover {
  background-color: var(--color-links-hover);
  color: #fff;
  border-color: var(--color-links-hover);
  text-decoration: none;
}

/* SITE-WIDE CONTAINER */
.container {
  max-width: 1100px;
  margin-inline: auto;
  padding-inline: 1em;
}

.container-narrow {
  max-width: 800px;
  margin-inline: auto;
  padding-inline: 1em;
}

/* SCALING TYPE */
body {
  font-size: 87.5%;
}

@media (min-width: 1050px) {
  body {
    font-size: 100%;
  }
}

@media (min-width: 1250px) {
  body {
    font-size: 112.5%;
  }
}

/* SEMANTIC GRID USING CSS FLEX BOX */
.row {
  --gridgap: 4%;
}

.row > * {
  margin-bottom: var(--gridgap);
}

@media (min-width: 768px) {
  .row {
    display: flex;
    gap: var(--gridgap);
  }

  .row > .one-whole {
    min-width: 100%;
  }

  .row > .one-half {
    min-width: calc(50% - var(--gridgap) / 2);
  }

  .row > .one-fourth {
    min-width: calc(25% - var(--gridgap) / 1.333);
  }

  .row > .one-third {
    min-width: calc(33.3333% - var(--gridgap) / 1.5);
  }

  .row > .two-thirds {
    min-width: calc(66.6666% - var(--gridgap) / 3);
  }

  .row > .three-fourths {
    min-width: calc(75% - var(--gridgap) / 4);
  }

  .row > * {
    flex-grow: 1;
  }

  .row > .centered {
    margin-inline: auto;
    flex-grow: 0;
  }
}

/* FOR DEMO PURPOSES ONLY */
.demo .row > * {
  padding: 1em;
  background: rgba(204, 204, 204, 0.7);
  color: rgba(51, 51, 51, 0.7);
  text-align: center;
}

.demo .row > * p {
  margin: 0;
  padding: 0 0.5em;
  max-width: none;
}

.demo {
  padding: 2em 0;
}

.demo:after {
  position: fixed;
  top: 0;
  left: 0;
  padding: 5px;
  text-align: center;
  width: 100%;
  content: "Small (less than 768px)";
  color: #fff;
  background: #993333;
}

@media (min-width: 768px) {
  body.demo:after {
    content: "Medium (768px - 1049px)";
    background: #bcb83d;
  }
}
@media (min-width: 1050px) {
  body.demo:after {
    content: "Large (1050px - 1249px)";
    background: #669933;
  }
}
@media (min-width: 1250px) {
  body.demo:after {
    content: "Extra Large (1250px +)";
    background: #0099cc;
  }
}

.demo .column p:last-child {
  margin-bottom: 0;
}

/* ----------------------------- */
/* ----- SITE STRUCTURE -------- */
/* ----------------------------- */

/* SITE HEADER */
.site-header {
  padding: 1em;
  text-align: center;
  border-bottom: 5px double var(--cruzin-red);

  @media (width >= 768px) {
    display: flex;
    align-items: center;
    gap: 2em;
  }
}

/* FOOTER */
.site-footer {
  padding: 1em;
  text-align: center;
  background-color: var(--cruzin-blue);
  border-top: 5px double var(--cruzin-red);

  @media (width >= 768px) {
    display: flex;
    align-items: center;
    gap: 2em;
  }
}

/* SITE LOGO */
.site-logo {
  flex: 0 0 auto;

  img {
    width: 70px;
    height: auto;
  }

  h1 {
    margin: 0;
    font-size: 1em;
    line-height: 1.4;
    font-family: asset;
  }

  a {
    text-decoration: none;
    padding: 0.5em 0;
    display: flex;
    align-items: center;
    color: var(--cruzin-red);
  }

  a:hover {
    color: var(--color-links-hover);
  }
}

/* SITE NAV */
.site-nav {
  flex: 1;
  font-family: var(--font-headings);
  font-weight: 800;

  ul {
    list-style: none;
    margin: 0;
    padding: 0;

    @media (width >= 768px) {
      display: flex;
      justify-content: center;
      align-items: center;
      gap: clamp(2em, 6vw, 6em);
    }
  }

  a {
    text-decoration: none;
    padding: 0.75em 1em;
    display: block;
    color: var(--cruzin-red);
  }

  a:hover {
    color: var(--color-links-hover);
  }
}

/* TOGGLE NAV */
.menu-button {
  display: none;
}

@media (width < 768px) {

  .toggle-nav {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;

    .site-logo {
      grid-column: 1;
      grid-row: 1;
      text-align: left;
    }

    .site-nav {
      grid-column: 1;
      grid-row: 1;
      text-align: right;

      ul {
        text-align: center;
        overflow: hidden;
        transition: all 0.5s ease-out;
        display: grid;
        grid-template-rows: 1fr;
        padding-top: 1em;
      }

      &[data-nav-state="closed"] ul {
        max-height: 0;
      }

      &[data-nav-state="open"] ul {
        max-height: 40svh;
      }
    }

    .menu-button {
      background-color: transparent;
      border: 1px solid var(--color-text-headings);
      color: var(--color-text-headings);
      padding: 0.5em;
      margin: 0;
      font-size: 1em;
      display: inline-block;
    }
  }
}

/* BURGER */
.menu-button.burger {
  padding: 0;
  border: none;
  font-size: 2em;
  background: none;

  span {
    position: absolute;
    top: -9999px;
    left: -9999px;
  }

  &::after {
    content: "=";
  }
}

/* SECTIONS */
section {
  padding-block: 4em;
}

/* SUB-SECTION STYLING */
.subsection-title {
  font-size: 1.5em;
  font-weight: 500;
  letter-spacing: 0;
  text-align: center;
}

.subsection-title::after {
  content: "";
  display: block;
  width: 50px;
  margin-inline: auto;
}

/* RECIPES SECTION STYLING */
#recipes {
  padding-inline: 1em;
  background-color: var(--cruzin-blue);
  padding-bottom: 8em;
  position: relative;
  overflow: hidden;
  mask: 
    linear-gradient(0,#0000 30px,#000 0),
    radial-gradient(30px,#000 calc(100% - 1px),#0000) bottom/55.5px 60px;

  .row {
    @media (width < 768px) {
      display: flex;
      flex-direction: column;
      align-items: center;
    }
  }

  h2 {
    padding-bottom: 1.5em;
    text-align: center;
  }

  .material-icons {
    color: var(--cruzin-red);
  }
}

.recipe-card {
  box-shadow: 0 6px 10px 0 rgba(0,0,0,0.2);
  background-color: white;
  max-width: 400px;
  padding: 1em;
  text-decoration: none;
  color: var(--color-text-body);
  display: block;

  img {
    width: 100%;
    height: auto;
  }
}

.recipe-card:hover {
  box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2);
  transform: scale(1.05); 
}

.recipe-description {
  margin: 0 0 0 1em;

  h3 {
    font-family: sue ellen francisco;
    color: black;
    font-weight: 700;
    font-size: 2em;
    margin-top: 0.5em;
  }

  .recipe-country {
    display: inline-block;
    background-color: var(--color-links);
    border: 1px solid var(--color-links);
    color: white;
    padding: 0em 1em;
    border-radius: 0.5em;
    margin-top: 1em;
    cursor: pointer;
    text-decoration: none;
    font-size: 12px;
    font-family: reem kufi;
    line-height: 1;
  }
}

.recipe-description {
  margin-left: 1em;
}

.recipe-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
} 

.comment-count {
  display: flex;
  align-items: center;
  gap: 0.25em;
  margin-right: 0.5em;
  margin-top: 1em;

  span {
    margin: 0;
    font-size: 0.9em;
    font-family: reem kufi;
    color: var(--cruzin-red);
  }
}

/* DESTINATION SECTION STYLING */
.destination {
  position: relative;
  overflow: hidden;

  .row {
    justify-content: center;
    align-items: center;
    gap: 0;
  }

  .row > .one-third {
    min-width: 0;
  }

  .subsection-title {
    padding: 2em;
  }

  .one-third {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-grow: 0;
    margin: 0;
  }

  img:not(.stamp) {
    width: 240px;
    height: auto;
  }

  a:hover {
    img {
      transform: scale(1.05); 
    }
  }

  ul {
    list-style: none;
    text-align: left;
    margin: 0;
    width: fit-content;
    padding: 0;
    margin-inline: auto;
  }
}

/* SKILL SECTION STYLING */
.skill {
  background-image: url('../img/cloud_background2.jpg');
  background-size: cover;
  background-position: center;
  position: relative;
  margin-top: 5em;
  padding: 5em 0 15em 0;

  .subsection-title {
    text-align: left;
    position: absolute;
    top: 2em;
    left: 1em;
    margin: 0;

    @media (width > 768) {
      top: 0;
    }
  }

  @media (width < 768px) {
    padding: 2em 1em 2em;
  }

  box-shadow: 0px 0px 10px 5px rgba(0,0,0,0.2);

  .container {
    position: relative;
    z-index: 2;
  }

  h2 {
    color: var(--cruzin-beige);
    margin: 0;
    text-align: left;
  }

  .subsection-title::after {
    margin-inline: 0;
  }

  .airplane {
    position: absolute;
    top: 50%;
    left: -10%;
    transform: translateY(-50%);
    width: 100%;
    z-index: 1;
  }
}

@media (min-width: 768px) {
  .skill .airplane {
    width: 85%;
    left: -5%;
  }

  form {
    width: fit-content;
    margin-inline: auto;
  }
}

.star-row {
  display: flex;
  gap: 0.5em;
  justify-content: flex-end;

  img {
    width: 8vw;
    min-width: 50px;
    max-width: 100px;
  }

  @media (width < 768px) {
    flex-direction: column;
    align-items: flex-end;

    img {
      width: 70px;
    }
  }

  a:hover {
    transform: scale(1.5);
  }
}

/* INGREDIENTS SECTION STYLING */
.ingredients {
  margin-top: 10em;
  position: relative;

  .subsection-title {
    padding-bottom: 2em;
  }

  .horizontal {
    height: 150px;
    width: auto;
    object-fit: contain;
  }

  .vertical {
    width: 200px;
    height: auto;
    object-fit: contain;
  }

  .meat {
    max-width: 110%;
    height: auto;
    align-self: end;
    padding-bottom: 1em;
  }

  img:hover {
    transform: scale(1.05);
    cursor: pointer;
  }
}

.ingredients::after {
  content: "";
  background-color: var(--cruzin-blue);
  box-shadow: 0px 0px 10px 5px rgba(0,0,0,0.2);
  position: absolute;
  top: 25%;
  width: 100%;
  height: 60%;
  z-index: -1;
}

.ingredients-grid {
  display: grid;
  grid-template-columns: 0.5fr 0.5fr 0.5fr;
  grid-template-rows: auto auto auto;
  margin-inline: auto;
  width: fit-content;
  gap: 1em;
  align-items: center;

  .ing-vegetables { grid-column: 1 / 3; grid-row: 1; }
  .ing-fruit      { grid-column: 3 / 4; grid-row: 1 / 3; align-self: start; }
  .ing-seafood    { grid-column: 1 / 2; grid-row: 2; }
  .ing-dairy      { grid-column: 2; grid-row: 2 / 3; }
  .ing-meat       { grid-column: 3; grid-row: 2; }
  .ing-carbs      { grid-column: 1 / 3; grid-row: 3; }
}

/* FIND YOUR RECIPE SECTION STYLING */
.find {
  position: relative;

  .subsection-title {
    text-align: center;
    padding-bottom: 2em;
  }

  img {
    width: auto;
    max-height: 500px;
    padding-right: 4em;
  }
}

.find::after {
  content: "";
  position: absolute;
  top: 58%;
  transform: translateY(-50%);
  right: 0;
  width: 90%;
  height: 25vw;
  background: linear-gradient(
    to bottom,
    var(--cruzin-red) 50%,
    var(--cruzin-beige) 50%
  );
  background-size: 100% calc(25vw / 3);
  z-index: -1;
}

.boarding a img {
  transition: transform 0.3s ease;
}

.boarding a:hover img {
  transform: scale(1.05);
}

/* ABOUT US SECTION STYLING */
#about {
  --about-padding: 2em;
  --about-image-size: 250px;
  position: relative;
  overflow: hidden;

  .row {
    --gridgap: 0;
  }

  .about-card {
    padding: 2em 2em 2em 0em;
    position: relative;
  }

  .about-card::after {
    content: "";
    background-color: #DEE5F1;
    position: absolute;
    top: 0;
    right: 0;
    left: auto;
    width: calc(100% - calc(var(--about-image-size) / 2) - var(--about-padding));
    height: 100%;
    box-shadow: 5px 10px 20px -10px rgba(0,0,0,0.2);
    z-index: -1;

    @media (width < 768px) {
      width: 100%;
    }
  }

  .subsection-title {
    text-align: left;
    font-size: 2em;
    font-weight: 200px;
    margin: 0 0;
  }

  .about-image {
    display: flex;
    align-items: center;

    @media (width < 768px) {
      justify-content: center;
    }
  }

  img:not(.stamp) {
    border-radius: 50%;
    aspect-ratio: 1;
    object-fit: cover;
    width: var(--about-image-size);
    height: var(--about-image-size);
    min-width: var(--about-image-size);
    flex-shrink: 0;
    border-color: var(--cruzin-beige);
    border-style: solid;
    border-width: 15px;
  }

  p {
    text-align: left;
    margin-inline: 0;
    font-size: 0.7em;
    max-width: none;
    letter-spacing: 0.1em;
  }

  .about-text {
    padding: 0em 1em 0em 2em;
    display: flex;
    flex-direction: column;
    justify-content: center;

    @media (width < 768px) {
      h2 {
        padding-top: 1em;
        text-align: center;
      }
      
      p {
        padding: 1em 1em 0 1em;
        text-align: center;
      }
    }
  }

  a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--cruzin-red);
    color: white;
    text-decoration: none;
    font-size: 0.75em;
    font-weight: 700;
  }

  a:hover {
    background-color: var(--color-links-hover);
    color: white;
  }
}

/* SUBMISSIONS SECTION STYLING */
#submissions {
  --submission-padding: 2em;
  --submission-image-size: 250px;
  position: relative;
  overflow: hidden;

  .row {
    --gridgap: 0;
  }

  .submissions-card {
    padding: var(--submission-padding);
    position: relative;
  }

  .submissions-card::after {
    content: "";
    background-color: #FCE8EF;
    position: absolute;
    top: 0;
    left: 0;
    width: calc(100% - calc(var(--submission-image-size) / 2) - var(--submission-padding));
    height: 100%;
    box-shadow: -10px 10px 20px -5px rgba(0,0,0,0.2);
    z-index: -1;

    @media (width < 768px) {
      width: 100%;
    }
  }

  .submissions-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .submissions-image {
    display: flex;
    align-items: center;

    @media (width < 768px) {
      padding-top: 2em;
    }
  }

  @media (width < 768px) {
    .submissions-image {
      justify-content: center;
    }
  }

  .subsection-title {
    text-align: center;
    font-size: 2em;
  }

  .subsection-title::after {
    margin-inline: auto;
  }

  .button {
    background-color: #99C17F;
    border-color: #99C17F;
    font-size: 1em;
    padding: 0.75em 1.5em;
    width: 80%;
    border-radius: 12px;
  }

  .button:hover {
    background-color: #c2eaa8;
    border-color: #c2eaa8;
  }

  h3 {
    color: white;
    font-weight: 400;
  }

  img:not(.stamp) {
    border-radius: 50%;
    object-fit: cover;
    width: var(--submission-image-size);
    height: var(--submission-image-size);
    max-width: var(--submission-image-size);
    flex-shrink: 0;
    border-color: var(--cruzin-beige);
    border-style: solid;
    border-width: 15px;
  }
}

/* ----------------------------- */
/* ----- STAMPS ---------------- */
/* ----------------------------- */

.stamp {
  position: absolute;
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
  width: 120px;
}

/* KEEP CARDS ABOVE STAMPS */
.recipe-card,
#about .about-card,
#submissions .submissions-card {
  position: relative;
  z-index: 1;
}

.destination .container {
  position: relative;
  z-index: 1;
}
