/* Gallery & Front Page Styles - Extracted from front-page.php */

.woocommerce ul.products li.product .onsale { display: none !important;
    position: absolute;
    top: 15px;
    left: 15px;
    background: #ff4757;
    color: #fff;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    z-index: 9;
    text-transform: uppercase;
    line-height: 1;
    box-shadow: 0 4px 10px rgba(255, 71, 87, 0.3);
}


    @media (max-width: 768px) {
        .hero-box h1 {
            font-size: 1.6rem !important;
            margin-bottom: 15px !important;
        }
        .hero-box p {
            font-size: 0.95rem !important;
            line-height: 1.5 !important;
        }
        .hero-box {
            padding: 20px 20px !important;
        }
        .hero-hotspot {
            bottom: 18% !important;
        }
    }
/* ============================================
   HOMEPAGE GLOBAL STYLES
   ============================================ */
:root {
    --color-primary: #1a2b4c;
    --color-accent: #5472d2;
    --color-bg-light: #e9eef6;
}

/* ============================================
   HERO SECTION
   ============================================ */
.home-hero {
    background-size: cover;
    background-position: top center;
    background-repeat: no-repeat;
    padding: 120px 20px 80px 20px;
    position: relative;
    min-height: 550px;
    display: flex;
    align-items: center;
    overflow: hidden;
    border-radius: 0 0 40px 40px;
    margin-bottom: 40px;
}
.hero-box {
    background: rgba(255,255,255,0.85);
    padding: 50px 70px;
    border-radius: 12px;
    max-width: 700px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
}
@media (min-width: 1025px) {
    .hero-box {
        border-radius: 0 16px 16px 0;
        margin-left: -20px; /* pull to edge */
        padding: 50px 70px 50px 20px;
    }
}
@media (max-width: 768px) {
    .hero-box {
        padding: 30px;
        margin: 20px;
        border-radius: 12px;
    }
    .home-hero {

        padding: 100px 0 60px 0;
        border-radius: 0 0 20px 20px;
    }
}
.hero-box h1 {
    color: #091223;
    font-size: 3rem;
    margin-bottom: 15px;
    text-transform: none;
    font-weight: 500;
    letter-spacing: -0.5px;
    line-height: 1.1;
}
.hero-box p {
    font-size: 1rem;
    color: #555;
    margin-bottom: 0;
    font-weight: 400;
    line-height: 1.6;
}
.hero-btn-row {
    margin-top: 30px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}
/* Hotspot */
@keyframes pulse {
    0%   { transform: scale(1); opacity: 1; }
    50%  { transform: scale(1.2); opacity: 0.6; }
    100% { transform: scale(1); opacity: 1; }
}
.hero-hotspot { position: absolute; right: 18%; bottom: 15%; z-index: 10; }

.hotspot-btn { position:relative; z-index:2; display:flex; align-items:center; justify-content:center; width:40px; height:40px; background:#5472d2; color:#fff; font-size:24px; text-decoration:none; border-radius:50%; box-shadow:0 4px 10px rgba(0,0,0,0.2); line-height:1; }
.hotspot-tooltip { display:none; position:absolute; bottom:70px; left:50%; transform:translateX(-50%); background:#e9eef5; border-radius:12px; padding:20px; box-shadow:0 10px 30px rgba(0,0,0,0.15); text-align:center; min-width:180px; }
.hero-hotspot:hover .hotspot-tooltip { display:block; }

@media (max-width: 768px) {
    .home-hero {
        background-position: center 40% !important;
        min-height: 520px !important;\n        padding-bottom: 90px !important;
        padding: 80px 16px 60px 16px !important;
        align-items: flex-start !important;
    }
    .home-hero::before {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(to bottom, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.35) 100%);
        z-index: 0;
        pointer-events: none;
    }
    .hero-box {
        padding: 30px 28px !important;
        margin: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        text-align: left !important;
        background: rgba(255,255,255,0.92) !important;
        border-radius: 14px !important;
        box-shadow: 0 8px 30px rgba(0,0,0,0.1) !important;
        position: relative;
        z-index: 1;
    }
    .hero-box h1 {
        font-size: 2.2rem !important;
        margin-bottom: 14px !important;
        line-height: 1.1 !important;
        color: #0a1a36 !important;
        font-weight: 600 !important;
    }
    .hero-box p {
        font-size: 1rem !important;
        line-height: 1.6 !important;
        color: #444 !important;
    }
    .hero-hotspot {
        right: 50% !important;
        bottom: 2% !important;
        transform: translateX(50%) !important;
    }
    .hero-btn-row {
        margin-top: 20px !important;
        justify-content: center !important;
    }
    .hero-btn-row a {
        width: 100%;
        justify-content: center;
    }
}

.hotspot-pulse { position: absolute; top:-10px; left:-10px; right:-10px; bottom:-10px; background: rgba(255,255,255,0.25); border-radius: 50%; z-index:1; }
.hero-hotspot:hover .hotspot-tooltip { display:block; }

/* ============================================
   CONTACT FORMS SECTION
   ============================================ */
.home-forms-section {
    background: #5472d2;
    padding: 70px 20px;
    color: #fff;
}
.home-forms-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 380px 1fr;
    gap: 40px;
    align-items: stretch;
}
.home-forms-section h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
    font-weight: 400;
    color: #fff;
}
.home-forms-section p {
    font-size: 1rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 25px;
    line-height: 1.6;
    font-weight: 300;
}

