/* 
 * Franchise Review Hub - Custom Stylesheet
 * Version: 1.0.0
 * Author: Antigravity AI
 * Description: Main stylesheet for the Franchise Review website.
 * Color Scheme: Modern Teal (Primary) + Vibrant Orange (Secondary)
 */

/* ==========================================================================
   1. VARIABLES & RESET
   ========================================================================== */
:root {
    /* Color Palette - Vibrant Modern Theme */
    --primary-color: #0d9488; /* Teal 600 - Professional & Trustworthy */
    --secondary-color: #f97316; /* Orange 500 - Energetic & Action-Oriented */
    --accent-color: #6366f1; /* Indigo 500 - Tech & Innovation Accent */
    
    /* Neutral Colors */
    --dark-text: #1f2937; /* Gray 800 */
    --light-text: #f9fafb; /* Gray 50 */
    --bg-light: #ffffff;
    --bg-off-white: #f3f4f6; /* Gray 100 */
    --border-light: #e5e7eb; /* Gray 200 */
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Spacing */
    --section-padding: 80px;
    --card-padding: 2rem;
    
    /* Shadows */
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.05); /* Softer shadow */
    --shadow-md: 0 5px 15px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.08); /* Slightly darker for depth */
    --shadow-hover: 0 15px 30px rgba(0, 0, 0, 0.12);
    
    /* Transitions */
    --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); /* Enhanced easing */
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    color: var(--dark-text);
    background-color: var(--bg-off-white);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography Overrides */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

h1 { font-weight: 800; line-height: 1.2; }
h2 { font-weight: 800; line-height: 1.3; }

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition-base);
}

a:hover {
    color: var(--secondary-color);
}

p {
    margin-bottom: 1.5rem;
    color: #4b5563; /* Gray 600 for softer reading */
}

ul {
    list-style: none;
    padding-left: 0;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Utilities */
.text-primary { color: var(--primary-color) !important; }
.text-secondary { color: var(--secondary-color) !important; }
.text-accent { color: var(--accent-color) !important; }
.bg-primary { background-color: var(--primary-color) !important; }
.bg-secondary { background-color: var(--secondary-color) !important; }
.bg-accent { background-color: var(--accent-color) !important; }
.bg-off-white { background-color: var(--bg-off-white) !important; }

.section-padding { padding: var(--section-padding) 0; }
.section-header { margin-bottom: 3.5rem; text-align: center; max-width: 800px; margin-left: auto; margin-right: auto; }

.eyebrow {
    color: var(--primary-color);
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    display: inline-block;
}

/* ==========================================================================
   2. BUTTONS & UI COMPONENTS
   ========================================================================== */

/* Custom Primary Button (Pill Shaped) */
.btn-custom-primary {
    background-color: var(--secondary-color); /* Orange CTA stands out on Teal/Dark backgrounds */
    color: #fff;
    font-weight: 700;
    padding: 14px 38px;
    border-radius: 50px;
    border: 2px solid transparent;
    transition: var(--transition-base);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.25); /* Colored shadow match */
    text-transform: uppercase;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

.btn-custom-primary:hover,
.btn-custom-primary:focus {
    background-color: #ea580c; /* Darker Orange */
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(249, 115, 22, 0.4);
}

.btn-custom-primary:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(249, 115, 22, 0.3);
}

