/*
Theme Name: Kontour
Theme URI: https://tassu.net
Author: Nick Niles
Author URI: https://tassu.net
Description: A custom WordPress theme built exclusively for Dr. Justin Jones Plastic Surgery. Requires at least: 6.7
Tested up to: 6.7
Requires PHP: 7.2
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kontour
Tags: health, wellness, plastic-surgery, custom-colors, custom-menu, custom-logo, editor-style, featured-images, full-site-editing, block-patterns, wide-blocks, block-styles, grid-layout, one-column, two-columns, accessibility-ready, translation-ready, minimal
*/

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

@import url("https://use.typekit.net/csi6oul.css");

html {
  -webkit-font-smoothing: antialiased;
}

body.menu-visible {
  overflow: hidden;
  overflow-y: scroll;
  position: fixed;

  .overlay-bg {
    display: block;
  }
}

/* Focus styles */
:where(.wp-site-blocks *:focus) {
  outline-width: 0;
  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;
}

/*
 * 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;
  -webkit-font-smoothing: antialiased;
}

.hidden {
  display: none;
}

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

@keyframes bounceArrow {
  0%,
  100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(-10%);
  }
}

footer {
  margin-top: 0 !important;
}

.wp-block-button__link {
  min-width: 320px;
}

.wp-block-button__link:focus {
  outline: none;
}

.wp-block-button__link:hover {
  /* text-decoration: underline;
  text-decoration-line: underline; */
  /* text-decoration-thickness: 3px; */
  text-underline-offset: 12px;
}

.wp-block-button__link:hover::before {
  animation: bounceArrow 1s ease-in-out infinite;
}

summary:hover {
  cursor: pointer;
  text-decoration: underline;
}

.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10;
}

.bring-front {
  z-index: 100;
}

.slim-header {
  box-shadow: 0px 4px 22px rgb(0 0 0 / 14%);
  background-color: rgba(244, 243, 238, 0.9);
}

/* Cool Fade In Animation */
@keyframes fadeIn {
  0% {
    opacity: 0;
    filter: brightness(1) blur(20px);
  }
  10% {
    opacity: 1;
    filter: brightness(1) blur(10px);
  }
  100% {
    opacity: 1;
    filter: brightness(1) blur(0);
  }
}

.fade-in {
  /* animation: fadeIn .5s ease-in-out; */
}

/* REVEAL ANIMATION */

