/* ============================================
   Flying Pigs Lab — Main Stylesheet
   ============================================ */

:root {
    --orange: #e8733a;
    --orange-dark: #cf6330;
    --orange-light: #f2935e;
    --orange-bg: #ee8a50;
    --teal: #3a8a82;
    --teal-dark: #2d6e68;
    --teal-deep: #266460;
    --white: #ffffff;
    --off-white: #fafafa;
    --light-gray: #f0f0f0;
    --mid-gray: #ccc;
    --text: #444;
    --text-light: #777;
    --text-dark: #2a2a2a;
    --font-display: 'Sacramento', cursive;
    --font-body: 'Lato', sans-serif;
    --nav-height: 52px;
    --section-padding: 60px 0;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height);
}

body {
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.65;
    color: var(--text);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    /* nav jest position:fixed — rezerwujemy jego wysokość (+ notch) */
    padding-top: calc(var(--nav-height) + env(safe-area-inset-top, 0px));
}

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

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

ul {
    list-style: none;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================
   Navigation
   ============================================ */

.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--teal-dark);
    min-height: var(--nav-height);
    padding-top: env(safe-area-inset-top, 0px);
    box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}

.nav-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: var(--nav-height);
}

.logo {
    display: flex;
    align-items: center;
    color: var(--white);
}

.logo-text {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    opacity: 0.95;
}

.nav-links {
    display: flex;
    gap: 6px;
}

.nav-links li a {
    display: block;
    padding: 6px 12px;
    color: rgba(255,255,255,0.88);
    font-size: 12.5px;
    font-weight: 400;
    letter-spacing: 0.3px;
    border-radius: 4px;
    transition: color 0.2s, background 0.2s;
}

.nav-links li a:hover {
    color: #fff;
    background: rgba(255,255,255,0.1);
}

.nav-links li a.lang-switch {
    border: 1px solid rgba(255,255,255,0.4);
    font-weight: 700;
    letter-spacing: 1px;
    padding: 5px 10px;
}

/* Mobile menu button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 24px;
    position: relative;
    flex-direction: column;
    justify-content: space-between;
    padding: 0;
}

.mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

.mobile-menu-btn.is-active span:nth-child(1) {
    transform: translateY(11px) rotate(45deg);
}
.mobile-menu-btn.is-active span:nth-child(2) {
    opacity: 0;
}
.mobile-menu-btn.is-active span:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg);
}

/* ============================================
   Hero
   ============================================ */

.hero {
    position: relative;
    height: 420px;
    overflow: visible;
    background:
        linear-gradient(165deg,
            rgba(38, 100, 96, 0.85) 0%,
            rgba(58, 138, 130, 0.7) 35%,
            rgba(120, 170, 140, 0.5) 55%,
            rgba(196, 168, 100, 0.4) 75%,
            rgba(210, 170, 90, 0.6) 100%
        ),
        linear-gradient(to bottom,
            #2d7d76 0%,
            #4a9e8e 25%,
            #7ab89a 45%,
            #a8c87a 60%,
            #c4a860 75%,
            #d4a050 100%
        );
    background-size: cover;
    display: flex;
    align-items: flex-start;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 40%, rgba(38, 100, 96, 0.4) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 80%, rgba(196, 168, 100, 0.25) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 60px 40px;
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: 52px;
    font-weight: 400;
    color: var(--white);
    line-height: 1.15;
    text-shadow: 0 2px 12px rgba(0,0,0,0.25);
}

.hero h1 em {
    font-style: normal;
}

.hero-sub {
    margin-top: 10px;
    max-width: 420px;
    font-size: 15.5px;
    line-height: 1.55;
    color: rgba(255,255,255,0.92);
    text-shadow: 0 1px 6px rgba(0,0,0,0.25);
}

.btn-hero {
    margin-top: 22px;
    border: 2px solid var(--white);
    color: var(--white);
    background: rgba(255,255,255,0.08);
    text-shadow: none;
}

.btn-hero:hover {
    background: var(--white);
    color: var(--teal-dark);
    box-shadow: 0 2px 12px rgba(0,0,0,0.2);
}

