/* 
* Theme Name: Franchise Insights India
* Description: Custom stylesheet for Franchise Insights India
* Version: 1.0
* Author: Antigravity
*/

/* =========================================
   1. CSS Variables & Reset
   ========================================= */
:root {
    /* Color Palette - Blue & Orange Theme */
    --primary-color: #1d4ed8;       /* Strong Blue */
    --primary-rgb: 29, 78, 216;     /* RGB values for rgba usage */
    --secondary-color: #ea580c;     /* Burnt Orange */
    --secondary-rgb: 234, 88, 12;
    --accent-color: #059669;        /* Emerald Green */
    
    /* Neutral Colors */
    --dark-text: #1f2937;           /* Slate 800 */
    --gray-text: #6b7280;           /* Slate 500 */
    --light-text: #f9fafb;          /* Slate 50 */
    --bg-light: #ffffff;
    --bg-off-white: #f3f4f6;        /* Slate 100 */
    --bg-dark: #111827;             /* Slate 900 */
    --border-light: #e5e7eb;        /* Slate 200 */
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 5px 15px rgba(0, 0, 0, 0.05); /* Medium described in prompt */
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.05); /* Prominent described in prompt */
    --shadow-hover: 0 15px 30px rgba(0, 0, 0, 0.1); /* Hover described in prompt */
    --navbar-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    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: var(--font-heading);
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 1rem;
}

h1 { font-weight: 800; }
h2 { font-weight: 800; }

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* =========================================
   2. Typography Util
   ========================================= */
.display-3 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
}

.display-5 {
    font-size: 2.5rem;
    font-weight: 800;
}

.lead {
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--gray-text);
}

.text-primary { color: var(--primary-color) !important; }
.text-secondary { color: var(--secondary-color) !important; }
.text-accent { color: var(--accent-color) !important; }

.fw-bold { font-weight: 700 !important; }
.fw-extrabold { font-weight: 800 !important; }

/* Eyebrow Text */
.eyebrow {
    color: var(--primary-color);
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 0.5rem;
    display: block;
}

/* Section Header Styles */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-header p {
    color: var(--gray-text);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

/* =========================================
   3. Buttons & Components
   ========================================= */
/* Primary Button */
.btn-custom-primary {
    background-color: var(--secondary-color);
    color: #fff; /* Ensuring good contrast on Orange */
    font-weight: 700;
    padding: 12px 35px;
    border-radius: 50px;
    border: none;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
    text-align: center;
}

.btn-custom-primary:hover {
    background-color: #c2410c; /* Darker Orange */
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(234, 88, 12, 0.3);
}

/* Outline Button */
.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;
    display: inline-block;
    text-decoration: none;
}

.btn-custom-outline:hover {
    background-color: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(29, 78, 216, 0.2);
}

/* Badges */
.badge-primary {
    background-color: rgba(var(--primary-rgb), 0.1);
    color: var(--primary-color);
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.8rem;
    display: inline-block;
}

/* Custom Alert Box */
.alert-custom {
    background-color: rgba(var(--primary-rgb), 0.05);
    border-left: 4px solid var(--primary-color);
    padding: 1.5rem;
    border-radius: 10px;
    margin: 2rem 0;
    color: var(--dark-text);
}

.alert-custom h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

/* =========================================
   4. Header & Navigation
   ========================================= */
.navbar {
    background-color: #fff;
    box-shadow: var(--navbar-shadow);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar-brand {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--primary-color) !important;
}

.navbar-nav .nav-link {
    font-family: var(--font-body);
    font-weight: 500;
    color: var(--dark-text);
    padding: 0.5rem 1rem !important;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--secondary-color);
}

.dropdown-menu {
    border: none;
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
    padding: 0.5rem 0;
    margin-top: 1rem;
    animation: fadeInUp 0.3s ease;
}

.dropdown-item {
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    color: var(--dark-text);
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background-color: var(--primary-color);
    color: #fff;
    padding-left: 1.75rem; /* Slight shift */
}

.navbar-toggler {
    border: none;
    padding: 0;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* =========================================
   5. Hero Section
   ========================================= */
#hero {
    position: relative;
    padding: 120px 0;
    background: linear-gradient(rgba(29, 78, 216, 0.85), rgba(29, 78, 216, 0.85)), url('../images/hero-bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Parallax */
    color: #fff;
    text-align: center;
}

#hero h1 {
    color: #fff;
    margin-bottom: 1.5rem;
}

#hero .lead {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
    font-size: 1.25rem;
}

/* =========================================
   6. About Section
   ========================================= */
#about {
    padding: 80px 0;
    background-color: #fff;
}

.about-image-wrapper {
    position: relative;
    padding: 20px 0 0 20px; /* Space for the border effect */
}

.about-image-wrapper img {
    position: relative;
    z-index: 2;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    width: 100%;
}

.about-image-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: calc(100% - 20px);
    height: calc(100% - 20px);
    border: 4px solid var(--secondary-color);
    border-radius: 15px;
    z-index: 1;
    transform: translate(0, 0); /* Explicitly set */
}

.about-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.about-content .lead {
    margin-bottom: 1.5rem;
}

.about-list {
    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: 4px;
    color: var(--secondary-color);
    font-size: 1.25rem;
}

/* =========================================
   7. Counter Section
   ========================================= */
#counters {
    background-color: var(--primary-color);
    padding: 60px 0;
    color: #fff;
}

.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); /* Per prompt description */
    margin-bottom: 0.5rem;
    display: block;
    line-height: 1;
}

