/**
 * Page CTAs Stylesheet
 * Version: 3.6.0
 * Description: Styling for customizable call-to-action sections
 * Created: November 18, 2025
 */

/* ==========================================
   BASE CTA STYLES
   ========================================== */

.cta-section-standard {
    padding: 0;
    margin-top: 80px;
}

.cta-section-standard .page-cta {
    max-width: 1200px;
    margin: 0 auto;
}

.page-cta {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    transition: transform 0.3s ease;
}

.cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

/* ==========================================
   PADDING SIZES
   ========================================== */

.cta-padding-small {
    padding: 40px 30px;
}

.cta-padding-medium {
    padding: 60px 40px;
}

.cta-padding-large {
    padding: 80px 50px;
}

/* ==========================================
   TEXT ALIGNMENT
   ========================================== */

.cta-align-left {
    text-align: left;
}

.cta-align-left .cta-content {
    margin-left: 0;
}

.cta-align-left .cta-buttons {
    justify-content: flex-start;
}

.cta-align-center {
    text-align: center;
}

.cta-align-center .cta-content {
    margin-left: auto;
    margin-right: auto;
}

.cta-align-center .cta-buttons {
    justify-content: center;
}

.cta-align-right {
    text-align: right;
}

.cta-align-right .cta-content {
    margin-right: 0;
    margin-left: auto;
}

.cta-align-right .cta-buttons {
    justify-content: flex-end;
}

/* ==========================================
   CONTENT ELEMENTS
   ========================================== */

