/*
Theme Name: StudioKalmus Theme
Author: studiokalmus.com
Author URI: https://studiokalmus.com
Theme URI: https://studiokalmus.com
Description: Jeśli interesuje Cię ten motyw, to znak że zrobiliśmy go dobrze! Odewzij się do nas na info@studiokalmus.com
Version: 1.0
*/

/* ============================================================
   PODSTAWOWE USTAWIENIA
   ============================================================ */
html,
body {
    overscroll-behavior: none;
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    transition: background-color 0.5s ease, color 0.5s ease;
}

h1,
h2,
h3,
h4 {
    font-family: 'Montserrat', sans-serif;
}

/* ============================================================
   VUE TRANSITIONS
   ============================================================ */
.fade-enter-active,
.fade-leave-active {
    transition: opacity 0.5s ease;
}

[v-cloak] {
    display: none;
}

.fade-enter-from,
.fade-leave-to {
    opacity: 0;
}

/* ============================================================
   ZNAK ROZPOZNAWCZY MARKI
   ============================================================ */
.brand-shape {
    border-radius: 2.5rem 0.5rem 2.5rem 0.5rem;
}

/* ============================================================
   SECTION TITLE BAR
   ============================================================ */
.section-title {
    font-weight: 900;
    font-size: 2.5rem;
    line-height: 1.2;
}

@media (min-width: 768px) {
    .section-title {
        font-size: 3.5rem;
    }
}

.section-title-bar {
    width: 4rem;
    height: 4px;
    background: linear-gradient(90deg, #BCA114, #e8c84a);
    margin: 1.25rem auto 0;
    border-radius: 2px;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero-section {
    position: relative;
    height: 100vh;
    overflow: hidden;
    background-color: #18181b;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-slide.is-active {
    opacity: 1;
}

/* Sophisticated multi-stop gradient overlay — bottom-left warm, top-right dark */
.hero-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            135deg,
            rgba(188, 161, 20, 0.18) 0%,
            rgba(0, 0, 0, 0.0)       30%,
            rgba(0, 0, 0, 0.55)      60%,
            rgba(0, 0, 0, 0.85)      100%
        ),
        linear-gradient(
            to top,
            rgba(0, 0, 0, 0.75) 0%,
            rgba(0, 0, 0, 0.2)  40%,
            rgba(0, 0, 0, 0.0)  70%
        );
}

/* Extra overlay element for more control */
.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: radial-gradient(
        ellipse at 20% 80%,
        rgba(188, 161, 20, 0.10) 0%,
        transparent 55%
    );
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 10;
}

/* ============================================================
   SCROLL-DOWN INDICATOR
   ============================================================ */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.scroll-indicator-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
}

.scroll-indicator:hover .scroll-indicator-inner {
    color: #BCA114;
}

.scroll-indicator-text {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    opacity: 0.8;
}

.scroll-chevron-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 0.1rem;
}

.scroll-chevron {
    width: 1.6rem;
    height: 1.6rem;
    display: block;
    animation: scrollBounce 1.8s ease-in-out infinite;
}

.scroll-chevron--delayed {
    margin-top: -0.6rem;
    opacity: 0.5;
    animation-delay: 0.25s;
}

@keyframes scrollBounce {
    0%, 100% {
        transform: translateY(0);
        opacity: 0.9;
    }
    50% {
        transform: translateY(7px);
        opacity: 0.4;
    }
}

/* ============================================================
   CTA BUTTON — GLOW / PULSE
   ============================================================ */
.cta-button {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #e8c84a 0%, #BCA114 60%, #8a7210 100%);
    transform: translateY(0) scale(1);
    box-shadow: 0 8px 32px -8px rgba(188, 161, 20, 0.5);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.3s ease,
                background 0.3s ease;
}

.cta-button::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.18) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 20px 48px -8px rgba(188, 161, 20, 0.65), 0 0 0 4px rgba(188, 161, 20, 0.2);
}

.cta-button:hover::before {
    opacity: 1;
}

