/* 
* Theme Name: Franchise Hub Business Theme
* Version: 2.0.0
* Description: Custom theme for franchise review website
* Author: Antigravity
* License: MIT
*/

/* =========================================
   TABLE OF CONTENTS
   =========================================
   1. Variables & Root
   2. Reset & Global Styles
   3. Typography
   4. Buttons
   5. Navbar & Header
   6. Hero Section
   7. About Section
   8. Counter Section
   9. Features Section
   10. Blog/News Section
   11. Contact Section
   12. Footer
   13. Utilities & Helpers
   14. Animations
   15. Responsive Design
   ========================================= */

/* =========================================
   1. VARIABLES & ROOT
   ========================================= */
:root {
    /* Color Palette - Vibrant Emerald & Modern Gold */
    --primary-color: #059669;
    /* Emerald 600 - Growth/Success */
    --primary-dark: #047857;
    /* Emerald 700 */
    --primary-light: #d1fae5;
    /* Emerald 100 */
    --secondary-color: #d97706;
    /* Amber 600 - Value/Opportunity */
    --secondary-dark: #b45309;
    /* Amber 700 */
    --accent-color: #2563eb;
    /* Royal Blue - Trust */

    /* Typography Colors */
    --dark-text: #1f2937;
    /* Gray 800 */
    --body-text: #4b5563;
    /* Gray 600 */
    --light-text: #f9fafb;
    /* Gray 50 */
    --muted-text: #6b7280;
    /* Gray 500 */

    /* Backgrounds */
    --bg-light: #ffffff;
    --bg-off-white: #f3f4f6;
    /* Gray 100 */
    --bg-dark: #111827;
    /* Gray 900 */

    /* Borders & lines */
    --border-light: #e5e7eb;
    /* Gray 200 */

    /* Spacing */
    --section-padding: 80px 0;
    --section-padding-mobile: 60px 0;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    /* Transitions */
    --transition-base: all 0.3s ease;
    --transition-smooth: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* =========================================
   2. RESET & GLOBAL STYLES
   ========================================= */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--body-text);
    background-color: var(--bg-off-white);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition-base);
}

a:hover {
    color: var(--primary-dark);
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* =========================================
   3. TYPOGRAPHY
   ========================================= */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', sans-serif;
    color: var(--dark-text);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
    font-weight: 800;
}

h2 {
    font-size: 2.5rem;
    font-weight: 800;
}

h3 {
    font-size: 2rem;
}

h4 {
    font-size: 1.5rem;
}

h5 {
    font-size: 1.25rem;
}

h6 {
    font-size: 1rem;
}

.lead {
    font-size: 1.125rem;
    font-weight: 400;
    color: #fff;
}

.display-3 {
    font-size: 4rem;
    font-weight: 800;
    letter-spacing: -1px;
}

.display-5 {
    font-size: 2.5rem;
    font-weight: 700;
}

.eyebrow {
    color: var(--secondary-color);
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 0.5rem;
    display: block;
}

.text-primary-custom {
    color: var(--primary-color) !important;
}

.text-secondary-custom {
    color: var(--secondary-color) !important;
}

/* =========================================
   4. BUTTONS
   ========================================= */
.btn {
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition-base);
    text-transform: capitalize;
}

.btn-custom-primary {
    background-color: var(--secondary-color);
    color: white;
    border: 2px solid var(--secondary-color);
    box-shadow: 0 4px 6px rgba(217, 119, 6, 0.2);
}

.btn-custom-primary:hover {
    background-color: var(--secondary-dark);
    border-color: var(--secondary-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px rgba(217, 119, 6, 0.3);
}

.btn-custom-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-custom-outline:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(5, 150, 105, 0.2);
}

.btn-lg {
    padding: 15px 40px;
    font-size: 1.1rem;
}

/* =========================================
   5. NAVBAR & HEADER
   ========================================= */
.navbar {
    padding: 1rem 0;
    background-color: var(--bg-light);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
}

.navbar-brand {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--primary-color) !important;
}

.nav-link {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    color: var(--dark-text) !important;
    padding: 0.5rem 1rem !important;
    transition: var(--transition-base);
}

.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: 1rem;
}

.dropdown-item {
    border-radius: 5px;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    transition: var(--transition-base);
}

.dropdown-item:hover {
    background-color: var(--primary-light);
    color: var(--primary-dark);
    padding-left: 2rem;
}

