/* General Section Styles */
.section-title {
    font-size: 1.875rem; /* text-3xl */
    line-height: 2.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1a1a1a; /* hes-dark */
}

@media (min-width: 768px) {
    .section-title {
        font-size: 2.25rem; /* md:text-4xl */
        line-height: 2.5rem;
    }
}

.section-subtitle {
    font-size: 1.125rem; /* text-lg */
    color: #4b5563; /* text-gray-600 */
    margin-bottom: 3rem;
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
}

/* --- Navigation Link Animations --- */
.nav-link {
    font-weight: 500;
    transition-property: all;
    transition-duration: 300ms;
    position: relative;
    padding-bottom: 4px;
    display: inline-block;
    text-decoration: none;
    
    /* Text Color Fill Effect (Left to Right) */
    background-image: linear-gradient(to right, #D4AF37 50%, white 50%);
    background-size: 200% 100%;
    background-position: 100% 0; 
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent; 
    transition: background-position 0.4s ease-out;
}

.nav-link:hover {
    background-position: 0 0;
}

/* Underline Animation (Left to Right) */
.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0; 
    background-color: #D4AF37;
    transition: width 0.4s ease-out;
}

.nav-link:hover::after {
    width: 100%; 
}

/* --- Utility Styles --- */
section {
    scroll-margin-top: 80px; 
}

/* Hero Overlay */
#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); 
    z-index: -1;
}

#hero > div {
    z-index: 1;
}

/* Sticky Navbar State */
#navbar.scrolled {
    background-color: rgba(26, 26, 26, 0.9); /* bg-hes-dark/90 */
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    backdrop-filter: blur(12px);
}

/* Language Dropdown Animation */
#lang-dropdown.show {
    display: block;
    opacity: 1;
    transform: scale(100%);
}

/* --- Mobile Menu Animation (Unfold Effect) --- */
#mobile-menu {
    transition: max-height 0.5s ease-in-out, opacity 0.4s ease-in-out;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
}

#mobile-menu.open {
    max-height: 600px; /* Large enough to fit content */
    opacity: 1;
}

/* Carousel Styles */
.deal-slide {
    display: none;
    animation: fadeIn 0.5s;
}
.deal-slide.active {
    display: block;
}

.image-set {
    display: none;
    animation: fadeIn 0.5s;
}
.image-set.active {
    display: block;
}

.photo-slide {
    display: none;
}
.photo-slide.active {
    display: block;
    animation: fadeSlide 0.4s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes fadeSlide {
    from { opacity: 0; transform: translateX(10px); }
    to { opacity: 1; transform: translateX(0); }
}

/* --- Bird/Logo Animation --- */
.bird-logo {
    transition: transform 0.5s ease;
    transform-origin: center;
}

/* Flying State (Active on Scroll) */
.flying .bird-logo {
    transform: translateY(-3px) rotate(8deg) scale(1.05);
}

/* --- Vault Animation Styles --- */
.flow-path {
    stroke-dasharray: 12, 6;
    animation: flowDash 1s linear infinite;
}

@keyframes flowDash {
    from { stroke-dashoffset: 36; }
    to { stroke-dashoffset: 0; }
}

.vault-pulse {
    animation: pulse-gold 2s infinite;
}

@keyframes pulse-gold {
    0% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(212, 175, 55, 0); }
    100% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0); }
}

/* --- Smart Payment Simulation Styles --- */
.doc-popup {
    opacity: 0;
    transform: scale(0.8) translateY(10px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
}
.doc-popup.visible {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.check-stamp {
    opacity: 0;
    transform: scale(2);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}
.check-stamp.visible {
    opacity: 1;
    transform: scale(1);
}

.money-bag {
    opacity: 0;
    position: absolute;
    transition: all 1s ease-in-out;
    z-index: 50;
    left: 50%; /* Start at Vault (Center) */
    top: 20%;  /* Adjust based on vault position */
    transform: translate(-50%, -50%);
}

.money-bag.visible {
    opacity: 1;
}

/* Money destinations (relative to the container) */
.money-to-step-1 {
    top: 100% !important;
    left: 16% !important; /* Roughly first column */
}
.money-to-step-2 {
    top: 100% !important;
    left: 50% !important; /* Roughly second column */
}
.money-to-step-3 {
    top: 100% !important;
    left: 84% !important; /* Roughly third column */
}