/* Waterfalls Hub Specialized Styles */

/* Navigation */
.waterfall-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(14, 165, 233, 0.1);
    z-index: 1000;
    padding: 1rem 0;
}

.waterfall-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.nav-brand a {
    font-weight: 600;
    color: #0ea5e9;
    text-decoration: none;
    font-size: 1.1rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--gray);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 25px;
}

.nav-links a.active {
    color: #0ea5e9;
    background: rgba(14, 165, 233, 0.1);
}

/* Waterfall Hero */
.waterfall-hero {
    min-height: clamp(360px, 58vh, 620px);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding: 110px 0 64px;
    background: linear-gradient(135deg, #0c1929 0%, #0f2942 30%, #0c4a6e 70%, #164e63 100%);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom,
        rgba(12, 25, 41, 0.3) 0%,
        rgba(14, 165, 233, 0.15) 50%,
        rgba(12, 25, 41, 0.5) 100%);
}

.mist-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 30% 20%, rgba(56, 189, 248, 0.2) 2px, transparent 2px),
        radial-gradient(circle at 70% 80%, rgba(14, 165, 233, 0.15) 1px, transparent 1px),
        radial-gradient(circle at 20% 70%, rgba(125, 211, 252, 0.15) 1px, transparent 1px);
    background-size: 100px 100px, 150px 150px, 80px 80px;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    max-width: 860px;
    padding: 0 2rem;
}

.hero-badge {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-title {
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(45deg, #ffffff, #7dd3fc, #38bdf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: clamp(1.05rem, 2.2vw, 1.35rem);
    font-weight: 300;
    margin-bottom: 1.75rem;
    opacity: 0.9;
    line-height: 1.4;
    max-width: 56ch;
    margin-left: auto;
    margin-right: auto;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1.5rem;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-scroll {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    text-align: center;
    color: white;
    opacity: 0.7;
    z-index: 2;
}

.scroll-arrow {
    font-size: 1.5rem;
}

/* Quick Navigation Cards */
.quick-nav {
    padding: 6rem 0;
    background: white;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, #1e293b, #0ea5e9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-intro {
    text-align: center;
    max-width: 800px;
    margin: -1.5rem auto 3rem;
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--gray);
}

.nav-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-card {
    background: white;
    border-radius: 20px;
    padding: 3rem 2.5rem;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(226, 232, 240, 0.8);
    position: relative;
    overflow: hidden;
}

.nav-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0ea5e9, #38bdf8, #0ea5e9);
}

.card-image {
    height: 140px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: block;
}

.nav-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark);
}

.nav-card p {
    color: var(--gray);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.card-status {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(14, 165, 233, 0.1);
    color: #0ea5e9;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.card-arrow {
    font-size: 1.2rem;
    color: #0ea5e9;
    font-weight: 600;
}

/* Featured Waterfalls Grid */
.featured-waterfalls {
    padding: 6rem 0;
    background: white;
}

.waterfalls-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.waterfall-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(14, 165, 233, 0.1);
}

.waterfall-card.featured {
    grid-column: span 2;
}

.waterfall-image {
    height: 200px;
    position: relative;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
}

.waterfall-card.featured .waterfall-image {
    height: 250px;
}

.waterfall-content {
    padding: 2.5rem;
}

.waterfall-content h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #0369a1;
    margin-bottom: 10px;
}

.waterfall-tag {
    background: rgba(14, 165, 233, 0.1);
    color: #0ea5e9;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    display: inline-block;
    margin-bottom: 15px;
    width: fit-content;
}

