/* CONTENT.CSS — sekcje, tła, karty, portfolio, proces, kontakt */

html {
    scroll-behavior: smooth;
}

/* Sekcje */

.page .section {
    position: relative;
    overflow: hidden;
    padding: 110px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    scroll-margin-top: 140px;
}

/* Tło sekcji */

.page .background-motion {
    position: absolute;
    inset: 0;
    z-index: 1;
    background-size: cover;
    background-position: center;
    filter: brightness(0.85);
    transform: scale(1.02);
}

/* Tła */

.bg-wood { background-image: url("img/bg-wood.jpg"); }
.bg-stone { background-image: url("img/bg-stone.jpg"); }
.bg-interior { background-image: url("img/bg-interior.jpg"); }
.bg-woodgrain { background-image: url("img/bg-woodgrain.jpg"); }
.bg-light { background-image: url("img/bg-light.jpg"); }

/* Content box */

.page .content-box {
    position: relative;
    z-index: 2;
    background: var(--bg-box);
    border-radius: 14px;
    box-shadow: var(--shadow-soft);
    width: min(90%, 1100px);
    padding: 48px;
    border: 1px solid var(--border-soft);
    animation: contentFade 0.6s ease forwards;
}

@keyframes contentFade {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Nagłówki */

.page .content-box h1 {
    font-size: 40px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 12px;
}

.page .content-box h2 {
    font-size: 28px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 10px;
}

.page .content-box h3 {
    font-size: 20px;
    font-weight: 500;
    color: var(--text-medium);
    margin: 0 0 24px;
}

.page .content-box h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 6px;
}

/* Tekst */

.page .content-box p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-medium);
    margin: 0 0 22px;
}

/* CTA */

.cta-wide {
    width: 100%;
    background: var(--accent);
    color: #2e2e2e;
    text-align: center;
    padding: 18px 0;
    margin-top: 32px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: background 0.25s ease, transform 0.25s ease;
    cursor: pointer;
    border: none;
}

.cta-wide:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
}

/* Karty */

.card {
    background: #fff;
    border-radius: 14px;
    padding: 28px;
    text-align: center;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.14);
}

/* GRID ZABUDÓW */

.zabudowy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 32px;
    margin: 30px 0;
}

/* IKONY */

.zb-icon,
.proces-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin: 0 auto 16px;
    color: #2e2e2e;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

/* PORTFOLIO — tylko miniaturki */

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 32px;
    margin: 30px 0;
}

.portfolio-item {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
    cursor: pointer;
    border: none;
    padding: 0;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.4s ease, filter 0.4s ease;
    filter: brightness(0.92);
}

.portfolio-item:hover img {
    transform: scale(1.06);
    filter: brightness(1);
}

/* PROCES */

.proces-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 32px;
    margin-top: 30px;
}

/* Formularz */

.page .contact-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 10px;
    margin-bottom: 18px;
}

.page .contact-form input,
.page .contact-form textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid #ddd;
    font-size: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    resize: none;
    font-family: var(--font-main);
    background: #fff;
}

.page .contact-form textarea {
    min-height: 130px;
}

.contact-details p {
    margin: 4px 0;
    font-size: 14px;
}

/* Responsywność */

@media (max-width: 900px) {
    .page .section {
        padding: 90px 0;
    }

    .page .content-box {
        padding: 32px 24px;
    }

    .zabudowy-grid,
    .proces-grid,
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .page .section {
        padding: 80px 0;
    }

    .page .content-box {
        padding: 26px 18px;
        border-radius: 10px;
    }

    .page .background-motion {
        filter: brightness(0.9);
        transform: scale(1.0);
    }
}


/* ========================= */
/*      SEKCJA KONTAKT       */
/* ========================= */

.contact-section h2 {
    font-size: 28px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.contact-section h3 {
    font-size: 18px;
    font-weight: 500;
    color: var(--text-medium);
    margin-bottom: 32px;
}

/* GRID 3 KAFELKÓW */

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 32px;
    margin-bottom: 40px;
}

/* KAFELKI */

.contact-card {
    background: #fff;
    border-radius: 14px;
    padding: 28px;
    text-align: center;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
    border: 1px solid var(--border-soft);
    text-decoration: none;
    color: var(--text-dark);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.contact-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.14);
}

/* IKONA W KÓŁKU */

.contact-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin: 0 auto 16px;
    color: #2e2e2e;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

/* FORMULARZ */

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.contact-form label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px 16px;
    border-radius: 10px;
    border: 1px solid var(--border-soft);
    background: #fff;
    font-size: 15px;
    font-family: var(--font-main);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(216,199,179,0.35);
    outline: none;
}

.contact-form textarea {
    min-height: 140px;
    resize: vertical;
}

/* GUZIK */

.contact-submit {
    width: 100%;
    background: var(--accent);
    color: #2e2e2e;
    padding: 16px 0;
    border-radius: 10px;
    border: none;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.25s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    position: relative;
    overflow: hidden;
}

.contact-submit:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
}

/* Spinner */

.btn-spinner {
    width: 20px;
    height: 20px;
    border: 3px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    display: none;
    margin: 0 auto;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Checkmark */

.btn-check {
    display: none;
    font-size: 22px;
    color: #2e5c2e;
}

/* Sukces wysłania formularza */

.contact-success {
    display: none;
    margin-top: 24px;
    padding: 18px 20px;
    background: #e8f6e8;
    border: 1px solid #b6dfb6;
    color: #2e5c2e;
    border-radius: 10px;
    font-size: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    animation: successFade 0.5s ease forwards;
}

@keyframes successFade {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}



/* Placeholder w stylu kafelków KAGU */
.placeholder-thumb {
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1;
    background: #fff;
    border-radius: 14px;
    border: 1px solid var(--border-soft);
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-svg {
    width: 100%;
    height: 100%;
    display: block;
}

