/* AI services page (/ai-artificial-intelligence). Builds on cyber-security-v2.css;
   only the pieces that page does not already cover live here. */

/* Hero: AI page uses its own background instead of the cyber artwork. */
.rd-ai-hero,
.rd-ai-page .rd-ai-hero {
    background:
        radial-gradient(circle at 78% 30%, rgba(48, 185, 223, .28), transparent 42%),
        radial-gradient(circle at 92% 88%, rgba(45, 99, 207, .34), transparent 40%),
        linear-gradient(120deg, #050b16 0%, #0a1830 55%, #0f2a52 100%);
}

.rd-ai-hero .rd-ai-tagline {
    margin: 16px 0 0;
    color: #8ff0ff;
    font-size: 20px;
    font-style: italic;
    font-weight: 600;
}

.rd-ai-snapshot > p {
    margin-bottom: 0;
}

.rd-ai-tools {
    display: grid;
    gap: 10px;
    margin: 18px 0;
    padding: 0;
    list-style: none;
}

.rd-ai-tools li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid rgba(129, 200, 255, .24);
    border-radius: 8px;
    background: rgba(255, 255, 255, .06);
    color: #ffffff;
    font-family: Ubuntu, "Open Sans", Arial, sans-serif;
    font-size: 18px;
    font-weight: 700;
}

.rd-ai-tools i {
    width: 22px;
    color: #8ff0ff;
    text-align: center;
}

/* Trust band: heading plus five items, and the partner note. */
.rd-ai-band .rd-ai-band__title {
    margin: 26px 0 0;
    color: var(--rd-cyber-ink);
    font-family: Ubuntu, "Open Sans", Arial, sans-serif;
    font-size: 22px;
    text-align: center;
}

