/* CUSTOM ANIMATIONS & HOVER EFFECTS */
    @keyframes float {
      0%, 100% { transform: translateY(0px); }
      50% { transform: translateY(-8px); }
    }
    @keyframes pulseGlow {
      0%, 100% { opacity: 0.6; transform: scale(1); }
      50% { opacity: 1; transform: scale(1.08); }
    }
    @keyframes shimmer {
      0% { background-position: -200% 0; }
      100% { background-position: 200% 0; }
    }
    @keyframes ripple {
      0% { box-shadow: 0 0 0 0 rgba(13, 148, 136, 0.4); }
      70% { box-shadow: 0 0 0 15px rgba(13, 148, 136, 0); }
      100% { box-shadow: 0 0 0 0 rgba(13, 148, 136, 0); }
    }

    .animate-float { animation: float 4s ease-in-out infinite; }
    .animate-pulse-glow { animation: pulseGlow 3s ease-in-out infinite; }
    .animate-ripple { animation: ripple 2s infinite; }
    
    .shimmer-bg {
      background: linear-gradient(90deg, #0D3B3A 0%, #134E4A 50%, #0D3B3A 100%);
      background-size: 200% 100%;
      animation: shimmer 3s infinite;
    }

    /* CREATIVE SCROLL ANIMATIONS */
    .reveal-init {
      opacity: 0;
      transform: translateY(35px);
      transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
      will-change: opacity, transform;
    }
    .reveal-init.fade-left {
      transform: translateX(-40px);
    }
    .reveal-init.fade-right {
      transform: translateX(40px);
    }
    .reveal-init.zoom-in {
      transform: scale(0.92) translateY(20px);
    }
    .reveal-init.is-visible {
      opacity: 1;
      transform: translateY(0) translateX(0) scale(1);
    }

    /* Stagger Delays for Grid Elements */
    .delay-100 { transition-delay: 100ms; }
    .delay-200 { transition-delay: 200ms; }
    .delay-300 { transition-delay: 300ms; }
    .delay-400 { transition-delay: 400ms; }
    .delay-500 { transition-delay: 500ms; }

    /* Top Scroll Reading Progress Indicator */
    #scrollProgressBar {
      position: fixed;
      top: 0;
      left: 0;
      height: 3.5px;
      background: linear-gradient(90deg, #0D9488 0%, #25D366 50%, #CCFBF1 100%);
      z-index: 100;
      width: 0%;
      transition: width 0.1s linear;
      box-shadow: 0 0 10px rgba(13, 148, 136, 0.6);
    }

    /* Active Scrolled Header Styling */
    .legacy-header-scrolled {
      background-color: rgba(249, 248, 245, 0.98) !important;
      box-shadow: 0 10px 30px -10px rgba(10, 41, 40, 0.12);
      border-bottom-color: rgba(13, 148, 136, 0.2);
    }

    /* Parallax Scroll Container */
    .parallax-scroll-box {
      transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
      will-change: transform;
    }

    /* CARD HOVER TRANSITIONS */
    .hover-card-effect {
      transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .hover-card-effect:hover {
      transform: translateY(-6px);
      box-shadow: 0 20px 40px -15px rgba(13, 148, 136, 0.18);
      border-color: #0D9488;
    }

    /* IMAGE ZOOM ON HOVER */
    .img-zoom-wrapper {
      overflow: hidden;
    }
    .img-zoom-wrapper img {
      transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .img-zoom-wrapper:hover img {
      transform: scale(1.08);
    }

    /* CUSTOM SCROLLBAR */
    ::-webkit-scrollbar {
      width: 8px;
    }
    ::-webkit-scrollbar-track {
      background: #F9F8F5;
    }
    ::-webkit-scrollbar-thumb {
      background: #0D3B3A;
      border-radius: 4px;
    }

    /* NAVIGATION DROPDOWN ANIMATION */
    .nav-dropdown {
      opacity: 0;
      visibility: hidden;
      transform: translateY(10px);
      transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .has-dropdown:hover .nav-dropdown {
      opacity: 1;
      visibility: visible;
      transform: translateY(0);
    }

    /* TOAST ANIMATION */
    .toast-anim {
      animation: slideInRight 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }
    @keyframes slideInRight {
      from { transform: translateX(100%); opacity: 0; }
      to { transform: translateX(0); opacity: 1; }
    }

/* ---------- PRELOADER FAIL-SAFE (JS clears this once it runs) ---------- */
@keyframes preloaderAutoHide { to { opacity: 0; visibility: hidden; } }
#goanestPreloader { animation: preloaderAutoHide .4s ease 4s forwards; }
/* ---------- TRANSPARENT HEADER ---------- */
.site-header { background: transparent; border-bottom: 1px solid transparent; transition: background-color .3s ease, box-shadow .3s ease, border-color .3s ease, backdrop-filter .3s ease; }
.site-header .site-logo { transition: height .3s ease; }
.site-header.header-scrolled, .site-header.header-open { background-color: rgba(249,248,245,.96); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 10px 30px -10px rgba(10,41,40,.12); border-bottom-color: rgba(13,148,136,.2); }
.site-header.header-scrolled .site-logo { height: 2.5rem; }
.nav-link[aria-current="page"] { color: #0D9488; }
/* ---------- LEGAL / PROSE PAGES ---------- */
.legal h2 { font-size: 1.35rem; font-weight: 800; color: #0A2928; margin: 2rem 0 .6rem; scroll-margin-top: 6rem; }
.legal p, .legal li { font-size: .9rem; line-height: 1.75; color: #5C6B68; }
.legal p { margin: .6rem 0; }
.legal ul { list-style: disc; padding-left: 1.25rem; margin: .6rem 0; }
.legal ol { list-style: decimal; padding-left: 1.25rem; margin: .6rem 0; }
.legal li { margin: .35rem 0; }
.legal a { color: #0D9488; font-weight: 600; text-decoration: underline; }
.legal strong { color: #1D2423; }
.legal table { width: 100%; border-collapse: collapse; font-size: .82rem; background: #fff; }
.legal th, .legal td { text-align: left; padding: .65rem .8rem; border: 1px solid #EAE7E0; color: #5C6B68; vertical-align: top; }
.legal th { background: #F9F8F5; color: #1D2423; font-weight: 700; }
details > summary::-webkit-details-marker { display: none; }
@media print { .site-header, #backToTopBtn, #scrollProgressBar { display: none !important; } }

/* Local flat feature icons: retain original card dimensions and theme. */
.goanest-flat-icon { width: 26px; height: 26px; object-fit: contain; flex-shrink: 0; display: inline-block; vertical-align: middle; }
.goanest-flat-check { width: 1em; height: 1em; display: inline-block; vertical-align: -0.12em; flex-shrink: 0; }
