/* ═══════════════════════════════════════════════
   MK REMONTY — Stylesheet
   Autor: MK Remonty
   ═══════════════════════════════════════════════ */

/* ═══════ VARIABLES ═══════ */
:root {
    --color-bg: #F5F0EB;
    --color-dark: #1A1A1A;
    --color-accent: #C4853A;
    --color-accent-dark: #A06A28;
    --color-warm: #E8DDD0;
    --color-text: #3A3A3A;
    --color-text-light: #6B6B6B;
    --color-white: #FFFFFF;
    --font-display: 'DM Serif Display', serif;
    --font-body: 'Outfit', sans-serif;
    --shadow-soft: 0 4px 30px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.12);
    --radius: 12px;
    --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ═══════ RESET & BASE ═══════ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: var(--color-bg);
    overflow-x: hidden;
    line-height: 1.7;
}

/* ═══════ NAVBAR ═══════ */
.navbar {
    background: rgba(245, 240, 235, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    padding: 1rem 0;
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 0.6rem 0;
    box-shadow: var(--shadow-soft);
}

.navbar-brand {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--color-dark) !important;
    letter-spacing: -0.02em;
}

.navbar-brand span {
    color: var(--color-accent);
}

.nav-link {
    font-weight: 500;
    font-size: 0.92rem;
    color: var(--color-text) !important;
    position: relative;
    padding: 0.5rem 1rem !important;
    letter-spacing: 0.02em;
    transition: var(--transition);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: var(--transition);
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 60%;
}

.nav-link:hover {
    color: var(--color-accent) !important;
}

.navbar-toggler {
    border: none;
    box-shadow: none !important;
}

.navbar-toggler:focus {
    box-shadow: none !important;
}

.nav-cta {
    background: var(--color-accent) !important;
    color: var(--color-white) !important;
    border-radius: 50px !important;
    padding: 0.5rem 1.4rem !important;
    font-weight: 600 !important;
    transition: var(--transition);
}

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

.nav-cta:hover {
    background: var(--color-accent-dark) !important;
    transform: translateY(-1px);
}

/* ═══════ HERO ═══════ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--color-dark) 0%, #2A2219 50%, #3A2A1A 100%);
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 80%, rgba(196, 133, 58, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(196, 133, 58, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.hero-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.04;
    background-image:
        repeating-linear-gradient(0deg, transparent, transparent 49px, rgba(255, 255, 255, 0.5) 50px),
        repeating-linear-gradient(90deg, transparent, transparent 49px, rgba(255, 255, 255, 0.5) 50px);
    pointer-events: none;
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(196, 133, 58, 0.15);
    border: 1px solid rgba(196, 133, 58, 0.3);
    color: var(--color-accent);
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease-out;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.6rem, 5.5vw, 4.5rem);
    color: var(--color-white);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease-out 0.15s both;
}

.hero h1 .accent {
    color: var(--color-accent);
    position: relative;
}

.hero h1 .accent::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--color-accent);
    opacity: 0.4;
    border-radius: 2px;
}

.hero p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.15rem;
    max-width: 520px;
    margin-bottom: 2rem;
    font-weight: 300;
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.45s both;
}

/* ═══════ BUTTONS ═══════ */
.btn-primary-custom {
    background: var(--color-accent);
    color: var(--color-white);
    border: none;
    padding: 0.85rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary-custom:hover {
    background: var(--color-accent-dark);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(196, 133, 58, 0.3);
}

.btn-outline-custom {
    background: transparent;
    color: var(--color-white);
    border: 2px solid rgba(255, 255, 255, 0.25);
    padding: 0.85rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    text-decoration: none;
}

.btn-outline-custom:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
    transform: translateY(-2px);
}

/* ═══════ HERO STATS ═══════ */
.hero-stats {
    display: flex;
    gap: 3rem;
    margin-top: 3.5rem;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.hero-stat h3 {
    font-family: var(--font-display);
    font-size: 2.2rem;
    color: var(--color-accent);
    margin-bottom: 0.2rem;
}

.hero-stat p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}

/* ═══════ HERO IMAGE ═══════ */
.hero-image-col {
    position: relative;
    animation: fadeInRight 1s ease-out 0.3s both;
}

.hero-image-wrapper {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.hero-image-wrapper img {
    width: 100%;
    height: 520px;
    object-fit: cover;
    display: block;
}

.hero-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26, 26, 26, 0.6), transparent 40%);
}

