/* 
 * Global Enterprise Rating - Custom Styles
 * Modern Business Theme
 * Version: 1.0
 */

:root {
    /* Color Palette - Modern Teal & Blue Theme */
    --primary-color: #00b894;
    /* Mint Leaf / Vibrant Teal */
    --secondary-color: #0984e3;
    /* Electron Blue */
    --accent-color: #d63031;
    /* Chi-Gong Red / Deep Coral */
    --dark-text: #2d3436;
    /* Dracula Orchid */
    --light-text: #dfe6e9;
    /* City Lights */
    --bg-light: #ffffff;
    --bg-off-white: #f5f6fa;
    /* Lynx White */
    --border-light: #b2bec3;
    /* Soothing Breeze */

    /* System Fonts */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* 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.1);
    --shadow-hover: 0 15px 30px rgba(0, 0, 0, 0.15);
}

/* =========================================
   Global Resets & Typography
   ========================================= */

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(--secondary-color);
    /* Headings use secondary color by default */
}

h1.display-3 {
    font-weight: 800;
    letter-spacing: -1px;
}

h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

p.lead {
    font-weight: 400;
    font-size: 1.25rem;
    color: #ffffff;
    /* Slightly lighter text for leads */
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
    color: var(--primary-color);
}

a:hover {
    color: var(--accent-color);
}

img {
    max-width: 100%;
    height: auto;
}

html {
    scroll-behavior: smooth;
}

/* =========================================
   Utility Classes & Components
   ========================================= */

/* Buttons */
.btn-custom-primary {
    background-color: var(--primary-color);
    color: white;
    /* Contrast text */
    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(0, 184, 148, 0.3);
}

.btn-custom-primary:hover {
    background-color: #00a383;
    /* Darker shade of primary */
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0, 184, 148, 0.4);
}

.btn-custom-outline {
    background-color: transparent;
    color: var(--secondary-color);
    font-weight: 600;
    padding: 10px 30px;
    border-radius: 50px;
    border: 2px solid var(--secondary-color);
    transition: all 0.3s ease;
}

.btn-custom-outline:hover {
    background-color: var(--secondary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(9, 132, 227, 0.2);
}

/* Badges */
.badge-primary {
    background-color: rgba(0, 184, 148, 0.1);
    color: var(--primary-color);
    font-weight: 600;
    padding: 0.5em 1em;
    border-radius: 50px;
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.eyebrow-text {
    color: var(--accent-color);
    font-size: 0.875rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 0.5rem;
    display: block;
}

.section-subtitle {
    color: #636e72;
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

/* Cards */
.custom-card {
    background: white;
    border: none;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    height: 100%;
    overflow: hidden;
}

.custom-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

/* Spacing */
.section-padding {
    padding: 80px 0;
}

/* =========================================
   Navigation (Header)
   ========================================= */

.navbar {
    padding: 1rem 0;
    background-color: white;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.navbar-brand {
    font-family: var(--font-heading);
    font-weight: 800;
    color: var(--secondary-color) !important;
    font-size: 1.5rem;
}

.navbar-brand span {
    color: var(--primary-color);
}

.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 0;
    margin-top: 1rem;
}

.dropdown-item {
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    color: var(--dark-text);
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background-color: var(--primary-color);
    color: white;
    padding-left: 1.75rem;
    /* Slight shift */
}

.navbar-toggler {
    border: none;
    padding: 0.25rem 0.75rem;
}

.navbar-toggler:focus {
    box-shadow: none;
    outline: 2px solid var(--primary-color);
}

/* =========================================
   Hero Section
   ========================================= */

.hero-section {
    position: relative;
    /* Gradient overlay using Primary & Secondary colors */
    background: linear-gradient(135deg, rgba(9, 132, 227, 0.9), rgba(0, 184, 148, 0.85)), url('../images/hero-bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    padding: 160px 0 100px;
    margin-top: -76px;
    /* Offset fixed header */
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    color: white;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-section .lead {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    font-size: 1.35rem;
}

.hero-btn {
    background-color: var(--accent-color);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 1.1rem;
    border-radius: 50px;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(214, 48, 49, 0.4);
    transition: all 0.3s ease;
}

.hero-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(214, 48, 49, 0.5);
    background-color: #c0392b;
    color: white;
}

/* =========================================
   About Section
   ========================================= */

.about-section {
    background-color: white;
}

.about-image-wrapper {
    position: relative;
    padding: 20px;
}

.about-image-wrapper img {
    position: relative;
    z-index: 2;
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
    display: block;
    width: 100%;
}

.about-image-wrapper::after {
    content: '';
    position: absolute;
    top: 40px;
    /* Offset */
    left: 0;
    /* Changed from 20px to 0 for better fit within col */
    right: -20px;
    /* Push out */
    bottom: -20px;
    width: 100%;
    height: 100%;
    border: 4px solid var(--primary-color);
    border-radius: 15px;
    z-index: 1;
    display: none;
    /* Hidden by default on mobile */
}

@media (min-width: 992px) {
    .about-image-wrapper::after {
        display: block;
        left: 5px;
        top: 40px;
        width: 100%;
        height: 100%;
    }
}

.about-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.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(--primary-color);
    font-size: 1.1rem;
}

/* =========================================
   Counter Section
   ========================================= */

.counter-section {
    background-color: var(--secondary-color);
    color: white;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

/* Subtle pattern overlay */
.counter-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.05) 0%, transparent 25%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 25%);
    pointer-events: none;
}

.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: white;
    /* Changed from secondary to white for contrast on blue bg */
    display: block;
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
}

.counter-label {
    font-size: 1.1rem;
    opacity: 0.9;
    font-weight: 500;
}

/* =========================================
   Features Section
   ========================================= */

.features-section {
    background-color: var(--bg-off-white);
}

