/*
 Theme Name: Twenty Twenty-Five Child
 Theme URI: https://createbetter.design
 Description: Child theme for Twenty Twenty-Five with custom CSS and functions.
 Author: Chris
 Author URI: https://createbetter.design 
 Template: twentytwentyfive
 Version: 1.0.0
 Text Domain: twentytwentyfive-child
*/
/*
 Theme Name: Twenty Twenty-Five Child
 Theme URI: https://createbetter.design
 Description: Child theme for Twenty Twenty-Five with custom CSS and functions.
 Author: Chris
 Author URI: https://createbetter.design 
 Template: twentytwentyfive
 Version: 1.0.0
 Text Domain: twentytwentyfive-child
*/
h1 {
  display: block;
}

.wp-block-group[style*=border-radius],
.wp-block-column[style*=border-radius] {
  overflow: hidden;
}

.wp-block-column figure.size-full img {
  width: 100%;
}

h3.line-above {
  display: block;
  position: relative;
  margin-top: 30px !important;
}

h3.line-above:before {
  position: absolute;
  display: block;
  left: 0;
  top: -20px;
  width: 80px;
  height: 3px;
  content: "";
  background-color: #2C4737;
}

div.wp-block-column.has-accent-1-background-color h3.line-above:before,
div.wp-block-column.has-accent-3-background-color h3.line-above:before {
  background-color: rgba(255, 255, 255, 0.8);
}

/*
 Theme Name: Twenty Twenty-Five Child
 Theme URI: https://createbetter.design
 Description: Child theme for Twenty Twenty-Five with custom CSS and functions.
 Author: Chris
 Author URI: https://createbetter.design 
 Template: twentytwentyfive
 Version: 1.0.0
 Text Domain: twentytwentyfive-child
*/
header.wp-block-template-part {
  position: sticky;
  top: var(--wp-admin--admin-bar--height, 0);
  z-index: 10;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
}

