@import url('global.css');

/* Component Specific Styles */

/* Sections */
section {
    padding-top: var(--section-spacing);
    padding-bottom: 0;
}

/* Topbar */
.top-bar {
    background-color: var(--navy-blue);
    color: white;
    font-size: 11px;
    padding: 8px 0;
}

.top-bar a {
    color: white;
    text-decoration: none;
    font-weight: 500;
}

.top-bar-separator {
    margin: 0 12px;
    opacity: 0.3;
    font-weight: 300;
}

/* Navbar */
.main-navbar {
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.nav-link {
    color: var(--dark-text) !important;
    font-weight: 500;
    font-size: var(--fs-xs);
    text-transform: uppercase;
    padding: 0 15px !important;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-orange) !important;
    background: transparent !important;
}

.search-pill {
    background: #ffffff;
    border-radius: 4px;
    padding: 0;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    width: 280px;
    height: 32px;
    overflow: hidden;
}

.search-pill input {
    border: none;
    background: transparent;
    font-size: 11px;
    outline: none;
    padding: 0 15px;
    flex-grow: 1;
    color: #666;
}

.search-divider {
    width: 1px;
    height: 100%;
    background-color: var(--border-color);
}

.search-pill button {
    border: none;
    background: transparent;
    color: #666;
    padding: 0 12px;
    font-size: 12px;
    height: 100%;
}

.cart-icon {
    font-size: 1.2rem;
    color: var(--navy-blue);
    display: flex;
    align-items: center;
    text-decoration: none;
    position: relative;
    padding-right: 0;
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: 0;
    background-color: var(--primary-orange);
    color: white;
    font-size: 8px;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    transform: translateX(50%);
}

/* Benefit Bar */
.benefit-bar {
    border-bottom: 1px solid var(--border-color);
    background-color: var(--white);
    padding: 0;
}

.benefit-item {
    font-size: var(--fs-sm);
    font-weight: 700;
    color: var(--dark-text);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 0;
    position: relative;
    text-transform: capitalize;
    letter-spacing: 0.2px;
}

.benefit-bar .col:not(:last-child) {
    border-right: 1px solid var(--border-color);
}

.benefit-item i {
    color: var(--primary-orange);
    margin-right: 12px;
    font-size: 18px;
}

/* Hero Section - FINAL PIXEL PERFECT REDESIGN */
.homepage_hero-section {
    height: calc(100vh - 300px);
    min-height: 427px;
    position: relative;
    overflow: hidden;
    padding: 0 !important;
    background-image: url('assets/images/hero-bg-worker.png');
    background-size: cover;
    background-position: center;
}

.homepage_hero-section .container-fluid,
.homepage_hero-section .row,
.homepage_hero-section .col-lg-6 {
    height: 100%;
}

.homepage_hero-overlay-orange {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background-color: rgba(243, 111, 33, 0.85);
    /* Slightly transparent */
    z-index: 1;
}

.homepage_hero-overlay-grayscale {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background-color: rgba(180, 180, 180, 0.85);
    /* Denser gray to match orange side */
    backdrop-filter: grayscale(100%);
    z-index: 1;
}

.homepage_hero-content {
    position: relative;
    z-index: 10;
    padding-left: var(--page-padding);
    /* Match global 20px boundary */
    max-width: 680px;
}

.homepage_hero-content h1 {
    font-size: 40px;
    font-weight: 800;
    color: white;
    margin-bottom: 10px;
    /* Reduced gap */
    line-height: 1.1;
    text-transform: capitalize;
}

.homepage_hero-content p {
    font-size: 11px;
    /* Increased from 10px */
    color: white;
    margin-bottom: 30px;
    /* Reduced margin */
    opacity: 0.95;
    font-weight: 700;
    line-height: 1.4;
}

/* Hero Sections uses global .btn-pill-compact .btn-pill-white */

.homepage_hero-product-col {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 5;
}

.homepage_hero-product-img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 20px 40px rgba(var(--dark-gray-rgb), 0.15));
}