.feature-box {
    background: white;
    border-radius: 15px;
    padding: 40px 30px;
    height: 100%;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.03);
    box-shadow: var(--shadow-sm);
    text-align: center;
}

.feature-box:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.feature-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: rgba(0, 184, 148, 0.1);
    /* Primary light transparent */
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    transition: all 0.3s ease;
}

.feature-box:hover .feature-icon {
    background-color: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.feature-box h4 {
    margin-bottom: 1rem;
    font-weight: 700;
}

.feature-box p {
    color: #636e72;
    margin-bottom: 0;
}

/* =========================================
   Blog Section
   ========================================= */

.blog-section {
    background-color: white;
}

.blog-card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    height: 100%;
    background: white;
}

.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);
    /* Zoom effect */
}

.blog-body {
    padding: 25px;
}

.blog-badge {
    background-color: rgba(9, 132, 227, 0.1);
    color: var(--secondary-color);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 20px;
    margin-bottom: 1rem;
    display: inline-block;
}

.blog-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.blog-title a {
    color: var(--dark-text);
}

.blog-card:hover .blog-title a {
    color: var(--primary-color);
}

.blog-text {
    color: #636e72;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.read-more-link {
    color: var(--primary-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.read-more-link i {
    transition: transform 0.3s ease;
}

.blog-card:hover .read-more-link {
    color: var(--accent-color);
}

.blog-card:hover .read-more-link i {
    transform: translateX(5px);
}

/* =========================================
   CTA Section
   ========================================= */

.cta-section {
    background-color: #1a1a1a;
    /* Almost Black */
    color: white;
    text-align: center;
    padding: 80px 0;
}

.cta-section h2 {
    color: white;
    margin-bottom: 1.5rem;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2.5rem;
    font-size: 1.2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* =========================================
   Footer
   ========================================= */

.footer {
    background-color: var(--secondary-color);
    /* Footer matches secondary brand color */
    color: white;
    padding-top: 60px;
    font-size: 0.95rem;
}

.footer h5 {
    color: white;
    font-weight: 700;
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    letter-spacing: 0.5px;
}

.footer-description {
    opacity: 0.8;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
    text-decoration: none;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 3rem;
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.875rem;
    opacity: 0.6;
}

/* =========================================
   Page: About.php
   ========================================= */
.page-hero {
    background-color: var(--secondary-color);
    color: white;
    padding: 100px 0;
    text-align: center;
    margin-top: -76px;
    /* Sticky nav offset */
    padding-top: 176px;
    /* Offset + padding */
}

.page-hero h1 {
    color: white;
    margin-bottom: 1rem;
}

.mission-card {
    background: var(--bg-off-white);
    padding: 40px;
    border-radius: 15px;
    height: 100%;
    border-left: 5px solid var(--primary-color);
}

.trust-card {
    background: var(--bg-off-white);
    padding: 40px;
    border-radius: 15px;
    height: 100%;
    border-left: 5px solid var(--secondary-color);
}

/* =========================================
   Page: Contact.php
   ========================================= */
.contact-form-container {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
}

.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(0, 184, 148, 0.15);
}

.form-label {
    font-weight: 600;
    color: var(--dark-text);
    margin-bottom: 0.5rem;
}

.email-card {
    background-color: var(--bg-off-white);
    padding: 30px;
    border-radius: 15px;
    margin-top: 2rem;
    text-align: center;
    transition: transform 0.3s ease;
}

.email-card:hover {
    transform: translateY(-5px);
}

.email-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.email-link {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent-color);
}

.email-link:hover {
    color: var(--primary-color);
}

/* =========================================
   Page: Franchise.php (Blog Post)
   ========================================= */

.blog-post-header {
    height: 400px;
    position: relative;
    background-size: cover;
    background-position: center;
    margin-top: -76px;
    /* Nav offset */
}

.blog-post-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    /* Overlay */
}

.blog-content-container {
    position: relative;
    z-index: 10;
    margin-top: -100px;
    padding-bottom: 80px;
}

.blog-content-card {
    background: white;
    padding: 50px;
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
}

.blog-meta {
    color: #636e72;
    font-size: 0.9rem;
    margin: 1.5rem 0;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.blog-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.blog-meta i {
    color: var(--primary-color);
}

.article-body {
    font-size: 1.1rem;
    color: #2d3436;
}

.article-body h2 {
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
}

.article-body h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.article-body ul,
.article-body ol {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
}

.article-body li {
    margin-bottom: 0.75rem;
}

.alert-custom-box {
    background-color: rgba(0, 184, 148, 0.05);
    /* Very light primary */
    border-left: 4px solid var(--primary-color);
    padding: 1.5rem;
    border-radius: 10px;
    margin: 2rem 0;
    font-style: italic;
}

.blog-cta-box {
    margin-top: 3rem;
    padding: 3rem;
    background-color: var(--bg-off-white);
    border-radius: 15px;
    text-align: center;
}

/* =========================================
   Responsive Adjustments
   ========================================= */

@media (max-width: 991.98px) {
    .section-padding {
        padding: 60px 0;
    }

    .hero-section {
        padding: 120px 0 80px;
        text-align: center;
    }

    .hero-section h1 {
        font-size: 2.5rem;
    }

    .about-image-wrapper {
        margin-bottom: 2rem;
    }

    .blog-content-card {
        padding: 30px;
        margin-top: -50px;
    }

    .feature-box {
        margin-bottom: 30px;
    }
}

@media (max-width: 767.98px) {
    h2 {
        font-size: 2rem;
    }

    .display-3 {
        font-size: 2.2rem;
    }

    .counter-section .col-md-3 {
        width: 50%;
        margin-bottom: 2rem;
    }

    .blog-post-header {
        height: 300px;
    }
}