/* =============================================================================
   professional.css â€” Industrial-Level Theme Enhancements
   Features: Preloader, Skip Link, Cookie Banner, Back-to-Top,
             Reading Progress Bar, Social Share, Print Styles
   Uses global CSS variables from variables.css
   ============================================================================= */

/* â”€â”€â”€ Skip to Content (Accessibility) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.skip-to-content {
    position: absolute;
    top: -100px;
    left: 16px;
    z-index: 99999;
    background: var(--primary);
    color: var(--white);
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: top 0.2s ease;
    box-shadow: var(--shadow-lg);
}
.skip-to-content:focus {
    top: 16px;
    outline: 3px solid var(--secondary);
    outline-offset: 2px;
}

/* â”€â”€â”€ Page Preloader â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
#page-preloader {
    position: fixed;
    inset: 0;
    z-index: 99998;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}
#page-preloader.preloader-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.preloader-inner {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}
.preloader-logo img {
    max-height: 52px;
    width: auto;
}
.preloader-logo .logo {
    font-size: 1.6rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.preloader-bar {
    width: 180px;
    height: 3px;
    background: var(--gray-200);
    border-radius: 99px;
    overflow: hidden;
}
.preloader-progress {
    height: 100%;
    width: 0%;
    background: var(--gradient-primary);
    border-radius: 99px;
    animation: preloader-fill 1.2s ease forwards;
}
@keyframes preloader-fill {
    0%   { width: 0%; }
    60%  { width: 80%; }
    100% { width: 100%; }
}

/* â”€â”€â”€ Cookie Consent Banner â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.cookie-consent {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    width: calc(100% - 48px);
    max-width: 860px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 40px rgba(0,0,0,0.15), 0 2px 8px rgba(0,0,0,0.08);
    border: 1px solid var(--gray-200);
    animation: cookie-slide-up 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
@keyframes cookie-slide-up {
    from { transform: translateX(-50%) translateY(100px); opacity: 0; }
    to   { transform: translateX(-50%) translateY(0);     opacity: 1; }
}
.cookie-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 20px 28px;
    flex-wrap: wrap;
}
.cookie-content {
    flex: 1;
    min-width: 0;
}
.cookie-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--heading);
    margin: 0 0 4px;
}
.cookie-text {
    font-size: 0.875rem;
    color: var(--gray-500);
    margin: 0;
    line-height: 1.5;
}
.cookie-link {
    color: var(--primary);
    text-decoration: underline;
    margin-left: 4px;
}
.cookie-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-shrink: 0;
}
.cookie-btn-decline {
    background: var(--off-white);
    color: var(--gray-600);
    border: 1px solid var(--gray-200);
    padding: 10px 20px;
    font-size: 0.875rem;
}
.cookie-btn-decline:hover {
    background: var(--gray-200);
    color: var(--heading);
}
.cookie-btn-accept {
    padding: 10px 24px;
    font-size: 0.875rem;
}
@media (max-width: 600px) {
    .cookie-inner   { flex-direction: column; align-items: flex-start; padding: 20px; }
    .cookie-actions { width: 100%; justify-content: flex-end; }
}

/* â”€â”€â”€ Back to Top Button â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.back-to-top {
    position: fixed;
    bottom: 100px;
    right: 24px;
    z-index: 998;
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
    animation: btt-fadein 0.3s ease both;
}
@keyframes btt-fadein {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(0,0,0,0.25);
}
.back-to-top:focus-visible {
    outline: 3px solid var(--secondary);
    outline-offset: 3px;
}

/* â”€â”€â”€ Reading Progress Bar â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.reading-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9997;
    height: 3px;
    background: rgba(0,0,0,0.06);
    pointer-events: none;
}
.reading-progress-fill {
    height: 100%;
    width: 0%;
    background: var(--gradient-primary);
    transition: width 0.1s linear;
    border-radius: 0 2px 2px 0;
}

/* â”€â”€â”€ Social Share Buttons â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.social-share-block {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 48px;
    padding: 20px 24px;
    background: var(--off-white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    flex-wrap: wrap;
}
.social-share-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gray-600);
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}
.social-share-btns {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    color: var(--white);
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.share-btn:hover {
    transform: translateY(-3px) scale(1.08);
    box-shadow: 0 6px 18px rgba(0,0,0,0.2);
}
.share-fb { background: #1877F2; }
.share-li { background: #0A66C2; }
.share-tw { background: #000; }
.share-wa { background: #25D366; }
.share-copy {
    background: var(--primary);
    color: var(--white);
    width: 40px;
    height: 40px;
    border-radius: 50%;
}
.share-copy:hover {
    background: var(--primary-dark);
}
@media (max-width: 600px) {
    .social-share-block { flex-direction: column; align-items: flex-start; }
}

/* â”€â”€â”€ Print Styles â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
@media print {
    .header, .footer, .whatsapp-btn, .back-to-top,
    .cookie-consent, .reading-progress-bar, #page-preloader,
    .sidebar, .btn, .cta-section, .social-share-block,
    nav, .top-bar, .mobile-toggle { display: none !important; }

    body { background: white !important; color: black !important; font-size: 12pt; }
    a    { color: black !important; text-decoration: underline; }
    h1, h2, h3, h4 { page-break-after: avoid; color: black !important; }
    img  { max-width: 100% !important; }
    .container { max-width: 100% !important; padding: 0 !important; }
    .page-hero { background: none !important; color: black !important; padding: 20px 0 !important; }
    .page-hero h1 { color: black !important; }
    .blog-post-body { max-width: 100% !important; }
}

/* â”€â”€â”€ FAQ Categories â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.faq-category-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 32px;
}
.faq-cat-pill {
    background: var(--white);
    border: 1px solid rgba(3, 70, 110, 0.15);
    border-radius: 40px;
    padding: 10px 20px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary);
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.faq-cat-pill:hover {
    border-color: var(--secondary);
    background: rgba(3, 70, 110, 0.02);
}
.faq-cat-pill.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}
.faq-cat-pill i {
    font-size: 1rem;
}

/* â”€â”€â”€ FAQ Accordion â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.faq-accordion-wrapper {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.faq-item {
    background: var(--white);
    border: 1px solid rgba(3, 70, 110, 0.1);
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: var(--transition);
}
.faq-item:hover {
    box-shadow: 0 4px 16px rgba(0, 110, 158, 0.08);
    border-color: rgba(3, 70, 110, 0.25);
}
.faq-item.active {
    border-color: var(--secondary);
    box-shadow: 0 4px 16px rgba(0, 110, 158, 0.1);
}
.faq-question {
    width: 100%;
    text-align: left;
    padding: 18px 24px;
    background: none;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary);
    cursor: pointer;
    transition: background 0.3s ease;
}
.faq-question:hover {
    background: rgba(3, 70, 110, 0.02);
}
.faq-question:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: -2px;
}
.faq-icon {
    font-size: 0.85rem;
    color: var(--primary);
    transition: transform 0.3s ease;
}
.faq-question[aria-expanded="true"] {
    color: var(--primary);
}
.faq-question[aria-expanded="true"] .faq-icon,
.faq-item.active .faq-icon {
    transform: rotate(180deg);
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}
.faq-answer-inner {
    padding: 0 24px 20px 24px;
    color: var(--gray-600);
    line-height: 1.6;
    font-size: 0.95rem;
}
.faq-answer-inner p:last-child {
    margin-bottom: 0;
}

/* â”€â”€â”€ Mobile Responsiveness Fixes â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

/* 1. Header Alignments */
@media (max-width: 992px) {
    .logo img {
        height: 24px;
    }
    .mobile-toggle {
        margin-left: auto;
    }
}
@media (max-width: 768px) {
    .top-bar {
        display: none;
    }
}

