:root{
    --yellow:#E6FF1A;
    --green:#1E5F46;
    --green-dark:#143E2F;
    --black:#111;
    --gray:#f4f4f4;
}

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

html:target section,
section:target {
    opacity: 1;
    transform: none;
}

body{
    font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Ubuntu,sans-serif;
    color:#222;
    line-height:1.6;
    overflow-x:hidden;
    background:#fff;
}

/* CONTAINER */
.container{
    max-width:1200px;
    margin:auto;
    padding:0 20px;
}

/* SECTIONS ANIMATION */
section{
    padding:70px 0;
    opacity:1;
    transform:none;
    transition:opacity .6s ease, transform .6s ease;
}

.js section.reveal{
    opacity:0;
    transform:translateY(40px);
}

.js section.reveal.is-visible{
    opacity:1;
    transform:none;
}

/* NAV */
nav{
    position:fixed;
    width:100%;
    top:0;
    background:#fff;
    box-shadow:0 2px 10px rgba(0,0,0,.05);
    z-index:999;
}

nav .container{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:15px 20px;
}

.logo{
    font-weight:700;
    font-size:20px;
}

nav a{
    margin-left:20px;
    text-decoration:none;
    color:#222;
    font-weight:500;
    transition:.25s;
}

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

/* HERO */
.hero{
    height:90vh;
    background:
        linear-gradient(rgba(0,0,0,.25),rgba(0,0,0,.55)),
        url("/assets/img/hero-banner.jpeg");
    background-size:cover;
    background-position:center;
    display:flex;
    align-items:center;
    justify-content:center;
    text-align:center;
}

.hero .container{
    max-width:900px;
    padding:0 20px;
}

.hero h1{
    color:#fff;
    font-size:48px;
    margin-bottom:20px;
    animation:fadeUp 1s ease forwards;
}

.hero p{
    color:#fff;
    font-size:20px;
    margin-bottom:30px;
    animation:fadeUp 1.4s ease forwards;
}

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

/* BUTTON */
.btn{
    display:inline-block;
    background:#d5a11b;
    color:#fff;
    padding:14px 28px;
    text-decoration:none;
    border-radius:6px;
    font-weight:600;
    transition:.25s;
}

.btn:hover{
    transform:translateY(-2px);
    box-shadow:0 8px 20px rgba(0,0,0,.2);
}

.btn--ghost{
    background:transparent;
    border-color:rgba(255,255,255,.25);
    color:#fff
}

/* COUNTERS */
.counters{
    display:flex;
    justify-content:space-around;
    flex-wrap:wrap;
    gap:25px;
    text-align:center;
}

.counter{
    font-size:38px;
    font-weight:700;
    color:var(--green-dark);
}

/* SERVICES */
.services{
    background:var(--gray);
}

.grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
    gap:25px;
}

.card{
    background:#fff;
    padding:30px;
    border-radius:10px;
    box-shadow:0 6px 20px rgba(0,0,0,.05);
    transition:.3s;
}

.card:hover{
    transform:translateY(-8px);
    box-shadow:0 14px 30px rgba(0,0,0,.1);
}

.service-icon {
    display: flex;
    justify-content: center;
    align-items: center;

    margin-bottom: 18px;
}

.service-icon svg {
    width: 64px;
    height: 64px;

    stroke: #1a1a1a;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;

    transition: all 0.3s ease;
}

.card:hover .service-icon svg {
    stroke: #c59d5f;
    transform: translateY(-3px) scale(1.05);
}

/* === ANIMACJA RYSOWANIA SVG === */
.service-icon svg path,
.service-icon svg rect,
.service-icon svg circle {
    stroke-dasharray: 120;
    stroke-dashoffset: 120;
    animation: drawIcon 1.2s ease forwards;
}

/* opóźnienie dla efektu "cascade" */
.card:nth-child(1) svg * { animation-delay: 0.1s; }
.card:nth-child(2) svg * { animation-delay: 0.2s; }
.card:nth-child(3) svg * { animation-delay: 0.3s; }
.card:nth-child(4) svg * { animation-delay: 0.4s; }
.card:nth-child(5) svg * { animation-delay: 0.5s; }
.card:nth-child(6) svg * { animation-delay: 0.6s; }
.card:nth-child(7) svg * { animation-delay: 0.7s; }
.card:nth-child(8) svg * { animation-delay: 0.8s; }

