/* ============================================================
   KAMVA DIGITAL SYSTEMS - HOMEPAGE ONLY
   Loaded on index.php only via $extraStyles = ['home']
   Overrides specific sections without affecting other pages
   ============================================================ */

/* ============================================================
   1. SERVICES BENTO - Smaller, tighter, with visible borders
   ============================================================ */

.bento {
    gap: 12px;
    grid-auto-rows: minmax(160px, auto);
}

.bento-card {
    padding: 22px;
    gap: 12px;
    border: 1.5px solid var(--border-strong);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: transform 0.35s var(--ease-out),
                border-color 0.35s var(--ease),
                box-shadow 0.35s var(--ease),
                background 0.35s var(--ease);
}

.bento-card:hover {
    background: #fafafa;
    border-color: #1d1d1f;
    transform: translateY(-3px);
    box-shadow: 0 12px 32px -10px rgba(0,0,0,0.12);
}

.bento-card::before {
    display: none; /* remove the radial gradient */
}

.bento-lg {
    grid-column: span 2;
    grid-row: span 1; /* was span 2 — makes it shorter */
}

.bento-wide {
    grid-column: span 2;
    grid-row: span 1;
}

.bento-icon {
    width: 42px;
    height: 42px;
    font-size: 16px;
    border-radius: 12px;
    background: rgba(0,0,0,0.04);
    border: 1px solid var(--border);
}

.bento-card:hover .bento-icon {
    background: #1d1d1f;
    color: #fff;
    transform: scale(1.06) rotate(-3deg);
}

.bento-card h3 {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.015em;
}

.bento-lg h3 {
    font-size: 20px;
}

.bento-card p {
    font-size: 13px;
    line-height: 1.45;
    color: var(--text-dim);
}

.bento-lg p {
    font-size: 13px;
}

.bento-cta {
    font-size: 12px;
    margin-top: auto;
}

/* Responsive bento tweaks */
@media (max-width: 1024px) {
    .bento {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .bento-lg, .bento-wide {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .bento {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .bento-lg, .bento-wide {
        grid-column: span 1;
    }
    .bento-card {
        padding: 18px;
        border-radius: 16px;
    }
    .bento-icon {
        width: 38px;
        height: 38px;
        font-size: 14px;
    }
    .bento-card h3 {
        font-size: 15px;
    }
    .bento-lg h3 {
        font-size: 18px;
    }
}

/* ============================================================
   2. BLOG CARDS - Smaller, tighter, with visible borders
   ============================================================ */

#insights .carousel .post {
    flex: 0 0 300px;
    border: 1.5px solid var(--border-strong);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: transform 0.35s var(--ease-out),
                border-color 0.35s var(--ease),
                box-shadow 0.35s var(--ease);
}

#insights .carousel .post:hover {
    transform: translateY(-3px);
    border-color: #1d1d1f;
    box-shadow: 0 12px 32px -10px rgba(0,0,0,0.12);
}

#insights .carousel .post .post-media {
    aspect-ratio: 16/9;
    border-bottom: 1px solid var(--border);
}

#insights .carousel .post .post-body {
    padding: 16px 18px 18px;
}

#insights .carousel .post .post-meta {
    font-size: 11px;
    margin-bottom: 8px;
}

#insights .carousel .post .post-body h3 {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

#insights .carousel .post .post-body p {
    font-size: 12.5px;
    line-height: 1.45;
    color: var(--text-dim);
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

#insights .carousel .post .post-cta {
    font-size: 12px;
}

/* Blog carousel dots spacing */
#insights .carousel-dots {
    margin-top: 20px;
}

/* Responsive blog tweaks */
@media (max-width: 768px) {
    #insights .carousel .post {
        flex: 0 0 260px;
        border-radius: 16px;
    }
    #insights .carousel .post .post-body {
        padding: 14px 16px 16px;
    }
    #insights .carousel .post .post-body h3 {
        font-size: 14px;
    }
}

/* ============================================================
   3. FOOTER - Spacing between newsletter and main sections
   ============================================================ */

.footer-newsletter-wrap {
    padding: 56px 0 40px;
}

.footer-main {
    padding: 60px 0 48px;
}

.footer-bottom {
    padding: 28px 0;
}

/* More breathing room in the newsletter block */
.fn-grid {
    gap: 56px;
}

.fn-copy h3 {
    font-size: 24px;
    margin-bottom: 8px;
}

.fn-copy p {
    font-size: 14px;
    line-height: 1.55;
}

/* Newsletter form spacing */
.fn-form {
    gap: 12px;
}

.fn-form input {
    padding: 15px 22px;
}

.fn-form button {
    padding: 15px 26px;
}

/* Footer columns - more spacing */
.footer-grid {
    gap: 56px;
    margin-bottom: 56px;
}

.fg-col h4 {
    margin-bottom: 22px;
}

.fg-col a {
    padding: 7px 0;
}

/* Policy links row */
.footer-policies {
    padding: 28px 0;
    gap: 14px;
}

/* Responsive footer tweaks */
@media (max-width: 1024px) {
    .fn-grid {
        gap: 32px;
    }
    .footer-grid {
        gap: 40px;
        margin-bottom: 40px;
    }
}

@media (max-width: 768px) {
    .footer-newsletter-wrap {
        padding: 40px 0 32px;
    }
    .footer-main {
        padding: 40px 0 32px;
    }
    .footer-bottom {
        padding: 20px 0;
    }
    .fn-grid {
        gap: 24px;
    }
    .footer-grid {
        gap: 32px;
        margin-bottom: 32px;
    }
    .fn-copy h3 {
        font-size: 20px;
    }
}

/* ============================================================
   4. GENERAL HOMEPAGE SECTION SPACING
   ============================================================ */

/* Slightly tighter section padding on homepage */
.section {
    padding: 100px 0;
}

.section-head {
    margin-bottom: 56px;
}

@media (max-width: 768px) {
    .section {
        padding: 70px 0;
    }
    .section-head {
        margin-bottom: 40px;
    }
}