/**
 * Stylesheet for Krishna Overseas Footer
 * Matches reference mockup exactly:
 * - 15px left & right padding space on the section wrapper
 * - Dark gray rounded footer card (#373636, border-radius: 20px 20px 0 0)
 * - Seamless left curved scoop tab matching media_1792711163845_a2914f26.png
 * - #ef7f1a continuous 2.8px orange border and pure white fill
 * - "Quality That Moves With You" vertical text reading from bottom to top
 * - Large white logo (height ~72px, width auto)
 * - 15.5px semi-bold top navigation menu links
 * - 18px column headings with compact orange underline (aligned to text width only, not full width)
 * - 14px products list with orange bullets
 * - 44px dark circular badges (#2c2b2b) with #ef7f1a orange icons
 * - 15.5px bold contact labels and 14px values
 * - 38px scroll-to-top button with orange border & glow
 * - Dark bottom bar (#2c2b2b)
 *
 * @package Krishna_Overseas
 */

.krishna-footer-section {
    position: relative;
    width: 100%;
    background-color: transparent;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: var(--krishna-font-primary, 'Poppins', sans-serif);
    line-height: 1.5;
}

/* Full Width Wrapper with strict 15px left and right padding space */
.krishna-footer-wrapper {
    width: 100%;
    max-width: 100%;
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box;
}

/* Rounded Dark Footer Card */
.krishna-footer-card {
    position: relative;
    width: 100%;
    background-color: #373636;
    border-radius: 20px 20px 0 0;
    color: #ffffff;
    overflow: hidden;
    box-sizing: border-box;
}

/* Internal Container */
.krishna-footer-container {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding-left: 65px;
    padding-right: 30px;
    box-sizing: border-box;
}

/* --- Left Vertical Curved Scoop Tab ("Quality That Moves With You") --- */
.krishna-footer-tab-wrap {
    position: absolute;
    left: 0;
    top: 50px;
    width: 48px;
    height: 315px;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    box-sizing: border-box;
}

.krishna-footer-tab-svg {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    display: block;
    filter: drop-shadow(2px 3px 6px rgba(0, 0, 0, 0.22));
}

.krishna-footer-tab-text {
    position: relative;
    z-index: 2;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-family: var(--krishna-font-primary, 'Poppins', sans-serif);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.6px;
    color: #151515;
    white-space: nowrap;
    padding-left: 2px;
}

/* --- Top Header Row: Logo & Horizontal Nav --- */
.krishna-footer-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 32px;
    padding-bottom: 22px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 30px;
    box-sizing: border-box;
}

.krishna-footer-logo-wrap {
    display: flex;
    align-items: center;
}

.krishna-footer-logo-link {
    display: inline-block;
    line-height: 0;
    text-decoration: none;
}

.krishna-footer-logo-img {
    height: 68px;
    max-height: 74px;
    width: auto;
    display: block;
    object-fit: contain;
}

.krishna-footer-nav {
    display: flex;
    align-items: center;
}

.krishna-footer-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 32px;
    align-items: center;
}

.krishna-footer-menu li {
    margin: 0;
    padding: 0;
}

.krishna-footer-menu li a {
    color: #ffffff;
    text-decoration: none;
    font-size: 15.5px;
    font-weight: 500;
    transition: color 0.25s ease;
    letter-spacing: 0.2px;
}

