/* ============================================
   Ineris - REFRESH / LIFTING (2026)
   Subtelne odświeżenie wizualne istniejącego designu.
   Działa jako overlay – nie zmienia struktury HTML,
   tylko polerą cienie, hover, animacje i typografię.
   ============================================ */

/* === Smoothed scroll & font rendering === */
html { scroll-behavior: smooth; }
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* === Selection — pomarańczowy akcent Ineris === */
::selection { background: #fdba74; color: #7c2d12; }

/* === Custom scrollbar (subtelny, w kolorze marki) === */
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: #fff7ed; }
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #fdba74 0%, #f97316 100%);
    border-radius: 8px;
    border: 2px solid #fff7ed;
}
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, #fb923c 0%, #ea580c 100%); }

/* === Service cards — refined hover + glow === */
.service-card {
    transition: transform .35s cubic-bezier(.16,1,.3,1),
                box-shadow .35s ease,
                border-color .25s ease;
    border: 1px solid rgba(231, 229, 228, 0.7);
    position: relative;
    overflow: hidden;
    isolation: isolate;
}
.service-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 0%),
                rgba(249, 115, 22, .08), transparent 40%);
    opacity: 0;
    transition: opacity .35s ease;
    pointer-events: none;
    z-index: -1;
}
.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 50px -20px rgba(249, 115, 22, 0.22),
                0 10px 25px -10px rgba(15, 23, 42, 0.10);
    border-color: rgba(253, 186, 116, 0.55);
}
.service-card:hover::before { opacity: 1; }
.service-card .service-icon {
    transition: transform .35s cubic-bezier(.34,1.56,.64,1), background .3s ease;
}
.service-card:hover .service-icon {
    transform: rotate(-6deg) scale(1.08);
}

/* === Buttons — refined micro-interactions === */
.btn {
    position: relative;
    overflow: hidden;
    transition: transform .25s cubic-bezier(.16,1,.3,1),
                box-shadow .25s ease,
                background .25s ease,
                color .25s ease;
}
.btn::after {
    content: "";
    position: absolute;
    top: 50%; left: 50%;
    width: 0; height: 0;
    background: rgba(255,255,255,0.35);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width .55s ease, height .55s ease;
    pointer-events: none;
    z-index: 0;
}
.btn:hover::after { width: 340px; height: 340px; }
.btn > * { position: relative; z-index: 1; }
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px -8px rgba(249, 115, 22, 0.55);
}
.btn-outline:hover {
    transform: translateY(-2px);
}

/* === Navbar — clean glass refresh === */
.navbar.scrolled,
.navbar.navbar-light.scrolled {
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    background: rgba(255, 255, 255, 0.78);
    border-bottom: 1px solid rgba(231, 229, 228, 0.65);
    box-shadow: 0 1px 0 rgba(15,23,42,.03), 0 10px 30px -20px rgba(15,23,42,.10);
}
.nav-link {
    position: relative;
    transition: color .2s ease;
}
.nav-link::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -4px;
    transform: translateX(-50%) scaleX(0);
    width: 70%;
    height: 2px;
    background: linear-gradient(90deg, #f97316, #f59e0b);
    border-radius: 2px;
    transition: transform .3s cubic-bezier(.16,1,.3,1);
    transform-origin: center;
}
.nav-link:hover::before,
.nav-link.active::before { transform: translateX(-50%) scaleX(1); }

/* === Dropdown menu — softer shadow & wider for new items === */
.nav-dropdown-menu {
    box-shadow: 0 20px 50px -15px rgba(15, 23, 42, 0.18),
                0 8px 16px -8px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(231, 229, 228, 0.7);
    backdrop-filter: blur(10px);
}
.dropdown-item {
    transition: background .2s ease, padding-left .25s ease, color .2s ease;
}
.dropdown-item:hover {
    padding-left: 22px;
    color: var(--primary-700);
}
.dropdown-item.active {
    background: linear-gradient(90deg, rgba(249, 115, 22, .08), transparent);
    color: var(--primary-700);
    font-weight: 600;
}

