/* =============================================
   IMPROVEMENTS — Performance, UX, Accessibility
   ============================================= */

/* 1. Color Contrast Fix — WCAG AA Compliant */
:root {
    --text-muted: #b8b8b8;
}

/* 2. Blog Card Title — Remove need for inline font-size */
.blog-title {
    font-size: clamp(1rem, 2vw, 1.25rem) !important;
    line-height: 1.4;
}
.blog-card.featured .blog-title {
    font-size: clamp(1.35rem, 2.5vw, 1.75rem) !important;
}

/* 3. Blog card images — consistent aspect ratio */
.blog-card-img,
.blog-card-img-featured {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 12px 12px 0 0;
    display: block;
}
.blog-card-img-featured {
    height: 280px;
}

/* 4. Submit Button — Comprehensive styling */
.submit-btn {
    width: 100%;
    background: var(--text-main);
    color: var(--bg-dark);
    padding: 14px 28px;
    border-radius: 100px;
    border: 1px solid white;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    font-family: var(--font-main);
    letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
}
.submit-btn::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 0%; height: 100%;
    background: var(--gradient-main);
    transition: width 0.4s ease;
    z-index: -1;
}
.submit-btn:hover::before { width: 100%; }
.submit-btn:hover {
    color: white;
    border-color: var(--primary);
    box-shadow: 0 0 30px rgba(255, 107, 0, 0.4);
    transform: translateY(-2px);
}

/* 5. Newsletter Form — Responsive */
.newsletter-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    max-width: 500px;
    margin: 0 auto;
}
.newsletter-form .form-input {
    width: 100%;
    max-width: 400px;
    text-align: center;
}
@media (min-width: 600px) {
    .newsletter-form {
        flex-direction: row;
        justify-content: center;
    }
    .newsletter-form .form-input {
        max-width: 280px;
        text-align: left;
    }
}

/* 6. Blog Placeholder Images — CSS-based styling */
.blog-placeholder-img {
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(255, 107, 0, 0.05) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 180px;
    border-radius: 12px 12px 0 0;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.2);
    font-family: var(--font-display);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* 7. Page Hero — Consistent spacing across all pages */
.page-hero {
    padding-top: 140px;
    padding-bottom: 60px;
    text-align: center;
}
@media (min-width: 992px) {
    .page-hero {
        padding-top: 200px;
        padding-bottom: 80px;
    }
}

/* 8. Tablet Header Fix */
@media (min-width: 768px) and (max-width: 991px) {
    .header {
        width: 100% !important;
        left: 0 !important;
        transform: none !important;
        border-radius: 0 !important;
        top: 0 !important;
    }
}

/* 9. Form Inputs — Accessibility */
.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* 10. Inline-style replacements */
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }
.mt-40 { margin-top: 40px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }
.mb-40 { margin-bottom: 40px; }

/* 11. Hero section on why-us — Remove need for inline font-size */
.hero-title-xl {
    font-size: clamp(3rem, 6vw, 4.5rem);
    letter-spacing: -2px;
}

/* 12. Contact grid info heading — Remove inline style */
.contact-info .section-title {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    margin-bottom: 20px;
}

/* 13. CTA section desc spacing */
.cta-desc-spacing {
    margin-bottom: 30px;
}

/* 14. Mobile: Hero short fix — Give better min-height */
.hero-short {
    min-height: 60vh;
}
@media (min-width: 992px) {
    .hero-short {
        min-height: 70vh;
    }
}

/* 15. Why-us hero badge custom override — remove need for inline */
.hero-badge-alt {
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.1);
}
.pulse-green {
    background-color: #00ff88;
    box-shadow: 0 0 10px #00ff88;
}

/* 16. Why-us font-family subtitle override */
.hero-subtitle-mono {
    font-family: 'Space Grotesk', monospace;
    opacity: 0.7;
}

/* 17. Testimonial author span fix */
.company-name {
    color: var(--primary);
    font-size: 0.85rem;
}

/* 18. Scroll to top button accessibility */
.scroll-to-top {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 19. Mobile nav overlay fix */
@media (max-width: 991px) {
    .nav.active {
        display: flex !important;
        flex-direction: column;
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background: rgba(10, 10, 20, 0.97);
        backdrop-filter: blur(20px);
        padding: 24px;
        gap: 12px;
        z-index: 999;
        border-bottom: 1px solid var(--border-color);
    }
}

/* 20. Lazy loading visual */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.4s ease;
}
img[loading="lazy"].loaded {
    opacity: 1;
}

/* 21. Article main image */
.article-main-image {
    margin-bottom: 40px;
    border-radius: 16px;
    overflow: hidden;
}
.article-main-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* 22. Footer brand big — hide on mobile to save space */
@media (max-width: 767px) {
    .footer-brand-big {
        font-size: clamp(3rem, 20vw, 6rem);
    }
}

/* 23. CTA section bottom margin fix */
.cta-section {
    padding-top: 20px;
}

/* 24. Form label improvements */
.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-main);
}

/* 25. Social buttons on contact page */
.contact-socials {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 24px;
}

/* 26. FAQ grid responsive */
.faq-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}
@media (min-width: 768px) {
    .faq-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 27. Related articles section */
.related-articles {
    background-color: var(--bg-card);
}

/* 28. Honeypot field — visually hidden */
.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* 29. Skip to main content link (accessibility) */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary);
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    font-weight: 600;
    z-index: 10000;
    border-radius: 0 0 8px 0;
    transition: top 0.3s ease;
}
.skip-link:focus {
    top: 0;
}

