/*

Theme Name: Chef Nicole Votano 
Author: Formulatedby
Description: A custom theme for Chef Nicole Votano
Version: 1.2

*/

body {
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
}

html {
  scroll-behavior: smooth;
}

html, body {
  height: 100%;
  margin: 0;
}

.wp-site-blocks {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.page-content {
  flex: 1 0 auto;
}

.wp-block-template-part.wp-block-template-part {
  position: relative;
}

.wp-block-template-part.wp-block-template-part-footer {
  flex-shrink: 0;
  width: 100%;
}

.stretched-link .wp-block-cover__inner-container {
  position: static;
  z-index: 3;
}

.stretched-link a::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
}

.stretched-link a:before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
}

.stretched-link a {
  text-decoration: none !important;
}

.page-template-green-background,
.tax-recipe_category,
.post-type-recipe {
  background-color: #253935 !important;
}

@media screen and (max-width: 781px) {
  body {
    --wp--preset--spacing--80: 2rem;
    --wp--preset--spacing--70: 1.5rem;
    --wp--preset--spacing--60: 1rem;

    --wp--preset--spacing--extra-large: 2rem;
    --wp--preset--spacing--large: 1rem;
    --wp--preset--spacing--medium: .8rem;
  }
}

.entry-content {
  margin-top: 0;
}

@media screen and (min-width: 1200px) {
  .page-id-69 .entry-content > .has-global-padding {
    padding-left: 160px;
    padding-right: 160px;
  }
}


/********************************/
/* Reverse on Mobile styles */
/********************************/
@media (max-width: 781px) {
  .wp-block-columns.reverse-on-mobile {
    flex-direction: column-reverse;
  }

  .wp-block-group.reverse-on-mobile {
    flex-direction: row-reverse;
  }

  .wp-block-stack.reverse-on-mobile {
    flex-direction: column-reverse;
  }

  .wp-block-media-text.reverse-on-mobile {
    grid-template-columns: auto 50% !important;
    direction: rtl;
  }

  .wp-block-media-text.reverse-on-mobile .wp-block-media-text__content {
    direction: ltr;
  }

  .wp-block-media-text.reverse-on-mobile .wp-block-media-text__media {
    direction: ltr;
  }
}

/********************************/
/* Header styles */
/********************************/
.site-header .wp-block-site-logo {
  position: relative;
  top: 10px;
}

.site-header .wp-block-navigation__container>li>.wp-block-navigation-item__content {
  padding: .77em;
}

.site-header .wp-block-navigation .wp-block-navigation__submenu-container {
  border: none;
}

.site-header .wp-block-navigation__container>li>.wp-block-navigation-item__content {
  transition: background .1s linear;
}

.site-header .wp-block-navigation__container>li:hover>.wp-block-navigation-item__content {
  background: var(--wp--preset--color--light-grey);
}


.wp-block-navigation .wp-block-navigation-submenu .wp-block-navigation-item a {
  color: var(--wp--preset--color--deep-forest-green) !important;
}

.wp-block-navigation-submenu .wp-block-navigation__submenu-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  width: max-content;
  min-width: 400px;
  padding: 20px;
}

.wp-block-navigation-submenu .wp-block-navigation__submenu-container .wp-block-navigation-item {
  margin: 0;
  padding: 5px 10px;
}

.wp-block-navigation-submenu .wp-block-navigation-item__content {
  white-space: nowrap;
}

.wp-block-navigation:not(.has-background) .wp-block-navigation__submenu-container {
  border: none;
}

.wp-block-navigation:not(.has-background) .wp-block-navigation__submenu-container li {
  background: transparent;
}

.site-header .has-deep-maroon-background-color {
  transition: background-color 0.3s ease-in-out;
}

.site-header .has-deep-maroon-background-color:hover {
  background-color: #6F0017 !important;
}

/* Style the submenu items in two columns */
.site-header .wp-block-navigation__submenu-container {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  padding: 2rem 0 !important;
  gap: 1rem;
  background: var(--wp--preset--color--light-grey);
  left: var(--submenu-offset, 0) !important;
  width: var(--menu-width, auto) !important;
}

@media screen and (max-width: 500px) {
  .site-header .wp-block-image {
    width: 100%;
    height: auto;
  }
}

@media screen and (min-width: 1740px) {
  .book-button {
    margin-right: -55px;
    margin-left: 55px;
  }
}

@media screen and (min-width: 782px) and (max-width: 1400px) {
  .site-header .wp-block-group {
    justify-content: center;
  }
  .site-header .wp-block-columns {
    flex-direction: column;
  }
}

