/* ================================================================
   JAS Technologie — Landing Page Styles
   ================================================================ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* ── Design Tokens ── */
:root {
    --navy: #3d4f5f;
    --navy-dark: #2c3a47;
    --navy-light: #4a6275;
    --red: #c0392b;
    --red-dark: #a5311f;
    --red-light: #e74c3c;
    --gray-50: #fafbfc;
    --gray-100: #f7f8f9;
    --gray-200: #e8eaed;
    --gray-400: #999;
    --gray-600: #555;
    --gray-800: #333;
    --white: #fff;

    --font-main: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --transition: 0.3s ease;
    --radius: 8px;
    --nav-height: 70px;
}

/* ── Reset ── */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--gray-800);
    line-height: 1.7;
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

/* ── Utilities ── */
.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.sr-only-focusable:focus {
    position: fixed;
    top: 0;
    left: 0;
    width: auto;
    height: auto;
    padding: 0.75rem 1.5rem;
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: normal;
    background: var(--red);
    color: var(--white);
    font-weight: 600;
    z-index: 10000;
}

/* ── Buttons ── */
.btn {
    display: inline-block;
    padding: 0.85rem 2rem;
    font-family: var(--font-main);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    border-radius: var(--radius);
    border: 2px solid transparent;
    cursor: pointer;
    transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}

.btn-primary {
    background: var(--red);
    color: var(--white);
    border-color: var(--red);
}

.btn-primary:hover {
    background: var(--red-dark);
    border-color: var(--red-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.4);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--white);
}

/* ── Section Common ── */
.section-title {
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--navy);
    text-align: center;
    margin-bottom: 3rem;
}

.section-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: var(--red);
    border-radius: 2px;
    margin: 0.75rem auto 0;
}

/* ================================================================
   NAVBAR
   ================================================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    z-index: 1000;
    background: transparent;
    transition: background var(--transition), box-shadow var(--transition);
}

.navbar.scrolled {
    background: var(--navy-dark);
    box-shadow: var(--shadow-md);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.nav-logo img {
    height: 38px;
    width: auto;

}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-menu a {
    display: block;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-radius: var(--radius);
    transition: color var(--transition), background var(--transition);
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--white);
    background: rgba(255, 255, 255, 0.1);
}

.nav-cta {
    background: var(--red) !important;
    color: var(--white) !important;
    padding: 0.5rem 1.25rem !important;
    border-radius: var(--radius) !important;
    margin-left: 0.5rem;
}

.nav-cta:hover {
    background: var(--red-dark) !important;
}

/* Hamburger */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    position: relative;
    transition: background var(--transition);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 24px;
    height: 2px;
    background: var(--white);
    transition: transform var(--transition);
}

.hamburger::before {
    top: -7px;
}

.hamburger::after {
    top: 7px;
}

/* Hamburger open state */
.navbar.nav-open .hamburger {
    background: transparent;
}

.navbar.nav-open .hamburger::before {
    top: 0;
    transform: rotate(45deg);
}

.navbar.nav-open .hamburger::after {
    top: 0;
    transform: rotate(-45deg);
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-left: 1rem;
}

.lang-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.45);
    font-family: var(--font-main);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    cursor: pointer;
    padding: 0.3rem 0.4rem;
    border-radius: 4px;
    transition: color var(--transition), background var(--transition);
}

.lang-btn:hover {
    color: rgba(255, 255, 255, 0.85);
}

.lang-btn.active {
    color: var(--white);
    background: rgba(255, 255, 255, 0.12);
}

.lang-divider {
    color: rgba(255, 255, 255, 0.2);
    font-size: 0.8rem;
    user-select: none;
}

/* ================================================================
   HERO
   ================================================================ */
.hero {
    position: relative;
    background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 75%, var(--navy-light) 100%);
    color: var(--white);
    padding: calc(var(--nav-height) + 4rem) 1.5rem 5rem;
    text-align: center;
    overflow: hidden;
}

/* Subtle grid pattern */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0h40v40H0z' fill='none'/%3E%3Cpath d='M0 40L40 0M-10 10L10-10M30 50L50 30' stroke='%23ffffff' stroke-width='0.5' opacity='0.06'/%3E%3C/svg%3E");
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero-logo {
    width: 180px;
    margin: 0 auto 2.5rem;

}

.hero h1 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.02em;
    max-width: 750px;
    margin: 0 auto 1.5rem;
}

.hero-divider {
    width: 60px;
    height: 3px;
    background: var(--red);
    border-radius: 2px;
    margin: 0 auto 1.5rem;
}