/* =============================================
   SERVICE PAGE LAYOUT COMPONENTS
   ============================================= */

/* Hero short for service pages */
.service-hero {
    min-height: 65vh;
    display: flex;
    align-items: center;
}
.hero-subtitle.service-subtitle {
    max-width: 600px;
    margin: 0 auto;
}

/* Intro card spacing */
.service-intro-card {
    margin-bottom: 60px;
}

/* Flex row — replaces inline display:flex */
.service-row {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
}
.service-row-top {
    align-items: flex-start;
}

/* Column proportions */
.service-col-main  { flex: 1 1 500px; }
.service-col-aside { flex: 1 1 300px; }
.service-col-half  { flex: 1 1 400px; }

/* Stat number in aside */
.stat-big-number {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    color: var(--secondary);
    margin-bottom: 10px;
    font-family: var(--font-display);
    line-height: 1;
}
.stat-box {
    text-align: center;
    padding: 32px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-color);
    border-radius: 16px;
}
.stat-box p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Divider section inside card */
.divider-section {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
}

/* Sub-section heading */
.subsection-title {
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    margin-bottom: 20px;
    color: var(--text-main);
}

/* Value grid */
.value-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}
.value-heading {
    color: var(--secondary);
    margin-bottom: 10px;
    font-size: 1rem;
}
.value-text {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Section spacing helpers */
.mb-80 { margin-bottom: 80px; }
.mt-80 { margin-top: 80px; }

/* Service type label (colored sub-heading inside card) */
.service-type-label {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Section intro title */
.service-intro-title {
    font-size: clamp(1.6rem, 3vw, 2rem);
    margin-bottom: 20px;
}

/* Section CTA block */
.section-cta {
    margin-top: 80px;
    text-align: center;
}
.section-cta h3 {
    margin-bottom: 20px;
}
.section-cta-desc {
    color: var(--text-muted);
    margin-bottom: 30px;
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
}

/* FAQ inside service pages */
.faq-item {
    margin-bottom: 20px;
}
.faq-item:last-child { margin-bottom: 0; }
.faq-question {
    color: var(--text-main);
    margin-bottom: 6px;
    font-size: 1rem;
    font-weight: 600;
}
.faq-answer {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Modal / deliverables list */
.modal-list {
    margin-top: 20px;
}
.modal-list li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    font-size: 0.95rem;
    line-height: 1.6;
}
.modal-list li:last-child { border-bottom: none; }

/* Footer logo — remove inline style */
.footer-logo { height: 40px; }

/* =============================================
   CONTACT PAGE IMPROVEMENTS
   ============================================= */

.contact-link {
    color: var(--text-main);
    transition: color 0.3s;
}
.contact-link:hover { color: var(--primary); }

/* WhatsApp Floating Button */
.whatsapp-fab {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 56px;
    height: 56px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 998;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
}
.whatsapp-fab:hover {
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.6);
}
.whatsapp-fab svg {
    width: 28px;
    height: 28px;
    fill: white;
}
.whatsapp-fab-tooltip {
    position: absolute;
    right: 64px;
    background: rgba(10,10,20,0.9);
    color: white;
    font-size: 0.8rem;
    padding: 6px 12px;
    border-radius: 8px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    border: 1px solid var(--border-color);
}
.whatsapp-fab:hover .whatsapp-fab-tooltip {
    opacity: 1;
}

/* =============================================
   BREADCRUMB (service pages navigation)
   ============================================= */

/* 30. JSON-LD breadcrumb visibility */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb-sep { opacity: 0.4; }

.text-muted-p { color: var(--text-muted); }

/* =============================================
   CLIENT & PARTNER LOGO IMPROVEMENTS
   ============================================= */

/* Partners section — cleaner header */
.partners-section .section-header {
    margin-bottom: 40px;
}

/* Partner cards — uniform sizing, no blend mode issues */
.partner-card {
    background: #ffffff !important;
    border-radius: 14px !important;
    padding: 16px 28px !important;
    height: 88px !important;
    min-width: 160px !important;
    max-width: 220px !important;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(255,255,255,0.06) !important;
    transition: transform 0.25s ease, box-shadow 0.25s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}
.partner-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(255, 107, 0, 0.2) !important;
}
.partner-logo {
    max-height: 52px !important;
    width: auto !important;
    max-width: 140px !important;
    object-fit: contain !important;
    mix-blend-mode: normal !important;
    filter: none !important;
}

/* Partners grid — better spacing */
.partners-static-grid {
    gap: 24px !important;
}

/* Client marquee cards — uniform and polished */
.client-card {
    background: #ffffff !important;
    border-radius: 12px !important;
    padding: 14px 22px !important;
    margin: 0 12px !important;
    height: 88px !important;
    min-width: 160px !important;
    max-width: 220px !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(255,255,255,0.05) !important;
    transition: transform 0.25s ease, box-shadow 0.25s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0;
}
.client-card:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18) !important;
}
.client-logo {
    max-height: 58px !important;
    width: auto !important;
    max-width: 160px !important;
    object-fit: contain !important;
    mix-blend-mode: normal !important;
    filter: none !important;
}

/* Clients section heading */
.clients-section .section-header {
    margin-bottom: 40px;
}

/* Fade edges on marquee */
.marquee-container::before {
    background: linear-gradient(to right, var(--bg-dark) 0%, transparent 100%) !important;
}
.marquee-container::after {
    background: linear-gradient(to left, var(--bg-dark) 0%, transparent 100%) !important;
}
