/* =============================================
   marketing-materials.css - Custom styles for Marketing Materials page
   Author: Jofawebdev
   Description: Unique design with orange/teal palette, tabbed services,
                equal-height portfolio cards, and process icons.
   Last updated: Fixed mobile spacing for process cards and package badge overlap.
   ============================================= */

/* ---------- Global Styles ---------- */
body.marketing-page {
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    overflow-x: hidden;
    padding-top: 76px; /* fixed navbar offset */
}

/* ---------- Utility Classes ---------- */
.text-gradient-orange {
    background: linear-gradient(135deg, #ff6b4a 0%, #ff8c6b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.max-width-800 {
    max-width: 800px;
}

/* Background color utilities (some extended for portfolio placeholders) */
.bg-orange {
    background-color: #ff6b4a !important;
}
.bg-teal {
    background-color: #20c997 !important;
}
.bg-green {
    background-color: #28a745 !important;
}
.bg-facebook {
    background-color: #3b5998 !important;
}
.bg-orange-light {
    background-color: #fd7e14 !important;
}
.bg-cyan {
    background-color: #17a2b8 !important;
}
/* bg-danger is already provided by Bootstrap for #dc3545, we use it directly */

/* ---------- Button Overrides ---------- */
/* Make all .btn-primary buttons use the orange brand */
.btn-primary {
    background: #ff6b4a;
    border-color: #ff6b4a;
}
.btn-primary:hover {
    background: #e05a3e;
    border-color: #e05a3e;
}
.btn-outline-primary {
    color: #ff6b4a;
    border-color: #ff6b4a;
}
.btn-outline-primary:hover {
    background: #ff6b4a;
    color: #fff;
}

/* ---------- Hero Section ---------- */
.marketing-hero {
    position: relative;
    background: linear-gradient(135deg, #2c3e50 0%, #4a5568 100%);
    color: white;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 20% 30%, rgba(255,107,74,0.15) 0%, transparent 30%),
                      radial-gradient(circle at 80% 70%, rgba(32,201,151,0.15) 0%, transparent 30%);
    pointer-events: none;
}

.marketing-hero h1 {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    line-height: 1.2;
}

.marketing-badge {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    border-radius: 50px;
    font-weight: 500;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.2);
}

/* ---------- Tabbed Services ---------- */
.nav-pills .nav-link {
    border-radius: 50px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    color: #333;
    background: #f1f3f9;
    margin: 0 0.25rem;
    transition: all 0.3s;
}

.nav-pills .nav-link.active {
    background: #ff6b4a;
    color: white;
}

/* Service Cards */
.service-card-print,
.service-card-digital,
.service-card-promo {
    background: white;
    padding: 2rem 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    height: 100%;
    transition: transform 0.3s;
    border: 1px solid #f0f0f0;
}

.service-card-print:hover,
.service-card-digital:hover,
.service-card-promo:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(255,107,74,0.15);
}

/* Icon colors for each tab */
.icon-print {
    color: #ff6b4a; /* orange */
}

.icon-digital {
    color: #20c997; /* teal */
}

.icon-promo {
    color: #fd7e14; /* warm orange */
}

.service-card-digital {
    text-align: center;
}

.service-card-promo {
    text-align: center;
    background: linear-gradient(135deg, #f8f9fa, #fff);
}

/* ---------- Portfolio Cards (Equal Height) ---------- */
.portfolio-grid {
    margin-top: 1rem;
}

.portfolio-card {
    border: none;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s;
    background: white;
}

.portfolio-card:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 30px rgba(255,107,74,0.2);
}

/* Card image placeholder styling */
.portfolio-card .card-img-top {
    height: 200px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    font-weight: bold;
    text-transform: uppercase;
    background-color: #f0f0f0; /* fallback */
    /* Background color is set by utility classes like .bg-orange */
}

.portfolio-card .card-body {
    padding: 1.25rem;
}

.filter-btn {
    background: none;
    border: 1px solid #dee2e6;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #495057;
    cursor: pointer;
    transition: all 0.3s;
    margin: 0 0.25rem;
}

.filter-btn:hover,
.filter-btn.active {
    background: #ff6b4a;
    color: white;
    border-color: #ff6b4a;
}

/* ---------- Process Cards ---------- */
.process-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.process-card {
    text-align: center;
    padding: 2rem 1rem;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    height: 100%;
    transition: all 0.3s;
}

.process-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(255,107,74,0.15);
}

.process-icon-circle {
    width: 60px;
    height: 60px;
    background: #ff6b4a;
    color: white;
    font-size: 1.8rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

/* ---------- Fix: Process Cards Spacing on Mobile ---------- */
@media (max-width: 767px) {
    .process-row .col-md-3 {
        margin-bottom: 1.5rem;
    }
    .process-row .col-md-3:last-child {
        margin-bottom: 0;
    }
}

/* ---------- Package Cards ---------- */
.package-card {
    background: white;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s;
    position: relative;
    height: 100%;
}

.package-card.popular {
    transform: scale(1.05);
    z-index: 2;
    box-shadow: 0 20px 40px rgba(255,107,74,0.3);
}

.popular-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.25rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 3;
}

/* ---------- Fix: Prevent Most Popular badge from overlapping title ---------- */
.package-card.popular .package-header {
    padding-right: 5rem; /* make room for absolute positioned badge */
}

@media (max-width: 768px) {
    .package-card.popular .package-header {
        padding-right: 4rem;
    }
    .popular-badge {
        font-size: 0.7rem;
        padding: 0.2rem 0.8rem;
        top: 0.75rem;
        right: 0.75rem;
    }
}

@media (max-width: 576px) {
    .package-card.popular .package-header {
        padding-right: 3.5rem;
    }
    .popular-badge {
        font-size: 0.65rem;
        padding: 0.15rem 0.6rem;
    }
}

.package-price {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
}

.price-currency {
    font-size: 1rem;
    font-weight: 400;
    margin-right: 0.25rem;
    vertical-align: super;
}

/* ---------- Accordion Custom ---------- */
.accordion-item {
    border: none;
    margin-bottom: 1rem;
    border-radius: 1rem !important;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.accordion-button {
    font-weight: 600;
    color: #333;
    background: white;
    padding: 1.25rem 1.5rem;
}

.accordion-button:not(.collapsed) {
    background: #ff6b4a;
    color: white;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: rgba(255,107,74,0.5);
}

.accordion-body {
    padding: 1.5rem;
    background: white;
}

/* ---------- Final CTA Gradient ---------- */
.cta-gradient {
    background: linear-gradient(135deg, #ff6b4a 0%, #ff8c6b 100%);
}

/* ---------- Footer ---------- */
footer .text-primary {
    color: #ff6b4a !important;
}

footer a:hover {
    color: #ff6b4a !important;
    transition: color 0.3s;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .package-card.popular {
        transform: scale(1);
    }
    .nav-pills .nav-link {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    .filter-btn {
        padding: 0.4rem 1rem;
        margin: 0.2rem;
    }
}

/* ---------- Scroll to Top ---------- */
#scrollToTop {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ff6b4a;
    border: none;
    transition: all 0.3s;
}

#scrollToTop:hover {
    background: #e05a3e;
    transform: translateY(-3px);
}