/*
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.1.2
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
*/

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

.wp-block-button__link,
.wp-element-button {
  transition: background-color 0.2s ease, color 0.2s ease;
}

body {
  border: 0 !important;
}

html {
  scroll-behavior: smooth;
}

.hn-info-callout .wp-block-image {
  min-width: 32px;
}

.hn-impact-icon {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 200px;
}

.hn-impact-icon img {
  min-width: 200px;
}

.hn-impact-icon.icon-calculator img {
  min-width: 165px;
  max-height: 176px!important;
  height: 176px;
}

p.hn-full-width-paragraph {
  width: 100%;
  max-width: 100%;
}

.hn-warning-callout a {
  color: var(--wp--preset--color--red);
}

.hn-contact-form-container {
  margin-top: calc(var(--wp--preset--spacing--60) * -1);
  position: relative;
  z-index: 5;
}

.hn-form__heading {
  margin-bottom: 0;
  color: var(--wp--preset--color--black);
}

.hn-icon-columns__container .wp-block-image img {
  overflow: visible;
}

@media (min-width: 1194px) and (max-width: 1349px) {
  .hn-contact-form-container {
    margin-top: calc(var(--wp--preset--spacing--60) * -1 + 40px);
  }
}

@media (max-width: 767px) {
  .wp-block-cover.is-style-cover-frame-hero.hn-homepage-hero .wp-block-columns {
    padding: 0 !important;
  }
}

@media (min-width: 1560px) {
  .hn-contact-form-container {
    margin-top: -150px;
  }
}

/* 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;
}

/* Force navigation hover color (overrides core "color: inherit" rule). */
.wp-block-navigation
  .wp-block-navigation-item__content:hover {
  color: var(--wp--preset--color--red) !important;
  text-decoration: none;
}

/*
 * 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;
}

/*
 * 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;
}

.custom-logo-link img {
  height: 80px;
}

/*
 * 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;
}

.wp-block-image.is-style-image-frame-01,
.wp-block-image.is-style-image-frame-02 {
  display: grid;
  align-items: start;
  justify-items: start;
  width: 100%;
  max-width: 450px;
  margin-left: 0;
  margin-right: 0;
}

.wp-block-image.is-style-image-frame-01 img,
.wp-block-image.is-style-image-frame-02 img {
  display: block;
  grid-column: 1;
  grid-row: 1;
  z-index: 1;
  max-width: 450px;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.wp-block-image.is-style-image-frame-01::after,
.wp-block-image.is-style-image-frame-02::after {
  content: "";
  grid-column: 1;
  grid-row: 1;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  justify-self: start;
  align-self: start;
  width: 100%;
  aspect-ratio: 1 / 1;
  pointer-events: none;
  z-index: 2;
}

.wp-block-image.is-style-image-frame-01::after {
  background-image: url("assets/images/image-frame-square-01.svg");
}

.wp-block-image.is-style-image-frame-02::after {
  background-image: url("assets/images/image-frame-square-02.svg");
}

.wp-block-cover.is-style-cover-frame-hero {
  position: relative;
  min-height: 0 !important;
  height: auto !important;
  aspect-ratio: auto !important;
}

.wp-block-cover.is-style-cover-frame-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("assets/images/image-frame-hero-12to5.svg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  pointer-events: none;
  z-index: 1;
}

@media (max-width: 781px) {
  .wp-block-cover.is-style-cover-frame-hero {
    aspect-ratio: auto !important;
    min-height: 500px !important;
    /* max-height: 100vh; */
  }

  .wp-block-cover.is-style-cover-frame-hero::after {
    background-image: url("assets/images/image-frame-hero-mobile-TOP.svg"),
      url("assets/images/image-frame-hero-mobile-BOTTOM.svg");
    background-position: center top, center bottom;
    background-repeat: no-repeat, no-repeat;
    background-size: 100% auto, 100% auto;
  }

  .wp-block-cover.is-style-cover-frame-hero .wp-block-columns {
    text-align: center;
    align-items: center;
    justify-content: center;
  }

  .wp-block-cover.is-style-cover-frame-hero .wp-block-buttons {
    justify-content: center;
  }

  .wp-block-cover.is-style-cover-frame-hero.hn-homepage-hero
    .wp-block-themeisle-blocks-slider {
    max-height: 260px;
    overflow: hidden;
  }

  .wp-block-cover.is-style-cover-frame-hero.hn-homepage-hero
    .wp-block-themeisle-blocks-slider
    .glide__slides,
  .wp-block-cover.is-style-cover-frame-hero.hn-homepage-hero
    .wp-block-themeisle-blocks-slider
    .glide__track,
  .wp-block-cover.is-style-cover-frame-hero.hn-homepage-hero
    .wp-block-themeisle-blocks-slider
    .wp-block-themeisle-blocks-slider-item {
    height: 260px !important;
  }

  .wp-block-cover.is-style-cover-frame-hero.hn-homepage-hero
    .wp-block-themeisle-blocks-slider
    img.wp-block-themeisle-blocks-slider-item {
    height: 260px !important;
    width: 100%;
    object-fit: cover;
  }
}

