/* ==========================================================================
   Shankar Industries - Comprehensive UI/UX & Layout Refinements
   ========================================================================== */

/* 1. Global Breadcrumb Section Control (350-450px Desktop) */
.page-header,
.company-page .page-header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px !important;
    padding: 135px 0 105px !important;
    background-color: #121824 !important;
    z-index: 1;
    overflow: hidden;
}

.page-header-bg,
.company-page .page-header-bg { 
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../images/breadcrumb-bg.jpg'), url('../images/backgrounds/page-header-bg.jpg'); 
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    z-index: -2;
}

/* Dark Overlay for Superior Text Readability */
.page-header:before,
.company-page .page-header:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.72) 0%, rgba(15, 23, 42, 0.82) 100%) !important;
    z-index: -1;
}

.page-header__inner {
    position: relative;
    display: block;
    text-align: center;
    z-index: 5;
}

.page-header__inner h2 {
    font-size: 48px !important;
    line-height: 58px !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    letter-spacing: -0.5px;
    margin-bottom: 14px !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.page-header__inner p {
    font-size: 17px !important;
    line-height: 26px !important;
    font-weight: 600 !important;
    color: rgba(255, 255, 255, 0.9) !important;
    margin: 0 !important;
    padding: 0 !important;
}

.page-header__inner p a {
    color: #ffffff !important;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.25s ease-in-out;
}

.page-header__inner p a:hover {
    color: var(--fixnix-base, #e63946) !important;
}

/* Keep embedded content within its Bootstrap container at every viewport size. */
.company-page img,
.company-page svg,
.company-page video,
.company-page canvas {
    max-width: 100%;
}

/* 2. Section Vertical Spacing (Compact & Balanced) */
.company-section { 
    padding: 60px 0; 
}

.company-section--soft { 
    background: #f8f9fa; 
}

.company-section__eyebrow { 
    color: var(--fixnix-base, #e63946); 
    font-weight: 800; 
    letter-spacing: .12em; 
    font-size: 13px; 
    text-transform: uppercase; 
    display: block; 
    margin-bottom: 8px;
}

.company-section__title { 
    font-size: 34px; 
    line-height: 1.25; 
    margin: 8px 0 18px; 
    font-weight: 700;
    color: #1a1a1a;
}

.company-section p { 
    line-height: 1.75; 
    color: #555; 
    margin-bottom: 15px;
}

/* 3. Image Alignment & Sizing */
.company-image { 
    width: 100%; 
    height: 100%; 
    max-height: 420px;
    object-fit: cover; 
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(25, 35, 55, .1); 
}

.service-hero { 
    padding: 60px 0 40px; 
}

.service-hero__image { 
    width: 100%; 
    max-height: 400px; 
    object-fit: cover; 
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.service-detail { 
    padding: 55px 0; 
}

.service-detail--gray { 
    background: #f8f9fa; 
}

.service-detail__heading { 
    font-size: 30px; 
    margin-bottom: 22px; 
    font-weight: 700; 
    color: #1a1a1a;
}

.service-detail__text { 
    line-height: 1.75; 
    color: #555; 
    margin-bottom: 16px; 
}

/* 4. Cards & Equal Heights */
.company-card { 
    display: flex;
    flex-direction: column;
    height: 100%; 
    padding: 28px 24px; 
    background: #fff; 
    border: 1px solid #eaedf1; 
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease; 
}

.company-card:hover { 
    transform: translateY(-6px); 
    box-shadow: 0 14px 30px rgba(25, 35, 55, .1); 
    border-color: #dce1e8;
}

.company-card__icon { 
    display: inline-flex; 
    width: 56px; 
    height: 56px; 
    align-items: center; 
    justify-content: center; 
    background: var(--fixnix-base, #e63946); 
    color: #fff; 
    font-size: 22px; 
    border-radius: 6px;
    margin-bottom: 18px; 
    transition: transform .3s ease;
}

.company-card:hover .company-card__icon {
    transform: scale(1.08) rotate(3deg);
}

.company-card h3 { 
    font-size: 20px; 
    margin-bottom: 12px; 
    font-weight: 700; 
    color: #1a1a1a;
}

.company-checklist { 
    margin: 0; 
    padding: 0; 
    list-style: none; 
}

.company-checklist li { 
    position: relative; 
    padding: 0 0 12px 30px; 
    line-height: 1.5; 
    color: #444;
    font-size: 15px;
}

.company-checklist li:before { 
    content: '\f00c'; 
    font-family: 'Font Awesome 5 Free'; 
    font-weight: 900; 
    position: absolute; 
    left: 0; 
    top: 2px; 
    color: var(--fixnix-base, #e63946); 
    font-size: 14px;
}

.company-callout { 
    padding: 35px; 
    background: var(--fixnix-black, #1e2530); 
    color: #fff; 
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

.company-callout h2, .company-callout h3, .company-callout p { color: #fff; }
.company-callout .company-checklist li { color: #e2e8f0; }
.company-callout .company-checklist li:before { color: #20c997; }

/* 5. Service Process Section */
.service-process { counter-reset: process; }
.service-process__item { 
    position: relative; 
    padding: 26px 20px 22px 76px; 
    background: #fff; 
    height: 100%; 
    border-radius: 6px;
    border-bottom: 4px solid var(--fixnix-base, #e63946); 
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    transition: transform .3s ease, box-shadow .3s ease;
}

.service-process__item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.08);
}

.service-process__item:before { 
    counter-increment: process; 
    content: '0' counter(process); 
    position: absolute; 
    left: 20px; 
    top: 24px; 
    color: var(--fixnix-base, #e63946); 
    font-size: 26px; 
    font-weight: 800; 
}

.service-process__item h3 { 
    font-size: 18px; 
    margin-bottom: 6px; 
    font-weight: 700; 
}

.service-process__item p {
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

/* 6. Specification Tables */
.service-table { 
    width: 100%; 
    border-collapse: collapse; 
    background: #fff; 
    border-radius: 6px; 
    overflow: hidden; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.03); 
}

.service-table th, .service-table td { 
    padding: 14px 18px; 
    border: 1px solid #e3e5e8; 
    text-align: left; 
    vertical-align: middle; 
    font-size: 15px;
}

.service-table th { 
    width: 28%; 
    color: var(--fixnix-black, #1e2530); 
    background: #f3f4f6; 
    font-weight: 700; 
}

/* 7. Call To Action (CTA) Banner */
.service-cta { 
    padding: 50px 0; 
    background: var(--fixnix-base, #e63946); 
    color: #fff; 
}

.service-cta h2 { 
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #fff; 
}

.service-cta p { 
    font-size: 17px;
    color: rgba(255, 255, 255, 0.9); 
}

.service-cta .thm-btn { 
    background: #fff; 
    color: var(--fixnix-black, #1e2530); 
    font-weight: 700; 
    padding: 13px 32px; 
    border-radius: 5px; 
    text-transform: uppercase; 
    letter-spacing: 0.5px; 
    transition: all .3s ease; 
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.service-cta .thm-btn:hover { 
    background: var(--fixnix-black, #1e2530); 
    color: #fff; 
}

/* 8. Clients Logo Gallery Layout */
.clients-section {
    padding: 60px 0;
    background-color: #f8f9fa;
}

.client-logo-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

@media (max-width: 1199px) {
    .client-logo-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 991px) {
    .client-logo-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 575px) {
    .client-logo-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
}

.client-logo-card {
    background: #ffffff;
    border: 1px solid #eaedf1;
    border-radius: 8px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.03);
    padding: 16px;
    height: 115px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.client-logo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.08);
    border-color: var(--fixnix-base, #e63946);
}

.client-logo-card img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(10%);
    transition: filter 0.3s ease;
}

.client-logo-card:hover img {
    filter: grayscale(0%);
}

/* 9. Contact Page Refinements */
.contact-page-section {
    padding: 60px 0;
    background-color: #f8f9fa;
}

.contact-info-card {
    background: #fff;
    padding: 26px 20px;
    border-radius: 8px;
    border: 1px solid #eaedf1;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.08);
}

/* 10. Footer Padding & Spacing */
.site-footer__top {
    padding: 50px 0 35px !important;
}

.site-footer__bottom {
    padding: 20px 0 !important;
}

/* 11. Responsive Overrides for Mobile & Tablet */
@media (max-width: 991px) {
    .page-header,
    .company-page .page-header { 
        min-height: 300px !important; 
        padding: 105px 0 80px !important; 
    }
    .page-header__inner h2 { 
        font-size: 38px !important; 
        line-height: 46px !important; 
        margin-bottom: 12px !important; 
    }
    .page-header__inner p { 
        font-size: 16px !important; 
    }
}

@media (max-width: 767px) { 
    html,
    body {
        max-width: 100%;
        overflow-x: clip;
    }

    .page-header,
    .company-page .page-header { 
        /* The main header overlays the banner on mobile, so reserve space for it. */
        min-height: 300px !important; 
        padding: 125px 0 60px !important;
    }
    .page-header .container {
        width: 100%;
        padding-right: 20px;
        padding-left: 20px;
    }
    .page-header__inner {
        width: 100%;
        max-width: 100%;
        margin-top: 0;
    }
    .page-header__inner h2 {
        max-width: 100%;
        overflow-wrap: anywhere;
    }
    .page-header__inner h2 { 
        font-size: 32px !important; 
        line-height: 40px !important; 
        margin-bottom: 10px !important; 
    }
    .page-header__inner p {
        max-width: 100%;
        overflow-wrap: anywhere;
        font-size: 15px !important;
        line-height: 24px !important;
    }
    .company-section, .service-detail, .contact-page-section, .clients-section { padding: 45px 0; } 
    .company-section__title { font-size: 26px; margin-bottom: 14px; } 
    .company-image { max-height: 280px; margin-bottom: 20px; } 
    .service-hero { padding: 45px 0 20px; } 
    .service-hero__image { max-height: 260px; }
    .service-table {
        table-layout: fixed;
    }
    .service-table th, .service-table td {
        padding: 10px 12px;
        font-size: 14px;
        overflow-wrap: anywhere;
    }
    .service-table th { width: 35%; }
    .company-callout { padding: 26px 20px; }
    .service-cta { padding: 38px 0; }
    .service-cta h2 { font-size: 24px; }
}

/* Keep the breadcrumb below the overlaying mobile header, including 768px devices. */
@media (max-width: 768px) {
    .page-header,
    .company-page .page-header {
        display: block;
        min-height: 0 !important;
        padding: 165px 0 60px !important;
    }
    .page-header__inner {
        margin-top: 0;
    }
}

@media (max-width: 374px) {
    .page-header .container {
        padding-right: 15px;
        padding-left: 15px;
    }
    .page-header__inner h2 {
        font-size: 29px !important;
        line-height: 36px !important;
    }
    .page-header__inner p {
        font-size: 14px !important;
        line-height: 22px !important;
    }
}