@keyframes reveal {
  0% {
    mask: linear-gradient(90deg, #000 25%, #000000e6 50%, #00000000) 150% 0 /
      400% no-repeat;
    opacity: 0.2;
  }
  100% {
    mask: linear-gradient(90deg, #000 25%, #000000e6 50%, #00000000) 0 / 400%
      no-repeat;
    opacity: 1;
  }
}

.reveal {
  animation: reveal 1s ease-in-out;
  animation-fill-mode: forwards;
  animation-delay: 1s;
}

#site-logo {
  transition: color 0.5s ease;
  width: clamp(100px, 10vw, 200px);

  svg {
    width: 100%;
    height: 100%;
    /* filter: drop-shadow(0 1px rgba(0, 0, 0, 0.5)); */
  }
}

.top-nav ul li {
  padding: 0;
  border-bottom: 3px solid transparent;
  transition: border-color 0.3s ease;
  /* margin-bottom: .125rem; */

  &.reserve-now-button {
    background-color: var(--wp--preset--color--blue-ridge-tint-medium);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 5rem;
    transition: background-color 0.3s ease;
    border: none;
    margin-bottom: 0.25rem;

    &:hover {
      background-color: var(--wp--preset--color--blue-ridge-primary);
      color: #fff;
      border: none;
    }
  }
}

.top-nav ul li:hover {
  border-bottom: 3px solid var(--wp--preset--color--blue-ridge-tint-light);

  a {
    text-decoration: none;
  }
}

.parallax-container {
  position: relative;
  overflow: hidden;
  /* width: 100%; */
  /* height: 400px; Adjust height as needed */
}

.parallax-container picture {
  position: absolute;
  top: -20%; /* Creates extra space for the parallax movement */
  left: 0;
  width: 100%;
  height: 120%; /* Larger than container to allow movement */
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  will-change: transform; /* Optimizes performance */
  transform: translateZ(0); /* Forces GPU acceleration */
  /* border: 1px solid blue; */
}

.highlights-grid {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 2rem;

  & > * {
    padding: 2rem;
    min-width: 300px;
    text-align: center;
    align-items: center;
    align-content: flex-start;
    justify-items: center;
    justify-content: center;
  }

  @media (min-width: 768px) and (max-width: 1149px) {
    & > * {
      flex: 0 1 calc((100% - 2rem) / 2);
    }
  }

  @media (min-width: 1150px) {
    & > * {
      flex: 0 1 calc((100% - 4rem) / 3);
    }
  }
}

/* Customize details marker */
details > summary {
  list-style: none; /* Removes the default marker */
  cursor: pointer;
  font-weight: 500;
}

details > summary::before {
  content: "+"; /* You can change this to any character or use a custom icon */
  display: inline-block;
  margin-right: 0.5em;
  transition: transform 0.2s;
}

details[open] > summary::before {
  transform: rotate(45deg); /* Rotates the + to make an x when open */
}

.wp-block-cover.zoom-hover {
  overflow: hidden;
}

.wp-block-cover.zoom-hover .wp-block-cover__image-background {
  transition: transform 0.5s ease;
  will-change: transform;
}

.wp-block-cover.zoom-hover:hover .wp-block-cover__image-background {
  transform: scale(1.05);
}

/* Add overlay transition */
.wp-block-cover.zoom-hover .wp-block-cover__background {
  transition: opacity 0.5s ease;
  /* opacity: 0.5; */
}

.wp-block-cover.zoom-hover:hover .wp-block-cover__background {
  opacity: 0.2; /* Hover overlay opacity - adjust as needed */
}

.reasons-grid {
  gap: 2rem;
  display: flex;
  flex-direction: column;

  @media (min-width: 768px) {
    gap: 0.5rem;
  }

  .reason-row {
    gap: 0;

    & > * {
      box-sizing: border-box;
    }

    & > *:nth-child(2) {
      background-color: var(--wp--preset--color--blue-ridge-tint-light);
      padding: 2rem;
      align-content: center;
    }

    @media (min-width: 768px) {
      flex-direction: row;
      flex-basis: 100%;
      gap: 0.5rem;
      & > * {
        flex: 1; /* Ensures equal width for each child */
      }
    }

    &:nth-child(even) {
      flex-direction: row-reverse;
    }
  }
}

.elegant-nav.logo-light {
  color: white;
}

.elegant-nav.logo-dark {
  color: black;
}

.hero-text {
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.5);
}

.subtitle {
  font-family: var(--wp--preset--font-family--itc-avant-garde-gothic-pro);
  font-weight: 300;
  font-size: var(--wp--preset--font-size--large);
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.5em;
  margin-bottom: 1rem;
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;

  &.subtitle-plum {
    color: var(--wp--preset--color--plum-light);
  }

  &.subtitle-normal {
    text-transform: none;
    text-align: left;
    margin-left: 0;
    margin-right: 0;
    letter-spacing: 0;
  }
}

.hero-text {
  text-shadow: 4px 4px 4px rgba(0, 0, 0, 0.35);
}

.social-link-wrapper:hover {
  border-color: #c57ca7 !important;
}

.link-border {
  border-bottom: 1px solid currentColor;
  width: fit-content;
  padding-bottom: 0.25em;
  text-decoration: none;

  a {
    text-decoration: none;
  }
}

.services-list ul {
  list-style: none;
  padding-left: 0;

  li {
    padding-left: 0;
    border-bottom: 1px solid rgba(52, 18, 82, 0.3);
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    font-size: 1rem;

    a {
      text-decoration: none;
    }
  }
}

.main-header {
  position: relative;
  padding-top: 3rem;

  .topbar {
   background-color: var(--wp--preset--color--charcoal);
   .logo-wide {
    display: none;
   }
   .logo-tall {
    display: block;
    width: 200px;
    margin-inline: auto;
   }
  }

  @media (min-width: 1024px) {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10;
    background-color: transparent;
    background-color: var(--wp--preset--color--charcoal);
    padding-top: 0;
    
    .home &,
    .no-top-padding & {
      background-color: transparent;
    }
    
    .logo-wide {
      display: none;
    }
    
    .topbar {
      .logo-tall {
        margin: 0;
        margin-right: auto;
      }

      /* .logo-wide {
        display: block;
        margin: 0;
        margin-right: auto;
      } */

      &.scrolled {
        background-color: var(--wp--preset--color--charcoal);
        
        .logo-wide {
          display: block;
          margin: 0;
          margin-right: auto;
        }
        
        .logo-tall {
          display: none;
          margin-inline: 0;
        }
      }
      
      ul li a {
        color: white;
        font-size: 1.125rem;
        text-transform: uppercase;
      }
      
      .menu-visible & {
        background-color: var(--wp--preset--color--charcoal);
      }
    }
  }
}

