/* ============================================
   ABOUT BLOCK - Frontend Styles
   ============================================ */

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

.tomorhow-about--cream {
    background-color: var(--color-cream);
}

.tomorhow-about--rounded {
    border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
    margin-top: -3rem;
}

/* Decorative half-circles — default */
.tomorhow-about::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-about::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;
}

/* Cream variant decorative */
.tomorhow-about--cream::before {
    top: 20%;
    left: 0;
    right: auto;
    width: 160px;
    height: 320px;
    background: linear-gradient(135deg, rgba(232, 76, 138, 0.07) 0%, rgba(232, 76, 138, 0.02) 100%);
    border-radius: 0 320px 320px 0;
}

.tomorhow-about--cream::after {
    bottom: 8%;
    right: 0;
    left: auto;
    width: 190px;
    height: 380px;
    background: linear-gradient(135deg, rgba(45, 156, 219, 0.06) 0%, rgba(45, 156, 219, 0.02) 100%);
    border-radius: 380px 0 0 380px;
}

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

/* Header (centered, for feature-cards variant) */
.tomorhow-about__header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--space-2xl);
}

.tomorhow-about__header .tomorhow-about__tag {
    margin-bottom: var(--space-sm);
}

.tomorhow-about__header .tomorhow-about__title {
    margin-bottom: 0;
}

/* Grid */
.tomorhow-about__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4xl);
    align-items: center;
}

.tomorhow-about__grid > * {
    min-width: 0;
}

.tomorhow-about--reversed .tomorhow-about__grid {
    direction: rtl;
}

.tomorhow-about--reversed .tomorhow-about__grid > * {
    direction: ltr;
}

/* Tag */
.tomorhow-about__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-md);
    background: rgba(232, 76, 138, 0.1);
    color: var(--color-primary);
}

.tomorhow-about--cream .tomorhow-about__tag {
    background: rgba(232, 76, 138, 0.1);
    color: var(--color-primary);
}

/* Page accent: tag gets gradient bg + white text */
.has-page-accent .tomorhow-about__tag,
.has-page-accent .tomorhow-about--cream .tomorhow-about__tag {
    background: var(--page-accent-gradient);
    color: #fff;
}

/* Block-level / page-level accent override (higher specificity than cream variant) */
.tomorhow-about--custom-accent .tomorhow-about__tag,
.tomorhow-about--custom-accent.tomorhow-about--cream .tomorhow-about__tag {
    background: linear-gradient(135deg, var(--about-accent) 0%, var(--about-accent-end) 100%);
    color: #fff;
}

.tomorhow-about--custom-accent .tomorhow-about__gradient {
    background: linear-gradient(135deg, var(--about-accent) 0%, var(--about-accent-end) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Title */
.tomorhow-about__title {
    font-family: var(--font-heading);
    font-size: clamp(var(--text-2xl), 4vw, var(--text-4xl));
    font-weight: 800;
    line-height: 1.1;
    color: var(--color-dark);
    margin-bottom: var(--space-lg);
}

/* Gradient text — page accent aware */
.tomorhow-about__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;
}

/* Lead text */
.tomorhow-about__lead {
    font-size: var(--text-xl);
    line-height: 1.6;
    color: var(--color-text-light);
    margin-bottom: var(--space-lg);
}

/* Paragraphs */
.tomorhow-about__paragraph {
    color: var(--color-text-light);
    margin-bottom: var(--space-lg);
    line-height: 1.7;
    font-size: var(--text-base);
}

.tomorhow-about__paragraph:last-child {
    margin-bottom: 0;
}

/* Image */
.tomorhow-about__image {
    width: 100%;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
}

/* Feature Cards Grid (2x2) */
.tomorhow-about__cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
}

.tomorhow-about__cards-grid > * {
    min-width: 0;
}

/* Feature Card */
.tomorhow-about__card {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: var(--color-white);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

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

.tomorhow-about__card--light {
    background: #FCEBF4;
    color: var(--color-primary);
}

.tomorhow-about__card--light .tomorhow-about__card-title {
    color: var(--color-primary);
}

.tomorhow-about__card--light .tomorhow-about__card-description {
    color: var(--color-primary-dark);
}

.tomorhow-about__card--light .tomorhow-about__card-icon {
    background: rgba(232, 76, 138, 0.12);
}

.tomorhow-about__card--light .tomorhow-about__card-icon svg {
    color: var(--color-primary);
}

/* Card Icon */
.tomorhow-about__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-about__card:hover .tomorhow-about__card-icon {
    transform: scale(1.1);
}

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

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

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

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 992px) {
    .tomorhow-about {
        padding: var(--space-3xl) 0;
    }
}

@media (max-width: 768px) {
    .tomorhow-about {
        padding: var(--space-2xl) 0;
    }

    .tomorhow-about--rounded {
        border-radius: var(--radius-xl) var(--radius-xl) 0 0;
        margin-top: -2rem;
    }

    .tomorhow-about__grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .tomorhow-about--reversed .tomorhow-about__grid {
        direction: ltr;
    }

    .tomorhow-about__title {
        font-size: var(--text-2xl);
    }

    .tomorhow-about__cards-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .tomorhow-about__card {
        padding: var(--space-md);
    }

    .tomorhow-about__title {
        font-size: var(--text-2xl);
    }

    .tomorhow-about__cards-grid {
        gap: var(--space-sm);
    }
}
