/*
 * Service and branch landing pages — template-service.php, template-branch.php.
 *
 * Loaded after shared-page.css, which supplies .page-hero, the breadcrumb and
 * the .page-content-3d card these components sit in. Only what those two
 * templates add is here.
 *
 * Spacing uses logical properties (margin-inline-*, padding-inline-*), which
 * are safe under dir="rtl". Nothing here pairs an inset-inline-* offset with a
 * translate: inset-inline-start resolves to `right` in RTL, and a positive
 * translateX then pushes the element the wrong way — this theme has been
 * bitten by that twice.
 */

/* --- Header ------------------------------------------------------------ */

.rn-landing__head {
    max-width: 52rem;
    margin: 0 auto 2.5rem;
}

.rn-landing__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    margin-bottom: 1.25rem;
    border-radius: 50%;
    background: rgba(191, 171, 211, 0.12);
    border: 1px solid var(--ct-border);
    color: var(--ct-accent);
    font-size: 1.75rem;
}

.rn-landing__lead {
    color: var(--ct-muted);
    font-size: 1.125rem;
    line-height: 1.9;
    margin-bottom: 1.75rem;
}

.rn-landing__price {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: center;
    gap: 0.4rem 0.9rem;
    padding: 0.85rem 1.5rem;
    margin-bottom: 1.75rem;
    border-radius: 1rem;
    background: rgba(13, 13, 24, 0.55);
    border: 1px solid var(--ct-border);
}

.rn-landing__price-label {
    color: var(--ct-muted);
}

.rn-landing__price-value {
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--ct-accent-light);
    line-height: 1;
}

.rn-landing__price-value small {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--ct-muted);
}

.rn-landing__price-link {
    color: var(--ct-accent);
    font-weight: 600;
}

.rn-landing__price-link:hover {
    color: var(--ct-accent-light);
}

.rn-landing__ctas {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

/* --- What you get -------------------------------------------------------- */

.rn-landing__bullets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
    gap: 0.85rem;
    margin: 0 0 2.75rem;
    padding: 0;
}

.rn-landing__bullets li {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 1rem 1.1rem;
    border-radius: 0.85rem;
    background: rgba(13, 13, 24, 0.4);
    border: 1px solid rgba(208, 177, 212, 0.18);
    color: var(--ct-text);
    line-height: 1.7;
}

.rn-landing__bullets .bi {
    flex-shrink: 0;
    margin-top: 0.2rem;
    color: var(--ct-accent);
    font-size: 1.15rem;
}

/* --- Explanatory sections ----------------------------------------------- */

.rn-landing__sections {
    max-width: 52rem;
    margin: 0 auto;
}

.rn-landing__section + .rn-landing__section {
    margin-top: 2rem;
}

.rn-landing__section h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--ct-text);
    margin-bottom: 0.75rem;
}

.rn-landing__section p {
    color: var(--ct-muted);
    font-size: 1.05rem;
    line-height: 2;
    margin: 0;
}

/* --- Blocks: proof grid, FAQ, cards ------------------------------------- */

.rn-landing__block {
    margin-top: 3.5rem;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(208, 177, 212, 0.18);
}

.rn-landing__block-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--ct-text);
    margin-bottom: 0.5rem;
    text-align: center;
}

.rn-landing__block-sub {
    color: var(--ct-muted);
    text-align: center;
    margin-bottom: 1.75rem;
}

.rn-landing__block-sub a {
    color: var(--ct-accent);
    font-weight: 600;
}

.rn-landing__block-title + .rn-faq,
.rn-landing__block-title + .rn-landing__cards {
    margin-top: 1.5rem;
}

/* FAQ — native <details>, so the answers are in the HTML without JavaScript. */

.rn-faq {
    max-width: 52rem;
    margin: 0 auto 0.75rem;
    border-radius: 0.85rem;
    background: rgba(13, 13, 24, 0.4);
    border: 1px solid rgba(208, 177, 212, 0.2);
    transition: border-color 0.2s ease;
}