@media (min-width: 782px) and (max-width: 1193px) {
  body:not(.home):not(.front-page) .wp-block-cover.is-style-cover-frame-hero {
    padding-top: 120px !important;
    padding-bottom: 120px !important;
    min-height: calc(100vw * 5 / 12 + 100px) !important;
    aspect-ratio: auto !important;
  }
}

@media (min-width: 782px) and (max-width: 1193px) {
  body:not(.home):not(.front-page)
    .wp-block-cover.is-style-cover-frame-hero::after {
    background-image: url("assets/images/image-frame-hero-12to5.svg");
    background-position: center;
    background-size: auto 100%;
  }
}

@media (min-width: 1194px) and (max-width: 1499px) {
  body:not(.home):not(.front-page) .wp-block-cover.is-style-cover-frame-hero {
    aspect-ratio: 3 / 1 !important;
  }

  body:not(.home):not(.front-page)
    .wp-block-cover.is-style-cover-frame-hero::after {
    background-image: url("assets/images/image-frame-hero-3to1.svg");
  }
}

@media (min-width: 1194px) and (max-width: 1499px) {
  .wp-block-cover.is-style-cover-frame-hero.hn-contact-page-hero {
    aspect-ratio: 2 / 1 !important;
    min-height: 0 !important;
    height: auto !important;
  }

  .wp-block-cover.is-style-cover-frame-hero.hn-contact-page-hero::after {
    background-image: url("assets/images/image-frame-hero-2to1.svg");
  }
}

@media (min-width: 1194px) and (max-width: 1499px) {
  .wp-block-cover.is-style-cover-frame-hero.hn-contact-page-hero::before {
    content: "";
    display: block;
    padding-top: 50%;
  }

  .wp-block-cover.is-style-cover-frame-hero.hn-contact-page-hero
    > .wp-block-cover__inner-container,
  .wp-block-cover.is-style-cover-frame-hero.hn-contact-page-hero
    > .wp-block-cover__background,
  .wp-block-cover.is-style-cover-frame-hero.hn-contact-page-hero
    > img.wp-block-cover__image-background,
  .wp-block-cover.is-style-cover-frame-hero.hn-contact-page-hero::after {
    position: absolute;
    inset: 0;
  }
}

@media (min-width: 1500px) {
  .wp-block-cover.is-style-cover-frame-hero.hn-contact-page-hero {
    aspect-ratio: 12 / 5 !important;
  }

  .wp-block-cover.is-style-cover-frame-hero.hn-contact-page-hero::after {
    background-image: url("assets/images/image-frame-hero-12to5.svg");
  }
}

@media (min-width: 782px) and (max-width: 1376px) {
  body.home .wp-block-cover.is-style-cover-frame-hero,
  body.front-page .wp-block-cover.is-style-cover-frame-hero {
    padding-top: 120px !important;
    padding-bottom: 120px !important;
    min-height: calc(100vw * 5 / 12 + 100px) !important;
    aspect-ratio: auto !important;
  }

  body.home .wp-block-cover.is-style-cover-frame-hero::after,
  body.front-page .wp-block-cover.is-style-cover-frame-hero::after {
    background-image: url("assets/images/image-frame-hero-12to5.svg");
    background-position: center;
    background-size: auto 100%;
  }
}

@media (min-width: 1377px) and (max-width: 1499px) {
  body.home .wp-block-cover.is-style-cover-frame-hero,
  body.front-page .wp-block-cover.is-style-cover-frame-hero {
    aspect-ratio: 2 / 1 !important;
  }

  body.home .wp-block-cover.is-style-cover-frame-hero::after,
  body.front-page .wp-block-cover.is-style-cover-frame-hero::after {
    background-image: url("assets/images/image-frame-hero-2to1.svg");
  }
}