/* Slider Controls REDESIGN */
.homepage_hero-slider-controls {
    position: absolute;
    bottom: 0;
    right: 0;
    display: flex;
    z-index: 100;
}

.homepage_hero-control-btn {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    transition: all 0.3s ease;
    padding: 0;
}

.homepage_hero-control-btn.prev {
    background-color: var(--primary-orange);
}

.homepage_hero-control-btn.next {
    background-color: #a0a0a0;
    /* Gray from layout */
}

.homepage_hero-control-btn i {
    font-size: 24px;
    color: white;
}

.homepage_hero-control-btn:hover {
    filter: brightness(1.1);
}

.homepage_hero-section .container-fluid {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Category Grid Redesign */
.homepage_categories-section h2 {
    letter-spacing: 0.5px;
}

.homepage_categories-section .homepage_category-subtext {
    font-size: 11px;
    line-height: 1.5;
}

.homepage_categories-grid-container {
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    background: white;
}

.homepage_category-card-horizontal {
    display: flex;
    align-items: center;
    padding: 25px 20px;
    border-right: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    height: 100%;
    transition: all 0.3s ease;
}

.homepage_category-card-horizontal:hover {
    background-color: #fcfcfc;
}

.homepage_categories-grid-container .col:nth-child(5n) .homepage_category-card-horizontal {
    border-right: none;
}

.homepage_categories-grid-container .col:nth-last-child(-n+5) .homepage_category-card-horizontal {
    border-bottom: none;
}

.homepage_cat-icon-box {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.homepage_cat-icon-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.homepage_cat-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--dark-text);
    /* Matched to benefit items */
    text-transform: uppercase;
    line-height: 1.2;
    letter-spacing: 0.3px;
}

/* Category Grid uses global .btn-pill-compact .btn-pill-navy */

/* Promotion Cards Redesign (v2) */
/* Promotion Cards Redesign (v2) uses global section padding-top */

.homepage_promo-card-v2 {
    position: relative;
    border-radius: 20px;
    height: 180px;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
}

.homepage_promo-card-v2::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 60%;
    height: 100%;
    background: linear-gradient(to right, #e8e8e8 60%, rgba(232, 232, 232, 0.8) 80%, transparent 100%);
    z-index: 1;
}

.homepage_promo-card-content {
    position: relative;
    z-index: 10;
    padding: 40px;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.homepage_promo-card-v2 h2 {
    font-weight: 800;
    margin-bottom: 5px;
    line-height: 1.1;
    display: flex;
    flex-direction: column;
}

.homepage_promo-card-v2 h2 .type {
    display: block;
}

.homepage_promo-card-v2.residential h2 .type {
    color: var(--navy-blue);
}

.homepage_promo-card-v2.commercial h2 .type {
    color: var(--primary-orange);
}

.homepage_promo-card-v2 h2 .label {
    color: var(--dark-text);
    font-size: 18px;
}

.homepage_promo-card-v2 .homepage_promo-subtitle {
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 15px;
}

.homepage_promo-card-v2.residential .homepage_promo-subtitle {
    color: var(--primary-orange);
}

.homepage_promo-card-v2.commercial .homepage_promo-subtitle {
    color: var(--navy-blue);
}

.homepage_promo-card-v2 .homepage_promo-description {
    font-size: 11px;
    color: var(--dark-text);
    margin-bottom: 0;
    line-height: 1.5;
    max-width: 250px;
}

.homepage_promo-card-v2 .btn-details {
    position: absolute;
    bottom: 30px;
    right: 30px;
    z-index: 20;
}

/* Old Promotional Cards Removal */

/* About Section Redesign (v2) */
.homepage_about-v2 {
    background-color: white;
}

.homepage_about-collage {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 15px;
    height: 340px;
    /* Reduced to be more compact */
    position: relative;
    z-index: 10;
}

.homepage_about-img-item {
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border-color);
}

.homepage_about-img-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.homepage_about-img-large {
    grid-column: 2;
    grid-row: 1 / span 2;
    margin-right: -100px;
    /* Overlap */
    position: relative;
    z-index: 15;
    box-shadow: 20px 0 40px rgba(var(--dark-gray-rgb), 0.1);
}