.rd-ai-band .rd-cyber-band__inner {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.rd-ai-partner-note {
    margin: 0 0 22px;
    padding: 14px 18px;
    border: 1px solid #f6d19a;
    border-radius: 8px;
    background: #fff8ec;
    color: #6b4410;
    font-size: 14px;
    line-height: 1.6;
}

/* Solutions: Readiness Assessment spans the row, then six cards in two rows of three. */
.rd-ai-solutions .rd-ai-lead {
    grid-column: 1 / -1;
}

.rd-ai-page .rd-cyber-card h3 a {
    color: inherit;
    text-decoration: none;
}

.rd-ai-page .rd-cyber-card h3 a:hover {
    text-decoration: underline;
}

/* Why Radium: five cards as three then two, centred. */
.rd-ai-why {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.rd-ai-why > article {
    grid-column: span 2;
}

.rd-ai-why > article:nth-child(4) {
    grid-column: 2 / span 2;
}

/* Process: five steps. */
.rd-ai-flow {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.rd-ai-center-action {
    display: flex;
    justify-content: center;
    margin-top: 34px;
}

/* Book section: copy on the left, on-page form on the right. */
.rd-ai-review--flip .rd-ai-form {
    order: 2;
    align-self: start;
}

.rd-ai-form .rd-contact__panel-head small {
    display: block;
    margin-top: 6px;
    color: var(--rd-cyber-muted);
    font-size: 14px;
    line-height: 1.5;
}

.rd-ai-form__message {
    display: grid;
    gap: 6px;
    margin-top: 14px;
}

/* FAQ: expandable questions. */
.rd-ai-faq {
    display: grid;
    gap: 12px;
    max-width: 920px;
    margin: 0 auto;
}

.rd-ai-faq details {
    border: 1px solid var(--rd-cyber-line);
    border-radius: 10px;
    background: var(--rd-cyber-panel);
    box-shadow: 0 12px 32px rgba(34, 62, 94, .06);
}

.rd-ai-faq summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px;
    cursor: pointer;
    list-style: none;
}

.rd-ai-faq summary::-webkit-details-marker {
    display: none;
}

.rd-ai-faq summary::after {
    content: "+";
    flex: 0 0 auto;
    color: var(--rd-cyber-blue);
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
}

.rd-ai-faq details[open] summary::after {
    content: "\2212";
}

.rd-ai-faq summary h3 {
    margin: 0;
    color: var(--rd-cyber-ink);
    font-family: Ubuntu, "Open Sans", Arial, sans-serif;
    font-size: 18px;
    line-height: 1.35;
}

.rd-ai-faq details p {
    margin: 0;
    padding: 0 24px 22px;
    color: var(--rd-cyber-muted);
    line-height: 1.65;
}

.rd-ai-faq summary:focus-visible {
    outline: 2px solid var(--rd-cyber-blue);
    outline-offset: 2px;
    border-radius: 10px;
}

.rd-ai-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

@media (max-width: 1100px) {
    .rd-ai-band .rd-cyber-band__inner,
    .rd-ai-flow {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .rd-ai-why {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .rd-ai-why > article,
    .rd-ai-why > article:nth-child(4) {
        grid-column: auto;
    }

    .rd-ai-review--flip .rd-ai-form {
        order: 0;
    }
}

@media (max-width: 760px) {
    .rd-ai-band .rd-cyber-band__inner,
    .rd-ai-flow,
    .rd-ai-why {
        grid-template-columns: 1fr;
    }

    .rd-ai-hero .rd-ai-tagline {
        font-size: 18px;
    }
}

/* Wireframe v2 content in the existing design: hero photo, partner note, labels. */
.rd-ai-hero .rd-ai-hero__inner {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
}

.rd-ai-hero h1 em,
.rd-cyber-final h2 em {
    font-style: italic;
}

.rd-ai-hero h1 em {
    color: #8ff0ff;
}

.rd-ai-hero .rd-ai-hero__lead2 {
    margin-top: 16px;
    font-size: 17px;
}

.rd-ai-hero .rd-cyber-hero__lead a {
    color: #ffffff;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.rd-ai-hero__call {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    color: #d9e8f8;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.rd-ai-hero__call:hover {
    color: #ffffff;
}

.rd-ai-hero__photo {
    margin: 0;
    aspect-ratio: 4 / 5;
    max-width: 100%;
    overflow: hidden;
    border: 1px solid rgba(129, 200, 255, .28);
    border-radius: 10px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
}

.rd-ai-hero__photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 40% center;
}

.rd-ai-partner {
    padding: 30px 0 0;
}

.rd-ai-partner .rd-ai-partner-note {
    margin: 0;
}

.rd-ai-partner-note p {
    margin: 0;
}

.rd-ai-partner-note .rd-ai-partner-note__detail {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #f0cf96;
    font-style: italic;
}

.rd-ai-pull {
    margin-top: 28px;
    padding-left: 14px;
    border-left: 3px solid var(--rd-cyber-blue);
}

.rd-ai-card-label {
    display: block;
    margin-bottom: 6px;
    color: var(--rd-cyber-muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.rd-ai-solutions .rd-ai-card--wide {
    grid-column: span 2;
}

.rd-ai-numeral {
    display: block;
    margin-bottom: 4px;
    color: var(--card-colour, var(--rd-cyber-blue));
    font-family: Georgia, "Times New Roman", serif;
    font-size: 20px;
    font-style: italic;
    line-height: 1;
}

@media (max-width: 1100px) {
    .rd-ai-hero .rd-ai-hero__inner {
        grid-template-columns: 1fr;
    }

    .rd-ai-hero__photo {
        max-width: 520px;
    }
}

@media (max-width: 760px) {
    .rd-ai-solutions .rd-ai-card--wide {
        grid-column: auto;
    }
}

/* Card polish: icon and label on one line, links pinned to the bottom, hover lift. */
.rd-ai-page .rd-ai-solutions .rd-cyber-card,
.rd-ai-page .rd-ai-why .rd-cyber-card {
    display: flex;
    flex-direction: column;
    transition: transform .18s ease, box-shadow .18s ease;
}

.rd-ai-page .rd-ai-solutions .rd-cyber-card:hover,
.rd-ai-page .rd-ai-why .rd-cyber-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 22px 50px rgba(21, 42, 72, .14);
}

.rd-ai-card-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.rd-ai-page .rd-ai-card-top i {
    margin-bottom: 0;
}

.rd-ai-card-top .rd-ai-card-label,
.rd-ai-card-top .rd-ai-numeral {
    margin-bottom: 0;
}

.rd-ai-card-link {
    margin-top: auto;
    padding-top: 16px;
    color: var(--card-colour, var(--rd-cyber-blue));
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.rd-ai-card-link:hover {
    text-decoration: underline;
}

/* Related services card fills the slot beside card 7: a tidy list, one link per row. */
.rd-ai-related {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 22px 26px;
    border: 1px solid var(--rd-cyber-line);
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 18px 46px rgba(34, 62, 94, .08);
}

.rd-ai-related ul {
    display: grid;
    margin: 0;
    padding: 0;
    list-style: none;
}

.rd-ai-related li + li {
    border-top: 1px solid #edf2f8;
}

.rd-ai-related a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 5px 0;
    color: var(--rd-cyber-ink);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.rd-ai-related a::after {
    content: "\2192";
    color: var(--rd-cyber-blue);
    transition: transform .18s ease;
}

.rd-ai-related a:hover {
    color: var(--rd-cyber-blue);
}

.rd-ai-related a:hover::after {
    transform: translateX(3px);
}

/* Why Radium: translucent dark cards so the section reads differently from the white solution cards. */
.rd-ai-page .rd-ai-why .rd-cyber-card {
    border-color: rgba(129, 200, 255, .18);
    background: linear-gradient(150deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .03));
    box-shadow: none;
}

.rd-ai-page .rd-ai-why .rd-cyber-card:hover {
    border-color: rgba(129, 200, 255, .38);
    box-shadow: 0 22px 50px rgba(0, 0, 0, .3);
}

.rd-ai-page .rd-ai-why .rd-cyber-card i {
    background: color-mix(in srgb, var(--card-colour, var(--rd-cyber-blue)) 22%, transparent);
    color: var(--card-colour, var(--rd-cyber-blue));
}

.rd-ai-page .rd-ai-why .rd-cyber-card h3 {
    color: #ffffff;
}

.rd-ai-page .rd-ai-why .rd-cyber-card p {
    color: #c8d6e8;
}

.rd-ai-page .rd-ai-why .rd-cyber-card a {
    color: #8ff0ff;
}

@media (prefers-reduced-motion: reduce) {
    .rd-ai-page .rd-ai-solutions .rd-cyber-card,
    .rd-ai-page .rd-ai-why .rd-cyber-card {
        transition: none;
    }
}

.rd-ai-page .rd-cyber-two-col .rd-cyber-copy p + p {
    margin-top: 16px;
}

.rd-ai-page .rd-cyber-two-col .rd-cyber-copy .rd-ai-pull {
    margin-top: 28px;
}
