/* =============================================
   KROXIA FOOTER V10 — PIXEL-PERFECT REDESIGN
   Light & Dark Mode — Matches Design Spec
   ============================================= */

/* ─────────────────────────────────────────────
   NEWSLETTER SECTION
───────────────────────────────────────────── */
.newsletter-section {
    position: relative;
    overflow: hidden;
    padding: 36px 0;
    background: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 40%, #e0e7ff 100%);
    margin: 0 24px;
    border-radius: 20px;
    margin-top: 0;
    margin-bottom: 0;
}
.newsletter-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 80% at 5% 50%, rgba(91,92,240,0.08), transparent),
        radial-gradient(ellipse 50% 70% at 95% 50%, rgba(124,77,255,0.06), transparent);
    pointer-events: none;
}

/* Decorative floating dots */
.nl-dot {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}
.nl-dot-orange {
    width: 10px; height: 10px;
    background: #f97316;
    top: 22px; left: 80px;
    opacity: 0.85;
}
.nl-dot-purple {
    width: 7px; height: 7px;
    background: #7C4DFF;
    bottom: 28px; left: 55px;
    opacity: 0.7;
}

/* Spiral decoration (right side) */
.nl-spiral {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.55;
    pointer-events: none;
}

/* Newsletter inner layout */
.newsletter-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
    padding: 4px 0;
}

.newsletter-content {
    display: flex;
    align-items: center;
    gap: 22px;
}

