/**
 * Nepal Trip Services - Modern Website Footer Stylesheet
 * Matching Visual Reference: footer layout new.PNG
 * Scoped under .site-footer & .footer-mountain-scene
 */

/* ==========================================================================
   CSS CUSTOM PROPERTIES / TOKENS
   ========================================================================== */
:root {
    --nts-footer-bg: #143860;
    --nts-footer-bg-dark: #0f2d4e;
    --nts-footer-text: #e2e8f0;
    --nts-footer-text-muted: rgba(226, 232, 240, 0.72);
    --nts-footer-heading: #ffffff;
    --nts-footer-accent: #f59e0b;
    --nts-footer-accent-hover: #d97706;
    --nts-footer-border: rgba(255, 255, 255, 0.12);
    --nts-footer-font: 'Mulish', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ==========================================================================
   TOP MOUNTAIN / CAMPING ILLUSTRATION SCENE
   ========================================================================== */
.footer-mountain-scene {
    position: relative;
    width: 100%;
    line-height: 0;
    overflow: hidden;
    background: #ffffff;
    margin-bottom: -1px; /* Prevent subpixel gap */
    z-index: 1;
}

.footer-mountain-scene img,
.footer-mountain-scene svg,
.footer-illustration-img {
    display: block;
    width: 100%;
    height: auto;
    min-height: 100px;
    max-height: 280px;
    object-fit: cover;
    object-position: bottom center;
}

/* ==========================================================================
   MAIN FOOTER CONTAINER
   ========================================================================== */
.site-footer {
    position: relative;
    background-color: var(--nts-footer-bg);
    color: var(--nts-footer-text);
    font-family: var(--nts-footer-font);
    font-size: 14px;
    line-height: 1.6;
    padding-top: 48px;
    padding-bottom: 0;
    overflow: hidden;
    z-index: 1;
}

/* ==========================================================================
   MAIN FOOTER GRID
   ========================================================================== */
.footer-main-container {
    padding-bottom: 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.1fr 1.35fr 1.15fr;
    gap: 40px;
    align-items: flex-start;
}

/* ==========================================================================
   COLUMN 1: BRAND & CONTACT INFORMATION
   ========================================================================== */
.footer-col-brand {
    display: flex;
    flex-direction: column;
}

.footer-brand-logo {
    display: inline-block;
    margin-bottom: 20px;
    transition: opacity 0.25s ease;
    text-decoration: none;
}

.footer-brand-logo:hover {
    opacity: 0.92;
}

.footer-logo-img {
    max-height: 111px;
    max-width: 220px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.25));
}

.footer-brand-text {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
    display: block;
}

.footer-contact-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--nts-footer-text);
    font-size: 14px;
    line-height: 1.5;
}

.footer-contact-item > i {
    flex-shrink: 0;
    font-size: 16px;
    color: var(--nts-footer-accent);
    margin-top: 3px;
    width: 18px;
    text-align: center;
}

.footer-contact-item a {
    color: var(--nts-footer-text);
    text-decoration: none;
    transition: color 0.2s ease;
    word-break: break-word;
}

.footer-contact-item a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.footer-contact-actions {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 6px;
}

.footer-app-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    color: #ffffff !important;
    font-size: 12px;
    text-decoration: none !important;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.footer-app-btn:hover {
    transform: scale(1.12);
    opacity: 0.95;
}

.footer-app-btn.whatsapp {
    background-color: #25d366;
}

.footer-app-btn.viber {
    background-color: #7360f2;
}

/* ==========================================================================
   COLUMN 2: NEWSLETTER & QUICK LINKS
   ========================================================================== */
.footer-col-middle {
    display: flex;
    flex-direction: column;
}

.footer-section-title {
    color: var(--nts-footer-heading);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: 14px;
    text-transform: none;
}

.footer-section-title.uppercase {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #ffffff;
    margin-bottom: 14px;
}

/* Newsletter Container */
.footer-newsletter-box {
    margin-bottom: 26px;
}

.footer-newsletter-form {
    position: relative;
    max-width: 440px;
    width: 100%;
}

.footer-newsletter-input-group {
    display: flex;
    align-items: center;
    background: #ffffff;
    border-radius: 999px;
    padding: 4px 5px 4px 18px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.footer-newsletter-input-group:focus-within {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22), 0 0 0 2px var(--nts-footer-accent);
}

.footer-newsletter-input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-family: var(--nts-footer-font);
    font-size: 14px;
    color: #1e293b;
    padding: 8px 6px;
}

.footer-newsletter-input::placeholder {
    color: #94a3b8;
    font-size: 13.5px;
}

.footer-newsletter-btn {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: #113154;
    color: #ffffff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.25s ease, transform 0.25s ease;
}

.footer-newsletter-btn:hover {
    background-color: var(--nts-footer-accent);
    color: #ffffff;
    transform: scale(1.05);
}

.footer-newsletter-btn i {
    font-size: 13px;
    transition: transform 0.2s ease;
}

.footer-newsletter-btn:hover i {
    transform: translateX(2px);
}

.footer-newsletter-msg {
    margin-top: 8px;
    font-size: 12.5px;
    display: none;
    padding-left: 12px;
}

