/**
 * Single service pages — full layout (all service CPT pages)
 */
.single-service,
.nofal-service-layout {
    --svc-navy: #141428;
    --svc-primary: #283891;
    --svc-accent: #25aae1;
    --svc-accent-soft: #71b4e8;
    --svc-muted: #64748b;
    --svc-border: rgba(20, 20, 40, 0.08);
    --svc-radius: 16px;
    --svc-shadow: 0 16px 48px rgba(20, 20, 40, 0.1);
}

.nofal-service-page {
    overflow-x: clip;
}

/* ── Page head ── */
.single-service .nofal-service-pagehead,
.nofal-service-layout .nofal-service-pagehead {
    position: relative;
    padding: clamp(2.75rem, 7vw, 4.5rem) 0;
    background-color: var(--svc-navy);
    background-size: cover;
    background-position: center;
}

.single-service .nofal-service-pagehead::before,
.nofal-service-layout .nofal-service-pagehead::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(20, 20, 40, 0.94) 0%, rgba(40, 56, 145, 0.78) 100%);
    pointer-events: none;
}

.single-service .nofal-service-pagehead .container,
.nofal-service-layout .nofal-service-pagehead .container {
    position: relative;
    z-index: 1;
}

.single-service .nofal-service-pagehead h1,
.nofal-service-layout .nofal-service-pagehead h1 {
    font-size: clamp(1.5rem, 3.5vw, 2.25rem);
    font-weight: 800;
    line-height: 1.25;
    margin: 0 0 0.85rem;
    text-transform: none;
    letter-spacing: -0.02em;
    color: #fff;
}

.single-service .nofal-service-pagehead .breadcrumb,
.nofal-service-layout .nofal-service-pagehead .breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem 0.65rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.88);
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
}

.single-service .nofal-service-pagehead .breadcrumb a,
.nofal-service-layout .nofal-service-pagehead .breadcrumb a {
    color: inherit;
    text-decoration: none;
}

.single-service .nofal-service-pagehead .breadcrumb a:hover,
.nofal-service-layout .nofal-service-pagehead .breadcrumb a:hover {
    color: var(--svc-accent-soft);
}

/* ── Hero sections ── */
.nofal-service-hero {
    padding: clamp(2.5rem, 5vw, 4.5rem) 0;
}

.nofal-service-hero--light {
    background: #fff;
    color: #334155;
}

.nofal-service-hero--dark {
    background: linear-gradient(180deg, var(--svc-navy) 0%, #1a1a32 100%);
    color: rgba(255, 255, 255, 0.94);
}

.nofal-service-hero__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: center;
}

@media (min-width: 992px) {
    .nofal-service-hero__grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }

    .nofal-service-hero__grid--reverse .nofal-service-hero__media {
        order: 2;
    }

    .nofal-service-hero__grid--reverse .nofal-service-hero__content {
        order: 1;
    }
}

.nofal-service-hero__media,
.nofal-service-hero__content {
    min-width: 0;
}

.nofal-service-hero__figure,
.nofal-service-hero__video {
    border-radius: var(--svc-radius);
    overflow: hidden;
    box-shadow: var(--svc-shadow);
    background-color: #eef2f8;
}

.nofal-service-hero__figure {
    display: block;
    width: 100%;
    min-height: 220px;
}

.nofal-service-hero__video {
    position: relative;
}

.nofal-service-hero__video video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

.nofal-service-hero__content {
    font-size: clamp(0.98rem, 1.6vw, 1.06rem);
    line-height: 1.85;
}

.nofal-service-hero__title,
.nofal-service-hero__content h2 {
    font-size: clamp(1.4rem, 2.8vw, 1.85rem) !important;
    font-weight: 800 !important;
    line-height: 1.3 !important;
    margin: 0 0 1rem !important;
    letter-spacing: -0.02em;
    color: var(--svc-primary) !important;
}

.nofal-service-hero--dark .nofal-service-hero__title,
.nofal-service-hero--dark .nofal-service-hero__content h2 {
    color: var(--svc-accent-soft) !important;
}

.nofal-service-hero__text,
.nofal-service-hero__content p {
    margin: 0 0 1rem;
    line-height: 1.85;
}

.nofal-service-hero__content p:last-child,
.nofal-service-hero__text:last-child {
    margin-bottom: 0;
}

/* Checklist — override legacy icon font bullets */
.nofal-service-hero .checklist,
.nofal-service-page .checklist {
    list-style: none;
    margin: 1.25rem 0 1.5rem;
    padding: 0;
}

.nofal-service-hero .checklist li,
.nofal-service-page .checklist li {
    position: relative;
    padding: 0.5rem 0;
    padding-inline-start: 1.85rem;
    line-height: 1.7;
    font-weight: 500;
}

.nofal-service-hero .checklist li::before,
.nofal-service-page .checklist li::before {
    content: "" !important;
    font-family: inherit !important;
    position: absolute;
    inset-inline-start: 0;
    top: 0.95rem;
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    background: var(--svc-accent);
    box-shadow: 0 0 0 3px rgba(37, 170, 225, 0.22);
}

.nofal-service-hero--dark .checklist li::before {
    background: var(--svc-accent-soft);
    box-shadow: 0 0 0 3px rgba(113, 180, 232, 0.25);
}

