/* Responsive */

@media (max-width: 1024px) {
  .pmd-services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pmd-hero--v2 .pmd-hero__grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .pmd-hero--v2 .pmd-hero__stage {
    order: -1;
    max-width: min(100%, 18rem);
    margin-inline: auto;
  }

  .pmd-about,
  .pmd-appointment,
  .pmd-contact,
  .pmd-articles-hub {
    grid-template-columns: 1fr;
  }

  .pmd-footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .pmd-footer__col--contact {
    grid-column: 1 / -1;
  }

  .pmd-footer__col {
    min-height: auto;
  }

  .pmd-single-post__layout,
  .pmd-single-post__layout.pmd-category-archive__layout,
  .pmd-category-archive__layout,
  .pmd-service-single__layout,
  .pmd-doctor-profile__layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .pmd-category-archive__main,
  .pmd-single-post__sidebar {
    min-width: 0;
    max-width: 100%;
  }

  .pmd-single-post__sidebar {
    position: static;
  }

  .pmd-sidebar-rail {
    border-radius: var(--pmd-radius-md);
  }

  .pmd-sidebar-rail__cta {
    display: none;
  }
}

@media (max-width: 900px) {
  .pmd-header {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .pmd-logo img,
  .pmd-logo .custom-logo,
  .pmd-logo .pmd-logo__img {
    max-height: 40px;
    max-width: 140px;
  }

  .pmd-nav-toggle {
    display: flex;
  }

  .pmd-nav {
    position: fixed;
    top: 0;
    bottom: 0;
    inset-inline-start: auto;
    inset-inline-end: 0;
    left: auto;
    right: 0;
    width: min(100vw, 100%);
    max-width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    background: linear-gradient(180deg, var(--pmd-ivory) 0%, var(--pmd-bg) 100%);
    flex: none;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0.75rem;
    padding: calc(var(--pmd-topbar-h) + var(--pmd-header-h) + var(--pmd-space-md)) var(--pmd-space-lg) calc(var(--pmd-space-xl) + var(--pmd-mobile-bar-h));
    border: 0;
    border-radius: 0;
    box-shadow: none;
    transform: translate3d(100%, 0, 0);
    transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 210;
    overflow-x: hidden;
    overflow-y: auto;
    direction: rtl;
    visibility: hidden;
    pointer-events: none;
    will-change: transform;
  }

  body.pmd-nav-open .pmd-header {
    z-index: 220;
  }

  body.pmd-nav-open .pmd-nav-toggle {
    position: relative;
    z-index: 230;
  }

  .pmd-nav.is-open {
    transform: translate3d(0, 0, 0);
    visibility: visible;
    pointer-events: auto;
  }

  .pmd-nav__list {
    flex: none;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0.4rem;
    width: 100%;
    order: 1;
  }

  .pmd-nav__list > li > a {
    justify-content: flex-start;
    width: 100%;
    padding: 0.85rem 1.05rem;
    font-size: 1.0625rem;
    font-weight: 700;
    border-radius: var(--pmd-radius-md);
    border-color: rgba(242, 214, 225, 0.6);
    background: rgba(255, 255, 255, 0.65);
  }

  .pmd-nav__list > li > a:hover,
  .pmd-nav__list > .current-menu-item > a,
  .pmd-nav__list > .current-menu-ancestor > a {
    border-color: var(--pmd-blush);
  }

  .pmd-nav__parent-toggle {
    justify-content: space-between;
    width: 100%;
    padding: 0.85rem 1.05rem;
    font-size: 1.0625rem;
    border-radius: var(--pmd-radius-md);
    border-color: rgba(242, 214, 225, 0.6);
    background: rgba(255, 255, 255, 0.65);
  }

  .pmd-nav__list > li.menu-item-has-children > .sub-menu {
    position: static;
    display: block;
    min-width: 0;
    max-height: none;
    margin: 0.35rem 0 0;
    padding: 0.25rem 0 0;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    transition: none;
  }

  .pmd-nav__list > li.menu-item-has-children > .sub-menu::before {
    display: none;
  }

  .pmd-nav__list > li.menu-item-has-children:not(.is-open) > .sub-menu {
    display: none;
  }

  .pmd-nav__list .sub-menu > li > a {
    padding: 0.65rem 1.05rem 0.65rem 1.35rem;
    font-size: 0.95rem;
    background: rgba(255, 255, 255, 0.45);
    border-color: rgba(242, 214, 225, 0.45);
  }

  .pmd-header__actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    margin-top: 0;
    margin-inline-start: 0;
    padding-top: 0.25rem;
    padding-inline-start: 0;
    border-top: none;
    border-inline-start: none;
    gap: 0;
    order: 2;
  }

  .pmd-header__actions .pmd-header__appt-btn {
    display: none;
  }

  .pmd-header__search {
    width: 100%;
    margin-top: 0.35rem;
  }

  .pmd-header-search {
    min-width: 0;
    width: 100%;
  }

  .pmd-header-search__input {
    font-size: 0.9rem;
  }

  .pmd-header__phone {
    justify-content: center;
    width: 100%;
    padding: 0.75rem 1rem;
  }

  .pmd-header__actions .pmd-btn--primary {
    width: 100%;
    justify-content: center;
  }

  .pmd-header__inner {
    overflow: visible;
    gap: 0.75rem;
  }

  .pmd-nav-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(59, 31, 43, 0.45);
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.22s ease;
  }

  .pmd-nav-overlay.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .pmd-topbar__inner {
    font-size: 0.75rem;
  }

  .pmd-mobile-bar {
    display: grid;
  }

  body.has-mobile-bar {
    padding-bottom: var(--pmd-mobile-bar-h);
  }

  .pmd-faq {
    grid-template-columns: 1fr;
    padding: var(--pmd-space-md);
  }

  .pmd-faq__nav {
    flex-direction: column;
  }

  .pmd-faq__panel-wrap {
    min-height: 180px;
  }
}

