/* ************************************************************** */
/* MENU by Rapido Connect — shared landing page extras              */
/* Loaded AFTER global.css and home.css on every inner page.        */
/* Only rules home.css does not already cover. Same file is used    */
/* by the English and Arabic versions (RTL-only rules sit at the    */
/* bottom and never affect the English page).                       */
/* ************************************************************** */

/* Industry / city badges that are links */
.pg-badge-link {
    display: block;
    text-decoration: none;
    transition: background-color .2s;
}

@media (hover: hover) and (pointer: fine) {
    .pg-badge-link:hover {
        background-color: var(--color-hover);
    }
}

/* Small heading above a row of badges */
.pg-row-label {
    text-align: center;
}

.industry-row+.pg-row-label {
    margin-top: var(--dim-32px);
}

/* Centered call-to-action under a grid */
.pg-cta {
    display: flex;
    justify-content: center;
    margin-top: var(--dim-32px);
}

@media only screen and (max-width: 700px) {
    .pg-row-label {
        text-align: start;
    }

    .pg-cta {
        justify-content: flex-start;
    }
}

/* ************************************************************** */
/* RIYADH PAGE — quote-card hero                                    */
/* Layout is new; text styles reuse hero-badge, hero-title,          */
/* hero-subtitle and hero-cta-row from home.css.                     */
/* ************************************************************** */

.rd-hero-container {
    position: relative;
    display: flex;
    width: 100%;
    max-width: var(--global-max-width);
    margin: 0 auto;
    overflow: hidden;
    background-color: var(--color-black);
}

.rd-hero-container-inner {
    position: relative;
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    align-items: center;
    gap: var(--dim-separator-gap);
    width: var(--global-width);
    margin: 0 auto;
    padding: var(--dim-separator-gap) 0px;
}

.rd-hero-glow {
    position: absolute;
    inset-block-start: -20%;
    inset-inline-end: -10%;
    width: 560px;
    height: 560px;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(16, 157, 89, 0.28), rgba(16, 157, 89, 0) 72%);
    pointer-events: none;
}

.rd-hero-content,
.rd-quote {
    position: relative;
    z-index: 2;
}

.rd-districts-label {
    margin-top: var(--dim-32px);
    font-size: 14px;
    color: var(--color-gray);
}

.rd-districts {
    display: flex;
    flex-wrap: wrap;
    gap: var(--dim-8px);
    margin-top: var(--dim-12px);
    list-style: none;
}

.rd-district {
    padding: var(--dim-8px) var(--dim-16px);
    border: 1px solid var(--color-black-stroke);
    border-radius: var(--roundness-full);
    background-color: rgba(255, 255, 255, 0.04);
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

/* Quote card */
.rd-quote {
    width: 100%;
    max-width: 460px;
    margin-inline-start: auto;
    padding: var(--dim-32px);
    border-radius: var(--roundness);
    background-color: var(--color-white);
    box-shadow: var(--shadow);
}

.rd-quote-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--dim-16px);
}

.rd-quote-tag {
    display: inline-block;
    padding: var(--dim-4px) var(--dim-8px);
    border-radius: var(--roundness-full);
    background-color: var(--color-brand-light);
    font-size: var(--font-small);
    font-weight: 700;
    color: var(--color-brand-dark);
}

.rd-quote-price {
    margin-top: var(--dim-12px);
    font-size: var(--font-large-extra);
    font-weight: 900;
    color: var(--color-black);
}

.rd-quote-price>span {
    font-size: var(--font-medium);
    font-weight: 600;
    color: var(--color-gray);
}

.rd-quote-note {
    margin-top: var(--dim-4px);
    font-size: var(--font-medium);
    color: var(--color-gray);
}

.rd-quote-qr {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    gap: var(--dim-4px);
}

.rd-quote-qr-label {
    font-size: var(--font-small);
    color: var(--color-gray);
}

.rd-quote .menu-check-list {
    margin-top: var(--dim-24px);
    padding-top: var(--dim-16px);
    border-top: 1px solid var(--color-stroke);
}

.rd-quote .menu-general-btn {
    justify-content: center;
    width: 100%;
    margin-top: var(--dim-24px);
}

