/* ============================================
   CITYPACK GRID SYSTEM - ANDURIL EXACT REPLICA
   Bento-box grid layout matching Anduril.com
   ============================================ */

/* Products Grid Section - Full Width */
.products-grid-section {
    padding: 0;
    margin: 0;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
}

/* Grid Container - 3 Column Base (Anduril Style) */
.grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px; /* Anduril's tight gap */
    padding: 0;
    width: 100%;
    max-width: 100vw;
}

/* Grid Card Base Styles */
.grid-card {
    position: relative;
    overflow: hidden;
    border-radius: 8px; /* Anduril's subtle rounding */
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #1a1a1a;
}

.grid-card:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    z-index: 10;
}

/* Exact Anduril Cell Sizes */
.grid-1x1 {
    grid-column: span 1;
    grid-row: span 1;
    aspect-ratio: 1 / 1;
}

.grid-1x2 {
    grid-column: span 1;
    grid-row: span 2;
    aspect-ratio: 1 / 2;
}

.grid-2x1 {
    grid-column: span 2;
    grid-row: span 1;
    aspect-ratio: 2 / 1;
}

/* Card Image - Full Bleed Background */
.grid-card-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}

.grid-card:hover .grid-card-image {
    transform: scale(1.05);
}

/* Dark Overlay for Text Readability */
.grid-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.2) 0%,
        rgba(0, 0, 0, 0.6) 100%
    );
    z-index: 1;
}

/* Card Content - Bottom Left (Anduril Style) */
.grid-card-content {
    position: absolute;
    bottom: 24px;
    left: 24px;
    right: 24px;
    z-index: 2;
    color: white;
}

.grid-card-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 4px 0;
    color: white;
    line-height: 1.2;
}

.grid-card-subtitle {
    font-size: 14px;
    font-weight: 400;
    margin: 0;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.4;
}

/* Hide CTA for cleaner look */
.grid-card-cta {
    display: none;
}

/* Citypack-Branded Gradient Placeholders */
.grid-card[data-placeholder="1"] .grid-card-image {
    background: linear-gradient(135deg, #FF6B35 0%, #F4B942 100%);
}

.grid-card[data-placeholder="2"] .grid-card-image {
    background: linear-gradient(135deg, #2C3E50 0%, #FF6B35 50%, #F4B942 100%);
}

.grid-card[data-placeholder="3"] .grid-card-image {
    background: linear-gradient(135deg, #1a1a1a 0%, #2C3E50 100%);
}

.grid-card[data-placeholder="4"] .grid-card-image {
    background: linear-gradient(180deg, #F4B942 0%, #FF6B35 100%);
}

.grid-card[data-placeholder="5"] .grid-card-image {
    background: linear-gradient(90deg, #2C3E50 0%, #1a1a1a 50%, #2C3E50 100%);
}

.grid-card[data-placeholder="6"] .grid-card-image {
    background: linear-gradient(135deg, #FF6B35 0%, #2C3E50 100%);
}

/* ============================================
   HERO - FULL WIDTH ANDURIL STYLE
   ============================================ */

.hero-full {
    width: 100vw;
    height: 90vh;
    min-height: 600px;
    position: relative;
    overflow: hidden;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
}

.hero-video-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.hero-video-container::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(13, 17, 23, 0.3) 0%,
        rgba(13, 17, 23, 0.7) 100%
    );
    z-index: 1;
}

.hero-video-container video,
.hero-video-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle at center,
        transparent 0%,
        rgba(13, 17, 23, 0.4) 100%
    );
    z-index: 1;
}

.hero-content {
    position: absolute;
    bottom: 80px;
    left: 40px;
    right: 40px;
    z-index: 2;
    color: white;
    max-width: 800px;
}

.hero-title {
    font-size: 72px;
    font-weight: 800;
    line-height: 1.1;
    margin: 0 0 16px 0;
    color: white;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 24px;
    font-weight: 400;
    line-height: 1.4;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
}

/* Article Date Label */
.article-date {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-gold, #F4B942);
    margin: 0 0 12px 0;
}

/* ============================================
   FULL WIDTH FEATURE SECTIONS
   ============================================ */

.feature-full {
    width: 100vw;
    margin: 80px 0;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
}

.feature-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 600px;
}

.feature-image {
    position: relative;
    overflow: hidden;
}

.feature-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.feature-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 80px;
    background: var(--neutral-light, #f5f5f5);
}

.feature-content h2 {
    font-size: 48px;
    font-weight: 700;
    margin: 0 0 24px 0;
}

.feature-content p {
    font-size: 20px;
    line-height: 1.6;
    margin: 0 0 32px 0;
    color: var(--text-secondary, #666);
}

/* ============================================
   NEWS & INSIGHTS SECTION
   ============================================ */

.news-section {
    padding: 120px 40px;
    background: white;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 48px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    font-size: 48px;
    font-weight: 700;
    margin: 0;
}

.view-all {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-orange, #FF6B35);
    text-decoration: none;
    transition: color 0.3s ease;
}

.view-all:hover {
    color: var(--accent-gold, #F4B942);
}

.news-section .grid-container {
    max-width: 1400px;
    margin: 0 auto;
}

/* ============================================
   RESPONSIVE BREAKPOINTS
   ============================================ */

/* Tablet: 2 columns */
@media (max-width: 1024px) {
    .grid-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-1x2 {
        grid-row: span 1;
        aspect-ratio: 1 / 1;
    }

    .grid-2x1 {
        grid-column: span 2;
    }

    .feature-split {
        grid-template-columns: 1fr;
    }

    .feature-content {
        padding: 60px 40px;
    }

    .hero-full {
        height: 70vh;
        min-height: 500px;
    }

    .hero-content {
        bottom: 40px;
        left: 20px;
        right: 20px;
    }

    .hero-title {
        font-size: 48px;
    }

    .hero-subtitle {
        font-size: 18px;
    }
}

/* Mobile: 1 column */
@media (max-width: 768px) {
    .grid-container {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .grid-1x1,
    .grid-1x2,
    .grid-2x1 {
        grid-column: span 1;
        grid-row: span 1;
        aspect-ratio: 16 / 9; /* Wider on mobile */
    }

    .grid-card-content {
        bottom: 16px;
        left: 16px;
        right: 16px;
    }

    .grid-card-title {
        font-size: 20px;
    }

    .grid-card-subtitle {
        font-size: 13px;
    }

    .news-section {
        padding: 80px 24px;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .section-header h2 {
        font-size: 36px;
    }

    .feature-content {
        padding: 40px 24px;
    }

    .feature-content h2 {
        font-size: 36px;
    }

    .feature-content p {
        font-size: 18px;
    }
}