/* === Section headers — pretty tag === */
.section-tag, .page-tag {
    display: inline-block;
    padding: 6px 14px;
    background: linear-gradient(135deg, rgba(249, 115, 22, .10), rgba(245, 158, 11, .10));
    border: 1px solid rgba(249, 115, 22, .22);
    color: var(--primary-700);
    font-family: var(--font-mono);
    font-size: .78rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    border-radius: var(--radius-full);
    box-shadow: 0 1px 0 rgba(255,255,255,.6) inset;
}

/* === Section titles — refined gradient === */
.text-gradient {
    background: linear-gradient(135deg, #f97316 0%, #f59e0b 50%, #ea580c 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% 200%;
    animation: gradientShift 8s ease infinite;
}
@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* === Page hero — additional polish === */
.page-hero {
    position: relative;
}
.page-hero .page-hero-shape {
    filter: blur(60px);
    opacity: .55;
    animation: floatBlob 14s ease-in-out infinite;
}
.page-hero .page-hero-shape-2 { animation-delay: -7s; }
@keyframes floatBlob {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(20px, -25px) scale(1.05); }
}

/* === Service detail blocks — refined image frame === */
.service-detail-image img {
    border-radius: var(--radius-lg);
    box-shadow: 0 30px 60px -20px rgba(15, 23, 42, 0.25),
                0 0 0 1px rgba(231, 229, 228, 0.5);
    transition: transform .55s cubic-bezier(.16,1,.3,1), box-shadow .4s ease;
}
.service-detail-image:hover img {
    transform: translateY(-4px);
    box-shadow: 0 40px 70px -20px rgba(249, 115, 22, 0.25),
                0 0 0 1px rgba(253, 186, 116, 0.45);
}

/* === Service features list — refined checks === */
.service-features li {
    transition: transform .2s ease, color .2s ease;
}
.service-features li:hover {
    transform: translateX(4px);
    color: var(--slate-800);
}
.service-features li i.fa-check {
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    color: #fff;
    width: 20px; height: 20px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .7rem;
    margin-right: 10px;
    box-shadow: 0 4px 10px -2px rgba(16, 185, 129, 0.35);
}

/* === CTA section — refined === */
.cta {
    position: relative;
    overflow: hidden;
}
.cta-content .btn-white {
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.25);
}
.cta-content .btn-white:hover {
    transform: translateY(-3px);
    box-shadow: 0 30px 50px -10px rgba(0, 0, 0, 0.35);
}

/* === Footer — subtle refresh === */
.footer-social .social-link {
    transition: transform .25s cubic-bezier(.34,1.56,.64,1),
                background .25s ease,
                color .25s ease,
                box-shadow .25s ease;
}
.footer-social .social-link:hover {
    transform: translateY(-3px) rotate(-4deg);
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: 0 10px 24px -6px rgba(249, 115, 22, 0.5);
}
.footer-links a {
    transition: color .2s ease, padding-left .25s ease;
}
.footer-links a:hover {
    padding-left: 6px;
    color: var(--primary-500);
}

/* === Back to top — refresh === */
.back-to-top {
    transition: transform .25s cubic-bezier(.34,1.56,.64,1),
                box-shadow .25s ease,
                opacity .25s ease;
}
.back-to-top:hover {
    transform: translateY(-4px) scale(1.06);
    box-shadow: 0 16px 32px -6px rgba(249, 115, 22, 0.55);
}

/* === Pricing cards — refresh === */
.pricing-card {
    transition: transform .4s cubic-bezier(.16,1,.3,1), box-shadow .4s ease, border-color .25s ease;
}
.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px -20px rgba(249, 115, 22, 0.28);
    border-color: rgba(253, 186, 116, 0.6);
}
.pricing-card.featured {
    position: relative;
}
.pricing-card.featured::after {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    padding: 2px;
    background: linear-gradient(135deg, #f97316, #f59e0b, #fbbf24);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    z-index: -1;
}

/* === Subtle entrance animation for sections === */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* === Mobile polish === */
@media (max-width: 768px) {
    .service-card:hover { transform: translateY(-3px); }
    .nav-dropdown-menu { box-shadow: 0 12px 30px -10px rgba(15, 23, 42, 0.18); }
}

/* === Mouse-tracked highlight on cards (works with inline JS hook in app.js) === */
.service-card,
.pricing-card { will-change: transform; }