/* Mobile Navigation */
@media (max-width: 781px) {
  .site-header .wp-block-navigation__container>li:hover>.wp-block-navigation-item__content {
    background: transparent !important;
  }

  .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
    padding-left: 1rem !important;
  }

  .wp-block-navigation-item__label {
    color: var(--wp--preset--color--deep-forest-green);
  }

  /* hamburger button */
  .wp-block-navigation__responsive-container-open  {
    display: block !important;
  }

  /* full menu */
  .wp-block-navigation__responsive-container:not(.is-menu-open.has-modal-open) {
    display: none !important;
  }

  .hero-section .wp-block-columns > .wp-block-column:first-child {
    display: none;
  }

  .site-header {
    --wp--preset--spacing--large: 11px;
    --wp--preset--spacing--large: 11px;
  }

  .header-menu-with-button {
    width: 100%;
    display: flex;
    justify-content: space-between;
  }

  /* body.has-modal-open {
    overflow: hidden !important;
    position: fixed !important;
    width: 100% !important;
  } */
  
  .wp-block-navigation__responsive-container-close svg,
  .wp-block-navigation__responsive-container-open svg {
    width: 56px;
    height: 32px;
  }

  .wp-block-navigation__responsive-container-close {
    display: none;
  }

  .wp-block-navigation__responsive-dialog {
    margin-top: 0 !important;
  }

  .wp-block-navigation__responsive-container-content {
    padding: 0 !important;
  }

  .wp-block-site-logo {
    display: none !important;
  }

  .wp-block-navigation__responsive-container {
    transition: opacity 0.3s ease-in-out;
    opacity: 0;
    visibility: hidden;
    bottom: initial;
    right: initial;
    top: var(--header-bottom, 191px) !important;
    padding: 30px !important;
    width: auto !important; /* Override fixed width */
    min-width: auto !important; /* Remove min-width constraint */
    max-width: 90vw; /* Prevent extending beyond viewport */
  } 

  .wp-block-navigation__responsive-container.is-menu-open {
    opacity: 1;
    visibility: visible;
  }

  .wp-block-navigation.items-justified-right {
    --navigation-layout-justification-setting: flex-start;
    --navigation-layout-justify: flex-start;
  }

  /* Hide submenu by default */
  .wp-block-navigation__submenu-container {
    display: none !important;
    position: static !important;
    background: transparent !important;
    padding: 0 0 0 20px !important;
    width: 100% !important; /* Force full width */
    min-width: 100% !important; /* Override min-width */
    --menu-width: 100% !important; /* Update custom property */
    grid-template-columns: 1fr !important;
  }

  /* Show submenu only when parent has is-open class */
  .wp-block-navigation-submenu.is-open > .wp-block-navigation__submenu-container {
    display: block !important;
  }

  /* Reset grid styles and fix layout */
  .site-header .wp-block-navigation__submenu-container {
    display: none !important;  /* Force hide by default */
    grid-template-columns: 1fr !important;
    padding: 0 !important;
    position: relative !important;
    left: 0 !important;
    background: transparent !important;
  }

  /* Style submenu items */
  .wp-block-navigation-submenu .wp-block-navigation__submenu-container .wp-block-navigation-item {
    padding: 8px 0;
  }

  /* Add dropdown indicator */
  .wp-block-navigation-submenu > .wp-block-navigation-item__content::after {
    content: '';
    position: absolute;
    right: -45px;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 15px;
    margin-right: 15px;
    background-image: url("data:image/svg+xml,%3Csvg width='10' height='15' viewBox='0 0 10 15' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 0.999999L7.75504 5.87864C8.8604 6.67696 8.8604 8.32304 7.75504 9.12136L0.999999 14' stroke='%23253935'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    transition: transform 0.3s ease;
    cursor: pointer;
    z-index: 2;
  }

  /* Rotate indicator when submenu is open */
  .wp-block-navigation-submenu.is-open > .wp-block-navigation-item__content::after {
      transform: translateY(-50%) rotate(90deg);
  }

  /* Prevent click on parent items with submenus */
  .wp-block-navigation-submenu > .wp-block-navigation-item__content {
    position: relative;
    padding-right: 40px; /* Make room for the arrow */
  }
  
  /* Allow clicks on actual links in submenus */
  .wp-block-navigation-submenu .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
    pointer-events: auto;
  }
}


