/*
 Theme Name:   Omaha Orthodontics
 Theme URI:    https://bricksbuilder.io/
 Description:  Custom Theme built by ReadySetSites for the Omaha Orthodontics website. Requires the Bricks Builder parent theme.
 Author:       Bricks
 Author URI:   https://readysetsites.com
 Template:     bricks
 Version:      2.0
 Text Domain:  bricks
*/

/* Starting state: slightly lowered & transparent */
.bricks-is-frontend .reveal-on-scroll {
  --reveal-y: 24px;
  --hover-y: 0px;

  opacity: 0;
  transform: translateY(calc(var(--reveal-y) + var(--hover-y)));
  transition:
    opacity 0.5s ease-out,
    transform 0.5s ease-out,
    box-shadow 0.25s ease;
  will-change: opacity, transform;
}

/* When visible in the viewport */
.bricks-is-frontend .reveal-on-scroll.is-visible {
  --reveal-y: 0px;
  opacity: 1;
}

.form-group.captcha {
    margin-bottom: var(--brxw-space-s);
}

/* Optional: gentle stagger for consecutive cards */
.bricks-is-frontend .reveal-on-scroll:nth-of-type(1) { transition-delay: 0.0s; }
.bricks-is-frontend .reveal-on-scroll:nth-of-type(2) { transition-delay: 0.16s; }
.bricks-is-frontend .reveal-on-scroll:nth-of-type(3) { transition-delay: 0.32s; }
.bricks-is-frontend .reveal-on-scroll:nth-of-type(4) { transition-delay: 0.48s; }

/* Hover lift for cards/blocks */
.bricks-is-frontend .jump-on-hover {
  --hover-y: 0px;
}

.bricks-is-frontend .jump-on-hover:hover {
  --hover-y: -8px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.10);
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  .bricks-is-frontend .reveal-on-scroll {
    --reveal-y: 0px;
    --hover-y: 0px;

    transition: none;
    opacity: 1;
    transform: none;
  }

  .bricks-is-frontend .jump-on-hover:hover {
    --hover-y: 0px;
    box-shadow: none;
  }
}

/* This changes all the animations globally */
:root {
  --animate-duration: 100ms;
  --animate-delay: 0.1s;
}

.oo-appointment-btn {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  min-height: 48px;
  padding: 12px 24px;
  border: 0;
  border-radius: 9999px;
  background: transparent;
  color: #073b3a;
  font-family: Montserrat, sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  letter-spacing: 0.4px;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.5s ease;
}

.oo-appointment-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  border-radius: inherit;
  background: #f5f6f0;
  transition: transform 0.5s cubic-bezier(0.25, 2, 0.5, 1.5);
}

.oo-appointment-btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 9999px;
  background: #8dc63f;
  transform: translateY(-50%) scale(0);
  transform-origin: center;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.oo-appointment-btn:hover {
  color: #073b3a;
}

.oo-appointment-btn:hover::before {
  transform: scaleX(1.05);
}

.oo-appointment-btn:hover::after {
  transform: translateY(-50%) scale(1.5);
}

.oo-appointment-btn-secondary {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  min-height: 48px;
  padding: 12px 24px;
  border: 0;
  border-radius: 9999px;
  background: transparent;
  color: #f5f6f0;
  font-family: Montserrat, sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  letter-spacing: 0.4px;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.5s ease;
}

.oo-appointment-btn-secondary::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  border-radius: inherit;
  background: #8cb846;
  transition: transform 0.5s cubic-bezier(0.25, 2, 0.5, 1.5);
}

.oo-appointment-btn-secondary::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 9999px;
  background: #f5f6f0;
  transform: translateY(-50%) scale(0);
  transform-origin: center;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.oo-appointment-btn-secondary:hover {
  color: #073b3a;
}

.oo-appointment-btn-secondary:hover::before {
  transform: scaleX(1.05);
}

.oo-appointment-btn-secondary:hover::after {
  transform: translateY(-50%) scale(1.5);
}

nav .menu-item-has-children button {
	padding-left: 0px !important;
}

nav .menu-item-has-children a {
    padding-right: 5px !important;
}

nav .menu-item-has-children .sub-menu a {
    padding-right: 20px !important;
}