/* ============================================
   THE SUITES - Cincinnati
   Custom Styles
   ============================================ */

/* Base */
html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #faf5eb;
}
::-webkit-scrollbar-thumb {
    background: #065f46;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #047857;
}

/* Selection */
::selection {
    background: #065f46;
    color: #fdfbf7;
}

/* ============================================
   Navigation
   ============================================ */
#navbar {
    transition: background-color 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

#navbar.scrolled {
    background-color: rgba(253, 251, 247, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(6, 78, 59, 0.08);
}

.nav-text {
    transition: color 0.3s ease;
}

.nav-link {
    position: relative;
    color: #065f46;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: #d4a574;
    transition: width 0.3s ease;
}

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

.nav-cta {
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.nav-cta:hover {
    transform: translateY(-1px);
}

.nav-subtext {
    transition: color 0.3s ease;
}

#navbar:not(.scrolled) .nav-text {
    color: #fdfbf7;
}

#navbar:not(.scrolled) .nav-subtext {
    color: #d4a574;
}

#navbar:not(.scrolled) .nav-link {
    color: #fdfbf7;
}

#navbar:not(.scrolled) .nav-cta {
    background: rgba(253, 251, 247, 0.15);
    border: 1px solid rgba(253, 251, 247, 0.3);
    color: #fdfbf7;
}

#navbar:not(.scrolled) .nav-cta:hover {
    background: rgba(253, 251, 247, 0.25);
}

#navbar:not(.scrolled) .nav-bar1,
#navbar:not(.scrolled) .nav-bar2,
#navbar:not(.scrolled) .nav-bar3 {
    background: #fdfbf7;
}

/* Mobile Menu */
.mobile-nav-link {
    color: #065f46;
    transition: color 0.3s ease, letter-spacing 0.3s ease;
}

.mobile-nav-link:hover {
    color: #d4a574;
    letter-spacing: 0.35em;
}

/* ============================================
   Hero
   ============================================ */
.hero-badge {
    opacity: 0;
    animation: fadeInDown 0.8s ease forwards;
    animation-delay: 0.3s;
}

.hero-badge span:first-child {
    animation: expandWidth 0.6s ease forwards;
    animation-delay: 0.3s;
    transform-origin: left;
}

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

@keyframes expandWidth {
    from {
        width: 0;
    }
    to {
        width: 48px;
    }
}

.hero-scroll {
    opacity: 0;
    animation: fadeIn 1s ease forwards;
    animation-delay: 1.2s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Floating Card Animations */
.card-float-1 {
    animation: float1 6s ease-in-out infinite;
}

.card-float-2 {
    animation: float2 5s ease-in-out infinite;
    animation-delay: 1s;
}

.card-float-3 {
    animation: float3 4s ease-in-out infinite;
    animation-delay: 0.5s;
}

@keyframes float1 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(0.5deg); }
}

@keyframes float2 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(-0.5deg); }
}

@keyframes float3 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-8px); }
}

/* ============================================
   Reveal Animations (Progressive Enhancement)
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }

    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }

    .reveal:nth-child(2) { transition-delay: 0.1s; }
    .reveal:nth-child(3) { transition-delay: 0.2s; }
    .reveal:nth-child(4) { transition-delay: 0.3s; }
    .reveal:nth-child(5) { transition-delay: 0.4s; }
    .reveal:nth-child(6) { transition-delay: 0.5s; }
}

/* Ensure content is visible without JS */
.no-js .reveal,
.reveal {
    opacity: 1;
    transform: none;
}

/* ============================================
   Buttons & Links
   ============================================ */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #065f46;
    outline-offset: 2px;
}

/* ============================================
   Select Dropdown
   ============================================ */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23065f46' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 767px) {
    .hero-scroll {
        display: none;
    }
}