/* Two-column block: heading on one side, points on the other (shared) */
.pg-split {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    align-items: start;
    gap: var(--dim-separator-gap);
}

.pg-split .menu-section-head {
    margin-bottom: 0px;
}

@media only screen and (max-width: 1060px) {
    .rd-hero-container-inner {
        grid-template-columns: 1fr;
        gap: var(--dim-48px);
        padding: var(--dim-48px) 0px;
    }

    .rd-quote {
        max-width: 520px;
        margin-inline-start: 0;
    }

    .pg-split {
        grid-template-columns: 1fr;
        gap: var(--dim-32px);
    }
}

@media only screen and (max-width: 700px) {
    .rd-hero-container-inner {
        padding: var(--dim-32px) 0px;
    }

    .rd-quote {
        padding: var(--dim-24px);
    }

    .rd-hero-glow {
        width: 360px;
        height: 360px;
    }
}

/* ************************************************************** */
/* SFDA PAGE — centered hero with three label tiles, rules table    */
/* Text styles reuse hero-badge, hero-title, hero-subtitle and       */
/* hero-cta-row from home.css.                                       */
/* ************************************************************** */

.sf-hero-container {
    position: relative;
    display: flex;
    width: 100%;
    max-width: var(--global-max-width);
    margin: 0 auto;
    overflow: hidden;
    background-color: var(--color-black);
}

.sf-hero-container-inner {
    position: relative;
    width: var(--global-width);
    margin: 0 auto;
    padding: var(--dim-separator-gap) 0px;
}

.sf-hero-glow {
    position: absolute;
    inset-block-start: -30%;
    inset-inline: 0;
    width: 720px;
    max-width: 100%;
    height: 720px;
    margin-inline: auto;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(16, 157, 89, 0.24), rgba(16, 157, 89, 0) 72%);
    pointer-events: none;
}

.sf-hero-head {
    position: relative;
    z-index: 2;
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
}

.sf-hero-head .hero-subtitle {
    margin-inline: auto;
}

.sf-hero-head .hero-cta-row {
    justify-content: center;
}

.sf-hero-tiles {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--dim-16px);
    margin-top: var(--dim-64px);
    list-style: none;
}

.sf-hero-tile {
    padding: var(--dim-24px);
    border: 1px solid var(--color-black-stroke);
    border-radius: var(--roundness);
    background-color: rgba(255, 255, 255, 0.04);
}

.sf-hero-tile-icon {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--color-brand);
    color: var(--color-white);
}

.sf-hero-tile-title {
    margin-top: var(--dim-16px);
    font-size: var(--font-large);
    font-weight: 800;
    color: var(--color-white);
}

.sf-hero-tile-text {
    margin-top: var(--dim-8px);
    font-size: var(--font-medium);
    color: var(--color-gray);
}

/* Rules table */
.sf-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--color-stroke);
    border-radius: var(--roundness);
    background-color: var(--color-white);
}

.sf-table {
    width: 100%;
    min-width: 560px;
    border-collapse: collapse;
}

.sf-table th,
.sf-table td {
    padding: var(--dim-16px);
    border-bottom: 1px solid var(--color-stroke);
    font-size: var(--font-medium);
    text-align: start;
    vertical-align: top;
}

.sf-table th {
    background-color: var(--color-lightgray);
    font-weight: 800;
    color: var(--color-black);
}

.sf-table td {
    color: var(--color-gray);
}

.sf-table td:first-child {
    width: 28%;
    font-weight: 700;
    color: var(--color-black);
}

.sf-table tbody tr:last-child td {
    border-bottom: 0;
}

.sf-note {
    margin-top: var(--dim-16px);
    font-size: 14px;
    color: var(--color-gray);
}

.sf-note a {
    font-size: inherit;
    color: var(--color-link-dark);
}

@media only screen and (max-width: 1060px) {
    .sf-hero-container-inner {
        padding: var(--dim-48px) 0px;
    }

    .sf-hero-tiles {
        margin-top: var(--dim-48px);
    }
}

@media only screen and (max-width: 830px) {
    .sf-hero-tiles {
        grid-template-columns: 1fr;
    }
}

