/* ============================================================
   home.css — Styles specific to the home page
   ============================================================ */

/* ---------- Hero ---------- */
.hero {
    background: linear-gradient(rgba(7, 25, 58, 0.75), rgba(7, 25, 58, 0.75)),
        url('/assets/images/hero-bg.jpg') center/cover no-repeat;
    color: #fff;
    padding: 100px 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 30px;
    align-items: center;
}

.hero h1 {
    font-size: 42px;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    font-size: 18px;
    margin-bottom: 25px;
    color: #e9eef8;
}

/* ---------- Lead Capture Box ---------- */
.lead-box {
    background: #fff;
    color: #222;
    padding: 28px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

.lead-box h3 {
    margin-bottom: 15px;
    color: #17adce;
}

.lead-box input,
.lead-box textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 15px;
}

.lead-box button {
    width: 100%;
    border: none;
    cursor: pointer;
}

/* ---------- Math CAPTCHA ---------- */
.captcha-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    background: #edfbff;
    border: 1px solid #99dff0;
    border-radius: 8px;
    padding: 10px 14px;
}

.captcha-label {
    font-size: 14px;
    color: #333;
    white-space: nowrap;
    flex-shrink: 0;
}

.captcha-label strong {
    color: #17adce;
    font-size: 16px;
}

.captcha-input {
    width: 80px !important;
    padding: 8px 10px !important;
    margin-bottom: 0 !important;
    text-align: center;
    font-size: 16px !important;
    font-weight: bold;
    flex-shrink: 0;
}

/* ---------- Product Cards Carousel ---------- */
.carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.cards {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 10px 0 20px 0;
    width: 100%;
}

.cards::-webkit-scrollbar {
    display: none;
}

.card {
    background: #fff;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    flex: 0 0 calc(25% - 15px);
    min-width: 0;
    display: flex;
    flex-direction: column;
    color: inherit;
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.13);
}

.card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.card h3 {
    margin-bottom: 10px;
    color: #17adce;
}

.carousel-btn {
    background: #17adce;
    color: #fff;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    z-index: 10;
    transition: 0.3s background, 0.3s transform;
    flex-shrink: 0;
}

.carousel-btn:hover {
    background: #0e92ae;
    transform: scale(1.05);
}

.prev-btn {
    left: -15px;
}

.next-btn {
    right: -15px;
}

/* ---------- Brand Carousel ---------- */
#brands {
    padding: 10px 0 70px 0; /* Reduced top padding to stay closer to products */
    overflow: hidden;
}

.brand-carousel {
    width: 100%;
    overflow: hidden;
    position: relative;
    /* Optional: gradient mask for smooth fade on edges */
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.brand-track {
    display: flex;
    align-items: center;
    width: max-content;
    animation: scroll-brands 30s linear infinite;
    gap: 60px; /* Space between logos */
    padding: 0 30px;
}

.brand-track:hover {
    animation-play-state: paused;
}

.brand-logo {
    height: 60px; /* Adjust based on your logos' proportions */
    max-width: 200px;
    object-fit: contain;
    filter: grayscale(100%) opacity(0.7);
    transition: filter 0.3s ease, transform 0.3s ease;
}

.brand-logo:hover {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.05);
}

@keyframes scroll-brands {
    0% {
        transform: translateX(0);
    }
    100% {
        /* Translate left by exactly half the track width (one original set) */
        transform: translateX(-50%);
    }
}

/* ---------- About ---------- */
.about {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
}

.about img {
    width: 100%;
    border-radius: 12px;
}

.about ul {
    margin-top: 15px;
    padding-left: 18px;
}

/* ---------- Contact ---------- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.contact-box {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.contact-box h3 {
    margin-bottom: 15px;
    color: #17adce;
}

/* ---------- Responsive ---------- */
@media (max-width: 992px) {

    .hero-grid,
    .about,
    .contact-grid {
        grid-template-columns: 1fr 1fr;
    }

    .card {
        flex: 0 0 calc(50% - 10px);
    }
}

@media (max-width: 768px) {

    .hero-grid,
    .about,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .card {
        flex: 0 0 100%;
    }

    .hero h1 {
        font-size: 30px;
    }

    .carousel-btn {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }

    .prev-btn {
        left: -10px;
    }

    .next-btn {
        right: -10px;
    }
}