@media (min-width: 1500px) {
  .wp-block-cover.is-style-cover-frame-hero {
    aspect-ratio: 3 / 1 !important;
  }

  .wp-block-cover.is-style-cover-frame-hero::after {
    background-image: url("assets/images/image-frame-hero-3to1.svg");
  }
}

@media (min-width: 1500px) {
  body.home .wp-block-cover.is-style-cover-frame-hero,
  body.front-page .wp-block-cover.is-style-cover-frame-hero {
    aspect-ratio: 2 / 1 !important;
  }

  body.home .wp-block-cover.is-style-cover-frame-hero::after,
  body.front-page .wp-block-cover.is-style-cover-frame-hero::after {
    background-image: url("assets/images/image-frame-hero-2to1.svg");
  }
}

.wp-block-cover.is-style-cover-frame-hero > .wp-block-cover__inner-container {
  position: relative;
  z-index: 2;
}

.wp-block-image.is-style-image-frame-01 figcaption,
.wp-block-image.is-style-image-frame-02 figcaption {
  grid-column: 1;
  grid-row: 2;
}

.hero-image img {
  height: auto;
  width: clamp(240px, 40vw, 550px);
  max-width: 100%;
  object-fit: cover;
}

.wp-block-cover.is-style-cover-frame-hero.hn-homepage-hero .wp-block-columns {
  width: min(1200px, 100%);
  margin-left: auto;
  margin-right: auto;
  gap: clamp(24px, 4vw, 80px);
  padding: clamp(24px, 4vw, 80px);
}

.wp-block-cover.is-style-cover-frame-hero.hn-homepage-hero .hero-image img {
  width: min(550px, 42vw);
  height: auto;
  max-height: 450px;
}

.wp-block-image.hn--square img {
  max-height: 450px;
  height: 100%;
  width: 100%;
  object-fit: cover;
}

.wp-block-columns.section-with-image-right .wp-block-image.is-style-image-frame-01,
.wp-block-columns.section-with-image-right .wp-block-image.is-style-image-frame-02 {
  justify-items: end;
  margin-left: auto;
}

.wp-block-columns.section-with-image-right
  .wp-block-image.is-style-image-frame-01::after,
.wp-block-columns.section-with-image-right
  .wp-block-image.is-style-image-frame-02::after {
  justify-self: end;
}

@media (max-width: 1198px) {
  .wp-block-cover.is-style-cover-frame-hero {
    background-size: cover !important;
  }
}

@media (max-width: 1198px) {
  .wp-block-cover.is-style-cover-frame-hero {
    padding-top: 90px !important;
    padding-bottom: 90px !important;
  }
}

@media (max-width: 781px) {
  .hn-image-right .wp-block-columns {
    flex-direction: column-reverse;
  }
}

@media (max-width: 781px) {
  .hn-need-help-callout {
    flex-direction: column;
  }

  .hn-need-help-callout > .wp-block-group + .wp-block-group {
    border-left-width: 0 !important;
    border-top: 5px solid var(--wp--preset--color--green);
  }

  .hn-need-help-callout img {
    max-height: 100px;
    width: auto;
  }
}

@media (max-width: 781px) {
  footer .wp-block-columns {
    text-align: center;
  }

  footer .wp-block-image {
    margin-left: auto;
    margin-right: auto;
  }
}

footer .wp-block-group.has-dark-green-background-color {
  padding-top: var(--wp--preset--spacing--70) !important;
  padding-bottom: var(--wp--preset--spacing--70) !important;
}

footer .wp-block-columns {
  gap: var(--wp--preset--spacing--70);
}

footer .wp-block-columns > .wp-block-column:nth-child(2) img {
  width: 170px !important;
  height: auto !important;
}

footer .wp-block-columns > .wp-block-column:nth-child(3) img {
  width: 230px !important;
  height: auto !important;
}

