/**
 * Façade Calculator Landing Page Styles
 * Premium design for the landing page
 */

/* =========================
   LANDING PAGE STYLES
   ========================= */

/* Full width page - hide sidebar */
body.page-template-page-facade-calculator #main,
body.page-template-page-facade-calculator .main-content,
body.page-template-page-facade-calculator #content-container,
body.page-template-page-facade-calculator .page-content {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

body.page-template-page-facade-calculator #sidebar,
body.page-template-page-facade-calculator .sidebar-content {
    display: none !important;
}

body.page-template-page-facade-calculator .page-wrapper,
body.page-template-page-facade-calculator .container,
body.page-template-page-facade-calculator .main-content-wrap {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

body.page-template-page-facade-calculator #content {
    width: 100% !important;
    float: none !important;
}

.facade-calculator-landing {
    background: #f9fafb;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

/* Override Porto container on this page */
body.page-template-page-facade-calculator .facade-calculator-landing .container {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Header full width on this page */
body.page-template-page-facade-calculator #header .container,
body.page-template-page-facade-calculator #header .header-main,
body.page-template-page-facade-calculator #header .header-wrapper {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding-left: 40px !important;
    padding-right: 40px !important;
}

/* Footer full width on this page */
body.page-template-page-facade-calculator #footer .container,
body.page-template-page-facade-calculator #footer .footer-main,
body.page-template-page-facade-calculator #footer .footer-wrapper {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding-left: 40px !important;
    padding-right: 40px !important;
}

/* Hero Section - Compact Banner */
.fc-landing-hero {
    position: relative;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #7e22ce 100%);
    color: #ffffff;
    padding: 40px 0 35px;
    overflow: hidden;
    width: 100%;
    margin: 0;
}

.fc-landing-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.4;
}

.fc-landing-hero .fc-hero-inner {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
    z-index: 1;
}

.fc-hero-inner {
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.fc-hero-title {
    font-size: 36px;
    font-weight: 700;
    margin: 0 0 12px 0;
    line-height: 1.2;
    color: #ffffff;
}

.fc-hero-subtitle {
    font-size: 17px;
    margin: 0 0 20px 0;
    opacity: 0.95;
    line-height: 1.5;
}

.fc-hero-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    margin-top: 0;
}

.fc-hero-feature {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
}

.fc-hero-feature svg {
    flex-shrink: 0;
}

/* Stats Section */
.fc-landing-stats {
    background: #ffffff;
    padding: 60px 0;
    border-bottom: 1px solid #e5e7eb;
}

.fc-landing-stats .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.fc-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    text-align: center;
}

.fc-stat-item {
    padding: 20px;
}