/* Large circle icon */
.newsletter-icon-circle {
    width: 72px; height: 72px;
    border-radius: 50%;
    background: rgba(91,92,240,0.15);
    border: 1.5px solid rgba(91,92,240,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #5B5CF0;
    flex-shrink: 0;
    box-shadow: 0 0 0 8px rgba(91,92,240,0.06);
}

/* Title */
.newsletter-title {
    font-family: var(--kroxia-font-heading, 'Space Grotesk', sans-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 6px;
    line-height: 1.2;
}
.nl-highlight {
    color: #f97316;
    background: linear-gradient(90deg, #f97316, #ef4444);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.newsletter-subtitle {
    font-size: 0.875rem;
    color: #475569;
    max-width: 320px;
    line-height: 1.6;
}

/* Form */
.newsletter-form { flex-shrink: 0; min-width: 380px; }
.newsletter-input-group {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.85);
    border: 1.5px solid rgba(91,92,240,0.2);
    border-radius: 12px;
    padding: 6px 6px 6px 16px;
    box-shadow: 0 2px 12px rgba(91,92,240,0.08);
}
.newsletter-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    padding: 10px 0;
    color: #1e293b;
    font-size: 0.9rem;
    min-width: 0;
}
.newsletter-input::placeholder { color: #94a3b8; }
.newsletter-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    padding: 12px 20px;
    background: linear-gradient(90deg, #7C4DFF, #5B5CF0);
    color: #fff;
    border: none;
    font-size: 0.875rem;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.2s ease;
    border-radius: 8px;
    flex-shrink: 0;
}
.newsletter-btn:hover { opacity: 0.9; }

/* ─────────────────────────────────────────────
   FOOTER MAIN — LIGHT MODE
───────────────────────────────────────────── */
.site-footer {
    background: #ffffff;
    color: #1e293b;
}

.footer-accent-bar {
    background: linear-gradient(90deg, var(--kroxia-primary,#5B5CF0), #7C4DFF, var(--kroxia-primary,#5B5CF0));
    background-size: 200% 100%;
    animation: footerAccentMove 4s ease-in-out infinite;
    height: 3px;
}
@keyframes footerAccentMove {
    0%,100% { background-position: 0% 50%; }
    50%      { background-position: 100% 50%; }
}

.footer-main { padding: 60px 0 48px; }
.footer-grid-4 { grid-template-columns: 1.5fr 1fr 1fr 1.15fr; gap: 48px; }

/* ─────────────────────────────────────────────
   FOOTER LOGO
───────────────────────────────────────────── */
.site-footer .footer-logo img,
.site-footer .footer-logo .custom-logo {
    filter: none;
    max-height: 38px;
    width: auto;
}

/* ─────────────────────────────────────────────
   FOOTER TAGLINE
───────────────────────────────────────────── */
.footer-tagline {
    color: #64748b;
    font-size: .88rem;
    line-height: 1.65;
    margin-bottom: 16px;
    max-width: 270px;
}

/* ─────────────────────────────────────────────
   FOOTER HEADINGS — purple underline accent
───────────────────────────────────────────── */
.site-footer .footer-heading {
    font-size: .875rem;
    font-weight: 700;
    color: #1e293b;
    text-transform: none;
    letter-spacing: normal;
    margin-bottom: 18px;
    padding-bottom: 10px;
    position: relative;
}
.site-footer .footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 28px; height: 2px;
    background: var(--kroxia-primary, #5B5CF0);
    border-radius: 2px;
}

/* ─────────────────────────────────────────────
   TRUST BADGES
───────────────────────────────────────────── */
.site-footer .footer-trust-badges {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
    margin-bottom: 20px;
}
.site-footer .trust-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    color: inherit;
    font-size: inherit;
}
.site-footer .trust-badge svg { color: inherit; }
.site-footer .trust-badge-label {
    display: block;
    font-weight: 600;
    font-size: .8rem;
    color: #1e293b;
    line-height: 1.3;
}
.site-footer .trust-badge-desc {
    display: block;
    font-size: .72rem;
    color: #94a3b8;
    line-height: 1.3;
}
.trust-icon-wrap {
    width: 34px; height: 34px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    border: 1px solid transparent;
}
.trust-icon-purple { background: rgba(91,92,240,.12);  border-color: rgba(91,92,240,.2);  color: #5B5CF0; }
.trust-icon-orange { background: rgba(249,115,22,.12); border-color: rgba(249,115,22,.2); color: #f97316; }
.trust-icon-green  { background: rgba(16,185,129,.12); border-color: rgba(16,185,129,.2); color: #10b981; }
.trust-icon-blue   { background: rgba(59,130,246,.12); border-color: rgba(59,130,246,.2); color: #3b82f6; }

/* ─────────────────────────────────────────────
   FOOTER LINKS — dot bullets + arrow
   (higher specificity to beat main.css)
───────────────────────────────────────────── */
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 0; }

.site-footer .footer-links li a,
.footer-col .footer-links li a,
.footer-services-col .footer-links li a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    font-size: .875rem;
    color: #475569 !important;
    text-decoration: none;
    transition: color .2s ease, padding-left .2s ease;
}
.site-footer .footer-links li a .fl-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--kroxia-primary, #5B5CF0);
    flex-shrink: 0;
}
.site-footer .footer-links li a span:not(.fl-dot) { flex: 1; }
.site-footer .footer-links li a .fl-arrow {
    opacity: 0;
    transition: opacity .2s ease, transform .2s ease;
    flex-shrink: 0;
    color: var(--kroxia-primary, #5B5CF0);
    margin-left: auto;
}
.site-footer .footer-links li a:hover,
.footer-col .footer-links li a:hover,
.footer-services-col .footer-links li a:hover {
    color: var(--kroxia-primary, #5B5CF0) !important;
    padding-left: 2px;
}
.site-footer .footer-links li a:hover .fl-arrow { opacity: 1; transform: translateX(3px); }
/* Hide the ::before arrow from main.css */
.site-footer .footer-links li a::before { display: none !important; }

/* ─────────────────────────────────────────────
   EXPLORE ALL SERVICES BUTTON
───────────────────────────────────────────── */
.footer-services-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    padding: 10px 18px;
    border: 1.5px solid var(--kroxia-primary, #5B5CF0);
    border-radius: 8px;
    color: var(--kroxia-primary, #5B5CF0);
    font-size: .82rem;
    font-weight: 600;
    text-decoration: none;
    transition: all .2s ease;
}
.footer-services-btn:hover {
    background: var(--kroxia-primary, #5B5CF0);
    color: #fff;
}

/* ─────────────────────────────────────────────
   CONTACT INFO
───────────────────────────────────────────── */
.site-footer .footer-contact-list {
    list-style: none; padding: 0; margin: 0;
    display: flex; flex-direction: column; gap: 14px;
}
.site-footer .footer-contact-list li {
    display: flex; align-items: flex-start; gap: 12px;
    font-size: .85rem; color: #64748b; line-height: 1.6;
}
.site-footer .footer-contact-list a {
    color: #64748b;
    transition: color .2s ease;
    text-decoration: none;
}
.site-footer .footer-contact-list a:hover { color: var(--kroxia-primary, #5B5CF0); }

.contact-icon {
    width: 36px; height: 36px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    border: 1px solid transparent;
}
.contact-icon-purple { background: rgba(91,92,240,.12);  border-color: rgba(91,92,240,.2);  color: #5B5CF0; }
.contact-icon-orange { background: rgba(249,115,22,.12); border-color: rgba(249,115,22,.2); color: #f97316; }
.contact-icon-green  { background: rgba(16,185,129,.12); border-color: rgba(16,185,129,.2); color: #10b981; }
.contact-icon-blue   { background: rgba(59,130,246,.12); border-color: rgba(59,130,246,.2); color: #3b82f6; }

/* ─────────────────────────────────────────────
   FEATURES BAR — card style
───────────────────────────────────────────── */
.footer-features-bar {
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    padding: 20px 0;
    background: #f8fafc;
}
.footer-features-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}
.footer-feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px 16px;
    min-width: 160px;
}
.footer-feature-text { display: flex; flex-direction: column; }
.footer-feature-label { font-size: .82rem; font-weight: 700; color: #1e293b; line-height: 1.2; }
.footer-feature-desc  { font-size: .72rem; color: #64748b; line-height: 1.3; }

.footer-feature-icon {
    width: 42px; height: 42px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    border: 1px solid transparent;
}
.footer-feature-icon-orange { background: rgba(249,115,22,.12); border-color: rgba(249,115,22,.2); color: #f97316; }
.footer-feature-icon-purple { background: rgba(91,92,240,.12);  border-color: rgba(91,92,240,.2);  color: #5B5CF0; }
.footer-feature-icon-green  { background: rgba(16,185,129,.12); border-color: rgba(16,185,129,.2); color: #10b981; }
.footer-feature-icon-pink   { background: rgba(236,72,153,.12); border-color: rgba(236,72,153,.2); color: #ec4899; }
.footer-feature-icon-blue   { background: rgba(59,130,246,.12); border-color: rgba(59,130,246,.2); color: #3b82f6; }

/* ─────────────────────────────────────────────
   FOOTER BOTTOM BAR — light
───────────────────────────────────────────── */
.site-footer .footer-bottom {
    border-top: 1px solid #e2e8f0;
    padding: 18px 0;
    background: #ffffff;
}
.site-footer .footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}
.site-footer .footer-copyright { font-size: .85rem; color: #64748b; }
.site-footer .footer-copyright a { color: var(--kroxia-primary, #5B5CF0); font-weight: 600; text-decoration: none; }

.site-footer .footer-bottom-links { display: flex; align-items: center; gap: 0; flex-wrap: wrap; }
.site-footer .footer-bottom-links a {
    font-size: .82rem;
    color: #64748b;
    text-decoration: none;
    padding: 0 14px;
    transition: color .2s ease;
    position: relative;
}
.site-footer .footer-bottom-links a + a::before {
    content: '|';
    position: absolute;
    left: 0;
    color: #cbd5e1;
}
.site-footer .footer-bottom-links a:hover { color: var(--kroxia-primary, #5B5CF0); }

/* ─────────────────────────────────────────────
   BOTTOM SOCIAL — brand colors
───────────────────────────────────────────── */
.footer-bottom-social {
    display: flex;
    align-items: center;
    gap: 8px;
}
.footer-follow-label {
    font-size: .8rem;
    color: #64748b;
    margin-right: 4px;
    white-space: nowrap;
    font-weight: 600;
}
.footer-bottom-social-link {
    width: 32px; height: 32px;
    border-radius: 8px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    color: #ffffff !important;
    transition: opacity .2s ease, transform .2s ease;
    text-decoration: none;
    flex-shrink: 0;
}
.footer-bottom-social-link:hover { opacity: 0.85; transform: translateY(-2px); }

/* Brand colors */
.footer-bottom-social-link.social-fb { background: #1877F2; }
.footer-bottom-social-link.social-li { background: #0A66C2; }
.footer-bottom-social-link.social-tw { background: #1DA1F2; }
.footer-bottom-social-link.social-ig { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.footer-bottom-social-link.social-yt { background: #FF0000; }

/* ─────────────────────────────────────────────
   FEATURES BAR — light override (main.css is dark by default)
───────────────────────────────────────────── */
.site-footer .footer-features-bar {
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    padding: 20px 0;
    background: #f8fafc;
}
.site-footer .footer-feature-label { color: #1e293b; }
.site-footer .footer-feature-desc  { color: #64748b; }

/* ─────────────────────────────────────────────
   DARK MODE OVERRIDES
───────────────────────────────────────────── */

/* Newsletter — dark */
[data-theme="dark"] .newsletter-section {
    background: linear-gradient(135deg, #0d1527 0%, #0a1020 60%, #0d1020 100%);
    border: 1px solid rgba(91,92,240,0.15);
}
[data-theme="dark"] .newsletter-section::before {
    background:
        radial-gradient(ellipse 60% 80% at 5% 50%, rgba(91,92,240,0.12), transparent),
        radial-gradient(ellipse 50% 70% at 95% 50%, rgba(124,77,255,0.08), transparent);
}
[data-theme="dark"] .newsletter-icon-circle {
    background: rgba(91,92,240,0.18);
    border-color: rgba(91,92,240,0.3);
    color: #7C7CF5;
    box-shadow: 0 0 0 8px rgba(91,92,240,0.07);
}
[data-theme="dark"] .newsletter-title { color: #ffffff; }
[data-theme="dark"] .newsletter-subtitle { color: rgba(255,255,255,0.6); }
[data-theme="dark"] .newsletter-input-group {
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.12);
    box-shadow: none;
}
[data-theme="dark"] .newsletter-input { color: #ffffff; }
[data-theme="dark"] .newsletter-input::placeholder { color: rgba(255,255,255,0.35); }
[data-theme="dark"] .nl-dot-orange { opacity: 0.9; }
[data-theme="dark"] .nl-dot-purple { opacity: 0.8; }

/* Footer main — dark */
[data-theme="dark"] .site-footer { background: #0a0f1e; color: rgba(255,255,255,.7); }
[data-theme="dark"] .site-footer .footer-tagline { color: rgba(255,255,255,.55); }
[data-theme="dark"] .site-footer .footer-heading { color: #ffffff; text-transform: none; }
[data-theme="dark"] .site-footer .footer-heading::after { background: var(--kroxia-primary, #5B5CF0); }

/* Logo dark */
[data-theme="dark"] .site-footer .footer-logo img,
[data-theme="dark"] .site-footer .footer-logo .custom-logo {
    filter: brightness(0) invert(1);
}

/* Trust badges dark */
[data-theme="dark"] .site-footer .trust-badge-label { color: rgba(255,255,255,.8); }
[data-theme="dark"] .site-footer .trust-badge-desc  { color: rgba(255,255,255,.35); }
[data-theme="dark"] .site-footer .trust-icon-purple { background: rgba(91,92,240,.18); }
[data-theme="dark"] .site-footer .trust-icon-orange { background: rgba(249,115,22,.18); }
[data-theme="dark"] .site-footer .trust-icon-green  { background: rgba(16,185,129,.18); }
[data-theme="dark"] .site-footer .trust-icon-blue   { background: rgba(59,130,246,.18); }

/* Links dark */
[data-theme="dark"] .site-footer .footer-links li a,
[data-theme="dark"] .footer-col .footer-links li a,
[data-theme="dark"] .footer-services-col .footer-links li a {
    color: rgba(255,255,255,.55) !important;
}
[data-theme="dark"] .site-footer .footer-links li a:hover,
[data-theme="dark"] .footer-col .footer-links li a:hover {
    color: var(--kroxia-primary, #5B5CF0) !important;
}

/* Explore button dark */
[data-theme="dark"] .site-footer .footer-services-btn {
    border-color: rgba(91,92,240,.5);
    color: rgba(255,255,255,.75);
}
[data-theme="dark"] .site-footer .footer-services-btn:hover {
    background: var(--kroxia-primary, #5B5CF0);
    border-color: var(--kroxia-primary, #5B5CF0);
    color: #fff;
}

/* Contact info dark */
[data-theme="dark"] .site-footer .footer-contact-list li { color: rgba(255,255,255,.55); }
[data-theme="dark"] .site-footer .footer-contact-list a  { color: rgba(255,255,255,.55); }
[data-theme="dark"] .site-footer .footer-contact-list a:hover { color: var(--kroxia-primary, #5B5CF0); }
[data-theme="dark"] .site-footer .contact-icon-purple { background: rgba(91,92,240,.18); }
[data-theme="dark"] .site-footer .contact-icon-orange { background: rgba(249,115,22,.18); }
[data-theme="dark"] .site-footer .contact-icon-green  { background: rgba(16,185,129,.18); }
[data-theme="dark"] .site-footer .contact-icon-blue   { background: rgba(59,130,246,.18); }

/* Features bar dark */
[data-theme="dark"] .site-footer .footer-features-bar {
    border-top-color: rgba(255,255,255,.07);
    border-bottom-color: rgba(255,255,255,.07);
    background: rgba(255,255,255,.02);
}
[data-theme="dark"] .site-footer .footer-feature-item {
    background: rgba(255,255,255,.04);
    border-color: rgba(255,255,255,.08);
}
[data-theme="dark"] .site-footer .footer-feature-label { color: rgba(255,255,255,.85); }
[data-theme="dark"] .site-footer .footer-feature-desc  { color: rgba(255,255,255,.4); }
[data-theme="dark"] .site-footer .footer-feature-icon-orange { background: rgba(249,115,22,.18); }
[data-theme="dark"] .site-footer .footer-feature-icon-purple { background: rgba(91,92,240,.18); }
[data-theme="dark"] .site-footer .footer-feature-icon-green  { background: rgba(16,185,129,.18); }
[data-theme="dark"] .site-footer .footer-feature-icon-pink   { background: rgba(236,72,153,.18); }
[data-theme="dark"] .site-footer .footer-feature-icon-blue   { background: rgba(59,130,246,.18); }

/* Bottom bar dark */
[data-theme="dark"] .site-footer .footer-bottom {
    border-top-color: rgba(255,255,255,.07);
    background: transparent;
}
[data-theme="dark"] .site-footer .footer-copyright { color: rgba(255,255,255,.4); }
[data-theme="dark"] .site-footer .footer-copyright a { color: rgba(255,255,255,.6); }
[data-theme="dark"] .site-footer .footer-bottom-links a { color: rgba(255,255,255,.4); }
[data-theme="dark"] .site-footer .footer-bottom-links a + a::before { color: rgba(255,255,255,.12); }
[data-theme="dark"] .site-footer .footer-bottom-links a:hover { color: var(--kroxia-primary, #5B5CF0); }
[data-theme="dark"] .site-footer .footer-follow-label { color: rgba(255,255,255,.5); }

/* Social icons stay brand-colored in dark mode */
[data-theme="dark"] .footer-bottom-social-link.social-fb { background: #1877F2; }
[data-theme="dark"] .footer-bottom-social-link.social-li { background: #0A66C2; }
[data-theme="dark"] .footer-bottom-social-link.social-tw { background: #1DA1F2; }
[data-theme="dark"] .footer-bottom-social-link.social-ig { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
[data-theme="dark"] .footer-bottom-social-link.social-yt { background: #FF0000; }

/* ─────────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────────── */
@media (max-width: 1024px) {
    .footer-grid-4 { grid-template-columns: 1fr 1fr; gap: 32px; }
    .footer-features-inner { gap: 10px; }
    .footer-feature-item { min-width: 140px; }
}
@media (max-width: 768px) {
    .newsletter-inner { flex-direction: column; text-align: center; }
    .newsletter-content { flex-direction: column; align-items: center; }
    .newsletter-form { min-width: 0; width: 100%; }
    .newsletter-section { margin: 0 12px; }
}
@media (max-width: 640px) {
    .footer-grid-4 { grid-template-columns: 1fr; gap: 28px; }
    .footer-bottom-inner { flex-direction: column; text-align: center; }
    .footer-bottom-links a + a::before { display: none; }
    .footer-bottom-links { gap: 16px; }
    .footer-bottom-links a { padding: 0; }
    .footer-features-inner { flex-wrap: wrap; gap: 10px; }
    .footer-feature-item { width: calc(50% - 5px); }
    .footer-bottom-social { justify-content: center; flex-wrap: wrap; }
}