/********************************/
/* What you will find here styles */
/********************************/
.what-you-will-find-her .wp-block-column .wp-block-image img {
  transition: transform 0.3s ease-in-out;
}

.what-you-will-find-her .wp-block-column .wp-block-image:hover img {
  transform: scale(1.1);
}

.what-you-will-find-here .wp-block-image {
  overflow: hidden;
}

.what-you-will-find-here .wp-block-image img {
  transition: transform 0.3s ease-in-out;
}

.what-you-will-find-here .wp-block-image:hover img {
  transform: scale(1.05);
}

@media screen and (min-width: 1300px) {
  .wp-block-group.what-you-will-find-here::before {
    content: '';
    background: url('./assets/images/rosmary.png') no-repeat center center;
    background-size: cover;
    position: absolute;
    top: -100px;
    right: 0;
    width: 300px;
    height: 406px;
    transform: scaleX(-1);
    z-index: 1;
    pointer-events: none;
  }
}

@media screen and (max-width: 1200px) {
  .what-you-will-find-here .wp-block-columns {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    text-align: center;
  }
}

/********************************/
/* Newsletter section styles */
/********************************/
@media screen and (min-width: 1300px) {
  .wp-block-group.newsletter-section::before {
    content: '';
    background: url('./assets/images/rosmary.png') no-repeat center center;
    background-size: cover;
    position: absolute;
    top: -140px;
    left: -40px;
    width: 300px;
    height: 406px;
    z-index: 1;
    pointer-events: none;
  }
}

@media screen and (max-width: 768px) {
  .ce-email-form {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .newsletter-section input {
    border-radius: 5px;
  }
}

@media screen and (min-width: 767px) {
  .ce-email-form {
    /* text-align: center;
    display: flex; */
    /* Use flexbox for alignment */
    /* align-items: stretch;
    justify-content: center; */
    text-align: center;
    display: flex;
    flex-wrap: wrap; /* Add this */
    align-items: stretch;
    justify-content: center;
  }

  .newsletter-section input {
    border-radius: 5px 0 0 5px;
  }
}

.ce-form-response {
  width: 100%;
  margin-top: 1rem;
  text-align: center;
}

.newsletter-section input {
  background-color: #D9D9D9;
  height: 62px;
  /* Set the height */
  padding: 10px 40px;
  border: none;
  /* Adjust as needed */
  font-size: var(--wp--preset--font-size--32);
  flex: 1;
  border-radius: 0;
}

@media screen and (min-width: 768px) {
  .newsletter-section input {
    max-width: 600px;
  }
}

.newsletter-section button {
  background-color: #C17E4F;
  color: var(--wp--preset--color--deep-forest-green);
  text-transform: uppercase;
  border: none;
  margin: 0;
  cursor: pointer;
  height: 82px;
  /* Match the height of the input */
  font-weight: 500;
  padding: 10px 40px;
  font-size: var(--wp--preset--font-size--32);
  font-weight: 500;
  transition: all 0.3s ease;
}

.newsletter-section button:hover {
  background-color: #6F0017;
  color: #E1D8CD;
}

.newsletter-section input::placeholder {
  color: rgba(37, 25, 25, .3);
}

@media screen and (max-width: 768px) {
  .newsletter-section  {
    --wp--preset--spacing--70: 10px;
    --wp--preset--spacing--80: 16px;
  }

  .newsletter-section button {
    height: 42px;
    width: fit-content;
    align-self: center;
  }

  .newsletter-section input {
    padding: 10px;
  }
}

/********************************/
/* footer */
/********************************/


.footer-nav-services {
  grid-area: services;
}

.footer-nav-recipes {
  grid-area: recipes;
}
.footer-nav-about {
  grid-area: about;
}
.footer-nav-guides {
  grid-area: guides;
}

.site-footer-nav {
  grid-template-areas: 'services recipes about guides';
  grid-template-columns: 270px max-content max-content max-content;
  max-width: 1005px;
  justify-content: space-between;
}

@media screen and (max-width: 1600px) {
  .site-footer .wp-block-navigation li:first-child .wp-block-navigation-item__label {
    font-weight: bold;
  }

  .site-footer-nav {
    grid-template-areas: 
    'services recipes guides'
    'services about guides';
    grid-template-columns: 270px max-content max-content max-content;
    max-width: 1005px;
    justify-content: space-between;
  }
}

@media screen and (max-width: 1400px) {
  .site-footer-nav {
    max-width: 800px;
  }
}

@media screen and (max-width: 1300px) {
  .site-footer-nav {
    grid-template-areas: 
    'services about guides'
    'about recipes guides';
    grid-template-columns: 270px max-content max-content;
    justify-content: start;
  }
}

@media screen and (max-width: 1000px) {
  .site-footer-nav {
    grid-template-areas: 
    'services recipes guides'
    'services recipes guides'
    'about recipes guides';
    grid-template-columns: 270px 1fr 1fr;
    gap: 40px;
  }
}

@media screen and (max-width: 781px) {
  .site-footer-nav {
    grid-template-areas: 
    'services recipes'
    'services guides'
    'about guides';
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}


/********************************/
/* footer social section */
/********************************/
footer.wp-block-template-part {
  overflow: hidden;
}

footer.wp-block-template-part {
  margin-top: 0;
}

.footer-social {
  position: absolute !important;
  bottom: 0;
  right: 0;
  width: 499px;
  height: 476px;
  z-index: 0;
}

.footer-social::after {
  content: '';
  background: url('./assets/images/footer-social.png') no-repeat center center;
  background-size: cover;
  position: absolute;
  bottom: 45px;
  right: 0;
  width: 499px;
  height: 476px;
  z-index: 0;
  pointer-events: none;
}

.footer-social img {
  transition: transform 0.3s ease-in-out;
}

.footer-social img:hover {
  transform: scale(1.1);
}

.footer-social>.wp-block-group {
  position: absolute;
  left: 30%;
  bottom: 200px;
}

@media screen and (max-width: 781px) {
  .footer-social,
  .footer-social::after {
    width: 50vw;
    height: calc(50vw * 0.954);
  }

  .footer-social>.wp-block-group {
    left: auto; 
    right: calc(50% + 9px); 
    bottom: calc(50% + 19px); 
    transform: translate(50%, 50%);
  }
}

/********************************/
/* Search Taxonomy */
/********************************/
.search-taxonomy {
  position: relative;
}

.search-taxonomy input {
  background: #D9D9D9;
  border-radius: 5px;
  padding: 1.8rem;
  position: relative;
}

.search-taxonomy .wp-block-search__inside-wrapper::before {
  content: '';
  background: url('./assets/images/filters-icon.svg') no-repeat center center;
  background-size: cover;
  position: absolute;
  bottom: 0;
  top: 10px;
  right: 15px;
  width: 91px;
  height: 75px;
  z-index: 1;
  cursor: pointer;
}

/********************************/
/* Recipe Taxonomy Image */
/********************************/
.recipe-category-image-block {
  width: 100%;
  max-height: 414px;
  position: relative;
  overflow: hidden;
}

.tax-recipe_category .wp-block-group {
  justify-content: space-between;
}

.recipe-category-image-block::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 216px;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.79) 100%);
}

