/* ================================
   ALLES LP - Lightweight CSS
   Zero frameworks. Mobile-first.
   ================================ */

:root {
    --color-text: #282929;
    --color-muted: #646464;
    --color-accent: #474541;
    --color-white: #ffffff;
    --color-bg: #f8f8f8;
    --color-border: #e0e0e0;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Fira Sans', sans-serif;
    --radius: 200px;
    --transition: 0.25s ease;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

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

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

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

/* ================================
   BUTTONS
   ================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.75rem;
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: var(--radius);
    border: 1px solid var(--color-text);
    background: transparent;
    color: var(--color-text);
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: var(--color-accent);
    color: var(--color-white);
    border-color: var(--color-accent);
}

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

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

/* ================================
   HERO - Overlap Card
   ================================ */
.hero {
    height: 100vh;
    height: 100dvh;
    padding: 2rem;
    background: linear-gradient(135deg, #f2f2f2 0%, #e6e6e6 100%);
    display: flex;
    align-items: stretch;
    justify-content: center;
}

.hero-card {
    display: flex;
    flex-direction: column;
    background: var(--color-white);
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.08);
    overflow: hidden;
    width: 100%;
    height: 100%;
}

.hero-content {
    padding: 1.5rem 2rem 1.5rem;
    flex: 1;
    color: var(--color-text);
    display: flex;
    flex-direction: column;
}

.hero-logo {
    margin-bottom: 3rem;
}

.hero-trust-badge {
    margin-bottom: 3rem;
}

.hero-logo img {
    width: 160px;
    height: auto;
    display: block;
}

.text-red {
    color: #C41E3A;
}

.hero-break {
    display: none;
}

.hero-top {
    flex-shrink: 0;
}

.hero-middle {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-bottom: 4rem;
}

.hero-bottom {
    flex-shrink: 0;
    margin-top: auto;
    padding-top: 1rem;
}

.hero-trust-badge {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem 0.75rem;
    font-size: 0.8125rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-muted);
    background: rgba(0,0,0,0.04);
    padding: 0.5rem 1rem;
    border-radius: 100px;
    margin-bottom: 3rem;
    border: 1px solid rgba(0,0,0,0.06);
}

.hero-trust-badge .dot {
    opacity: 0.4;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: 3.3rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: clamp(0.5rem, 1.5vh, 1rem);
    color: var(--color-text);
}

.hero h1 strong {
    font-weight: 800;
}

.hero-subtitle {
    font-family: var(--font-body);
    font-size: 1.45rem;
    font-weight: 400;
    margin-bottom: 4rem;
    color: var(--color-muted);
    line-height: 1.5;
}

.hero-benefits {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.hero-benefit {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.98rem;
    font-weight: 500;
    color: var(--color-text);
}

.hero-benefit svg {
    flex-shrink: 0;
    color: #C41E3A;
    width: 18px;
    height: 18px;
}

.google-reviews {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--color-white);
    border: 1px solid #C41E3A;
    border-radius: 100px;
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
    color: var(--color-muted);
    text-decoration: none;
    margin-top: 1rem;
    transition: all var(--transition);
    width: fit-content;
}

.google-reviews:hover {
    border-color: rgba(0,0,0,0.15);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.google-reviews .stars {
    display: flex;
    gap: 0.1rem;
}

.google-reviews .rating {
    color: var(--color-text);
    font-weight: 700;
}

.google-reviews .separator {
    opacity: 0.4;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 0;
    margin-top: 2.25rem;
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.5rem 0.5rem 0.5rem 1.75rem;
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 100px;
    border: 2px solid var(--color-text);
    background: var(--color-text);
    color: var(--color-white);
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    width: 100%;
    white-space: nowrap;
}

.btn-cta-primary:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
}

.btn-cta-outline {
    background: transparent;
    color: var(--color-text);
}

.btn-cta-outline:hover {
    background: var(--color-text);
    color: var(--color-white);
}

.btn-cta-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--color-white);
    color: var(--color-text);
    border-radius: 50%;
    flex-shrink: 0;
}

.btn-cta-primary .btn-cta-arrow {
    background: #F9D71C;
}

.btn-cta-outline .btn-cta-arrow {
    background: var(--color-text);
    color: var(--color-white);
}

.btn-cta-outline:hover .btn-cta-arrow {
    background: #F9D71C;
    color: #C41E3A;
}