.cta-button:active {
    transform: translateY(0) scale(0.98);
}

/* Subtle ambient pulse animation for idle state */
@keyframes ctaPulse {
    0%, 100% {
        box-shadow: 0 8px 32px -8px rgba(188, 161, 20, 0.5);
    }
    50% {
        box-shadow: 0 8px 48px -4px rgba(188, 161, 20, 0.75), 0 0 0 6px rgba(188, 161, 20, 0.12);
    }
}

.cta-button {
    animation: ctaPulse 3s ease-in-out infinite;
}

.cta-button:hover {
    animation: none;
}

/* ============================================================
   KAFELKI / SERVICE CARDS
   ============================================================ */
.kafelek-card {
    position: relative;
    transition:
        transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 0.45s ease,
        border-color 0.35s ease;
}

.kafelek-card:hover {
    transform: translateY(-10px) scale(1.015);
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.25);
    border-color: rgba(188, 161, 20, 0.4) !important;
}

/* Image zoom on hover */
.kafelek-img-wrapper {
    overflow: hidden;
    position: relative;
}

.kafelek-img {
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                filter 0.5s ease;
}

.kafelek-card:hover .kafelek-img {
    transform: scale(1.08);
    filter: grayscale(100%);
}

.kafelek-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        transparent 50%,
        rgba(188, 161, 20, 0.12) 100%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
}

.kafelek-card:hover .kafelek-img-overlay {
    opacity: 1;
}