@media only screen and (max-width: 700px) {
    .sf-hero-container-inner {
        padding: var(--dim-32px) 0px;
    }

    .sf-hero-head {
        text-align: start;
    }

    .sf-hero-head .hero-subtitle {
        margin-inline: 0;
    }

    .sf-hero-head .hero-cta-row {
        justify-content: flex-start;
    }

    .sf-hero-tiles {
        margin-top: var(--dim-32px);
    }

    .sf-hero-glow {
        width: 420px;
        height: 420px;
    }
}

/* ************************************************************** */
/* NFC PAGE — "tap" hero with pulsing rings around a table card     */
/* Text styles reuse hero-badge, hero-title, hero-subtitle and       */
/* hero-cta-row from home.css.                                       */
/* ************************************************************** */

.nf-hero-container {
    position: relative;
    display: flex;
    width: 100%;
    max-width: var(--global-max-width);
    margin: 0 auto;
    overflow: hidden;
    background-color: var(--color-black);
}

.nf-hero-container-inner {
    position: relative;
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    align-items: center;
    gap: var(--dim-separator-gap);
    width: var(--global-width);
    margin: 0 auto;
    padding: var(--dim-separator-gap) 0px;
}

.nf-hero-glow {
    position: absolute;
    inset-block-start: 10%;
    inset-inline-end: 0;
    width: 640px;
    height: 640px;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(16, 157, 89, 0.26), rgba(16, 157, 89, 0) 72%);
    pointer-events: none;
}

.nf-hero-content {
    position: relative;
    z-index: 2;
}

.nf-chips {
    display: flex;
    flex-wrap: wrap;
    gap: var(--dim-8px);
    margin-top: var(--dim-32px);
    list-style: none;
}

.nf-chip {
    padding: var(--dim-8px) var(--dim-16px);
    border: 1px solid var(--color-black-stroke);
    border-radius: var(--roundness-full);
    background-color: rgba(255, 255, 255, 0.04);
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

.nf-tap {
    position: relative;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 100%;
    max-width: 420px;
    aspect-ratio: 1;
    margin-inline: auto;
}

.nf-ring {
    position: absolute;
    inset: 0;
    border: 1px solid rgba(16, 157, 89, 0.55);
    border-radius: 50%;
    opacity: 0;
    animation: nf-pulse 3.6s ease-out infinite;
}

.nf-ring:nth-child(2) {
    animation-delay: 1.2s;
}

.nf-ring:nth-child(3) {
    animation-delay: 2.4s;
}

@keyframes nf-pulse {
    0% {
        transform: scale(.4);
        opacity: .9;
    }

    100% {
        transform: scale(1);
        opacity: 0;
    }
}

.nf-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 58%;
    aspect-ratio: 1.586;
    padding: var(--dim-16px);
    border-radius: var(--roundness);
    background-color: var(--color-brand);
    box-shadow: var(--shadow);
}

.nf-card .menu-icon {
    width: 44px;
    height: 44px;
    color: var(--color-white);
}

.nf-card-name {
    font-size: var(--font-large);
    font-weight: 900;
    color: var(--color-white);
}

.nf-card-hint {
    font-size: var(--font-small);
    color: var(--color-white);
    opacity: .85;
}

@media (prefers-reduced-motion: reduce) {
    .nf-ring {
        animation: none;
        opacity: .4;
    }

    .nf-ring:nth-child(1) {
        transform: scale(.6);
    }

    .nf-ring:nth-child(2) {
        transform: scale(.8);
    }
}

/* ************************************************************** */
/* QR PAGE — scan-frame hero (large live QR with corner brackets)   */
/* ************************************************************** */

.qr-hero-container {
    position: relative;
    display: flex;
    width: 100%;
    max-width: var(--global-max-width);
    margin: 0 auto;
    overflow: hidden;
    background-color: var(--color-black);
}

.qr-hero-container-inner {
    position: relative;
    display: grid;
    grid-template-columns: .85fr 1.15fr;
    align-items: center;
    gap: var(--dim-separator-gap);
    width: var(--global-width);
    margin: 0 auto;
    padding: var(--dim-separator-gap) 0px;
}

.qr-hero-glow {
    position: absolute;
    inset-block-start: 0;
    inset-inline-start: -8%;
    width: 560px;
    height: 560px;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(16, 157, 89, 0.26), rgba(16, 157, 89, 0) 72%);
    pointer-events: none;
}