/* Custom Outline Button */
.btn-custom-outline {
    background-color: transparent;
    color: var(--primary-color);
    font-weight: 700;
    padding: 12px 36px;
    border-radius: 50px;
    border: 2px solid var(--primary-color);
    transition: var(--transition-base);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.btn-custom-outline:hover,
.btn-custom-outline:focus {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(13, 148, 136, 0.25); /* Teal shadow */
}

/* Badges */
.badge-custom {
    padding: 0.5em 1em;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}

.badge-primary {
    background-color: rgba(13, 148, 136, 0.1); /* Light Teal Bg */
    color: var(--primary-color);
}

.badge-secondary {
    background-color: rgba(249, 115, 22, 0.1); /* Light Orange Bg */
    color: var(--secondary-color);
}

/* Cards Generic */
.card-custom {
    background: white;
    border: none;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
    overflow: hidden;
    height: 100%;
}

.card-custom:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

/* ==========================================================================
   3. HEADER & NAVIGATION
   ========================================================================== */
.navbar {
    padding: 1.25rem 0;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
}

.navbar-brand {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.6rem;
    color: var(--primary-color) !important;
    letter-spacing: -0.5px;
}

.nav-link {
    font-weight: 600;
    color: var(--dark-text) !important;
    padding: 0.5rem 1.25rem !important;
    transition: var(--transition-base);
    border-radius: 6px;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color) !important;
    background-color: rgba(13, 148, 136, 0.05);
}

.dropdown-menu {
    border: none;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    padding: 1rem 0;
    margin-top: 1rem;
    animation: fadeInDropdown 0.3s ease;
}

@keyframes fadeInDropdown {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.dropdown-item {
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    color: var(--dark-text);
    transition: var(--transition-base);
}

.dropdown-item:hover,
.dropdown-item:focus {
    background-color: rgba(13, 148, 136, 0.08); /* Subtle Teal hover */
    color: var(--primary-color);
    padding-left: 1.75rem; /* Slide effect */
}

/* Mobile Toggle */
.navbar-toggler {
    border: none;
    padding: 0.5rem;
}
.navbar-toggler:focus {
    box-shadow: none;
    background-color: rgba(0,0,0,0.05);
    border-radius: 8px;
}

/* ==========================================================================
   4. HOME: HERO SECTION
   ========================================================================== */
.hero-section {
    position: relative;
    /* Gradient overlay: Dark Teal to Deep Blue for professionalism */
    background: linear-gradient(135deg, rgba(13, 148, 136, 0.92), rgba(15, 23, 42, 0.88)), url('../images/hero-bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    padding: 160px 0 120px;
    margin-top: -85px; /* Pull behind transparent navbar if needed, currently sticking below */
    clip-path: polygon(0 0, 100% 0, 100% 95%, 0 100%); /* Modern angled bottom */
    z-index: 10;
}

/* If sticky top navbar takes space, adjust margin or padding */
/* Ensuring hero text is readable */

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    text-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 400;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ==========================================================================
   5. HOME: ABOUT SECTION
   ========================================================================== */
.about-section {
    padding: 100px 0;
    background-color: #fff;
    overflow: hidden;
}

.about-image-wrapper {
    position: relative;
    padding: 20px; /* Space for border offset */
}

.about-image-wrapper img {
    position: relative;
    z-index: 2;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    width: 100%;
    object-fit: cover;
}

/* Decorative Outline - using Secondary Orange for pop */
.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: 20px;
    z-index: 1;
    transition: var(--transition-base);
}

.about-image-wrapper:hover::after {
    transform: translate(10px, 10px);
}

.about-content h2 {
    font-size: 2.75rem;
    margin-bottom: 1.5rem;
}

.about-content .lead {
    font-size: 1.2rem;
    color: #374151; /* Gray 700 */
    margin-bottom: 2rem;
    font-weight: 500;
}

.about-list li {
    position: relative;
    padding-left: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.about-list li i {
    position: absolute;
    left: 0;
    top: 4px;
    color: var(--secondary-color); /* Orange checkmarks */
    font-size: 1.25rem;
    margin-right: 0.75rem;
}

/* ==========================================================================
   6. HOME: COUNTER SECTION
   ========================================================================== */
.counter-section {
    background-color: var(--primary-color);
    color: white;
    padding: 80px 0;
    position: relative;
    z-index: 2; /* Stack above others if needed */
}

.counter-box {
    text-align: center;
    padding: 20px;
    transition: var(--transition-base);
}

.counter-box:hover {
    transform: translateY(-8px);
}

.counter-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: #fff; /* White numbers on Teal bg are cleanest */
    /* Alternatively, use secondary orange? No, contrast might vibrate */
    /* Let's use a very light orange tint or just white */
    margin-bottom: 0.5rem;
    display: block;
    line-height: 1;
}

/* Option: Use Secondary Color for the number if bg is dark enough */
/* Since primary is Teal #0d9488, Orange #f97316 on top is readable (WCAG?)
   Contrast: 2.6:1 (Fails).
   So let's stick to White for text, maybe Amber for icons/accents.
   Or use a very light cyan/white.
*/

.counter-label {
    font-size: 1.1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
}

/* ==========================================================================
   7. HOME: FEATURES SECTION (Why Choose Us)
   ========================================================================== */
.features-section {
    padding: 100px 0;
    background-color: var(--bg-off-white);
}

.feature-card {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
    height: 100%;
    border-bottom: 4px solid transparent;
}

.feature-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-hover);
    border-bottom-color: var(--secondary-color); /* Orange bottom accent on hover */
}