.krishna-footer-menu li a:hover {
    color: var(--krishna-primary, #ef7f1a);
}

/* --- Main Columns Grid --- */
.krishna-footer-main-grid {
    display: grid;
    grid-template-columns: minmax(250px, 1.15fr) minmax(210px, 0.95fr) minmax(460px, 2fr);
    gap: 40px;
    padding-bottom: 40px;
    box-sizing: border-box;
}

.krishna-footer-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* Headings with compact orange underline */
.krishna-footer-col-title {
    font-family: var(--krishna-font-heading, 'Poppins', sans-serif);
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 16px 0;
    padding-bottom: 5px;
    border-bottom: 2.5px solid var(--krishna-primary, #ef7f1a);
    display: inline-block;
    width: auto;
    max-width: max-content;
    align-self: flex-start;
    line-height: 1.3;
}

.krishna-footer-sub-title {
    font-family: var(--krishna-font-heading, 'Poppins', sans-serif);
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    margin: 22px 0 14px 0;
    padding-bottom: 4px;
    border-bottom: 2.5px solid var(--krishna-primary, #ef7f1a);
    display: inline-block;
    width: auto;
    max-width: max-content;
    align-self: flex-start;
}

/* Column 1: About Us & Certifications */
.krishna-footer-about-text {
    font-size: 14px;
    color: #cfcfcf;
    line-height: 1.65;
    margin: 0 0 16px 0;
    max-width: 340px;
}

.krishna-footer-cert-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px 12px;
    max-width: 230px;
}

.krishna-cert-box {
    display: block;
    background-color: #ffffff;
    border-radius: 6px;
    height: 34px;
    width: 66px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

/* Column 2: Products List */
.krishna-footer-products-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.krishna-footer-products-list li {
    margin-bottom: 9px;
}

.krishna-footer-products-list li a {
    color: #d8d8d8;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.6;
    transition: color 0.2s ease;
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
}

.krishna-footer-products-list li a:hover {
    color: var(--krishna-primary, #ef7f1a);
}

.product-bullet {
    color: var(--krishna-primary, #ef7f1a);
    font-size: 15px;
    line-height: 1;
}

/* Column 3: Contact Information Dual Grid */
.krishna-footer-col-contact {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.krishna-footer-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: 28px;
    align-items: start;
    width: 100%;
    box-sizing: border-box;
}

.krishna-footer-contact-left {
    border-right: 1px solid rgba(255, 255, 255, 0.12);
    padding-right: 28px;
    box-sizing: border-box;
}

.krishna-footer-contact-right {
    box-sizing: border-box;
    padding-left: 6px;
}

.krishna-contact-item {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.krishna-contact-location-item {
    align-items: flex-start;
    margin-bottom: 0;
}

.krishna-contact-circle-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 50%;
    background-color: #2c2b2b;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--krishna-primary, #ef7f1a);
}

.krishna-contact-circle-icon svg {
    display: block;
    stroke: var(--krishna-primary, #ef7f1a);
    width: 18px;
    height: 18px;
}

.krishna-contact-details {
    display: flex;
    flex-direction: column;
}

.krishna-contact-dept {
    font-size: 15.5px;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.25;
}

.krishna-contact-val {
    font-size: 14px;
    color: #b5b5b5;
    text-decoration: none;
    margin-top: 4px;
    transition: color 0.2s ease;
}

.krishna-contact-val:hover {
    color: var(--krishna-primary, #ef7f1a);
}

.krishna-contact-divider {
    height: 1px;
    background-color: rgba(255, 255, 255, 0.12);
    margin: 16px 0 18px;
}

.krishna-contact-address {
    font-style: normal;
    font-size: 13px;
    color: #b5b5b5;
    line-height: 1.55;
    margin-top: 4px;
}

/* --- Scroll to Top Button --- */
.krishna-scroll-top {
    position: absolute;
    right: 25px;
    bottom: 65px;
    width: 38px;
    height: 38px;
    background-color: #2d2d2d;
    border: 1.5px solid var(--krishna-primary, #ef7f1a);
    border-radius: 6px;
    box-shadow: 0 0 12px rgba(239, 127, 26, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #ffffff;
    transition: all 0.25s ease;
    z-index: 20;
    padding: 0;
}

.krishna-scroll-top:hover {
    background-color: var(--krishna-primary, #ef7f1a);
    transform: translateY(-2px);
    box-shadow: 0 0 16px rgba(239, 127, 26, 0.75);
}

/* --- Bottom Copyright Bar --- */
.krishna-footer-bottom-bar {
    background-color: #2c2b2b;
    padding: 16px 15px;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

.krishna-copyright-text {
    margin: 0;
    font-size: 13.5px;
    color: #9a9a9a;
    line-height: 1.4;
}

.krishna-copyright-text strong {
    color: #ffffff;
    font-weight: 600;
}

/* --- Widget Defaults Styling --- */
.krishna-footer-widget {
    margin-bottom: 20px;
    width: 100%;
}

.krishna-footer-widget:last-child {
    margin-bottom: 0;
}

.krishna-footer-widget ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.krishna-footer-widget ul li {
    margin-bottom: 8px;
}

.krishna-footer-widget ul li a {
    color: #d8d8d8;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.krishna-footer-widget ul li a:hover {
    color: var(--krishna-primary, #ef7f1a);
}

/* --- Responsive Breakpoints --- */
@media (max-width: 1024px) {
    .krishna-footer-main-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .krishna-footer-col-contact {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .krishna-footer-wrapper {
        padding-left: 0;
        padding-right: 0;
    }

    .krishna-footer-card {
        border-radius: 0;
    }

    .krishna-footer-container {
        padding-left: 18px;
        padding-right: 18px;
    }

    .krishna-footer-tab-wrap {
        display: none;
    }

    .krishna-footer-top-bar {
        flex-direction: column;
        gap: 20px;
        text-align: center;
        padding-top: 28px;
    }

    .krishna-footer-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
    }

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

    .krishna-footer-contact-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .krishna-footer-contact-left {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
        padding-right: 0;
        padding-bottom: 18px;
    }

    .krishna-footer-contact-right {
        padding-left: 0;
    }

    .krishna-scroll-top {
        right: 15px;
        bottom: 50px;
    }
}
