/* ==========================================================================
   FLEXIP - Styles
   ========================================================================== */

:root {
    --color-yellow: #FCE44D;
    --color-yellow-hover: #E5C900;
    --color-dark: #374151;
    --color-darker: #1F2937;
    --color-bg: #FAFAFA;
    --color-bg-alt: #F3F4F6;
    --color-gray: #6B7280;
    --color-white: #FFFFFF;
    --color-yellow-light: #FEF9E7;

    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    --header-height: 72px;
}

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

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

body {
    font-family: var(--font);
    font-size: clamp(0.9375rem, 2vw, 1.0625rem);
    line-height: 1.7;
    color: var(--color-dark);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: var(--color-dark);
    text-decoration: none;
    transition: color 0.2s;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ==========================================================================
   Header
   ========================================================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: var(--color-white);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    z-index: 1000;
}

.header__inner {
    display: flex;
    align-items: center;
    height: 100%;
    gap: 2rem;
}

.header__logo img {
    height: 44px;
    width: auto;
}

.header__nav {
    margin-left: auto;
}

.header__menu {
    display: flex;
    gap: 0.25rem;
}

.header__link {
    padding: 0.5rem 0.875rem;
    font-size: 0.9375rem;
    font-weight: 500;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
}

.header__link:hover {
    background: var(--color-yellow-light);
    color: var(--color-dark);
}

.header__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: var(--color-yellow);
    color: var(--color-dark);
    font-weight: 600;
    font-size: 0.9375rem;
    border-radius: 8px;
    transition: background 0.2s;
    white-space: nowrap;
}

.header__cta:hover {
    background: var(--color-yellow-hover);
    color: var(--color-dark);
}

.header__burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}

.header__burger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--color-dark);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

.header__burger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

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

.header__burger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

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

.hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #1a2332 0%, #2d3748 50%, #1a2332 100%);
    margin-top: var(--header-height);
}

.hero__content {
    position: relative;
    z-index: 1;
    padding: 4rem 0;
    max-width: 700px;
}

.hero__title {
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 800;
    line-height: 1.15;
    color: var(--color-white);
    margin-bottom: 1.25rem;
}

.hero__subtitle {
    font-size: clamp(1.0625rem, 2.5vw, 1.25rem);
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.hero__actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, transform 0.1s;
    text-align: center;
}

.btn:active {
    transform: scale(0.98);
}

.btn--primary {
    background: var(--color-yellow);
    color: var(--color-dark);
    border-color: var(--color-yellow);
}

.btn--primary:hover {
    background: var(--color-yellow-hover);
    border-color: var(--color-yellow-hover);
    color: var(--color-dark);
}

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

.btn--outline:hover {
    border-color: var(--color-white);
    color: var(--color-white);
}

.btn--lg {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
}

/* ==========================================================================
   Sections
   ========================================================================== */

.section {
    padding: 5rem 0;
}

.section--alt {
    background: var(--color-bg-alt);
}

.section__title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    text-align: center;
    margin-bottom: 0.5rem;
    color: var(--color-dark);
}

.section__subtitle {
    text-align: center;
    color: var(--color-gray);
    font-size: 1.0625rem;
    margin-bottom: 3rem;
}

/* ==========================================================================
   About
   ========================================================================== */

