/*

Theme Name:   Delve Snacks

Description:  Delve Snacks custom theme

Author:       cyonagency.com

Author URI:   https://www.cyonagency.com/

Template:     twentytwentyfive

Version:      1.0.0

Text Domain:  Delve Snacks

*/

/* Site wide  */

html {
  scroll-behavior: smooth;
  font-size: 16px;
  interpolate-size: allow-keywords;
  scrollbar-gutter: stable;
}

@view-transition {
  navigation: auto;
}

*:focus:not(:focus-visible) {
  outline: none;
}

:where(.wp-site-blocks) > * {
  margin-block-start: 0rem !important;
  margin-block-end: 0;
}

.has-curve-top {
  position: relative;
  overflow: hidden;
  height: 80px;
}

.has-curve-top::before {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 0;
  width: 200%;
  height: 900px;
  background-color: var(--wp--preset--color--organic-clay);
  border-radius: 50%;
  pointer-events: none;
}

.has-curve-top-dark {
  position: relative;
  overflow: hidden;
  height: 80px;
}

.has-curve-top-dark::before {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 0;
  width: 200%;
  height: 900px;
  background-color: var(--wp--preset--color--earth-green);
  border-radius: 50%;
  pointer-events: none;
}

.navigation-row a {
  position: relative;
  text-decoration: none;
}

.navigation-row li a::after {
  content: "" !important;
  position: absolute !important;
  bottom: -2px !important;
  left: 0 !important;
  width: 100% !important;
  height: 2px !important;
  background-color: currentColor !important;
  transform: scaleX(0) !important;
  transform-origin: left center !important;
  transition: transform 0.5s ease !important;
}

.navigation-row li a:hover::after {
  transform: scaleX(1) !important;
}

.navigation-row li.current-menu-item a::after {
  transform: scaleX(1) !important;
}

body.page-template-default .navigation-container {
  background-color: var(--wp--preset--color--organic-clay);
}

body.theme--green {
}

body.theme--green .navigation-row a {
  color: var(--wp--preset--color--organic-clay) !important;
}

body.recipes-template-default .navigation-row a {
  color: var(--wp--preset--color--organic-clay) !important;
}

body.theme--green .navigation-container {
  background-color: var(--wp--preset--color--earth-green);
}

body.recipes-template-default .navigation-container {
  background-color: var(--wp--preset--color--earth-green);
}

body.page-template-default .navigation-row-logo-green {
  display: none;
}

body.recipes-template-default .navigation-row-logo-default {
  display: none;
}
body.recipes-template-default .navigation-row-logo-green {
  display: inline-block !important;
}
body.theme--green .navigation-row-logo-green {
  display: inline-block;
}
body.theme--green .navigation-row-logo-default {
  display: none;
}

body.page-template-default .navigation-container .navigation-row a {
  color: var(--wp--preset--color--earth-green);
}

body.recipes-template-default .navigation-container .navigation-row a {
  color: var(--wp--preset--color--earth-green);
}

body.recipes-template-default .navigation-row-logo-green {
  display: none;
}

.footer-text-link a {
  position: relative;
  text-decoration: none;
}

.footer-text-link a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.3s ease;
}

.footer-text-link a:hover::after {
  transform: scaleX(1);
}

/* Logo */
.navigation-row-logo {
  width: 100;
  display: inline-block; /* required for transform to work on anchor tags */
  transition: transform 0.5s ease;
}

.navigation-row-logo:hover {
  transform: scale(1.08);
}

.navigation-row-logo a::after:hover {
  display: none;
}

/* --- TT5: Mobile nav as a right-side drawer --- */

/* Optional: dim background when menu open */
.wp-block-navigation__responsive-container.is-menu-open {
  background: rgba(0, 0, 0, 0.55);
}