main {
  padding-top: 3rem !important;

  
  .home &,
  .no-top-padding & {
    padding-top: 0 !important;
    margin-top: 0 !important;
  }

  @media (min-width: 1024px) {
    padding-top: 14rem !important;

    .home &,
    .no-top-padding & {
      padding-top: 8rem !important;
      margin-top: 0 !important;
    }
  }
}

.wp-block-cover.has-text-shadow {
  text-shadow: 4px 4px 4px rgba(0, 0, 0, 0.35);
}

.wp-block-cover a {
  color: white;
}

.hours-table tr {
  vertical-align: baseline;
}

.ham {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.4s;
  -webkit-user-select: none;
  user-select: none;
  display: inherit;
  stroke: currentColor;
}

.menu-visible .hamRotate {
  transform: rotate(45deg);
}

.hamRotate180.ham-close {
  transform: rotate(180deg);
}

.line {
  fill: none;
  transition: stroke-dasharray 0.4s, stroke-dashoffset 0.4s;
  stroke-width: 5.5;
  stroke-linecap: round;
}

.hamWave .bottom,
.hamWave .top {
  stroke-dasharray: 40 121;
}

.menu-visible .hamWave .bottom,
.menu-visible .hamWave .top {
  stroke-dashoffset: -68px;
}

#mega-menu h2 {
  font-weight: 300 !important;
  margin-bottom: 2rem !important;
}

.testimonials-wrapper .wp-block-separator {
  width: 100px;
  margin-inline: auto;
}

.post-header {
  .topbar {
    background-color: var(--wp--preset--color--charcoal);
  }
}

dl {
  dt {
    font-weight: 500;
    text-transform: uppercase;
  }

  dd {
    margin: 0;
  }
}

#mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background-color: #fff;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  a {
    font-size: .875rem;
    text-decoration: none;
    text-transform: uppercase;
  }
  @media (min-width: 1024px) {
    display: none;
  }

  nav {
    button {
      text-transform: uppercase;
      font-size: .875rem;
    }

    ul {
      padding-top: 0;
    }

    ul li {
      a {
        text-transform: none;
        font-weight: 500;
        color: var(--wp--preset--color--plum);
      }

            ul li a {
        text-transform: none;
        font-weight: 300;
      }
    }

    }
  }


.reverse-mobile {
    flex-direction: column-reverse;
}

.social-banner {
  svg {
    width: 44px;
    height: 44px;
  }
}

.reverse-wide {
  @media screen and (min-width: 1024px) {
    flex-direction: row-reverse;
  }
}

.page-list {
  list-style: none;
  padding-left: 0;

  li {
    padding-left: 0;
    padding-bottom: 1rem;
  }
}

.wpforms-form {
  --wpforms-label-color: white;
  --wpforms-field-background-color: rgba(0, 0, 0, 0.1);
  --wpforms-field-text-color: white;
  --wpforms-field-border-width: 0;
  --wpforms-field-border-radius: 0;
  --wpforms-field-border-radius-size: 0;
  --wpforms-field-border-radius-size-top: 0;
  --wpforms-field-border-radius-size-bottom: 0;
  --wpforms-field-border-radius-size-left: 0;
  --wpforms-field-border-radius-size-right: 0;
  --wpforms-field-size-input-spacing: .5rem;
  --wpforms-button-background-color: var(--wp--preset--color--plum);
  --wpforms-label-error-color: #ff773d;

  input {
    max-width: 100% !important;
  }
}

figure.center-mobile {
  width: 100%;
  margin-inline: auto;
  text-align: center;

  @media (min-width: 800px) {
    width: unset;
    margin-inline: unset;
  }
}

.center-mobile-box {
  width: 100%;
  text-align: center;

  .wp-block-button, .wp-element-button {
    width: 100%;
  }

  h2, p {
    text-align: center;
  }

  @media (min-width: 800px) {
    width: unset;
    text-align: left;

    .wp-block-button, .wp-element-button {
      width: unset;
    }

    h2, p {
      text-align: left;
    }
  }
}