/*
Theme Name: Hahn Agency Theme
Theme URI: https://wordpress.org/themes/hahnagencytheme/
Author: the WordPress team
Author URI: https://wordpress.org
Description: A Theme created by the Hahn Agency Development Team.
Version: 1.5.3
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hahnagencytheme
Tags: one-column, custom-colors, custom-menu, custom-logo, editor-style, featured-images, full-site-editing, block-patterns, rtl-language-support, sticky-post, threaded-comments, translation-ready, wide-blocks, block-styles, style-variations, accessibility-ready, blog, portfolio, news
*/

html {
  scroll-behavior: smooth;
}

/*
 * Link styles
 * https://github.com/WordPress/gutenberg/issues/42319
 */
a {
  text-decoration-thickness: 1px !important;
  text-underline-offset: 0.1em;
}

strong a {
  text-decoration: none !important;
  font-weight: 700 !important;
}

/* Focus styles */
:where(.wp-site-blocks *:focus) {
  outline-width: 2px;
  outline-style: solid;
}

/* Increase the bottom margin on submenus, so that the outline is visible. */
.wp-block-navigation
  .wp-block-navigation-submenu
  .wp-block-navigation-item:not(:last-child) {
  margin-bottom: 3px;
}

/* Increase the outline offset on the parent menu items, so that the outline does not touch the text. */
.wp-block-navigation
  .wp-block-navigation-item
  .wp-block-navigation-item__content {
  outline-offset: 4px;
}

/* Remove outline offset from the submenus, otherwise the outline is visible outside the submenu container. */
.wp-block-navigation
  .wp-block-navigation-item
  ul.wp-block-navigation__submenu-container
  .wp-block-navigation-item__content {
  outline-offset: 0;
}

header .wp-block-group {
  z-index: 1;
}

/*
 * Progressive enhancement to reduce widows and orphans
 * https://github.com/WordPress/gutenberg/issues/55190
 */
h1,
h2,
h3,
h4,
h5,
h6,
blockquote,
caption,
figcaption,
p {
  text-wrap: pretty;
}

/* Mobile Nav Menu */
.wp-block-navigation__responsive-container.is-menu-open ul li a {
  font-size: 20px;
}

/*
 * Change the position of the more block on the front, by making it a block level element.
 * https://github.com/WordPress/gutenberg/issues/65934
*/
.more-link {
  display: block;
}

/* Remove margin-block-start from Footer Group Block */
footer {
  margin-block-start: 0;
}

/* Mobile Nav */
.has-modal-open .wp-block-navigation-item__content,
.has-modal-open .wp-block-navigation-item {
  outline: none;
  border: 0;
}

.has-modal-open .wp-block-navigation-item__content:focus,
.has-modal-open .wp-block-navigation-item:focus {
  outline: none;
  outline-offset: 0;
  border: 0;
}

.has-modal-open .wp-block-navigation-item__content:hover,
.has-modal-open .wp-block-navigation-item:hover {
  outline: none;
  outline-offset: 0;
  border: 0;
}

.wp-block-navigation__responsive-container-open,
.wp-block-navigation__responsive-container-close {
  border: 1px solid #fff;
}

.wp-block-navigation__responsive-container-close {
  top: 20px;
  right: 20px;
}

/*
 * Add Padding to top and bottom of selected group blocks
 */
section.wp-block-group {
  padding-top: 2.25rem;
  padding-bottom: 2.25rem;
}

section.wp-block-group.is-layout-constrained {
  padding-top: 1.25rem;
}

.show-on-mobile {
  display: block;

  @media (min-width: 782px) {
    display: none;
  }
}

.hide-bg-on-mobile {
  background-image: none;

  @media (min-width: 782px) {
    background-image: initial;
  }
}

/* Floating Images */
.relative-container {
  position: relative;
  overflow: hidden;
}

.floating-image-top {
  top: 130px;
  left: -75px;
}

.floating-image-top-down-more {
  top: 300px;
  left: -75px;
}

.floating-image-bottom {
  bottom: 5px;
  right: -115px;
}

.floating-image-bottom-in-more {
  bottom: 100px;
  right: -75px;
}

.floating-image-bottom-up-more {
  bottom: 250px;
  right: 0;
}