.rn-faq[open] {
    border-color: var(--ct-border);
}

.rn-faq__q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.1rem 1.25rem;
    min-height: 3rem;
    cursor: pointer;
    list-style: none;
    font-weight: 700;
    color: var(--ct-text);
}

.rn-faq__q::-webkit-details-marker {
    display: none;
}

.rn-faq__q::after {
    content: '\F282'; /* bootstrap-icons chevron-down */
    font-family: 'bootstrap-icons';
    flex-shrink: 0;
    color: var(--ct-accent);
    transition: transform 0.2s ease;
}

.rn-faq[open] .rn-faq__q::after {
    transform: rotate(180deg);
}

.rn-faq__q:focus-visible {
    outline: 2px solid var(--ct-accent);
    outline-offset: 2px;
    border-radius: 0.85rem;
}

.rn-faq__a {
    padding: 0 1.25rem 1.15rem;
}

.rn-faq__a p {
    margin: 0;
    color: var(--ct-muted);
    line-height: 1.95;
}

/* Cards — related services, branches, a branch's services. */

.rn-landing__cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
    gap: 1rem;
}

.rn-landing-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.45rem;
    padding: 1.4rem 1rem;
    border-radius: 1rem;
    background: rgba(13, 13, 24, 0.45);
    border: 1px solid rgba(208, 177, 212, 0.22);
    color: var(--ct-text);
    text-align: center;
    text-decoration: none;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.rn-landing-card:hover,
.rn-landing-card:focus-visible {
    color: var(--ct-text);
    border-color: var(--ct-accent);
    transform: translateY(-3px);
    box-shadow: var(--ct-accent-glow);
}

.rn-landing-card__icon {
    font-size: 1.6rem;
    color: var(--ct-accent);
}

.rn-landing-card__name {
    font-weight: 700;
    font-size: 1.1rem;
}

.rn-landing-card__meta {
    color: var(--ct-muted);
    font-size: 0.9rem;
}

.rn-landing-card__more {
    color: var(--ct-accent);
    font-size: 0.9rem;
    font-weight: 600;
}

/* --- Closing call to action --------------------------------------------- */

.rn-landing__final {
    text-align: center;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(208, 177, 212, 0.18);
}

.rn-landing__final-text {
    color: var(--ct-text);
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
}

/* --- Branch page --------------------------------------------------------- */

.rn-branch-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
    gap: 1rem;
    margin: 0 0 2rem;
}

.rn-branch-facts__item {
    padding: 1.15rem 1.25rem;
    border-radius: 0.85rem;
    background: rgba(13, 13, 24, 0.4);
    border: 1px solid rgba(208, 177, 212, 0.2);
}

.rn-branch-facts dt {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.45rem;
    color: var(--ct-accent);
    font-weight: 700;
}

.rn-branch-facts dd {
    margin: 0;
    color: var(--ct-text);
    line-height: 1.85;
}

.rn-branch-facts dd a {
    color: var(--ct-text);
    font-weight: 700;
    text-decoration: none;
}

.rn-branch-facts dd a:hover {
    color: var(--ct-accent);
}

.rn-branch-map {
    overflow: hidden;
    border-radius: 1rem;
    border: 1px solid var(--ct-border);
    background: var(--ct-secondary);
    aspect-ratio: 1200 / 420;
}

.rn-branch-map iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

/* --- Small screens -------------------------------------------------------- */

@media (max-width: 575.98px) {
    .rn-landing__ctas .btn {
        flex: 1 1 100%;
    }

    .rn-landing__price-value {
        font-size: 1.6rem;
    }

    .rn-branch-map {
        aspect-ratio: 4 / 3;
    }

    .rn-landing__block-title {
        font-size: 1.35rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .rn-landing-card,
    .rn-faq__q::after {
        transition: none;
    }

    .rn-landing-card:hover,
    .rn-landing-card:focus-visible {
        transform: none;
    }
}
