/* 
 * Enterprise Review Zone - Custom Styles
 * Modern Business Review Platform Theme
 * Version: 1.0.0
 * Based on Google Fonts: Inter & Outfit
 */

/* ==========================================================================
   1. VARIABLES & RESET
   ========================================================================== */
:root {
    /* Color Palette - Modern Enterprise Blue & Vibrant Orange */
    --primary-color: #0891b2;
    /* Cyan 600 - Professional/Tech */
    --primary-rgb: 8, 145, 178;
    --secondary-color: #ea580c;
    /* Orange 600 - High Contrast Action */
    --secondary-rgb: 234, 88, 12;
    --accent-color: #be185d;
    /* Pink 700 - Subtle Highlights */
    --accent-rgb: 190, 24, 93;

    /* Typography Colors */
    --dark-text: #1e293b;
    /* Slate 800 */
    --body-text: #4b5563;
    /* Slate 600 */
    --light-text: #f9fafb;
    /* Slate 50 */

    /* Backgrounds */
    --bg-light: #ffffff;
    --bg-off-white: #f3f4f6;
    /* Slate 100 */
    --bg-dark: #0f172a;
    /* Slate 900 */

    /* Borders & Shadows */
    --border-light: #e2e8f0;
    --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);

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--body-text);
    background-color: var(--bg-off-white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6,
.display-1,
.display-2,
.display-3,
.display-4,
.display-5,
.display-6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 1rem;
}

h1 {
    font-weight: 800;
}

h2 {
    font-weight: 800;
}

p {
    margin-bottom: 1.5rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition-normal);
}

a:hover {
    color: var(--secondary-color);
}

img {
    max-width: 100%;
    height: auto;
}

/* Utility Classes */
.text-primary {
    color: var(--primary-color) !important;
}