.recipe-category-image-block h2 {
  color: var(--wp--preset--color--warm-ivory) !important;
  font-size: var(--wp--preset--font-size--90) !important;
  position: absolute;
  left: var(--wp--preset--spacing--extra-large);
  bottom: 1rem;
  margin-bottom: 0;
}

.recipe-category-image {
  object-fit: cover;
  width: 100%;
  height: 100%;
  object-position: center;
}

.recipes-category-item a {
  text-decoration: none;
}

/********************************/
/* Recipe */
/********************************/
.recipe-ingredients {
  background: url('./assets/images/papper-ingredients.png') no-repeat bottom right;
  background-size: 50%;
}

.nicoles-notes {
  overflow: hidden;
}

.nicoles-notes {
  background-image: url('./assets/images/lines.svg');
  background-size: cover
}

@media screen and (min-width: 781px) {
  .nicoles-notes::after {
    content: '';
    background: url('./assets/images/papper2.png') no-repeat center center;
    background-size: cover;
    position: absolute;
    top: 0;
    right: 0;
    width: 602px;
    height: 453px;
    z-index: 0;
    pointer-events: none;
  }
}

@media screen and (max-width: 1600px) {
  .page-template-single-recipe .wp-block-cover { 
    min-height: 45vw !important;
  }
}

/* Single Recipe */
@media screen and (max-width: 1000px) {
  .recipe-template-single-recipe {
    min-height: 50vw !important;
  }
}