.counter-label {
    font-size: 1.1rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

/* =========================================
   8. Features / Why Choose Us
   ========================================= */
#features {
    padding: 80px 0;
    background-color: var(--bg-off-white);
}

.feature-box {
    background: #fff;
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    height: 100%;
    text-align: center;
}

.feature-box:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.feature-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: rgba(var(--primary-rgb), 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: all 0.3s ease;
    font-size: 2rem;
    color: var(--primary-color);
}

.feature-box:hover .feature-icon {
    background-color: var(--primary-color);
    color: #fff;
}

.feature-box h4 {
    font-weight: 700;
    margin-bottom: 1rem;
}

.feature-box p {
    color: var(--gray-text);
    margin-bottom: 0;
}

/* =========================================
   9. Blog Section (Homepage)
   ========================================= */
#blog {
    padding: 80px 0;
    background-color: #fff; /* Slight variation from features */
}

.blog-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden; /* For image curve */
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.blog-img-wrapper {
    height: 250px;
    overflow: hidden;
    position: relative;
}

.blog-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-img-wrapper img {
    transform: scale(1.05);
}

.blog-body {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-category {
    margin-bottom: 1rem;
}

.blog-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.blog-title a {
    color: var(--dark-text);
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-card:hover .blog-title a {
    color: var(--primary-color);
}

.blog-text {
    color: var(--gray-text);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.read-more {
    color: var(--primary-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    transition: color 0.3s ease;
}

.read-more i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.read-more:hover {
    color: var(--secondary-color);
}

.read-more:hover i {
    transform: translateX(5px);
}

/* =========================================
   10. Call To Action Section
   ========================================= */
#cta {
    background-color: var(--bg-dark); /* Black as requested */
    padding: 80px 0;
    text-align: center;
    color: #fff;
}

#cta h2 {
    color: #fff;
    margin-bottom: 1.5rem;
}

#cta .lead {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2.5rem;
}

/* =========================================
   11. Footer
   ========================================= */
footer {
    background-color: var(--primary-color);
    color: #fff;
    padding: 60px 0 0;
}

.footer-heading {
    color: var(--secondary-color); /* Secondary color for headings */
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.footer-desc {
    opacity: 0.9;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--secondary-color);
    padding-left: 5px; /* Slight shift */
    opacity: 1;
}

.footer-bottom {
    margin-top: 3rem;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* =========================================
   12. Inner Pages: About
   ========================================= */
.page-hero {
    background-color: var(--primary-color);
    color: #fff;
    padding: 80px 0;
    text-align: center;
}

.page-hero h1 {
    color: #fff;
    font-size: 3rem;
    margin-bottom: 1rem;
}

.page-hero .lead {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
}

.info-card {
    background: var(--bg-off-white);
    padding: 40px;
    border-radius: 15px;
    height: 100%;
}

.info-card h3 {
    margin-bottom: 1rem;
    color: var(--dark-text);
}

.card-mission {
    border-left: 5px solid var(--primary-color);
}

.card-trust {
    border-left: 5px solid var(--secondary-color);
}

/* =========================================
   13. Inner Pages: Contact
   ========================================= */
.contact-form-container {
    background: #fff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
}

.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(var(--primary-rgb), 0.1);
}

.form-label {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.email-card {
    background: var(--bg-off-white);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    margin-top: 2rem;
}

.email-card-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: inline-block;
}

.email-link {
    color: var(--secondary-color); /* using secondary as accent equivalent */
    font-weight: 600;
    font-size: 1.1rem;
}

.email-link:hover {
    color: var(--primary-color);
}

/* =========================================
   14. Inner Pages: Blog Post (Franchise)
   ========================================= */
.blog-post-header {
    position: relative;
    height: 400px;
    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;
    padding-bottom: 60px;
}

.blog-content-card {
    background: #fff;
    padding: 50px;
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
}

.meta-info {
    font-size: 0.9rem;
    color: var(--gray-text);
    margin-bottom: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.meta-info span {
    display: flex;
    align-items: center;
}

.meta-info i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

.article-body {
    color: var(--dark-text);
    font-size: 1.1rem;
    line-height: 1.8;
}

.article-body h2 {
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
}

.article-body h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.article-body ul, 
.article-body ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.article-body li {
    margin-bottom: 0.75rem;
}

.article-body a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
}

.article-body a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.author-bio {
    background: var(--bg-off-white);
    padding: 2rem;
    border-radius: 10px;
    margin-top: 3rem;
    text-align: center;
}

/* =========================================
   15. Responsive Design
   ========================================= */
@media (max-width: 991.98px) { /* Tablet and below */
    #hero {
        padding: 100px 0;
    }
    
    .display-3 {
        font-size: 2.5rem;
    }
    
    .about-image-wrapper {
        margin-bottom: 3rem;
    }
    
    .blog-content-card {
        padding: 30px;
    }

    .navbar-nav {
        padding: 1rem 0;
    }
}

@media (max-width: 767.98px) { /* Mobile */
    #hero {
        padding: 80px 0;
    }
    
    .display-3 {
        font-size: 2rem;
    }
    
    #hero .lead {
        font-size: 1.1rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .about-image-wrapper::after {
        top: 15px; 
        left: 15px;
    }
    
    .blog-post-header {
        height: 300px;
    }
    
    .blog-content-wrapper {
        margin-top: -50px;
    }
    
    .blog-content-card {
        padding: 20px;
    }
    
    .meta-info {
        gap: 1rem;
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 20px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.5s ease-out;
}