/* Gold accent bar at card bottom */
.kafelek-accent-bar {
    height: 3px;
    background: linear-gradient(90deg, #BCA114, #e8c84a);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.kafelek-card:hover .kafelek-accent-bar {
    transform: scaleX(1);
}

/* Button arrow slide */
.kafelek-btn {
    position: relative;
    overflow: hidden;
}

.kafelek-btn-arrow {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.kafelek-btn:hover .kafelek-btn-arrow {
    transform: translateX(4px);
}

/* ============================================================
   STAT CARDS — DLACZEGO MY?
   ============================================================ */
.stat-card {
    position: relative;
    overflow: hidden;
    transition:
        transform 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275),
        box-shadow 0.45s ease,
        border-color 0.35s ease;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle at center,
        rgba(188, 161, 20, 0.08) 0%,
        transparent 65%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.stat-card:hover {
    transform: translateY(-12px) scale(1.03);
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(188, 161, 20, 0.3);
    border-color: rgba(188, 161, 20, 0.3) !important;
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-icon-wrap {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background: rgba(188, 161, 20, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease, transform 0.3s ease;
}

.stat-card:hover .stat-icon-wrap {
    background: rgba(188, 161, 20, 0.22);
    transform: scale(1.1) rotate(-5deg);
}

.stat-number {
    line-height: 1;
    background: linear-gradient(135deg, #e8c84a 0%, #BCA114 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: transform 0.3s ease;
}

.stat-card:hover .stat-number {
    transform: scale(1.05);
}

.stat-gold-line {
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #BCA114, #e8c84a);
    margin: 1rem auto 0;
    border-radius: 1px;
    transition: width 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.stat-card:hover .stat-gold-line {
    width: 3rem;
}

/* Counter animation */
@keyframes counterPop {
    0%   { transform: scale(0.6); opacity: 0; }
    70%  { transform: scale(1.08); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

.counter-card.is-visible .stat-number {
    animation: counterPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.counter-card.is-visible:nth-child(2) .stat-number { animation-delay: 0.1s; }
.counter-card.is-visible:nth-child(3) .stat-number { animation-delay: 0.2s; }
.counter-card.is-visible:nth-child(4) .stat-number { animation-delay: 0.3s; }

/* Why-us section background decoration */
.why-us-section {
    position: relative;
}

.why-us-bg-decor {
    position: absolute;
    top: -6rem;
    right: -6rem;
    width: 30rem;
    height: 30rem;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(188, 161, 20, 0.07) 0%, transparent 70%);
    pointer-events: none;
}

/* ============================================================
   PROCESS SECTION — PROCES WSPÓŁPRACY
   ============================================================ */
.process-step {
    position: relative;
    overflow: hidden;
    transition:
        transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 0.4s ease,
        border-color 0.3s ease;
}

.process-step:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px -8px rgba(0, 0, 0, 0.18);
    border-color: rgba(188, 161, 20, 0.35) !important;
}

/* Shimmer on hover */
.process-step::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.06),
        transparent
    );
    transition: left 0.5s ease;
    pointer-events: none;
}

.process-step:hover::after {
    left: 150%;
}

/* Step number badge */
.process-number-badge {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #BCA114, #e8c84a);
    color: #18181b;
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 16px -4px rgba(188, 161, 20, 0.5);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s ease;
}

.process-step:hover .process-number-badge {
    transform: scale(1.15) rotate(-5deg);
    box-shadow: 0 8px 24px -4px rgba(188, 161, 20, 0.65);
}

.process-icon-wrap {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.75rem;
    background: rgba(188, 161, 20, 0.10);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.process-step:hover .process-icon-wrap {
    background: rgba(188, 161, 20, 0.20);
}

/* Desktop horizontal connector */
.process-connector-wrap {
    position: absolute;
    top: 3.5rem;
    right: -1.25rem;
    z-index: 5;
    display: flex;
    align-items: center;
    width: 2.5rem;
}

.process-step-wrap {
    position: relative;
}

.process-connector-line {
    flex-grow: 1;
    height: 2px;
    width: 1.5rem;
}

.dark .process-connector-line {
    background-color: #3f3f46;
}

.light .process-connector-line,
.process-connector-line {
    background-color: #d1d5db;
}

.process-connector-arrow {
    width: 1.1rem;
    height: 1.1rem;
    flex-shrink: 0;
}

/* Mobile vertical connector */
.process-mobile-connector {
    width: 2px;
    height: 2.5rem;
    background: linear-gradient(to bottom, #BCA114, rgba(188, 161, 20, 0.2));
    flex-shrink: 0;
}

/* ============================================================
   TIMELINE CONNECTOR (generic, kept for compatibility)
   ============================================================ */
.timeline-connector {
    flex-grow: 1;
    height: 2px;
    align-self: center;
}

.dark .timeline-connector {
    background-color: #3f3f46;
}

.light .timeline-connector {
    background-color: #d1d5db;
}

/* ============================================================
   TESTIMONIAL CARDS
   ============================================================ */
.testimonial-card {
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.dark .testimonial-card {
    background-color: rgba(39, 39, 42, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.light .testimonial-card {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.07), 0 4px 6px -4px rgb(0 0 0 / 0.07);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

/* ============================================================
   NAV LINKS
   ============================================================ */
.nav-link {
    position: relative;
    transition: color 0.3s;
    cursor: pointer;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #BCA114;
    transition: width 0.4s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover {
    color: #BCA114;
}

/* ============================================================
   HEADER GLASS EFFECT
   ============================================================ */
#header {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.dark #header {
    background-color: rgba(24, 24, 27, 0.7);
}

.light #header {
    background-color: rgba(255, 255, 255, 0.7);
}

/* ============================================================
   IMAGE EFFECTS
   ============================================================ */
.grayscale-hover {
    transition: filter 0.5s ease;
    filter: grayscale(0%);
}

.group:hover .grayscale-hover,
.grayscale-hover:hover {
    filter: grayscale(100%);
}

.project-card-img-wrapper {
    overflow: hidden;
}

.project-card-img {
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.group:hover .project-card-img {
    transform: scale(1.1);
}

/* ============================================================
   INTERSECTION OBSERVER — REVEAL ANIMATIONS
   ============================================================ */
@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(28px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(28px);
}

.reveal-on-scroll.is-visible {
    animation: fadeSlideUp 0.65s cubic-bezier(0.34, 1.26, 0.64, 1) both;
}