.hero-floating-card {
    position: absolute;
    bottom: -20px;
    left: -30px;
    background: var(--color-white);
    border-radius: var(--radius);
    padding: 1.2rem 1.5rem;
    box-shadow: var(--shadow-hover);
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 3;
    animation: float 4s ease-in-out infinite;
}

.hero-floating-card .icon-circle {
    width: 48px;
    height: 48px;
    background: rgba(196, 133, 58, 0.12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent);
    font-size: 1.2rem;
}

.hero-floating-card .text strong {
    display: block;
    font-size: 0.95rem;
    color: var(--color-dark);
}

.hero-floating-card .text span {
    font-size: 0.78rem;
    color: var(--color-text-light);
}

/* ═══════ SECTIONS COMMON ═══════ */
section {
    padding: 6rem 0;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-accent);
    margin-bottom: 1rem;
}

.section-label::before {
    content: '';
    width: 30px;
    height: 2px;
    background: var(--color-accent);
    border-radius: 1px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    color: var(--color-dark);
    line-height: 1.15;
    margin-bottom: 1rem;
}

.section-subtitle {
    color: var(--color-text-light);
    font-size: 1.05rem;
    max-width: 560px;
    font-weight: 300;
}

/* ═══════ O MNIE ═══════ */
#o-mnie {
    background: var(--color-white);
}

.about-image {
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
}

.about-image img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    display: block;
}

.about-experience-badge {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: var(--color-accent);
    color: var(--color-white);
    padding: 1.2rem 1.5rem;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow-hover);
}

.about-experience-badge h4 {
    font-family: var(--font-display);
    font-size: 2rem;
    margin-bottom: 0;
}

.about-experience-badge span {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
    margin-top: 2rem;
}

.about-feature {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
}

.about-feature i {
    color: var(--color-accent);
    font-size: 1.2rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.about-feature span {
    font-weight: 500;
    font-size: 0.95rem;
}

/* ═══════ USŁUGI ═══════ */
.service-card {
    background: var(--color-white);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: var(--transition);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--color-accent);
    transform: scaleX(0);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 56px;
    height: 56px;
    background: rgba(196, 133, 58, 0.1);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent);
    font-size: 1.5rem;
    margin-bottom: 1.2rem;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: var(--color-accent);
    color: var(--color-white);
}

.service-card h4 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: var(--color-dark);
    margin-bottom: 0.8rem;
}

.service-card p {
    color: var(--color-text-light);
    font-size: 0.92rem;
    margin-bottom: 0;
}

/* ═══════ REALIZACJE ═══════ */
#realizacje {
    background: var(--color-white);
}

.project-card {
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.project-card img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block;
    transition: var(--transition);
}

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

.project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26, 26, 26, 0.85) 0%, transparent 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    transition: var(--transition);
}

.project-overlay h5 {
    font-family: var(--font-display);
    color: var(--color-white);
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
}

.project-overlay p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    margin-bottom: 0;
}

.project-tag {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--color-accent);
    color: var(--color-white);
    padding: 0.25rem 0.8rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ═══════ FILTER BAR ═══════ */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2.5rem;
}

.filter-btn {
    background: transparent;
    border: 2px solid var(--color-warm);
    color: var(--color-text-light);
    padding: 0.5rem 1.4rem;
    border-radius: 50px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.filter-btn.active {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-white);
}