.feature-icon-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: rgba(13, 148, 136, 0.1); /* Light Teal */
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 2rem;
    transition: var(--transition-base);
}

.feature-card:hover .feature-icon-wrapper {
    background-color: var(--primary-color);
    color: white;
    transform: rotateY(180deg); /* 3D flip effect */
}

.feature-card:hover .feature-icon-wrapper i {
    transform: rotateY(-180deg); /* Counter-rotate icon to keep upright */
}

.feature-card h4 {
    font-size: 1.35rem;
    margin-bottom: 1rem;
}

.feature-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0;
    color: #6b7280;
}

/* ==========================================================================
   8. HOME: BLOG SECTION
   ========================================================================== */
.blog-section {
    padding: 100px 0;
    background-color: #fff;
}

.blog-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-light);
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(13, 148, 136, 0.2);
}

.blog-img-wrapper {
    position: relative;
    overflow: hidden;
    height: 240px;
}

.blog-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.blog-card:hover .blog-img-wrapper img {
    transform: scale(1.08); /* Zoom effect */
}

.category-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--secondary-color);
    color: white;
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

.blog-body {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-meta {
    font-size: 0.85rem;
    color: #9ca3af;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.blog-meta i {
    color: var(--primary-color);
}

.blog-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.blog-title a {
    color: var(--dark-text);
    transition: color 0.2s;
}

.blog-title a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

.blog-excerpt {
    font-size: 0.95rem;
    color: #6b7280;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.read-more-link {
    font-weight: 600;
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
    font-size: 0.95rem;
}

.read-more-link i {
    margin-left: 6px;
    transition: transform 0.2s;
}

.read-more-link:hover i {
    transform: translateX(5px);
}

/* ==========================================================================
   9. HOME: CALL TO ACTION SECTION
   ========================================================================== */
.cta-section {
    padding: 100px 0;
    background-color: #0f172a; /* Dark Slate / Black */
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Decorative background elements */
.cta-section::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(13, 148, 136, 0.3) 0%, transparent 70%);
}

.cta-section::after {
    content: '';
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.2) 0%, transparent 70%);
}

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    color: white;
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.cta-content p {
    color: #cbd5e1; /* Light gray text */
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
}

/* ==========================================================================
   10. FOOTER
   ========================================================================== */
.footer-section {
    background-color: #111827; /* Near Black */
    color: #e5e7eb;
    padding: 80px 0 30px;
}

.footer-heading {
    color: white;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-heading::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background-color: var(--secondary-color);
    border-radius: 2px;
}

.footer-desc {
    opacity: 0.8;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #9ca3af;
    transition: var(--transition-base);
    display: inline-block;
}

.footer-links a:hover {
    color: var(--secondary-color);
    transform: translateX(5px);
}

.footer-contact .contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    color: #9ca3af;
}

.footer-contact i {
    color: var(--primary-color);
    margin-right: 12px;
    font-size: 1.1rem;
}

.footer-bottom {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 0.9rem;
    color: #6b7280;
}

/* ==========================================================================
   11. PAGE HERO (About, Contact, etc.)
   ========================================================================== */
