/* HEADER STYLING */
* {
  box-sizing: border-box;
}

a:where(:not(.wp-element-button)) {
  text-decoration: none;
}

header.site-header {
  margin-top: 20px;
  position: fixed;
  transition: opacity 0.3s ease;
  width: 100%;
  z-index: 1;
}

.site-header.header-hidden {
  opacity: 0;
  visibility: hidden;
}

.site-header.header-visible {
  opacity: 1;
  visibility: visible;
}

.nav-button a,
.wp-block-button a,
.wp-block-button.is-style-fill a,
.wp-block-button.is-style-outline a,
.wpcf7 input.wpcf7-submit {
  align-items: center;
  border-radius: 6px;
  color: var(--wp--preset--color--pure-white);
  display: flex;
  font-family: var(--wp--preset--font-family--sora);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.25;
  padding: 12px 32px;
  transition: all 0.3s ease;
}

.nav-button a,
.wp-block-button a,
.wp-block-button.is-style-fill a {
  background: var(--wp--preset--color--primary);
  border: 1px solid var(--wp--preset--color--deep-purple);
}

.wp-block-button:hover a,
.nav-button:hover a {
  opacity: 0.85;
}

.wp-block-button.is-style-outline:hover a {
  background: var(--wp--preset--color--primary);
  border: 1px solid var(--wp--preset--color--deep-purple);
  color: var(--wp--preset--color--pure-white);
}

.wp-block-button.is-style-outline a,
.wpcf7 input.wpcf7-submit {
  background: transparent;
  border: 1px solid var(--wp--preset--color--pure-white);
}

.wp-block-navigation-item .wp-block-navigation-item__content {
  overflow: hidden;
  text-decoration: none;
  transition: all 0.3s ease;
}

.wp-block-navigation-item .wp-block-navigation-item__content:hover {
  color: var(--wp--preset--color--light-extra);
}

.wp-block-navigation-item.nav-button .wp-block-navigation-item__content:hover {
  color: var(--wp--preset--color--pure-white);
}

/* Homepage Stylings */
.square-box {
  aspect-ratio: 1;
  flex: none;
}

.square-box figure {
  line-height: 1;
}

.object-cover {
  height: 100%;
}

.cover-image {
  display: contents;
}

.hover-effect * {
  transition: all 0.3s ease;
}

.hover-effect a:hover {
  color: var(--wp--preset--color--primary);
}

/* FORM STYLINGS */
form * {
  line-height: 1;
}

.form-container {
  box-shadow: 0 20px 40px rgb(124 106 242 / 25%);
}

::placeholder {
  color: var(--wp--preset--color--contrast);
}

.wpcf7-form-control-wrap .wpcf7-not-valid-tip {
  color: red;
  font-size: 0.8rem;
  font-weight: normal;
  left: 0;
  position: absolute;
  top: calc(100% + 5px);
  width: 100%;
}

.wpcf7 label {
  display: flex;
  flex-flow: column wrap;
  font-size: 18px;
  font-weight: 600;
  gap: 8px;
  line-height: 1.25;
}

.wpcf7 input,
.wpcf7 select,
.wpcf7 textarea {
  border: 1px solid var(--wp--preset--color--contrast);
  border-radius: 6px;
  color: var(--wp--preset--color--deep-purple);
  font-family: var(--wp--preset--font-family--sora);
  font-size: 18px;
  line-height: 1.2;
  padding: 12px;
  width: 100%;
}

.wpcf7 select {
  appearance: none;
  background: url("/wp-content/themes/ascension/assets/images/caret-down.png")
    no-repeat 98% 50%;
  background-size: 20px;
}

.wpcf7-acceptance .wpcf7-list-item {
  margin-left: 0;
}

.wpcf7-acceptance label {
  align-items: flex-start;
  flex-flow: row nowrap;
}

.wpcf7 input[type="checkbox"] {
  height: 16px;
  margin: 0;
  width: 16px;
}

.wpcf7 input.wpcf7-submit {
  border-color: var(--wp--preset--color--contrast);
  color: var(--wp--preset--color--contrast);
  cursor: pointer;
  width: auto;
}

.wpcf7 p {
  margin: 0 0 30px;
}

.wpcf7 p:last-child {
  margin-bottom: 0;
}

.wpcf7 p:has(.wpcf7-submit) {
  display: flex;
  justify-content: center;
  margin-bottom: 0;
  position: relative;
}

.wpcf7 form .wpcf7-response-output:empty {
  display: none;
}

.wpcf7-spinner {
  margin: 5px 0;
  position: absolute;
  top: 100%;
}

.wpcf7 form.sent .wpcf7-response-output {
  border: 1px solid var(--wp--preset--color--primary);
  border-radius: 2px;
  margin-bottom: 0;
  padding: 0.5rem;
  text-align: center;
}

.wpcf7 input:focus::placeholder,
.wpcf7 select:focus::placeholder,
.wpcf7 textarea:focus::placeholder {
  color: transparent;
}

.wpcf7 input:focus,
.wpcf7 select:focus,
.wpcf7 textarea:focus {
  border-color: var(--wp--preset--color--primary);
  outline: var(--wp--preset--color--primary);
}

footer {
  margin: 0;
}

/* RESPONSIVE STYLINGS  */
@media screen and (width <=767px) {
  .site-header > .wp-block-group > .wp-block-group {
    background: var(--wp--preset--color--deep-purple) !important;
    flex-wrap: nowrap;
  }

  .wp-block-navigation__responsive-container-open:not(.always-shown) {
    display: block;
  }

  .wp-block-navigation__responsive-container:not(
    .hidden-by-default,
    .is-menu-open
  ) {
    display: none !important;
  }

  .wp-block-navigation__responsive-container {
    color: var(--wp--preset--color--pure-white) !important;
  }

  .nav-button .wp-block-navigation-item__content {
    border-color: var(--wp--preset--color--pure-white);
    padding: 12px 32px !important;
  }

  main .entry-content > section {
    margin: 0;
    padding-bottom: 60px !important;
    padding-top: 60px !important;
  }

  section#banner {
    padding-bottom: 0 !important;
    padding-top: 0 !important;
  }

  #banner > .wp-block-cover {
    min-height: 80vh !important;
    padding-bottom: 120px !important;
    padding-top: 120px !important;
  }

  #about .wp-block-columns .wp-block-column {
    padding-right: 0 !important;
  }

  .about-first-col img,
  .about-second-col img {
    width: 100%;
  }

  section .wp-block-columns .wp-block-column * {
    text-align: center;
  }

  #services > .wp-block-group > .wp-block-group * {
    text-align: left;
  }

  #services > .wp-block-group,
  #services > .wp-block-group > .wp-block-group {
    margin-block-start: 0;
  }

  #services > .wp-block-group > .wp-block-group.alignfull {
    margin-bottom: 30px;
    margin-top: 30px;
    padding-bottom: 30px !important;
    padding-top: 30px !important;
  }

  #services > .wp-block-group > .wp-block-group.alignfull .services-list-item {
    padding: 0 !important;
  }

  #services .wp-block-column {
    height: 100%;
  }

  .services-image-block {
    height: 350px;
  }

  .about-second-col,
  #services > .wp-block-group > .wp-block-group.alignwide,
  section .wp-block-buttons {
    margin-top: 30px;
  }

  .form-container {
    padding: 20px !important;
  }

  #contact .wpcf7 * {
    text-align: left;
  }
}
