/**
 * Dynamic Page Mode Styles
 * Controls visibility and styling based on page mode (landing-page vs service-page)
 */

/* ============================================
   LANDING PAGE MODE (Default - External Traffic)
   ============================================ */

.landing-page {
    /* Show all marketing elements */
}

.landing-page .landing-only {
    display: block !important;
}

.landing-page .service-only {
    display: none !important;
}

/* Hero section - Full marketing mode */
.landing-page .hero {
    padding: 120px 0 80px;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.landing-page .cta-form {
    margin-top: 40px;
}

.landing-page .urgency-banner {
    display: flex;
}

/* Multiple CTAs visible */
.landing-page .cta-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

/* Social proof visible */
.landing-page .social-proof {
    display: block;
}

.landing-page .testimonials {
    display: block;
}

.landing-page .faq {
    display: block;
}

/* Final CTA visible */
.landing-page .final-cta {
    display: block;
    padding: 80px 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
}

/* ============================================
   SERVICE PAGE MODE (Internal Navigation)
   ============================================ */

.service-page {
    /* Cleaner, more professional look */
}

.service-page .landing-only {
    display: none !important;
}

.service-page .service-only {
    display: block !important;
}

/* Hero section - Service mode (smaller, cleaner) */
.service-page .hero {
    padding: 100px 0 60px;
    min-height: auto;
}

.service-page .hero-headline {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.service-page .hero-subheadline {
    font-size: 1.1rem;
    margin-bottom: 30px;
}

/* Hide urgency banner */
.service-page .urgency-banner {
    display: none;
}

/* Single CTA button */
.service-page .cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.service-page .cta-buttons .btn-secondary {
    display: none; /* Hide phone button in service mode */
}

/* Hide some marketing sections */
.service-page .social-proof {
    display: none;
}

.service-page .testimonials {
    display: none;
}

.service-page .faq {
    display: none;
}

.service-page .final-cta {
    display: none;
}

/* Show breadcrumb */
.service-page .service-breadcrumb {
    display: flex !important;
    align-items: center;
    gap: 8px;
    padding: 20px 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 30px;
}

.service-page .service-breadcrumb a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.2s ease;
}

.service-page .service-breadcrumb a:hover {
    color: rgba(255, 255, 255, 1);
}

.service-page .service-breadcrumb .separator {
    color: rgba(255, 255, 255, 0.4);
}

/* Service navigation - hidden by default, shown only via JS when ref=internal */
.service-only.service-nav {
    display: none !important; /* Hidden by default */
}

/* Service navigation - shown when ref=internal (via JS inline style) */
.service-only.service-nav[style*="display: block"],
.service-only.service-nav[style*="display:block"] {
    display: block !important;
    padding: 60px 0 40px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin: 40px 0;
}

.service-nav .container {
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.service-nav-title {
    font-size: 1.9rem;
    margin-bottom: 10px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.3;
}

.service-nav-subtitle {
    font-size: 1rem;
    max-width: 720px;
    margin: 0 auto 30px;
    opacity: 0.85;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

.service-nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
}

.service-nav-link {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    text-decoration: none;
    font-size: 0.95rem;
    line-height: 1.4;
    text-align: center;
    min-width: 210px;
    max-width: 260px;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.03);
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}

.service-nav-link:hover,
.service-nav-link:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
    border-color: rgba(255, 255, 255, 0.35);
    background-color: rgba(255, 255, 255, 0.06);
    color: #ffffff;
}

/* Cleaner form in service mode */
.service-page .cta-form {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 40px;
    margin-top: 40px;
}

.service-page .form-title {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.service-page .form-subtitle {
    margin-bottom: 25px;
}

/* Service CTA buttons container */
.service-page .service-cta-buttons {
    display: flex !important;
    gap: 20px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin: 50px 0;
}

.service-page .service-cta-buttons .cta-button-new {
    min-width: 200px;
}

/* Bottom CTA - Always in row, compact, professional */
.service-bottom-cta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 18px;
    padding: 24px 0 40px;
    flex-wrap: wrap;
}

.bottom-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 999px;
    font-size: 0.95rem;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.bottom-cta-btn.cta-button-new {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    background-size: 200% 200%;
    border: none;
    color: #ffffff;
    font-weight: 700;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
}

