/* 
 * Profitable Business Zone - Custom Styles
 * Theme: Modern Business (Cyan/Amber/Violet)
 * Font: Inter (Body) + Outfit (Headings)
 */

:root {
    /* New Color Scheme - Vibrant & Professional */
    --primary-color: #0891b2;    /* Cyan 600 - Trust, Clarity, Growth */
    --secondary-color: #f59e0b;  /* Amber 500 - Energy, Success */
    --accent-color: #8b5cf6;     /* Violet 500 - Premium, Creative */
    
    /* Neutral Colors */
    --dark-text: #1f2937;        /* Gray 800 */
    --light-text: #f9fafb;       /* Gray 50 */
    --bg-light: #ffffff;         /* White */
    --bg-off-white: #f3f4f6;     /* Gray 100 */
    --border-light: #e5e7eb;     /* Gray 200 */
    
    /* Shadows */
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 5px 15px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* Global Reset & Typography */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--dark-text);
    background-color: var(--bg-off-white);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: var(--dark-text);
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--accent-color);
}

img {
    max-width: 100%;
    height: auto;
}

/* -------------------------------------------------------------------------- */
/*                                 COMPONENTS                                 */
/* -------------------------------------------------------------------------- */

/* Buttons */
.btn-custom-primary {
    background-color: var(--secondary-color);
    color: white !important; /* Ensure readable text on amber */
    font-weight: 700;
    padding: 12px 35px;
    border-radius: 50px;
    border: none;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
    box-shadow: 0 4px 6px rgba(245, 158, 11, 0.2);
}

.btn-custom-primary:hover {
    background-color: #d97706; /* Darker amber */
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(245, 158, 11, 0.3);
}

.btn-custom-outline {
    background-color: transparent;
    color: var(--primary-color);
    font-weight: 600;
    padding: 10px 30px;
    border-radius: 50px;
    border: 2px solid var(--primary-color);
    transition: all 0.3s ease;
}

.btn-custom-outline:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(8, 145, 178, 0.2);
}

/* Badges */
.badge-primary {
    background-color: rgba(8, 145, 178, 0.1);
    color: var(--primary-color);
    font-weight: 600;
    padding: 0.5em 1em;
    border-radius: 20px;
}

/* Section Formatting */
section {
    position: relative;
    overflow: hidden;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header .eyebrow {
    color: var(--accent-color);
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 0.5rem;
    display: block;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.section-header .subtitle {
    color: #6b7280;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Cards */
.card-custom {
    background: white;
    border: none;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    height: 100%;
    overflow: hidden;
}

.card-custom:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

/* -------------------------------------------------------------------------- */
/*                                   HEADER                                   */
/* -------------------------------------------------------------------------- */

.navbar {
    padding: 1rem 0;
    box-shadow: var(--shadow-sm);
    background: white;
    transition: all 0.3s ease;
}

.navbar-brand {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--primary-color) !important;
}

.nav-link {
    font-weight: 500;
    color: var(--dark-text) !important;
    padding: 0.5rem 1rem !important;
    transition: color 0.3s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color) !important;
}

.dropdown-menu {
    border: none;
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
    padding: 0.5rem;
    margin-top: 10px;
}

.dropdown-item {
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background-color: var(--primary-color);
    color: white;
}

.navbar-toggler {
    border: none;
    padding: 0;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* -------------------------------------------------------------------------- */
/*                                   FOOTER                                   */
/* -------------------------------------------------------------------------- */

footer {
    background-color: var(--primary-color);
    color: white;
    padding: 60px 0 20px;
}

footer h5 {
    color: var(--secondary-color);
    font-weight: 700;
    margin-bottom: 1.5rem;
}

footer p {
    opacity: 0.9;
}

footer ul {
    list-style: none;
    padding: 0;
}

footer ul li {
    margin-bottom: 0.75rem;
}

footer ul li a {
    color: white;
    opacity: 0.8;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

footer ul li a:hover {
    opacity: 1;
    color: var(--secondary-color);
    transform: translateX(5px);
}

.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 3rem;
    padding-top: 1.5rem;
    opacity: 0.8;
    font-size: 0.9rem;
}

/* -------------------------------------------------------------------------- */
/*                                  HOMEPAGE                                  */
/* -------------------------------------------------------------------------- */

/* Hero Section */
.hero-section {
    position: relative;
    /* Gradient using RGBA of Primary Color */
    background: linear-gradient(rgba(8, 145, 178, 0.85), rgba(8, 145, 178, 0.85)), url('../images/hero-bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 120px 0;
    color: white;
    text-align: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: white;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* About Section */
.about-section {
    padding: 80px 0;
    background: white;
}

.about-image-wrapper {
    position: relative;
    margin-bottom: 2rem;
}

.about-image-wrapper img {
    position: relative;
    z-index: 2;
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
}

.about-image-wrapper::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    width: 100%;
    height: 100%;
    border: 4px solid var(--secondary-color);
    border-radius: 15px;
    z-index: 1;
}

.about-content .eyebrow {
    color: var(--primary-color);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    display: block;
}

.about-content h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.about-content .lead {
    font-size: 1.125rem;
    color: #4b5563;
    margin-bottom: 1.5rem;
}

.about-list {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
}

.about-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.about-list li i {
    position: absolute;
    left: 0;
    top: 3px;
    color: var(--secondary-color);
    font-size: 1.25rem;
}

/* Counter Section */
.counter-section {
    background-color: var(--primary-color);
    padding: 60px 0;
    color: white;
}

.counter-box {
    text-align: center;
    padding: 20px;
    transition: transform 0.3s ease;
}

.counter-box:hover {
    transform: translateY(-5px);
}

.counter-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--secondary-color);
    display: block;
    margin-bottom: 0.5rem;
}

.counter-label {
    font-size: 1.1rem;
    font-weight: 500;
    opacity: 0.9;
}

/* Features Section */
.features-section {
    background-color: var(--bg-off-white);
    padding: 80px 0;
}

.feature-card {
    background: white;
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    height: 100%;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.feature-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: rgba(8, 145, 178, 0.1); /* Primary with opacity */
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: all 0.3s ease;
}

.feature-icon i {
    font-size: 2rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    background-color: var(--primary-color);
}

.feature-card:hover .feature-icon i {
    color: white;
}

.feature-card h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.feature-card p {
    color: #6b7280;
    margin-bottom: 0;
}

/* Blog Section */
.blog-section {
    padding: 80px 0;
    background-color: #f9fafb;
}

.blog-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.blog-img-top {
    height: 250px;
    width: 100%;
    object-fit: cover;
}

.blog-body {
    padding: 25px;
}

.blog-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    display: block;
    color: var(--dark-text);
}

