/* =========================================
   RESET
========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* =========================================
   CONTAINER
========================================= */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}


/* =========================================
   ZMIENNE GLOBALNE
========================================= */
:root {
    --font-main: 'Inter', sans-serif;

    --color-bg: #ffffff;
    --color-text: #111111;
    --color-accent: #009f4d;

    --color-dark-bg: #0d0d0d;
    --color-dark-text: #e6e6e6;
    --color-dark-accent: #00e0ff;

    --max-width: 1200px;
    --spacing-section: 80px;
}

/* =========================================
   TYPOGRAFIA
========================================= */
body {
    font-family: var(--font-main);
    font-size: 16px;
    line-height: 1.6;
    background: var(--color-bg);
    color: var(--color-text);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
    font-weight: 700;
    line-height: 1.2;
}

h1 { font-size: 48px; }
h2 { font-size: 32px; margin-bottom: 20px; }
h3 { font-size: 22px; margin-bottom: 10px; }

p { margin-bottom: 16px; }

/* =========================================
   GLOBAL LAYOUT
========================================= */
main {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 40px 20px;
}

/* =========================================
   PRZYCISKI
========================================= */
.btn {
    display: inline-block;
    padding: 12px 24px;
    background: var(--color-accent);
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: 0.2s ease;
}

.btn:hover {
    opacity: 0.85;
}

/* =========================================
   HEADER + MENU — FINAL PREMIUM VERSION
========================================= */

header {
    width: 100%;
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #e5e5e5;
}

/* Wewnętrzny kontener wyrównujący logo i menu */
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* LOGO */
.logo img {
    height: 42px;
    width: auto;
    display: block;
}

/* MENU DESKTOP */
nav ul {
    list-style: none;
    display: flex;
    gap: 32px;
}

nav a {
    text-decoration: none;
    color: var(--color-text);
    font-weight: 500;
    transition: 0.2s ease;
}

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

/* =========================================
   MENU MOBILE
========================================= */

@media (max-width: 768px) {

    nav ul {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 260px;
        background: #fff;
        flex-direction: column;
        padding: 80px 20px;
        gap: 20px;
        transition: 0.3s ease;
        box-shadow: -4px 0 12px rgba(0,0,0,0.1);
    }

    nav ul.active {
        right: 0;
    }

    .menu-toggle {
        display: block;
        width: 32px;
        height: 32px;
        cursor: pointer;
    }

    .menu-toggle span {
        display: block;
        width: 100%;
        height: 4px;
        background: var(--color-text);
        margin-bottom: 6px;
        border-radius: 2px;
        transition: 0.3s ease;
    }

    /* animacja X */
    .menu-toggle.active span:nth-child(1) {
        transform: translateY(10px) rotate(45deg);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-10px) rotate(-45deg);
    }

    /* ukrycie menu desktop */
    nav {
        display: none;
    }

    nav.mobile {
        display: block;
    }
}

/* =========================================
   HERO SECTION
========================================= */

.hero {
    width: 100%;
    height: 100vh;
    background: url('/assets/img/hero-default.jpg') center center / cover no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4); /* overlay */
    z-index: 1;
}

