/* ==========================================
   Service All CRM - Marketing Site Styles
   ========================================== */

/* === BASE STYLES === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-fluid {
    width: 100%;
}

/* === HEADER / NAVIGATION === */
header {
    position: relative;
}

.header-wrapper {
    background: linear-gradient(90deg, #161616 50%, rgba(0, 0, 0, 0) 70%);
    padding: 20px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: background 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
}

.header-wrapper.scrolled {
    background: #161616 !important;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.logo h1 {
    color: #ff6b35;
    font-size: 28px;
    font-weight: 700;
    margin: 0;
}

.nav-wrapper {
    display: flex;
    align-items: center;
    gap: 40px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0;
    padding: 0;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #ff6b35;
}

.header-cta-btn {
    background: #ff6b35;
    color: #fff;
    padding: 12px 28px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.header-cta-btn:hover {
    background: #e55a28;
    transform: translateY(-2px);
}

/* Mobile Menu */
.mobile-menu-trigger {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
}

.phone-icon {
    display: none;
}

/* === HERO SECTION === */
.hero-section {
    position: relative;
    min-height: 600px;
    background: url('/images/marketing/hero-bg.jpg') center center/cover no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 80px; /* Add space for fixed header */
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, #161616 50%, rgba(0, 0, 0, 0.3) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 80px 40px;
    color: #fff;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-text-wrapper {
    max-width: 600px;
}

.hero-content h2 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.95;
}

.hero-cta-btn {
    display: inline-block;
    background: #ff6b35;
    color: #fff;
    padding: 16px 40px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
    transition: all 0.3s ease;
}

.hero-cta-btn:hover {
    background: #e55a28;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

/* === ABOUT SECTION === */
.about-section {
    padding: 80px 0;
    background: #fff;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.about-image {
    width: 100%;
    height: 450px;
    border-radius: 10px;
    object-fit: cover;
    object-position: center 20%; /* Crops from top, focuses on center-bottom */
}

.about-text h2 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #161616;
}

.about-text p {
    font-size: 16px;
    line-height: 1.8;
    color: #666;
    margin-bottom: 25px;
}

.about-cta-btn {
    display: inline-block;
    background: #007bff;
    color: #fff;
    padding: 12px 32px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.about-cta-btn:hover {
    background: #0056b3;
    transform: translateY(-2px);
}

/* === SERVICES SECTION === */
.services-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.services-header {
    text-align: center;
    margin-bottom: 60px;
}

.services-header h2 {
    font-size: 42px;
    font-weight: 700;
    color: #161616;
}

.service-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto 60px;
    padding: 0 40px;
}

.service-item:nth-child(even) .service-image {
    order: 2;
}

.service-image {
    width: 100%;
    height: 400px;
    border-radius: 10px;
    object-fit: cover;
}

.service-text h3 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #161616;
}

.service-text p {
    font-size: 16px;
    line-height: 1.8;
    color: #666;
}

/* === CTA SECTION === */
.cta-section {
    background: #181818;
    padding: 80px 40px;
    text-align: center;
    color: #fff;
}

.cta-section h2 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 20px;
}

.cta-section p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.cta-btn {
    display: inline-block;
    background: #ff6b35;
    color: #fff;
    padding: 16px 40px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
    transition: all 0.3s ease;
}

.cta-btn:hover {
    background: #e55a28;
    transform: translateY(-2px);
}

/* === PRICING SECTION === */
.pricing-section {
    padding: 80px 0 120px;
    background: #fff;
}

.pricing-header {
    text-align: center;
    margin-bottom: 40px;
}

.pricing-header h1 {
    font-size: 42px;
    margin-bottom: 15px;
    font-weight: 700;
    color: #1a1a1a;
}

.pricing-header p {
    font-size: 16px;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Pricing Toggle */
.pricing-toggle-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin: 30px 0;
}

.pricing-toggle-text {
    font-size: 18px;
    font-weight: 600;
}

.toggle-base {
    width: 60px;
    height: 30px;
    background: #ccc;
    border-radius: 30px;
    position: relative;
    cursor: pointer;
    transition: background 0.3s ease;
}

.toggle-base.on {
    background: #007bff;
}