/* ═══════ PROJECT CARD FILTER ANIMATION ═══════ */
.project-col {
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.project-col.hidden {
    opacity: 0;
    transform: scale(0.9);
    position: absolute;
    pointer-events: none;
    width: 0;
    height: 0;
    overflow: hidden;
    padding: 0 !important;
    margin: 0 !important;
}

/* ═══════ LIGHTBOX ═══════ */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

.lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(255, 255, 255, 0.12);
    border: none;
    color: white;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.lightbox-close:hover {
    background: var(--color-accent);
    transform: rotate(90deg);
}

.lightbox-content {
    background: var(--color-white);
    border-radius: 16px;
    overflow: hidden;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: row;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
    transform: translateY(30px) scale(0.95);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.lightbox-overlay.active .lightbox-content {
    transform: translateY(0) scale(1);
}

.lightbox-img-wrap {
    flex: 0 0 55%;
    max-width: 55%;
    background: var(--color-warm);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 350px;
}

.lightbox-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.lightbox-info {
    flex: 1;
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow-y: auto;
}

.lightbox-tag {
    display: inline-block;
    background: var(--color-accent);
    color: var(--color-white);
    padding: 0.25rem 0.9rem;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 1rem;
    align-self: flex-start;
}

.lightbox-info h3 {
    font-family: var(--font-display);
    color: var(--color-dark);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.lightbox-location {
    color: var(--color-accent);
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.lightbox-location::before {
    content: '📍';
    font-size: 0.85rem;
}

.lightbox-desc {
    color: var(--color-text-light);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 0;
}

.lightbox-desc:empty {
    display: none;
}

@media (max-width: 767px) {
    .lightbox-content {
        flex-direction: column;
        max-height: 85vh;
    }

    .lightbox-img-wrap {
        flex: 0 0 auto;
        max-width: 100%;
        max-height: 280px;
        min-height: 200px;
    }

    .lightbox-info {
        padding: 1.5rem;
    }

    .lightbox-info h3 {
        font-size: 1.25rem;
    }

    .lightbox-close {
        top: 0.8rem;
        right: 0.8rem;
        width: 40px;
        height: 40px;
    }

    .filter-bar {
        gap: 0.35rem;
    }

    .filter-btn {
        padding: 0.4rem 1rem;
        font-size: 0.78rem;
    }
}

/* ═══════ PROCES ═══════ */
.process-step {
    text-align: center;
    position: relative;
    padding: 0 1rem;
}

.process-number {
    width: 64px;
    height: 64px;
    background: rgba(196, 133, 58, 0.1);
    border: 2px solid var(--color-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--color-accent);
    margin: 0 auto 1.2rem;
    transition: var(--transition);
}

.process-step:hover .process-number {
    background: var(--color-accent);
    color: var(--color-white);
}

.process-step h5 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    color: var(--color-dark);
    margin-bottom: 0.6rem;
}

.process-step p {
    color: var(--color-text-light);
    font-size: 0.9rem;
}

.process-connector {
    position: absolute;
    top: 32px;
    right: -50%;
    width: 100%;
    height: 2px;
    background: repeating-linear-gradient(90deg, var(--color-accent) 0, var(--color-accent) 6px, transparent 6px, transparent 12px);
    opacity: 0.3;
}

/* ═══════ OPINIE ═══════ */
#opinie {
    background: var(--color-white);
}

.testimonial-card {
    background: var(--color-bg);
    border-radius: var(--radius);
    padding: 2rem;
    height: 100%;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: var(--transition);
}

.testimonial-card:hover {
    box-shadow: var(--shadow-soft);
    transform: translateY(-4px);
}

.testimonial-card .quote-icon {
    font-size: 2.5rem;
    color: var(--color-accent);
    opacity: 0.3;
    line-height: 1;
    margin-bottom: 0.5rem;
    font-family: var(--font-display);
}

.testimonial-card p {
    font-size: 0.95rem;
    color: var(--color-text);
    font-style: italic;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.testimonial-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--color-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    font-weight: 700;
    font-size: 0.9rem;
}

.testimonial-author strong {
    display: block;
    font-size: 0.92rem;
    color: var(--color-dark);
}

.testimonial-author span {
    font-size: 0.78rem;
    color: var(--color-text-light);
}

.stars {
    color: var(--color-accent);
    margin-bottom: 1rem;
    font-size: 0.85rem;
}

/* ═══════ CTA ═══════ */
.cta-section {
    background: linear-gradient(135deg, var(--color-dark) 0%, #2A2219 100%);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 50%, rgba(196, 133, 58, 0.12) 0%, transparent 70%);
}

.cta-section .section-title {
    color: var(--color-white);
}

.cta-section .section-subtitle {
    color: rgba(255, 255, 255, 0.6);
    margin: 0 auto 2rem;
}

/* ═══════ KONTAKT ═══════ */
.contact-info-card {
    background: var(--color-white);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow-soft);
    height: 100%;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.2rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.contact-item:last-child {
    border-bottom: none;
}

.contact-item .icon-circle {
    width: 48px;
    height: 48px;
    background: rgba(196, 133, 58, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-item h6 {
    font-weight: 600;
    color: var(--color-dark);
    margin-bottom: 0.2rem;
    font-size: 0.92rem;
}

.contact-item p {
    color: var(--color-text-light);
    font-size: 0.9rem;
    margin-bottom: 0;
}

.contact-item a {
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.contact-item a:hover {
    color: var(--color-accent-dark);
}

.contact-form {
    background: var(--color-white);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow-soft);
}

.contact-form .form-control,
.contact-form .form-select {
    border: 2px solid rgba(0, 0, 0, 0.08);
    border-radius: 10px;
    padding: 0.8rem 1rem;
    font-family: var(--font-body);
    font-size: 0.92rem;
    transition: var(--transition);
    background: var(--color-bg);
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(196, 133, 58, 0.12);
    background: var(--color-white);
}

.contact-form label {
    font-weight: 500;
    font-size: 0.88rem;
    color: var(--color-dark);
    margin-bottom: 0.4rem;
}

.btn-submit {
    background: var(--color-accent);
    color: var(--color-white);
    border: none;
    padding: 0.85rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-submit:hover {
    background: var(--color-accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(196, 133, 58, 0.3);
    color: var(--color-white);
}

/* ═══════ FOOTER ═══════ */
footer {
    background: var(--color-dark);
    color: rgba(255, 255, 255, 0.6);
    padding: 3rem 0 1.5rem;
}

footer .footer-brand {
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--color-white);
    margin-bottom: 0.5rem;
}

footer .footer-brand span {
    color: var(--color-accent);
}

footer p {
    font-size: 0.88rem;
}

footer a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: var(--transition);
}

footer a:hover {
    color: var(--color-accent);
}

.footer-social a {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.5rem;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-white);
}

.footer-divider {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 2rem;
    padding-top: 1.5rem;
}

/* ═══════ INLINE-STYLE HELPERS ═══════ */
.contact-heading,
.form-heading {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--color-dark);
}

.contact-heading {
    margin-bottom: 0.5rem;
}

.form-heading {
    margin-bottom: 1.5rem;
}

.contact-desc {
    font-size: 0.88rem;
    color: var(--color-text-light);
    margin-bottom: 1rem;
}

.footer-col-title {
    color: white;
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.footer-links {
    font-size: 0.88rem;
    line-height: 2.2;
}

.footer-copy {
    font-size: 0.8rem;
    margin-bottom: 0;
}

/* ═══════ TOAST ═══════ */
.toast-success {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: #2E7D32;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-hover);
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-weight: 500;
    transform: translateY(100px);
    opacity: 0;
    transition: var(--transition);
}

.toast-success.show {
    transform: translateY(0);
    opacity: 1;
}

/* ═══════ ANIMATIONS ═══════ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ═══════════════════════════════════════════════
   RESPONSIVE — TABLET LANDSCAPE (max-width: 1199px)
   ═══════════════════════════════════════════════ */
@media (max-width: 1199px) {
    .hero h1 {
        font-size: clamp(2.4rem, 4.5vw, 3.6rem);
    }

    .hero-image-wrapper img {
        height: 440px;
    }

    .hero-stats {
        gap: 2.5rem;
    }

    .hero-stat h3 {
        font-size: 1.8rem;
    }

    .about-image img {
        height: 420px;
    }

    .project-card img {
        height: 280px;
    }
}

/* ═══════════════════════════════════════════════
   RESPONSIVE — TABLET PORTRAIT (max-width: 991px)
   ═══════════════════════════════════════════════ */
@media (max-width: 991px) {
    /* --- Navigation --- */
    .navbar-collapse {
        background: var(--color-white);
        border-radius: var(--radius);
        padding: 1rem;
        margin-top: 0.75rem;
        box-shadow: var(--shadow-hover);
    }

    .nav-link {
        padding: 0.7rem 1rem !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .nav-link:last-child {
        border-bottom: none;
    }

    .nav-link::after {
        display: none;
    }

    .nav-cta {
        text-align: center;
        margin-top: 0.5rem;
        display: block !important;
    }

    /* --- Hero --- */
    .hero {
        min-height: auto;
        padding-top: 120px;
        padding-bottom: 4rem;
    }

    .hero h1 {
        font-size: clamp(2.2rem, 5vw, 3rem);
    }

    .hero p {
        font-size: 1.05rem;
    }

    .hero-stats {
        gap: 2rem;
        margin-top: 2.5rem;
        padding-top: 2rem;
    }

    .hero-stat h3 {
        font-size: 1.6rem;
    }

    .hero-image-col {
        margin-top: 3rem;
    }

    /* --- O mnie --- */
    .about-image img {
        height: 360px;
    }

    .about-experience-badge {
        padding: 1rem;
    }

    .about-experience-badge h4 {
        font-size: 1.6rem;
    }

    .about-features {
        grid-template-columns: 1fr 1fr;
    }

    /* --- Usługi --- */
    .service-card {
        padding: 1.5rem;
    }

    /* --- Realizacje --- */
    .project-card img {
        height: 260px;
    }

    /* --- Proces --- */
    .process-connector {
        display: none;
    }

    .process-step {
        padding: 0 0.5rem;
    }

    .process-number {
        width: 54px;
        height: 54px;
        font-size: 1.3rem;
    }

    /* --- Kontakt --- */
    .contact-info-card {
        margin-bottom: 1rem;
    }

    /* --- Sections ogólne --- */
    section {
        padding: 4.5rem 0;
    }

    .section-title {
        font-size: clamp(1.8rem, 3.2vw, 2.4rem);
    }

    .section-subtitle {
        font-size: 1rem;
    }

    /* --- CTA --- */
    .cta-section .section-title {
        font-size: clamp(1.8rem, 3.2vw, 2.4rem);
    }

    /* --- Footer --- */
    footer {
        text-align: center;
    }

    footer .col-lg-5 {
        margin-bottom: 1rem;
    }

    .footer-social {
        justify-content: center;
        display: flex;
        gap: 0.5rem;
    }

    .footer-social a {
        margin-right: 0;
    }
}

/* ═══════════════════════════════════════════════
   RESPONSIVE — LARGE PHONES (max-width: 767px)
   ═══════════════════════════════════════════════ */
@media (max-width: 767px) {
    /* --- Hero --- */
    .hero {
        padding-top: 100px;
        padding-bottom: 3rem;
    }

    .hero h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .hero p {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }

    .hero-badge {
        font-size: 0.75rem;
        padding: 0.35rem 1rem;
        margin-bottom: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn-primary-custom,
    .btn-outline-custom {
        width: 100%;
        justify-content: center;
        padding: 0.8rem 1.5rem;
    }

    .hero-stats {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 1.5rem;
        margin-top: 2rem;
        padding-top: 1.5rem;
    }

    .hero-stat {
        flex: 1 1 calc(33% - 1rem);
        text-align: center;
        min-width: 80px;
    }

    .hero-stat h3 {
        font-size: 1.5rem;
    }

    .hero-stat p {
        font-size: 0.72rem;
    }

    /* --- O mnie --- */
    .about-image img {
        height: 280px;
    }

    .about-experience-badge {
        bottom: 12px;
        right: 12px;
        padding: 0.8rem 1rem;
    }

    .about-experience-badge h4 {
        font-size: 1.4rem;
    }

    .about-experience-badge span {
        font-size: 0.7rem;
    }

    .about-features {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }

    /* --- Usługi --- */
    .service-card {
        padding: 1.3rem;
    }

    .service-icon {
        width: 48px;
        height: 48px;
        font-size: 1.3rem;
        border-radius: 12px;
        margin-bottom: 1rem;
    }

    .service-card h4 {
        font-size: 1.1rem;
    }

    .service-card p {
        font-size: 0.88rem;
    }

    /* --- Realizacje --- */
    .project-card img {
        height: 220px;
    }

    .project-overlay h5 {
        font-size: 1.05rem;
    }

    .project-tag {
        font-size: 0.7rem;
        padding: 0.2rem 0.65rem;
    }

    /* --- Proces --- */
    .process-number {
        width: 48px;
        height: 48px;
        font-size: 1.2rem;
    }

    .process-step h5 {
        font-size: 1rem;
    }

    .process-step p {
        font-size: 0.82rem;
    }

    /* --- Opinie --- */
    .testimonial-card {
        padding: 1.5rem;
    }

    .testimonial-card p {
        font-size: 0.9rem;
    }

    /* --- Kontakt --- */
    .contact-info-card,
    .contact-form {
        padding: 1.5rem;
    }

    .contact-item {
        padding: 1rem 0;
    }

    .contact-item .icon-circle {
        width: 42px;
        height: 42px;
        font-size: 1rem;
    }

    .btn-submit {
        width: 100%;
        justify-content: center;
    }

    /* --- Sections ogólne --- */
    section {
        padding: 3.5rem 0;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .section-subtitle {
        font-size: 0.92rem;
    }

    /* --- CTA --- */
    .cta-section .section-title {
        font-size: 1.6rem;
    }

    .cta-section .btn-primary-custom {
        width: 100%;
        justify-content: center;
    }

    /* --- Footer --- */
    footer .footer-brand {
        font-size: 1.25rem;
    }

    footer p {
        font-size: 0.82rem;
    }

    .footer-links {
        font-size: 0.82rem;
    }

    .footer-col-title {
        font-size: 0.85rem;
        margin-top: 0.5rem;
    }
}

/* ═══════════════════════════════════════════════
   RESPONSIVE — SMALL PHONES (max-width: 480px)
   ═══════════════════════════════════════════════ */
@media (max-width: 480px) {
    html {
        scroll-padding-top: 70px;
    }

    /* --- Navbar --- */
    .navbar-brand {
        font-size: 1.25rem;
    }

    /* --- Hero --- */
    .hero {
        padding-top: 90px;
        padding-bottom: 2.5rem;
    }

    .hero h1 {
        font-size: 1.7rem;
        line-height: 1.15;
    }

    .hero h1 .accent::after {
        height: 2px;
        bottom: 2px;
    }

    .hero p {
        font-size: 0.88rem;
        line-height: 1.6;
    }

    .hero-stats {
        gap: 1rem;
    }

    .hero-stat h3 {
        font-size: 1.3rem;
    }

    .hero-stat p {
        font-size: 0.68rem;
        letter-spacing: 0.03em;
    }

    .hero-floating-card {
        left: 10px;
        bottom: 10px;
        padding: 0.8rem 1rem;
        gap: 0.6rem;
    }

    .hero-floating-card .icon-circle {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }

    .hero-floating-card .text strong {
        font-size: 0.82rem;
    }

    .hero-floating-card .text span {
        font-size: 0.7rem;
    }

    /* --- O mnie --- */
    .about-image img {
        height: 220px;
    }

    .about-experience-badge {
        bottom: 8px;
        right: 8px;
        padding: 0.6rem 0.8rem;
    }

    .about-experience-badge h4 {
        font-size: 1.2rem;
    }

    .about-experience-badge span {
        font-size: 0.65rem;
    }

    /* --- Usługi --- */
    .service-card {
        padding: 1.2rem;
    }

    .service-icon {
        width: 44px;
        height: 44px;
        font-size: 1.2rem;
    }

    .service-card h4 {
        font-size: 1.05rem;
        margin-bottom: 0.5rem;
    }

    .service-card p {
        font-size: 0.84rem;
        line-height: 1.6;
    }

    /* --- Realizacje --- */
    .project-card img {
        height: 200px;
    }

    .project-overlay {
        padding: 1rem;
    }

    .project-overlay h5 {
        font-size: 0.95rem;
    }

    .project-overlay p {
        font-size: 0.78rem;
    }

    /* --- Proces --- */
    .process-number {
        width: 44px;
        height: 44px;
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
    }

    .process-step h5 {
        font-size: 0.92rem;
    }

    .process-step p {
        font-size: 0.78rem;
        line-height: 1.5;
    }

    /* --- Opinie --- */
    .testimonial-card {
        padding: 1.2rem;
    }

    .testimonial-card .quote-icon {
        font-size: 2rem;
    }

    .testimonial-card p {
        font-size: 0.85rem;
        margin-bottom: 1rem;
        line-height: 1.6;
    }

    .testimonial-avatar {
        width: 38px;
        height: 38px;
        font-size: 0.78rem;
    }

    .testimonial-author strong {
        font-size: 0.85rem;
    }

    .testimonial-author span {
        font-size: 0.72rem;
    }

    .stars {
        font-size: 0.78rem;
    }

    /* --- CTA --- */
    .cta-section {
        padding: 3rem 0;
    }

    .cta-section .section-title {
        font-size: 1.4rem;
    }

    .cta-section .section-subtitle {
        font-size: 0.88rem;
    }

    /* --- Kontakt --- */
    .contact-info-card,
    .contact-form {
        padding: 1.2rem;
    }

    .contact-heading {
        font-size: 1.05rem;
    }

    .form-heading {
        font-size: 1.05rem;
        margin-bottom: 1rem;
    }

    .contact-item .icon-circle {
        width: 38px;
        height: 38px;
        font-size: 0.9rem;
    }

    .contact-item h6 {
        font-size: 0.85rem;
    }

    .contact-item p {
        font-size: 0.82rem;
    }

    .contact-form .form-control,
    .contact-form .form-select {
        padding: 0.7rem 0.85rem;
        font-size: 0.88rem;
    }

    .contact-form label {
        font-size: 0.82rem;
    }

    .btn-submit {
        padding: 0.75rem 2rem;
        font-size: 0.92rem;
    }

    /* --- Sections ogólne --- */
    section {
        padding: 3rem 0;
    }

    .section-label {
        font-size: 0.72rem;
        margin-bottom: 0.7rem;
    }

    .section-label::before {
        width: 20px;
    }

    .section-title {
        font-size: 1.4rem;
        margin-bottom: 0.7rem;
    }

    .section-subtitle {
        font-size: 0.88rem;
    }

    /* --- Footer --- */
    footer {
        padding: 2.5rem 0 1rem;
    }

    .footer-divider {
        margin-top: 1.5rem;
        padding-top: 1rem;
    }

    .footer-copy {
        font-size: 0.72rem;
    }

    /* --- Toast --- */
    .toast-success {
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
        font-size: 0.88rem;
        padding: 0.8rem 1rem;
    }
}

/* ═══════════════════════════════════════════════
   RESPONSIVE — VERY SMALL PHONES (max-width: 360px)
   ═══════════════════════════════════════════════ */
@media (max-width: 360px) {
    .hero h1 {
        font-size: 1.5rem;
    }

    .hero p {
        font-size: 0.82rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .hero-stat {
        text-align: left;
        display: flex;
        align-items: baseline;
        gap: 0.5rem;
    }

    .hero-stat h3 {
        font-size: 1.2rem;
        margin-bottom: 0;
    }

    .hero-stat p {
        font-size: 0.72rem;
    }

    .about-image img {
        height: 180px;
    }

    .project-card img {
        height: 170px;
    }

    .section-title {
        font-size: 1.25rem;
    }

    .process-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* ═══════════════════════════════════════════════
   RESPONSIVE — LANDSCAPE PHONES
   ═══════════════════════════════════════════════ */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding-top: 80px;
        padding-bottom: 2rem;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero-stats {
        margin-top: 1.5rem;
        padding-top: 1rem;
    }

    section {
        padding: 3rem 0;
    }
}

/* ═══════════════════════════════════════════════
   RESPONSIVE — HOVER DISABLED ON TOUCH
   ═══════════════════════════════════════════════ */
@media (hover: none) {
    .service-card:hover {
        transform: none;
        box-shadow: var(--shadow-soft);
    }

    .service-card:hover::before {
        transform: scaleX(0);
    }

    .service-card:hover .service-icon {
        background: rgba(196, 133, 58, 0.1);
        color: var(--color-accent);
    }

    .project-card:hover {
        transform: none;
    }

    .project-card:hover img {
        transform: none;
    }

    .testimonial-card:hover {
        transform: none;
        box-shadow: none;
    }

    .btn-primary-custom:hover,
    .btn-outline-custom:hover,
    .btn-submit:hover {
        transform: none;
    }

    .process-step:hover .process-number {
        background: rgba(196, 133, 58, 0.1);
        color: var(--color-accent);
    }

    .hero-floating-card {
        animation: none;
    }
}

/* ═══════════════════════════════════════════════
   RESPONSIVE — PREFERS REDUCED MOTION
   ═══════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }

    .hero-floating-card {
        animation: none;
    }
}

/* ═══════════════════════════════════════════════
   RESPONSIVE — HIGH RESOLUTION / RETINA
   ═══════════════════════════════════════════════ */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .navbar {
        border-bottom-width: 0.5px;
    }

    .contact-item {
        border-bottom-width: 0.5px;
    }

    .footer-divider {
        border-top-width: 0.5px;
    }
}

/* ═══════════════════════════════════════════════
   RESPONSIVE — PRINT
   ═══════════════════════════════════════════════ */
@media print {
    .navbar,
    .hero-floating-card,
    .toast-success,
    .footer-social,
    .btn-primary-custom,
    .btn-outline-custom,
    .btn-submit {
        display: none !important;
    }

    body {
        color: #000;
        background: #fff;
    }

    section {
        padding: 1.5rem 0;
        page-break-inside: avoid;
    }

    .hero {
        background: #f5f5f5 !important;
        min-height: auto;
        padding: 2rem 0;
    }

    .hero h1,
    .hero p {
        color: #000 !important;
    }

    .service-card,
    .testimonial-card,
    .contact-info-card,
    .contact-form {
        box-shadow: none;
        border: 1px solid #ddd;
    }

    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}