.hero-contact {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hero-contact-item {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.hero-contact-item span {
    font-size: 0.75rem;
    color: var(--color-muted);
}

.hero-contact-item a {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text);
}

.hero-contact-item a:hover {
    color: var(--color-accent);
}

/* Visual / image */
.hero-visual {
    flex: 1;
    min-height: 300px;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image-frame {
    width: 100%;
    height: 100%;
    border-radius: 20px;
    display: flex;
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

.hero-image-wrap {
    width: 100%;
    height: 100%;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-slide-active {
    opacity: 1;
}

.hero-location-badge {
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem 0.5rem 0.75rem;
    background: rgba(0,0,0,0.7);
    color: var(--color-white);
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 500;
    border-radius: 100px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.hero-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ================================
   STATS
   ================================ */
.stats {
    padding: 4rem 0;
    background: var(--color-white);
}

.section-title {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--color-text);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.stat-item {
    text-align: center;
}

.stat-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 0.75rem;
    opacity: 0.8;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 0.25rem;
    line-height: 1.2;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--color-muted);
    line-height: 1.4;
}

/* ================================
   REALIZACJE / GALLERIES
   ================================ */
.realizations {
    padding: 4rem 0;
    background: var(--color-bg);
}

.gallery-section {
    margin-bottom: 4rem;
}

.gallery-section:last-child {
    margin-bottom: 0;
}

.gallery-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    text-align: center;
    color: var(--color-muted);
}

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

.gallery-item {
    position: relative;
    aspect-ratio: 3/2;
    overflow: hidden;
    border-radius: 4px;
    cursor: pointer;
    background: var(--color-border);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition);
}

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

/* ================================
   CTA
   ================================ */
.cta-section {
    padding: 4rem 0;
    background: var(--color-white);
    text-align: center;
}

.cta-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
}

/* ================================
   VIDEO
   ================================ */
.video-section {
    padding: 4rem 0;
    background: var(--color-bg);
    text-align: center;
}

.video-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.video-subtitle {
    font-size: 0.9rem;
    color: var(--color-muted);
    margin-bottom: 1.5rem;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    max-width: 800px;
    margin: 0 auto;
    border-radius: 8px;
    background: var(--color-text);
}

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

/* ================================
   CONTACT FORM
   ================================ */
.contact-section {
    padding: 4rem 0;
    background: var(--color-white);
}

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

.contact-subtitle {
    text-align: center;
    color: var(--color-muted);
    margin-bottom: 2.5rem;
    margin-top: -2rem;
}

.contact-form {
    max-width: 700px;
    margin: 0 auto;
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group {
    flex: 1;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    background: var(--color-white);
    color: var(--color-text);
    transition: border-color var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-accent);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-footer {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    align-items: flex-start;
    margin-top: 1.5rem;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: var(--color-muted);
    cursor: pointer;
}

.checkbox-label input {
    margin-top: 0.15rem;
    flex-shrink: 0;
}

.checkbox-label a {
    text-decoration: underline;
    color: var(--color-accent);
}

/* ================================
   REVIEWS
   ================================ */
.reviews-section {
    padding: 4rem 0;
    background: var(--color-bg);
}

.reviews-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.review-card {
    background: var(--color-white);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.review-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.review-header strong {
    font-family: var(--font-heading);
    font-weight: 600;
}

.review-stars {
    height: 20px;
    width: auto;
}

.review-card p {
    font-size: 0.9375rem;
    color: var(--color-muted);
    line-height: 1.6;
}

/* ================================
   MAP
   ================================ */
.map-section {
    padding: 4rem 0;
    background: var(--color-white);
    text-align: center;
}

.map-section .btn {
    margin-bottom: 2rem;
}

.map-image {
    max-width: 900px;
    margin: 0 auto 1.5rem;
    border-radius: 8px;
    overflow: hidden;
}

.map-caption {
    color: var(--color-muted);
    font-size: 0.9375rem;
}

/* ================================
   SELECTED WORKS
   ================================ */
.selected-works {
    padding: 4rem 0;
    background: var(--color-bg);
}

/* ================================
   METAMORFOZY
   ================================ */
.metamorfozy-section {
    padding: 4rem 0;
    background: var(--color-white);
}

.metamorfozy-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.metamorfozy-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    align-items: center;
}

.metamorfozy-item img {
    border-radius: 6px;
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
}

.metamorfozy-label {
    position: absolute;
    bottom: 0.5rem;
    left: 0.5rem;
    background: rgba(0,0,0,0.65);
    color: var(--color-white);
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    border-radius: 4px;
    text-transform: uppercase;
    font-weight: 500;
}

.metamorfozy-img-wrap {
    position: relative;
}

/* ================================
   FOOTER
   ================================ */
.footer {
    padding: 3rem 0 1.5rem;
    background: var(--color-text);
    color: rgba(255,255,255,0.75);
    font-size: 0.875rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-col h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-white);
    margin-bottom: 1rem;
}

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

.footer-col ul li {
    margin-bottom: 0.5rem;
}

.footer-col a {
    color: rgba(255,255,255,0.75);
    transition: color var(--transition);
}

.footer-col a:hover {
    color: var(--color-white);
}

.footer-logo {
    height: 40px;
    width: auto;
    margin-bottom: 1rem;
    filter: brightness(0) invert(1);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.5);
}