.footer-newsletter-msg.success {
    display: block;
    color: #4ade80;
}

.footer-newsletter-msg.error {
    display: block;
    color: #f87171;
}

/* Quick Links 2-Column Grid */
.footer-quick-links-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 24px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-quick-link-item a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--nts-footer-text);
    text-decoration: none;
    font-size: 13.5px;
    line-height: 1.45;
    transition: color 0.2s ease, transform 0.2s ease;
}

.footer-quick-link-item a i {
    font-size: 10px;
    color: var(--nts-footer-accent);
    transition: transform 0.2s ease;
}

.footer-quick-link-item a:hover {
    color: #ffffff;
    transform: translateX(3px);
}

.footer-quick-link-item a:hover i {
    transform: translateX(2px);
}

/* ==========================================================================
   COLUMN 3: SOCIAL MEDIA & ASSOCIATIONS
   ========================================================================== */
.footer-col-social {
    display: flex;
    flex-direction: column;
}

/* Social Media Circles */
.footer-social-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 28px;
}

.footer-social-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    text-decoration: none;
    font-size: 15px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-social-circle:hover {
    background: var(--nts-footer-accent);
    color: #ffffff;
    border-color: var(--nts-footer-accent);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35);
}

/* Associations White Pill Container */
.footer-associated-box {
    margin-top: 4px;
}

.footer-associated-pill {
    background: #ffffff;
    border-radius: 999px;
    padding: 8px 18px;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
    max-width: 100%;
}

.footer-associated-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.footer-associated-item img {
    height: 32px;
    width: auto;
    max-width: 48px;
    object-fit: contain;
    filter: grayscale(0.15);
    transition: filter 0.25s ease, transform 0.25s ease;
}

.footer-associated-item:hover img {
    filter: grayscale(0);
    transform: scale(1.08);
}

/* ==========================================================================
   BOTTOM COPYRIGHT & PAYMENT METHOD CARD
   ========================================================================== */
.footer-bottom-wrapper {
    width: 100%;
    margin-top: 20px;
}

.footer-bottom-card {
    background: #ffffff;
    border-radius: 24px 24px 0 0;
    padding: 18px 36px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
}

.footer-bottom-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-copyright-text {
    color: #475569;
    font-size: 13px;
    font-weight: 500;
    margin: 0;
    line-height: 1.5;
}

.footer-payment-methods {
    display: inline-flex;
    align-items: center;
}

.footer-payment-img {
    height: 28px;
    width: auto;
    max-width: 320px;
    object-fit: contain;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.05));
}

/* ==========================================================================
   BACK TO TOP FLOATING BUTTON
   ========================================================================== */
.footer-back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--nts-footer-accent);
    color: #ffffff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 99;
}

.footer-back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.footer-back-to-top:hover {
    background-color: var(--nts-footer-accent-hover);
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.45);
}

/* ==========================================================================
   RESPONSIVE DESIGN BREAKPOINTS
   ========================================================================== */

/* Large Laptops / Tablets Landscape (max-width: 1199px) */
@media (max-width: 1199.98px) {
    .footer-grid {
        grid-template-columns: 1.1fr 1.3fr 1.1fr;
        gap: 30px;
    }

    .footer-associated-pill {
        padding: 6px 14px;
        gap: 10px;
    }

    .footer-associated-item img {
        height: 28px;
    }
}

/* Tablets (max-width: 991.98px) */
@media (max-width: 991.98px) {
    .site-footer {
        padding-top: 40px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px 30px;
    }

    .footer-col-social {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 24px;
        align-items: flex-start;
    }

    .footer-associated-box {
        margin-top: 0;
    }

    .footer-bottom-card {
        padding: 16px 24px;
    }
}

/* Mobile Devices (max-width: 767.98px) */
@media (max-width: 767.98px) {
    .site-footer {
        padding-top: 32px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .footer-col-social {
        display: flex;
        flex-direction: column;
        gap: 24px;
    }

    .footer-associated-pill {
        width: 100%;
        justify-content: space-around;
        padding: 8px 12px;
    }

    .footer-associated-item img {
        height: 26px;
    }

    .footer-quick-links-grid {
        gap: 8px 16px;
    }

    .footer-bottom-card {
        padding: 16px 20px;
        border-radius: 20px 20px 0 0;
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 14px;
    }

    .footer-back-to-top {
        bottom: 16px;
        right: 16px;
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
}

/* Small Mobile Devices (max-width: 479.98px) */
@media (max-width: 479.98px) {
    .footer-brand-text {
        font-size: 20px;
    }

    .footer-quick-links-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .footer-social-row {
        gap: 8px;
    }

    .footer-social-circle {
        width: 35px;
        height: 35px;
        font-size: 13.5px;
    }

    .footer-associated-pill {
        flex-wrap: wrap;
        border-radius: 16px;
        padding: 10px 14px;
        gap: 8px 12px;
    }

    .footer-associated-item img {
        height: 24px;
    }

    .footer-payment-img {
        max-width: 260px;
        height: auto;
    }

    .footer-copyright-text {
        font-size: 12px;
    }
}