/* CF7 inside blue section */
.blue-cf7 .wpcf7-form label { color: rgba(255,255,255,0.8); font-size: 16px; letter-spacing: 0.5px; display: block; margin-bottom: 5px; }
.blue-cf7 .wpcf7-form input[type=text],
.blue-cf7 .wpcf7-form input[type=email],
.blue-cf7 .wpcf7-form input[type=tel],
.blue-cf7 .wpcf7-form textarea {
    background: rgba(255,255,255,0.15) !important;
    border: 1px solid rgba(255,255,255,0.2) !important;
    color: #fff !important;
    border-radius: 16px !important;
    padding: 10px 15px !important;
    width: 100% !important;
    box-sizing: border-box;
}
.blue-cf7 .wpcf7-form input::placeholder, .blue-cf7 .wpcf7-form textarea::placeholder { color: rgba(255,255,255,0.6) !important; }
.blue-cf7 .wpcf7-submit {
    background: #fff !important;
    color: #5472d2 !important;
    border: none !important;
    border-radius: 30px !important;
    padding: 12px 30px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    font-size: 13px !important;
    cursor: pointer !important;
    width: 100% !important;
    margin-top: 10px;
}
.blue-cf7 .wpcf7-submit:hover { background: #f0f0f0 !important; }

/* ============================================
   FLOORING MATERIALS (ACCORDION)
   ============================================ */
.flooring-materials-section { }
.flooring-materials-section h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5rem;
    text-transform: uppercase;
    color: var(--color-accent);
    font-weight: 300;
    letter-spacing: 1px;
}
.cats-accordion {
    display: flex;
    gap: 15px;
    height: 400px;
    background: transparent;
}