.navbar-toggler {
    border: none;
    padding: 0;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* =========================================
   6. HERO SECTION
   ========================================= */
.hero-section {
    position: relative;
    padding: 120px 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: white;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Gradient overlay using new Primary Color */
    background: linear-gradient(135deg, rgba(5, 150, 105, 0.9), rgba(4, 120, 87, 0.85));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* =========================================
   7. ABOUT SECTION
   ========================================= */
.about-section {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.about-image-wrapper {
    position: relative;
    padding: 20px;
}

.about-image-wrapper img {
    position: relative;
    z-index: 2;
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
    width: 100%;
}

.about-image-wrapper::after {
    content: '';
    position: absolute;
    top: 40px;
    left: 40px;
    width: calc(100% - 40px);
    height: calc(100% - 40px);
    border: 4px solid var(--secondary-color);
    border-radius: 15px;
    z-index: 1;
}

.about-content ul {
    margin-top: 1.5rem;
    margin-bottom: 2rem;
}

.about-content li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.about-content li i {
    position: absolute;
    left: 0;
    top: 4px;
    color: var(--secondary-color);
}

/* =========================================
   8. COUNTER SECTION
   ========================================= */
.counter-section {
    padding: 80px 0;
    background-color: var(--primary-color);
    color: white;
}

.counter-box {
    text-align: center;
    padding: 20px;
    transition: var(--transition-base);
}

.counter-box:hover {
    transform: translateY(-5px);
}

.counter-number {
    font-size: 3rem;
    font-weight: 800;
    color: white;
    /* Changed from secondary to white for better contrast on green bg */
    display: block;
    margin-bottom: 0.5rem;
    font-family: 'Outfit', sans-serif;
}

.counter-label {
    font-size: 1.1rem;
    font-weight: 500;
    opacity: 0.9;
}

/* =========================================
   9. FEATURES SECTION
   ========================================= */
.features-section {
    padding: 100px 0;
    background-color: var(--bg-off-white);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.feature-card {
    background: white;
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
    height: 100%;
    text-align: center;
    border-bottom: 3px solid transparent;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-bottom-color: var(--secondary-color);
}

.feature-icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    background-color: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-base);
}

.feature-icon {
    font-size: 2rem;
    color: var(--primary-color);
    transition: var(--transition-base);
}

.feature-card:hover .feature-icon-wrapper {
    background-color: var(--primary-color);
}

.feature-card:hover .feature-icon {
    color: white;
}

.feature-title {
    margin-bottom: 1rem;
    font-weight: 700;
}

.feature-text {
    color: var(--muted-text);
    margin-bottom: 0;
}

/* =========================================
   10. BLOG/NEWS SECTION
   ========================================= */
.blog-section {
    padding: 100px 0;
    background-color: white;
}

.blog-card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.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-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: var(--secondary-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.blog-body {
    padding: 1.5rem;
}

.blog-meta {
    font-size: 0.85rem;
    color: var(--muted-text);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.blog-meta i {
    color: var(--primary-color);
    margin-right: 5px;
}

.blog-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.blog-title a {
    color: var(--dark-text);
    transition: var(--transition-base);
}

.blog-title a:hover {
    color: var(--primary-color);
}

.blog-excerpt {
    color: var(--muted-text);
    margin-bottom: 1.5rem;
}

.read-more {
    font-weight: 600;
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
}

.read-more i {
    margin-left: 5px;
    transition: var(--transition-base);
}

.blog-card:hover .read-more i {
    transform: translateX(5px);
}

/* Franchise Post Specific */
.blog-post-header {
    height: 400px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.blog-post-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
}

.blog-container {
    margin-top: -100px;
    position: relative;
    z-index: 10;
}

.blog-content-card {
    background: white;
    padding: 50px;
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
}

.blog-alert {
    background-color: var(--primary-light);
    border-left: 4px solid var(--primary-color);
    padding: 1.5rem;
    border-radius: 0 10px 10px 0;
    margin: 2rem 0;
}

/* =========================================
   11. CONTACT SECTION
   ========================================= */
.contact-section {
    padding: 80px 0;
    background-color: var(--bg-off-white);
}

.contact-form-container {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
}

.form-control {
    padding: 12px 15px;
    border: 2px solid var(--border-light);
    border-radius: 10px;
    transition: var(--transition-base);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(5, 150, 105, 0.1);
}

.form-label {
    font-weight: 600;
    color: var(--dark-text);
}

.contact-info-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    margin-top: 2rem;
    box-shadow: var(--shadow-sm);
}

.contact-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* =========================================
   12. FOOTER
   ========================================= */
.footer {
    background-color: var(--bg-dark);
    color: var(--light-text);
    padding-top: 80px;
    padding-bottom: 20px;
}

.footer-heading {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    font-family: 'Outfit', sans-serif;
}

.footer-desc {
    color: #9ca3af;
    margin-bottom: 2rem;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #d1d5db;
    /* Gray 300 */
    transition: var(--transition-base);
    display: inline-block;
}

.footer-links a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
    text-decoration: none;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 3rem;
    padding-top: 1.5rem;
    text-align: center;
    color: #6b7280;
    font-size: 0.9rem;
}

.footer-social-links a {
    color: white;
    margin: 0 10px;
    font-size: 1.2rem;
}

.footer-social-links a:hover {
    color: var(--secondary-color);
}

/* =========================================
   13. UTILITIES & HELPERS
   ========================================= */
.cta-section {
    background-color: #000;
    color: white;
    padding: 80px 0;
    text-align: center;
}

.bg-pattern {
    background-image: radial-gradient(var(--border-light) 1px, transparent 1px);
    background-size: 20px 20px;
}

.separator {
    width: 60px;
    height: 4px;
    background-color: var(--secondary-color);
    margin: 1.5rem auto;
    border-radius: 2px;
}

/* =========================================
   14. ANIMATIONS
   ========================================= */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 40px, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.animate-up {
    animation: fadeInUp 0.8s ease-out;
}

/* =========================================
   15. RESPONSIVE DESIGN
   ========================================= */
@media (max-width: 991px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .blog-container {
        margin-top: -50px;
    }

    .blog-content-card {
        padding: 30px;
    }

    .feature-card {
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 80px 0;
    }

    .hero-title {
        font-size: 2rem;
    }

    .about-image-wrapper {
        margin-bottom: 3rem;
    }

    .counter-box {
        margin-bottom: 2rem;
    }

    .footer {
        text-align: center;
    }

    .footer-links a:hover {
        padding-left: 0;
    }
}