.cta-title {
    font-size: 36px;
    font-weight: 700;
    margin: 0 0 15px 0;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.cta-subtitle {
    font-size: 20px;
    margin: 0 0 15px 0;
    opacity: 0.95;
    font-weight: 500;
}

.cta-description {
    font-size: 18px;
    margin: 0 0 30px 0;
    opacity: 0.95;
    line-height: 1.6;
}

/* ==========================================
   BUTTONS
   ========================================== */

.cta-buttons,
.cta-buttons-modern,
.cta-buttons-minimal,
.cta-buttons-boxed {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.cta-buttons .btn,
.cta-buttons-modern .btn,
.cta-buttons-minimal .btn,
.cta-buttons-boxed .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Base button size - applies to all CTA buttons */
.cta-buttons .btn.btn-lg,
.cta-buttons-modern .btn.btn-lg,
.cta-buttons-minimal .btn.btn-lg,
.cta-buttons-boxed .btn.btn-lg {
    padding: 15px 35px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}

/* ==========================================
   BUTTON STYLES - High Specificity
   These styles use higher specificity to ensure
   they override any conflicting styles
   ========================================== */

/* Primary Button - Gradient */
.cta-buttons .btn.btn-primary,
.cta-buttons-modern .btn.btn-primary,
.cta-buttons-minimal .btn.btn-primary,
.cta-buttons-boxed .btn.btn-primary {
    background: linear-gradient(135deg, var(--theme-primary, #6366f1), var(--theme-secondary, #8b5cf6)) !important;
    color: white !important;
    border: 2px solid transparent !important;
}

.cta-buttons .btn.btn-primary:hover,
.cta-buttons-modern .btn.btn-primary:hover,
.cta-buttons-minimal .btn.btn-primary:hover,
.cta-buttons-boxed .btn.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.3);
}

/* Secondary Button - Solid Color */
.cta-buttons .btn.btn-secondary,
.cta-buttons-modern .btn.btn-secondary,
.cta-buttons-minimal .btn.btn-secondary,
.cta-buttons-boxed .btn.btn-secondary {
    background: var(--theme-secondary, #8b5cf6) !important;
    color: white !important;
    border: 2px solid var(--theme-secondary, #8b5cf6) !important;
}

.cta-buttons .btn.btn-secondary:hover,
.cta-buttons-modern .btn.btn-secondary:hover,
.cta-buttons-minimal .btn.btn-secondary:hover,
.cta-buttons-boxed .btn.btn-secondary:hover {
    background: var(--theme-primary, #6366f1) !important;
    border-color: var(--theme-primary, #6366f1) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.3);
}

/* White Button - For dark/gradient backgrounds */
.cta-buttons .btn.btn-white,
.cta-buttons-modern .btn.btn-white,
.cta-buttons-minimal .btn.btn-white,
.cta-buttons-boxed .btn.btn-white {
    background: white !important;
    color: var(--theme-primary, #6366f1) !important;
    border: 2px solid white !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.cta-buttons .btn.btn-white:hover,
.cta-buttons-modern .btn.btn-white:hover,
.cta-buttons-minimal .btn.btn-white:hover,
.cta-buttons-boxed .btn.btn-white:hover {
    background: rgba(255, 255, 255, 0.9) !important;
    color: var(--theme-secondary, #8b5cf6) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* Outline White Button - Transparent with white border */
.cta-buttons .btn.btn-outline-white,
.cta-buttons-modern .btn.btn-outline-white,
.cta-buttons-minimal .btn.btn-outline-white,
.cta-buttons-boxed .btn.btn-outline-white {
    background: transparent !important;
    color: white !important;
    border: 2px solid white !important;
}

.cta-buttons .btn.btn-outline-white:hover,
.cta-buttons-modern .btn.btn-outline-white:hover,
.cta-buttons-minimal .btn.btn-outline-white:hover,
.cta-buttons-boxed .btn.btn-outline-white:hover {
    background: white !important;
    color: var(--theme-primary, #6366f1) !important;
    transform: translateY(-2px);
}

/* Legacy support for lower specificity selectors */
.btn-lg {
    padding: 15px 35px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}

/* ==========================================
   DECORATIVE SHAPES
   ========================================== */

.cta-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.3;
    animation: float 20s ease-in-out infinite;
    z-index: 1;
}

.cta-shape-1 {
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.3);
    top: -100px;
    left: -100px;
}

.cta-shape-2 {
    width: 250px;
    height: 250px;
    background: rgba(255, 255, 255, 0.2);
    bottom: -100px;
    right: -100px;
    animation-delay: -10s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(50px, 50px) rotate(90deg);
    }
    50% {
        transform: translate(0, 100px) rotate(180deg);
    }
    75% {
        transform: translate(-50px, 50px) rotate(270deg);
    }
}

/* ==========================================
   GRADIENT ANIMATION (Optional Enhancement)
   ========================================== */

.gradient-animated {
    animation: gradientShift 15s ease infinite;
    background-size: 200% 200%;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */

@media (max-width: 768px) {
    .cta-section-standard {
        margin-top: 60px;
        padding: 0 20px;
    }

    .page-cta {
        margin-top: 0;
    }

    .cta-padding-small {
        padding: 30px 20px;
    }

    .cta-padding-medium {
        padding: 40px 25px;
    }

    .cta-padding-large {
        padding: 50px 30px;
    }

    .cta-title {
        font-size: 28px;
    }

    .cta-subtitle {
        font-size: 16px;
    }

    .cta-description {
        font-size: 15px;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 12px;
    }

    .cta-buttons .btn {
        width: 100%;
        justify-content: center;
    }

    /* Force center alignment on mobile */
    .cta-align-left,
    .cta-align-right {
        text-align: center;
    }

    .cta-align-left .cta-content,
    .cta-align-right .cta-content {
        margin-left: auto;
        margin-right: auto;
    }

    .cta-align-left .cta-buttons,
    .cta-align-right .cta-buttons {
        justify-content: center;
    }

    .cta-shape-1,
    .cta-shape-2 {
        width: 150px;
        height: 150px;
    }
}

@media (max-width: 480px) {
    .cta-title {
        font-size: 24px;
    }

    .cta-subtitle {
        font-size: 14px;
    }

    .cta-description {
        font-size: 14px;
    }

    .btn-lg {
        padding: 12px 28px;
        font-size: 15px;
    }
}

/* ==========================================
   ACCESSIBILITY
   ========================================== */

@media (prefers-reduced-motion: reduce) {
    .page-cta,
    .btn-lg,
    .cta-shape {
        animation: none;
        transition: none;
    }

    .btn-lg:hover {
        transform: none;
    }
}

/* Focus styles for keyboard navigation */
.btn-lg:focus {
    outline: 2px solid currentColor;
    outline-offset: 4px;
}

/* ==========================================
   PRINT STYLES
   ========================================== */

@media print {
    .page-cta {
        background: none !important;
        color: #000 !important;
        border: 1px solid #000;
    }

    .cta-overlay,
    .cta-shape {
        display: none !important;
    }

    .btn-lg {
        border: 1px solid #000 !important;
        background: none !important;
        color: #000 !important;
    }
}

/* ==========================================
   MODERN CTA STYLE (Like Homepage)
   ========================================== */

.cta-section-modern {
    background: linear-gradient(135deg, var(--theme-primary, #6366f1), var(--theme-secondary, #8b5cf6));
    padding: 80px 0;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
    margin-top: 80px;
}

.cta-section-modern .container {
    position: relative;
    z-index: 2;
}

.cta-content-modern {
    max-width: 800px;
    margin: 0 auto;
}

.cta-content-modern h2 {
    font-size: 42px;
    font-weight: 700;
    margin: 0 0 20px 0;
    line-height: 1.2;
    color: white;
}

.cta-content-modern h3 {
    font-size: 20px;
    margin: 0 0 15px 0;
    opacity: 0.95;
    font-weight: 500;
    color: white;
}

.cta-content-modern p {
    font-size: 18px;
    line-height: 1.7;
    margin: 0 0 35px 0;
    opacity: 0.95;
    color: white;
}

.cta-buttons-modern {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons-modern .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 35px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Modern CTA Responsive */
@media (max-width: 768px) {
    .cta-section-modern {
        padding: 60px 0;
        margin-top: 60px;
    }

    .cta-content-modern h2 {
        font-size: 32px;
    }

    .cta-content-modern h3 {
        font-size: 18px;
    }

    .cta-content-modern p {
        font-size: 16px;
    }

    .cta-buttons-modern {
        flex-direction: column;
        gap: 12px;
    }

    .cta-buttons-modern .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .cta-content-modern h2 {
        font-size: 26px;
    }

    .cta-content-modern h3 {
        font-size: 16px;
    }

    .cta-content-modern p {
        font-size: 15px;
    }
}

/* ==========================================
   MINIMAL CTA STYLE
   ========================================== */

.cta-section-minimal {
    padding: 60px 0;
    text-align: center;
    position: relative;
    margin-top: 80px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.cta-section-minimal .container {
    position: relative;
    z-index: 2;
}

.cta-content-minimal {
    max-width: 700px;
    margin: 0 auto;
}

.cta-content-minimal h2 {
    font-size: 36px;
    font-weight: 700;
    margin: 0 0 15px 0;
    line-height: 1.3;
}

.cta-content-minimal h3 {
    font-size: 18px;
    margin: 0 0 10px 0;
    opacity: 0.85;
    font-weight: 500;
}

.cta-content-minimal p {
    font-size: 17px;
    line-height: 1.6;
    margin: 0 0 30px 0;
    opacity: 0.85;
}

.cta-buttons-minimal {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons-minimal .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Minimal CTA Responsive */
@media (max-width: 768px) {
    .cta-section-minimal {
        padding: 50px 0;
        margin-top: 60px;
    }

    .cta-content-minimal h2 {
        font-size: 28px;
    }

    .cta-content-minimal h3 {
        font-size: 16px;
    }

    .cta-content-minimal p {
        font-size: 15px;
    }

    .cta-buttons-minimal {
        flex-direction: column;
        gap: 12px;
    }

    .cta-buttons-minimal .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .cta-content-minimal h2 {
        font-size: 24px;
    }

    .cta-buttons-minimal .btn {
        padding: 12px 28px;
        font-size: 15px;
    }
}

/* ==========================================
   BOXED CTA STYLE
   ========================================== */

.cta-section-boxed {
    padding: 80px 0;
    margin-top: 80px;
}

.cta-section-boxed .container {
    position: relative;
    z-index: 2;
}

.cta-content-boxed {
    max-width: 900px;
    margin: 0 auto;
    padding: 50px 60px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-content-boxed h2 {
    font-size: 38px;
    font-weight: 700;
    margin: 0 0 15px 0;
    line-height: 1.2;
}

.cta-content-boxed h3 {
    font-size: 19px;
    margin: 0 0 10px 0;
    opacity: 0.9;
    font-weight: 500;
}

.cta-content-boxed p {
    font-size: 17px;
    line-height: 1.6;
    margin: 0 0 30px 0;
    opacity: 0.9;
}

.cta-buttons-boxed {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons-boxed .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 35px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Boxed CTA with decorative corner elements */
.cta-content-boxed::before,
.cta-content-boxed::after {
    content: '';
    position: absolute;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    opacity: 0.1;
    z-index: 0;
}

.cta-content-boxed::before {
    top: -30px;
    left: -30px;
    background: currentColor;
}

.cta-content-boxed::after {
    bottom: -30px;
    right: -30px;
    background: currentColor;
}

/* Boxed CTA Responsive */
@media (max-width: 768px) {
    .cta-section-boxed {
        padding: 60px 0;
        margin-top: 60px;
    }

    .cta-content-boxed {
        padding: 40px 30px;
        border-radius: 16px;
    }

    .cta-content-boxed h2 {
        font-size: 28px;
    }

    .cta-content-boxed h3 {
        font-size: 17px;
    }

    .cta-content-boxed p {
        font-size: 15px;
    }

    .cta-buttons-boxed {
        flex-direction: column;
        gap: 12px;
    }

    .cta-buttons-boxed .btn {
        width: 100%;
    }

    .cta-content-boxed::before,
    .cta-content-boxed::after {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 480px) {
    .cta-content-boxed {
        padding: 30px 20px;
    }

    .cta-content-boxed h2 {
        font-size: 24px;
    }

    .cta-buttons-boxed .btn {
        padding: 12px 28px;
        font-size: 15px;
    }
}

/* ==========================================
   LEGACY COMPATIBILITY
   ========================================== */

/* Support for existing CTA classes in old pages */
.industries-cta,
.categories-cta,
.brands-cta {
    background: linear-gradient(135deg, var(--theme-primary, #6366f1), var(--theme-secondary, #8b5cf6));
    border-radius: 16px;
    padding: 60px 40px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
    margin-top: 80px;
}

.industries-cta h2,
.categories-cta h2,
.brands-cta h2 {
    font-size: 32px;
    margin-bottom: 15px;
    color: white;
    font-weight: 700;
}

.industries-cta p,
.categories-cta p,
.brands-cta p {
    font-size: 18px;
    color: white;
    opacity: 0.95;
    margin-bottom: 30px;
}
