/* ============================================
   FEATURE PAGE STYLES
   Kran-App Construction Management Software
   ============================================ */

/* ============================================
   FEATURE HERO
   ============================================ */
.feature-hero {
    padding-top: calc(72px + var(--space-16));
    padding-bottom: var(--space-8);
    background-color: var(--gray-900);
    /* Dark background for key features */
    color: var(--white);
    text-align: center;
    overflow: hidden;
    position: relative;
}

.feature-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 0%, rgba(37, 99, 235, 0.2), transparent 70%);
}

.feature-hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.feature-hero h1 {
    font-size: var(--font-4xl);
    margin-bottom: var(--space-4);
    color: var(--white);
}

@media (min-width: 768px) {
    .feature-hero h1 {
        font-size: var(--font-5xl);
    }
}

.feature-hero-subtitle {
    font-size: var(--font-xl);
    color: var(--gray-300);
    margin-bottom: var(--space-8);
    line-height: 1.6;
}

.feature-hero-actions {
    margin-bottom: var(--space-12);
}

.feature-hero-image {
    position: relative;
    z-index: 2;
    margin-top: var(--space-8);
    margin-bottom: -var(--space-20);
    /* Pull content up */
    border-radius: var(--radius-xl);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    background-color: var(--gray-800);
    padding: var(--space-2);
    border: 1px solid var(--gray-700);
}

.dashboard-mockup svg {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-lg);
}

/* ============================================
   FEATURE HIGHLIGHTS
   ============================================ */
.feature-highlights {
    padding-top: var(--space-24);
    /* Account for negative margin overlap */
    background-color: var(--white);
}

.highlights-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-8);
}

@media (min-width: 768px) {
    .highlights-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.highlight-card {
    text-align: center;
    padding: var(--space-6);
    border-radius: var(--radius-xl);
    background-color: var(--white);
    transition: transform var(--transition-base);
}

.highlight-card:hover {
    transform: translateY(-5px);
}

.highlight-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background-color: rgba(var(--accent-rgb), 0.1);
    color: var(--accent);
    border-radius: var(--radius-full);
    margin-bottom: var(--space-4);
}

.highlight-icon svg {
    width: 32px;
    height: 32px;
}

.highlight-card h3 {
    font-size: var(--font-lg);
    margin-bottom: var(--space-2);
    color: var(--primary);
}

.highlight-card p {
    color: var(--gray-600);
    font-size: var(--font-base);
    line-height: 1.6;
}

/* ============================================
   FEATURE DEEP DIVE
   ============================================ */
.feature-deep-dive {
    padding: var(--space-16) 0;
}

.bg-gray-50 {
    background-color: var(--gray-50);
}

.deep-dive-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-12);
    align-items: center;
    margin-bottom: var(--space-24);
}

.deep-dive-row:last-child {
    margin-bottom: 0;
}

@media (min-width: 992px) {
    .deep-dive-row {
        grid-template-columns: 1fr 1fr;
    }

    .deep-dive-row.reverse .deep-dive-content {
        order: 2;
    }

    .deep-dive-row.reverse .deep-dive-visual {
        order: 1;
    }
}

.deep-dive-content h2 {
    font-size: var(--font-3xl);
    margin-bottom: var(--space-4);
    color: var(--primary);
}

.deep-dive-content p {
    font-size: var(--font-lg);
    color: var(--gray-600);
    margin-bottom: var(--space-6);
    line-height: 1.6;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    position: relative;
    padding-left: var(--space-8);
    margin-bottom: var(--space-3);
    color: var(--gray-700);
    font-size: var(--font-base);
    font-weight: var(--font-medium);
}

.feature-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f59e0b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

.deep-dive-visual {
    background-color: var(--white);
    padding: var(--space-4);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--gray-100);
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform var(--transition-slow);
}

.deep-dive-row.reverse .deep-dive-visual {
    transform: perspective(1000px) rotateY(5deg);
}

.deep-dive-visual:hover {
    transform: perspective(1000px) rotateY(0deg);
}

.feature-svg {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-lg);
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */
@media (max-width: 767px) {
    .deep-dive-row {
        gap: var(--space-8);
        margin-bottom: var(--space-16);
    }

    .deep-dive-visual {
        transform: none;
    }

    .deep-dive-row.reverse .deep-dive-visual {
        transform: none;
    }

    .deep-dive-visual:hover {
        transform: none;
    }

    .feature-hero h1 {
        font-size: 2.5rem;
    }
}

/* ============================================
   CTA SECTION (Feature Pages)
   ============================================ */
.cta-section {
    background-color: var(--primary);
    color: var(--white);
    padding: var(--space-20) 0;
    text-align: center;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    color: var(--white);
    font-size: var(--font-4xl);
    margin-bottom: var(--space-4);
}

.cta-content p {
    color: rgba(255, 255, 255, 0.8);
    font-size: var(--font-xl);
    margin-bottom: var(--space-8);
}

.cta-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-4);
    flex-wrap: wrap;
}

@media (max-width: 480px) {
    .cta-actions {
        flex-direction: column;
    }

    .cta-actions .btn {
        width: 100%;
        max-width: 280px;
    }
}

/* Enhanced outline-light button for dark backgrounds */
.cta-section .btn-outline-light {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.cta-section .btn-outline-light:hover {
    background-color: var(--white);
    color: var(--primary);
}