.floating-image-top,
.floating-image-top-down-more,
.floating-image-bottom,
.floating-image-bottom-in-more,
.floating-image-bottom-up-more {
  position: absolute;
  z-index: 10;

  /* add transition */
  transition: all 1.5s ease-in-out;

  @media (max-width: 1200px) {
    right: -9999px;
  }
}

.point-1-oclock {
  transform: rotate(-40deg);
}

.point-4-oclock {
  transform: rotate(20deg);
}

.point-7-oclock {
  transform: rotate(-160deg);
}

.point-10-oclock {
  transform: rotate(-155deg);
}

/* Overlapping Callout Block */
.hahn-column-overlap-wrapper,
.hahn-column-overlap-wrapper-reverse {
  position: relative;
}

.hahn-columns-bg-box-border {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translateX(-50%) translateY(-50%);
  width: 45%;
  height: 60%;
  z-index: 0;
  pointer-events: none; /* so it doesn’t interfere with clicks */
  display: none;

  @media screen and (min-width: 782px) {
    display: block;
  }
}

.hahn-column-overlap-wrapper-reverse .hahn-columns-bg-box-border {
  width: 45%;
  height: 85%;
}

.hahn-columns-overlap {
  position: relative;
  z-index: 1;
}

.hahn-columns-overlap-reverse {
  justify-content: center;
}

.location-bg > img {
  @media screen and (max-width: 782px) {
    display: none;
  }
}

/* reverse flex */
.location-bg .wp-block-columns {
  @media screen and (max-width: 782px) {
    flex-direction: column-reverse; /* stack columns on mobile */
  }
}

.location-bg .wp-block-columns .wp-block-column:nth-child(2) {
  @media screen and (min-width: 782px) {
    display: none;
  }
}

.wp-block-columns.is-not-stacked-on-mobile {
  @media screen and (max-width: 782px) {
    gap: 1rem !important; /* Adjust gap for mobile */
  }
}

.wp-block-columns.is-not-stacked-on-mobile .wp-block-column .wp-block-image {
  @media screen and (max-width: 782px) {
    max-width: 100% !important; /* Ensure images are responsive */
    width: auto !important; /* Override any fixed widths */
    margin: 0 auto !important; /* Center images */
  }
}

.wp-block-columns.is-not-stacked-on-mobile .wp-block-column .has-border-color {
  @media screen and (max-width: 782px) {
    border-width: 1px !important;
  }
}

.hahn-columns-overlap .wp-block-column:first-child,
.hahn-column-overlap-wrapper-reverse
  .hahn-columns-overlap
  .wp-block-column:last-child {
  z-index: 3;
  position: relative;

  /* transform: translate(23px, -70px); */

  @media screen and (min-width: 782px) {
    margin-left: 5%;
    max-width: 470px;
  }
}

.hahn-column-overlap-wrapper-reverse
  .hahn-columns-overlap
  .wp-block-column:last-child {
  @media screen and (min-width: 782px) {
    margin-left: -15%;
  }
}

.hahn-columns-overlap .wp-block-column:last-child,
.hahn-column-overlap-wrapper-reverse
  .hahn-columns-overlap
  .wp-block-column:first-child {
  /* margin-left: -60px; */
  z-index: 2;
  position: relative;
  margin-top: 20px;
  text-align: center;

  @media screen and (min-width: 782px) {
    margin-top: 0;
    margin-left: -10%;
    text-align: unset;
  }
}

.hahn-column-overlap-wrapper-reverse
  .hahn-columns-overlap
  .wp-block-column:first-child {
  @media screen and (min-width: 782px) {
    max-width: 570px;
    margin-left: 0;
  }
}

.home-types-columns {
  display: flex;
  justify-content: center;
  gap: 2rem;
}

/* Odd Children */
.home-types-columns .wp-block-column:nth-child(2n + 1) {
  margin-bottom: 0;

  @media screen and (min-width: 782px) {
    margin-bottom: 2rem;
  }
}

/* Even Children */
.home-types-columns .wp-block-column:nth-child(2n) {
  margin-top: 0;

  @media screen and (min-width: 782px) {
    margin-top: 2rem;
  }
}