.nav-highlight a {
  background-color: #5A6C57 !important;
  padding: 12px 18px !important;
  display: inline-block;
  color: white !important;
  border-radius: 12px;
  text-decoration: none;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.nav-highlight a:hover {
  background-color: #fff !important;
  color: rgba(0, 0, 0, 0.8) !important;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
}

/*
div.wp-block-navigation__responsive-container {
  &.is-menu-open {
    width:100vw!important;
    height: 100vh!important;
    display: block!important; 
    position: absolute!important; 

  }


}
*/
/*
 Theme Name: Twenty Twenty-Five Child
 Theme URI: https://createbetter.design
 Description: Child theme for Twenty Twenty-Five with custom CSS and functions.
 Author: Chris
 Author URI: https://createbetter.design 
 Template: twentytwentyfive
 Version: 1.0.0
 Text Domain: twentytwentyfive-child
*/
.search-form {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  max-width: 100%;
  padding: 0.5rem;
  background: #f9f9f9;
  border-radius: 8px;
  border: 1px solid #ccc;
}
@media (max-width: 500px) {
  .search-form {
    flex-direction: column;
    align-items: stretch;
  }
}
.search-form label {
  flex: 1;
  margin: 0;
}
.search-form .screen-reader-text {
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}
.search-form .search-field {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  background-color: #fff;
  transition: border-color 0.2s ease;
}
.search-form .search-field:focus {
  border-color: #b74b24;
  outline: none;
  box-shadow: 0 0 0 2px rgba(183, 75, 36, 0.2);
}
.search-form .search-submit {
  padding: 0.75rem 1.25rem;
  font-size: 1rem;
  border: none;
  border-radius: 6px;
  background-color: #b74b24;
  color: #fff;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.search-form .search-submit:hover, .search-form .search-submit:focus {
  background-color: black;
  outline: none;
}

/*
 Theme Name: Twenty Twenty-Five Child
 Theme URI: https://createbetter.design
 Description: Child theme for Twenty Twenty-Five with custom CSS and functions.
 Author: Chris
 Author URI: https://createbetter.design 
 Template: twentytwentyfive
 Version: 1.0.0
 Text Domain: twentytwentyfive-child
*/
div.wpcf7 {
  width: 100%;
}
div.wpcf7 * {
  box-sizing: border-box;
}

form.wpcf7-form {
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 40px;
  font-family: "Open Sans", sans-serif;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
form.wpcf7-form p + p {
  padding-top: 0;
}
@media (max-width: 768px) {
  form.wpcf7-form {
    padding: 1.5rem 1rem;
  }
}
form.wpcf7-form p {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
form.wpcf7-form label {
  font-weight: 600;
  font-size: 1rem;
  color: #222;
}
form.wpcf7-form input[type=text],
form.wpcf7-form input[type=email],
form.wpcf7-form input[type=tel],
form.wpcf7-form input[type=url],
form.wpcf7-form input[type=number],
form.wpcf7-form select,
form.wpcf7-form textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  background-color: #fafafa;
  transition: border-color 0.2s;
}
form.wpcf7-form input[type=text]:focus,
form.wpcf7-form input[type=email]:focus,
form.wpcf7-form input[type=tel]:focus,
form.wpcf7-form input[type=url]:focus,
form.wpcf7-form input[type=number]:focus,
form.wpcf7-form select:focus,
form.wpcf7-form textarea:focus {
  outline: 2px solid rgba(0, 0, 0, 0.5);
  outline-offset: 2px;
  background-color: #fff;
}
form.wpcf7-form textarea {
  resize: vertical;
  height: 160px;
}
form.wpcf7-form select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23333' stroke-width='1.5' fill='none' fill-rule='evenodd'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 10px;
}
form.wpcf7-form .wpcf7-radio,
form.wpcf7-form .wpcf7-checkbox {
  display: flex;
  flex-direction: row;
  gap: 1.5rem;
  padding: 0.5rem 0;
}
form.wpcf7-form .wpcf7-radio input[type=radio],
form.wpcf7-form .wpcf7-radio input[type=checkbox],
form.wpcf7-form .wpcf7-checkbox input[type=radio],
form.wpcf7-form .wpcf7-checkbox input[type=checkbox] {
  margin-right: 0.5rem;
}
form.wpcf7-form .wpcf7-radio label,
form.wpcf7-form .wpcf7-checkbox label {
  font-weight: 400;
  display: flex;
  align-items: center;
  font-size: 1rem;
}
form.wpcf7-form input[type=submit] {
  cursor: pointer;
  padding: 0.9rem 1.5rem;
  font-size: 1rem;
  border: none;
  border-radius: 6px;
  background-color: black;
  color: #fff;
  transition: background-color 0.2s ease;
}
form.wpcf7-form input[type=submit]:hover, form.wpcf7-form input[type=submit]:focus {
  background-color: black;
  outline: none;
}
form.wpcf7-form input[type=submit]:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
form.wpcf7-form .wpcf7-acceptance {
  font-size: 0.9rem;
}
form.wpcf7-form .wpcf7-acceptance a {
  color: green;
  text-decoration: underline;
}
form.wpcf7-form .wpcf7-acceptance a:hover {
  text-decoration: none;
}
form.wpcf7-form .wpcf7-response-output {
  margin-top: 1rem;
  font-size: 0.95rem;
  padding: 1rem;
  border-radius: 6px;
}
form.wpcf7-form .wpcf7-mail-sent-ok {
  background-color: #e6ffed;
  color: #2e7d32;
  border: 1px solid #2e7d32;
}
form.wpcf7-form .wpcf7-validation-errors {
  background-color: #fff3cd;
  color: #856404;
  border: 1px solid #ffeeba;
}
form.wpcf7-form .wpcf7-not-valid-tip {
  font-size: 0.85rem;
  color: green;
  margin-top: 0.25rem;
}

/*
 Theme Name: Twenty Twenty-Five Child
 Theme URI: https://createbetter.design
 Description: Child theme for Twenty Twenty-Five with custom CSS and functions.
 Author: Chris
 Author URI: https://createbetter.design 
 Template: twentytwentyfive
 Version: 1.0.0
 Text Domain: twentytwentyfive-child
*/
div.wp-block-button a.wp-block-button__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
div.wp-block-button a.wp-block-button__link img, div.wp-block-button a.wp-block-button__link svg {
  display: block;
}
div.wp-block-button a.wp-block-button__link:hover {
  background-color: #fff !important;
  border: 1px solid #fff !important;
  color: rgba(0, 0, 0, 0.8) !important;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
}

/*
 Theme Name: Twenty Twenty-Five Child
 Theme URI: https://createbetter.design
 Description: Child theme for Twenty Twenty-Five with custom CSS and functions.
 Author: Chris
 Author URI: https://createbetter.design 
 Template: twentytwentyfive
 Version: 1.0.0
 Text Domain: twentytwentyfive-child
*/
html {
  scroll-behavior: smooth;
}

:target {
  scroll-margin-top: 100px; /* height of your sticky nav */
}

/* Default bottom-up */
.wp-auto-animate {
  transform: translateY(10px);
  transition: transform 0.5s ease-out;
  will-change: transform;
}

/* Left */
.wp-auto-animate-left {
  transform: translateX(-10px);
}

/* Right */
.wp-auto-animate-right {
  transform: translateX(10px);
}

/* Visible = neutral */
.wp-animate-visible {
  transform: translateX(0) translateY(0);
}

/*
 Theme Name: Twenty Twenty-Five Child
 Theme URI: https://createbetter.design
 Description: Child theme for Twenty Twenty-Five with custom CSS and functions.
 Author: Chris
 Author URI: https://createbetter.design 
 Template: twentytwentyfive
 Version: 1.0.0
 Text Domain: twentytwentyfive-child
*/
.negative-margin-top.top-50 {
  margin-top: -50px !important;
}
.negative-margin-top.top-60 {
  margin-top: -60px !important;
}
.negative-margin-top.top-70 {
  margin-top: -70px !important;
}
.negative-margin-top.top-80 {
  margin-top: -80px !important;
}
.negative-margin-top.top-90 {
  margin-top: -90px !important;
}
.negative-margin-top.top-100 {
  margin-top: -100px !important;
}
.negative-margin-top.top-110 {
  margin-top: -110px !important;
}
.negative-margin-top.top-120 {
  margin-top: -120px !important;
}
.negative-margin-top.top-130 {
  margin-top: -130px !important;
}
.negative-margin-top.top-140 {
  margin-top: -140px !important;
}
.negative-margin-top.top-150 {
  margin-top: -150px !important;
}
.negative-margin-top.top-160 {
  margin-top: -160px !important;
}
.negative-margin-top.top-170 {
  margin-top: -170px !important;
}
.negative-margin-top.top-180 {
  margin-top: -180px !important;
}
.negative-margin-top.top-190 {
  margin-top: -190px !important;
}
.negative-margin-top.top-200 {
  margin-top: -200px !important;
}

.wp-block-columns .wp-block-column:has(.cta-bottom) {
  display: flex !important;
  flex-direction: column;
  flex: 1;
  flex-wrap: nowrap;
  align-items: flex-start;
  justify-content: space-between;
}
.wp-block-columns .wp-block-column:has(.cta-bottom) > .wp-block-group {
  min-height: 500px;
  position: relative;
}
@media (max-width: 1096px) {
  .wp-block-columns .wp-block-column:has(.cta-bottom) > .wp-block-group {
    min-height: 540px;
  }
}
@media (max-width: 830px) {
  .wp-block-columns .wp-block-column:has(.cta-bottom) > .wp-block-group {
    min-height: 600px;
  }
}
@media (max-width: 740px) {
  .wp-block-columns .wp-block-column:has(.cta-bottom) > .wp-block-group {
    min-height: auto;
  }
}
.wp-block-columns .wp-block-column:has(.cta-bottom) > .wp-block-group .wp-block-group.cta-bottom {
  position: absolute;
  bottom: 30px;
}
@media (max-width: 740px) {
  .wp-block-columns .wp-block-column:has(.cta-bottom) > .wp-block-group .wp-block-group.cta-bottom {
    position: relative;
    bottom: auto;
  }
}

@media (max-width: 950px) {
  .horizontal-teaser figure {
    flex-basis: 390px;
  }
}
@media (max-width: 890px) {
  .horizontal-teaser {
    flex-wrap: wrap;
  }
  .horizontal-teaser figure {
    flex-basis: 100%;
    height: 250px;
  }
  .horizontal-teaser figure img {
    height: 250px;
  }
}

@media (max-width: 780px) {
  .mobile-hidden {
    display: none !important;
  }
}

figure,
figure img,
.wp-block-image svg,
.icon,
svg {
  flex-shrink: 0 !important;
}