/* Main pig (center) */
.hero-pig-wrapper {
    position: absolute;
    bottom: -44px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    filter: drop-shadow(0 4px 16px rgba(0,0,0,0.18));
    animation: pig-float 3.5s ease-in-out infinite;
    --pig-x: 0px;
    --pig-y: 0px;
}

.hero-pig {
    width: 150px;
    height: auto;
}

/* Small pigs */
.hero-pig-small {
    position: absolute;
    z-index: 3;
    filter: drop-shadow(0 3px 10px rgba(0,0,0,0.12));
    opacity: 0.85;
    --pig-x: 0px;
    --pig-y: 0px;
}

.hero-pig-small svg {
    width: 70px;
    height: auto;
}

.hero-pig-left {
    bottom: 20px;
    left: 10%;
    animation: pig-float-left 4s ease-in-out infinite;
}

.hero-pig-right {
    bottom: 40px;
    right: 10%;
    animation: pig-float-right 3.8s ease-in-out 0.5s infinite;
}

/* Floating animations */
@keyframes pig-float {
    0%, 100% { transform: translateX(calc(-50% + var(--pig-x))) translateY(var(--pig-y)); }
    50% { transform: translateX(calc(-50% + var(--pig-x))) translateY(calc(-10px + var(--pig-y))); }
}

@keyframes pig-float-left {
    0%, 100% { transform: translate(var(--pig-x), var(--pig-y)) rotate(-3deg); }
    50% { transform: translate(var(--pig-x), calc(-14px + var(--pig-y))) rotate(2deg); }
}

@keyframes pig-float-right {
    0%, 100% { transform: translate(var(--pig-x), var(--pig-y)) rotate(5deg); }
    50% { transform: translate(var(--pig-x), calc(-12px + var(--pig-y))) rotate(-2deg); }
}

/* ============================================
   Sections – Common
   ============================================ */

.section {
    padding: var(--section-padding);
    border-bottom: 1px solid var(--light-gray);
    position: relative;
}

.section-alt {
    background: var(--off-white);
}

.section-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 8px;
}

.section-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--orange);
    color: var(--white);
    font-size: 15px;
    font-weight: 700;
    flex-shrink: 0;
    line-height: 1;
}

.section-number-light {
    background: rgba(255,255,255,0.25);
    color: var(--white);
}

.section-title {
    font-family: var(--font-display);
    font-size: 40px;
    font-weight: 400;
    color: var(--orange);
    line-height: 1.1;
}

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

.section-subtitle {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 32px;
    max-width: 600px;
    line-height: 1.6;
}

.section-subtitle-light {
    color: rgba(255,255,255,0.9);
}

/* ============================================
   Co robimy – Services
   ============================================ */

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.service-col h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--orange);
    display: inline-block;
}

.service-col ul {
    list-style: none;
}

.service-col li {
    font-size: 13px;
    color: var(--text);
    padding: 4px 0;
    padding-left: 14px;
    position: relative;
}

.service-col li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--orange);
}

/* ============================================
   Zrealizowane projekty
   ============================================ */

.projects-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}

.project-card {
    background: var(--white);
    border: 1px solid var(--light-gray);
    border-radius: 6px;
    padding: 20px 22px;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.project-card:hover {
    transform: translateY(-3px);
    border-color: var(--orange-light);
    box-shadow: 0 6px 18px rgba(0,0,0,0.07);
}

.project-shot {
    display: block;
    width: calc(100% + 44px);
    margin: -20px -22px 16px;
    height: 180px;
    object-fit: cover;
    object-position: top center;
    border-radius: 5px 5px 0 0;
    border-bottom: 1px solid var(--light-gray);
}

.project-shot-wip {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--off-white);
    color: var(--text-light);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.project-tag {
    display: inline-block;
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--teal);
    background: rgba(58, 138, 130, 0.1);
    border-radius: 3px;
    padding: 2px 8px;
    margin-bottom: 10px;
}

.project-card h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 6px;
    line-height: 1.3;
    color: var(--orange);
}

.project-card p {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.6;
}

/* ============================================
   Jak wygląda współpraca — Steps
   ============================================ */

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.step-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--teal);
    color: var(--white);
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 14px;
}

.step h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.step p {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.6;
}

/* ============================================
   Kto za tym stoi
   ============================================ */

.solo-box {
    display: flex;
    align-items: center;
    gap: 32px;
    margin-top: 24px;
}

