/* Global Styles */
:root {
    --primary-color: #FF5A60;
    --secondary-color: #343a40;
    --light-color: #f8f9fa;
    --text-color: #212529;
    --muted-color: #6c757d;
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #e3454a;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #e3454a;
    border-color: #e3454a;
}

.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

/* CK Text Editor Styles */
.text-tiny{
    font-size: .7em;
}

.text-small{
    font-size: .85em;
}

.text-big{
    font-size: 1.4em;
}

.text-huge{
    font-size: 1.8em;
}

/* Navbar Styles */
.navbar {
    padding: 1rem 0;
}

.navbar-brand {
    font-weight: 800;
    letter-spacing: 1px;
}

.nav-link {
    font-weight: 600;
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9);
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: #fff;
}

/* Hero Section */
.hero {
    margin-bottom: 2rem;
}

.hero-content {
    padding: 2rem 0;
}

/* Card Styles */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

/* Blog Styles */
.blog-content img {
    max-width: 100%;
    height: auto;
    margin: 1.5rem 0;
    border-radius: 0.25rem;
}

.blog-content h2, .blog-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.blog-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 1rem;
    margin-left: 0;
    color: var(--muted-color);
    font-style: italic;
}

/* Footer Styles */
footer {
    margin-top: 3rem;
}

footer a:hover {
    color: var(--primary-color) !important;
}

/* Responsive Media Queries */

/* ============================================
   MOBILE BOUNCE RATE FIXES (92% → target <65%)
   ============================================ */

/* Hero section - reduce height on mobile to show content immediately */
.hero-responsive {
    height: 60vh;
    min-height: 500px;
}

/* Sidebar mobile behavior - NOT sticky on mobile */
.sidebar-responsive {
    position: relative !important;
    top: auto !important;
}

/* Touch-friendly interactive elements (WCAG min 44x44px) */
.btn, button, .nav-link, a.card {
    min-height: 44px;
}

/* Form inputs touch-friendly */
.form-control, .form-control-lg {
    min-height: 48px;
    font-size: 16px !important; /* Prevents iOS zoom on focus */
}

@media (max-width: 991.98px) {
    .hero-content {
        text-align: center;
        padding: 3rem 0;
    }

    /* Reduce hero height on tablets */
    .hero-responsive,
    .bg-image[style*="height: 60vh"],
    section .bg-image {
        height: 45vh !important;
        min-height: 350px !important;
    }

    /* Sidebar NOT sticky on mobile/tablet */
    .sticky-top.col-lg-4,
    aside.sticky-top {
        position: relative !important;
        top: auto !important;
    }

    /* Show lead form prominently on mobile */
    #lead-form {
        order: -1; /* Move form above other content */
    }
}

@media (max-width: 767.98px) {
    .display-4 {
        font-size: 2.5rem;
    }

    .display-3 {
        font-size: 2rem;
    }

    .lead {
        font-size: 1rem;
    }

    .hero-content {
        padding: 2rem 0;
    }

    /* Further reduce hero on mobile phones */
    .hero-responsive,
    .bg-image[style*="height: 60vh"],
    section .bg-image {
        height: 35vh !important;
        min-height: 280px !important;
    }

    /* Card images responsive */
    .card-img-top[style*="height: 200px"] {
        height: 160px !important;
    }

    /* Better button sizing on mobile */
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }

    /* Reduce padding on cards for more content space */
    .card-body {
        padding: 1rem;
    }

    /* Form padding adjustments */
    .p-4 {
        padding: 1rem !important;
    }
}

@media (max-width: 575.98px) {
    .display-4 {
        font-size: 1.75rem;
    }

    .display-3 {
        font-size: 1.5rem;
    }

    .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Hero even smaller on very small phones */
    .hero-responsive,
    .bg-image[style*="height: 60vh"],
    section .bg-image {
        height: 30vh !important;
        min-height: 220px !important;
    }

    /* Stacked buttons on mobile */
    .d-flex.gap-3 {
        flex-direction: column;
    }

    .d-flex.gap-3 .btn {
        width: 100%;
    }
}

/* Form Styles */
.form-control:focus {
    box-shadow: none;
    border-color: var(--primary-color);
}

/* Social Links */
.social-links a {
    transition: transform 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-3px);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #e3454a;
}
/*
 * FIX: CKEditor 5 Fullscreen Toolbar Floating (Jazzmin Conflict)
 * Forces the CKEditor fullscreen container to be above the Jazzmin header.
*/
body.ck-fullscreen .ck.ck-editor.ck-fullscreen {
    /* Jazzmin's header is around z-index: 1030.
       Bootstrap's modal backdrop is 1040.
       We set this to 1060 to ensure it's on top of everything.
    */
    z-index: 1060 !important;
}