.cat-acc-card {
    flex: 1;
    overflow: hidden;
    position: relative;
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
    border-radius: 12px;
    background: transparent;
    padding: 12px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.cat-acc-card:hover { flex: 2.5; }

.cat-acc-img-wrap {
    width: 100%;
    flex-grow: 1;
    border-radius: 8px;
    overflow: hidden;
}
.cat-acc-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.cat-acc-title {
    color: #5472d2;
    padding-top: 15px;
    padding-bottom: 5px;
    font-size: 14px;
    font-weight: 400;
    text-align: center;
    background: transparent;
}

@media(max-width: 768px) {
    .cats-accordion { 
        display: flex; 
        flex-direction: column; 
        height: auto; 
        gap: 20px; 
    }
    .cat-acc-card { 
        flex: none; 
        height: auto; 
    }
    .cat-acc-img-wrap { height: 380px; flex-grow: 0; }
    .cat-acc-img-wrap img { height: 100% !important; }
    .cat-acc-card:hover, .cat-acc-card:active { 
        flex: none !important; 
    }
}
/* ============================================
   ABOUT SECTION
   ============================================ */
.about-section-wrapper { padding: 0 20px; margin-top: -20px; }
.about-section {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    max-width: 1400px;
    margin: 40px auto;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    /* Removed hardcoded height so text doesn't cut off */
}
.about-text {
    flex: 0 0 40%;
    max-width: 40%;
    background: #5472d2;
    color: #fff;
    padding: 45px 50px; /* Tighter padding */
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.about-text h2 {
    font-size: 2.2rem;
    line-height: 1.15;
    margin-bottom: 20px;
    font-weight: 300;
    text-transform: uppercase;
    color: #fff;
}
.about-text p {
    font-size: 0.9rem;
    line-height: 1.5;
    font-weight: 300;
    margin-bottom: 12px;
    color: rgba(255,255,255,0.9);
}
.about-img {
    flex: 0 0 60%;
    max-width: 60%;
    background-size: cover;
    background-position: right center;
    min-height: 400px; /* fallback */
}
@media (max-width: 768px) {
    .about-section { height: auto; flex-direction: column; }
    .about-text, .about-img { flex: 0 0 100%; max-width: 100%; }
    .about-img { min-height: 350px; }
    .about-text { padding: 30px 20px; }
}

/* ============================================
   PRODUCTS TABS
   ============================================ */
.products-tabs-section {
    padding: 70px 20px;
    background: #fafafa;
}
.prod-tabs {
    display: inline-flex;
    background: #e9eef6;
    border-radius: 30px;
    padding: 5px;
    margin-bottom: 40px;
}
.prod-tab-btn {
    padding: 10px 30px;
    border-radius: 25px;
    border: none;
    font-size: 15px;
    cursor: pointer;
    background: transparent;
    color: #1a2b4c;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s;
}
.prod-tab-btn.active {
    background: #5472d2;
    color: #fff;
}
.prod-tab-content { display: none; }
.prod-tab-content.active { display: block; }





/* ============================================
   GALLERY SECTION - grid with equal cards
   ============================================ */
.gallery-section { padding: 70px 20px; background: transparent; }
.gallery-section h2 {
    font-size: 2.5rem;
    font-weight: 300;
    text-transform: uppercase;
    color: #1a2b4c;
    margin-bottom: 40px;
    text-align: center;
    letter-spacing: 1px;
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}
.gallery-card {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
    aspect-ratio: 1 / 1;
}
.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.gallery-card:hover img { transform: scale(1.08); }
.gallery-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.45) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}
.gallery-card:hover::after { opacity: 1; }
/* gallery icon removed */

/* Mobile: horizontal scroll slider */
@media(max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(6, 72vw);
        gap: 12px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding: 0 10px 10px;
        scrollbar-width: none;
    }
    .gallery-grid::-webkit-scrollbar { display: none; }
    .gallery-card {
        scroll-snap-align: center;
        aspect-ratio: 4 / 3;
        border-radius: 14px;
        min-width: 0;
    }
    .gallery-card img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    .gallery-card .gallery-icon { display: none; }
    .gallery-section h2 { font-size: 1.5rem; margin-bottom: 25px; }
}