.hero-inner {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

.hero p {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero .btn {
    padding: 12px 24px;
    font-size: 16px;
    background: #00a859;
    color: #fff;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.3s ease;
}

.hero .btn:hover {
    background: #008c4a;
}

/* =========================================
   HERO — MOBILE
========================================= */

@media (max-width: 768px) {

    .hero {
        height: 70vh;
        min-height: 380px;
    }

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

    .hero p {
        font-size: 18px;
    }

    .hero .btn {
        padding: 12px 28px;
        font-size: 16px;
    }
}

/* =========================================
   HERO SECTION
========================================= */

.hero {
    width: 100%;
    height: 80vh;
    min-height: 480px;
    background: url('../img/hero.png') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
    position: relative;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.35);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
    max-width: 800px;
}

.hero h1 {
    font-size: 52px;
    margin-bottom: 20px;
}

.hero p {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero .btn {
    background: var(--color-accent);
    padding: 14px 32px;
    font-size: 18px;
}

@media (max-width: 768px) {

    .hero {
        height: 70vh;
        min-height: 380px;
    }

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

    .hero p {
        font-size: 18px;
    }

    .hero .btn {
        padding: 12px 28px;
        font-size: 16px;
    }
}

/* =========================================
   CO ROBIMY — SERVICES
========================================= */

.services {
    margin-top: var(--spacing-section);
    margin-bottom: var(--spacing-section);
    text-align: center;
}

.services h2 {
    margin-bottom: 40px;
}

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

.service-item {
    padding: 20px;
    border-radius: 8px;
    background: #f8f8f8;
    transition: 0.25s ease;
}

.service-item:hover {
    transform: translateY(-4px);
    background: #f0f0f0;
}

.service-item h3 {
    margin-bottom: 12px;
}

.service-item p {
    font-size: 15px;
    opacity: 0.85;
}

/* MOBILE */
@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 600px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   PORTFOLIO PREVIEW
========================================= */

.portfolio-preview {
    margin-top: var(--spacing-section);
    margin-bottom: var(--spacing-section);
    text-align: center;
}

.portfolio-preview h2 {
    margin-bottom: 20px;
}

.portfolio-preview p {
    margin-bottom: 30px;
    opacity: 0.85;
}

/* =========================================
   PORTFOLIO GRID 
========================================= */

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

.portfolio-item a {
    display: block;
    text-decoration: none;
    color: inherit;
}

.portfolio-thumb {
    border-radius: 8px;
    overflow: hidden;
    background: #000;
}

.portfolio-thumb img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.portfolio-item:hover .portfolio-thumb img {
    transform: scale(1.04);
    opacity: 0.95;
}

.portfolio-meta {
    margin-top: 12px;
}

.portfolio-meta h2 {
    font-size: 20px;
    margin-bottom: 4px;
}

.portfolio-meta-line {
    font-size: 14px;
    opacity: 0.8;
    display: flex;
    gap: 12px;
}

/* PROJECT PAGE */

.project-meta span {
    margin-right: 16px;
    font-size: 14px;
    opacity: 0.8;
}

.project-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.project-gallery-item img {
    width: 100%;
    border-radius: 6px;
    display: block;
}

/* RESPONSIVE */

@media (max-width: 992px) {
    .portfolio-grid-inner {
        grid-template-columns: repeat(2, 1fr);
    }
    .project-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .portfolio-grid-inner {
        grid-template-columns: 1fr;
    }
    .project-gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   WHY US
========================================= */

.why-us {
    margin-top: var(--spacing-section);
    margin-bottom: var(--spacing-section);
    text-align: center;
}

.why-us h2 {
    margin-bottom: 30px;
}

.why-us ul {
    list-style: none;
    max-width: 600px;
    margin: 0 auto;
    padding: 0;
}

.why-us li {
    padding: 12px 0;
    font-size: 18px;
    border-bottom: 1px solid #e5e5e5;
}

.why-us li:last-child {
    border-bottom: none;
}

/* =========================================
   CONTACT CTA
========================================= */

.contact-cta {
    margin-top: var(--spacing-section);
    margin-bottom: var(--spacing-section);
    text-align: center;
    padding: 60px 20px;
    background: var(--color-accent);
    color: #fff;
    border-radius: 8px;
}

.contact-cta h2 {
    font-size: 32px;
    margin-bottom: 16px;
}

.contact-cta p {
    font-size: 18px;
    margin-bottom: 24px;
}

.contact-cta .btn {
    background: #fff;
    color: var(--color-accent);
    font-weight: 700;
}

/* =========================================
   FOOTER
========================================= */

footer {
    text-align: center;
    padding: 30px 20px;
    background: #f5f5f5;
    color: #555;
    font-size: 14px;
    margin-top: 60px;
}

/* =========================================
   UTILITY CLASSES
========================================= */

.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.mt-40 { margin-top: 40px; }
.mt-60 { margin-top: 60px; }
.mb-20 { margin-bottom: 20px; }
.mb-40 { margin-bottom: 40px; }
.mb-60 { margin-bottom: 60px; }

/* =========================================
   ANIMATIONS (OPTIONAL)
========================================= */

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.8s ease forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}