.waterfall-content p {
    color: var(--gray);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.waterfall-stats {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.waterfall-stats span {
    color: var(--gray);
}

.waterfall-link {
    color: #0ea5e9;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Safety Section */
.safety-overview {
    padding: 6rem 0;
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    color: #1e293b;
    text-align: center;
}

.safety-content h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.safety-intro {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.safety-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto 3rem;
}

.safety-feature {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(14, 165, 233, 0.1);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.safety-feature h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

/* Related Links Section */
.related-links {
    padding: 6rem 0;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    text-align: center;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.related-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(14, 165, 233, 0.1);
}

.related-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #0369a1;
}

.related-card p {
    color: var(--gray);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Buttons */
.btn-primary {
    display: inline-block;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #0ea5e9, #38bdf8);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    box-shadow: 0 4px 20px rgba(14, 165, 233, 0.3);
}

.btn-secondary {
    display: inline-block;
    padding: 0.875rem 1.75rem;
    background: transparent;
    color: #0ea5e9;
    border: 2px solid #0ea5e9;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    align-items: center;
    gap: 0.5rem;
}

/* Footer */
.waterfall-footer {
    background: var(--dark);
    color: white;
    padding: 3rem 0 2rem;
    border-top: 3px solid #0ea5e9;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-section h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
}

/* ---- Waterfall Theme: Common Content Section Overrides ---- */

.guide-content h2 {
    color: #0369a1;
}

.guide-content h3,
.info-card h3,
.activity-card h3 {
    color: #0ea5e9;
}

.guide-content .lead {
    color: #0c4a6e;
}

.guide-content[style*="background"] {
    background: #f0f9ff !important;
}

.info-card {
    border-top: 3px solid #0ea5e9;
    border-radius: 12px;
}

.activity-card {
    border-top: 3px solid #38bdf8;
    border-radius: 12px;
}

.warning-box {
    border-left: 4px solid #0ea5e9;
    background: #f0f9ff;
}

.warning-box h3 {
    color: #0369a1;
}

.image-text-row img {
    border-radius: 12px;
    border: 2px solid rgba(14, 165, 233, 0.1);
}

.gallery-caption strong {
    color: #0369a1;
}

.visual-break-caption {
    border-left: 3px solid #0ea5e9;
}

.gallery-item {
    border-radius: 12px;
    overflow: hidden;
}

/* Waterfall sub-page hero overlay enhancement */
.waterfall-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to top, rgba(12, 25, 41, 0.6), transparent);
    z-index: 1;
    pointer-events: none;
}

/* Planning card themed */
.planning-card {
    border-top: 3px solid #0ea5e9;
}

/* Accessibility and Motion Preferences */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@media (prefers-contrast: high) {
    .waterfall-card,
    .nav-card,
    .safety-feature,
    .info-card,
    .planning-card {
        border: 2px solid;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .quick-nav,
    .featured-waterfalls {
        background: #0f172a;
    }

    .waterfall-card,
    .safety-feature {
        background: #1e293b;
        border-color: rgba(148, 163, 184, 0.2);
    }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .waterfall-hero {
        min-height: clamp(300px, 52vh, 420px);
        padding: 96px 0 32px;
    }

    .hero-title {
        font-size: clamp(1.95rem, 8vw, 2.4rem);
        width: 100%;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
        text-wrap: balance;
        overflow-wrap: anywhere;
        word-break: break-word;
        white-space: normal;
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        max-width: 100%;
        margin-bottom: 1rem;
        padding: 0;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 0.75rem 1rem;
        margin-top: 1rem;
    }

    .hero-badge {
        margin-bottom: 1rem;
    }

    .waterfall-card.featured {
        grid-column: span 1;
    }

    .waterfall-nav .container {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .nav-links {
        display: flex;
        gap: 8px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }

    .nav-links a {
        font-size: 0.8rem;
        padding: 4px 10px;
        white-space: nowrap;
    }

    /* Stack nav cards vertically on mobile */
    .nav-cards {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .nav-card {
        padding: 2rem 1.5rem;
        min-height: 44px;
    }

    .card-icon {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }

    .nav-card h3 {
        font-size: 1.3rem;
    }

    .nav-card p {
        font-size: 0.95rem;
        line-height: 1.5;
    }

    .nav-card {
        border-radius: 16px;
    }

    .card-image {
        height: 180px;
        border-radius: 12px;
    }

    .section-title {
        font-size: 1.5rem;
    }

    /* Waterfall grid: single column on mobile */
    .waterfalls-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .waterfall-card {
        border-radius: 16px;
    }

    .waterfall-content {
        padding: 1.25rem;
    }

    .waterfall-image {
        height: 180px;
    }

    /* Footer single column */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    /* Safety features single column */
    .safety-features {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .safety-feature {
        border-radius: 16px;
        padding: 1.25rem;
    }

    /* Sections padding on mobile */
    .quick-nav,
    .featured-waterfalls,
    .safety-overview,
    .related-links {
        padding: 40px 0;
    }
}

@media (max-width: 480px) {
    .waterfall-hero {
        min-height: clamp(280px, 48vh, 360px);
        padding: 84px 0 24px;
    }

    .hero-title {
        font-size: clamp(1.75rem, 8.5vw, 2.1rem);
        width: 100%;
        max-width: 100%;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .waterfall-content {
        padding: 1.5rem;
    }
}

/* Extra small screens */
@media (max-width: 600px) {
    .hero-title {
        font-size: 2.2rem !important;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 1rem !important;
    }

    .nav-card h3 {
        font-size: 1.2rem;
    }

    .nav-card p {
        font-size: 0.9rem;
    }

    .section-title {
        font-size: 1.8rem;
    }
}

/* Print styles */
@media print {
    .waterfall-nav,
    .hero-scroll,
    .btn-primary,
    .btn-secondary {
        display: none;
    }

    .waterfall-hero {
        min-height: auto;
        padding: 2rem 0;
    }

    * {
        background: white !important;
        color: black !important;
        box-shadow: none !important;
    }
}