.page-hero {
    background-color: var(--primary-color);
    background: linear-gradient(135deg, var(--primary-color) 0%, #0f766e 100%);
    color: white;
    padding: 100px 0 80px;
    text-align: center;
}

.page-hero h1 {
    color: white;
    font-size: 3rem;
    margin-bottom: 1rem;
}

.page-hero .lead {
    color: rgba(255,255,255,0.9);
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto;
}

/* ==========================================================================
   12. CONTACT PAGE SPECIFICS
   ========================================================================== */
.contact-form-card {
    background: white;
    padding: 50px;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    margin-top: -60px; /* Overlap effect if desired, or just standard */
}

.form-label {
    font-weight: 600;
    color: var(--dark-text);
    margin-bottom: 0.5rem;
}

.form-control {
    padding: 12px 16px;
    border-radius: 10px;
    border: 2px solid #e5e7eb;
    transition: var(--transition-base);
    background-color: #f9fafb;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.15);
    background-color: white;
}

.contact-info-card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    margin-top: 2rem;
    text-align: center;
    border: 1px solid var(--border-light);
}

.contact-icon-large {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    display: inline-block;
}

/* ==========================================================================
   13. BLOG POST PAGE (Franchise.php)
   ========================================================================== */
/* Blog Header Parallax */
.blog-post-header {
    height: 450px;
    position: relative;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end; /* Align content bottom? No, content below */
    z-index: 1;
}

.blog-post-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.7));
    z-index: 2;
}

.blog-content-wrapper {
    position: relative;
    z-index: 10;
    margin-top: -100px; /* Overlap header */
    padding-bottom: 80px;
}

.article-card {
    background: white;
    padding: 60px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 1.5rem 0 2rem;
    font-size: 0.95rem;
    color: #6b7280;
    border-bottom: 1px solid #f3f4f6;
    padding-bottom: 2rem;
}

.article-meta span {
    display: flex;
    align-items: center;
}

.article-meta i {
    margin-right: 8px;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.article-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #374151;
}

.article-content p {
    margin-bottom: 1.8rem;
}

.article-content h2 {
    font-size: 2rem;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    color: #111827;
}

.article-content h3 {
    font-size: 1.5rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: #1f2937;
}

/* Custom Highlight Box in Article */
.custom-alert {
    background-color: rgba(13, 148, 136, 0.06);
    border-left: 5px solid var(--primary-color);
    padding: 2rem;
    border-radius: 8px;
    margin: 2.5rem 0;
    font-style: italic;
    color: #1f2937;
}

.custom-alert strong {
    color: var(--primary-color);
    font-style: normal;
}

/* ==========================================================================
   14. RESPONSIVE ADJUSTMENTS
   ========================================================================== */
@media (max-width: 991.98px) {
    .section-padding { padding: 60px 0; }
    
    .hero-title { font-size: 2.75rem; }
    .hero-section { padding: 120px 0 80px; text-align: center; }
    
    /* Center align mobile features */
    .feature-card { text-align: center; }
    .feature-icon-wrapper { margin-left: auto; margin-right: auto; }
    
    .navbar-collapse {
        background: white;
        padding: 20px;
        margin-top: 15px;
        border-radius: 12px;
        box-shadow: var(--shadow-lg);
    }
}

@media (max-width: 767.98px) {
    .hero-title { font-size: 2.25rem; }
    .hero-subtitle { font-size: 1.1rem; }
    
    .article-card { padding: 30px 20px; }
    .blog-content-wrapper { margin-top: -50px; }
    
    .about-image-wrapper { margin-bottom: 40px; }
    
    .counter-section { padding: 50px 0; }
    .counter-number { font-size: 2.5rem; } /* Scale down on mobile */
    .counter-box { margin-bottom: 2rem; }
    
    /* Stack footer visually better */
    .footer-section { text-align: center; }
    .footer-heading::after { left: 50%; transform: translateX(-50%); }
    .footer-links a:hover { transform: translateX(0) scale(1.05); }
}

@media (max-width: 575.98px) {
    .hero-title { font-size: 2rem; }
}