.hero p {
    font-size: 1.1rem;
    line-height: 1.75;
    max-width: 680px;
    margin: 0 auto 2.5rem;
    opacity: 0.88;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Hero entrance animation */
.hero .container {
    animation: heroFadeUp 0.8s ease-out;
}

@keyframes heroFadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ================================================================
   O NAS (About)
   ================================================================ */
.about {
    padding: 5rem 1.5rem;
    background: var(--white);
}

.about-content {
    max-width: 750px;
    margin: 0 auto;
    text-align: center;
}

.about-content p {
    font-size: 1.1rem;
    color: var(--gray-600);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.about-content p:last-child {
    margin-bottom: 0;
}

.about-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--gray-200);
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--navy);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.stat-label {
    display: block;
    font-size: 0.85rem;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 0.25rem;
}

/* ================================================================
   KOMPETENCJE (Full-width cards)
   ================================================================ */
.competencies-section {
    padding: 5rem 0 0;
}

.competencies-section .section-title {
    padding: 0 1.5rem;
    margin-bottom: 0;
}

.comp-row {
    display: flex;
    align-items: center;
    gap: 3rem;
    padding: 4rem 1.5rem;
}

.comp-row:nth-child(odd) {
    background: var(--white);
}

.comp-row:nth-child(even) {
    background: var(--gray-50);
}

/* Alternate icon position */
.comp-row:nth-child(even) {
    flex-direction: row-reverse;
}

.comp-row .container {
    display: flex;
    align-items: center;
    gap: 3rem;
    width: 100%;
}

.comp-row:nth-child(even) .container {
    flex-direction: row-reverse;
}

.comp-icon {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-100);
    border-radius: 50%;
    transition: background var(--transition);
}

.comp-row:hover .comp-icon {
    background: var(--gray-200);
}

.comp-icon svg {
    width: 48px;
    height: 48px;
    color: var(--navy);
}

.comp-text {
    flex: 1;
    max-width: 620px;
}

.comp-text h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}

.comp-text p {
    font-size: 1rem;
    color: var(--gray-600);
    line-height: 1.75;
}

/* ================================================================
   PARTNERZY
   ================================================================ */
.partners {
    padding: 5rem 0;
    background: var(--white);
    border-top: 1px solid var(--gray-200);
    border-bottom: 1px solid var(--gray-200);
    overflow: hidden;
}

.partners .section-title {
    padding: 0 1.5rem;
}

.partners-track {
    display: flex;
    align-items: center;
    gap: 4rem;
    width: max-content;
    animation: marquee 30s linear infinite;
}


.partner-logo {
    height: 55px;
    width: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.5;
    transition: filter var(--transition), opacity var(--transition);
    flex-shrink: 0;
}

.partner-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* ================================================================
   WYRÓŻNIENIA (Awards)
   ================================================================ */
.awards {
    padding: 5rem 1.5rem;
    background: var(--navy);
    color: var(--white);
}

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