.nofal-service-hero--dark .checklist,
.nofal-service-hero--dark .checklist li,
.nofal-service-hero--dark .checklist li strong {
    color: rgba(255, 255, 255, 0.94);
}

/* ── Portfolio ── */
.nofal-service-portfolio-section {
    padding: clamp(2.75rem, 5vw, 4.5rem) 0;
    background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
}

.nofal-service-portfolio-section .section-head {
    max-width: 760px;
    margin-inline: auto;
    margin-bottom: clamp(1.75rem, 4vw, 2.75rem);
    text-align: center;
}

.nofal-service-portfolio-section .section-head h2 {
    font-size: clamp(1.5rem, 3vw, 2.05rem);
    font-weight: 800;
    color: var(--svc-primary) !important;
    margin: 0 0 0.75rem;
    letter-spacing: -0.02em;
}

.nofal-service-portfolio-section .section-head h2::before,
.nofal-service-portfolio-section .section-head h2::after {
    display: none !important;
}

.nofal-service-portfolio-section__desc {
    font-size: clamp(0.95rem, 1.8vw, 1.08rem);
    color: var(--svc-muted);
    line-height: 1.75;
    margin: 0;
}

.nofal-service-portfolio {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(1rem, 2.5vw, 1.5rem);
}

@media (min-width: 640px) {
    .nofal-service-portfolio {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .nofal-service-portfolio {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.nofal-service-portfolio__card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border: 1px solid var(--svc-border);
    border-radius: var(--svc-radius);
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(20, 20, 40, 0.05);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.nofal-service-portfolio__card:hover {
    transform: translateY(-5px);
    box-shadow: var(--svc-shadow);
    border-color: rgba(37, 170, 225, 0.28);
}

.nofal-service-portfolio__media {
    display: block;
    position: relative;
    padding-bottom: 62%;
    margin: 0;
    border-radius: 0;
    min-height: 0;
    background-color: #eef2f8;
    background-size: cover;
    background-position: center top;
}

.nofal-service-portfolio__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1.2rem 1.25rem 1.4rem;
    text-align: center;
}

.nofal-service-portfolio__body h3 {
    font-size: clamp(1rem, 1.8vw, 1.12rem);
    font-weight: 700;
    line-height: 1.45;
    margin: 0 0 0.65rem;
    color: var(--svc-navy);
}

.nofal-service-portfolio__body h3 a {
    color: inherit;
    text-decoration: none;
}

.nofal-service-portfolio__body h3 a:hover {
    color: var(--svc-accent);
}

.nofal-service-portfolio__body p {
    flex: 1;
    margin: 0 0 1rem;
    font-size: 0.925rem;
    line-height: 1.7;
    color: var(--svc-muted);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nofal-service-portfolio__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    align-self: center;
    padding: 0.55rem 1.05rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--svc-accent);
    text-decoration: none;
    border: 1px solid rgba(37, 170, 225, 0.35);
    border-radius: 999px;
    transition: background 0.2s ease, color 0.2s ease;
}

.nofal-service-portfolio__link:hover {
    background: var(--svc-accent);
    color: #fff;
}

html[dir="rtl"] .nofal-service-portfolio__link::after {
    content: "←";
}

html[dir="ltr"] .nofal-service-portfolio__link::after {
    content: "→";
}

.nofal-service-portfolio__empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 2rem;
    color: var(--svc-muted);
}

/* ── CTA ── */
.nofal-service-cta {
    padding: clamp(2rem, 4vw, 3rem) 0 clamp(3rem, 6vw, 4.5rem);
    background: #fff;
}

.nofal-service-cta__box {
    text-align: center;
    padding: clamp(1.75rem, 4vw, 2.75rem);
    border-radius: var(--svc-radius);
    background: linear-gradient(135deg, var(--svc-navy) 0%, #243060 100%);
    color: #fff;
    box-shadow: var(--svc-shadow);
}

.nofal-service-cta__box h2 {
    font-size: clamp(1.35rem, 2.8vw, 1.85rem);
    font-weight: 800;
    margin: 0 0 0.65rem;
    letter-spacing: -0.02em;
    color: #fff !important;
}

.nofal-service-cta__box p {
    max-width: 560px;
    margin: 0 auto 1.35rem;
    font-size: clamp(0.95rem, 1.6vw, 1.05rem);
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.88);
}

.nofal-service-cta__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.nofal-service-cta__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0.65rem 1.25rem;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 999px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.nofal-service-cta__btn:hover {
    transform: translateY(-2px);
}

.nofal-service-cta__btn--wa {
    background: #25d366;
    color: #fff;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
}

.nofal-service-cta__btn--ghost {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.45);
}

.nofal-service-cta__btn--ghost:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* ── Legacy overrides ── */
.nofal-service-page .section-small:not(.nofal-service-portfolio-section) {
    padding: 0;
}

.nofal-service-page .row {
    margin: 0;
}

.nofal-service-page [class*="col-"] {
    padding: 0;
    width: auto;
}

@media (max-width: 991px) {
    .nofal-service-hero__media {
        max-width: min(100%, 540px);
        margin-inline: auto;
    }
}

@media (max-width: 479px) {
    .nofal-service-cta__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .nofal-service-cta__btn {
        width: 100%;
    }
}