.amenities-columns {
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.amenities-columns .wp-block-column {
  flex: 1;
  max-width: 270px;
  box-sizing: border-box;
}

/* Odd Children */
.amenities-columns .wp-block-column:nth-child(2n + 1) {
  margin-bottom: 0;

  @media screen and (min-width: 782px) {
    margin-bottom: 2rem;
  }
}

/* Even Children */
.amenities-columns .wp-block-column:nth-child(2n) {
  margin-top: 0;

  @media screen and (min-width: 782px) {
    margin-top: 2rem;
  }
}

/* Gravity Forms */
body .gform_wrapper .gform_footer input.button,
body .gform_wrapper .gform_footer input[type="submit"] {
  border-radius: 0px !important;
  font-weight: 700 !important;
  font-size: 1rem !important;
  line-height: inherit !important;
  text-decoration: none !important;
}

body .gform_wrapper .gform_required_legend {
  display: none !important;
}

body .gform_wrapper .gform_footer input.button:hover,
body .gform_wrapper .gform_footer input[type="submit"]:hover {
  /* background-color: #aad5af !important; */
  /* color: #003d31 !important; */
}

body .gform_wrapper .gfield_label {
  font-weight: 300 !important;
}

body .gform_wrapper .ginput_container input,
body .gform_wrapper .ginput_container textarea {
  box-shadow: none !important;
  border-top: 0px !important;
  border-right: 0px !important;
  border-left: 0px !important;
}

body .gform_wrapper .ginput_container input:focus,
body .gform_wrapper .ginput_container textarea:focus {
  outline: none !important;
  border-width: 2px !important;
}

/* Back to Top Button */
.hahn-back-to-top {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  position: fixed;
  bottom: 50px;
  right: 50px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  z-index: 9999;
  cursor: pointer;
  background-color: var(--wp--preset--color--primary);
  background-image: url("../hahnagencytheme/assets/images/up-arrow-white.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 20px;
  transition: opacity 0.3s ease-in-out;
}

.hahn-back-to-top.show {
  opacity: 1;
  pointer-events: auto;
}

.hahn-back-to-top:hover {
  opacity: 0.8;
}

.hahn-back-to-top a:focus:not(:focus-visible) {
  outline: none;
}

.hahn-back-to-top a {
  background-color: transparent !important;
}

/* show-hover-elements */
/* hide .only-show-on-hover elements  within .show-hover-elements */
.show-hover-elements {
  transition: opacity 0.3s ease-in-out;
}

.show-hover-elements .slide-up-on-hover {
  transform: translateY(0); /* slide element up from bottom */
  transition: transform 0.3s ease-in-out;
}

.show-hover-elements .only-show-on-hover {
  transform: translateY(200px); /* slide element up from bottom */
  transition: transform 0.3s ease-in-out;
  visibility: hidden; /* hide the element */
  margin-top: -15rem !important; /* prevent layout shift */
}

.show-hover-elements:hover .slide-up-on-hover {
  /* slide element up from bottom */
  transform: translateY(-5px);
  transition: transform 0.3s ease-in-out;
  opacity: 1; /* show the element */
}

.show-hover-elements:hover .only-show-on-hover {
  /* slide element up from bottom */
  transform: translateY(0);
  transition: transform 0.3s ease-in-out;
  visibility: visible;
  margin-top: 0.25rem !important; /* reset margin */
}

/* .full-overlay-on-hover  */
.full-overlay-on-hover:hover.wp-block-cover .wp-block-cover__background {
  opacity: 1;
  transition: opacity 0.3s linear;
}

.full-height {
  /* make element full height of screen size */
  height: 100vh;
}

/* Carousel */
.cb-carousel-block .cb-wrapper {
  height: unset;
}

.cb-carousel-block .cb-wrapper .cb-slide {
  height: unset;
}

.cb-carousel-block .cb-button-prev,
.cb-carousel-block .cb-button-next {
  border: 1px solid #ffffff;
  padding: 7px 13px;
  top: 50% - 50px;

  @media screen and (min-width: 782px) {
    padding: 13px 17px;
  }
}

.cb-carousel-block .cb-button-prev {
  left: -3.25rem;

  @media screen and (min-width: 782px) {
    left: -5rem;
  }
}

.cb-carousel-block .cb-button-next {
  right: -3.25rem;

  @media screen and (min-width: 782px) {
    right: -5rem;
  }
}

.cb-carousel-block .cb-button-prev:hover,
.cb-carousel-block .cb-button-next:hover {
  background-color: #ffffff;
}

.cb-carousel-block .cb-button-prev:focus,
.cb-carousel-block .cb-button-next:focus {
  outline: none;
  border: 1px solid #1a3d92;
  box-shadow: 0 0 0 2px #1a3d92;
}

.cb-carousel-block .cb-button-prev::after,
.cb-carousel-block .cb-button-next::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 18px;
  height: 13px;
  background-repeat: no-repeat;
  background-size: contain;

  @media screen and (min-width: 782px) {
    width: 24px;
    height: 15px;
  }
}

.cb-carousel-block .cb-button-prev::after {
  background-image: url("../hahnagencytheme/assets/images/icon-arrow-left-white.svg");
}

.cb-carousel-block .cb-button-next::after {
  background-image: url("../hahnagencytheme/assets/images/icon-arrow-right-white.svg");
}

.cb-carousel-block .cb-button-prev:hover::after {
  background-image: url("../hahnagencytheme/assets/images/icon-arrow-left.svg");
}

.cb-carousel-block .cb-button-next:hover::after {
  background-image: url("../hahnagencytheme/assets/images/icon-arrow-right.svg");
}

.has-white-background-color .cb-carousel-block .cb-button-prev,
.has-white-background-color .cb-carousel-block .cb-button-next {
  border-color: #1a3d92;
}

.has-white-background-color .cb-carousel-block .cb-button-prev:hover,
.has-white-background-color .cb-carousel-block .cb-button-next:hover {
  background-color: #dce3eb;
}

.has-white-background-color .cb-carousel-block .cb-button-prev:focus,
.has-white-background-color .cb-carousel-block .cb-button-next:focus {
  border-color: 1px solid #1a3d92;
  box-shadow: 0 0 0 2px #1a3d92;
}

.has-white-background-color .cb-carousel-block .cb-button-prev::after {
  background-image: url("../hahnagencytheme/assets/images/icon-arrow-left.svg");
}

.has-white-background-color .cb-carousel-block .cb-button-next::after {
  background-image: url("../hahnagencytheme/assets/images/icon-arrow-right.svg");
}

/* layout Grid */
.wp-block-group-is-layout-grid {
  /* Display 1 column on mobile */
  @media screen and (max-width: 782px) {
    grid-template-columns: 1fr;
  }
}

/* Pinned Stack Covers */
.hahn-section-pinned .wp-block-group {
  @media screen and (min-width: 992px) {
    justify-content: center;
    padding-left: 10rem;
  }
}

.hahn-section-pinned .wp-block-group .wp-block-cover {
  @media screen and (min-width: 992px) {
    max-width: 570px;
  }
}

/* Pop Up Maker */
.pum-overlay {
  /* overflow-y: auto !important; */
}

.pum-container {
  max-width: 770px !important;
  padding: 75px 50px 50px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  margin-left: 0 !important;
  /* position absolute in the top center of the page */
  /* top: 100px !important;
  display: flex !important;
  border-radius: 0px !important;
  box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.1) !important;
  overflow: visible !important;
  background-color: var(--wp--preset--color--white) !important; */
}

.pum-container .pum-title {
  margin-bottom: 2rem;
  padding: 0 1rem;
  position: relative;
}

/* Position text at very top and center of popup  */
.pum-container .popup-date {
  position: absolute;
  text-align: center;
  font-family: var(--wp--preset--font-family--body);
  font-weight: 300;
  font-size: 18px;
  line-height: 1.5;
  color: var(--wp--preset--color--accent-3);
  top: 50px;
  left: 50%;
  transform: translateX(-50%) translateY(-50%);
}

/* Make the Close button .pum-close be a blue times symbol using before and after */
.pum-container .pum-close {
  top: 10px !important;
  right: 10px !important;
  padding: 25px !important;
  background-color: transparent !important;
  border: none !important;
}
.pum-container .pum-close::before,
.pum-container .pum-close::after {
  content: "";
  position: absolute;
  top: 23px;
  left: 12px;
  width: 25px;
  height: 4px;
  background-color: var(--wp--preset--color--primary);
}
.pum-container .pum-close::before {
  transform: rotate(45deg);
}
.pum-container .pum-close::after {
  transform: rotate(-45deg);
}
