@font-face {
  font-family: "Fraunces";
  src: url("../fonts/Fraunces_72pt_Soft-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/Fraunces_72pt_Soft-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/Fraunces_72pt_Soft-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
h1, h2, h3, h4 {
  font-family: "Fraunces";
  font-weight: 400 !important;
}
h1.font-bold, h2.font-bold, h3.font-bold, h4.font-bold {
  font-weight: 600 !important;
}

body:not(.home) h1 {
  font-size: 2.25rem !important;
  margin: 1em 0;
}

body:not(.home) h2 {
  font-size: 1.5rem !important;
  margin: 1em 0;
}

body:not(.home) h3 {
  font-size: 1.25rem !important;
  margin: 1em 0;
}

/* Override Recoleta font with Fraunces */
.font-recoleta {
  font-family: "Fraunces", serif !important;
}
.font-recoleta.font-bold {
  font-weight: 600 !important;
}

/* FIXES OF THE BASE THEME STYLING */
.nav-menu a {
  margin-bottom: 0 !important;
}

/* SEARCH */
body.search-results main header {
  -webkit-box-shadow: none !important;
          box-shadow: none !important;
  position: static !important;
}

header nav .nav-menu {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}

/* ===================================
   Submenu Styling for Primary Menu
   =================================== */
/* Hide submenus by default */
.nav-menu > li > ul.sub-menu,
#mobile-menu .sub-menu {
  display: none;
  position: absolute;
  background-color: white;
  -webkit-box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
          box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border-radius: 0.5rem;
  padding: 0.5rem;
  min-width: 200px;
  z-index: 1000;
}

/* Desktop: Show submenu on hover */
@media (min-width: 961px) {
  .open_submenu {
    display: none;
  }
  .nav-menu li {
    position: relative;
  }
  .nav-menu > li:not(.megamenu):hover > .sub-menu {
    display: block;
    top: 28px;
    width: 300px;
    left: 0;
  }
  .nav-menu > li.megamenu:hover > .sub-menu {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    top: 28px;
    left: 0;
  }
  .nav-menu > li.megamenu:hover > .sub-menu .menu-item-has-children > a {
    font-weight: bold;
  }
  .nav-menu > li.megamenu:hover > .sub-menu li {
    width: 150px;
  }
  li.megamenu > .sub-menu {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    gap: 0 10px;
  }
  .nav-menu .sub-menu li {
    display: block;
    width: 100%;
  }
  .nav-menu .sub-menu a {
    display: block;
    padding: 0.5rem;
    -webkit-transition: all 0.2s ease;
    transition: all 0.2s ease;
    margin: 0;
  }
  .nav-menu .sub-menu a:hover {
    background-color: #fbeae7;
    color: #e4a79d;
  }
}
/* Mobile: Submenu styling */
@media (max-width: 960px) {
  #mobile-menu {
    overflow-y: auto;
    max-height: calc(100vh - 6rem);
  }
  #mobile-menu a {
    margin-left: 0;
    margin-right: 0;
  }
  #mobile-menu .menu-item-has-children {
    position: relative;
  }
  /* Add plus icon for parent items */
  #mobile-menu .menu-item-has-children > a {
    display: -webkit-box !important;
    display: -ms-flexbox !important;
    display: flex !important;
    -webkit-box-pack: justify;
        -ms-flex-pack: justify;
            justify-content: space-between;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    width: 100%;
  }
  #mobile-menu .menu-item-has-children .open_submenu {
    font-size: 1.5rem;
    font-weight: 300;
    color: #d39e8a;
    -webkit-transition: -webkit-transform 0.3s ease;
    transition: -webkit-transform 0.3s ease;
    transition: transform 0.3s ease;
    transition: transform 0.3s ease, -webkit-transform 0.3s ease;
  }
  /* Mobile submenu display */
  #mobile-menu .sub-menu {
    position: static;
    display: none;
    -webkit-box-shadow: none;
            box-shadow: none;
    border-radius: 0.5rem;
    margin-top: 0.5rem;
    padding: 0.5rem;
  }
  #mobile-menu .menu-item-has-children.submenu-open > .sub-menu {
    display: block;
  }
  #mobile-menu .sub-menu li {
    margin: 0.25rem 0;
  }
  #mobile-menu .sub-menu a {
    padding: 0.5rem 1rem;
    display: block;
    border-radius: 0.375rem;
  }
  #mobile-menu {
    top: 0 !important;
    max-height: 100vh !important;
    padding-top: 6rem !important;
    z-index: 10 !important;
  }
  #mobile-menu a {
    -webkit-box-pack: left;
        -ms-flex-pack: left;
            justify-content: left;
  }
}
/* Ensure menu items with children have proper spacing */
.menu-item-has-children {
  position: relative;
}

