/* DigiOpera — content visibility + footer icons fix layer (load last) */

/* ── 1. Content hidden by premium-ui animate-on-scroll (opacity:0 until JS) ── */
.animate-on-scroll {
    opacity: 1 !important;
    transform: none;
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.animate-on-scroll.animated {
    opacity: 1 !important;
    animation: cvFadeUp 0.6s ease both;
}

@keyframes cvFadeUp {
    from {
        opacity: 0.4;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── 2. Gradient text invisible on light backgrounds (enhanced.css / premium-ui.css) ── */
.section-title,
.hero-title,
h1.hero-title,
h2.section-title {
    -webkit-text-fill-color: currentColor !important;
    background: none !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
}

body.home-premium .hero-title,
body.home-international .hero-title,
body.home-compact .hero-title {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

body.home-premium section:not(.our-product-section) .section-title,
body.page-premium section:not(.our-product-section) .section-title {
    color: #0c4a6e !important;
    -webkit-text-fill-color: #0c4a6e !important;
}

body.page-premium .page-hero h1,
body.page-premium .page-hero p,
body.page-premium .careers-hero h1,
body.page-premium .blog-post-hero h1 {
    -webkit-text-fill-color: currentColor !important;
    color: #ffffff !important;
}

/* ── 3. Body text contrast on light sections ── */
body.home-premium section:not(.our-product-section) p,
body.home-premium section:not(.our-product-section) li,
body.page-premium section:not(.our-product-section) p,
body.page-premium section:not(.our-product-section) li {
    color: #475569;
}

/* Our Product (UdyogBill) — dark section needs light text */
body.home-premium .our-product-section .section-title,
body.page-premium .our-product-section .section-title {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

body.home-premium .our-product-section .section-subtitle,
body.page-premium .our-product-section .section-subtitle {
    color: #cbd5e1 !important;
}

body.home-premium .our-product-section .udyogbill-lead,
body.page-premium .our-product-section .udyogbill-lead {
    color: #e2e8f0 !important;
}

body.home-premium .our-product-section .udyogbill-tagline,
body.page-premium .our-product-section .udyogbill-tagline {
    color: #4ade80 !important;
}

body.home-premium .our-product-section .udyogbill-features li,
body.page-premium .our-product-section .udyogbill-features li {
    color: #f1f5f9 !important;
}

body.home-premium .our-product-section .udyogbill-highlight span,
body.page-premium .our-product-section .udyogbill-highlight span {
    color: #cbd5e1 !important;
}

body.home-premium .service-card p,
body.home-premium .service-features li,
body.page-premium .service-card p,
body.page-premium .service-detail p {
    color: #334155 !important;
}

/* ── 4. Footer — ensure readable + icon system ── */
.footer {
    position: relative;
    background: linear-gradient(180deg, #0f172a 0%, #020617 100%) !important;
    color: rgba(255, 255, 255, 0.82) !important;
}

.footer .footer-section h3,
.footer .footer-section h4 {
    color: #ffffff !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer .footer-section p,
.footer .footer-address,
.footer .footer-section ul li a,
.footer .footer-emails a,
.footer .footer-bottom p,
.footer .trust-section-lead,
.footer .trust-logo-caption {
    color: rgba(255, 255, 255, 0.78) !important;
}

.footer .footer-section ul li a:hover,
.footer .footer-emails a:hover {
    color: #38bdf8 !important;
}

.footer .footer-trust-compliance h4 {
    color: #ffffff !important;
}

/* Icon helper — inline SVG mask */
.footer .fi {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.05rem;
    height: 1.05rem;
    flex-shrink: 0;
    background: #38bdf8;
    mask: var(--fi-icon) center / contain no-repeat;
    -webkit-mask: var(--fi-icon) center / contain no-repeat;
}

.footer .fi--building { --fi-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M3 21h18M5 21V7l7-4 7 4v14M9 21v-6h6v6'/%3E%3C/svg%3E"); }
.footer .fi--code    { --fi-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M10 20l4-16m4 4l4 4-4 4M6 16l-4-4 4-4'/%3E%3C/svg%3E"); }
.footer .fi--grid    { --fi-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M4 6h16M4 12h16M4 18h16'/%3E%3C/svg%3E"); }
.footer .fi--folder  { --fi-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M3 7a2 2 0 012-2h4l2 2h8a2 2 0 012 2v9a2 2 0 01-2 2H5a2 2 0 01-2-2V7z'/%3E%3C/svg%3E"); }
.footer .fi--users   { --fi-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M17 20h5v-2a4 4 0 00-5-3.87M9 20H4v-2a4 4 0 015-3.87M16 7a4 4 0 11-8 0 4 4 0 018 0z'/%3E%3C/svg%3E"); }
.footer .fi--globe   { --fi-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M12 21a9 9 0 100-18 9 9 0 000 18zM3.6 9h16.8M3.6 15h16.8M12 3c2.5 2.5 2.5 15.5 0 18M12 3c-2.5 2.5-2.5 15.5 0 18'/%3E%3C/svg%3E"); }
.footer .fi--compare { --fi-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M9 19V6l-3 3M15 5v13l3-3'/%3E%3C/svg%3E"); }
.footer .fi--shield  { --fi-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M12 3l8 4v6c0 5-3.5 8.5-8 9-4.5-.5-8-4-8-9V7l8-4z'/%3E%3C/svg%3E"); }
.footer .fi--mail    { --fi-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M3 8l9 6 9-6M5 19h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z'/%3E%3C/svg%3E"); }
.footer .fi--pin     { --fi-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M12 21s7-4.5 7-11a7 7 0 10-14 0c0 6.5 7 11 7 11z'/%3E%3Ccircle cx='12' cy='10' r='2.5'/%3E%3C/svg%3E"); }
.footer .fi--link    { --fi-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M9 5l-4 4 4 4M15 19l4-4-4-4'/%3E%3C/svg%3E"); }

/* Link chevron icons */
.footer .footer-section ul li a {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.footer .footer-section ul li a::before {
    content: '';
    width: 0.85rem;
    height: 0.85rem;
    flex-shrink: 0;
    background: #38bdf8;
    opacity: 0.75;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white' stroke-width='2.5'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M9 5l7 7-7 7'/%3E%3C/svg%3E") center / contain no-repeat;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white' stroke-width='2.5'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M9 5l7 7-7 7'/%3E%3C/svg%3E") center / contain no-repeat;
    transition: opacity 0.2s ease;
}

.footer .footer-section ul li a:hover::before {
    opacity: 1;
}

.footer .footer-emails a {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.footer .footer-emails a::before {
    content: '';
    width: 0.9rem;
    height: 0.9rem;
    flex-shrink: 0;
    background: #38bdf8;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M3 8l9 6 9-6M5 19h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z'/%3E%3C/svg%3E") center / contain no-repeat;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M3 8l9 6 9-6M5 19h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.footer .footer-address strong {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: rgba(255, 255, 255, 0.95) !important;
}

.footer .footer-address strong::before {
    content: '';
    width: 0.9rem;
    height: 0.9rem;
    background: #38bdf8;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M12 21s7-4.5 7-11a7 7 0 10-14 0c0 6.5 7 11 7 11z'/%3E%3C/svg%3E") center / contain no-repeat;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M12 21s7-4.5 7-11a7 7 0 10-14 0c0 6.5 7 11 7 11z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.footer .footer-trust-compliance h4 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer p,
.footer div p,
.footer address {
    color: rgba(255, 255, 255, 0.78) !important;
}

.footer strong {
    color: rgba(255, 255, 255, 0.95) !important;
}

.footer b,
.footer [style*="color: black"],
.footer [style*="color:black"] {
    color: rgba(255, 255, 255, 0.95) !important;
}

/* ── 6. Trust cards visible on dark footer ── */
.footer .trust-logo-card {
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
}

.footer .trust-logo-caption {
    color: rgba(255, 255, 255, 0.65) !important;
}

/* ── 7. Light-surface text inside dark CTA bands (pricing-note, etc.) ── */
body.page-premium .pricing-note details,
body.page-premium .pricing-note details summary,
body.page-premium .pricing-note details strong,
body.page-premium .pricing-note .faq-item,
body.page-premium .pricing-note .faq-item summary,
body.page-premium .pricing-note .faq-accordion details,
body.page-premium .pricing-note .faq-accordion details summary {
    color: #1e293b !important;
    -webkit-text-fill-color: #1e293b !important;
}

body.page-premium .pricing-note details p,
body.page-premium .pricing-note .faq-item p,
body.page-premium .pricing-note .faq-item .faq-answer p {
    color: #475569 !important;
    -webkit-text-fill-color: #475569 !important;
}

/* FAQ / accordion cards — white surfaces need dark ink site-wide */
body.page-premium details.faq-item,
body.page-premium details.faq-item summary,
body.page-premium details.landing-faq-item,
body.page-premium details.landing-faq-item summary,
body.page-premium .faq-accordion details summary,
body.page-premium .landing-faq details summary,
body.page-premium .contact-faq-section details summary,
body.page-premium .home-faq details.faq-item summary,
body.page-premium .service-card.faq-item summary {
    color: #1e293b !important;
    -webkit-text-fill-color: #1e293b !important;
}

body.page-premium details.faq-item p,
body.page-premium details.landing-faq-item p,
body.page-premium .landing-faq details p,
body.page-premium .contact-faq-section details p,
body.page-premium .home-faq details.faq-item p,
body.page-premium .service-card.faq-item p,
body.page-premium .faq-item .faq-answer,
body.page-premium .faq-item .faq-answer p {
    color: #475569 !important;
    -webkit-text-fill-color: #475569 !important;
}

/* Careers FAQ blocks (non-details) */
body.page-premium .faq-item h3,
body.page-premium .faq-item .faq-question {
    color: #1e293b !important;
    -webkit-text-fill-color: #1e293b !important;
}

/* Inline light cards — portfolio outcomes, info panels, etc. */
body.page-premium [style*="background: #f8fafc"] h2,
body.page-premium [style*="background: #f8fafc"] h3,
body.page-premium [style*="background: #f8fafc"] p,
body.page-premium [style*="background:#f8fafc"] h2,
body.page-premium [style*="background:#f8fafc"] h3,
body.page-premium [style*="background:#f8fafc"] p,
body.page-premium [style*="background: rgba(255, 255, 255"] h2,
body.page-premium [style*="background: rgba(255, 255, 255"] h3,
body.page-premium [style*="background: rgba(255, 255, 255"] p,
body.page-premium [style*="background:rgba(255, 255, 255"] h2,
body.page-premium [style*="background:rgba(255, 255, 255"] h3,
body.page-premium [style*="background:rgba(255, 255, 255"] p {
    color: #334155 !important;
    -webkit-text-fill-color: #334155 !important;
}

/* Landing / comparison tables on light sections */
body.landing-premium .landing-table th,
body.landing-premium .landing-table td,
body.page-premium .landing-table th,
body.page-premium .landing-table td,
body.page-premium .comparison-table th,
body.page-premium .comparison-table td {
    color: #1e293b !important;
    -webkit-text-fill-color: #1e293b !important;
}

/* Contact optional panels */
body.contact-premium .contact-info-panel summary,
body.contact-premium .contact-optional-fields summary {
    color: #1e293b !important;
    -webkit-text-fill-color: #1e293b !important;
}

body.contact-premium .contact-info-panel p,
body.contact-premium .contact-optional-fields p,
body.contact-premium .contact-info-panel li {
    color: #475569 !important;
    -webkit-text-fill-color: #475569 !important;
}

/* ── 9. Premium dynamic header (nav options unchanged) ── */
.header {
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(14px) saturate(1.15);
    -webkit-backdrop-filter: blur(14px) saturate(1.15);
    border-bottom: 1px solid rgba(14, 165, 233, 0.1);
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.07) !important;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: linear-gradient(90deg, #0ea5e9, #10b981, #6366f1, #0ea5e9);
    background-size: 200% 100%;
    animation: cvHeaderGlow 8s linear infinite;
    opacity: 0.9;
    pointer-events: none;
}

@keyframes cvHeaderGlow {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

.navbar {
    padding: 0.65rem 0 !important;
    position: relative;
    z-index: 1;
}

.logo {
    transition: transform 0.25s ease, filter 0.25s ease;
}

.logo:hover {
    transform: scale(1.03);
    filter: drop-shadow(0 4px 12px rgba(14, 165, 233, 0.22));
}

.nav-menu a::after {
    display: none !important;
}

.dropdown-menu {
    border: 1px solid rgba(14, 165, 233, 0.12) !important;
    border-radius: 12px !important;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12) !important;
    padding: 0.45rem !important;
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.dropdown-menu a {
    border-radius: 8px;
    font-weight: 500;
    transition: background 0.2s ease, color 0.2s ease;
}

.dropdown-menu a:hover {
    background: rgba(14, 165, 233, 0.08) !important;
    color: #0284c7 !important;
}

.mobile-menu-toggle span {
    background: linear-gradient(90deg, #0ea5e9, #0284c7);
    border-radius: 2px;
}

@media (min-width: 769px) {
    .nav-menu {
        gap: 0.25rem !important;
    }

    .nav-menu > li > a:not(.dropbtn),
    .nav-menu > li > .dropbtn {
        display: inline-flex;
        align-items: center;
        padding: 0.45rem 0.8rem;
        border-radius: 999px;
        font-size: 0.9rem;
        font-weight: 600;
        color: #334155 !important;
        transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    }

    .nav-menu > li > a:not(.dropbtn):hover,
    .nav-menu > li > .dropbtn:hover {
        color: #0284c7 !important;
        background: rgba(14, 165, 233, 0.1);
    }

    .nav-menu > li > a.active:not(.dropbtn) {
        color: #0284c7 !important;
        background: linear-gradient(135deg, rgba(14, 165, 233, 0.14), rgba(16, 185, 129, 0.1));
        box-shadow: inset 0 0 0 1px rgba(14, 165, 233, 0.22);
    }

    .nav-menu > li:last-child > a {
        background: linear-gradient(135deg, #0ea5e9, #0284c7);
        color: #fff !important;
        padding: 0.5rem 1.15rem;
        box-shadow: 0 4px 14px rgba(14, 165, 233, 0.35);
    }

    .nav-menu > li:last-child > a:hover {
        background: linear-gradient(135deg, #0284c7, #0369a1);
        color: #fff !important;
        transform: translateY(-1px);
        box-shadow: 0 6px 18px rgba(14, 165, 233, 0.42);
    }

    .nav-menu > li:last-child > a.active {
        background: linear-gradient(135deg, #0284c7, #0369a1);
        color: #fff !important;
    }
}

/* ── 10. Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
    .header::after {
        animation: none !important;
    }

    .animate-on-scroll,
    .animate-on-scroll.animated {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}
