/* ==========================================================================
   Section Info Addon Styles for Signature Plus - Modern Design
   ========================================================================== */

.section-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin: 6rem auto;
    max-width: 1200px;
    align-items: center;
    padding: 4rem 3rem;
    background: linear-gradient(135deg, #FFFBF5 0%, #FFF9F0 100%);
    border-radius: 24px;
    box-shadow: 
        inset 0 3px 0 0 var(--primary-color, #FF7B54),
        0 10px 40px rgba(255, 123, 84, 0.08),
        0 2px 8px rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: visible;
}

/* Curved wave effect - Top */
.section-info::before {
    /* content: ''; */
    position: absolute;
    /* top: -40px; */
    /* left: 0; */
    /* right: 0; */
    /* height: 50px; */
    /* background: linear-gradient(135deg, #FFFBF5 0%, #FFF9F0 100%); */
    /* clip-path: ellipse(70% 100% at 50% 100%); */
    /* z-index: -1; */
}

/* Curved wave effect - Bottom */
.section-info::after {
    content: '';
    position: absolute;
    bottom: -40px;
    left: 0;
    right: 0;
    height: 50px;
    background: linear-gradient(135deg, #FFF9F0 0%, #FFFBF5 100%);
    clip-path: ellipse(70% 100% at 50% 0%);
    z-index: -1;
}

/* Full width layout when no image */
.section-info--full {
    grid-template-columns: 1fr;
    max-width: 900px;
    padding: 4rem;
    justify-items: center;
}

.section-info--full .section-info__content {
    max-width: 100%;
    width: 100%;
    grid-column: 1;
}

/* Auto-detect layout: if only one child, make it full width */
.section-info:has(.section-info__content):not(:has(.section-info__image)) {
    grid-template-columns: 1fr;
    max-width: 900px;
    padding: 4rem;
}

.section-info:has(.section-info__content):not(:has(.section-info__image)) .section-info__content {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
}

/* Content area */
.section-info__content {
    line-height: 1.8;
    color: var(--text-dark, #2C3E50);
    position: relative;
    text-align: left;
}

/* Decorative quote mark for content */
.section-info__content::before {
    content: '';
    position: absolute;
    left: -2rem;
    top: -1rem;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, 
        rgba(255, 123, 84, 0.1) 0%, 
        rgba(255, 165, 0, 0.05) 100%);
    border-radius: 50%;
    z-index: 0;
}

/* Typography */
.section-info__content h2,
.section-info__content h3,
.section-info__content h4 {
    background: linear-gradient(135deg, 
        var(--primary-color, #FF7B54) 0%, 
        var(--secondary-color, #FFA500) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-top: 0;
    margin-bottom: 1.25rem;
    font-family: var(--font-heading, 'Quicksand', sans-serif);
    position: relative;
    z-index: 1;
}

.section-info__content h2 {
    font-size: 2.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.section-info__content h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, 
        var(--primary-color, #FF7B54), 
        var(--secondary-color, #FFA500));
    border-radius: 2px;
    margin-top: 1rem;
}

.section-info__content h3 {
    font-size: 1.75rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.section-info__content h4 {
    font-size: 1.375rem;
    font-weight: 600;
}

.section-info__content p {
    margin-bottom: 1.25rem;
    font-size: 1.0625rem;
    position: relative;
    z-index: 1;
}

.section-info__content p:first-of-type {
    font-size: 1.125rem;
    color: var(--text-light, #6C757D);
}

/* Enhanced lists */
.section-info__content ul,
.section-info__content ol {
    margin-left: 0;
    margin-bottom: 1.5rem;
    padding-left: 0;
    list-style: none;
    position: relative;
    z-index: 1;
}

.section-info__content ul li,
.section-info__content ol li {
    margin-bottom: 0.875rem;
    padding-left: 2rem;
    position: relative;
    text-align: left;
}

.section-info__content ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, 
        var(--primary-color, #FF7B54), 
        var(--secondary-color, #FFA500));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(255, 123, 84, 0.3);
}

.section-info__content ol {
    counter-reset: section-counter;
}

.section-info__content ol li::before {
    counter-increment: section-counter;
    content: counter(section-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, 
        var(--primary-color, #FF7B54), 
        var(--secondary-color, #FFA500));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(255, 123, 84, 0.3);
}

.section-info__content strong {
    color: var(--primary-color, #FF7B54);
    font-weight: 600;
    position: relative;
}

.section-info__content a {
    color: var(--primary-color, #FF7B54);
    text-decoration: none;
    font-weight: 600;
    position: relative;
    transition: all 0.3s ease;
    border-bottom: 2px solid rgba(255, 123, 84, 0.3);
}

.section-info__content a::after {
    content: '→';
    margin-left: 0.25rem;
    display: inline-block;
    transition: transform 0.3s ease;
}

.section-info__content a:hover {
    color: var(--secondary-color, #FFA500);
    border-bottom-color: var(--secondary-color, #FFA500);
}

.section-info__content a:hover::after {
    transform: translateX(4px);
}

/* Image area with modern card style */
.section-info__image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 
        0 20px 60px rgba(255, 123, 84, 0.15),
        0 8px 16px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.section-info__image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255, 123, 84, 0.1) 0%, 
        rgba(255, 165, 0, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.section-info__image:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 30px 80px rgba(255, 123, 84, 0.2),
        0 12px 24px rgba(0, 0, 0, 0.12);
}

.section-info__image:hover::before {
    opacity: 1;
}

.section-info__image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.section-info__image:hover img {
    transform: scale(1.05);
}

/* Decorative corner accent */
.section-info__image::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, 
        transparent 0%, 
        transparent 50%, 
        rgba(255, 123, 84, 0.9) 50%, 
        rgba(255, 165, 0, 0.9) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 2;
}

.section-info__image:hover::after {
    opacity: 1;
}

/* Animation states */
.section-info--animated {
    opacity: 0;
    transform: translateY(40px) scale(0.98);
    transition: 
        opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.section-info--animated.reveal-up {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Responsive design */
@media (max-width: 968px) {
    .section-info {
        gap: 3rem;
        padding: 2.5rem;
        margin: 5rem auto;
    }

    /* Adjust curved waves for tablet */
    .section-info::before,
    .section-info::after {
        height: 40px;
    }

    .section-info::before {
        top: -35px;
    }

    .section-info::after {
        bottom: -35px;
    }
}

@media (max-width: 768px) {
    .section-info {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        margin: 3rem 1rem;
        padding: 2rem;
    }

    /* Reduce curved wave size on tablet */
    .section-info::before,
    .section-info::after {
        height: 30px;
    }

    .section-info::before {
        top: -25px;
    }

    .section-info::after {
        bottom: -25px;
    }

    .section-info--full {
        padding: 2rem;
    }

    .section-info__content::before {
        left: -1rem;
        width: 40px;
        height: 40px;
    }

    .section-info__content h2 {
        font-size: 1.75rem;
    }

    .section-info__content h3 {
        font-size: 1.5rem;
    }

    .section-info__content h4 {
        font-size: 1.25rem;
    }

    .section-info__content p,
    .section-info__content p:first-of-type {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .section-info {
        gap: 2rem;
        margin: 2rem 0.75rem;
        padding: 1.5rem;
        border-radius: 16px;
        overflow: hidden;
    }

    /* Hide curved waves on small mobile */
    .section-info::before,
    .section-info::after {
        display: none;
    }

    .section-info--full {
        padding: 1.5rem;
    }

    .section-info__content::before {
        display: none;
    }

    .section-info__content h2 {
        font-size: 1.5rem;
    }

    .section-info__content h2::after {
        width: 40px;
        height: 3px;
        margin-top: 0.75rem;
    }

    .section-info__content h3 {
        font-size: 1.25rem;
    }

    .section-info__content h4 {
        font-size: 1.125rem;
    }

    .section-info__content ul li,
    .section-info__content ol li {
        padding-left: 1.75rem;
    }

    .section-info__content ul li::before,
    .section-info__content ol li::before {
        width: 20px;
        height: 20px;
        font-size: 0.625rem;
    }

    .section-info__image {
        border-radius: 16px;
    }
}
