/*
Theme Name: hwood-theme
Theme URI: https://example.com/hwood-theme
Author: Marcin Pindus
Author URI: https://example.com
Description: Motyw jednostronicowy dla HWOOD. Pełna edycja sekcji, integracja z Rank Math SEO, obsługa Revolution Slider i Contact Form 7.
Version: 1.0.0
Text Domain: hwood-theme
*/

/* --- ZMIENNE --- */
:root {
    --bg-color: #fbfaf8;
    --text-dark: #1a1a1a;
    --text-gray: #7a7a7a;
    --accent-wood: #c19a6b;
    --border-line: #e5e5e5;
    --radius-pill: 50px;
    --radius-card: 20px;
}

/* --- RESET I BAZA --- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
    font-family: 'Manrope', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-dark);
    overflow-x: hidden;
    width: 100%;
    line-height: 1.6;
}
body {
    padding-top: 60px;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }
img { display: block; width: 100%; height: auto; }
html { scroll-behavior: smooth; }

/* --- KOMPONENTY --- */
.btn-solid {
    padding: 16px 36px;
    background: var(--text-dark);
    color: white;
    border-radius: var(--radius-pill);
    font-size: 0.85rem;
    border: none;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.3s;
    display: inline-block;
}
.btn-solid:hover { background: var(--accent-wood); transform: translateY(-2px); }

.btn-outline {
    padding: 12px 32px;
    border: 1px solid var(--text-dark);
    border-radius: var(--radius-pill);
    font-size: 0.8rem;
    font-weight: 700;
    background: transparent;
    color: var(--text-dark);
    cursor: pointer;
    transition: 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.btn-outline:hover { background: var(--text-dark); color: white; }

.tag-text {
    color: var(--accent-wood);
    font-size: 15px;
    font-weight: 800;
    text-transform: uppercase;
    display: block;
    margin-bottom: 15px;
    letter-spacing: 1.5px;
}

.container { max-width: 1440px; margin: 0 auto; padding: 0 40px; width: 100%; }

section { margin-bottom: 140px; position: relative; width: 100%; }

/* --- HEADER --- */
header.site-header {
    display: flex;
    border-radius: 15px;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    max-width: 1600px;
    margin: 0 auto;
    width: 100%;
    background: var(--bg-color);
    border-bottom: 1px solid var(--border-line);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 90px;
    transition: transform 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
}
/* pasek po przewinięciu strony */
header.site-header.scrolled {
    background-color: rgba(251, 250, 248, 0.98);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.04);
}

/* pasek ukryty przy przewijaniu w dół */
header.site-header.is-hidden {
    transform: translateY(-100%);
}


.logo-container {
    display: flex;
    flex-direction: column;
    line-height: 1;
    cursor: pointer;
    z-index: 1001;
}
.logo-main {
    font-weight: 900;
    font-size: 1.5rem;
    letter-spacing: 1px;
    background: linear-gradient(45deg, #6d4c41, #a1887f, #5d4037);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
}
.logo-sub {
    font-size: 0.5rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--text-dark);
    margin-top: 3px;
    text-transform: uppercase;
}

.desktop-nav ul { display: flex; gap: 30px; }
.desktop-nav ul li a {
    font-size: 14px;
    font-weight: 700;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.desktop-nav ul li a:hover { color: var(--accent-wood); }

.header-actions { display: flex; align-items: center; gap: 15px; z-index: 1001; }
.hamburger { display: none; font-size: 1.5rem; cursor: pointer; z-index: 1002; }

.mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: var(--bg-color);
    z-index: 999;
    overflow: hidden;
    transition: 0.4s ease-in-out;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
}
.mobile-nav.active { height: 100vh; opacity: 1; }
.mobile-nav ul { text-align: center; }
.mobile-nav ul li { margin: 20px 0; }
.mobile-nav ul li a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
}

/* --- HERO --- */
.hero-wrapper {
    display: grid;
    grid-template-columns: 1.1fr 2.2fr 0.8fr;
    align-items: stretch;
    margin-top: 50px;
    margin-bottom: 100px;
}
.hero-text { z-index: 10; position: relative; margin-right: -90px; align-self: center; }
.hero-text h1 {
    font-size: 3.5rem;
    line-height: 1.15;
    font-weight: 700;
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    text-transform: uppercase;
}
.hero-text h1 span {
    background-color: var(--bg-color);
    padding: 8px 20px 8px 0;
    border-radius: 0 16px 16px 0;
    box-shadow: 12px 0 0 var(--bg-color);
    white-space: nowrap;
}
.hero-text p {
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.7;
    max-width: 320px;
    margin-bottom: 40px;
    margin-top: 20px;
}
.hero-image-container {
    position: relative;
    height: 600px;
    width: 100%;
    margin-left: -50px;
    z-index: 1;
    border-radius: 20px;
    overflow: hidden;
}
.main-img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.95); }
.hero-small-card {
    padding-left: 30px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
}
.hero-small-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    font-weight: 600;
    margin-top: 20px;
}
.small-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 20px;
}