@keyframes drawIcon {
    to {
        stroke-dashoffset: 0;
    }
}

.card:hover svg path,
.card:hover svg rect,
.card:hover svg circle {
    stroke-dashoffset: 120;
    animation: drawIcon 0.8s ease forwards;
}

.card:hover .service-icon svg {
    stroke: #c59d5f;
    filter: drop-shadow(0 0 6px rgba(197,157,95,0.4));
}

/* PROJECTS */
.projects-section{
    background:#fff;
}

.section-title{
    font-size:32px;
    margin:10px 0 40px;
}

.video-wrapper{
    
}

.video-wrapper{
    position: relative;
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
    padding-top: 56.25%;
    text-align: center;
}

.video-wrapper iframe{
    position: absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
}

/* GRID */
.projects-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(300px,1fr));
    gap:25px;
}

/* CARD */
.project-card{
    background:#fff;
    border-radius:12px;
    overflow:hidden;
    box-shadow:0 6px 20px rgba(0,0,0,.06);
    transition:.35s;
}

.project-card:hover{
    transform:translateY(-8px);
    box-shadow:0 16px 40px rgba(0,0,0,.12);
}

/* LINK RESET */
.project-card a{
    text-decoration:none;
    color:inherit;
    display:block;
    height:100%;
}

/* IMAGE */
.project-media{
    height:220px;
    overflow:hidden;
    background:#000;
}

.project-media img{
    width:100%;
    height:100%;
    object-fit:cover;
    transition:transform .5s ease;
}

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

/* BODY */
.project-body{
    padding:18px;
}

.project-body h3{
    margin:12px 0 8px;
    font-size:18px;
}

.project-body p{
    font-size:14px;
    color:#555;
}

/* MUTED TEXT */
.muted{
    color:#777;
}

/* WHY */
.why ul{
    list-style:none;
    font-size:17px;
}

.why li{
    margin-bottom:10px;
}

/* REVIEWS */
.review-card{
    background:#fff;
    border-radius:12px;
    padding:20px;
    box-shadow:0 4px 15px rgba(0,0,0,.08);
}

.author{
    font-weight:600;
    display:flex;
    align-items:center;
    gap:10px;
}

.author img{
    width:40px;
    border-radius:50%;
}

.stars{
    color:#fbbc04;
}

.text{
    font-style:italic;
    font-size:.9em;
    color:#444;
}

.gallery-item{
    aspect-ratio: 4/3;
    overflow:hidden;
}

.gallery-item img{
    width:100%;
    height:100%;
    object-fit:cover;
}

/* GRID */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 18px;
}

/* ITEM */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    background: #f5f5f5;
    box-shadow: 0 10px 25px rgba(0,0,0,0.06);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

/* IMAGE */
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;

    aspect-ratio: 4 / 3; /* klucz do spójności */
    transition: transform 0.6s ease;
}

/* HOVER */
.gallery-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* CONTACT */
.contact{
    background:var(--green-dark);
    color:#fff;
}

.contact h2{
    color:var(--yellow);
}

.reviews-cta {
    text-align: center;
    margin-top: 40px;
}

.btn--google {
    background: #c59d5f;
    color: #fff;
    padding: 14px 28px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn--google:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

/* FOOTER */
footer{
    background:#000;
    color:#fff;
    text-align:center;
    padding:20px;
}

footer a {
    color: rgba(255, 255, 255, 0.7); /* delikatny */
    text-decoration: none;
    font-size: 14px;
    transition: all 0.25s ease;
    position: relative;
}

/* hover */
footer a:hover {
    color: #fff;
}

/* subtelna linia animowana */
footer a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 0;
    height: 1px;
    background: currentColor;
    transition: width 0.3s ease;
}

footer a:hover::after {
    width: 100%;
}

/* MOBILE */
@media(max-width:768px){

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

    nav .container{
        flex-direction:column;
        gap:10px;
    }

    nav a{
        margin:0 10px;
    }

    section{
        padding:70px 0;
    }

}
