/* ============================================================
   CUMA Engineering — Home Page Styles
   ============================================================ */

/* ---- Hero ---- */
.hero {
    min-height: 88vh;
    background: url('/images/hero1.jpeg') center center / cover no-repeat;
    position: relative; overflow: hidden;
    display: flex; align-items: center;
}
.hero::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(var(--hero-overlay, to right, rgba(5, 2, 0, 0.94) 0%, rgba(5, 2, 0, 0.88) 35%, rgba(5, 2, 0, 0.55) 60%, rgba(5, 2, 0, 0.18) 100%));
}
.hero-bg-pattern { display: none; }
.hero .container { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; padding: 80px 24px; }

.hero-content { color: var(--white); }
.hero-overline {
    display: inline-flex; align-items: center; gap: 10px;
    background: rgba(255,106,0,.15); border: 1px solid rgba(255,106,0,.3);
    color: var(--orange); padding: 6px 16px; border-radius: 20px;
    font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px;
    margin-bottom: 24px;
}
.hero-title {
    font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 900; line-height: 1.1;
    margin-bottom: 20px; letter-spacing: -.5px;
}
.hero-title .highlight { color: var(--orange); }
.hero-desc { color: #bbb; font-size: 1.1rem; line-height: 1.7; margin-bottom: 36px; max-width: 480px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 32px; margin-top: 48px; padding-top: 32px; border-top: 1px solid rgba(255,255,255,.1); }
.hero-stat-num { font-size: 1.8rem; font-weight: 800; color: var(--orange); }
.hero-stat-lbl { font-size: .8rem; color: #888; text-transform: uppercase; letter-spacing: 1px; }

.hero-visual {
    position: relative;
    display: flex; flex-direction: column;
    align-items: flex-end; justify-content: center;
    gap: 20px;
}
.hero-float-card {
    background: var(--white); border-radius: var(--radius-lg);
    padding: 14px 18px; box-shadow: var(--shadow-lg);
    display: flex; align-items: center; gap: 12px;
    animation: float 3s ease-in-out infinite;
}
.hero-float-card:nth-child(2) { animation-delay: 0s; }
.hero-float-card:nth-child(3) { animation-delay: 1.5s; }
.hero-float-icon { font-size: 1.8rem; }
.hero-float-text strong { display: block; font-size: .88rem; font-weight: 700; }
.hero-float-text span   { font-size: .75rem; color: var(--mid-gray); }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-8px); }
}

/* ---- Category Grid ---- */
.categories-grid {
    display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px;
    margin-top: -40px; position: relative; z-index: 10;
    max-width: 100%;
}
.cat-card {
    background: var(--white); border-radius: var(--radius-lg);
    padding: 20px 14px; text-align: center; cursor: pointer;
    box-shadow: var(--shadow-md); transition: transform var(--transition), box-shadow var(--transition);
    border: 2px solid transparent;
    text-decoration: none; color: var(--black); display: block;
}
.cat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--orange); }
.cat-icon { font-size: 2rem; margin-bottom: 10px; }
.cat-name { font-size: .82rem; font-weight: 700; color: var(--black); line-height: 1.3; }

/* ---- Product Carousel ---- */
.product-carousel {
    position: relative;
    display: flex; align-items: center;
    gap: 12px;
}
.carousel-track-wrap {
    overflow: hidden;
    flex: 1;
    border-radius: var(--radius-lg);
}
.carousel-track {
    display: flex;
    gap: 24px;
    width: 100%;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}
.carousel-track .product-card {
    flex: 0 0 calc((100% - 72px) / 4);
    min-width: 0;
}
.carousel-arrow {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--white);
    border: 2px solid var(--border);
    color: var(--black);
    font-size: 1rem;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: background var(--transition), color var(--transition), border-color var(--transition);
    flex-shrink: 0;
    z-index: 2;
    box-shadow: var(--shadow-sm);
}
.carousel-arrow:hover {
    background: var(--orange);
    border-color: var(--orange);
    color: var(--white);
}
.carousel-arrow:disabled {
    opacity: 0.3;
    cursor: default;
    pointer-events: none;
}
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    position: absolute;
    bottom: -28px;
    left: 0; right: 0;
}
.carousel-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--border);
    border: none;
    cursor: pointer;
    transition: background var(--transition), transform var(--transition);
    padding: 0;
}
.carousel-dot.active {
    background: var(--orange);
    transform: scale(1.3);
}
.product-card {
    background: var(--white); border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm); overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
    position: relative;
    display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.product-card:hover .product-actions { opacity: 1; transform: translateY(0); }