/* --- O FIRMIE --- */
.about-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
    align-items: flex-start;
}
.about-left h2 {
    font-size: 3.2rem;
    font-weight: 500;
    line-height: 1.1;
    margin-bottom: 30px;
    letter-spacing: -1px;
}
.about-left .btn-outline { margin-top: 40px; }
.about-stats {
    display: flex;
    justify-content: flex-start;
    gap: 60px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.about-right {
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: stretch;
}

.about-image {
    border-radius: 20px;
    overflow: hidden;
    width: 100%;
    max-height: 260px;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.about-left p {
    margin-bottom: 24px;   /* odstęp pod akapitem */
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center; /* wyśrodkowanie poziome */
    text-align: center;  /* wyśrodkowanie tekstu */
}

.stat-item h3 {
    margin-bottom: 6px; /* delikatny odstęp między liczbą a podpisem */
}


/* dopasowanie w wersji mobilnej */
@media (max-width: 1200px) {
    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .about-right {
        align-items: center;
    }
    .about-image {
        max-width: 420px;
        margin: 0 auto;
    }
    .about-stats {
        justify-content: center;
    }
}

.stat-item h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 5px;
}

/* --- OFERTA GRID --- */
.offer-section { width: 100%; }
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
}
/* h2 pod tagiem / OFERTA, / PORTFOLIO itd */
.tag-text + h2 {
    font-size: 2.5rem;
    font-weight: 500;
    line-height: 1.2;
    margin: 10px 0 30px;
}

/* ograniczenie szerokości tylko w sekcji oferta */
.section-header h2 {
    max-width: 400px;
}

.offer-grid {
    display: grid;
    grid-template-columns: 8fr 5fr;
    gap: 40px;
    width: 100%;
    height: auto;
}

.offer-card {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
}

.offer-small-col {
    display: flex;
    flex-direction: column;
    gap: 25px;
    height: 100%;
}

.offer-small-top {
    flex: 1;
    width: 100%;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
}

.offer-small-bottom-row {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.grid-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
    display: block;
}

.offer-card:hover .grid-img,
.offer-small-top:hover .grid-img { transform: scale(1.05); }

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 50%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    color: white;
    pointer-events: none;
}
.card-tag {
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(5px);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    width: fit-content;
    margin-bottom: 10px;
}
.card-title { font-size: 1.4rem; font-weight: 600; margin: 0; line-height: 1.2; }
.card-desc { font-size: 0.9rem; opacity: 0.9; margin-top: 5px; font-weight: 300; }

/* --- PROCES --- */
.process-section { padding-top: 20px; z-index: 5; background: var(--bg-color); }
.process-header { text-align: center; margin-bottom: 80px; }
.process-header h2 { font-size: 2.5rem; margin-bottom: 10px; }

.process-wrapper {
    position: relative;
    display: flex;
    justify-content: space-between;
    margin: 0 40px;
}

.process-line {
    position: absolute;
    top: 45px;
    left: 45px;
    right: 45px;
    height: 2px;
    border-top: 2px dashed #ccc;
    z-index: 0;
}

.process-step {
    position: relative;
    width: 18%;
    text-align: center;
    z-index: 1;
}

.step-icon-circle {
    width: 90px;
    height: 90px;
    margin: 0 auto 20px auto;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    background-color: var(--bg-color);
    box-shadow: 0 0 0 15px var(--bg-color);
}

.process-step:nth-child(odd) .step-icon-circle {
    border: 2px solid var(--accent-wood);
    color: var(--accent-wood);
    background: white;
}
.process-step:nth-child(even) .step-icon-circle {
    background: var(--text-dark);
    color: white;
    border: 2px solid var(--text-dark);
}

.step-title {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--text-dark);
}
.step-desc { font-size: 0.85rem; color: var(--text-gray); padding: 0 5px; }

/* --- PORTFOLIO SLIDER --- */
#realizacje { width: 100%; overflow: hidden; }

.swiper {
    width: 100%;
    height: 100%;
    padding-bottom: 50px !important;
    overflow: visible !important;
}
.swiper-wrapper { min-width: 0; }

.swiper-slide {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    height: 450px;
    position: relative;
    width: auto;
    flex-shrink: 0;
}
.swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}
.swiper-slide:hover img { transform: scale(1.05); }

.slider-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 25px;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
    color: white;
    pointer-events: none;
}
.slider-content h4 { font-size: 1.3rem; margin: 0 0 5px 0; }
.slider-content p {
    font-size: 0.8rem;
    text-transform: uppercase;
    opacity: 0.8;
    letter-spacing: 1px;
    margin: 0;
}

/* --- KONTAKT --- */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    background: white;
    border-radius: 30px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.03);
    overflow: hidden;
}
.contact-info { padding: 60px; }

.contact-map { width: 100%; height: 100%; min-height: 400px; background: #eee; }
.contact-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
    filter: grayscale(60%) contrast(1.1) brightness(0.95);
    opacity: 0.8;
}

.c-icon {
    width: 40px;
    height: 40px;
    background: #fcf6f0;
    color: var(--accent-wood);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}
.contact-row { display: flex; align-items: center; margin-bottom: 25px; }

