/* =================================================================
   KREDLO FOOTER - Pixel-perfect implementation
   Based on Kredlo design measurements
   ================================================================= */

.kredlo-footer {
    position: relative;
    width: 100%;
    background-color: #111827; /* Dark navy blue optimized for design */
    color: #FFFFFF;
    padding: 80px 0 60px 0; /* Generous padding matching design */
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.kredlo-footer p {
    color: #ffffff;
}

/* =================================================================
   CONTAINER
   ================================================================= */
.kredlo-footer__container {
    display: flex;
    gap: 200px;
    justify-content: flex-start;
}

/* =================================================================
   BRAND SECTION (Left Side)
   ================================================================= */
.kredlo-footer__brand {
    position: relative;
}

.kredlo-footer__logo img,
.kredlo-footer__logo-svg {
    width: auto;
    height: 92px;
    display: block;
}

.kredlo-footer__company-name {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
    color: #FFFFFF;
    margin: 0 0 16px 0;
    letter-spacing: 0.02em;
}

.kredlo-footer__company-description {
    font-size: 14px;
    line-height: 1.6;
    color: #D1D5DB; /* Light gray for description */
    margin: 0;
    max-width: 280px; /* Limit width for readability */
}

/* =================================================================
   CONTACT SECTION (Right Side)
   ================================================================= */
.kredlo-footer__contact {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Two columns far right */
    gap: 60px; /* Spacing between the two contact columns */
    align-items: start;
    justify-self: end; /* Push to far right */
}

.kredlo-footer__contact-column {
    position: relative;
}

.kredlo-footer__contact-title {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
    color: #FFFFFF;
    margin: 0 0 20px 0;
    letter-spacing: 0.005em;
    text-transform: none; /* Keep original case */
}

.kredlo-footer__contact-content {
    font-size: 15px;
    line-height: 1.6;
    color: #E5E7EB; /* Lighter gray for better readability */
}

.kredlo-footer__contact-content p {
    margin: 0 0 8px 0;
}

.kredlo-footer__contact-content p:last-child {
    margin-bottom: 0;
}

/* Style links in contact content */
.kredlo-footer__contact-content a {
    color: #E5E7EB;
    text-decoration: none;
    transition: color 0.3s ease;
}

.kredlo-footer__contact-content a:hover {
    color: #FFFFFF;
    text-decoration: underline;
}

/* LinkedIn social icon */
.kredlo-footer__social {
    margin-top: 16px;
    padding-top: 16px;
}

.kredlo-footer__linkedin {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #a319b2 !important;
    text-decoration: none;
    transition: all 0.3s ease;
}
.kredlo-footer__linkedin:hover{
    color: #FFFFFF !important;
}

.kredlo-footer__linkedin svg {
    width: 20px;
    height: 20px;
}

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

/* Large desktop */
@media (min-width: 1400px) {
    .kredlo-footer {
        padding: 100px 0 80px 0;
    }

    .kredlo-footer__container {
        gap: 240px;
    }

    .kredlo-footer__contact {
        gap: 80px;
    }

    .kredlo-footer__company-name {
        font-size: 26px;
    }

    .kredlo-footer__contact-title {
        font-size: 17px;
    }
}

/* Desktop adjustments */
@media (max-width: 1200px) {
    .kredlo-footer__container {
        gap: 120px;
    }

    .kredlo-footer__contact {
        gap: 40px;
    }
}

/* Tablet - stack vertically */
@media (max-width: 768px) {
    .kredlo-footer {
        padding: 60px 0 40px 0;
    }

    .kredlo-footer__container {
        grid-template-columns: 1fr; /* Stack vertically */
        gap: 50px;
        flex-direction: column;
    }

    .kredlo-footer__company-description {
        max-width: none; /* Remove width restriction on mobile */
    }

    .kredlo-footer__contact {
        grid-template-columns: 1fr; /* Single column on tablet */
        gap: 40px;
    }

    .kredlo-footer__logo img,
    .kredlo-footer__logo-svg {
        max-height: 40px;
    }

    .kredlo-footer__company-name {
        font-size: 22px;
    }

    .kredlo-footer__contact-title {
        font-size: 15px;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .kredlo-footer {
        padding: 50px 0 30px 0;
    }

    .kredlo-footer__container {
        gap: 40px;
    }

    .kredlo-footer__contact {
        gap: 32px;
    }

    .kredlo-footer__logo {
        margin-bottom: 20px;
    }

    .kredlo-footer__logo img,
    .kredlo-footer__logo-svg {
        max-height: 36px;
    }

    .kredlo-footer__company-name {
        font-size: 20px;
        margin-bottom: 12px;
    }

    .kredlo-footer__company-description {
        font-size: 13px;
    }

    .kredlo-footer__contact-title {
        font-size: 14px;
        margin-bottom: 16px;
    }

    .kredlo-footer__contact-content {
        font-size: 13px;
    }
}

/* =================================================================
   ACCESSIBILITY ENHANCEMENTS
   ================================================================= */

/* High contrast mode support */
@media (prefers-contrast: high) {
    .kredlo-footer {
        background-color: #000000;
        border-top: 2px solid #FFFFFF;
    }

    .kredlo-footer__company-name,
    .kredlo-footer__contact-title {
        color: #FFFFFF;
    }

    .kredlo-footer__company-description,
    .kredlo-footer__contact-content {
        color: #CCCCCC;
    }

    .kredlo-footer__contact-content a {
        color: #CCCCCC;
    }

    .kredlo-footer__contact-content a:hover {
        color: #FFFFFF;
    }
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    .kredlo-footer__contact-content a {
        transition: none;
    }
}

/* =================================================================
   PRINT STYLES
   ================================================================= */

@media print {
    .kredlo-footer {
        background: white !important;
        color: black !important;
        border-top: 2px solid black;
        page-break-inside: avoid;
        padding: 40px 0;
    }

    .kredlo-footer__company-name,
    .kredlo-footer__contact-title {
        color: black !important;
    }

    .kredlo-footer__company-description,
    .kredlo-footer__contact-content {
        color: #333333 !important;
    }

    .kredlo-footer__contact-content a {
        color: #333333 !important;
        text-decoration: underline !important;
    }

    .kredlo-footer__container {
        gap: 40px;
    }
}

/* =================================================================
   SPECIFIC STYLING FOR CONTACT INFO
   ================================================================= */

/* Style email addresses */
.kredlo-footer__contact-content a[href^="mailto:"] {
    font-weight: 500;
}

/* Style phone numbers */
.kredlo-footer__contact-content a[href^="tel:"] {
    font-weight: 500;
}

/* Style addresses */
.kredlo-footer__contact-content .address {
    font-style: normal;
    line-height: 1.5;
}

/* Add subtle hover effects for better UX */
.kredlo-footer__contact-column {
    transition: transform 0.2s ease;
}


/* =================================================================
   UNDERFOOTER SECTION
   ================================================================= */

.kredlo-underfooter {
    position: relative;
    width: 100%;
    background-color: #111827; /* Darker than main footer */
    color: #ffffff; /* Muted gray text */
    padding: 24px 0;
    border-top: 1px solid #374151; /* Subtle separator */
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.kredlo-underfooter p,
.kredlo-underfooter div,
.kredlo-underfooter a {
    color: #ffffff; /* Muted gray text */
}

.kredlo-underfooter__container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.kredlo-underfooter__copyright {
    font-size: 14px;
    line-height: 1.5;
    color: #9CA3AF;
    margin: 0;
}

.kredlo-underfooter__links {
    display: flex;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
}

.kredlo-underfooter__link {
    font-size: 14px;
    line-height: 1.5;
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
}

.kredlo-underfooter__link:hover{
    text-decoration: underline;
}

/* =================================================================
   UNDERFOOTER RESPONSIVE DESIGN
   ================================================================= */

/* Large desktop */
@media (min-width: 1400px) {
    .kredlo-underfooter {
        padding: 28px 0;
    }

    .kredlo-underfooter__links {
        gap: 40px;
    }
}

/* Desktop adjustments */
@media (max-width: 1200px) {
    .kredlo-underfooter__links {
        gap: 24px;
    }
}

/* Tablet - center and stack if needed */
@media (max-width: 768px) {
    .kredlo-underfooter {
        padding: 20px 0;
    }

    .kredlo-underfooter__container {
        flex-direction: column;
        gap: 16px;
    }

    .kredlo-underfooter__links {
        gap: 20px;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .kredlo-underfooter {
        padding: 16px 0;
    }

    .kredlo-underfooter__container {
        gap: 12px;
    }

    .kredlo-underfooter__copyright {
        font-size: 13px;
    }

    .kredlo-underfooter__link {
        font-size: 13px;
    }

    .kredlo-underfooter__links {
        gap: 16px;
    }
}

/* =================================================================
   UNDERFOOTER ACCESSIBILITY ENHANCEMENTS
   ================================================================= */

/* High contrast mode support */
@media (prefers-contrast: high) {
    .kredlo-underfooter {
        background-color: #000000;
        border-top: 2px solid #FFFFFF;
    }

    .kredlo-underfooter__copyright,
    .kredlo-underfooter__link {
        color: #CCCCCC;
    }

    .kredlo-underfooter__link:hover {
        color: #FFFFFF;
    }
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    .kredlo-underfooter__link {
        transition: none;
    }
}

/* =================================================================
   UNDERFOOTER PRINT STYLES
   ================================================================= */

@media print {
    .kredlo-underfooter {
        background: white !important;
        color: black !important;
        border-top: 1px solid black;
        padding: 20px 0;
    }

    .kredlo-underfooter__copyright,
    .kredlo-underfooter__link {
        color: #333333 !important;
    }

    .kredlo-underfooter__link {
        text-decoration: underline !important;
    }
}