@media screen and (max-width: 781px) {
  .recipe-hero-grid {
    display: grid;
    grid-template-columns: 1fr !important; /* Force single column */
  }

  /* Reset the grid row span */
  .recipe-hero-grid .wp-block-post-featured-image {
    grid-row: auto !important;
  }

  /* Reorder grid items */
  .recipe-hero-grid > *:nth-child(1) { order: 1; }
  .recipe-hero-grid > *:nth-child(2) { order: 2; }
  .recipe-hero-grid > *:nth-child(3) { order: 3; }

  .recipe-hero-grid .wp-block-post-featured-image {
    grid-row: span 2;
    min-height: 400px; /* Add this line - adjust value as needed */
  }
}

.type-ingredients a {
  transition: color 0.3s ease;
}

.type-ingredients a:hover {
  color: #BFA88B;
}

.single-recipe .wp-block-table td, 
.single-recipe .wp-block-table th {
  padding: .4rem 0;
  border: none;
}


/* About Us Page */
@media screen and (min-width: 1200px) {
  .about-me-section::before {
    content: '';
    background: url('./assets/images/pepper-decor.png') no-repeat center center;
    background-size: cover;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 114px;
    height: 513px;
    z-index: 0;
    pointer-events: none;
  }
  
  .i-am-proud-section::before {
    content: '';
    background: url('./assets/images/rosmary.png') no-repeat center center;
    background-size: cover;
    position: absolute;
    top: -100px;
    right: 0;
    width: 300px;
    height: 406px;
    transform: scaleX(-1);
    z-index: 0;
    pointer-events: none;
  }
  
  .i-am-proud-section::after {
    content: '';
    background: url('./assets/images/rosmary.png') no-repeat center center;
    background-size: cover;
    position: absolute;
    top: 380px;
    left: -40px;
    width: 300px;
    height: 406px;
    z-index: 0;
    pointer-events: none;
  }
}


/********************************/
/* Search page */
/********************************/
.search-results .wp-block-post-content {
  margin-top: 0;
}


/********************************/
/* Book a consultation */
/********************************/
/* @media screen and (min-width: 928px) and (max-width: 1415px) {
  .wp-container-content-a3f0f9d2 {
    grid-column: auto;
  }
} */

@media screen and (min-width: 1416px) {
  .wp-container-content-de48fa1d {
    grid-column: span 2; /* Spans two columns */
    /* Alternative if you need specific columns: */
    /* grid-column: 1 / span 2; */ 
  }
}


/********************************/
/* Book a consultation */
/********************************/
.wpcf7 {
  text-align: center;
}

.wpcf7-form {
  margin: 90px auto 0;
  text-align: center;
}

.wpcf7-form input[type="tel"],
.wpcf7-form input[type="email"] {
  width: calc(100% - 80px);
  /* Full width */
  max-width: 800px;
  /* Set a maximum width */
  padding: 24px 40px;
  margin: 0 auto 20px;
  /* Centering with auto margins */
  border: none;
  border-radius: 5px;
  background-color: #D9D9D9;
  font-size: var(--wp--preset--font-size--32);
  color: #272727;
}

.wpcf7-form input[type="tel"]::placeholder,
.wpcf7-form input[type="email"]::placeholder {
  color: rgba(37, 25, 25, 0.3);
}

.wpcf7-form input[type="submit"] {
  background-color: #4C0E1B;
  color: #E1D8CD;
  border: none;
  padding: 50px 60px;
  font-size: var(--wp--preset--font-size--40);
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 700;
  margin-top: 70px;
  border-radius: 0 !important;
  -webkit-appearance: none; /* Removes iOS default styling */
  -moz-appearance: none;
  appearance: none;
}

@media screen and (max-width: 1415px) {
  .wpcf7-form input[type="submit"] {
    padding: 20px 30px;
    font-size: var(--wp--preset--font-size--32);
    margin-top: 0;
    width: 100%;
  }
}

.wpcf7-form input[type="submit"]:hover {
  background-color: #C17E4F;
  color: #272727;
}

/* Hide the spinner by default */
.wpcf7-spinner {
  display: none;
}

/* Show spinner when form is submitting */
.wpcf7-form.submitting .wpcf7-spinner {
  display: inline-block;
  margin-left: 10px;
}

/* Form response messages */
.wpcf7-response-output {
  margin-top: 20px;
  padding: 15px;
  border-radius: 5px;
  text-align: center;
}

.wpcf7 form.invalid .wpcf7-response-output {
  border: var(--wp--preset--color--deep-maroon);
  color: var(--wp--preset--color--deep-maroon);
}

.wpcf7 form.sent .wpcf7-response-output {
  border: var(--wp--preset--color--deep-forest-green);
  color: var(--wp--preset--color--deep-forest-green);
}

