/* ============================================
   EXPERTISE BLOCK - Frontend Styles
   Prototype ref: .feature-card, .grid-4 checkerboard
   ============================================ */

.tomorhow-expertise {
    padding: var(--space-section) 0;
    position: relative;
    overflow: hidden;
}

/* Decorative half-circles */
.tomorhow-expertise::before {
    content: "";
    position: absolute;
    top: 10%;
    right: 0;
    width: 180px;
    height: 360px;
    background: linear-gradient(135deg, rgba(232, 76, 138, 0.08) 0%, rgba(232, 76, 138, 0.03) 100%);
    border-radius: 360px 0 0 360px;
    pointer-events: none;
}

.tomorhow-expertise::after {
    content: "";
    position: absolute;
    bottom: 5%;
    left: 0;
    width: 150px;
    height: 300px;
    background: linear-gradient(135deg, rgba(39, 174, 96, 0.06) 0%, rgba(39, 174, 96, 0.02) 100%);
    border-radius: 0 300px 300px 0;
    pointer-events: none;
}

/* Container */
.tomorhow-expertise__container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    position: relative;
    z-index: 1;
}

/* Header */
.tomorhow-expertise__header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--space-2xl);
}

.tomorhow-expertise__tag {
    display: inline-block;
    padding: var(--space-xs) var(--space-sm);
    font-size: var(--text-xs);
    font-weight: 700;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-sm);
}

.tomorhow-expertise__title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    color: var(--color-dark);
    margin-bottom: var(--space-sm);
}