.qr-hero-content {
    position: relative;
    z-index: 2;
    grid-column: 2;
    grid-row: 1;
}

.qr-hero-visual {
    position: relative;
    z-index: 2;
    grid-column: 1;
    grid-row: 1;
}

.qr-frame {
    position: relative;
    width: 100%;
    max-width: 340px;
    margin-inline: auto;
    padding: var(--dim-32px);
    border-radius: var(--roundness);
    background-color: var(--color-white);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.qr-code-box {
    display: grid;
    place-items: center;
    width: 100%;
}

.qr-code-box img {
    display: block;
    width: 100%;
    height: auto;
}

.qr-code-box canvas {
    display: none;
}

.qr-corner {
    position: absolute;
    width: 28px;
    height: 28px;
    border: 3px solid var(--color-brand);
}

.qr-corner-tl {
    inset-block-start: 10px;
    inset-inline-start: 10px;
    border-inline-end: 0;
    border-block-end: 0;
    border-start-start-radius: 10px;
}

.qr-corner-tr {
    inset-block-start: 10px;
    inset-inline-end: 10px;
    border-inline-start: 0;
    border-block-end: 0;
    border-start-end-radius: 10px;
}

.qr-corner-bl {
    inset-block-end: 10px;
    inset-inline-start: 10px;
    border-inline-end: 0;
    border-block-start: 0;
    border-end-start-radius: 10px;
}

.qr-corner-br {
    inset-block-end: 10px;
    inset-inline-end: 10px;
    border-inline-start: 0;
    border-block-start: 0;
    border-end-end-radius: 10px;
}

.qr-scan-line {
    position: absolute;
    inset-inline: 10px;
    inset-block-start: 10px;
    height: 2px;
    background: linear-gradient(90deg, rgba(16, 157, 89, 0), var(--color-brand), rgba(16, 157, 89, 0));
    animation: qr-scan 3.2s ease-in-out infinite;
    pointer-events: none;
}

@keyframes qr-scan {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(var(--qr-scan-distance, 300px));
    }

    100% {
        transform: translateY(0);
    }
}

.qr-frame-caption {
    max-width: 340px;
    margin: var(--dim-16px) auto 0;
    font-size: 14px;
    text-align: center;
    color: var(--color-gray);
}

@media (prefers-reduced-motion: reduce) {
    .qr-scan-line {
        animation: none;
        display: none;
    }
}

@media only screen and (max-width: 1060px) {

    .nf-hero-container-inner,
    .qr-hero-container-inner {
        grid-template-columns: 1fr;
        gap: var(--dim-48px);
        padding: var(--dim-48px) 0px;
    }

    .qr-hero-content,
    .qr-hero-visual {
        grid-column: auto;
        grid-row: auto;
    }

    .nf-tap {
        max-width: 340px;
    }

    .qr-frame,
    .qr-frame-caption {
        margin-inline: 0;
    }
}

@media only screen and (max-width: 700px) {

    .nf-hero-container-inner,
    .qr-hero-container-inner {
        padding: var(--dim-32px) 0px;
    }

    .nf-hero-glow,
    .qr-hero-glow {
        width: 360px;
        height: 360px;
    }

    .qr-frame {
        padding: var(--dim-24px);
        max-width: 280px;
    }

    .qr-frame-caption {
        max-width: 280px;
    }

    .qr-scan-line {
        --qr-scan-distance: 240px;
    }
}

/* ************************************************************** */
/* RTL (Arabic) — global.css / home.css use a few physical margins   */
/* ************************************************************** */

/* "powered by" logo spacing in the navbar */
html[dir="rtl"] .menu-navbar-poweredby>img {
    margin-left: 0;
    margin-inline-start: var(--dim-4px);
}

/* Footer social icons sit on the far (left) side on desktop */
@media only screen and (min-width: 1101px) {
    html[dir="rtl"] .footer-social-icons {
        margin-left: 0;
        margin-right: auto;
    }

    html[dir="rtl"] .footer-social-icons>a {
        margin-left: 0;
        margin-right: var(--dim-16px);
    }
}