@media (max-width: 599px) {
  header .wp-block-group.alignfull > .wp-block-group.has-global-padding {
    padding: 0 !important;
  }

  html.has-modal-open header
    .wp-block-group.alignwide.is-content-justification-space-between.is-nowrap.is-layout-flex {
    position: relative;
    z-index: 1001;
  }

  header .custom-logo-link img {
    width: 160px;
    height: 42px;
  }

  .wp-block-navigation__responsive-container-open {
    width: 44px;
    height: 44px;
    border-radius: 9999px;
    background: #ededed;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin-right: 8px;
  }

  .wp-block-navigation__responsive-container-open::before {
    content: none;
  }

  html.has-modal-open .wp-block-navigation__responsive-container-open {
    background: #a50c22;
  }

  html.has-modal-open .wp-block-navigation__responsive-container-open svg {
    display: none;
  }

  html.has-modal-open .wp-block-navigation__responsive-container-open::before {
    content: "";
    width: 24px;
    height: 24px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cpath fill='%23ffffff' d='m13.06 12 6.47-6.47-1.06-1.06L12 10.94 5.53 4.47 4.47 5.53 10.94 12l-6.47 6.47 1.06 1.06L12 13.06l6.47 6.47 1.06-1.06L13.06 12Z'/%3E%3C/svg%3E")
      center / 24px 24px no-repeat;
  }

  .wp-block-navigation__responsive-container.has-modal-open.is-menu-open {
    transform: translateY(86px) !important;
    padding-top: 0 !important;
    padding-right: 0 !important;
    padding-bottom: 0 !important;
    padding-left: 0 !important;
  }

  body.admin-bar
    .wp-block-navigation__responsive-container.has-modal-open.is-menu-open {
    transform: translateY(130px) !important;
  }

  .wp-block-group.alignwide.is-content-justification-space-between.is-nowrap.is-layout-flex {
    margin: 10px;
    width: calc(100% - 20px);
    border: 2px solid #e3e3e3;
    border-radius: 9999px;
    background: #ffffff;
    padding-top: 10px !important;
    padding-right: 10px !important;
    padding-bottom: 10px !important;
    padding-left: 10px !important;
  }

  .wp-block-navigation__responsive-container.has-modal-open {
    position: fixed;
    inset: 0;
    background: #ffffff;
    z-index: 1000;
  }

  .wp-block-navigation__responsive-dialog {
    position: relative;
    padding: 0 10px 16px;
    margin-top: 0 !important;
  }

  .wp-block-navigation__responsive-container-content {
    margin-top: 0;
    padding-top: 20px !important;
    padding-right: 16px;
    padding-bottom: 20px;
    padding-left: 16px;
    background: #f1f1f1;
    border-radius: 28px;
    box-shadow: none;
  }

  .wp-block-navigation__responsive-container-content
    .wp-block-navigation__container {
    background: transparent;
    padding: 0;
    margin: 0;
    list-style: none;
    gap: 0;
    width: 100%;
  }

  .wp-block-navigation__responsive-container-content
    .wp-block-navigation__container
    > .wp-block-navigation-item {
    padding: 12px 0;
    border-bottom: 2px solid var(--wp--preset--color--gray);
    width: 100%;
  }

  .wp-block-navigation__responsive-container-content
    .wp-block-navigation__container
    > .wp-block-navigation-item:last-child {
    border-bottom: 0;
  }

  .wp-block-navigation__responsive-container-content
    .wp-block-navigation-item__content {
    display: block;
    width: 100%;
    font-size: 18px;
    font-weight: 700;
    color: #333333;
  }

  .wp-block-navigation__responsive-dialog::before {
    content: none;
  }

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

  .wp-block-navigation__responsive-container-close svg {
    fill: #ffffff;
  }

  .wp-block-navigation__responsive-container-content
    .wp-block-navigation-item__content:focus,
  .wp-block-navigation__responsive-container-content
    .wp-block-navigation-item__content:focus-visible {
    outline: none;
    box-shadow: none;
  }
}

@media (min-width: 600px) {
  .wp-block-columns.alignwide {
    gap: 30px;
  }
}

@media (min-width: 1525px) {
  .wp-block-cover.is-style-cover-frame-hero {
    background-size: 100% auto !important;
  }
}

@media (min-width: 1250px) {
  .wp-block-cover.is-style-cover-frame-hero {
    padding-top: 80px !important;
    padding-bottom: 80px !important;
  }
}

@media (min-width: 1560px) {
  .wp-block-cover.is-style-cover-frame-hero {
    padding-top: 150px !important;
    padding-bottom: 150px !important;
  }
}