/* Gallery Lightbox */
.gallery-lightbox { display: none; position: fixed; top:0; left:0; width:100%; height:100%; background: rgba(0,0,0,0.92); z-index: 99999; align-items: center; justify-content: center; }
.gallery-lightbox.active { display: flex; }
.gallery-lightbox img { max-width: 90vw; max-height: 85vh; object-fit: contain; border-radius: 8px; }
.gallery-lightbox-close { 
    position: absolute; 
    top: 20px; 
    right: 30px; 
    background: rgba(0,0,0,0.5); 
    border: 2px solid rgba(255,255,255,0.4); 
    color: #fff; 
    font-size: 24px; 
    cursor: pointer; 
    z-index: 2; 
    width: 44px; 
    height: 44px; 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center;
    transition: all 0.2s;
    backdrop-filter: blur(4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.gallery-lightbox-close:hover {
    background: rgba(0,0,0,0.8); 
    border-color: rgba(255,255,255,0.8);
    transform: scale(1.05);
}
.gallery-lightbox-prev,
.gallery-lightbox-next { line-height: 1; padding-bottom: 3px; /* visual center tweak */ 
    position: absolute; 
    top: 50%; 
    transform: translateY(-50%); 
    background: rgba(0,0,0,0.5); 
    border: 2px solid rgba(255,255,255,0.4); 
    color: #ffffff; 
    font-size: 42px; 
    cursor: pointer; 
    width: 58px;
    height: 58px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%; 
    z-index: 2; 
    transition: all 0.2s; 
    backdrop-filter: blur(4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.gallery-lightbox-prev:hover,
.gallery-lightbox-next:hover { 
    background: rgba(0,0,0,0.8); 
    border-color: rgba(255,255,255,0.8);
    transform: translateY(-50%) scale(1.05);
}
.gallery-lightbox-prev { left: 20px; }
.gallery-lightbox-next { right: 20px; }
@media(max-width: 768px) {
    .gallery-lightbox-prev { left: 8px; font-size: 34px; width: 50px; height: 50px; }
    .gallery-lightbox-next { right: 8px; font-size: 34px; width: 50px; height: 50px; }
    .gallery-lightbox-close { top: 10px; right: 10px; }
}

/* ============================================
   BRANDS SECTION - 2 rows of 4 matching original
   ============================================ */
.partners-section { padding: 70px 20px; background: transparent; text-align: center; }
.partners-section h2 { font-size: 2.5rem; font-weight: 300; text-transform: uppercase; color: #1a2b4c; margin-bottom: 10px; }
.partners-section .sub { color: #888; font-size: 1rem; margin-bottom: 50px; }
.brands-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px; /* slightly tighter like original */
    align-items: stretch;
}
.brand-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    background: transparent;
    border-radius: 0;
    border: none;
    min-height: 80px; /* Taller boxes */
    box-shadow: none;
}
.brand-logo img {
    max-width: 90%; /* Make logos bigger */
    max-height: 110px;
    object-fit: contain;
    filter: none;
}
@media(max-width: 1024px) { .brands-grid { grid-template-columns: repeat(4, 1fr); } }
@media(max-width: 768px) {
    .brands-grid { grid-template-columns: repeat(3, 1fr) !important; gap: 40px 15px !important; }
    .brand-logo { border: none !important; box-shadow: none !important; background: transparent !important; padding: 0 !important; min-height: 40px !important; display: flex; align-items: center; justify-content: center; }
    .brand-logo img { width: 100% !important; max-height: 80px !important; object-fit: contain !important; }
    .partners-section h2 { font-size: 2.2rem !important; line-height: 1.2 !important; margin-bottom: 20px !important; }
    .partners-section .sub { font-size: 15px !important; margin-bottom: 40px !important; padding: 0 10px; }
}

/* ============================================
   OFFERS SECTION - matching original exactly
   ============================================ */
.offers-section { padding: 60px 20px 70px; background: transparent; }
.offers-section h2 { font-size: 2.5rem; font-weight: 300; text-transform: uppercase; color: #1a2b4c; margin-bottom: 45px; text-align: center; line-height: 1.2; }
.offers-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; max-width: 1400px; margin: 0 auto; }

/* Card: light gray bg, rounded, clear border, subtle shadow */
.offer-card {
    background: #f3f5f8;
    border-radius: 0;
    overflow: visible;
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 10px 14px 10px 0;
    border: 1.5px solid #dde3ee;
    box-shadow: 0 2px 8px rgba(84,114,210,0.07), 0 1px 2px rgba(0,0,0,0.05);
    transition: box-shadow 0.2s, border-color 0.2s;
    position: relative;
}
.offer-card:hover {
    border-color: #b0bddc;
    box-shadow: 0 4px 18px rgba(84,114,210,0.13), 0 2px 4px rgba(0,0,0,0.08);
}

/* Image wrapper — square, flush left, rounded left side only */
.offer-thumb {
    position: relative;
    flex-shrink: 0;
    width: 82px;
    height: 82px;
    margin-right: 0;
}
.offer-thumb img {
    width: 82px;
    height: 82px;
    object-fit: cover;
    display: block;
    border-radius: 10px;
}

/* Badge: red circle, overlapping bottom-left corner of image */
.offer-badge {
    position: absolute;
    top: -6px;
    left: -6px;
    background: #d94f4f;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    border: 2.5px solid #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    z-index: 2;
}

/* Text area */
.offer-card > div:last-child {
    padding: 10px 4px 10px 14px;
    flex: 1;
    min-width: 0;
}
.offer-card h4 {
    font-size: 0.88rem;
    font-weight: 600;
    color: #1a2b4c;
    margin: 0 0 9px;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Button: blue pill with arrow */
.offer-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #5472d2;
    color: #fff !important;
    font-weight: 700;
    font-size: 0.65rem;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 7px 12px;
    border-radius: 20px;
    white-space: nowrap;
    transition: background 0.15s;
}
.offer-btn:hover { background: #3a57b8; }
@media(max-width: 900px) { .offers-grid { grid-template-columns: repeat(2, 1fr); } }
@media(max-width: 480px) { .offers-grid { grid-template-columns: 1fr; } }

/* ============================================
   SEO SECTION
   ============================================ */
.seo-section { padding: 60px 20px; background: transparent; }
.seo-box { max-width: 1400px; margin: 0 auto; background: #e9eef6; border-radius: 20px; padding: 50px 60px; }
.seo-box h1 { font-size: 1.8rem; color: #1a2b4c; margin-bottom: 25px; font-weight: 400; }
.seo-text { color: #555; font-size: 1rem; line-height: 1.8; position: relative; max-height: 120px; overflow: hidden; transition: max-height 0.4s ease; }
.seo-text.expanded { max-height: 1000px; }
.seo-fade { position: absolute; bottom: 0; left: 0; right: 0; height: 60px; background: linear-gradient(transparent, #e9eef6); pointer-events: none; transition: opacity 0.3s; }
.seo-text.expanded .seo-fade { opacity: 0; }
#seo-read-more { background: none; border: none; color: #5472d2; font-weight: 700; font-size: 0.95rem; cursor: pointer; margin-top: 15px; padding: 0; text-transform: uppercase; }
@media(max-width: 768px) { .seo-box { padding: 30px 25px; } .seo-box h1 { font-size: 1.3rem; } .seo-text { max-height: 200px; } }

/* ============================================
   BOTTOM FORMS GRID
   ============================================ */
@media (min-width: 769px) {
    .bottom-forms-grid { grid-template-columns: 1fr 380px 1fr !important; display: grid !important; }
}
@media (max-width: 768px) {
    .bottom-forms-grid { display: flex !important; flex-direction: column; }
    .bottom-forms-grid > div { min-height: 300px; }
}

@media (max-width: 768px) {
    .offers-section h2 { font-size: 1.5rem !important; margin-bottom: 25px !important; }
    .offers-grid { gap: 16px !important; }
    .offer-card { padding: 15px !important; align-items: center; }
    .offer-thumb { width: 100px !important; height: 100px !important; margin-right: 15px !important; }
    .offer-thumb img { width: 100px !important; height: 100px !important; border-radius: 10px !important; }
    .offer-badge { width: 44px !important; height: 44px !important; font-size: 14px !important; top: -8px !important; left: -8px !important; }
    .offer-card > div:last-child { padding: 0 !important; }
    .offer-card h4 { font-size: 16px !important; margin-bottom: 12px !important; white-space: normal !important; line-height: 1.3 !important; }
    .offer-btn { font-size: 12px !important; padding: 10px 20px !important; border-radius: 25px !important; }
}


@media (max-width: 768px) {
    .prod-tabs {
        background: transparent !important;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
        padding: 0 !important;
        margin-bottom: 30px !important;
    }
    .prod-tab-btn {
        background: #e9eef6 !important;
        flex: 1 1 calc(50% - 10px) !important;
        padding: 12px 15px !important;
        font-size: 14px !important;
    }
    .prod-tab-btn.active {
        background: #5472d2 !important;
        color: #fff !important;
    }
    /* Make the third item full width to balance it nicely */
    .prod-tab-btn:nth-child(3) {
        flex: 1 1 100% !important;
    }
}


    @media(max-width: 768px) {
        .compact-forms-section { display: none !important; }
    }