.text-secondary {
    color: var(--secondary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.bg-secondary {
    background-color: var(--secondary-color) !important;
}

.bg-off-white {
    background-color: var(--bg-off-white) !important;
}

/* ==========================================================================
   2. BUTTONS & COMPONENTS
   ========================================================================== */

/* Primary Button */
.btn-custom-primary {
    background-color: var(--secondary-color);
    color: white;
    font-weight: 700;
    padding: 12px 35px;
    border-radius: 50px;
    border: none;
    transition: var(--transition-normal);
    display: inline-block;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 6px -1px rgba(234, 88, 12, 0.2), 0 2px 4px -1px rgba(234, 88, 12, 0.1);
}

.btn-custom-primary:hover,
.btn-custom-primary:focus {
    background-color: #c2410c;
    /* Darker Orange */
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(234, 88, 12, 0.3), 0 4px 6px -2px rgba(234, 88, 12, 0.1);
}

/* 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: var(--transition-normal);
}

.btn-custom-outline:hover,
.btn-custom-outline:focus {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Eyebrow Text */
.eyebrow {
    /* Used for section headers small text */
    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 Headers */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-header .subtitle {
    color: var(--body-text);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Cards Generic */
.custom-card {
    background: white;
    border-radius: 15px;
    border: none;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
    overflow: hidden;
    height: 100%;
}

.custom-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

/* Badges */
.badge-custom {
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-primary {
    background-color: rgba(var(--primary-rgb), 0.1);
    color: var(--primary-color);
}

/* ==========================================================================
   3. LAYOUT & SECTIONS
   ========================================================================== */

/* General Section Padding */
section {
    padding: 80px 0;
    position: relative;
}

/* 3.1 HEADER / NAVBAR */
.navbar {
    padding: 1rem 0;
    box-shadow: var(--shadow-sm);
    background-color: white;
    transition: var(--transition-normal);
}

.navbar-brand {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar-brand:hover {
    color: var(--secondary-color);
}

.nav-link {
    font-weight: 500;
    color: var(--dark-text);
    padding: 0.5rem 1rem !important;
    transition: var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.dropdown-menu {
    border: none;
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
    padding: 0.5rem;
    margin-top: 1rem;
}

.dropdown-item {
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    transition: var(--transition-fast);
}

.dropdown-item:hover {
    background-color: var(--primary-color);
    color: white;
}

/* 3.2 HERO SECTION */
.hero-section {
    padding: 150px 0 100px;
    background: linear-gradient(rgba(8, 145, 178, 0.9), rgba(15, 23, 42, 0.9)), url('../images/hero-bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    text-align: center;
    position: relative;
}

.hero-content h1 {
    color: white;
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-content .lead {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* 3.3 ABOUT SECTION */
.about-image-wrapper {
    position: relative;
    padding: 0 20px 20px 0;
}

.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 ul {
    list-style: none;
    margin-bottom: 2rem;
}

.about-content ul li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.about-content ul li i {
    position: absolute;
    left: 0;
    top: 4px;
    color: var(--secondary-color);
    font-size: 1.25rem;
}

/* 3.4 COUNTER SECTION */
.counter-section {
    background-color: var(--primary-color);
    color: white;
    padding: 60px 0;
}

.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 to white for better contrast on primary bg, or stick to secondary? */
    /* Reference says secondary color, but orange on cyan is... high contrast */
    color: var(--secondary-color);
    /* Let's keep secondary color (orange) on primary (cyan) - it pops */
    line-height: 1;
    margin-bottom: 0.5rem;
    display: block;
}

.counter-label {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    text-transform: capitalize;
}

/* 3.5 FEATURES SECTION */
.feature-box {
    background: white;
    border-radius: 15px;
    padding: 40px 30px;
    text-align: center;
    height: 100%;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.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);
    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;
}

.feature-box h4 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.feature-box p {
    color: var(--body-text);
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* 3.6 BLOG SECTION */
.blog-card {
    height: 100%;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.blog-img-wrapper {
    overflow: hidden;
    height: 250px;
}

.blog-card img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover img {
    transform: scale(1.05);
}

.blog-body {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 1rem 0;
    line-height: 1.4;
}

.blog-title a {
    color: var(--dark-text);
    transition: color 0.3s ease;
}

.blog-title a:hover {
    color: var(--primary-color);
}

.blog-text {
    color: var(--body-text);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.read-more {
    color: var(--primary-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.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);
}

/* 3.7 CALL TO ACTION (CTA) */
.cta-section {
    background-color: #0f172a;
    /* Dark almost black */
    color: white;
    text-align: center;
}

.cta-section h2 {
    color: white;
    margin-bottom: 1.5rem;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto 2.5rem;
}

/* ==========================================================================
   4. PAGE SPECIFIC STYLES
   ========================================================================== */

/* 4.1 CONTACT PAGE */
.contact-hero {
    background-color: var(--primary-color);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.contact-hero h1 {
    color: white;
}

.contact-hero p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
}

.contact-form-container {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    margin-top: -50px;
    /* Slight overlap if needed, but per design maybe not */
}

.form-label {
    font-weight: 600;
    color: var(--dark-text);
    margin-bottom: 0.5rem;
}

.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);
}

.email-card {
    background: 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-card a {
    color: var(--accent-color);
    font-weight: 600;
    font-size: 1.1rem;
}

.email-card a:hover {
    color: var(--primary-color);
}

/* 4.2 BLOG POST / FRANCHISE PAGE */
.blog-post-header {
    height: 400px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-post-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.blog-content-card {
    background: white;
    padding: 50px;
    border-radius: 15px;
    margin-top: -100px;
    position: relative;
    z-index: 10;
    box-shadow: var(--shadow-lg);
}

.meta-info {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    color: var(--body-text);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.meta-info span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.meta-info i {
    color: var(--primary-color);
}

.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;
}

.custom-alert-box {
    background-color: rgba(var(--primary-rgb), 0.05);
    border-left: 4px solid var(--primary-color);
    padding: 1.5rem;
    border-radius: 0 10px 10px 0;
    margin: 2rem 0;
}

.article-cta {
    background-color: var(--bg-off-white);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    margin-top: 3rem;
}

/* ==========================================================================
   5. FOOTER
   ========================================================================== */
.footer {
    background-color: var(--primary-color);
    /* Per doc: uses primary color */
    color: white;
    padding: 60px 0 20px;
    margin-top: auto;
}

.footer h5 {
    color: var(--secondary-color);
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.footer p {
    opacity: 0.9;
}

.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: var(--secondary-color);
    opacity: 1;
    transform: translateX(5px);
}

.footer-bottom {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* ==========================================================================
   6. RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: white;
        padding: 1rem;
        border-radius: 10px;
        box-shadow: var(--shadow-lg);
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 1000;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .blog-content-card {
        padding: 30px;
        margin-top: -50px;
    }

    .feature-box {
        margin-bottom: 2rem;
    }

    .counter-section .col-md-3 {
        margin-bottom: 2rem;
    }
}

@media (max-width: 767.98px) {
    section {
        padding: 60px 0;
    }

    .hero-section {
        padding: 80px 0;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .about-image-wrapper {
        margin-bottom: 3rem;
    }

    .blog-post-header {
        height: 300px;
    }

    .blog-content-card {
        padding: 20px;
    }

    .footer {
        text-align: center;
    }

    .footer .col-lg-3,
    .footer .col-lg-4 {
        margin-bottom: 2rem;
    }
}