.minimal-input {
    width: 100%;
    padding: 15px 0;
    border: none;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 25px;
    outline: none;
    font-family: 'Manrope', sans-serif;
    font-size: 1rem;
}
.minimal-input:focus { border-bottom-color: var(--text-dark); }

/* --- FOOTER --- */
footer.site-footer {
    background-color: #1a1a1a;
    color: #bbb;
    padding: 80px 50px 30px 50px;
    border-radius: 40px 40px 0 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-brand h2 {
    color: white;
    font-size: 1.8rem;
    margin-bottom: 15px;
    font-weight: 800;
}
.footer-col h4 {
    color: white;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 25px;
    text-transform: uppercase;
}
.footer-links li,
.address-list li {
    margin-bottom: 12px;
    font-size: 0.9rem;
}
.footer-links a:hover { color: white; }

.social-icons { margin-top: 20px; display: flex; gap: 10px; }
.social-btn {
    width: 35px;
    height: 35px;
    border: 1px solid #444;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #ddd;
    transition: 0.3s;
}
.social-btn:hover {
    border-color: white;
    color: white;
    background: rgba(255,255,255,0.1);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #333;
    font-size: 0.8rem;
}

/* --- RWD / RESPONSYWNOŚĆ --- */

/* Laptop / Tablet */
@media (max-width: 1200px) {
    .container { padding: 0 30px; }

    .hero-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-top: 20px;
    }
    .hero-text {
        order: 1;
        margin: 0;
        width: 100%;
        text-align: center;
    }
    .hero-text h1 { align-items: center; font-size: 2.8rem; }
    .hero-text h1 span {
        display: inline-block;
        background: transparent;
        padding: 0;
        box-shadow: none;
    }
    .hero-image-container { order: 2; margin: 0; height: 400px; }
    .hero-small-card {
        order: 3;
        padding: 0;
        flex-direction: row;
        align-items: center;
        height: auto;
        gap: 20px;
        margin-top: 20px;
    }

    .desktop-nav,
    .btn-outline.header-cta { display: none; }

    .hamburger { display: block; }

    .about-content { grid-template-columns: 1fr; text-align: center; }
    .about-stats { justify-content: center; }

    .offer-grid {
        display: flex;
        flex-direction: column;
        height: auto;
        gap: 20px;
    }
    .offer-card { height: 400px; }
    .offer-small-top { height: 350px; }
    .offer-small-bottom-row { height: 300px; }

    .contact-wrapper { grid-template-columns: 1fr; }
    .contact-map { height: 300px; min-height: 300px; }
}


/* Telefon */
@media (max-width: 768px) {
    .header-actions { gap: 10px; }
    .section-header { flex-direction: column; align-items: flex-start; gap: 20px; }

    .hero-text h1 { font-size: 2.2rem; }
    .hero-small-card { flex-direction: column; text-align: center; }
    .small-img { width: 100%; }

    .about-stats { flex-direction: column; gap: 30px; }

    .process-wrapper { flex-direction: column; gap: 40px; }
    .process-line { display: none; }
    .process-step { width: 100%; }

    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .social-icons { justify-content: center; }

    .contact-info { padding: 30px; }
}
/* --- CONTACT FORM 7 --- */
.wpcf7 {
    width: 100%;
}

.wpcf7 form {
    display: block;
}

.wpcf7 form p {
    margin: 0 0 18px;
}

/* Pola tekstowe formularza CF7 */
.wpcf7-form-control.wpcf7-text,
.wpcf7-form-control.wpcf7-email,
.wpcf7-form-control.wpcf7-tel,
.wpcf7-form-control.wpcf7-textarea {
    width: 100%;
    padding: 15px 0;
    border: none;
    border-bottom: 1px solid #e0e0e0;
    margin: 0;
    outline: none;
    font-family: 'Manrope', sans-serif;
    font-size: 1rem;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
}

.wpcf7-form-control.wpcf7-textarea {
    min-height: 120px;
}

/* Efekt focus jak w minimal-input */
.wpcf7-form-control.wpcf7-text:focus,
.wpcf7-form-control.wpcf7-email:focus,
.wpcf7-form-control.wpcf7-tel:focus,
.wpcf7-form-control.wpcf7-textarea:focus {
    border-bottom-color: var(--text-dark);
}

/* Przycisk wysyłania CF7 */
.wpcf7-form-control.wpcf7-submit {
    display: inline-block;
    width: 100%;
    padding: 16px 36px;
    border-radius: var(--radius-pill);
    border: none;
    background: var(--text-dark);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: 0.3s;
}

.wpcf7-form-control.wpcf7-submit:hover {
    background: var(--accent-wood);
    transform: translateY(-2px);
}

/* Komunikaty CF7 pod formularzem */
.wpcf7-response-output {
    margin-top: 15px;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 0.9rem;
}

.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.aborted .wpcf7-response-output {
    border: 1px solid #e67e22;
    background: #fff5e9;
}

.wpcf7 form.sent .wpcf7-response-output {
    border: 1px solid #27ae60;
    background: #e9f9f0;
}