.blog-card:hover .blog-title {
    color: var(--primary-color);
}

.blog-text {
    color: #6b7280;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.read-more {
    color: var(--primary-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.read-more i {
    transition: transform 0.3s ease;
}

.blog-card:hover .read-more {
    color: var(--accent-color);
}

.blog-card:hover .read-more i {
    transform: translateX(5px);
}

/* CTA Section */
.cta-section {
    background-color: black;
    color: white;
    padding: 80px 0;
    text-align: center;
}

.cta-content h2 {
    color: white;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.cta-content p {
    font-size: 1.25rem;
    opacity: 0.85;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* -------------------------------------------------------------------------- */
/*                                 OTHER PAGES                                */
/* -------------------------------------------------------------------------- */

/* Page Hero (About, Contact) */
.page-hero {
    background-color: var(--primary-color);
    padding: 80px 0;
    color: white;
    text-align: center;
}

.page-hero h1 {
    color: white;
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.page-hero .lead {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
}

/* Contact Form */
.contact-form-container {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
}

.form-label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dark-text);
}

.form-control {
    padding: 12px 15px;
    border-radius: 10px;
    border: 2px solid var(--border-light);
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(8, 145, 178, 0.1);
}

.email-card {
    background-color: var(--bg-off-white);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    margin-top: 2rem;
}

.email-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: block;
}

.email-link {
    color: var(--accent-color);
    font-weight: 600;
    font-size: 1.1rem;
}

.email-link:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Blog Post Detail (Franchise.php) */
.blog-post-header {
    height: 400px;
    position: relative;
    background-size: cover;
    background-position: center;
}

.blog-post-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
}

.blog-content-wrapper {
    margin-top: -100px;
    position: relative;
    z-index: 10;
}

.blog-content-card {
    background: white;
    padding: 50px;
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
}

.blog-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin: 1.5rem 0;
    color: #6b7280;
    font-size: 0.9rem;
    font-weight: 500;
}

.blog-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.blog-meta i {
    color: var(--primary-color);
}

.article-body h2 {
    font-size: 2rem;
    font-weight: 800;
    margin: 2.5rem 0 1.5rem;
    color: var(--dark-text);
}

.article-body h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 2rem 0 1rem;
}

.article-body p {
    font-size: 1.1rem;
    color: #4b5563;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.article-body ul, .article-body ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.article-body li {
    margin-bottom: 0.75rem;
    color: #4b5563;
}

.custom-alert-box {
    background-color: rgba(8, 145, 178, 0.05); /* Very light primary */
    border-left: 4px solid var(--primary-color);
    padding: 1.5rem;
    border-radius: 0 10px 10px 0;
    margin: 2rem 0;
}

.blog-cta-box {
    margin-top: 3rem;
    padding: 2.5rem;
    background-color: var(--bg-off-white);
    border-radius: 10px;
    text-align: center;
}

/* -------------------------------------------------------------------------- */
/*                                RESPONSIVENESS                              */
/* -------------------------------------------------------------------------- */

@media (max-width: 991.98px) {
    .navbar-collapse {
        background: white;
        padding: 1rem;
        border-radius: 0 0 15px 15px;
        box-shadow: var(--shadow-lg);
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .about-image-wrapper {
        margin-bottom: 3rem;
    }
    
    .counter-section .col-md-3 {
        margin-bottom: 2rem;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 80px 0;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .blog-content-card {
        padding: 30px;
    }
    
    .blog-content-wrapper {
        margin-top: -50px;
    }
    
    .blog-post-header {
        height: 300px;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
}

/* Utility Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.8s ease forwards;
}