.tomorhow-expertise__gradient {
    background: var(--page-accent-gradient, linear-gradient(135deg, #E84C8A 0%, #D23F7A 50%, #A02D5E 100%));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Page accent overrides */
.has-page-accent .tomorhow-expertise__tag {
    background: var(--page-accent-gradient);
    color: #fff;
}

.has-page-accent .tomorhow-feature-card {
    background: var(--page-accent-gradient);
}

.has-page-accent .tomorhow-feature-card:nth-child(2),
.has-page-accent .tomorhow-feature-card:nth-child(4),
.has-page-accent .tomorhow-feature-card:nth-child(5),
.has-page-accent .tomorhow-feature-card:nth-child(7) {
    background: var(--page-accent-bg-light);
    color: var(--page-accent);
}

.has-page-accent .tomorhow-feature-card:nth-child(2) .tomorhow-feature-card__icon,
.has-page-accent .tomorhow-feature-card:nth-child(4) .tomorhow-feature-card__icon,
.has-page-accent .tomorhow-feature-card:nth-child(5) .tomorhow-feature-card__icon,
.has-page-accent .tomorhow-feature-card:nth-child(7) .tomorhow-feature-card__icon {
    background: rgba(0,0,0,0.06);
}

.has-page-accent .tomorhow-feature-card:nth-child(2) .tomorhow-feature-card__icon svg,
.has-page-accent .tomorhow-feature-card:nth-child(4) .tomorhow-feature-card__icon svg,
.has-page-accent .tomorhow-feature-card:nth-child(5) .tomorhow-feature-card__icon svg,
.has-page-accent .tomorhow-feature-card:nth-child(7) .tomorhow-feature-card__icon svg {
    color: var(--page-accent);
}

.has-page-accent .tomorhow-feature-card:nth-child(2) .tomorhow-feature-card__title,
.has-page-accent .tomorhow-feature-card:nth-child(4) .tomorhow-feature-card__title,
.has-page-accent .tomorhow-feature-card:nth-child(5) .tomorhow-feature-card__title,
.has-page-accent .tomorhow-feature-card:nth-child(7) .tomorhow-feature-card__title {
    color: var(--page-accent);
}

.has-page-accent .tomorhow-feature-card:nth-child(2) .tomorhow-feature-card__description,
.has-page-accent .tomorhow-feature-card:nth-child(4) .tomorhow-feature-card__description,
.has-page-accent .tomorhow-feature-card:nth-child(5) .tomorhow-feature-card__description,
.has-page-accent .tomorhow-feature-card:nth-child(7) .tomorhow-feature-card__description {
    color: var(--page-accent-end, var(--page-accent));
}

/* Grid - 4 columns */
.tomorhow-expertise__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
}

/* Feature Card — Base: dark pink gradient */
.tomorhow-feature-card {
    background: linear-gradient(135deg, #E84C8A 0%, #D63A78 100%);
    color: var(--color-white);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
    position: relative;
    overflow: hidden;
}

/* Clickable card (link) — reset anchor styles */
a.tomorhow-feature-card {
    display: block;
    text-decoration: none;
    cursor: pointer;
}

.tomorhow-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* ============================================
   CHECKERBOARD pattern (matches prototype grid-4)
   Row 1: Dark(1) Light(2) Dark(3) Light(4)
   Row 2: Light(5) Dark(6) Light(7) Dark(8)
   ============================================ */
.tomorhow-feature-card:nth-child(2),
.tomorhow-feature-card:nth-child(4),
.tomorhow-feature-card:nth-child(5),
.tomorhow-feature-card:nth-child(7) {
    background: #FCEBF4;
    color: #E84C8A;
}

/* Light card — icon */
.tomorhow-feature-card:nth-child(2) .tomorhow-feature-card__icon,
.tomorhow-feature-card:nth-child(4) .tomorhow-feature-card__icon,
.tomorhow-feature-card:nth-child(5) .tomorhow-feature-card__icon,
.tomorhow-feature-card:nth-child(7) .tomorhow-feature-card__icon {
    background: rgba(232, 76, 138, 0.12);
}

.tomorhow-feature-card:nth-child(2) .tomorhow-feature-card__icon svg,
.tomorhow-feature-card:nth-child(4) .tomorhow-feature-card__icon svg,
.tomorhow-feature-card:nth-child(5) .tomorhow-feature-card__icon svg,
.tomorhow-feature-card:nth-child(7) .tomorhow-feature-card__icon svg {
    color: var(--color-primary);
}

/* Light card — title */
.tomorhow-feature-card:nth-child(2) .tomorhow-feature-card__title,
.tomorhow-feature-card:nth-child(4) .tomorhow-feature-card__title,
.tomorhow-feature-card:nth-child(5) .tomorhow-feature-card__title,
.tomorhow-feature-card:nth-child(7) .tomorhow-feature-card__title {
    color: var(--color-primary);
}

/* Light card — description */
.tomorhow-feature-card:nth-child(2) .tomorhow-feature-card__description,
.tomorhow-feature-card:nth-child(4) .tomorhow-feature-card__description,
.tomorhow-feature-card:nth-child(5) .tomorhow-feature-card__description,
.tomorhow-feature-card:nth-child(7) .tomorhow-feature-card__description {
    color: var(--color-primary-dark);
}

/* Icon */
.tomorhow-feature-card__icon {
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-md);
    transition: transform var(--transition-base);
}

.tomorhow-feature-card:hover .tomorhow-feature-card__icon {
    transform: scale(1.1);
}

.tomorhow-feature-card__icon svg {
    width: 28px;
    height: 28px;
    color: var(--color-white);
}

/* Title */
.tomorhow-feature-card__title {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: var(--space-xs);
}

/* Description */
.tomorhow-feature-card__description {
    color: rgba(255, 255, 255, 0.85);
    font-size: var(--text-sm);
    line-height: 1.7;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1200px) {
    .tomorhow-expertise {
        padding: var(--space-3xl) 0;
    }
    .tomorhow-expertise__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .tomorhow-expertise__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .tomorhow-expertise {
        padding: var(--space-2xl) 0;
    }
    .tomorhow-expertise__title {
        font-size: var(--text-2xl);
    }
    .tomorhow-expertise__grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .tomorhow-expertise__grid {
        grid-template-columns: 1fr;
        gap: var(--space-sm);
    }

    .tomorhow-feature-card {
        padding: var(--space-md);
    }

    .tomorhow-feature-card__icon {
        width: 44px;
        height: 44px;
    }

    .tomorhow-feature-card__title {
        font-size: var(--text-lg);
    }
}
