/* ============================================
   Bogdan Rożek - Wykończenia Kuchni i Łazienek
   Clean, Modern One-Page Design
   ============================================ */

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

:root {
    --color-primary: #2c3e50;
    --color-accent: #c0944a;
    --color-accent-dark: #a67d3d;
    --color-text: #333;
    --color-text-light: #666;
    --color-bg: #fff;
    --color-bg-alt: #f8f7f4;
    --color-border: #e8e6e1;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Playfair Display', Georgia, serif;
    --container: 1200px;
    --nav-height: 72px;
    --radius: 12px;
    --shadow: 0 4px 24px rgba(0,0,0,.08);
    --shadow-lg: 0 12px 48px rgba(0,0,0,.12);
    --transition: .3s ease;
}

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

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Section --- */
.section {
    padding: 96px 0;
}

.section__title {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    color: var(--color-primary);
    text-align: center;
    margin-bottom: 12px;
}

.section__title--left { text-align: left; }

.section__subtitle {
    text-align: center;
    color: var(--color-text-light);
    font-size: 1.05rem;
    margin-bottom: 56px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: .95rem;
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
}

.btn--primary {
    background: var(--color-accent);
    color: #fff;
    border-color: var(--color-accent);
}
.btn--primary:hover {
    background: var(--color-accent-dark);
    border-color: var(--color-accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(192,148,74,.3);
}

.btn--outline {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,.6);
}
.btn--outline:hover {
    background: #fff;
    color: var(--color-primary);
    border-color: #fff;
    transform: translateY(-2px);
}

/* --- Navigation --- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    z-index: 1000;
    transition: var(--transition);
    background: transparent;
}

.nav--scrolled {
    background: rgba(255,255,255,.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 2px 16px rgba(0,0,0,.06);
}

.nav--scrolled .nav__logo-name,
.nav--scrolled .nav__logo-sub,
.nav--scrolled .nav__link { color: var(--color-primary); }

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

.nav__logo { display: flex; flex-direction: column; }
.nav__logo-name {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    transition: var(--transition);
}
.nav__logo-sub {
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255,255,255,.8);
    transition: var(--transition);
}

.nav__menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav__link {
    padding: 8px 16px;
    color: #fff;
    font-weight: 500;
    font-size: .9rem;
    border-radius: 6px;
    transition: var(--transition);
}

.nav__link:hover { background: rgba(255,255,255,.15); }
.nav--scrolled .nav__link:hover { background: rgba(44,62,80,.06); }

.nav__link--cta {
    background: var(--color-accent);
    color: #fff !important;
}
.nav__link--cta:hover {
    background: var(--color-accent-dark) !important;
}

.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}
.nav__toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: var(--transition);
}
.nav--scrolled .nav__toggle span { background: var(--color-primary); }

/* --- Hero --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: scale(1.05);
    transition: transform 8s ease;
}

.hero:hover .hero__bg { transform: scale(1); }

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(20,30,40,.65) 0%, rgba(20,30,40,.8) 100%);
}

.hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 24px;
    max-width: 800px;
}

.hero__title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: #fff;
    line-height: 1.15;
    margin-bottom: 20px;
}

.hero__subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: rgba(255,255,255,.85);
    margin-bottom: 36px;
    font-weight: 400;
}

.hero__cta-group {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 56px;
}

.hero__stats {
    display: flex;
    gap: 48px;
    justify-content: center;
}

.hero__stat { text-align: center; }

.hero__stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--color-accent);
    line-height: 1;
}

.hero__stat-label {
    font-size: .85rem;
    color: rgba(255,255,255,.7);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
    display: block;
}

.hero__scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: rgba(255,255,255,.5);
    animation: bounce 2s ease infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* --- Services --- */
.services { background: var(--color-bg-alt); }

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

.service-card {
    background: #fff;
    padding: 36px 28px;
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: var(--color-accent);
}

.service-card__icon {
    width: 64px;
    height: 64px;
    margin-bottom: 20px;
    color: var(--color-accent);
}

.service-card__title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--color-primary);
    margin-bottom: 12px;
}

.service-card__text {
    color: var(--color-text-light);
    font-size: .92rem;
    line-height: 1.7;
}

/* --- About --- */
.about__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.about__image {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 4/3;
}

.about__text {
    color: var(--color-text-light);
    margin-bottom: 32px;
    font-size: 1.02rem;
}

.about__features {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.about__features li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    font-size: .95rem;
}

.about__features svg {
    color: var(--color-accent);
    flex-shrink: 0;
}

/* --- Tile Types (SEO section) --- */
.tiles-types { background: var(--color-bg-alt); }

.tiles-types__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.tile-type {
    background: #fff;
    padding: 28px 24px;
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
    transition: var(--transition);
}

.tile-type:hover {
    border-color: var(--color-accent);
    transform: translateY(-2px);
}

.tile-type h3 {
    font-size: 1rem;
    color: var(--color-primary);
    margin-bottom: 8px;
    font-family: var(--font-heading);
}

.tile-type p {
    font-size: .88rem;
    color: var(--color-text-light);
    line-height: 1.6;
}

/* --- Gallery --- */
.gallery__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.gallery__item { cursor: pointer; }

.gallery__img-wrap {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 4/3;
}

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

.gallery__item:hover .gallery__img-wrap img {
    transform: scale(1.05);
}

