:root {
    --rad-bg-dark: #050609;
    --rad-bg-muted: #f4f5f8;
    --rad-accent: #ff3b3f;
    --rad-accent-soft: rgba(255, 59, 63, 0.18);
    --rad-cyan: #00c0c8;
    --rad-text-muted: #6b7380;
}

.rad-body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
    /* padding-top: 76px; */
    /* background-color: #f1f5f9; */
}


/* NAVBAR / HEADER */

/* === Header === */
.rad-navbar {
    background: #f6faf9;
    border-bottom: 1px solid rgba(148, 163, 184, 0.35);
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.04);
}
.rad-logo {
    height: 32px;
}


.rad-navbar .navbar-brand {
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: lowercase;
    font-size: 1.05rem;
}

.rad-nav .nav-link {
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #64748b;
    padding-left: 1rem;
    padding-right: 1rem;
}

.rad-nav .nav-link.active,
.rad-nav .nav-link:hover {
    color: #0f172a;
}

/* === Hero === */
.rad-hero-strip {
    padding-top: 2.5rem;
}

.rad-hero-title {
    font-size: 2.6rem;
    line-height: 1.1;
}

.rad-header-cta {
    background: #00b0a0;
    color: #ffffff;
    font-size: 0.8rem;
    border-radius: 999px;
    padding: 0.4rem 1.4rem;
    border: none;
}

.rad-logo-mark {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background:
        radial-gradient(circle at 25% 25%, #ffffff 0, #f3f4f6 18%, transparent 19%),
        conic-gradient(from 210deg, #ff3b3f 0 90deg, #00c0c8 90deg 270deg, #ff3b3f 270deg 360deg);
    position: relative;
    box-shadow: 0 0 0 2px rgba(15,23,42,0.6);
}

.rad-logo-mark::after {
    content: "";
    position: absolute;
    inset: 7px;
    border-radius: inherit;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.7), transparent 60%);
    mix-blend-mode: screen;
}

.rad-logo-word {
    color: #f9fafb;
}

.rad-navbar .nav-link {
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #1f2933; /* dark slate text so it's visible on light header */
    padding-inline: 0.75rem;
}

.rad-navbar .nav-link:hover {
    color: #111827;
}

.rad-navbar .nav-link.active {
    color: #111827;
    position: relative;
}

.rad-navbar .nav-link.active::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0.1rem;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--rad-accent), var(--rad-cyan));
}

.rad-contact-pill {
    font-size: 0.8rem;
    border-radius: 999px;
    border-width: 1.5px;
}

/* SECTIONS & BACKGROUNDS */

.rad-section {
    padding: 4rem 0;
}

.rad-section-hero {
    padding-top: 5.5rem;
}

