/* Local reliability and responsive fixes for the static site export. */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
  overflow-x: clip;
}

.hfe-site-logo-img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
}

.abhithi-mobile-hero {
  display: none;
}

/* Keep the About and Gallery heroes independent of missing remote Elementor CSS. */
.elementor-1319 .elementor-element.elementor-element-bd29358,
.elementor-1651 .elementor-element.elementor-element-ea81666,
.elementor-1320 .elementor-element.elementor-element-ea81666 {
  position: relative;
  display: flex;
  min-height: clamp(430px, 46vw, 610px);
  align-items: flex-end;
  padding: 80px max(24px, calc((100vw - 1140px) / 2)) 90px;
  overflow: hidden;
  background-image: url("../wp-content/uploads/2025/08/gandhi-jayanthi-1-1-scaled.jpg") !important;
  background-position: top right !important;
  background-repeat: no-repeat !important;
  background-size: cover !important;
}

.elementor-1319 .elementor-element.elementor-element-bd29358::before,
.elementor-1651 .elementor-element.elementor-element-ea81666::before,
.elementor-1320 .elementor-element.elementor-element-ea81666::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  background: linear-gradient(180deg, rgba(249, 249, 249, 0.18) 5%, rgba(0, 0, 0, 0.48) 100%) !important;
  pointer-events: none;
}

.elementor-1319 .elementor-element.elementor-element-bd29358 > .e-con-inner,
.elementor-1651 .elementor-element.elementor-element-ea81666 > .e-con-inner,
.elementor-1320 .elementor-element.elementor-element-ea81666 > .e-con-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
}

.elementor-1319 .elementor-element.elementor-element-bd29358 .elementor-heading-title,
.elementor-1651 .elementor-element.elementor-element-ea81666 .elementor-heading-title,
.elementor-1320 .elementor-element.elementor-element-ea81666 .elementor-heading-title {
  margin: 0;
  color: #fff;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}

.elementor-1651 .elementor-element.elementor-element-ea81666 .elementor-heading-title,
.elementor-1320 .elementor-element.elementor-element-ea81666 .elementor-heading-title {
  font-size: clamp(52px, 6vw, 78px);
  line-height: 1.08;
}

@media (max-width: 1024px) {
  #masthead {
    position: relative;
    z-index: 1000;
    background: #fff;
  }

  #masthead .elementor-element-abb0d2b {
    align-items: center;
    flex-wrap: nowrap;
    min-height: 92px;
    padding: 12px 18px;
  }

  #masthead .elementor-element-7207879 {
    flex: 1 1 auto;
    min-width: 0;
    --width: auto;
  }

  #masthead .elementor-element-909f811 .hfe-site-logo-container {
    text-align: left;
  }

  #masthead .elementor-element-909f811 .hfe-site-logo-img {
    width: 208px;
    max-width: min(54vw, 208px);
  }

  #masthead .elementor-element-74d6fad {
    flex: 0 0 52px;
    margin-left: auto;
    --width: 52px;
  }

  #masthead .elementor-element-99601a1 > .elementor-widget-container {
    margin: 0 !important;
  }

  #masthead .hfe-nav-menu {
    position: relative;
  }

  #masthead .hfe-nav-menu__toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin: 0 0 0 auto !important;
    padding: 0;
    color: #8c1e75;
    background: transparent;
    border-radius: 8px;
    cursor: pointer;
    touch-action: manipulation;
  }

  #masthead .hfe-nav-menu__toggle:focus-visible {
    outline: 3px solid rgba(140, 30, 117, 0.32);
    outline-offset: 2px;
  }

  #masthead .hfe-nav-menu-icon,
  #masthead .abhithi-menu-symbol {
    font-size: 36px;
    font-weight: 400;
    line-height: 1;
  }

  #masthead .hfe-nav-menu__layout-horizontal {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    left: auto;
    z-index: 1001;
    width: min(320px, calc(100vw - 36px));
    height: auto !important;
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    background: #fff;
    border: 1px solid rgba(140, 30, 117, 0.14);
    border-radius: 12px;
    box-shadow: 0 16px 40px rgba(24, 15, 34, 0.18);
    transform: perspective(900px) rotateY(-82deg) rotateX(-8deg) scale(0.96);
    transform-origin: top right;
    backface-visibility: hidden;
    transition:
      opacity 220ms ease,
      transform 420ms cubic-bezier(0.2, 0.8, 0.2, 1),
      max-height 420ms ease,
      visibility 0s linear 420ms;
  }

  #masthead .hfe-nav-menu__toggle.hfe-active-menu + .hfe-nav-menu__layout-horizontal {
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: perspective(900px) rotateY(0) rotateX(0) scale(1);
    transition-delay: 0s;
  }

  #masthead .hfe-nav-menu__layout-horizontal .hfe-nav-menu {
    display: block;
    width: 100%;
    padding: 8px;
    visibility: inherit;
    opacity: inherit;
    background: transparent;
  }

  #masthead .hfe-nav-menu__layout-horizontal .menu-item {
    display: block;
    width: 100%;
    margin: 0;
    opacity: 0;
    transform: perspective(500px) rotateX(-88deg) translateY(-8px);
    transform-origin: top center;
    transition: opacity 180ms ease, transform 300ms cubic-bezier(0.2, 0.8, 0.2, 1);
  }

  #masthead .hfe-nav-menu__toggle.hfe-active-menu + .hfe-nav-menu__layout-horizontal .menu-item {
    opacity: 1;
    transform: perspective(500px) rotateX(0) translateY(0);
  }

  #masthead .hfe-nav-menu__toggle.hfe-active-menu + .hfe-nav-menu__layout-horizontal .menu-item:nth-child(1) { transition-delay: 90ms; }
  #masthead .hfe-nav-menu__toggle.hfe-active-menu + .hfe-nav-menu__layout-horizontal .menu-item:nth-child(2) { transition-delay: 125ms; }
  #masthead .hfe-nav-menu__toggle.hfe-active-menu + .hfe-nav-menu__layout-horizontal .menu-item:nth-child(3) { transition-delay: 160ms; }
  #masthead .hfe-nav-menu__toggle.hfe-active-menu + .hfe-nav-menu__layout-horizontal .menu-item:nth-child(4) { transition-delay: 195ms; }
  #masthead .hfe-nav-menu__toggle.hfe-active-menu + .hfe-nav-menu__layout-horizontal .menu-item:nth-child(5) { transition-delay: 230ms; }
  #masthead .hfe-nav-menu__toggle.hfe-active-menu + .hfe-nav-menu__layout-horizontal .menu-item:nth-child(6) { transition-delay: 265ms; }
  #masthead .hfe-nav-menu__toggle.hfe-active-menu + .hfe-nav-menu__layout-horizontal .menu-item:nth-child(7) { transition-delay: 300ms; }

  #masthead .hfe-nav-menu__toggle.hfe-active-menu .abhithi-menu-symbol {
    animation: abhithi-menu-icon-flip 420ms cubic-bezier(0.2, 0.8, 0.2, 1);
  }

  #masthead .hfe-nav-menu__layout-horizontal a.hfe-menu-item {
    display: block;
    width: 100%;
    padding: 13px 16px !important;
    color: #332c59;
    border-radius: 8px;
  }

  #masthead .hfe-nav-menu__layout-horizontal a.hfe-menu-item:hover,
  #masthead .hfe-nav-menu__layout-horizontal a.hfe-menu-item:focus,
  #masthead .hfe-nav-menu__layout-horizontal .current-menu-item > a.hfe-menu-item {
    color: #8c1e75;
    background: #f8edf5;
  }
}

