/* ==========================================================================
   Sekce Rekonstrukce bytů
   --------------------------------------------------------------------------
   Vlastní styly pro /rekonstrukce-bytu-praha.php a /rekonstrukce/*.php.

   Sekce drží firemní zelenou (--primary-color) jako akcent, ale tmavé plochy
   má antracitové místo zahradnicky zelených - řemeslná část webu se tím
   vizuálně odliší od zahrad, aniž by vypadala jako cizí web.

   Načítá se až za css/style.css, takže Bootstrap i společné komponenty
   (hlavička, patička, lightbox) zůstávají nedotčené.
   ========================================================================== */

:root {
    --rek-dark: #1f2730;
    --rek-dark-2: #2c3742;
    --rek-line: #e4e7eb;
    --rek-muted: #6b7480;
    --rek-accent: var(--primary-color, #95c11f);
}

/* ---------------------------------------------------------------- hero --- */

.rek-hero {
    position: relative;
    min-height: 78vh;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    color: #fff;
}

/* Na mobilu výšku neurčuje vh, ale obsah. Fotky jsou na šířku - kdyby hero
   držel 78 % výšky displeje, zbyl by z nich úzký svislý pruh uprostřed.
   Padding počítá s pevnou hlavičkou nad obsahem. */
@media (max-width: 767.98px) {
    .rek-hero {
        min-height: 0;
        padding: 7.5rem 0 3rem;
    }
}

.rek-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, rgba(31, 39, 48, 0.92) 0%, rgba(31, 39, 48, 0.72) 45%, rgba(31, 39, 48, 0.35) 100%);
}

.rek-hero > .container {
    position: relative;
    z-index: 2;
}

.rek-hero h1 {
    font-size: clamp(1.9rem, 4.6vw, 3.3rem);
    font-weight: 800;
    line-height: 1.12;
    margin-bottom: 1rem;
}

.rek-hero .rek-hero-lead {
    font-size: clamp(1rem, 1.6vw, 1.2rem);
    color: rgba(255, 255, 255, 0.88);
    max-width: 44rem;
    margin-bottom: 1.75rem;
}

.rek-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(149, 193, 31, 0.16);
    border: 1px solid rgba(149, 193, 31, 0.45);
    color: #cfe98a;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    padding: 0.45rem 0.95rem;
    border-radius: 999px;
    margin-bottom: 1.25rem;
}

/* Odrážky pod headlinem - drží se i na úzkém mobilu */
.rek-hero-points {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
    display: grid;
    gap: 0.6rem;
}

.rek-hero-points li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.98rem;
}

.rek-hero-points i {
    color: var(--rek-accent);
    font-size: 1.1rem;
    line-height: 1.4;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .rek-hero-points {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 1.5rem;
    }
}

/* --------------------------------------------------------- trust strip --- */

.rek-trust {
    background: var(--rek-dark);
    padding: 1.1rem 0;
}

.rek-trust-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    color: #fff;
    font-size: 0.93rem;
    font-weight: 500;
    padding: 0.35rem 0;
}

.rek-trust-item i {
    font-size: 1.25rem;
    color: var(--rek-accent);
}

/* ------------------------------------------------------------- profese --- */

.rek-section {
    padding: 4.5rem 0;
}

.rek-section-alt {
    background: #f6f8f5;
}

.rek-section-title {
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    font-weight: 800;
    color: var(--rek-dark);
    margin-bottom: 0.75rem;
}

.rek-section-desc {
    color: var(--rek-muted);
    max-width: 46rem;
    margin: 0 auto 2.5rem;
}

.rek-trade-card {
    background: #fff;
    border: 1px solid var(--rek-line);
    border-radius: 14px;
    padding: 1.6rem 1.4rem;
    height: 100%;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.rek-trade-card:hover {
    transform: translateY(-4px);
    border-color: rgba(149, 193, 31, 0.55);
    box-shadow: 0 10px 30px rgba(31, 39, 48, 0.09);
}

.rek-trade-icon {
    width: 52px;
    height: 52px;
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    background: rgba(149, 193, 31, 0.13);
    color: #6f9110;
    margin-bottom: 1rem;
}

.rek-trade-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--rek-dark);
    margin-bottom: 0.5rem;
}

.rek-trade-card p {
    font-size: 0.92rem;
    color: var(--rek-muted);
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.rek-trade-card .rek-trade-link {
    font-size: 0.88rem;
    font-weight: 600;
    color: #6f9110;
    text-decoration: none;
}

.rek-trade-card .rek-trade-link:hover {
    text-decoration: underline;
}

/* ------------------------------------------------------ před / po slider --- */

.rek-ba {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: #dfe3e6;
    aspect-ratio: 16 / 10;
    user-select: none;
    touch-action: pan-y;
    cursor: ew-resize;
}

/* Obě vrstvy kreslí stejný výřez, takže se záběry překrývají i když mají
   originály mírně jiný poměr stran. */
.rek-ba-img {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.rek-ba-after {
    z-index: 1;
}

.rek-ba-before {
    z-index: 2;
    /* Šířku řídí JS přes --pos; bez JS zůstane vidět půl na půl. */
    clip-path: inset(0 calc(100% - var(--pos, 50%)) 0 0);
}

.rek-ba-label {
    position: absolute;
    top: 0.75rem;
    z-index: 4;
    background: rgba(31, 39, 48, 0.82);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.3rem 0.7rem;
    border-radius: 6px;
    pointer-events: none;
}

.rek-ba-label-before {
    left: 0.75rem;
}

.rek-ba-label-after {
    right: 0.75rem;
}

.rek-ba-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: var(--pos, 50%);
    width: 3px;
    background: #fff;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.35);
    z-index: 3;
    pointer-events: none;
}

.rek-ba-handle::after {
    content: '\F12F';
    /* bootstrap-icons: chevron-expand, otočený do vodorovné osy */
    font-family: 'bootstrap-icons';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(90deg);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #fff;
    color: var(--rek-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: 0 3px 14px rgba(0, 0, 0, 0.28);
}

.rek-ba-caption {
    font-size: 0.9rem;
    color: var(--rek-muted);
    margin-top: 0.85rem;
    text-align: center;
}

/* ------------------------------------------------------------- postup --- */

.rek-steps {
    position: relative;
    display: grid;
    gap: 1.25rem;
}

@media (min-width: 992px) {
    .rek-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.25rem 2rem;
    }
}

.rek-step {
    display: flex;
    gap: 1rem;
    background: #fff;
    border: 1px solid var(--rek-line);
    border-radius: 14px;
    padding: 1.4rem;
}

.rek-step-num {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--rek-dark);
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rek-step h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--rek-dark);
    margin-bottom: 0.35rem;
}