.rad-section-dark {
    background: linear-gradient(135deg, #073642, #0b2a30);
    color: #f9fafb;
    background: url(/images/back.png);
    position: relative;
}


.rad-section-light {
    background: #ffffff;
}

.rad-section-muted {
    background: var(--rad-bg-muted);
}

.rad-section-legal-ambient {
    position: relative;
    overflow: hidden;
}

.rad-section-legal-ambient::before {
    content: "";
    position: absolute;
    inset: -40%;
    background:
        radial-gradient(circle at 0% 0%, rgba(0,192,200,0.2), transparent 60%),
        radial-gradient(circle at 100% 100%, rgba(255,59,63,0.2), transparent 55%);
    opacity: 0.55;
    mix-blend-mode: screen;
    pointer-events: none;
}

/* HERO */

.rad-hero-home {
    position: relative;
    background: #ffffff;
    padding-top: 4.5rem;
    padding-bottom: 4.5rem;
}


.rad-hero-home::before {
    content: none;
}


.rad-hero-heading {
    font-size: clamp(2.6rem, 3.2vw + 1.4rem, 3.9rem);
    line-height: 1.04;
}


.rad-hero-media {
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 32px 80px rgba(15,23,42,0.28);
}

.rad-hero-photo {
    height: 340px;
    background:
        linear-gradient(135deg, rgba(15,118,110,0.85), rgba(15,23,42,0.95)),
        url('https://images.pexels.com/photos/313782/pexels-photo-313782.jpeg?auto=compress&cs=tinysrgb&w=1200')
        center/cover no-repeat;
}
.rad-hero-lead {
    max-width: 36rem;
}

.rad-kicker {
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #ffffff;
}

.rad-hero-primary {
    background: #00b0a0;
    color: #fff;
    border-radius: 999px;
    font-size: 0.8rem;
    padding: 0.5rem 1.6rem;
    border: none;
}

.rad-hero-secondary {
    background: #e3f4f2;
    color: #0f172a;
    border-radius: 999px;
    font-size: 0.8rem;
    padding: 0.5rem 1.6rem;
    border: none;
}

/* Hero image band */
.rad-hero-band {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

/* Cards & hover reveal */

.rad-stakeholder-card,
.rad-service-card,
.rad-product-card,
.rad-value-card {
    border-radius: 20px;
    padding: 1.3rem 1.4rem;
    border: 1px solid rgba(15,23,42,0.06);
    background: #ffffff;
    box-shadow: 0 16px 32px rgba(15,23,42,0.06);
    position: relative;
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
    overflow: hidden;
}

.rad-product-card .rad-card-main-heading {
    /* Adjust size as needed, e.g., slightly larger than the subheading */
    font-size: 0.8rem; 
    font-weight: 700;
    /* Example: Use a specific brand color for the first line */
    color: #cc3333; /* Example of a distinct color */
}

/* Ensure the subheading (rad-pill-label) is the desired color/size */
.rad-product-card .rad-pill-label {
    font-size: 0.65rem;
    color: #666666; /* Example of a muted color */
    letter-spacing: 0.16em;
}

.rad-service-card.rad-service-card-dark {
    background: rgba(7,9,20,0.95);
    color: #f9fafb;
    border-color: rgba(255,255,255,0.08);
}

.rad-stakeholder-card:hover,
.rad-service-card:hover,
.rad-product-card:hover,
.rad-value-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 46px rgba(15,23,42,0.16);
    border-color: var(--rad-accent-soft);
}

.rad-pill-label {
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.65rem;
    color: var(--rad-accent);
}

/* Hover-reveal behaviour */

.rad-hover-card {
    cursor: pointer;
}

/* INITIAL STATE: Ensures details are immediately hidden and prepared for transition */
.rad-hover-card-body {
    /* Crucial: Set immediately to 0 to prevent flicker on load */
    opacity: 0; 
    /* Set max-height to 0 to collapse the content's space */
    max-height: 0;
    /* Hide the element completely from layout/screen readers when off-hover */
    visibility: hidden;
    overflow: hidden;
    
    /* Set the transition properties */
    transition: 
        opacity 0.35s ease, 
        max-height 0.35s ease,
        /* This rule makes it invisible AFTER the opacity/max-height transition finishes */
        visibility 0s 0.35s; 
}

/* FINAL STATE: SHOW DETAILS on hover */
.rad-hover-card:hover .rad-hover-card-body,
.rad-hover-card.rad-open .rad-hover-card-body {
    /* Bring details into view and full opacity */
    opacity: 1;
    /* Set max-height large enough to hold all content */
    max-height: 400px; 
    visibility: visible;
    
    /* Remove the visibility delay on hover/open state */
    transition-delay: 0s; 
}

/* Links */

.rad-link-underline {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.rad-link-underline::after {
    content: "";
    height: 1px;
    width: 0;
    background: linear-gradient(90deg, var(--rad-accent), var(--rad-cyan));
    transition: width 0.2s ease;
}

.rad-hover-card:hover .rad-link-underline::after {
    width: 100%;
}

/* Timeline */

.rad-timeline {
    position: relative;
    padding-left: 1.9rem;
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
}

.rad-timeline::before {
    content: "";
    position: absolute;
    left: 0.7rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--rad-accent-soft), rgba(148,163,184,0.7));
}

.rad-timeline-step {
    position: relative;
}

.rad-timeline-dot {
    position: absolute;
    left: -1.59rem;
    top: -0.4rem;
    width: 0.9rem;
    height: 0.9rem;
    border-radius: 999px;
    /* border: 2px solid #ffffff; */
    background: var(--rad-accent);
    box-shadow: 0 0 0 6px rgba(255,59,63,0.18);
    transform-origin: center;
    transform: scale(0.82);
    transition: transform 1s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.rad-timeline-step.rad-active .rad-timeline-dot {
    transform: scale(1);
    box-shadow: 0 0 0 8px rgba(0,192,200,0.3);
    background: linear-gradient(135deg, var(--rad-accent), var(--rad-cyan));
}

.rad-timeline-card {
    border-radius: 18px;
    padding: 1rem 1.25rem;
    background: rgba(255,255,255,0.97);
    box-shadow: 0 18px 36px rgba(15,23,42,0.12);
}

/* Mini metric panel */

.rad-metric-panel {
    border-radius: 24px;
    border: 1px solid rgba(148,163,184,0.5);
    padding: 1.25rem 1.4rem;
    background:
        radial-gradient(circle at top left, rgba(0,192,200,0.18), transparent 55%),
        radial-gradient(circle at bottom right, rgba(255,59,63,0.22), transparent 60%),
        #050609;
    color: #e5e7eb;
}

.rad-metric-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    padding: 0.45rem 0;
    border-bottom: 1px dashed rgba(148,163,184,0.5);
}