@media (max-width: 700px) {
  #masthead .elementor-element-abb0d2b {
    min-height: 82px;
    padding: 10px 14px;
  }

  #masthead .elementor-element-909f811 .hfe-site-logo-img {
    max-width: min(58vw, 190px);
  }

  .elementor-1318 .elementor-element-13c66d3 {
    display: none !important;
  }

  .abhithi-mobile-hero {
    position: relative;
    display: block;
    width: 100%;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(135deg, #332c59 0%, #8c1e75 100%);
  }

  .abhithi-mobile-slide {
    display: none;
    min-height: 520px;
    animation: abhithi-fade-in 260ms ease;
  }

  .abhithi-mobile-slide.is-active {
    display: flex;
    flex-direction: column;
  }

  .abhithi-mobile-slide img {
    display: block;
    width: 100%;
    height: 250px;
    object-fit: cover;
  }

  .abhithi-mobile-slide__content {
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: center;
    padding: 28px 24px 58px;
  }

  .abhithi-mobile-slide h2 {
    margin: 0 0 12px;
    color: #fff;
    font-size: clamp(28px, 8vw, 38px);
    line-height: 1.12;
  }

  .abhithi-mobile-slide p {
    margin: 0;
    color: rgba(255, 255, 255, 0.92);
    font-size: 15px;
    line-height: 1.65;
  }

  .abhithi-mobile-hero__dots {
    position: absolute;
    right: 0;
    bottom: 20px;
    left: 0;
    display: flex;
    justify-content: center;
    gap: 9px;
  }

  .abhithi-mobile-hero__dot {
    width: 10px;
    height: 10px;
    padding: 0;
    background: rgba(255, 255, 255, 0.45);
    border: 0;
    border-radius: 50%;
    cursor: pointer;
  }

  .abhithi-mobile-hero__dot.is-active {
    width: 28px;
    background: #fff;
    border-radius: 10px;
  }
}

@media (max-width: 767px) {
  .elementor-1319 .elementor-element.elementor-element-bd29358,
  .elementor-1651 .elementor-element.elementor-element-ea81666,
  .elementor-1320 .elementor-element.elementor-element-ea81666 {
    min-height: 330px;
    padding: 48px 24px 38px;
    background-position: 67% top !important;
  }

  .elementor-1319 .elementor-element.elementor-element-bd29358 .elementor-heading-title,
  .elementor-1651 .elementor-element.elementor-element-ea81666 .elementor-heading-title,
  .elementor-1320 .elementor-element.elementor-element-ea81666 .elementor-heading-title {
    font-size: clamp(34px, 11vw, 48px);
    line-height: 1.08;
  }

  .elementor-1651 .elementor-element.elementor-element-d08def7 {
    padding: 24px 14px 36px;
  }
}

@keyframes abhithi-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes abhithi-menu-icon-flip {
  0% { transform: rotateY(-90deg) scale(0.75); opacity: 0; }
  100% { transform: rotateY(0) scale(1); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  #masthead .hfe-nav-menu__layout-horizontal,
  #masthead .hfe-nav-menu__layout-horizontal .menu-item,
  #masthead .abhithi-menu-symbol,
  .abhithi-mobile-slide {
    animation: none;
    transition: none;
  }
}