/* ===================================
   Search Form in Menu
   =================================== */
.menu-item-search {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}

.menu-item-search .search-form {
  margin: 0;
}

.menu-item-search label {
  margin: 0;
}

.menu-item-search .screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Desktop search form styling */
@media (min-width: 961px) {
  .nav-menu .menu-item-search {
    margin-left: 1rem;
  }
  .nav-menu .menu-item-search .search-form {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    gap: 0.5rem;
  }
  .nav-menu .menu-item-search .search-field {
    padding: 0.5rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-family: "DM Sans", sans-serif;
    font-size: 0.875rem;
    -webkit-transition: all 0.2s ease;
    transition: all 0.2s ease;
    width: 200px;
  }
  .nav-menu .menu-item-search .search-field:focus {
    outline: none;
    border-color: #d39e8a;
    -webkit-box-shadow: 0 0 0 3px rgba(211, 158, 138, 0.1);
            box-shadow: 0 0 0 3px rgba(211, 158, 138, 0.1);
  }
  .nav-menu .menu-item-search .search-submit {
    padding: 0.5rem 1rem;
    background-color: #d39e8a;
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-family: "DM Sans", sans-serif;
    font-size: 0.875rem;
    cursor: pointer;
    -webkit-transition: all 0.2s ease;
    transition: all 0.2s ease;
  }
  .nav-menu .menu-item-search .search-submit:hover {
    background-color: #44312b;
  }
}
/* Mobile search form styling */
@media (max-width: 960px) {
  #mobile-menu .menu-item-search {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
  }
  #mobile-menu .menu-item-search .search-form {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
        -ms-flex-direction: row;
            flex-direction: row;
    gap: 0.5rem;
    width: 100%;
  }
  #mobile-menu .menu-item-search label {
    -webkit-box-flex: 1;
        -ms-flex: 1 0 auto;
            flex: 1 0 auto;
  }
  #mobile-menu .menu-item-search .search-field {
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-family: "DM Sans", sans-serif;
    font-size: 1rem;
  }
  #mobile-menu .menu-item-search .search-field:focus {
    outline: none;
    border-color: #d39e8a;
    -webkit-box-shadow: 0 0 0 3px rgba(211, 158, 138, 0.1);
            box-shadow: 0 0 0 3px rgba(211, 158, 138, 0.1);
  }
  #mobile-menu .menu-item-search .search-submit {
    padding: 0.75rem 1rem;
    background-color: #d39e8a;
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-family: "DM Sans", sans-serif;
    font-size: 1rem;
    cursor: pointer;
    -webkit-transition: all 0.2s ease;
    transition: all 0.2s ease;
    -ms-flex-negative: 0;
        flex-shrink: 0;
  }
  #mobile-menu .menu-item-search .search-submit:hover {
    background-color: #44312b;
  }
}
/* SEARCH STYLING - WHEN DISPLAYED ON PAGE AND NO SEARCH RESULTS */
body.search-no-results main header {
  display: none;
}
body.search-no-results main > .text-center {
  max-width: 420px;
  margin: 0 auto;
}
body.search-no-results .search-form input {
  padding: 10px;
}
body.search-no-results .search-form button {
  padding: 10px 20px;
}

/* LINK UNDERLINES IN POSTS*/
body.single-post main a {
  text-decoration: underline;
}