/* ================================
   LIGHTBOX
   ================================ */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.92);
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.lightbox.active {
    display: flex;
}

.lightbox-img {
    max-width: 90vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 4px;
}

.lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    color: var(--color-white);
    font-size: 2.5rem;
    cursor: pointer;
    line-height: 1;
    opacity: 0.8;
    transition: opacity var(--transition);
}

.lightbox-close:hover {
    opacity: 1;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-white);
    font-size: 2rem;
    cursor: pointer;
    padding: 1rem;
    opacity: 0.7;
    transition: opacity var(--transition);
    user-select: none;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    opacity: 1;
}

.lightbox-prev {
    left: 1rem;
}

.lightbox-next {
    right: 1rem;
}

.lightbox-caption {
    color: rgba(255,255,255,0.8);
    margin-top: 1rem;
    font-size: 0.875rem;
    text-align: center;
    max-width: 80vw;
}

/* ================================
   MEDIA QUERIES
   ================================ */
@media (min-width: 480px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 640px) {
    .hero h1 {
        font-size: 3.3rem;
    }
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .reviews-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .form-row {
        flex-direction: row;
    }
    .hero-buttons,
    .cta-buttons {
        flex-direction: row;
        gap: 1rem;
    }
    .hero-contact {
        flex-direction: row;
        gap: 2rem;
    }
}

@media (min-width: 768px) {
    .hero-card {
        flex-direction: row;
        align-items: stretch;
    }
    .hero-content {
        flex: 0 0 50%;
        padding: 2rem 2.5rem 2rem;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }
    .hero-visual {
        flex: 0 0 50%;
        padding: 2rem;
        display: flex;
        align-items: stretch;
    }
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.75rem;
    }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .hero h1 {
        font-size: 3.3rem;
    }
    .hero-content {
        padding: 2rem 3rem 2rem;
    }
    .stats-grid {
        grid-template-columns: repeat(5, 1fr);
    }
    .footer-grid {
        grid-template-columns: 1.5fr 1fr 1fr 1fr;
    }
    .metamorfozy-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .gallery-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (min-width: 1200px) {
    .gallery-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

@media (max-width: 767px) {
    .hero {
        padding: 0;
        height: auto;
        min-height: 100dvh;
        background-image: url('../images/photo-port-brodowskiej-DSC01555.webp');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }
    .hero-card {
        border-radius: 0;
        box-shadow: none;
        min-height: 100dvh;
        background: linear-gradient(to bottom, rgba(255,255,255,0.10) 0%, rgba(255,255,255,0.82) 100%);
    }
    .hero-content {
        padding: clamp(0.6rem, 2vh, 1rem) clamp(0.75rem, 4vw, 1.25rem) clamp(0.5rem, 1.5vh, 0.75rem);
        flex: 1;
    }
    .hero-visual {
        display: none;
    }
    .hero-logo {
        display: flex;
        justify-content: center;
        margin-bottom: clamp(0.25rem, 0.8vh, 0.6rem);
    }
    .hero-logo img {
        width: clamp(120px, 33vw, 225px);
    }
    .hero-trust-badge {
        margin-bottom: clamp(0.25rem, 0.8vh, 0.6rem);
        font-size: clamp(0.6rem, 2.4vw, 0.75rem);
        padding: 0.3rem 0.65rem;
        gap: 0.35rem 0.55rem;
    }
    .hero-break {
        display: block;
    }
    .hero h1 {
        text-align: center;
        font-size: clamp(1.8rem, 3.5vw + 1.2vh, 2.8rem);
        margin-bottom: 0;
    }
    .hero-subtitle {
        text-align: center;
        font-size: clamp(1rem, 4vw, 1.35rem);
        margin-bottom: 0;
    }
    .hero-middle {
        justify-content: center;
        gap: clamp(0.7rem, 2.2vh, 1.3rem);
        margin-bottom: 0;
    }
    .hero-benefits {
        gap: 0.4rem;
        margin-bottom: 0;
    }
    .hero-benefit {
        font-size: clamp(0.78rem, 3vw, 0.9rem);
        gap: 0.35rem;
    }
    .hero-benefit svg {
        width: 14px;
        height: 14px;
    }
    .google-reviews {
        margin-top: 0.25rem;
        justify-content: center;
        display: flex;
        margin-left: auto;
        margin-right: auto;
        padding: 0.3rem 0.7rem;
        font-size: 0.75rem;
    }
    .hero-bottom {
        margin-top: auto;
        padding-top: 0.2rem;
    }
    .hero-buttons {
        margin-top: clamp(0.3rem, 1vh, 0.6rem);
        gap: 0.45rem;
    }
    .btn-cta {
        font-size: clamp(0.65rem, 2.6vw, 0.75rem);
        padding: 0.35rem 0.35rem 0.35rem 1.1rem;
    }
    .btn-cta-arrow {
        width: 32px;
        height: 32px;
    }
}