/* 2. Footer Alignments */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
    .footer-newsletter {
        grid-column: 1 / -1;
    }
}
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    .footer-col {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .footer-social {
        justify-content: center;
    }
    .footer-contact-info {
        align-items: center;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    .footer-links-col {
        text-align: center;
    }
    .footer-links ul {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

/* 3. Single Post Clean Layout */
.blog-container {
    background: var(--white);
    padding: 48px;
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}
.blog-featured-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 40px;
    box-shadow: var(--shadow-md);
    height: 450px;
}
.blog-post-header {
    border-bottom: 1px solid var(--gray-200);
    padding-bottom: 24px;
    margin-bottom: 48px;
}
.blog-cat-badge {
    background: var(--accent-glow);
    color: var(--primary);
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
    display: inline-block;
}
.blog-post-title {
    font-size: 2.8rem;
    color: var(--heading);
    margin: 20px 0;
    line-height: 1.2;
    font-weight: 700;
}
.blog-meta-flex {
    display: flex;
    gap: 24px;
    color: var(--gray-500);
    font-size: 0.95rem;
    align-items: center;
    flex-wrap: wrap;
}
.single-post-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 56px;
    align-items: start;
}

@media (max-width: 1024px) {
    .blog-container {
        padding: 32px;
    }
    .single-post-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}
@media (max-width: 768px) {
    .blog-container {
        padding: 20px;
    }
    .blog-featured-image {
        height: 250px;
        margin-bottom: 24px;
    }
    .blog-post-title {
        font-size: 1.8rem;
    }
    .blog-post-header {
        margin-bottom: 32px;
    }
    .blog-meta-flex {
        gap: 16px;
        font-size: 0.85rem;
    }
}

/* â”€â”€â”€ Client Logo Infinite Carousel â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

/*
 * Uses CSS custom property --slide-w so the keyframe animation distance
 * is always exactly correct at every viewport size without redefining
 * @keyframes inside a media query (which is unreliable cross-browser).
 */
.client-carousel-section {
    --slide-w: 180px;     /* desktop slide width */
    --slide-count: 10;    /* number of ORIGINAL logo slides (not duplicates) */
}

.carousel-track-container {
    width: 100%;
    max-width: 100vw;
    overflow: hidden;
    position: relative;
}

/* Fade edges left + right */
.carousel-track-container::before,
.carousel-track-container::after {
    content: '';
    position: absolute;
    top: 0;
    width: 80px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}
.carousel-track-container::before {
    left: 0;
    background: linear-gradient(to right, var(--white) 0%, transparent 100%);
}
.carousel-track-container::after {
    right: 0;
    background: linear-gradient(to left, var(--white) 0%, transparent 100%);
}

.carousel-track {
    display: flex;
    flex-wrap: nowrap;              /* never wrap â€” keep all logos on one line */
    align-items: center;
    width: max-content;             /* grow to fit all slides naturally */
    animation: scrollCarousel 30s linear infinite;
    will-change: transform;         /* GPU layer for smooth animation */
}

.carousel-track:hover {
    animation-play-state: paused;
}

.carousel-slide {
    flex: 0 0 var(--slide-w);
    width: var(--slide-w);
    padding: 0 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    filter: grayscale(100%) opacity(0.55);
    transition: filter 0.3s ease, transform 0.3s ease;
}
.carousel-slide:hover {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.08);
}
.carousel-slide img {
    display: block;
    max-width: 100%;
    max-height: 56px;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Single keyframe â€” uses CSS var so it auto-adjusts at every breakpoint */
@keyframes scrollCarousel {
    0%   { transform: translateX(0); }
    100% { transform: translateX(calc(var(--slide-w) * var(--slide-count) * -1)); }
}

/* ---- Tablet (â‰¤ 1024px) ---- */
@media (max-width: 1024px) {
    .client-carousel-section { --slide-w: 160px; }
    .carousel-track-container::before,
    .carousel-track-container::after { width: 50px; }
}

/* ---- Mobile (â‰¤ 768px) ---- */
@media (max-width: 768px) {
    .client-carousel-section { --slide-w: 130px; }
    .carousel-slide { padding: 0 16px; }
    .carousel-slide img { max-height: 44px; }
    .carousel-track-container::before,
    .carousel-track-container::after { width: 32px; }
}

/* ---- Small phone (â‰¤ 480px) ---- */
@media (max-width: 480px) {
    .client-carousel-section { --slide-w: 110px; }
    .carousel-slide { padding: 0 10px; }
    .carousel-slide img { max-height: 36px; }
    .carousel-track-container::before,
    .carousel-track-container::after { width: 20px; }
}

