/* ====== DOCTRELLO FOOTER STYLES ====== */
/* Clean, authoritative footer with exact 35%:25%:20%:20% layout */
/* Brand Colors: #234c78 (Primary), #4c7031 (Secondary) */

.footer {
    background: var(--light-bg);
    border-top: 1px solid var(--border-light);
    font-family: 'Inter', sans-serif;
    position: relative;
    z-index: 1;
    padding: 0;
}

/* ====== FULL WIDTH NEWSLETTER SECTION - SLEEK ====== */
.footer-newsletter {
    background: linear-gradient(135deg, #1a3a5a 0%, #234c78 100%);
    width: 100%;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.newsletter-title {
    color: white;
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.newsletter-text {
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
}

.newsletter-form .form-control {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 6px;
    padding: 0.6rem 1rem;
    color: white;
    font-size: 0.9rem;
    height: 45px;
}

.newsletter-form .form-control::placeholder {
    color: rgba(255,255,255,0.6);
}

.newsletter-form .form-control:focus {
    background: rgba(255,255,255,0.15);
    border-color: var(--secondary);
    box-shadow: none;
    color: white;
}

.btn-newsletter {
    background: var(--secondary);
    color: white;
    border: none;
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.2s ease;
    white-space: nowrap;
    height: 45px;
}

.btn-newsletter:hover {
    background: #3d5c27;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(76, 112, 49, 0.3);
    color: white;
}

/* ====== FULL WIDTH CTA SECTION ====== */
.footer-cta {
    background: linear-gradient(105deg, #2c3e4e 0%, #1e2b3c 100%);
    width: 100%;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.cta-title {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.cta-text {
    color: rgba(255,255,255,0.8);
    font-size: 1rem;
}

.cta-buttons {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: wrap;
}

.btn-cta {
    background: var(--secondary);
    color: white;
    border: none;
    padding: 0.7rem 2rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-cta:hover {
    background: #3d5c27;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(76, 112, 49, 0.3);
    color: white;
}

.btn-cta-outline {
    background: transparent;
    color: white;
    border: 1.5px solid rgba(255,255,255,0.5);
    padding: 0.7rem 2rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-cta-outline:hover {
    background: white;
    color: var(--primary);
    border-color: white;
    transform: translateY(-2px);
}

/* ====== EXACT PERCENTAGE WIDTHS ====== */
@media (min-width: 992px) {
    .footer .col-lg-5 {
        flex: 0 0 35%;
        max-width: 35%;
    }
    
    .footer .col-lg-3 {
        flex: 0 0 25%;
        max-width: 25%;
    }
    
    .footer .col-lg-2 {
        flex: 0 0 20%;
        max-width: 20%;
    }
}

@media (min-width: 1200px) {
    .footer .col-xl-5 {
        flex: 0 0 35%;
        max-width: 35%;
    }
    
    .footer .col-xl-3 {
        flex: 0 0 25%;
        max-width: 25%;
    }
    
    .footer .col-xl-2 {
        flex: 0 0 20%;
        max-width: 20%;
    }
}

/* ====== FOOTER CONTENT STYLES ====== */
.footer-heading {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
}

.footer-tagline {
    color: var(--text-soft);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 0.25rem;
    max-width: 280px;
}

.footer-link-platform {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
    font-size: 0.95rem;
    display: inline-block;
}

.footer-link-platform:hover {
    color: var(--secondary);
}

.footer-link {
    color: var(--text-soft);
    text-decoration: none;
    transition: color 0.2s ease;
    font-weight: 500;
    font-size: 0.9rem;
    display: inline-block;
}

.footer-link:hover {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.footer-note {
    color: var(--text-soft);
    font-style: italic;
    font-size: 0.8rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-light);
    display: inline-block;
}

.footer-hr {
    border-color: var(--border-light);
    opacity: 0.5;
    margin: 20px 0 0;
}

/* ====== SOCIAL ICONS ====== */
.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 1.5rem;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    color: var(--primary);
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid var(--border-light);
    font-size: 1.1rem;
}

.footer-social a:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(35, 76, 120, 0.15);
}

/* ====== BOTTOM FOOTER ====== */
.footer-bottom {
    background: #e9ecf0;
    width: 100%;
    margin-top: 0;
    padding: 0;
    border-top: 1px solid #d0d4d9;
}

.copyright {
    color: var(--text-dark);
    font-size: 0.8rem;
    font-weight: 500;
    margin: 0;
    line-height: 1.5;
}

/* ====== FOOTER LINK SMALL ====== */
.footer-link-small {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.8rem;
    transition: all 0.2s ease;
    position: relative;
    font-weight: 500;
    line-height: 1.5;
}

.footer-link-small:hover {
    color: var(--secondary) !important;
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-thickness: 1.5px;
}

/* Footer Lists */
.footer ul {
    padding: 0;
    margin: 0;
}

.footer ul li {
    margin-bottom: 0.75rem;
}

/* ====== RESPONSIVE ====== */
@media (max-width: 991px) {
    .footer {
        padding: 0;
    }
    
    .footer .row > div {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    .footer-tagline {
        max-width: 100%;
    }
    
    .footer-note {
        display: block;
    }
    
    .footer-social {
        justify-content: flex-start;
    }
    
    .footer-newsletter .row,
    .footer-cta .row {
        text-align: center;
    }
    
    .footer-cta .col-lg-8 {
        margin-bottom: 1rem;
    }
    
    .footer-cta .text-lg-end {
        text-align: center !important;
    }
    
    .footer-cta .col-lg-4 {
        text-align: center !important;
        margin-top: 1rem;
    }
    
    .cta-buttons {
        justify-content: center;
    }
    
    .newsletter-form {
        max-width: 500px;
        margin: 1rem auto 0;
    }
}

@media (max-width: 768px) {
    .footer {
        text-align: center;
    }
    
    .footer .row > div {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .footer-tagline {
        margin-left: auto;
        margin-right: auto;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-note {
        margin-left: auto;
        margin-right: auto;
    }
    
    .footer-bottom {
        text-align: center;
        padding: 12px 0;
    }
    
    .text-md-end {
        text-align: center !important;
        margin-top: 0.5rem;
    }
}

@media (max-width: 576px) {
    .footer-heading {
        margin-bottom: 1rem;
    }
    
    .footer ul li {
        margin-bottom: 0.5rem;
    }
    
    .footer-social {
        gap: 10px;
    }
    
    .footer-social a {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
    
    .footer-bottom {
        padding: 10px 0;
    }
    
    .footer-link-small {
        display: inline-block;
        margin: 0 8px !important;
    }
    
    .footer-link-small.me-4 {
        margin-right: 0 !important;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .btn-newsletter {
        width: 100%;
    }
    
    .footer-cta .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    
    .cta-title {
        font-size: 1.25rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }
    
    .btn-cta,
    .btn-cta-outline {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 375px) {
    .footer-bottom {
        padding: 8px 0;
    }
    
    .copyright,
    .footer-link-small {
        font-size: 0.75rem;
    }
}