.about {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.about__text p {
    margin-bottom: 1rem;
}

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

.about__cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.about__card {
    background: var(--color-white);
    border: 1px solid var(--color-bg-alt);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: box-shadow 0.2s;
}

.about__card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.about__card-icon {
    color: var(--color-yellow-hover);
    margin-bottom: 0.75rem;
}

.about__card h3 {
    font-size: 0.9375rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.about__card p {
    font-size: 0.8125rem;
    color: var(--color-gray);
}

/* ==========================================================================
   Services
   ========================================================================== */

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

.service-card {
    background: var(--color-white);
    border-radius: 12px;
    padding: 2rem 1.5rem;
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.2s, transform 0.2s;
}

.service-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.service-card__icon {
    color: var(--color-yellow-hover);
    margin-bottom: 1.25rem;
}

.service-card__title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.service-card__list {
    list-style: none;
}

.service-card__list li {
    position: relative;
    padding-left: 1.25rem;
    margin-bottom: 0.5rem;
    font-size: 0.9375rem;
    color: var(--color-gray);
}

.service-card__list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.65em;
    width: 6px;
    height: 6px;
    background: var(--color-yellow);
    border-radius: 50%;
}

.service-card__note {
    margin-top: 1rem;
    font-size: 0.875rem;
    color: var(--color-gray);
    font-style: italic;
}

/* ==========================================================================
   Złota Rączka
   ========================================================================== */

.zlota-raczka {
    background: var(--color-darker);
    padding: 5rem 0;
}

.zlota-raczka__inner {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.zlota-raczka__badge {
    flex-shrink: 0;
    width: 180px;
    height: 180px;
    background: var(--color-yellow);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.zlota-raczka__badge-text {
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--color-dark);
}

.zlota-raczka__badge-sub {
    font-size: 0.6875rem;
    color: var(--color-dark);
    margin-top: 0.25rem;
    max-width: 130px;
}

.zlota-raczka__title {
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    font-weight: 800;
    color: var(--color-white);
    margin-bottom: 1rem;
}

.zlota-raczka__text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.125rem;
    margin-bottom: 2rem;
    max-width: 500px;
}

/* ==========================================================================
   Gallery
   ========================================================================== */

.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.gallery__item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4/3;
    background: var(--color-bg-alt);
}

.gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

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

.gallery__label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem 1rem 1rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: var(--color-white);
    font-weight: 600;
    font-size: 0.9375rem;
}

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

.contact {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    align-items: start;
}

.contact__item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.75rem;
    align-items: flex-start;
}

.contact__item svg {
    flex-shrink: 0;
    color: var(--color-yellow-hover);
    margin-top: 0.25rem;
}

.contact__item strong {
    display: block;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.contact__item p {
    color: var(--color-gray);
    font-size: 0.9375rem;
}

.contact__item a {
    color: var(--color-dark);
    font-weight: 500;
    border-bottom: 1px solid var(--color-yellow);
    transition: border-color 0.2s;
}

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

.contact__map {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.contact__map iframe {
    display: block;
    width: 100%;
    min-height: 400px;
}

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

.footer {
    background: var(--color-darker);
    color: rgba(255, 255, 255, 0.7);
    padding-top: 3rem;
}

.footer__inner {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__logo {
    height: 40px;
    width: auto;
    filter: brightness(0) invert(1);
}

.footer__tagline {
    margin-top: 0.5rem;
    font-size: 0.875rem;
}

.footer__nav ul {
    display: flex;
    gap: 1.5rem;
}

.footer__nav a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9375rem;
    transition: color 0.2s;
}

.footer__nav a:hover {
    color: var(--color-yellow);
}

.footer__contact {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: right;
}

.footer__contact a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9375rem;
    transition: color 0.2s;
}

.footer__contact a:hover {
    color: var(--color-yellow);
}

.footer__bottom {
    padding: 1.25rem 0;
    font-size: 0.8125rem;
    text-align: center;
}

/* ==========================================================================
   Lightbox
   ========================================================================== */

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

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

.lightbox__close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: var(--color-white);
    font-size: 2.5rem;
    cursor: pointer;
    line-height: 1;
    padding: 0.5rem;
    z-index: 1;
}

.lightbox__img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

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

@media (max-width: 768px) {
    .header__nav {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: var(--color-white);
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
        padding: 1rem 0;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: transform 0.3s, opacity 0.3s, visibility 0.3s;
    }

    .header__nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .header__menu {
        flex-direction: column;
        padding: 0 1.5rem;
    }

    .header__link {
        padding: 0.75rem 1rem;
        font-size: 1.0625rem;
    }

    .header__cta {
        display: none;
    }

    .header__burger {
        display: flex;
        margin-left: auto;
    }

    .hero {
        min-height: 70vh;
    }

    .hero__content {
        padding: 3rem 0;
    }

    .about {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

    .zlota-raczka__inner {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .zlota-raczka__text {
        margin-left: auto;
        margin-right: auto;
    }

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

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

    .footer__inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer__nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }

    .footer__contact {
        text-align: center;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .about {
        gap: 2rem;
    }
}