.bottom-cta-btn.cta-button-new:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(102, 126, 234, 0.5);
    background-position: 100% 0;
}

.bottom-cta-btn.btn-phone {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.9);
}

.bottom-cta-btn.btn-phone:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    color: #ffffff;
    transform: translateY(-2px);
}

.bottom-cta-btn svg {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    flex-shrink: 0;
}

/* Responsive for bottom CTA */
@media (max-width: 640px) {
    .service-bottom-cta {
        flex-direction: column;
        gap: 12px;
        padding: 20px 0 30px;
    }

    .bottom-cta-btn {
        width: 100%;
        max-width: 360px;
    }
}

/* Hide countdown timer in service mode */
.service-page .countdown-timer {
    display: none;
}

/* Hide "Visit Our Main Website" button in service mode */
.service-page .main-website-btn {
    display: none !important;
}

/* Process/Timeline section - fix styling in service mode */
.service-page .process {
    margin: 60px 0 !important;
    padding: 50px 0 !important;
    background: transparent !important;
}

.service-page .process .container {
    max-width: 900px !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
}

.service-page .process .section-title {
    text-align: center !important;
    margin-bottom: 50px !important;
    font-size: 2.2rem !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
}

.service-page .timeline {
    display: flex !important;
    flex-direction: column !important;
    gap: 25px !important;
    position: relative;
    padding: 0;
    max-width: 100%;
}

.service-page .timeline-item {
    display: flex !important;
    flex-direction: row !important;
    gap: 25px !important;
    align-items: flex-start !important;
    position: relative;
    padding: 25px 30px !important;
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 16px !important;
    transition: all 0.3s ease !important;
    width: 100% !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1) !important;
    animation: none !important; /* Remove any inline animation styles */
}

.service-page .timeline-item:hover {
    background: rgba(255, 255, 255, 0.06) !important;
    border-color: rgba(255, 255, 255, 0.25) !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.service-page .timeline-step {
    flex-shrink: 0 !important;
    width: 60px !important;
    height: 60px !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 24px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4) !important;
}

.service-page .timeline-content {
    flex: 1 !important;
    min-width: 0;
}

.service-page .timeline-content h3 {
    font-size: 1.4rem !important;
    margin-bottom: 12px !important;
    color: #ffffff !important;
    font-weight: 600;
    line-height: 1.3;
}

.service-page .timeline-content p {
    color: rgba(255, 255, 255, 0.85) !important;
    line-height: 1.7 !important;
    margin-bottom: 12px !important;
    font-size: 1.05rem;
}

.service-page .timeline-duration {
    display: inline-block !important;
    padding: 6px 14px !important;
    background: rgba(102, 126, 234, 0.25) !important;
    border-radius: 8px !important;
    font-size: 0.9rem !important;
    color: rgba(255, 255, 255, 0.95) !important;
    font-weight: 600 !important;
    margin-top: 5px;
}

/* Service CTA buttons - show both phone and booking */
.service-page .service-cta-buttons {
    display: flex !important;
    gap: 20px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin: 50px 0;
}

.service-page .service-cta-buttons .cta-button-new {
    min-width: 200px;
}

.service-page .service-cta-buttons .btn-phone {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.service-page .service-cta-buttons .btn-phone:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.service-page .service-cta-buttons .btn-phone svg {
    width: 20px;
    height: 20px;
}

/* SEO Content Section */
.seo-content {
    padding: 60px 0;
    background: rgba(255, 255, 255, 0.02);
}

.seo-content .content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.seo-content .content-block {
    padding: 30px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
}

.seo-content .content-block h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #ffffff;
    line-height: 1.3;
}

.seo-content .content-block h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #ffffff;
    line-height: 1.3;
}

.seo-content .content-block p {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.8;
    margin-bottom: 15px;
    font-size: 1.05rem;
}

.seo-content .content-block ul,
.seo-content .content-block ol {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.8;
    padding-left: 25px;
    margin-bottom: 15px;
}

.seo-content .content-block li {
    margin-bottom: 10px;
    font-size: 1.05rem;
}

.seo-content .content-block strong {
    color: #ffffff;
    font-weight: 600;
}

/* Service mode - show SEO content */
.service-page .seo-content {
    display: block;
}