.fc-stat-number {
    font-size: 48px;
    font-weight: 700;
    background: linear-gradient(135deg, #1e3c72 0%, #7e22ce 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.fc-stat-label {
    font-size: 16px;
    color: #6b7280;
    font-weight: 500;
}

/* Calculator Section - THE CENTERPIECE */
.fc-landing-calculator {
    padding: 0;
    width: 100%;
    background: #f9fafb;
}

.fc-landing-calculator.fc-centerpiece {
    padding: 60px 0 80px;
    background: #ffffff;
    box-shadow: inset 0 4px 12px rgba(0, 0, 0, 0.03);
}

@media (max-width: 640px) {
    .fc-landing-calculator.fc-centerpiece {
        padding: 40px 0 60px;
    }
}

.fc-landing-calculator .fc-calculator-inner {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 40px;
}

@media (max-width: 640px) {
    .fc-landing-calculator .fc-calculator-inner {
        padding: 0 4px;
    }
}

/* Override plugin's max-width for landing page */
.fc-landing-calculator .fc-calculator-wrapper {
    max-width: 100%;
    box-shadow: none;
    border-radius: 0;
    background: transparent;
}

.fc-landing-calculator .fc-progress-container {
    max-width: 1000px;
    margin: 0 auto 40px;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.fc-landing-calculator .fc-step {
    max-width: 1000px;
    margin: 0 auto;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    padding: 40px;
}

/* Benefits Section */
.fc-landing-benefits {
    background: #ffffff;
    padding: 80px 0;
    width: 100%;
}

.fc-landing-benefits .fc-benefits-inner {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 40px;
}

.section-title {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 60px 0;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.benefit-card {
    background: #ffffff;
    padding: 40px 32px;
    border-radius: 16px;
    border: 2px solid #e5e7eb;
    text-align: center;
    transition: all 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(30, 60, 114, 0.12);
    border-color: #7e22ce;
}

.benefit-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, #1e3c72 0%, #7e22ce 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
}

.benefit-card h3 {
    font-size: 22px;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 12px 0;
}

.benefit-card p {
    font-size: 15px;
    color: #6b7280;
    line-height: 1.6;
    margin: 0;
}

/* How It Works Section */
.fc-landing-how-it-works {
    background: linear-gradient(180deg, #ffffff 0%, #f9fafb 100%);
    padding: 80px 0;
    width: 100%;
    position: relative;
}

.fc-landing-how-it-works .fc-works-inner {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 40px;
}

.fc-landing-how-it-works .section-subtitle {
    text-align: center;
    font-size: 18px;
    color: #6b7280;
    margin: 16px auto;
    max-width: 600px;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 40px;
    margin-top: 60px;
    position: relative;
}

.step-card {
    background: #ffffff;
    padding: 48px 32px 40px;
    border-radius: 20px;
    text-align: center;
    border: 2px solid #e5e7eb;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.step-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #1e3c72 0%, #7e22ce 100%);
    transform: scaleX(0);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.step-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(30, 60, 114, 0.15);
    border-color: #1e3c72;
}

.step-card:hover::before {
    transform: scaleX(1);
}

.step-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, #f0f4ff 0%, #e9d5ff 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1e3c72;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.step-card:hover .step-icon {
    background: linear-gradient(135deg, #1e3c72 0%, #7e22ce 100%);
    color: #ffffff;
    transform: scale(1.1) rotate(5deg);
}

.step-number {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #1e3c72 0%, #7e22ce 100%);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(126, 34, 206, 0.3);
    transition: all 0.3s ease;
}

.step-card:hover .step-number {
    transform: scale(1.15);
    box-shadow: 0 6px 16px rgba(126, 34, 206, 0.4);
}

.step-card h3 {
    font-size: 22px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 16px 0;
    transition: color 0.3s ease;
}

.step-card:hover h3 {
    color: #1e3c72;
}

.step-card p {
    font-size: 15px;
    color: #6b7280;
    line-height: 1.7;
    margin: 0;
}

/* CTA Section */
.fc-landing-cta {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #7e22ce 100%);
    color: #ffffff;
    padding: 80px 0;
    text-align: center;
    width: 100%;
}

.fc-landing-cta .fc-cta-inner {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 40px;
}

.cta-content h2 {
    font-size: 38px;
    font-weight: 700;
    margin: 0 0 16px 0;
    color: #ffffff;
}

.cta-content p {
    font-size: 18px;
    margin: 0 0 32px 0;
    opacity: 0.95;
}

.cta-button {
    display: inline-block;
    padding: 18px 48px;
    background: #ffffff;
    color: #1e3c72;
    font-size: 18px;
    font-weight: 600;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
    color: #7e22ce;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .fc-landing-hero {
        padding: 30px 0 25px;
    }
    
    .fc-landing-hero .fc-hero-inner {
        padding: 0 16px;
    }
    
    .fc-hero-title {
        font-size: 26px;
    }
    
    .fc-hero-subtitle {
        font-size: 15px;
    }
    
    .fc-hero-features {
        gap: 20px;
        flex-direction: column;
        align-items: center;
    }
    
    .fc-landing-stats {
        padding: 40px 0;
    }
    
    .fc-stats-grid {
        gap: 32px;
    }
    
    .fc-stat-number {
        font-size: 36px;
    }
    
    .section-title {
        font-size: 28px;
        margin-bottom: 40px;
    }
    
    .fc-landing-benefits .fc-benefits-inner,
    .fc-landing-how-it-works .fc-works-inner,
    .fc-landing-cta .fc-cta-inner {
        padding: 0 16px;
    }
    
    .fc-landing-benefits,
    .fc-landing-how-it-works {
        padding: 60px 0;
    }
    
    .benefits-grid,
    .steps-grid {
        gap: 24px;
    }
    
    .cta-content h2 {
        font-size: 28px;
    }
    
    .cta-content p {
        font-size: 16px;
    }
    
    /* Calculator adjustments for mobile */
    .fc-landing-calculator .fc-calculator-inner {
        padding: 0 8px;
    }
    
    .fc-landing-calculator .fc-step {
        padding: 20px 8px;
    }
}

@media (min-width: 1024px) {
    .fc-hero-title {
        font-size: 42px;
    }
    
    .fc-hero-subtitle {
        font-size: 18px;
    }
    
    .section-title {
        font-size: 42px;
    }
}
