/* 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 */
/* CHANGE BOX-SIZING FOR ALL TO BORDER-BOX */
* {
  box-sizing: border-box;
}

/* REMOVE THE DEFAULT 8px MARGIN ON THE BODY */
body {
  margin: 0;
}

/* ENABLE NATIVE SMOOTH SCROLLING */
html {
  scroll-behavior: smooth;
}

/* GLOBAL COLORS */
body {
  /* SET THE COLOR OF THE MAIN BODY BACKGROUND */
  background-color: var(--color-body-background);
  /* SET THE COLOR OF THE MAIN BODY TEXT */
  color: var(--color-text-body);
}

h1, h2, h3, h4, h5, h6 {
  /* SET THE COLOR OF ALL HEADINGS */
  color: var(--color-text-headings);
}

a {
  /* SET THE COLOR OF ALL TEXT LINKS */
  color: var(--color-links);
}
a:hover {
  /* SET THE COLOR OF ALL HOVER STATES ON TEXT LINKS */
  color: var(--color-links-hover);
}

/* ----- SET GLOBAL TYPOGRAPHY ----- */
/* # GLOBAL BODY FONT SETTINGS */
body {
  /* SET THE DEFAUT FONT FAMILY FOR ALL MAIN BODY TEXT */
  font-family: var(--font-body);
  /* SET THE DEFAULT FONT SIZE ALL MAIN BODY TEXT */
  /* 100% = 16px */
  font-size: 100%;
  /* SET THE DEFAULT LEADING (LINE-HEIGHT) FOR ALL BODY TEXT */
  line-height: 1.4;
}

/* # GLOBAL HEADING SETTINGS */
h1, h2, h3, h4, h5, h6 {
  /* SET THE DEFAUT FONT FAMILY FOR ALL HEADINGS */
  font-family: var(--font-headings);
  /* SET THE DEFAUT MARGINS ALL HEADINGS */
  margin: 1em 0 0.25em 0;
  /* BALANCE ALL MULTI-LINE HEADINGS */
  text-wrap: balance;
  /* REDUCE TOP MARGIN IF FIRST CHILD */
}
h1:first-child, h2:first-child, h3:first-child, h4:first-child, h5:first-child, h6:first-child {
  margin-top: 0.5em;
}

/* SET THE DEFAULT TYPOGRAPHIC SCALE FOR ALL HEADINGS 
   (e.g. a "Traditional" Scale) */
h1 {
  /* 48px / 16px = 3em */
  font-size: 3em;
  line-height: 1;
}

h2 {
  /* 36px / 16px = 2.25em */
  font-size: 2.25em;
  line-height: 1.1;
}

h3 {
  /* 24px / 16px = 1.5em */
  font-size: 1.5em;
  line-height: 1.2;
}

h4 {
  /* 21px / 16px = 1.3125em */
  font-size: 1.3125em;
  line-height: 1.3;
}

h5 {
  /* 18px / 16px = 1.125em */
  font-size: 1.125em;
  line-height: 1.4;
}

h6 {
  /* 16px / 16px = 1em */
  font-size: 1em;
  line-height: 1.5;
}

/* # GLOBAL PARAGRAPH SETTINGS */
p {
  /* SET THE DEFAUT MARGINS ALL PARAGRAPHS */
  margin: 0.5em 0;
  /* SET THE NUMBER OF CHARACTERS PER LINE */
  max-width: 65ch;
  /* WIDOW FIXER */
  text-wrap: pretty;
}

/* TEXT CENTERING HELPER CLASS */
.text-centered {
  text-align: center;
}

/* CENTER PARAGRAPHS WITH THE TEXT-CENTERED CLASS */
p.text-centered,
.text-centered p {
  margin-inline: auto;
}

/* DECREASE HEADING TOP MARGIN WHEN FOLLOWING AN IMAGE */
img + h1,
img +h2,
img +h3 {
  margin-block-start: 0.25em;
}


/* ----- #MEDIA (Images, Videos, etc) -----  */
/* #IMAGES - MAKE ALL IMAGES RESPONSIVE BY DEFAULT */
img {
  max-width: 100%;
  height: auto;
}

/* #VIDEO - MAKE ALL IMAGES RESPONSIVE BY DEFAULT */
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 FROM SMALL (14px) TO LARGER (18px) ACROSS SCREEN SIZES */
/* DEFAULT / SMALL & MEDIUM SCREENS = 14px */
body {
  font-size: 87.5%;
}

/* MIDSIZE / LAPTOP SCREENS = 16px */
@media (min-width: 1050px) {
  body {
    font-size: 100%;
  }
}
/* LARGE / DESKTOP SCREENS = 18px */
@media (min-width: 1250px) {
  body {
    font-size: 112.5%;
  }
}
/* SEMANTIC GRID USING CSS FLEX BOX */
.row {
  /* SET THE GAP BETWEEN COLUMNS */
  --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);
  }

  /* ADD SUPPORT FOR SIMPLE ROWS WITH AUTO CHILDREN COLUMNS   */
  .row > * {
    flex-grow: 1;
  }

  /* CENTERED HELPER CLASS  */
  .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;
    justify-content: space-between;
  }

  /* 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;
        color: var(--cruzin-red);
        align-items: center;
      }

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

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

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

      @media (width >= 768px) {
        display: flex;
        justify-content: center;
        gap: 15vw;
      }
    }

    a {
      text-decoration: none;
      padding: 0.5em;
      display: block;
    }
  }
}

/* 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;
        color: var(--cruzin-red);
        align-items: center;
      }

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


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

    ul {
      list-style: none;
      margin: 0;
      padding: 0;
      
      @media (width >= 768px) {
        display: flex;
        justify-content: space-evenly;
        width: 100%;
      }
    }

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

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

.footer-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
  padding-block-end: 2em;
}

.site-footer .site-nav {
  @media (width >= 768px) {
    flex: 1;

    ul {
      width: 100%;
      justify-content: space-evenly;
    }
  }
}

.site-footer .site-logo {
  @media (width >= 768px) {
    flex: 0 0 auto;
  }
}

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

.hero {
  padding-inline: 1em;
  text-align: center;
  background-color: lightgrey;
  
  p {
    margin-inline: auto;
  }

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

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

@media (width < 768px) {
.toggle-nav {
  /* background-color: palegoldenrod; */
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
  /* justify-content: space-between; */

  .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 1s ease-out;
      display: grid;
      grid-template-rows: 1fr;
    }

    &[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;

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

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

/* 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;
  /* margin-block: 1em 3em; */
}

/* SERVICES SECTION STYLING */

@media (width <768px ) {
  #services .row .row>*:last child {
    margin-block-end: 4em;
  }
}

/* RECIPES SECTION STYLING */
#recipes {
  padding-inline: 1em;
  background-color: var(--cruzin-blue);
  padding-bottom: 8em;
  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;
    }
  }

  h1 {
    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;

  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;

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

/* DESTINATION SECTION STYLING */
.destination {
  .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 {
    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_background.jpg');
  background-size: cover;
  background-position: center;
  position: relative;
  margin-top: 5em;
  padding: 5em 0 15em 0;

  .subsection-title {
    text-align: left;
    position: absolute;
    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;     /* scales with screen width */
    min-width: 50px; /* never too tiny */
    max-width: 100px; /* never too big */
  }

  @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;
  }
}

.ingredients::after {
  content: "";
  background-color: var(--cruzin-blue);
  position: absolute;
  top: 25%;
  width: 100%; /* adjust to taste */
  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;
}

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

  .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 {
    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;

  .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 {
    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;
  }
}