@media (max-width: 640px) {
  .pmd-services-grid,
  .pmd-grid--3,
  .pmd-grid--4,
  .pmd-footer__grid {
    grid-template-columns: 1fr;
  }

  .pmd-footer__col--contact {
    grid-column: auto;
  }

  .pmd-footer__actions .pmd-footer__btn {
    flex: 1 1 calc(50% - 0.3rem);
    min-width: min(100%, 9.5rem);
    justify-content: center;
  }

  .pmd-hero--v2 .pmd-hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .pmd-hero--v2 .pmd-hero__cta-wrap,
  .pmd-hero--v2 .pmd-hero__actions .pmd-btn {
    width: 100%;
  }

  .pmd-doctor-hero {
    grid-template-columns: 1fr;
  }

  .pmd-articles-hub {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .pmd-container {
    max-width: 100%;
    min-width: 0;
  }

  .pmd-topbar {
    font-size: 0.8rem;
  }

  .pmd-topbar__inner {
    padding: 0.25rem 0;
    gap: 0.35rem 0.75rem;
  }

  .pmd-header__inner {
    min-height: 60px;
  }

  :root {
    --pmd-header-h: 60px;
  }
}

@media (max-width: 640px) {
  .pmd-topbar__inner {
    justify-content: center;
    gap: 0.35rem 0.85rem;
  }

  .pmd-topbar__phone {
    font-size: 0.72rem;
    white-space: nowrap;
  }

  .pmd-topbar__phone-num {
    display: inline;
  }

  .pmd-topbar__hours {
    display: none;
  }

  .pmd-about {
    grid-template-columns: 1fr;
  }

  .pmd-contact-section .pmd-contact,
  .pmd-contact-strip__layout {
    grid-template-columns: 1fr;
  }

  .pmd-trust-strip {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .pmd-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .pmd-float,
  .pmd-hero__blob,
  .pmd-hero__spark,
  .pmd-hero__gradient,
  .pmd-trust-journey__blob,
  .pmd-trust-journey__ring,
  .pmd-services-section__blob,
  .pmd-services-section__ring,
  .pmd-voice-flow__blob,
  .pmd-appt-pathway__blob,
  .pmd-reading-path__blob,
  .pmd-shell__blob,
  .pmd-glow-cta::before {
    animation: none !important;
  }

  .pmd-path-pulse,
  .pmd-trust-journey__path-line,
  .pmd-voice-stage__path-line,
  .pmd-appt-pathway__path-line,
  .pmd-services-section__wave path {
    animation: none !important;
  }

  .pmd-hover-lift:hover,
  .pmd-hover-lift:focus-within,
  .pmd-btn--primary:hover {
    transform: none;
  }
}
