/* =========================================
   FOOTER
========================================= */

.footer{
    position: relative;
    background: linear-gradient(135deg, #0f172a, #1d3557);
    overflow: hidden;
    padding: 160px 0 60px;
    color: #fff;
}

.footer::before{
    content: '';
    position: absolute;
    width: 680px;
    height: 680px;
    border-radius: 50%;
    background: radial-gradient(circle at 20% 20%, rgba(247,232,139,0.06), transparent 25%);
    top: -260px;
    right: -260px;
    transform: rotate(12deg);
    filter: blur(20px);
}

.footer-overlay{
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top left, rgba(247,232,139,0.08), transparent 32%),
                radial-gradient(circle at bottom right, rgba(123,200,164,0.06), transparent 32%);
    pointer-events: none;
}

.footer-inner{
    position: relative;
    z-index: 2;
}

.footer-top{
    position: relative;
    z-index: 2;
}

.footer-brand{
    margin-bottom: 40px;
}

.footer-logo{
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 25px;
}

.footer-logo-icon{
    width: 86px;
    height: 86px;
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(247,232,139,1), rgba(180,200,160,0.85));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: #0f172a;
    box-shadow: 0 30px 80px rgba(247,232,139,0.14);
}

.footer-logo-text h2{
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 5px;
}

.footer-logo-text span{
    color: rgba(255,255,255,0.65);
    display: block;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.logo-placeholder{
    width: 46px;
    height: 46px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(247,232,139,1), rgba(247,232,139,0.6));
    box-shadow: 0 18px 48px rgba(247,232,139,0.13);
}

.logo-text span{
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
}

.logo-text small{
    display: block;
    color: rgba(255,255,255,0.65);
}

.footer-description{
    color: rgba(255,255,255,0.72);
    line-height: 1.9;
    margin-bottom: 35px;
    max-width: 420px;
}

/* =========================================
   SOCIALS
========================================= */