.awards-list {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.award-item {
    display: flex;
    align-items: baseline;
    gap: 1.25rem;
    padding: 1.25rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

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

.award-dot {
    width: 8px;
    height: 8px;
    background: var(--red);
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 0.35rem;
}

.award-text h3 {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0.15rem;
}

.award-text p {
    font-size: 0.9rem;
    opacity: 0.55;
    line-height: 1.5;
}

/* ================================================================
   KONTAKT
   ================================================================ */
.contact {
    padding: 5rem 1.5rem;
    background: var(--navy-dark);
    color: var(--white);
}

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

.contact-intro {
    text-align: center;
    margin-bottom: 3rem;
}

.contact-intro p {
    font-size: 1.1rem;
    opacity: 0.8;
    margin-bottom: 1.5rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.contact-block {
    text-align: center;
}

.contact-block-icon {
    margin-bottom: 1rem;
}

.contact-block-icon svg {
    width: 28px;
    height: 28px;
    color: var(--red-light);
}

.contact-block h4 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.5;
    margin-bottom: 0.75rem;
}

.contact-block p {
    font-size: 0.95rem;
    line-height: 1.7;
    opacity: 0.9;
}

.contact-block a {
    color: var(--white);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    transition: border-color var(--transition);
}

.contact-block a:hover {
    border-bottom-color: var(--white);
}

/* ================================================================
   FOOTER
   ================================================================ */
footer {
    background: #1e2a33;
    color: rgba(255, 255, 255, 0.5);
    padding: 2.5rem 1.5rem;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1120px;
    margin: 0 auto;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 1.5rem;
}

.footer-logo img {
    height: 30px;
    width: auto;

    opacity: 0.6;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    transition: color var(--transition);
}

.footer-links a:hover {
    color: var(--white);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1120px;
    margin: 0 auto;
    font-size: 0.82rem;
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.5);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    transition: color var(--transition);
}

.footer-bottom a:hover {
    color: var(--white);
}

/* ================================================================
   SCROLL ANIMATIONS
   ================================================================ */
[data-animate] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-animate].animated {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delays for children */
[data-animate-delay="1"] { transition-delay: 0.1s; }
[data-animate-delay="2"] { transition-delay: 0.2s; }
[data-animate-delay="3"] { transition-delay: 0.3s; }
[data-animate-delay="4"] { transition-delay: 0.4s; }

/* ================================================================
   FOCUS STYLES (Accessibility)
   ================================================================ */
:focus-visible {
    outline: 2px solid var(--red);
    outline-offset: 3px;
}

.navbar :focus-visible {
    outline-color: var(--white);
}

/* ================================================================
   RESPONSIVE
   ================================================================ */

/* Mobile */
@media (max-width: 767px) {
    .nav-toggle {
        display: block;
    }

    .nav-logo {
        flex-shrink: 0;
    }

    .lang-switcher {
        margin-left: auto;
        margin-right: 0.5rem;
    }

    .nav-menu {
        display: none;
        position: fixed;
        top: var(--nav-height);
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--navy-dark);
        padding: 1.5rem;
        gap: 0.25rem;
        box-shadow: var(--shadow-lg);
    }

    .navbar.nav-open .nav-menu {
        display: flex;
    }

    .nav-menu a {
        padding: 0.75rem 1rem;
        font-size: 0.95rem;
    }

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

    /* Hero */
    .hero {
        padding: calc(var(--nav-height) + 2.5rem) 1.5rem 3.5rem;
    }

    .hero-logo {
        width: 140px;
    }

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

    /* About stats */
    .about-stats {
        flex-direction: column;
        gap: 1.5rem;
    }

    /* Competencies */
    .comp-row .container,
    .comp-row:nth-child(even) .container {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .comp-icon {
        width: 80px;
        height: 80px;
    }

    .comp-icon svg {
        width: 40px;
        height: 40px;
    }

    .comp-text {
        max-width: 100%;
    }


    /* Contact */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Footer */
    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .footer-bottom-links {
        justify-content: center;
    }

    /* Cookie banner mobile */
    .cookie-banner-inner {
        flex-direction: column;
        text-align: center;
    }

    .cookie-banner-actions {
        width: 100%;
        justify-content: center;
    }
}

/* Tablet and up */
@media (min-width: 768px) {
    .about-content p {
        font-size: 1.15rem;
    }
}

/* Desktop */
@media (min-width: 1024px) {
    .comp-row {
        padding: 5rem 1.5rem;
    }

    .comp-text h3 {
        font-size: 1.45rem;
    }
}

/* ================================================================
   COOKIE BANNER
   ================================================================ */
#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: var(--navy-dark);
    color: var(--white);
    padding: 1.25rem 1.5rem;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

#cookie-banner.visible {
    transform: translateY(0);
}

.cookie-banner-inner {
    max-width: 1120px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.cookie-banner-text {
    flex: 1;
    min-width: 280px;
    font-size: 0.9rem;
    line-height: 1.6;
    opacity: 0.9;
}

.cookie-banner-text a {
    color: var(--white);
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    transition: border-color var(--transition);
}

.cookie-banner-text a:hover {
    border-bottom-color: var(--white);
}

.cookie-banner-actions {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 0.6rem 1.5rem;
    font-size: 0.85rem;
}

.cookie-btn-reject {
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.cookie-btn-reject:hover {
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.05);
}

/* Footer cookie settings button */
.footer-bottom-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.footer-cookie-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-family: var(--font-main);
    font-size: 0.82rem;
    cursor: pointer;
    padding: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    transition: color var(--transition);
}

.footer-cookie-btn:hover {
    color: var(--white);
}

/* ================================================================
   PRIVACY PAGE
   ================================================================ */
.privacy-page {
    padding: calc(var(--nav-height) + 3rem) 1.5rem 5rem;
    background: var(--white);
}

.privacy-content {
    max-width: 750px;
    margin: 0 auto;
}

.privacy-content h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 0.5rem;
}

.privacy-updated {
    font-size: 0.85rem;
    color: var(--gray-400);
    margin-bottom: 2.5rem;
}

.privacy-content h2 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--navy);
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.privacy-content p {
    font-size: 0.95rem;
    color: var(--gray-600);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.privacy-content ul {
    list-style: disc;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.privacy-content li {
    font-size: 0.95rem;
    color: var(--gray-600);
    line-height: 1.8;
    margin-bottom: 0.35rem;
}

.privacy-content a {
    color: var(--red);
    border-bottom: 1px solid transparent;
    transition: border-color var(--transition);
}

.privacy-content a:hover {
    border-bottom-color: var(--red);
}

/* Small phones */
@media (max-width: 380px) {
    .hero h1 {
        font-size: 1.5rem;
    }

    .hero-actions .btn {
        width: 100%;
        text-align: center;
    }

    .partner-logo {
        height: 40px;
    }
}