/* The actual panel */
.wp-block-navigation__responsive-container-content {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: min(85vw, 360px);
  background: var(--wp--preset--color--base, #111);
  transform: translateX(100%);
  transition: transform 0.28s ease;
  padding: 72px 24px 24px; /* room for close button */
  overflow: auto;
}

/* Slide in when open */
.wp-block-navigation__responsive-container.is-menu-open
  .wp-block-navigation__responsive-container-content {
  transform: translateX(0);
}

/* Keep the "backdrop" clickable without forcing full-screen panel styling */
.wp-block-navigation__responsive-container {
  padding: 0;
}

/* Close button positioning */
.wp-block-navigation__responsive-container-close {
  position: fixed;
  top: 16px;
  right: 16px;
  background: transparent;
  border: 0;
}

.wp-block-button {
  transition: all ease 0.2s;
}

.wp-block-button .wp-block-button__link {
  transition: all ease 0.2s;
  opacity: 1;
}

.wp-block-button .wp-block-button__link:hover {
  opacity: 0.8;
}

.wp-block-button.is-style-secondary .wp-block-button__link {
  transition: all ease 0.2s;
  font-weight: 700;
  background-color: transparent;
  padding-left: 0px;
  padding-right: 0px;
  border: none;
  color: var(--wp--preset--color--earth-green);
  opacity: 1;
  border-radius: 0px;
  border-bottom: 1px solid var(--wp--preset--color--earth-green);
}

.wp-block-button.is-style-secondary {
  position: relative;
}
.wp-block-button.is-style-secondary::after {
  position: absolute;
  display: block;
  content: "";
  width: 100%;
  height: 1px;
  background-color: var(--wp--preset--color--earth-green);
  bottom: 0px;
  transition: all ease 0.2s;
}

.wp-block-button.is-style-secondary:hover::after {
  height: 5px;
}

.wp-block-button.is-style-tertiary .wp-block-button__link {
  font-weight: 700;
  transition: all ease 0.2s;
  background-color: transparent;
  padding-left: 0px;
  padding-right: 0px;
  border: none;
  color: var(--wp--preset--color--organic-clay);
  opacity: 1;
  border-radius: 0px;
}

.wp-block-button.is-style-tertiary {
  position: relative;
}

.wp-block-button.is-style-tertiary::after {
  position: absolute;
  display: block;
  content: "";
  width: 100%;
  height: 1px;
  background-color: var(--wp--preset--color--organic-clay);
  bottom: 0px;
  transition: all ease 0.2s;
}

.wp-block-button.is-style-tertiary:hover::after {
  height: 5px;
}

.rotating-image {
  position: relative;
  animation: spin linear both;
  animation-timeline: scroll(root block);
  animation-range: entry 0% cover 95%;
  z-index: 2;
}

.rotating-image-alt {
  position: relative;
  animation: spinRev linear both;
  animation-timeline: scroll(root block);
  animation-range: entry 0% cover 95%;
  z-index: 2;
}

@media (max-width: 769px) {
  .rotating-image {
    animation: spin linear both;
    animation-timeline: scroll(root block);

    max-width: 120px;
  }

  .rotating-image-alt {
    animation: spinRev linear both;
    animation-timeline: scroll(root block);

    max-width: 120px;
  }
}

@keyframes spin {
  from {
    transform: rotate(90deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes spinRev {
  from {
    transform: rotate(180deg);
  }
  to {
    transform: rotate(0deg);
  }
}

.snack-group {
  position: relative;
}
.snack-group a {
  text-decoration: none !important;
}
.snack-group a:after {
  position: absolute;
  content: "";
  left: 0px;
  top: 0px;
  width: 100%;
  height: 100%;
}

.snack-group figure img {
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.snack-group:hover figure img {
  transform: scale(1.3) rotate(2deg);
}

.custom-table {
  width: 100%;
  border-collapse: collapse;
  color: var(--wp--preset--color--organic-clay) !important;
  font-size: 0.9rem !important;
}

.custom-table th,
.custom-table td {
  border: none;
}

.custom-table thead {
  border-bottom: 0px;
}
.custom-table thead th {
  background: rgba(0, 0, 0, 0.5);
  padding-top: 10px;
  padding-bottom: 10px;
}

.custom-table th,
.custom-table td {
  padding: 0px 16px;
}

.custom-table thead tr {
  padding-bottom: 24px;
}

.custom-table th:first-child,
.custom-table td:first-child {
  text-align: left;
}

.custom-table th:nth-child(2),
.custom-table th:nth-child(3),
.custom-table td:nth-child(2),
.custom-table td:nth-child(3) {
  text-align: right;
}

.custom-table tr:first-child td {
  padding-top: 20px;
}

@media (max-width: 769px) {
  .has-gradient-snack-1-gradient-background {
    background: linear-gradient(to bottom, #00452b 30%, #891d17 70%) !important;
  }

  .has-gradient-snack-2-gradient-background {
    background: linear-gradient(to bottom, #00452b 30%, #14461d 70%) !important;
  }

  .has-gradient-snack-3-gradient-background {
    background: linear-gradient(to bottom, #00452b 30%, #1c6273 70%) !important;
  }
}

.recipe-grid .wp-block-post-template li.wp-block-post:first-child {
  /* 2-column layout */
  position: relative;
  display: grid;
  grid-column: 1 / -1; /* span full width */
  grid-template-columns: 3fr 2fr;
  gap: 2rem;
  margin-bottom: 100px;
  padding: 30px 0px;
  border-top: 1px solid;
  border-bottom: 1px solid;
}

.recipe-grid .wp-block-post-template li.wp-block-post:first-child::after {
  content: "ALL RECIPES";
  position: absolute;
  bottom: -80px;
  display: block;
  font-weight: bold;
}

/* 2nd and 3rd in every group of 4 */

.recipe-grid .wp-block-post-template li.wp-block-post {
  display: flex;
  flex-direction: column;
}

.recipe-grid .wp-block-post-template li.wp-block-post:nth-child(4n + 4) {
  padding-left: var(--wp--preset--spacing--space-2-xl);
  padding-right: var(--wp--preset--spacing--space-2-xl);
  justify-content: flex-start;
  max-width: 400px;
}

.recipe-grid .wp-block-post-template li.wp-block-post:nth-child(4n + 3) {
  padding-left: var(--wp--preset--spacing--space-2-xl);
  padding-right: var(--wp--preset--spacing--space-2-xl);
  justify-content: flex-end;
  max-width: 400px;
}

@media (max-width: 769px) {
  .recipe-grid .wp-block-post-template li.wp-block-post:first-child {
    /* 2-column layout */
    position: relative;
    display: block;
    grid-column: 1 / -1; /* span full width */
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 100px;
    padding: 30px 0px;
    border-top: 1px solid;
    border-bottom: 1px solid;
  }

  .recipe-grid .wp-block-post-template li.wp-block-post:nth-child(4n + 4) {
    padding-left: 0;
    padding-right: 0;
    justify-content: flex-start;
    max-width: 100%;
  }

  .recipe-grid .wp-block-post-template li.wp-block-post:nth-child(4n + 3) {
    padding-left: 0;
    padding-right: 0;
    justify-content: flex-end;
    max-width: 100%;
  }
}

.parallax-float {
  --parallax-speed: 0.15;
  will-change: transform;
}
.parallax-float--slow {
  --parallax-speed: 0.08;
}
.parallax-float--mid {
  --parallax-speed: 0.15;
}
.parallax-float--fast {
  --parallax-speed: 0.25;
}

@media (max-width: 769px) {
  .contact-row {
    flex-direction: column !important;
    align-items: flex-start !important;
  }
}

#gform_submit_button_1.is-style-tertiary {
  background-color: transparent !important;
  padding-left: 0px !important;
  padding-right: 0px !important;
  border-bottom: 1px solid var(--wp--preset--color--organic-clay);
  font-weight: bold;
}

#gform_submit_button_1.is-style-tertiary:hover {
  opacity: 0.5;
}

.gform-footer {
  justify-content: flex-end !important;
}
.gform-body legend {
  font-weight: bold !important;
}

.gform-body label {
  font-weight: bold !important;
}

.gform-body input {
  background-color: transparent !important;
  padding-left: 0px !important;
  border: 0px !important;
  border-bottom: 1px solid var(--wp--preset--color--organic-clay) !important;
}

.gform-body input::placeholder {
  opacity: 0.5;
}

.gform-body textarea {
  background-color: transparent !important;
  padding-left: 0px !important;
  border: 0px !important;
  border-bottom: 1px solid var(--wp--preset--color--organic-clay) !important;
}
.gform_heading {
  display: none !important;
}

.gfield_required {
  color: var(--wp--preset--color--organic-clay) !important;
}