.rek-step p {
    font-size: 0.91rem;
    color: var(--rek-muted);
    line-height: 1.6;
    margin-bottom: 0;
}

/* ------------------------------------------------------------ galerie --- */

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

@media (min-width: 768px) {
    .rek-gallery {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1rem;
    }
}

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

.rek-gallery a {
    display: block;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: #eceff1;
}

.rek-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.rek-gallery a:hover img {
    transform: scale(1.06);
}

/* --------------------------------------------------------------- cena --- */

.rek-price-card {
    background: #fff;
    border: 1px solid var(--rek-line);
    border-left: 4px solid var(--rek-accent);
    border-radius: 12px;
    padding: 1.4rem 1.5rem;
    height: 100%;
}

.rek-price-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--rek-dark);
    margin-bottom: 0.4rem;
}

.rek-price-card p {
    font-size: 0.92rem;
    color: var(--rek-muted);
    line-height: 1.6;
    margin-bottom: 0;
}

/* ---------------------------------------------------------------- FAQ --- */

.rek-faq .accordion-item {
    border: 1px solid var(--rek-line);
    border-radius: 12px !important;
    margin-bottom: 0.75rem;
    overflow: hidden;
}

.rek-faq .accordion-button {
    font-weight: 600;
    color: var(--rek-dark);
}

.rek-faq .accordion-button:not(.collapsed) {
    background: #f4f8ec;
    color: var(--rek-dark);
    box-shadow: none;
}

.rek-faq .accordion-button:focus {
    box-shadow: 0 0 0 0.2rem rgba(149, 193, 31, 0.2);
}

.rek-faq .accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%2395c11f'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

/* ------------------------------------------------------------ formulář --- */

.rek-form-section {
    background: linear-gradient(135deg, var(--rek-dark) 0%, var(--rek-dark-2) 100%);
    padding: 4.5rem 0;
}

.rek-form {
    background: #fff;
    border-radius: 18px;
    padding: 2.25rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.22);
}

.rek-form .form-floating > .form-control,
.rek-form .form-floating > .form-select {
    border: 1px solid #ccd2d8;
    border-radius: 10px;
    font-size: 16px;
    background-color: #fafbfc;
}

.rek-form .form-floating > .form-control:focus,
.rek-form .form-floating > .form-select:focus {
    border-color: var(--rek-accent);
    box-shadow: 0 0 0 0.2rem rgba(149, 193, 31, 0.15);
}

.rek-form .btn-submit {
    background: var(--rek-accent);
    border: none;
    color: #fff;
    padding: 14px 30px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 1.02rem;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.rek-form .btn-submit:hover {
    background: #86af1c;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(149, 193, 31, 0.35);
}

.rek-form-note {
    text-align: center;
    color: #7a828b;
    font-size: 0.88rem;
    margin-bottom: 1rem;
}

.rek-form-status {
    display: none;
    margin-top: 1rem;
    padding: 0.85rem 1rem;
    border-radius: 10px;
    font-size: 0.93rem;
}

.rek-form-status.error {
    display: block;
    background: #fdecea;
    color: #b3261e;
    border: 1px solid #f5c6c2;
}

/* ------------------------------------------------- křížové odkazy sekce --- */

.rek-crosslinks {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.rek-crosslink {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: #fff;
    border: 1px solid var(--rek-line);
    border-radius: 12px;
    padding: 0.9rem 1.1rem;
    text-decoration: none;
    color: var(--rek-dark);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.25s ease;
}

.rek-crosslink:hover {
    border-color: rgba(149, 193, 31, 0.6);
    background: #fbfdf6;
    color: var(--rek-dark);
    transform: translateY(-2px);
}

.rek-crosslink i {
    color: #6f9110;
    font-size: 1.2rem;
}

/* ------------------------------------------------------------- ostatní --- */

.rek-breadcrumb {
    background: #f6f8f5;
    padding: 0.85rem 0;
    font-size: 0.88rem;
}

.rek-breadcrumb a {
    color: var(--rek-muted);
    text-decoration: none;
}

.rek-breadcrumb a:hover {
    color: #6f9110;
}

.rek-breadcrumb .breadcrumb {
    margin-bottom: 0;
}

/* Textový blok s odrážkami uvnitř obsahových sekcí */
.rek-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.7rem;
}

.rek-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    color: #4a5560;
    font-size: 0.96rem;
    line-height: 1.6;
}

.rek-list i {
    color: var(--rek-accent);
    font-size: 1.05rem;
    flex-shrink: 0;
    margin-top: 0.15rem;
}
