/**
 * Text Section Styles
 * Centered text section for introductions and content blocks
 * 
 * @package Gustoso Child Theme
 * @since 1.0
 */

/* Text Section Container */
.gustoso-text-section {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 140px !important;
    padding-bottom: 140px !important;
}

.gustoso-text-section-container {
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

/* Title */
.gustoso-text-section-title {
    font-family: 'Ysabeau Infant', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 64px;
    font-weight: 400;
    line-height: 1.2;
    margin: 0 0 20px 0;
    padding: 0;
}

/* Subtitle */
.gustoso-text-section-subtitle {
    font-family: 'Ysabeau Infant', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 32px;
    font-weight: 300;
    line-height: 1.4;
    margin: 0 0 30px 0;
    padding: 0;
}

/* Content/Body Text */
.gustoso-text-section-content {
    font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    text-align: left;
}

.gustoso-text-section-content p {
    margin: 0 0 15px 0;
}

.gustoso-text-section-content p:last-child {
    margin-bottom: 0;
}

/* Headings inside content area */
.gustoso-text-section-content h2 {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif !important;
    font-size: 24px !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
    color: #26303F !important;
    margin: 40px 0 16px 0 !important;
    padding: 0 !important;
}

.gustoso-text-section-content h2:first-child {
    margin-top: 0 !important;
}

.gustoso-text-section-content h3 {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    color: #26303F !important;
    margin: 28px 0 10px 0 !important;
    padding: 0 !important;
}

.gustoso-text-section-content h4 {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    color: #26303F !important;
    margin: 24px 0 8px 0 !important;
    padding: 0 !important;
}

/* CTAs Container */
.gustoso-text-section-ctas {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-top: 40px;
    flex-wrap: wrap;
}

/* CTA Wrapper */
.gustoso-text-section-cta {
    margin-top: 0;
    text-align: center;
}

/* CTA Link */
.gustoso-text-section-cta-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    text-decoration: none;
    color: var(--text-color, #2d3748);
    transition: all 0.3s ease;
}

/* CTA Button */
.gustoso-text-section-cta-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #324158;
    flex-shrink: 0;
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid #324158 !important;
}

.gustoso-text-section-cta-button::before {
    content: "→";
    font-size: 18px;
    line-height: 1;
    color: #ffffff;
    display: block;
}

.gustoso-text-section-cta-icon {
    display: none;
}

.gustoso-text-section-cta-link:hover .gustoso-text-section-cta-button {
    background: transparent !important;
    color: #324158 !important;
}

.gustoso-text-section-cta-link:hover .gustoso-text-section-cta-button::before {
    color: #324158 !important;
}

/* Primary CTA - Same as base (matching marke teaser) */
.gustoso-text-section-cta-link.gustoso-text-section-cta--primary .gustoso-text-section-cta-button {
    background-color: #324158;
}

/* Primary CTA hover - Same as marke teaser light mode */
.gustoso-text-section-cta-link.gustoso-text-section-cta--primary:hover .gustoso-text-section-cta-button {
    background-color: transparent !important;
}

.gustoso-text-section-cta-link.gustoso-text-section-cta--primary:hover .gustoso-text-section-cta-button::before {
    color: #324158 !important;
}

/* Secondary CTA - White Button */
.gustoso-text-section-cta-link.gustoso-text-section-cta--secondary .gustoso-text-section-cta-button {
    background-color: #ffffff;
    border: 1px solid #d0d0d0;
}

.gustoso-text-section-cta-link.gustoso-text-section-cta--secondary .gustoso-text-section-cta-button::before {
    color: #26303F;
}

.gustoso-text-section-cta-link.gustoso-text-section-cta--secondary:hover .gustoso-text-section-cta-button::before {
    color: #26303F !important;
}

/* CTA Text */
.gustoso-text-section-cta-text {
    font-family: 'Ysabeau Infant', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 18px;
    font-weight: 600;
    font-style: normal;
    line-height: 1.5;
    color: var(--text-color, #2d3748);
    padding-left: 0;
}

/* Remove any pseudo-elements from CTA text */
.gustoso-text-section-cta-text::before,
.gustoso-text-section-cta-text::after {
    display: none !important;
    content: none !important;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .gustoso-text-section-title {
        font-size: 42px;
    }
    
    .gustoso-text-section-subtitle {
        font-size: 18px;
    }
    
    .gustoso-text-section-content {
        font-size: 15px;
    }
}

@media (max-width: 768px) {
    .gustoso-text-section {
        padding-top: 64px !important;
        padding-bottom: 64px !important;
    }
    
    .gustoso-text-section-container {
        padding: 0 15px;
    }
    
    .gustoso-text-section-title {
        font-size: 36px;
        margin-bottom: 15px;
    }
    
    .gustoso-text-section-subtitle {
        font-size: 17px;
        margin-bottom: 25px;
    }
    
    .gustoso-text-section-content {
        font-size: 14px;
    }
    
    .gustoso-text-section-content h2 {
        font-size: 20px !important;
        margin-top: 32px !important;
    }
    
    .gustoso-text-section-content h3 {
        font-size: 16px !important;
        margin-top: 24px !important;
    }
    
    .gustoso-text-section-ctas {
        gap: 20px;
        margin-top: 30px;
    }
    
    .gustoso-text-section-cta-button {
        width: 40px;
        height: 40px;
    }
    
    .gustoso-text-section-cta-button::before {
        font-size: 16px;
    }
    
    .gustoso-text-section-cta-text {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .gustoso-text-section-container {
        padding: 0 15px;
    }
    
    .gustoso-text-section-title {
        font-size: 28px;
        margin-bottom: 12px;
    }
    
    .gustoso-text-section-subtitle {
        font-size: 16px;
        margin-bottom: 20px;
    }
    
    .gustoso-text-section-content {
        font-size: 14px;
        line-height: 1.5;
    }
    
    .gustoso-text-section-ctas {
        flex-direction: column;
        gap: 15px;
        margin-top: 25px;
    }
    
    .gustoso-text-section-cta-button {
        width: 40px;
        height: 40px;
    }
    
    .gustoso-text-section-cta-button::before {
        font-size: 16px;
    }
    
    .gustoso-text-section-cta-text {
        font-size: 15px;
    }
}