.footer-socials{
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-socials a{
    width: 52px;
    height: 52px;
    border-radius: 18px;
    background: rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    transition: 0.4s ease;
}

.footer-socials a:hover{
    transform: translateY(-6px);
    background: linear-gradient(135deg, rgba(247,232,139,1), rgba(123,200,164,0.9));
    color: #0f1724;
}

/* =========================================
   FOOTER TITLES
========================================= */

.footer-title{
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 35px;
    position: relative;
}

.footer-title::after{
    content: '';
    position: absolute;
    left: 0;
    bottom: -14px;
    width: 80px;
    height: 4px;
    border-radius: 30px;
    background: linear-gradient(135deg, rgba(247,232,139,0.98), rgba(123,200,164,0.9));
}

/* =========================================
   LINKS
========================================= */

.footer-links{
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a{
    color: rgba(255,255,255,0.72);
    transition: 0.3s ease;
    position: relative;
    padding-left: 18px;
}

.footer-links a::before{
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #F7E887;
}

.footer-links a:hover{
    color: #fff;
    transform: translateX(6px);
}

/* =========================================
   CONTACT
========================================= */

.footer-contact{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 10px;
    padding: 18px 16px;
    border-radius: 20px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(247,232,139,0.2);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(16px);
    margin: 0 auto;
    max-width: 100%;
}

.footer-contact p{
    color: rgba(255,255,255,0.82);
    font-weight: 600;
    line-height: 1.5;
    margin: 0;
    font-size: 13px;
}

.footer-contact a{
    color: #F7E887;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 700;
    font-size: 13px;
}

.footer-contact a:hover,
.footer-contact a:focus{
    color: #fff;
    text-decoration: underline;
}

.footer-contact-item{
    display: flex;
    align-items: flex-start;
    gap: 18px;
}

.footer-contact-icon{
    width: 54px;
    height: 54px;
    border-radius: 18px;
    background: rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #F7E887;
    font-size: 20px;
}

.footer-contact-text{
    color: rgba(255,255,255,0.72);
    line-height: 1.8;
}

.newsletter-text{
    color: rgba(255,255,255,0.78);
    max-width: 320px;
    line-height: 1.8;
    margin-bottom: 28px;
}

/* =========================================
   NEWSLETTER
========================================= */

.newsletter-box{
    margin-top: 80px;
    padding: 50px;
    border-radius: 40px;
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(12px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.newsletter-content h3{
    font-size: 38px;
    font-weight: 800;
    margin-bottom: 12px;
}

.newsletter-content p{
    color: rgba(255,255,255,0.72);
}

.newsletter-form{
    flex: 1;
    max-width: 520px;
    display: flex;
    gap: 18px;
}

.newsletter-form input{
    flex: 1;
    height: 80px;
    border: 1px solid rgba(247,232,139,0.35);
    outline: none;
    border-radius: 14px;
    padding: 10px 18px;
    background: rgba(255,255,255,0.09);
    color: #fff;
    font-size: 14px;
    transition: 0.3s ease;
}

.newsletter-form input:focus{
    background: rgba(255,255,255,0.14);
    border-color: rgba(247,232,139,0.65);
    box-shadow: 0 0 0 3px rgba(247,232,139,0.15);
}

.newsletter-form input::placeholder{
    color: rgba(255,255,255,0.6);
}

.newsletter-form button{
    height: 52px;
    border: none;
    padding: 0 20px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(247,232,139,1), rgba(245,224,120,1));
    color: #0f1724;
    font-weight: 700;
    font-size: 13px;
    transition: 0.3s ease;
    white-space: nowrap;
    cursor: pointer;
}

.newsletter-form button:hover{
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(247,232,139,0.2);
}

/* footer subtle entrance */
@keyframes footerRise{
    from{ transform: translateY(18px); opacity: 0; }
    to{ transform: translateY(0); opacity: 1; }
}

.main-footer{
    animation: footerRise 1s ease both;
}

/* =========================================
   COPYRIGHT
========================================= */

.footer-bottom{
    margin-top: 100px;
    padding: 35px 0;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-bottom-wrapper{
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.footer-copy{
    color: rgba(255,255,255,0.65);
}

.footer-bottom-links{
    display: flex;
    align-items: center;
    gap: 25px;
}

.footer-bottom-links a{
    color: rgba(255,255,255,0.7);
    transition: 0.3s ease;
}

.footer-bottom-links a:hover{
    color: #fff;
}

/* Layout fixes: align footer columns and center bottom row */
.footer-inner .row{
    align-items: flex-start; /* ensure columns start at same vertical level */
}

.footer-brand,
.footer-links,
.newsletter-box{
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 100%;
}

.footer-bottom .row{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.footer-bottom .col-md-6{
    text-align: center;
}

.footer-bottom .text-md-end{ text-align: center !important; }

.footer-bottom-links{ justify-content: center; }

/* Responsive adjustments */
@media (max-width: 991px){
    .footer{ padding: 80px 0 40px; }
    .footer-logo-icon{ width: 64px; height: 64px; }
    .footer-logo-text h2{ font-size: 24px; }
    .newsletter-box{ flex-direction: column; gap: 18px; padding: 28px; }
    .footer-bottom-wrapper{ flex-direction: column; gap: 12px; text-align: center; }
}

@media (max-width: 991px){
    .footer-inner .row{
        align-items: flex-start;
    }
}

@media (max-width: 575px){
    .footer{ padding: 48px 0 28px; }
    .footer-inner .row{
        gap: 12px;
        --bs-gutter-y: 1rem;
    }
    .footer-inner .row > [class*='col-']{
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    .footer-logo-text h2{ font-size: 20px; }
    .newsletter-content h3{ font-size: 20px; }
    .newsletter-form input{ height: 48px; padding: 0 14px; }
    .newsletter-form button{ height: 48px; padding: 0 16px; font-size: 12px; }
    .footer-contact{ padding: 14px 12px; gap: 8px; }
    .footer-contact p, .footer-contact a{ font-size: 12px; }
    .footer-bottom{ margin-top: 40px; padding: 18px 0; }
}