.gallery__overlay {
    position: absolute;
    inset: 0;
    background: rgba(44,62,80,.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.gallery__item:hover .gallery__overlay { opacity: 1; }

.gallery__zoom {
    width: 56px;
    height: 56px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    transform: scale(.7);
    transition: var(--transition);
}

.gallery__item:hover .gallery__zoom { transform: scale(1); }

.gallery__title {
    font-size: .95rem;
    color: var(--color-primary);
    margin-top: 14px;
    font-weight: 600;
}

/* --- Lightbox --- */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0,0,0,.92);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

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

.lightbox__content {
    max-width: 90vw;
    max-height: 85vh;
    text-align: center;
}

.lightbox__img {
    max-width: 100%;
    max-height: 70vh;
    border-radius: 8px;
    object-fit: contain;
}

.lightbox__caption {
    margin-top: 16px;
    color: #fff;
}

.lightbox__caption h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.lightbox__caption p {
    color: rgba(255,255,255,.7);
    font-size: .9rem;
    max-width: 600px;
    margin: 0 auto;
}

.lightbox__close {
    position: absolute;
    top: 20px;
    right: 24px;
    background: none;
    border: none;
    color: #fff;
    font-size: 2.5rem;
    cursor: pointer;
    line-height: 1;
    opacity: .7;
    transition: var(--transition);
    z-index: 10;
}
.lightbox__close:hover { opacity: 1; }

.lightbox__prev,
.lightbox__next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,.1);
    border: none;
    color: #fff;
    font-size: 3rem;
    cursor: pointer;
    padding: 16px 20px;
    border-radius: 8px;
    opacity: .6;
    transition: var(--transition);
}
.lightbox__prev:hover,
.lightbox__next:hover { opacity: 1; background: rgba(255,255,255,.2); }
.lightbox__prev { left: 16px; }
.lightbox__next { right: 16px; }

/* --- Area --- */
.area { background: var(--color-bg-alt); }

.area__text {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.area__text p {
    color: var(--color-text-light);
    margin-bottom: 32px;
    font-size: 1.05rem;
}

.area__cities {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.area__cities li {
    padding: 8px 20px;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 100px;
    font-size: .9rem;
    font-weight: 500;
    color: var(--color-primary);
    transition: var(--transition);
}

.area__cities li:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

/* --- Contact --- */
.contact__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.contact__card {
    background: var(--color-bg-alt);
    padding: 36px;
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.contact__item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.contact__item svg {
    color: var(--color-accent);
    flex-shrink: 0;
    margin-top: 2px;
}

.contact__item strong {
    display: block;
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-text-light);
    margin-bottom: 4px;
}

.contact__item a,
.contact__item span {
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--color-primary);
}

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

/* --- Footer --- */
.footer {
    background: var(--color-primary);
    color: rgba(255,255,255,.7);
    padding: 36px 0;
    text-align: center;
    font-size: .88rem;
}

.footer__seo {
    margin-top: 8px;
    font-size: .8rem;
    opacity: .5;
}

/* --- Mobile Call Button --- */
.mobile-call {
    display: none;
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    background: var(--color-accent);
    color: #fff;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(192,148,74,.4);
    z-index: 100;
    transition: var(--transition);
    animation: pulse 2s ease infinite;
}

.mobile-call:hover {
    background: var(--color-accent-dark);
    transform: scale(1.1);
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 4px 16px rgba(192,148,74,.4); }
    50% { box-shadow: 0 4px 32px rgba(192,148,74,.6); }
}

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

@media (max-width: 1024px) {
    .services__grid { grid-template-columns: repeat(2, 1fr); }
    .tiles-types__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    :root { --nav-height: 64px; }

    .section { padding: 64px 0; }
    .section__subtitle { margin-bottom: 40px; }

    /* Nav mobile */
    .nav__toggle { display: flex; }
    .nav__menu {
        position: fixed;
        top: var(--nav-height);
        left: 0;
        width: 100%;
        background: #fff;
        flex-direction: column;
        padding: 24px;
        gap: 4px;
        box-shadow: var(--shadow);
        transform: translateY(-120%);
        transition: var(--transition);
    }
    .nav__menu--open { transform: translateY(0); }
    .nav__menu .nav__link {
        color: var(--color-primary);
        display: block;
        padding: 12px 16px;
        width: 100%;
    }
    .nav__toggle--open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
    .nav__toggle--open span:nth-child(2) { opacity: 0; }
    .nav__toggle--open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

    /* Hero mobile */
    .hero__stats { gap: 24px; }
    .hero__stat-number { font-size: 2rem; }

    /* About mobile */
    .about__grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    .section__title--left { text-align: center; }

    /* Services mobile */
    .services__grid { grid-template-columns: 1fr; }
    .tiles-types__grid { grid-template-columns: 1fr 1fr; }

    /* Gallery mobile */
    .gallery__grid { grid-template-columns: 1fr; }

    /* Contact mobile */
    .contact__grid { grid-template-columns: 1fr; }

    /* Lightbox mobile */
    .lightbox__prev, .lightbox__next { display: none; }

    /* Show mobile call button */
    .mobile-call { display: flex; }
}

@media (max-width: 480px) {
    .hero__stats { flex-direction: column; gap: 16px; }
    .hero__cta-group { flex-direction: column; align-items: center; }
    .btn { width: 100%; justify-content: center; }
    .tiles-types__grid { grid-template-columns: 1fr; }
    .container { padding: 0 16px; }
}