.toggle-bubble {
    width: 24px;
    height: 24px;
    background: white;
    border-radius: 50%;
    position: absolute;
    top: 3px;
    left: 3px;
    transition: transform 0.3s ease;
}

.toggle-base.on .toggle-bubble {
    transform: translateX(30px);
}

/* Pricing Cards */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.pricing-card {
    background: white;
    border-radius: 10px;
    padding: 30px 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.pricing-card.most-popular {
    border: 2px solid #007bff;
    background: linear-gradient(135deg, #ffffff 0%, #f0f7ff 100%);
}

.most-popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: #007bff;
    color: white;
    padding: 5px 20px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

.price-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #1a1a1a;
}

.price-display {
    display: flex;
    align-items: baseline;
    gap: 5px;
    margin-bottom: 10px;
}

.price-text {
    font-size: 36px;
    font-weight: 700;
    color: #1a1a1a;
}

.price-frequency {
    font-size: 16px;
    color: #666;
}

.price-users {
    font-size: 14px;
    color: #666;
    margin-bottom: 25px;
}

.pricing-cta-btn {
    width: 100%;
    padding: 14px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pricing-cta-btn:hover {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.hidden {
    display: none !important;
}

/* === FOOTER === */
footer {
    background: #1a1a1a;
    padding: 40px 0;
    color: #fff;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
    margin: 0;
    padding: 0;
}

.footer-nav ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-nav ul li a:hover {
    color: #ff6b35;
}

.footer-logo h1 {
    color: #ff6b35;
    font-size: 24px;
    margin: 0;
}

.footer-legal {
    text-align: right;
}

.footer-legal a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: #ff6b35;
}

/* === MODAL STYLES === */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    overflow-y: auto;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: #fff;
    border-radius: 10px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    margin: 20px auto;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    background: #161616;
    color: #fff;
    padding: 25px 30px;
    border-radius: 10px 10px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    font-size: 28px;
    color: #fff;
}

.modal-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 32px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.modal-body {
    padding: 40px 30px;
    color: #333;
    line-height: 1.8;
}

.modal-body h3 {
    color: #161616;
    font-size: 22px;
    margin-top: 30px;
    margin-bottom: 15px;
}

.modal-body h3:first-child {
    margin-top: 0;
}

.modal-body p {
    margin-bottom: 15px;
}

.modal-body ul, .modal-body ol {
    margin-bottom: 20px;
    padding-left: 30px;
}

.modal-body li {
    margin-bottom: 10px;
}

.modal-body strong {
    color: #161616;
    font-weight: 600;
}

/* Modal Responsive */
@media (max-width: 768px) {
    .modal-content {
        margin: 0;
        max-height: 100vh;
        border-radius: 0;
    }
    
    .modal-header {
        border-radius: 0;
        padding: 20px;
    }
    
    .modal-body {
        padding: 30px 20px;
    }
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 1200px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 975px) {
    .header-content {
        padding: 0 20px;
    }
    
    nav ul {
        gap: 20px;
    }
    
    .about-content,
    .service-item {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .service-item:nth-child(even) .service-image {
        order: 0;
    }
}

@media (max-width: 768px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
    
    .hero-content h2 {
        font-size: 36px;
    }
    
    .about-text h2,
    .services-header h2,
    .cta-section h2 {
        font-size: 32px;
    }
    
    .service-text h3 {
        font-size: 26px;
    }
}

@media (max-width: 575px) {
    .nav-wrapper nav {
        display: none;
    }
    
    .mobile-menu-trigger {
        display: block;
    }
    
    .phone-icon {
        display: block;
        color: #fff;
        font-size: 24px;
        text-decoration: none;
    }
    
    .header-cta-btn {
        display: none;
    }
    
    .hero-content {
        padding: 60px 20px;
    }
    
    .hero-content h2 {
        font-size: 28px;
    }
    
    .hero-content p {
        font-size: 16px;
    }
    
    .about-content,
    .service-item {
        padding: 0 20px;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        padding: 0 20px;
    }
    
    .footer-nav ul {
        flex-direction: column;
        gap: 15px;
    }
    
    .footer-legal {
        text-align: center;
    }
}