.homepage_about-content-box {
    position: relative;
    background-size: cover;
    background-position: center;
    border-radius: 20px;
    overflow: hidden;
    min-height: 420px;
    /* Reduced to be more compact */
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px 60px 60px 140px;
    /* Room for overlap */
    color: white;
}

.homepage_about-content-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 74, 153, 0.9);
    /* var(--navy-blue) with opacity */
    z-index: 1;
}

.homepage_about-content-box>* {
    position: relative;
    z-index: 2;
}

.homepage_about-content-box .homepage_about-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    opacity: 0.9;
}

.homepage_about-content-box h2 {
    font-weight: 800;
    margin-bottom: 25px;
    color: white;
}

.homepage_about-content-box .homepage_about-description {
    font-size: 11px;
    line-height: 1.6;
    margin-bottom: 35px;
    opacity: 0.85;
    max-width: 550px;
}

.homepage_about-content-box .homepage_btn-view {
    margin-top: auto;
}

/* Removal of old About styles */

/* Industries Section Redesign (Phase 7) */
.homepage_industries-section {
    background-color: white;
}

.homepage_industry-slider-wrapper {
    position: relative;
    padding: 0 40px;
    /* Reduced space for smaller arrows */
}

.homepage_industry-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border: 1px solid #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2000 !important;
    /* Higher z-index for absolute priority */
    background: white;
    color: #000;
    transition: all 0.3s ease;
}

.homepage_industry-nav:hover {
    background-color: var(--navy-blue);
    color: white;
    border-color: var(--navy-blue);
}

.homepage_industry-nav.prev {
    left: 0;
}

.homepage_industry-nav.next {
    right: 0;
}

.homepage_industry-nav i {
    font-size: 10px;
    /* Smaller arrow icon */
}

/* Slider styles moved to index.css to avoid conflicts */

.homepage_brand-tagline {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.homepage_brands-nav {
    z-index: 10 !important;
    background-color: white !important;
}

.homepage_brands-nav.prev {
    left: 10px;
}

.homepage_brands-nav.next {
    right: 10px;
}

/* Why Inprotech Section (Phase 9) */
.homepage_why-card {
    background: white;
    border: 1px solid #ddd;
    border-radius: 20px;
    height: 100%;
    transition: all 0.3s ease;
    overflow: hidden;
}

.homepage_why-card-img {
    width: 100%;
    height: 180px;
    /* Shorter image for narrower cards */
    overflow: hidden;
}

.homepage_why-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.homepage_why-card-body {
    padding: 25px 20px;
    text-align: center;
}

.homepage_why-card-title {
    color: var(--primary-orange);
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 20px;
}

.homepage_why-card-text {
    font-size: 11px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 0;
}

.homepage_why-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* Footer (Phase 10) */
.footer-hazard-stripe {
    height: 10px;
    width: 100%;
    background: repeating-linear-gradient(45deg,
            #ffcc00,
            #ffcc00 20px,
            #000 20px,
            #000 40px);
}

.footer-main {
    background-color: var(--navy-blue);
    /* Fallback */
    background: linear-gradient(rgba(0, 74, 153, 0.9), rgba(0, 74, 153, 0.95)), url('assets/images/footer-bg-placeholder.png');
    background-size: cover;
    background-position: bottom center;
    color: white;
    padding: 40px 0 20px;
    font-family: 'Inter', sans-serif;
}

.footer-label {
    font-size: 14px;
    white-space: nowrap;
}

.footer-links-group a {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: opacity 0.3s ease;
}

.footer-links-group a:hover {
    opacity: 0.8;
}

.footer-contact-group {
    font-size: 13px;
}

.copyright-text {
    font-size: 11px;
    letter-spacing: 0.5px;
    margin-top: 30px;
}

/* Responsive adjustments for footer */
@media (max-width: 991px) {
    .homepage_hero-content h1 {
        font-size: 36px;
    }

    .footer-top-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .footer-contact-group {
        justify-content: flex-start !important;
    }
}