/* Landing mode - show SEO content */
.landing-page .seo-content {
    display: block;
}

/* Service-Only Additional Content */
.service-additional-content {
    padding: 60px 0;
    background: rgba(255, 255, 255, 0.01);
}

.service-content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.service-content-block {
    padding: 35px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.service-content-block:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.service-content-block h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: #ffffff;
    line-height: 1.3;
    font-weight: 700;
}

.service-content-block h3 {
    font-size: 1.6rem;
    margin-bottom: 18px;
    color: #ffffff;
    line-height: 1.3;
    font-weight: 600;
}

.service-content-block p {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.8;
    margin-bottom: 18px;
    font-size: 1.05rem;
}

.service-content-block ul {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.9;
    padding-left: 25px;
    margin-bottom: 15px;
    list-style-type: disc;
}

.service-content-block li {
    margin-bottom: 12px;
    font-size: 1.05rem;
}

.service-content-block strong {
    color: #ffffff;
    font-weight: 600;
}

/* Contact CTA Bar - Fixed CTA section below hero */
.contact-cta-bar {
    text-align: center;
    margin: 0;
}

/* External mode (default - for external visitors, more marketing) */
.contact-cta-bar.cta-external {
    padding: 40px 0;
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.contact-cta-bar.cta-external .contact-cta-text {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Internal mode (for internal visitors, more service-oriented, relaxed) */
.contact-cta-bar.cta-internal {
    padding: 22px 0;
    background: transparent;
    border: none;
}

.contact-cta-bar.cta-internal .contact-cta-text {
    font-size: 0.95rem;
    opacity: 0.7;
    margin-bottom: 6px;
}

.contact-cta-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 16px 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.contact-cta-text {
    margin: 0;
    font-size: 1rem;
    opacity: 0.85;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
}

.contact-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    align-items: center;
}

.contact-cta-actions .cta-button-new,
.contact-cta-actions .btn-phone {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: 999px;
    text-decoration: none;
    font-size: 0.95rem;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.contact-cta-actions .btn-phone {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.9);
}

.contact-cta-actions .btn-phone:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    color: #ffffff;
    transform: translateY(-1px);
}

.contact-cta-actions .btn-phone svg {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    flex-shrink: 0;
}

/* Mobile adjustments */
@media (max-width: 640px) {
    .contact-cta-bar {
        padding: 24px 0;
    }

    .contact-cta-container {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .contact-cta-text {
        padding: 0 12px;
        margin-bottom: 4px;
        font-size: 0.95rem;
    }

    .contact-cta-actions {
        width: 100%;
        flex-direction: column;
        gap: 8px;
    }

    .contact-cta-actions .cta-button-new,
    .contact-cta-actions .btn-phone {
        width: 100%;
        max-width: 100%;
        padding: 12px 20px;
    }
}

/* RTL Support */
html[dir="rtl"].service-page .service-breadcrumb {
    flex-direction: row-reverse;
}

html[dir="rtl"].service-page .service-nav {
    flex-direction: row-reverse;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .service-page .hero {
        padding: 80px 0 40px;
    }
    
    .service-page .hero-headline {
        font-size: 2rem;
    }
    
    .service-nav {
        padding: 40px 0 30px !important;
    }

    .service-nav-title {
        font-size: 1.6rem;
    }

    .service-nav-subtitle {
        font-size: 0.95rem;
        margin-bottom: 24px;
        padding: 0 12px;
    }

    .service-nav-link {
        min-width: 100%;
        max-width: 100%;
    }
    
    .service-page .process {
        margin: 40px 0 !important;
        padding: 30px 0 !important;
    }
    
    .service-page .process .section-title {
        font-size: 1.8rem !important;
        margin-bottom: 35px !important;
    }
    
    .service-page .timeline-item {
        flex-direction: column !important;
        gap: 15px !important;
        padding: 20px !important;
        text-align: center !important;
    }
    
    .service-page .timeline-step {
        width: 50px !important;
        height: 50px !important;
        font-size: 20px !important;
        margin: 0 auto !important;
    }
    
    .service-page .timeline-content {
        text-align: center !important;
    }
    
    .service-page .timeline-content h3 {
        font-size: 1.2rem !important;
    }
    
    .service-page .timeline-content p {
        font-size: 1rem !important;
    }
}