@media (min-width: 1500px) {
  body.home .wp-block-cover.is-style-cover-frame-hero::after,
  body.front-page .wp-block-cover.is-style-cover-frame-hero::after {
    background-image: url("assets/images/image-frame-hero-2to1.svg");
  }

  body:not(.home):not(.front-page)
    .wp-block-cover.is-style-cover-frame-hero::after {
    background-image: url("assets/images/image-frame-hero-3to1.svg");
    background-position: left center;
  }
}

body .gform_wrapper .gform_footer input.button,
body .gform_wrapper .gform_footer input[type="submit"] {
  border-radius: 0 !important;
  font-weight: 700 !important;
  font-size: 1rem !important;
  line-height: inherit !important;
  text-decoration: none !important;
  padding-top: var(--wp--preset--spacing--16) !important;
  padding-right: var(--wp--preset--spacing--28) !important;
  padding-bottom: var(--wp--preset--spacing--16) !important;
  padding-left: var(--wp--preset--spacing--28) !important;
}

/* Otter Blocks accordion */
.wp-block-themeisle-blocks-accordion
  .wp-block-themeisle-blocks-accordion-item[open]
  > .wp-block-themeisle-blocks-accordion-item__title {
  border-bottom: 0;
}

.wp-block-themeisle-blocks-accordion
  .wp-block-themeisle-blocks-accordion-item[open]
  > .wp-block-themeisle-blocks-accordion-item__content {
  border-top: 0;
  padding-top: 0;
}

.wp-block-themeisle-blocks-accordion
  .wp-block-themeisle-blocks-accordion-item[open]
  > .wp-block-themeisle-blocks-accordion-item__content::before {
  content: "";
  display: block;
  height: 2px;
  margin: 0 0 12px;
  background-color: var(--wp--preset--color--yellow);
}

.wp-block-themeisle-blocks-accordion
  .wp-block-themeisle-blocks-accordion-item__title
  svg {
  fill: var(--wp--preset--color--red);
  stroke: var(--wp--preset--color--red);
  width: 30px;
  height: 30px;
  transform: rotate(0deg);
  transform-origin: center;
  transition: transform 0.5s ease;
}

.wp-block-themeisle-blocks-accordion
  .wp-block-themeisle-blocks-accordion-item__title::after {
  color: var(--wp--preset--color--red);
  border-color: var(--wp--preset--color--red);
  font-size: 30px;
  transform: rotate(0deg);
  transform-origin: center;
  transition: transform 0.5s ease;
}

.wp-block-themeisle-blocks-accordion
  .wp-block-themeisle-blocks-accordion-item__content {
  display: block !important;
  max-height: 0 !important;
  opacity: 0;
  overflow: hidden;
}

.wp-block-themeisle-blocks-accordion
  .wp-block-themeisle-blocks-accordion-item[open]
  > .wp-block-themeisle-blocks-accordion-item__content {
  max-height: 9999px !important;
  opacity: 1;
  transition:
    max-height 2s ease,
    opacity 0.35s ease;
  will-change: max-height, opacity;
}

.wp-block-themeisle-blocks-accordion
  .wp-block-themeisle-blocks-accordion-item[open]
  > .wp-block-themeisle-blocks-accordion-item__title
  svg,
.wp-block-themeisle-blocks-accordion
  .wp-block-themeisle-blocks-accordion-item[open]
  > .wp-block-themeisle-blocks-accordion-item__title::after {
  transform: rotate(180deg);
}

.wp-block-themeisle-blocks-accordion
  .wp-block-themeisle-blocks-accordion-item__title:focus,
.wp-block-themeisle-blocks-accordion
  .wp-block-themeisle-blocks-accordion-item__title:focus-visible,
.wp-block-themeisle-blocks-accordion
  .wp-block-themeisle-blocks-accordion-item:focus-within {
  outline-color: color-mix(
    in srgb,
    var(--wp--preset--color--green) 25%,
    transparent
  );
}

.wp-block-themeisle-blocks-accordion
  .wp-block-themeisle-blocks-accordion-item:focus-within {
  outline-width: 2px;
  outline-style: solid;
  outline-offset: 2px;
}

.wp-block-themeisle-blocks-accordion
  .wp-block-themeisle-blocks-accordion-item__title:focus,
.wp-block-themeisle-blocks-accordion
  .wp-block-themeisle-blocks-accordion-item__title:focus-visible {
  outline: none;
}