.rad-metric-row:last-child {
    border-bottom: none;
}

.rad-metric-row .label {
    font-weight: 600;
}

.rad-metric-row .value {
    color: #f9fafb;
}

/* Hero card & mini metrics */

.rad-hero-card {
    border-radius: 24px;
    padding: 1.8rem;
    background: linear-gradient(135deg, rgba(255,255,255,0.12), rgba(6,9,22,0.96));
    border: 1px solid rgba(255,255,255,0.16);
    box-shadow: 0 18px 40px rgba(0,0,0,0.6);
}

.rad-mini-metric {
    border-radius: 16px;
    padding: 0.75rem;
    background: rgba(7,9,20,0.96);
    border: 1px solid rgba(148,163,184,0.35);
}

/* Image panel */

.rad-image-panel {
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 26px 60px rgba(15,23,42,0.45);
}

.rad-image-placeholder {
    height: 260px;
    background-image: linear-gradient(135deg, #101322, #050609);
    position: relative;
}

.rad-image-placeholder::after {
    content: "";
    position: absolute;
    inset: 14%;
    border-radius: 18px;
    background: url('https://images.pexels.com/photos/1181675/pexels-photo-1181675.jpeg?auto=compress&cs=tinysrgb&w=1200') center/cover no-repeat;
    filter: grayscale(8%) contrast(1.05);
}

/* Forms */

.rad-form .form-control,
.rad-form .form-select {
    border-radius: 999px;
}

.rad-form textarea.form-control {
    border-radius: 16px;
}

/* Footer */

.rad-footer {
    background: #020308;
    color: rgba(229,231,235,0.9);
    border-top: 1px solid rgba(148,163,184,0.3);
}

.rad-footer a {
    color: rgba(229,231,235,0.9);
    text-decoration: none;
}

.rad-footer a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* Scroll fade */

.js-fade {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.js-fade.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */

@media (max-width: 767.98px) {
/* === Base === */
.rad-body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
    /* padding-top: 70px; */
    background-color: #f6faf9;
    color: #0f172a;
}

    .rad-section {
        padding: 3rem 0;
    }
}

.rad-hero-photo-main,
.rad-hero-photo-side {
    border-radius: 24px;
    background-size: cover;
    background-position: center;
}

/* Replace these URLs with your actual images if you like */
.rad-hero-photo-main {
    height: 260px;
    background-image: url('{{ asset("images/hero-main.jpg") }}');
    box-shadow: 0 34px 60px rgba(15, 23, 42, 0.25);
}

.rad-hero-photo-side {
    height: 260px;
    background-image: url('{{ asset("images/hero-side.jpg") }}');
    box-shadow: 0 34px 60px rgba(15, 23, 42, 0.4);
}

.rad-hero-metrics {
    font-size: 0.75rem;
    color: #0f172a;
}

.rad-dot-sep {
    margin: 0 0.4rem;
    color: #10b981;
}

/* === Sections & cards === */
.rad-section {
    padding: 3rem 0;
}

.rad-section-pill {
    background: #f1fbfa;
}

.rad-section-soft {
    background: #f4fbfa;
}

.rad-circle-badge {
    width: 120px;
    height: 120px;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 30%, #e0f9f4, #00b0a0);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.rad-who-metrics span {
    display: inline-block;
    margin-right: 1rem;
    font-size: 0.75rem;
}

/* Cards */
.rad-card,
.rad-product-card {
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
    padding: 1.2rem 1.4rem;
}

.rad-card-title {
    font-size: 0.95rem;
    font-weight: 600;
}

.rad-label {
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #f97373;
}

.rad-card-link {
    text-decoration: none;
    color: #00b0a0;
}

.rad-product-card-highlight {
    position: relative;
    background: #0f172a;
    color: #f9fafb;
}

.rad-icon-circle {
    position: absolute;
    top: 0.6rem;
    left: 0.8rem;
    font-size: 0.85rem;
}

/* Process cards */
.rad-process-row {
    margin-top: 1.5rem;
}

.rad-process-card {
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.07);
    padding: 1.2rem 1rem;
}

/* Bottom Why Radian strip */
.rad-why-strip {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

/* === Footer === */
.rad-footer {
    font-size: 0.8rem;
}

.rad-footer-links a {
    color: #e5e7eb;
    text-decoration: none;
}

.rad-footer-links a:hover {
    text-decoration: underline;
}

.rad-footer-logo {
    height: 26px;
}

.rad-section-dark:before {
    position: absolute;
    content: "";
    max-height: 100%;
    max-width: 100%;
    background: #18101057;
    /* z-index: 1; */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.rad-section .container {
    z-index: 1111;
    position: relative;
}