.solo-logo {
    width: 160px;
    flex-shrink: 0;
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.solo-text p {
    font-size: 14.5px;
    line-height: 1.7;
    max-width: 560px;
}

.solo-text p + p {
    margin-top: 12px;
}

.solo-link {
    color: var(--orange);
    font-weight: 700;
    border-bottom: 2px solid var(--orange-light);
    transition: color 0.2s, border-color 0.2s;
}

.solo-link:hover {
    color: var(--orange-dark);
    border-color: var(--orange-dark);
}

.btn {
    display: inline-block;
    padding: 10px 28px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.3px;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.btn-outline {
    border: 2px solid var(--orange);
    color: var(--orange);
    background: transparent;
}

.btn-outline:hover {
    background: var(--orange);
    color: var(--white);
    box-shadow: 0 2px 10px rgba(232, 115, 58, 0.3);
}

/* ============================================
   Contact
   ============================================ */

.section-contact {
    background: var(--orange);
    padding: 50px 0;
    text-align: center;
}

.section-contact .section-header {
    justify-content: center;
}

.section-contact .section-subtitle {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.contact-methods {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--white);
    font-size: 13px;
    font-weight: 400;
    transition: transform 0.2s;
}

.contact-item:hover {
    transform: translateY(-2px);
}

.contact-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* ============================================
   Footer
   ============================================ */

.main-footer {
    background: var(--orange-dark);
    padding: 40px 0 20px;
    color: rgba(255,255,255,0.85);
}

.footer-inner {
    display: flex;
    align-items: flex-start;
    gap: 48px;
    margin-bottom: 28px;
}

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

.footer-links {
    display: flex;
    gap: 48px;
    flex: 1;
}

.footer-col h4 {
    font-size: 13px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.footer-col ul li {
    margin-bottom: 5px;
}

.footer-col a {
    font-size: 13px;
    color: rgba(255,255,255,0.75);
    transition: color 0.2s;
}

.footer-col a:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 16px;
    text-align: center;
}

.footer-bottom p {
    font-size: 12px;
    color: rgba(255,255,255,0.55);
}

/* ============================================
   Responsive — Tablet
   ============================================ */

@media (max-width: 768px) {
    :root {
        --section-padding: 48px 0;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--teal-dark);
        flex-direction: column;
        padding: 12px 24px 20px;
        gap: 2px;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    }

    .nav-links.is-open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav-links li a {
        padding: 10px 8px;
        font-size: 14px;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero {
        height: 400px;
    }

    .hero h1 {
        font-size: 40px;
    }

    .hero-sub {
        font-size: 14px;
    }

    .hero-content {
        padding: 44px 24px;
    }

    .hero-pig {
        width: 110px;
    }

    .hero-pig-small svg {
        width: 55px;
    }

    .hero-pig-left {
        left: 4%;
        bottom: 10px;
    }

    .hero-pig-right {
        right: 4%;
        bottom: 25px;
    }

    .section-title {
        font-size: 34px;
    }

    .services-grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }

    .solo-box {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .contact-methods {
        gap: 28px;
    }

    .footer-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 28px;
    }

    .footer-links {
        justify-content: center;
        gap: 36px;
    }
}

/* ============================================
   Responsive — Mobile
   ============================================ */

@media (max-width: 480px) {
    :root {
        --section-padding: 40px 0;
        --nav-height: 48px;
    }

    .logo-text {
        font-size: 12px;
        letter-spacing: 1.5px;
    }

    .hero {
        height: 380px;
    }

    .hero h1 {
        font-size: 32px;
    }

    .hero-content {
        padding: 36px 20px;
    }

    .hero-pig {
        width: 90px;
    }

    .hero-pig-wrapper {
        bottom: -30px;
    }

    .hero-pig-small {
        display: none;
    }

    .section-title {
        font-size: 30px;
    }

    .section-number {
        width: 28px;
        height: 28px;
        font-size: 13px;
    }

    .services-grid,
    .steps-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .solo-logo {
        width: 130px;
    }

    .contact-methods {
        flex-direction: column;
        align-items: center;
        gap: 22px;
    }

    .footer-links {
        flex-direction: column;
        gap: 24px;
    }
}
