/*
Theme Name: patient-profit
Theme URI: 
Author: 
Description: 
Requires at least: 6.9
Tested up to: 6.9
Author URI: 
Requires PHP: 5.7
Version: 
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: patient-profit
Tags: 
*/

/* Variables */
:root {
  --radius-none: 0;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  --gradient-animated: linear-gradient(120deg, #00a0f3, #04f9f2, #0000ff);
  --gradient-speed: 6s;

  /* shadows */
  /* shadow for the light theme */
  --shadow-color: 0deg 0% 0%;
  --shadow-elevation-low: 0px 0.2px 0.2px hsl(var(--shadow-color) / 0.2),
    0px 0.7px 0.7px -3.2px hsl(var(--shadow-color) / 0.15);
  --shadow-elevation-medium: 0px 0.2px 0.2px hsl(var(--shadow-color) / 0.19),
    0px 0.8px 0.8px -1.6px hsl(var(--shadow-color) / 0.16),
    0px 3.4px 3.4px -3.2px hsl(var(--shadow-color) / 0.13);
  --shadow-elevation-high: 0px 0.2px 0.2px hsl(var(--shadow-color) / 0.21),
    0px 1.3px 1.3px -0.8px hsl(var(--shadow-color) / 0.19),
    0px 3.4px 3.4px -1.6px hsl(var(--shadow-color) / 0.17),
    0px 8.1px 8.2px -2.4px hsl(var(--shadow-color) / 0.15),
    0.1px 17px 17.2px -3.2px hsl(var(--shadow-color) / 0.13);
}

/* html.theme-light {
  --gradient-animated: linear-gradient(120deg, #00a0f3, #04f9f2, #0000ff);
} */

body {
  margin: 0;
  font-size: 16px;

  /* background-color: transparent; */
  background-color: var(--wp--preset--color--dark-blue);
  color: var(--wp--preset--color--white);
  font-family: var(--wp--preset--font-family--inter);
  padding: 0 !important;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

/* Page block resets */
.wp-block-patient-profit-about-us-page,
.wp-block-patient-profit-contact-us-page,
.wp-block-patient-profit-blog-page,
.wp-block-patient-profit-single-blog-page {
  margin: 0 !important;
  padding: 0 !important;
}

html {
  overflow-x: hidden !important;

  scrollbar-width: thin;
  scrollbar-color: var(--wp--preset--color--blue-grotto) transparent;
  /* scroll-behavior: smooth; */
}

.theme-light body,
html.theme-light body {
  background-color: #f6f8fc;
  color: #0f172a;
}

h1,
h2,
h3 {
  font-family: var(--wp--preset--font-family--sora) !important;
}

/* 1. Hide the elements immediately if they have the animation class */
h1.animate-typing,
h2.animate-typing,
h3.animate-typing,
.hero-section__content .hero-section__subtitle.animate-typing {
  opacity: 0;
  visibility: hidden;
  transition: none; /* Prevent any fade-in until we are ready */
}

.hero-letter {
  display: inline-block;
  opacity: 0;
  transform: translateY(5px); /* Optional: slight lift effect */
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.animate-typing.typing-prep {
  visibility: hidden;
}

.animate-typing.typing-ready {
  opacity: 1 !important;
  visibility: visible !important;
}

.hero-letter.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-word {
  display: inline-block;
  white-space: nowrap;
  vertical-align: bottom;
}

.hero-letter {
  display: inline-block;
  white-space: pre;
  vertical-align: bottom;
  filter: blur(6px);
  opacity: 0;
  transition: filter 0.6s ease, opacity 0.6s ease, transform 0.6s ease;
}

.hero-letter--visible {
  filter: blur(0);
  opacity: 1;
}

.text-gradient-animated.hero-letter {
  display: inline-block;
  color: transparent;
  background-clip: text;
  -webkit-background-clip: text;
}

@media (prefers-reduced-motion: reduce) {
  .hero-letter {
    filter: none;
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Mobile performance overrides: disable parallax + heavy blurs */
@media (hover: none), (pointer: coarse) {
  .has-parallax,
  .wp-block-cover.has-parallax {
    background-attachment: scroll !important;
  }

  .wp-block-cover.has-parallax .wp-block-cover__image-background,
  .wp-block-cover.has-parallax .wp-block-cover__video-background {
    transform: none !important;
  }

  .wp-block-patient-profit-services-block {
    --services-parallax: 0px;
    --services-parallax-scale: 1;
  }

  .wp-block-patient-profit-services-block .services-block__media {
    transform: none !important;
  }

  .spotlight-overlay,
  .nav-bar__panel,
  .practice-areas-block__accordion-panel,
  .practice-areas-block__card-overlay,
  .case-studies-block__item-link,
  .case-studies-block__stats .stat-card,
  .case-studies-block__modal-overlay,
  .wp-block-patient-profit-services-block .services-block__mobile-button,
  .wp-block-patient-profit-hero-reusable .hero-image-1,
  .wp-block-patient-profit-hero-reusable .hero-image-2 {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  .hero-letter,
  .wp-block-patient-profit-hero-reusable .hero-image-1,
  .wp-block-patient-profit-hero-reusable .hero-image-2 {
    filter: none !important;
  }
}

.btn {
  text-decoration: none;
  padding: 12px 16px;
  color: var(--wp--preset--color--white);
  background-color: var(--wp--preset--color--blue-grotto);
  margin: 4px 16px 4px 0px;
  border-radius: 12px;
  transition: all 0.3 ease-out;
}

.btn:hover {
  background-color: var(--wp--preset--color--dark-blue);
}

/* Animated gradient utility for text */
.text-gradient-animated {
  background: var(--gradient-animated);
  background-size: 200% 200%;
  animation: gradientShift var(--gradient-speed, 20s) ease-in-out infinite;
  /* critical for gradient text */
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  /* don’t comment this out */
  color: transparent;

  display: inline-block;
}

/* apply the clipping to the actual letter spans */

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.theme-toggle .wp-block-button__link {
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.08);
  color: var(--wp--preset--color--white);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.theme-light .theme-toggle .wp-block-button__link,
html.theme-light .theme-toggle .wp-block-button__link {
  background: rgba(15, 23, 42, 0.06);
  color: #0f172a;
  border-color: rgba(15, 23, 42, 0.15);
}

.theme-light .site-header,
html.theme-light .site-header {
  background: rgba(255, 255, 255, 0.9);
}

/* Header */
header {
  /* padding: 12px 48px; */
  /* margin: 0 !important; */
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  padding: 20px 32px;
  background: transparent;
  box-sizing: border-box;
}

.site-header__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
}

.site-header__branding {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-header__nav {
  justify-self: center;
  display: flex;
  align-items: center;
  height: 100%;
}

.site-header__actions {
  justify-self: end;
  display: flex;
  gap: 12px;
  align-items: center;
}

/* Hide mobile actions clone on desktop */
.mobile-actions-clone {
  display: none !important;
}

/* Mobile Header */
@media (max-width: 1000px) {
  header {
    /* padding: 12px 24px; */
  }

  .site-header__inner {
    display: flex;
    justify-content: space-between;
  }

  .site-header__actions {
    display: none !important; /* Hide desktop actions */
  }

  /* Custom Mobile Menu Logic */
  .site-header__nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--wp--preset--color--dark-blue);
    padding: 80px 24px 24px;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    z-index: 4; /* Behind header content but above page */
    transform: translateY(-100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex !important; /* Override flex layout from group */
  }

  .site-header.is-mobile-open .site-header__nav {
    transform: translateY(0);
  }

  /* Show cloned actions in mobile menu */
  .mobile-actions-clone {
    display: flex !important;
    flex-direction: column;
    gap: 16px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
  }

  .mobile-actions-clone .wp-block-button {
    width: 100%;
  }

  .mobile-actions-clone .wp-block-button__link {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  /* Mobile Menu Items */
  .site-header__nav .menu-item {
    width: 100%;
    justify-content: center;
    padding: 12px 0;
  }

  .site-header__nav .menu-item__link {
    font-size: 1.5rem;
  }
}

/* Custom Hamburger */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 6px;
  z-index: 10;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--wp--preset--color--white);
  transition: all 0.3s ease;
}

@media (max-width: 1000px) {
  .hamburger {
    display: flex;
  }
  .site-header.is-mobile-open .hamburger span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
  }
  .site-header.is-mobile-open .hamburger span:nth-child(2) {
    opacity: 0;
  }
  .site-header.is-mobile-open .hamburger span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
  }
}

/* Footer */
footer {
  margin: 0 auto;
  height: auto;
  padding: 64px 0;
  width: 95%;
  max-width: none;
  /* background: rgba(55, 54, 54, 0.31); */
  /* border-radius: 12px;
  box-shadow: 0 4px 30px rgba(60, 60, 60, 0.1);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(0.2px); */
}

/* =========================
   FOOTER
   ========================= */

.site-footer {
  width: 100%;

  padding: 48px 56px;
  color: var(--wp--preset--color--white);
  position: relative;
  background: rgba(230, 240, 255, 0.2);
  backdrop-filter: blur(10px);
  font-weight: 200;

  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

html.theme-light .site-footer {
  color: #0f172a;
}

/* WordPress columns have their own spacing; normalize */
.site-footer .wp-block-columns {
  margin: 0;
  gap: 32px;
}

.site-footer__row {
  align-items: stretch;
}

.site-footer__row--intro {
  margin-bottom: 28px;
}

.site-footer__intro {
  margin: 0 auto;
  max-width: 720px;
  text-align: center;
  font-size: 1.2rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
}

html.theme-light .site-footer__intro {
  color: rgba(15, 23, 42, 0.85);
}

.site-footer__row--top {
  margin: 32px 0 36px;
  text-align: left;
}

.site-footer__row--top-columns {
  width: 100%;
}

.site-footer__row--top-columns > .wp-block-column {
  flex: 1 1 0;
  display: flex;
}

html.theme-light .site-footer__row--top-columns {
  color: var(--wp--preset--color--dark-blue);
}

.site-footer__contact {
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

.site-footer__form {
  width: 100%;
  padding: 22px 22px;
  border-radius: 16px;

  display: grid;
  gap: 12px;
}

.site-footer__contact h4 {
  margin-bottom: 24px;
  font-size: 2.5rem;
}

.site-footer__form h4 {
  margin: 0;

  font-size: 1.5rem;
  font-weight: 650;
  letter-spacing: 0.2px;
}

.site-footer__contact p {
  font-size: 1.4rem !important;
}

p .site-footer__form p {
  margin: 1rem 0;
  font-weight: 200;
  opacity: 0.9;
  line-height: 1.5;
  font-size: 1.1rem;
}

.site-footer__form .wpforms-container,
.site-footer__form .wpforms-form {
  width: 100%;
  max-width: none;
}

.site-footer__form .wpforms-form input,
.site-footer__form .wpforms-form textarea,
.site-footer__form .wpforms-form select,
.site-footer__form .wpforms-form button {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.site-footer__contact a {
  color: var(--wp--preset--color--blue-grotto, #00a0f3);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.site-footer__contact a:hover {
  color: var(--wp--preset--color--white, #fff);
}

html.theme-light .site-footer__contact a {
  color: #0f172a;
}

.site-footer__address {
  margin: 16px 0 20px;
  font-size: 1.25rem;
  font-weight: 200;
  line-height: 1.5;
}

.site-footer__contact-links {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.site-footer__contact-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-footer__contact-icon-image {
  width: 28px;
  height: 28px;
  margin: 0;
  flex: 0 0 auto;
  filter: sepia(100%) saturate(300%) brightness(70%) hue-rotate(180deg) !important;
}

.site-footer__contact-icon-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.u-icon-tint-blue {
  filter: sepia(100%) saturate(300%) brightness(70%) hue-rotate(180deg) !important;
}

.site-footer__social-links .wp-block-social-link-anchor svg {
  fill: currentColor;
}

.site-footer__social-links .wp-social-link {
  color: var(--wp--preset--color--blue-grotto, #00a0f3) !important;
  background-color: rgba(0, 160, 243, 0.18) !important;
}

.site-footer__contact-link {
  margin: 0;
}

.site-footer__contact-link a {
  color: inherit;
  text-decoration: none;
  font-size: 1.15rem;
  font-weight: 400;
}

.site-footer__contact-link a:hover {
  color: var(--wp--preset--color--blue-grotto, #00a0f3);
}

.site-footer__row--primary {
  margin-top: 48px !important;
  align-items: flex-start;
}

.site-footer__row--primary .wp-block-column {
  display: flex;
  align-self: flex-start;
}

.site-footer__accordion {
  width: 100%;
  padding: 16px 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: background 0.2s ease, border-color 0.2s ease;
  min-height: 100px;
  display: flex;
  flex-direction: column;
}

.site-footer__accordion:not([open]) {
  justify-content: center;
}

.site-footer__accordion[open] {
  justify-content: flex-start;
}

.site-footer__accordion[open] {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.2);
}

.site-footer__accordion summary {
  cursor: pointer;
  list-style: none;
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: 0.2px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.site-footer__accordion summary::marker {
  content: "";
}

.site-footer__accordion summary::-webkit-details-marker {
  display: none;
}

.site-footer__accordion summary::after {
  content: "+";
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.7);
}

.site-footer__accordion[open] summary::after {
  content: "-";
}

.site-footer__accordion > ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(-4px);
  transition: max-height 0.35s ease, opacity 0.2s ease, transform 0.2s ease,
    padding-top 0.2s ease;
  padding-top: 0;
  pointer-events: none;
}

.site-footer__accordion:not([open]) > ul {
  display: grid;
}

.site-footer__accordion[open] > ul {
  max-height: 800px;
  opacity: 1;
  transform: translateY(0);
  padding-top: 12px;
  pointer-events: auto;
}

.site-footer__accordion ul li {
  margin: 0;
}

.site-footer__accordion ul li a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.site-footer__accordion ul li a:hover {
  color: var(--wp--preset--color--blue-grotto, #00a0f3);
  transform: translateX(6px);
}

html.theme-light .site-footer__accordion {
  background: rgba(230, 240, 255, 0.2);
  backdrop-filter: blur(10px);
  padding: 24px 32px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--wp--preset--color--dark-blue);
}

html.theme-light .site-footer__accordion summary::after {
  color: rgba(15, 23, 42, 0.6);
}

html.theme-light .site-footer__accordion ul li a {
  color: rgba(15, 23, 42, 0.7);
}

.site-footer__row--secondary {
  margin: 24px 0 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

html.theme-light .site-footer__row--secondary {
  border-color: rgba(15, 23, 42, 0.1);
}

.site-footer__utility-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  text-align: center;
  justify-content: center;
  font-family: var(--wp--preset--font-family--inter);
  font-weight: 200;
}

.site-footer__utility-links li {
  margin: 0;
}

.site-footer__utility-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-weight: 200;
  transition: all 0.2s ease;
}

.site-footer__utility-links a:hover {
  color: var(--wp--preset--color--blue-grotto, #00a0f3);
}

html.theme-light .site-footer__utility-links a {
  color: rgba(15, 23, 42, 0.7);
}

html.theme-light .site-footer__utility-links a:hover {
  padding-bottom: 4px;
  color: var(--wp--preset--color--blue-grotto, #00a0f3);
}

.site-footer__row--copyright {
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

html.theme-light .site-footer__row--copyright {
  border-color: rgba(15, 23, 42, 0.08);
}

.site-footer__copyright {
  margin: 0;
  text-align: center;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.65);
}

html.theme-light .site-footer__copyright {
  color: rgba(15, 23, 42, 0.6);
}

/* =========================
   Responsive
   ========================= */
@media (max-width: 900px) {
  .site-footer {
    padding: 56px 36px;
  }
  .site-footer .wp-block-columns {
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .site-footer {
    padding: 40px 22px;
  }

  .site-footer__intro {
    font-size: 1.05rem;
  }

  .site-footer__form,
  .site-footer__contact {
    padding: 18px;
  }

  .site-footer__contact p {
    font-size: 1.05rem !important;
  }

  @media (max-width: 500px) {
    .site-footer__contact-item p a {
      font-size: 0.8rem !important;
      text-transform: lowercase;
    }
  }

  .site-footer__address {
    font-size: 1rem;
  }
}

/* card glow */

.glow-card {
  position: relative;
  border-radius: 16px;
  padding: 24px;
  /* background: #0b0f1a; */
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

/* Glow layer */
.glow-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;

  /* Radial glow */
  background: radial-gradient(
    600px circle at var(--x, 50%) var(--y, 50%),
    rgba(120, 180, 255, 0.7),
    transparent 80%
  );

  /* Mask so ONLY the border shows */
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;

  padding: 1px; /* border thickness */
  opacity: 0;
  transition: opacity 0.2s ease;
}

html.theme-light .glow-card {
  border-color: rgba(15, 23, 42, 0.1);
}

html.theme-light .glow-card::before {
  background: radial-gradient(
    600px circle at var(--x, 50%) var(--y, 50%),
    rgb(50, 166, 255),
    transparent 80%
  );
}

.glow-card:hover::before {
  opacity: 1;
}

/* side text */

.side-text {
  font-size: 5rem;
  font-family: var(--wp--preset--font-family--inter);
  font-weight: 100;

  /* margin-bottom: 64px; */
}

.side-text span {
  display: inline-block;
  will-change: transform;
}

.side-text .side-text-hyphen {
  transform: scaleX(3);
  margin-right: 150px;
}

/* @media (max-width: 640px) {
  body {
    padding: 0 64px;
  }
} */

/* Theme Toggle */
.theme-toggle {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--wp--preset--color--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s ease;
}

.theme-toggle:hover {
  color: var(--wp--preset--color--blue-grotto);
}

.theme-light .theme-toggle {
  color: #0f172a;
}

/* Reveal Animation Utility */
.reveal-animation-base {
  scale: 0.5;
  opacity: 0;
  transform: translateY(-30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal-animation-base.is-revealed {
  scale: 1;
  opacity: 1;
  transform: translateY(0);
}

/* Scroll To Top Button & Progress Ring */
.scroll-to-top-btn {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 54px;
  min-width: 54px;
  height: 54px;
  background: rgba(15, 23, 42, 0.1); /* Dark background default */
  backdrop-filter: blur(15px);
  border-radius: 50%;
  border-radius: 27px;
  border: none;
  cursor: pointer;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s cubic-bezier(0.2, 1, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  justify-content: flex-start;
  padding: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  color: var(--wp--preset--color--blue-grotto, #00a0f3);
}

.scroll-to-top-btn::before {
  content: attr(data-label);
  position: absolute;
  left: -80px;
}

.theme-light .scroll-to-top-btn {
  background: rgba(255, 255, 255, 0.4);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.scroll-to-top-btn.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-to-top-btn:hover {
  transform: translateY(-4px);
}

.scroll-to-top-btn svg {
  position: absolute;
  top: 0;
  left: 0;
  transform: rotate(-90deg);
}

.scroll-to-top-btn .progress-ring__bg {
  stroke: rgba(255, 255, 255, 0.1);
}

.theme-light .scroll-to-top-btn .progress-ring__bg {
  stroke: rgba(0, 0, 0, 0.1);
}

.scroll-to-top-btn .progress-ring__circle {
  stroke: currentColor;
  transition: stroke-dashoffset 0.1s linear;
  stroke-linecap: round;
}

.scroll-to-top-btn .scroll-arrow {
  font-size: 24px;
  line-height: 1;
  font-weight: 100;
  font-family: var(--wp--preset--font-family--inter);
  display: flex;
  position: absolute;
  left: 50%;
  top: 50%;
  width: 28px;
  height: 20px;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, -50%) rotate(180deg);
  color: currentColor;
  z-index: 1;
}

.scroll-to-top-btn .scroll-arrow svg {
  width: 28px;
  height: 18px;
  transform: none;
}

.scroll-to-top-btn.is-at-bottom .scroll-arrow {
  transform: translate(-50%, -50%) rotate(0deg);
}

.scroll-to-top-btn:hover .scroll-text {
  max-width: 120px;
  opacity: 1;
  padding-right: 20px;
}

/* Page Loader */
html.is-loading,
body.is-loading {
  overflow: hidden;
  height: 100%;
  touch-action: none;
}

body.is-loading {
  position: fixed;
  width: 100%;
  left: 0;
  right: 0;
}

.page-loader {
  position: fixed;
  inset: 0;
  background-color: var(--wp--preset--color--dark-blue);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.1s ease, visibility 0.1s ease;
}

.theme-light .page-loader,
html.theme-light .page-loader {
  background-color: #f6f8fc;
}

.page-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.page-loader__spinner {
  width: 48px;
  height: 48px;
  border: 4px solid rgba(255, 255, 255, 0.1);
  border-left-color: var(--wp--preset--color--blue-grotto);
  border-radius: 50%;
  animation: loaderSpin 1s linear infinite;
}

.theme-light .page-loader__spinner {
  border-color: rgba(15, 23, 42, 0.1);
  border-left-color: var(--wp--preset--color--blue-grotto);
}

@keyframes loaderSpin {
  to {
    transform: rotate(360deg);
  }
}

.page-loader__text {
  margin-top: 24px;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
  letter-spacing: 0.02em;
  font-family: var(--wp--preset--font-family--inter, sans-serif);
  opacity: 0;
  animation: loaderTextReveal 0.5s ease-out forwards;
}

.theme-light .page-loader__text {
  color: rgba(15, 23, 42, 0.8);
}

@keyframes loaderTextReveal {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.wp-block-navigation__responsive-container-open,
.wp-block-navigation__responsive-container-close {
  display: none !important;
}

.wp-block-navigation__responsive-container {
  display: block !important;
  position: static !important;
  width: auto !important;
  height: auto !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  background: transparent !important;
}

.wp-block-navigation__responsive-container-content {
  display: block !important;
  padding: 0 !important;
}

img.lqip {
  filter: blur(8px);
  transition: filter 300ms ease;
}

img.lqip.lqip--loaded {
  filter: blur(0);
}