.product-img {
    position: relative; overflow: hidden;
    aspect-ratio: 4/3; background: var(--light-gray);
}
.product-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.product-card:hover .product-img img { transform: scale(1.06); }
.product-badge {
    position: absolute; top: 12px; left: 12px;
    padding: 4px 10px; border-radius: 20px; font-size: .72rem; font-weight: 700; text-transform: uppercase;
}
.product-badge.sale    { background: #FF3B30; color: #fff; }
.product-badge.new     { background: var(--orange); color: #fff; }
.product-badge.popular { background: #30B050; color: #fff; }

.product-actions {
    position: absolute; bottom: 12px; left: 12px; right: 12px;
    display: flex; gap: 8px;
    opacity: 0; transform: translateY(8px); transition: var(--transition);
}
.product-actions button,
.product-actions .btn-view {
    flex: 1; padding: 9px 0; border-radius: var(--radius); font-size: .82rem; font-weight: 600;
    transition: var(--transition); text-align: center; text-decoration: none;
    display: inline-flex; align-items: center; justify-content: center;
}
.btn-view       { background: var(--white); color: var(--black); border: 1px solid var(--border); cursor: pointer; }
.btn-view:hover { background: var(--light-gray); color: var(--black); }

.product-body { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.product-cat  { font-size: .72rem; text-transform: uppercase; letter-spacing: 1px; color: var(--orange); font-weight: 700; margin-bottom: 6px; }
.product-name { font-size: .95rem; font-weight: 700; margin-bottom: 8px; line-height: 1.4; }
.product-name a:hover { color: var(--orange); }
.product-price { display: flex; align-items: center; gap: 10px; margin-top: auto; }
.price-current { font-size: 1.1rem; font-weight: 800; color: var(--orange); }
.price-old     { font-size: .85rem; color: #aaa; text-decoration: line-through; }

/* ---- Promo Banner ---- */
.promo-banner {
    background: linear-gradient(135deg, var(--orange) 0%, #CC5500 100%);
    color: var(--white); border-radius: var(--radius-lg);
    padding: 48px 56px; position: relative; overflow: hidden;
    display: flex; align-items: center; justify-content: space-between; gap: 32px;
}
.promo-banner::before {
    content: '\f2dc'; font-family: 'Font Awesome 6 Free'; font-weight: 900;
    position: absolute; right: 200px; top: -20px;
    font-size: 8rem; opacity: .1;
}
.promo-banner::after {
    content: ''; position: absolute; right: 0; top: 0; bottom: 0; width: 300px;
    background: rgba(255,255,255,.05); clip-path: ellipse(80% 100% at 100% 50%);
}
.promo-content h2 { font-size: 2rem; font-weight: 800; margin-bottom: 10px; }
.promo-content p  { opacity: .9; max-width: 460px; }

/* ---- Why Choose Us ---- */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.why-card {
    text-align: center; padding: 32px 20px;
    background: var(--white); border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm); transition: var(--transition);
}
.why-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.why-icon {
    width: 64px; height: 64px; border-radius: 50%;
    background: var(--orange-lite); display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem; margin: 0 auto 16px;
    transition: background var(--transition);
}
.why-card:hover .why-icon { background: var(--orange); }
.why-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.why-card p  { font-size: .88rem; color: var(--mid-gray); line-height: 1.6; }

/* ---- Partners ---- */
.partners-strip { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 40px; padding: 40px 0; }
.partner-logo {
    height: 44px; width: 120px;
    background: var(--border); border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center;
    font-size: .8rem; font-weight: 700; color: #999;
    transition: background var(--transition), color var(--transition);
}
.partner-logo:hover { background: var(--orange-lite); color: var(--orange); }

/* ---- CTA Section ---- */
.cta-section { text-align: center; padding: 96px 0; }
.cta-section h2 { font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 800; margin-bottom: 16px; }
.cta-section p   { color: var(--mid-gray); max-width: 520px; margin: 0 auto 36px; font-size: 1.05rem; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---- Responsive ---- */
@media (max-width: 1100px) {
    .categories-grid { grid-template-columns: repeat(3, 1fr); margin-top: 0; }
    .carousel-track .product-card { flex: 0 0 calc((100% - 24px) / 2); }
    .why-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
    .hero .container { grid-template-columns: 1fr; text-align: center; }
    .hero-desc { margin: 0 auto 36px; }
    .hero-actions { justify-content: center; }
    .hero-stats { justify-content: center; }
    .hero-visual { flex-direction: row; justify-content: center; gap: 16px; margin-top: 24px; }
    .promo-banner { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
    .hero-visual { display: none; }
}
@media (max-width: 600px) {
    .categories-grid { grid-template-columns: repeat(2, 1fr); }
    .carousel-track .product-card { flex: 0 0 75%; }
    .product-carousel { gap: 8px; }
    .carousel-arrow { width: 32px; height: 32px; font-size: .8rem; }
    .why-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .hero .container { padding: 48px 16px; }
    .hero-overline { font-size: .72rem; padding: 5px 12px; }
    .hero-stats { flex-wrap: wrap; gap: 16px 28px; justify-content: center; }
    .hero-stat-num { font-size: 1.5rem; }
    .hero-stat-lbl { font-size: .72rem; }
    .hero-actions { gap: 10px; }

    .categories-grid { gap: 10px; }
    .cat-card { padding: 14px 10px; }
    .cat-icon { font-size: 1.6rem; margin-bottom: 6px; }
    .cat-name { font-size: .76rem; }

    .promo-banner { padding: 28px 20px; }
    .promo-content h2 { font-size: 1.3rem; }
    .promo-content p { font-size: .88rem; }

    .why-card { padding: 24px 16px; }
    .why-icon { width: 52px; height: 52px; font-size: 1.4rem; margin-bottom: 12px; }

    .partners-strip { gap: 16px 20px; padding: 28px 0; }
    .partner-logo { height: 36px; width: 90px; font-size: .72px; }

    .cta-section { padding: 56px 0; }
    .cta-actions { gap: 10px; }

}
@media (max-width: 360px) {
    .categories-grid { gap: 8px; }
    .hero-stats { gap: 12px 20px; }
    .hero-stat-num { font-size: 1.3rem; }
    .promo-content h2 { font-size: 1.15rem; }
}
