/*
Theme Name:  Reader Reach Marketing
Theme URI:   https://readerreachmarketing.com
Author:      Kuboz Digital
Author URI:  https://kubozdigital.co.uk
Description: Full custom theme for Reader Reach Marketing — ACF-powered, no page builder.
Version:     1.0.0
License:     GNU General Public License v2 or later
Text Domain: reader-reach
*/

/* ─── BRAND VARIABLES ─────────────────────────────────────────── */
:root {
    --rr-navy:       #061F6B;
    --rr-green:      #2AFC98;
    --rr-sky:        #56D8EC;
    --rr-dark:       #0E0011;
    --rr-white:      #ffffff;
    --rr-grey-bg:    #F4F6FB;
    --rr-grey-text:  #6B7280;
    --rr-border:     #E5E7EB;
    --rr-gold:       #C9A84C;

    --font-heading:  'Playfair Display', Georgia, serif;
    --font-body:     'Inter', 'Helvetica Neue', sans-serif;

    --container:     1280px;
    --radius:        8px;
    --transition:    0.3s ease;
}

/* ─── RESET ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--rr-dark);
    background: var(--rr-white);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ─── GLOBAL UTILITIES ───────────────────────────────────────── */

/* Global SVG icon rules — all rr_icon() output inherits color correctly */
[class*="rr-"] span[aria-hidden="true"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    color: inherit;
}
[class*="rr-"] span[aria-hidden="true"] svg {
    width: 20px;
    height: 20px;
    color: inherit;
    stroke: currentColor;
    flex-shrink: 0;
    display: block;
}
/* Icon containers — explicit sizes */
.rr-service-icon span[aria-hidden="true"],
.rr-why-icon span[aria-hidden="true"],
.rr-contact-item-icon span[aria-hidden="true"],
.rr-deliverable-icon span[aria-hidden="true"] {
    width: 28px;
    height: 28px;
    color: inherit;
}
.rr-service-icon span[aria-hidden="true"] svg {
    width: 28px;
    height: 28px;
}
.rr-why-icon span[aria-hidden="true"] svg,
.rr-contact-item-icon span[aria-hidden="true"] svg {
    width: 24px;
    height: 24px;
}
/* Footer social icons */
.rr-footer-social span[aria-hidden="true"] {
    width: 18px;
    height: 18px;
}
.rr-footer-social span[aria-hidden="true"] svg {
    width: 18px;
    height: 18px;
}
/* Testimonial stars */
.rr-testimonial-stars span[aria-hidden="true"] {
    width: 18px;
    height: 18px;
    display: inline-flex;
}
.rr-testimonial-stars span[aria-hidden="true"] svg {
    width: 18px;
    height: 18px;
    fill: var(--rr-green);
    stroke: none;
}
.rr-container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 40px;
}

.rr-section { padding: 100px 0; }

.rr-eyebrow {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--rr-green);
    margin-bottom: 16px;
    display: block;
}

.rr-section-title {
    font-family: var(--font-heading);
    font-size: clamp(32px, 4vw, 52px);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 20px;
}

.rr-section-sub {
    font-size: 18px;
    color: var(--rr-grey-text);
    line-height: 1.7;
    max-width: 600px;
}

.rr-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 36px;
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.02em;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all var(--transition);
    text-decoration: none;
}

.rr-btn--primary {
    background: var(--rr-green);
    color: var(--rr-navy);
}
.rr-btn--primary:hover {
    background: transparent;
    border-color: var(--rr-green);
    color: var(--rr-green);
}

.rr-btn--outline {
    background: transparent;
    border-color: rgba(255,255,255,0.4);
    color: var(--rr-white);
}
.rr-btn--outline:hover {
    border-color: var(--rr-green);
    color: var(--rr-green);
}

.rr-btn--outline-white {
    background: transparent;
    border-color: rgba(255,255,255,0.5);
    color: var(--rr-white);
}
.rr-btn--outline-white:hover {
    border-color: var(--rr-green);
    color: var(--rr-green);
    background: transparent;
}

.rr-btn--dark {
    background: var(--rr-navy);
    color: var(--rr-white);
}
.rr-btn--dark:hover {
    background: var(--rr-green);
    color: var(--rr-navy);
}

/* ─── HEADER ─────────────────────────────────────────────────── */
.rr-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: var(--rr-navy);
    transition: box-shadow var(--transition);
    padding: 0 40px;
    box-shadow: 0 2px 20px rgba(6,31,107,0.15);
}
.rr-header.scrolled {
    box-shadow: 0 4px 30px rgba(6,31,107,0.4);
}

.rr-header-inner {
    max-width: var(--container);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.rr-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}
.rr-logo img { height: 40px; width: auto; }
.rr-logo-text {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    color: var(--rr-white);
    line-height: 1;
}
.rr-logo-text span { color: var(--rr-green); }

.rr-nav { display: flex; align-items: center; gap: 36px; }
.rr-nav a {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255,255,255,0.85);
    letter-spacing: 0.02em;
    transition: color var(--transition);
    position: relative;
}
.rr-nav a::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0;
    width: 0; height: 2px;
    background: var(--rr-green);
    transition: width var(--transition);
}
.rr-nav a:hover { color: var(--rr-green); }
.rr-nav a:hover::after { width: 100%; }

/* ── Active page indicator ── */
.rr-nav .menu-item a[aria-current="page"],
.rr-nav .current-menu-item > a,
.rr-nav .current-menu-ancestor > a,
.rr-nav .current-menu-parent > a {
    color: var(--rr-green);
}
.rr-nav .menu-item a[aria-current="page"]::after,
.rr-nav .current-menu-item > a::after,
.rr-nav .current-menu-ancestor > a::after,
.rr-nav .current-menu-parent > a::after {
    width: 100%;
}

.rr-nav-cta {
    background: var(--rr-green) !important;
    color: var(--rr-navy) !important;
    padding: 10px 24px;
    border-radius: var(--radius);
    font-weight: 700 !important;
}
.rr-nav-cta::after { display: none !important; }
.rr-nav-cta:hover { background: var(--rr-white) !important; }

/* Mobile hamburger */
.rr-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
}
.rr-hamburger span {
    display: block;
    width: 26px;
    height: 2px;
    background: var(--rr-white);
    transition: all var(--transition);
    border-radius: 2px;
}

/* Mobile nav */
.rr-mobile-nav {
    display: none;
    position: fixed;
    top: 80px; left: 0; right: 0;
    background: var(--rr-navy);
    padding: 32px 40px;
    flex-direction: column;
    gap: 24px;
    z-index: 999;
    border-top: 1px solid rgba(255,255,255,0.1);
}
.rr-mobile-nav.open { display: flex; }
.rr-mobile-nav a {
    font-size: 18px;
    font-weight: 600;
    color: var(--rr-white);
}

/* ─── NAV DROPDOWN ───────────────────────────────────────────── */
.rr-nav .menu-item-has-children { position: relative; }
.rr-nav .menu-item-has-children > a { padding-right: 4px; }
.rr-nav .menu-item-has-children > a::after {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-left: 4px;
    vertical-align: middle;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.7)' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    transition: transform var(--transition);
}
.rr-nav .menu-item-has-children:hover > a::after {
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='%232AFC98' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    transform: rotate(180deg);
}

.rr-nav .sub-menu {
    position: absolute;
    top: calc(100% + 14px);
    left: 50%;
    transform: translateX(-50%) translateY(-6px);
    background: var(--rr-white);
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(6,31,107,0.18);
    min-width: 260px;
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    z-index: 1001;
    border: 1px solid var(--rr-border);
    list-style: none;
}
.rr-nav .sub-menu::before {
    content: '';
    position: absolute;
    top: -7px; left: 50%;
    transform: translateX(-50%);
    border: 7px solid transparent;
    border-top: none;
    border-bottom-color: var(--rr-white);
}
.rr-nav .menu-item-has-children:hover > .sub-menu,
.rr-nav .menu-item-has-children:focus-within > .sub-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}
.rr-nav .sub-menu li { list-style: none; }
.rr-nav .sub-menu li:first-child a {
    color: var(--rr-green);
    font-weight: 700;
    border-bottom: 1px solid var(--rr-border);
    margin-bottom: 4px;
    padding-bottom: 12px;
}
.rr-nav .sub-menu li a {
    display: block;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    color: var(--rr-navy);
    white-space: nowrap;
    transition: background 0.15s, color 0.15s;
}
.rr-nav .sub-menu li a::after { display: none !important; }
.rr-nav .sub-menu li a:hover { background: var(--rr-grey-bg); color: var(--rr-green); }

/* Mobile sub-menu */
.rr-mobile-nav .sub-menu {
    display: flex;
    flex-direction: column;
    padding-left: 16px;
    margin-top: 8px;
    gap: 8px;
    border-left: 2px solid rgba(42,252,152,0.3);
    list-style: none;
}
.rr-mobile-nav .sub-menu li { list-style: none; }
.rr-mobile-nav .sub-menu li a {
    font-size: 15px;
    color: rgba(255,255,255,0.65);
}
.rr-mobile-nav .sub-menu li a:hover { color: var(--rr-green); }

/* ─── HERO ───────────────────────────────────────────────────── */
.rr-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--rr-navy);
}

/* Elios-style animated column background */
.rr-hero-bg {
    position: absolute;
    inset: 0;
    display: flex;
    gap: 4px;
    opacity: 0.12;
    pointer-events: none;
}
.rr-hero-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    animation: heroScrollUp 20s linear infinite;
}
.rr-hero-col:nth-child(even) { animation-direction: reverse; }
.rr-hero-col img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    border-radius: 4px;
}
@keyframes heroScrollUp {
    0%   { transform: translateY(0); }
    100% { transform: translateY(-50%); }
}

.rr-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(6,31,107,0.82) 0%,
        rgba(6,31,107,0.75) 50%,
        rgba(14,0,17,0.85) 100%
    );
}

.rr-hero-content {
    position: relative;
    z-index: 2;
    max-width: var(--container);
    margin: 0 auto;
    padding: 100px 40px 60px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    width: 100%;
}

.rr-hero-left {}

.rr-hero-eyebrow {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--rr-green);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.rr-hero-eyebrow::before {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background: var(--rr-green);
    border-radius: 2px;
}

.rr-hero-headline {
    font-family: var(--font-heading);
    font-size: clamp(40px, 5vw, 68px);
    font-weight: 700;
    color: var(--rr-white);
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}
.rr-hero-headline span { color: var(--rr-green); }

.rr-hero-sub {
    font-size: 18px;
    color: rgba(255,255,255,0.75);
    line-height: 1.75;
    margin-bottom: 48px;
    max-width: 520px;
}

.rr-hero-ctas {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: nowrap;
}

@media (max-width: 480px) {
    .rr-hero-ctas {
        flex-wrap: wrap;
    }
}

/* Hero right — stats panel */
.rr-hero-right {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-bottom: 10px;
}

.rr-hero-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.rr-stat-card {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(42,252,152,0.2);
    border-radius: var(--radius);
    padding: 28px 24px;
    backdrop-filter: blur(8px);
    transition: border-color var(--transition);
}
.rr-stat-card:hover { border-color: var(--rr-green); }

.rr-stat-number {
    font-family: var(--font-heading);
    font-size: 44px;
    font-weight: 700;
    color: var(--rr-green);
    line-height: 1;
    margin-bottom: 8px;
}
.rr-stat-label {
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    font-weight: 500;
    line-height: 1.4;
}

.rr-hero-badge {
    background: rgba(42,252,152,0.1);
    border: 1px solid rgba(42,252,152,0.3);
    border-radius: var(--radius);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
}
.rr-hero-badge-icon {
    width: 48px;
    height: 48px;
    background: var(--rr-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--rr-navy);
}
.rr-hero-badge-icon svg { width: 22px; height: 22px; }
.rr-hero-badge-text {
    font-size: 14px;
    color: rgba(255,255,255,0.8);
    line-height: 1.5;
}
.rr-hero-badge-text strong {
    display: block;
    color: var(--rr-white);
    font-size: 16px;
    margin-bottom: 2px;
}

/* ─── TRUST BAR ──────────────────────────────────────────────── */
.rr-trust-bar {
    background: var(--rr-grey-bg);
    border-top: 1px solid var(--rr-border);
    border-bottom: 1px solid var(--rr-border);
    padding: 24px 0;
    overflow: hidden;
}

.rr-trust-bar-inner {
    display: flex;
    align-items: center;
    gap: 0;
}

.rr-trust-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--rr-grey-text);
    white-space: nowrap;
    padding: 0 40px;
    flex-shrink: 0;
    border-right: 1px solid var(--rr-border);
}

.rr-trust-scroll {
    flex: 1;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.rr-trust-track {
    display: flex;
    align-items: center;
    gap: 60px;
    animation: trustScroll 20s linear infinite;
    width: max-content;
}
.rr-trust-track:hover { animation-play-state: paused; }

@keyframes trustScroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.rr-trust-item {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    color: var(--rr-navy);
    white-space: nowrap;
    opacity: 0.75;
    transition: opacity var(--transition);
    display: flex;
    align-items: center;
    gap: 10px;
}
.rr-trust-item:hover { opacity: 1; }
.rr-trust-item svg { width: 22px; height: 22px; flex-shrink: 0; }
.rr-trust-item img { height: 28px; width: auto; filter: grayscale(1); opacity: 0.7; }

/* ─── SERVICES SECTION ───────────────────────────────────────── */
.rr-services {
    background: var(--rr-white);
    padding: 120px 0;
}

.rr-services-header {
    text-align: center;
    margin-bottom: 70px;
}
.rr-services-header .rr-section-sub { margin: 0 auto; }

.rr-services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.rr-service-card {
    background: var(--rr-white);
    border: 1px solid var(--rr-border);
    border-radius: 12px;
    padding: 40px 36px;
    position: relative;
    overflow: hidden;
    transition: all var(--transition);
    cursor: pointer;
}
.rr-service-card::before {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 3px;
    background: var(--rr-green);
    transform: scaleX(0);
    transition: transform var(--transition);
}
.rr-service-card:hover {
    box-shadow: 0 20px 60px rgba(6,31,107,0.12);
    transform: translateY(-4px);
    border-color: transparent;
}
.rr-service-card:hover::before { transform: scaleX(1); }

.rr-service-icon {
    width: 60px;
    height: 60px;
    background: var(--rr-grey-bg);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    transition: background var(--transition), color var(--transition);
    color: var(--rr-navy);
    flex-shrink: 0;
}
.rr-service-icon span[aria-hidden="true"] {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    color: inherit;
}
.rr-service-icon svg {
    width: 28px;
    height: 28px;
    stroke: currentColor;
    fill: none;
    display: block;
}
.rr-service-card:hover .rr-service-icon {
    background: rgba(42,252,152,0.15);
    color: var(--rr-green);
}

.rr-service-title {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    color: var(--rr-navy);
    margin-bottom: 12px;
}

.rr-service-body {
    font-size: 15px;
    color: var(--rr-grey-text);
    line-height: 1.7;
    margin-bottom: 24px;
}

.rr-service-bullets {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 28px;
}
.rr-service-bullets li {
    font-size: 13px;
    color: var(--rr-dark);
    display: flex;
    align-items: center;
    gap: 10px;
}
.rr-service-bullets li::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--rr-green);
    flex-shrink: 0;
}

.rr-service-link {
    font-size: 14px;
    font-weight: 700;
    color: var(--rr-navy);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color var(--transition);
}
.rr-service-link:hover { color: var(--rr-green); }
.rr-service-link::after { content: '→'; transition: transform var(--transition); }
.rr-service-link:hover::after { transform: translateX(4px); }

/* ─── WHY US ──────────────────────────────────────────────────── */
.rr-why {
    background: var(--rr-navy);
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}
.rr-why::before {
    content: '';
    position: absolute;
    top: -200px; right: -200px;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(42,252,152,0.08) 0%, transparent 70%);
    pointer-events: none;
}

.rr-why-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}
.rr-why-inner.no-image {
    grid-template-columns: 1fr;
    max-width: 800px;
}
.rr-why-inner.rr-why-centered.no-image {
    max-width: 100%;
    grid-template-columns: 1fr;
}

.rr-why-left {}
.rr-why-left .rr-eyebrow { color: var(--rr-green); }
.rr-why-left .rr-section-title { color: var(--rr-white); }
.rr-why-left .rr-section-sub { color: rgba(255,255,255,0.65); }

.rr-why-image {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
}
.rr-why-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 16px;
}
.rr-why-image-badge {
    position: absolute;
    bottom: 24px;
    left: 24px;
    background: var(--rr-green);
    color: var(--rr-navy);
    padding: 16px 24px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 14px;
}

.rr-why-grid {
    margin-top: 48px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.rr-why-item {
    display: flex;
    flex-direction: column;
    gap: 14px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(42,252,152,0.15);
    border-radius: 14px;
    padding: 28px 24px;
    transition: border-color 0.3s ease, background 0.3s ease;
    text-align: left;
}
.rr-why-item:hover {
    border-color: rgba(42,252,152,0.4);
    background: rgba(255,255,255,0.08);
}

.rr-why-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: rgba(42,252,152,0.12);
    border: 1px solid rgba(42,252,152,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--rr-green);
    align-self: flex-start;
}
.rr-why-icon span { display: flex; align-items: center; justify-content: center; }
.rr-why-icon svg { width: 24px; height: 24px; color: inherit; stroke: currentColor; }

.rr-why-title {
    font-family: var(--font-heading);
    font-size: 17px;
    font-weight: 700;
    color: var(--rr-white);
    margin-bottom: 4px;
    text-align: left;
}
.rr-why-body {
    font-size: 14px;
    color: rgba(255,255,255,0.6);
    line-height: 1.7;
    text-align: left;
}

@media (max-width: 768px) {
    .rr-why-grid { grid-template-columns: 1fr; }
    .rr-why-item { padding: 22px 18px; }
}

/* ─── PROCESS SECTION ────────────────────────────────────────── */
.rr-process {
    background: var(--rr-grey-bg);
    padding: 120px 0;
}

.rr-process-header {
    text-align: center;
    margin-bottom: 70px;
}
.rr-process-header .rr-section-sub { margin: 0 auto; }

.rr-process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    position: relative;
}
.rr-process-steps::before {
    content: '';
    position: absolute;
    top: 36px;
    left: 12.5%;
    right: 12.5%;
    height: 2px;
    background: var(--rr-border);
    z-index: 0;
}

.rr-process-step {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 0 20px;
}

.rr-step-number {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--rr-navy);
    color: var(--rr-green);
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    border: 3px solid var(--rr-border);
    transition: border-color var(--transition);
}
.rr-process-step:hover .rr-step-number { border-color: var(--rr-green); }

.rr-step-title {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    color: var(--rr-navy);
    margin-bottom: 10px;
}
.rr-step-body {
    font-size: 14px;
    color: var(--rr-grey-text);
    line-height: 1.65;
}

/* ─── TESTIMONIALS ───────────────────────────────────────────── */
.rr-testimonials {
    background: var(--rr-white);
    padding: 120px 0;
}

.rr-testimonials-header {
    text-align: center;
    margin-bottom: 70px;
}

.rr-testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.rr-testimonial-card {
    background: var(--rr-grey-bg);
    border: 1px solid var(--rr-border);
    border-radius: 12px;
    padding: 36px 32px;
    transition: all var(--transition);
    position: relative;
}
.rr-testimonial-card:hover {
    box-shadow: 0 12px 40px rgba(6,31,107,0.1);
    border-color: var(--rr-green);
}

.rr-testimonial-stars {
    color: var(--rr-gold);
    font-size: 18px;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.rr-testimonial-quote {
    font-family: var(--font-heading);
    font-size: 17px;
    line-height: 1.7;
    color: var(--rr-dark);
    margin-bottom: 28px;
    font-style: italic;
}
.rr-testimonial-quote::before { content: '"'; color: var(--rr-green); font-size: 40px; line-height: 0; vertical-align: -12px; margin-right: 4px; }

.rr-testimonial-author {
    display: flex;
    align-items: center;
    gap: 14px;
    border-top: 1px solid var(--rr-border);
    padding-top: 20px;
}
.rr-testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--rr-navy);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--rr-white);
    font-weight: 700;
    font-size: 18px;
    flex-shrink: 0;
    overflow: hidden;
}
.rr-testimonial-name {
    font-weight: 700;
    font-size: 15px;
    color: var(--rr-navy);
}
.rr-testimonial-role {
    font-size: 13px;
    color: var(--rr-grey-text);
}

/* ─── CTA BANNER ─────────────────────────────────────────────── */
.rr-cta-banner {
    background: var(--rr-navy);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}
.rr-cta-banner::after {
    content: '';
    position: absolute;
    bottom: -100px; right: -100px;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(42,252,152,0.1) 0%, transparent 70%);
}

.rr-cta-banner-inner {
    position: relative;
    z-index: 1;
    max-width: 720px;
}

.rr-cta-banner-eyebrow { color: var(--rr-green); }
.rr-cta-banner-title {
    font-family: var(--font-heading);
    font-size: clamp(28px, 3.5vw, 44px);
    font-weight: 700;
    color: var(--rr-white);
    margin-bottom: 16px;
}
.rr-cta-banner-sub {
    font-size: 17px;
    color: rgba(255,255,255,0.65);
    max-width: 560px;
    margin-bottom: 40px;
}

.rr-cta-banner-actions {
    display: flex;
    flex-direction: row;
    gap: 16px;
    align-items: center;
    flex-wrap: nowrap;
}

@media (max-width: 480px) {
    .rr-cta-banner-actions { flex-wrap: wrap; }
}

/* ─── CONTACT SECTION ─────────────────────────────────────────── */
.rr-contact {
    background: var(--rr-grey-bg);
    padding: 120px 0;
}

.rr-contact-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: flex-start;
}

.rr-contact-left .rr-section-title { color: var(--rr-navy); }

.rr-contact-info {
    margin-top: 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px 32px;
}
.rr-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}
/* Office address spans full width on its own row */
.rr-contact-item:last-child {
    grid-column: 1 / -1;
}
.rr-contact-item-icon {
    width: 44px;
    height: 44px;
    background: var(--rr-navy);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0;
    color: var(--rr-white);
}
/* Render contact icons as white SVG-style characters */
.rr-contact-item-icon::before {
    font-size: 20px;
    color: var(--rr-white);
    filter: brightness(0) invert(1);
}
.rr-contact-item-icon svg,
.rr-contact-item-icon img {
    width: 22px;
    height: 22px;
    filter: brightness(0) invert(1);
}
.rr-contact-item-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--rr-grey-text);
    margin-bottom: 4px;
}
.rr-contact-item-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--rr-navy);
}

.rr-contact-form-wrap {
    background: var(--rr-white);
    border-radius: 16px;
    padding: 48px 44px;
    box-shadow: 0 8px 40px rgba(6,31,107,0.08);
}

.rr-form-title {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 700;
    color: var(--rr-navy);
    margin-bottom: 8px;
}
.rr-form-sub {
    font-size: 14px;
    color: var(--rr-grey-text);
    margin-bottom: 32px;
}

.rr-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}
.rr-form-row.full { grid-template-columns: 1fr; }

.rr-form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.rr-form-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--rr-navy);
    letter-spacing: 0.02em;
}
.rr-form-group input,
.rr-form-group select,
.rr-form-group textarea {
    padding: 14px 16px;
    border: 1.5px solid var(--rr-border);
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--rr-dark);
    transition: border-color var(--transition);
    background: var(--rr-white);
    outline: none;
}
.rr-form-group input:focus,
.rr-form-group select:focus,
.rr-form-group textarea:focus { border-color: var(--rr-navy); }
.rr-form-group textarea { resize: vertical; min-height: 120px; }

/* ─── FOOTER ─────────────────────────────────────────────────── */
.rr-footer {
    background: linear-gradient(180deg, var(--rr-navy) 0%, var(--rr-dark) 100%);
    padding: 80px 0 0;
}

.rr-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.rr-footer-brand {}
.rr-footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}
.rr-footer-logo img { height: 36px; }
.rr-footer-logo-text {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    color: var(--rr-white);
}
.rr-footer-logo-text span { color: var(--rr-green); }
.rr-footer-tagline {
    font-size: 14px;
    color: rgba(255,255,255,0.5);
    line-height: 1.7;
    max-width: 280px;
    margin-bottom: 24px;
}
.rr-footer-socials {
    display: flex;
    gap: 12px;
}
.rr-footer-social {
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.5);
    transition: all var(--transition);
}
.rr-footer-social svg { width: 16px; height: 16px; }
.rr-footer-social:hover {
    border-color: var(--rr-green);
    color: var(--rr-green);
    background: rgba(42,252,152,0.05);
}

.rr-footer-col-title {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--rr-green);
    margin-bottom: 24px;
}
.rr-footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.rr-footer-col ul li a {
    font-size: 14px;
    color: rgba(255,255,255,0.55);
    transition: color var(--transition);
}
.rr-footer-col ul li a:hover { color: var(--rr-white); }
.rr-footer-col ul li.current-menu-item a,
.rr-footer-col ul li a[aria-current="page"] {
    color: var(--rr-green);
    font-weight: 700;
}

.rr-footer-bottom {
    padding: 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}
.rr-footer-copy {
    font-size: 13px;
    color: rgba(255,255,255,0.35);
}
.rr-footer-legal {
    display: flex;
    gap: 24px;
}
.rr-footer-legal a {
    font-size: 13px;
    color: rgba(255,255,255,0.35);
    transition: color var(--transition);
}
.rr-footer-legal a:hover { color: var(--rr-white); }

/* ═══════════════════════════════════════════════════════════
   LANDING PAGE HERO — Single full bg image + blue overlay
   (Elios homepage style — Image 1)
   ═══════════════════════════════════════════════════════════ */
.rr-hero-fullbg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    will-change: transform;
    z-index: 0;
}
/* Subtle Ken Burns zoom on the bg image */
.rr-hero-fullbg {
    animation: kenBurns 18s ease-in-out infinite alternate;
}
@keyframes kenBurns {
    0%   { transform: scale(1.0); }
    100% { transform: scale(1.08); }
}
/* Fallback gradient when no image uploaded */
.rr-hero-fullbg--fallback {
    background: linear-gradient(135deg, #061F6B 0%, #0d2d8a 50%, #0E0011 100%);
    animation: none;
}

/* ═══════════════════════════════════════════════════════════
   INNER PAGE HERO — Slanted tilted image grid scrolling
   (Elios services/solutions style — Image 2)
   ═══════════════════════════════════════════════════════════ */
.rr-page-hero {
    background: var(--rr-navy);
    padding: 0;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    height: 100vh;
    display: flex;
    align-items: center;
}

/* Curved bottom wave — stays inside the 100vh */
.rr-page-hero::after {
    content: '';
    position: absolute;
    bottom: -1px; left: 0; right: 0;
    height: 90px;
    background: var(--rr-white);
    clip-path: ellipse(55% 100% at 50% 100%);
    z-index: 3;
}

/* The slanted grid container — rotated like Elios services hero */
.rr-phero-grid {
    position: absolute;
    inset: -40% -20%;          /* oversized so rotation doesn't show edges */
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    transform: rotate(-8deg);   /* the signature Elios tilt */
    z-index: 0;
    pointer-events: none;
}

/* Each column scrolls at different speeds for depth effect */
.rr-phero-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
    will-change: transform;
}
.rr-phero-col:nth-child(1) { animation: pheroScroll 18s linear infinite; }
.rr-phero-col:nth-child(2) { animation: pheroScroll 22s linear infinite; animation-delay: -6s; }
.rr-phero-col:nth-child(3) { animation: pheroScroll 20s linear infinite; animation-delay: -12s; }
.rr-phero-col:nth-child(4) { animation: pheroScroll 24s linear infinite; animation-delay: -4s; }
.rr-phero-col:nth-child(5) { animation: pheroScroll 19s linear infinite; animation-delay: -9s; }

@keyframes pheroScroll {
    0%   { transform: translateY(0); }
    100% { transform: translateY(-50%); }
}

.rr-phero-item {
    width: 100%;
    aspect-ratio: 4/3;
    border-radius: 10px;
    object-fit: cover;
    opacity: 0.22;
    flex-shrink: 0;
    display: block;
}

/* Dark gradient overlay so text is readable */
.rr-page-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(6,31,107,0.92) 0%,
        rgba(6,31,107,0.78) 40%,
        rgba(14,0,17,0.88) 100%
    );
    z-index: 1;
}

/* Hero content sits above overlay */
.rr-page-hero .rr-container { position: relative; z-index: 2; width: 100%; }
.rr-page-hero-content { text-align: center; }

.rr-page-hero-title {
    font-family: var(--font-heading);
    font-size: clamp(36px, 5vw, 64px);
    font-weight: 700;
    color: var(--rr-white);
    margin-bottom: 20px;
    line-height: 1.1;
}
.rr-page-hero-sub {
    font-size: 18px;
    color: rgba(255,255,255,0.72);
    max-width: 620px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Optional stats row inside inner page heroes (services archive etc.) */
.rr-phero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-top: 48px;
    flex-wrap: wrap;
}
.rr-phero-stat {
    padding: 0 48px;
    text-align: center;
    position: relative;
}
.rr-phero-stat:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0; top: 10%; bottom: 10%;
    width: 1px;
    background: rgba(255,255,255,0.2);
}
.rr-phero-stat-number {
    font-family: var(--font-heading);
    font-size: clamp(36px, 4vw, 52px);
    font-weight: 700;
    color: var(--rr-green);
    line-height: 1;
    margin-bottom: 8px;
}
.rr-phero-stat-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.55);
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE — both hero types
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .rr-phero-grid { grid-template-columns: repeat(4, 1fr); }
    .rr-phero-col:nth-child(5) { display: none; }
    .rr-phero-stat { padding: 0 28px; }
}

@media (max-width: 768px) {
    .rr-page-hero { min-height: 100vh; height: 100vh; }
    .rr-phero-grid {
        grid-template-columns: repeat(3, 1fr);
        transform: rotate(-6deg);
    }
    .rr-phero-col:nth-child(4),
    .rr-phero-col:nth-child(5) { display: none; }
    .rr-phero-stats { gap: 20px; }
    .rr-phero-stat { padding: 0 16px; }
    .rr-phero-stat:not(:last-child)::after { display: none; }
}

@media (max-width: 480px) {
    .rr-page-hero { min-height: 100vh; height: 100vh; }
    .rr-phero-grid { grid-template-columns: repeat(2, 1fr); transform: rotate(-5deg); }
    .rr-phero-col:nth-child(3),
    .rr-phero-col:nth-child(4),
    .rr-phero-col:nth-child(5) { display: none; }
    .rr-phero-stat-number { font-size: 32px; }
}

/* On contact page, arc matches the grey contact section below */
.page-template-template-contact .rr-page-hero::after,
.page-contact .rr-page-hero::after {
    background: var(--rr-grey-bg);
}

/* Gap after page hero arc */
.rr-page-hero + * {
    margin-top: 50px;
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
    .rr-phero-col,
    .rr-hero-fullbg { animation: none !important; }
}

/* ═══════════════════════════════════════════════════════════
   CONTINUOUS MOTION — Site-wide subtle animations
   GPU-only: transform + opacity. No layout reflow.
   ═══════════════════════════════════════════════════════════ */

/* Floating orbs on dark sections */
.rr-why { overflow: hidden; }
.rr-why::after {
    content: '';
    position: absolute;
    bottom: -150px; left: -150px;
    width: 400px; height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(86,216,236,0.06) 0%, transparent 70%);
    pointer-events: none;
    animation: floatOrb 10s ease-in-out infinite;
    animation-delay: -4s;
    will-change: transform;
}
@keyframes floatOrb {
    0%, 100% { transform: translateY(0) scale(1); }
    50%       { transform: translateY(-24px) scale(1.04); }
}

/* Stat card subtle glow pulse */
.rr-stat-card {
    animation: statPulse 4s ease-in-out infinite;
    will-change: box-shadow;
}
.rr-stat-card:nth-child(2) { animation-delay: -1s; }
.rr-stat-card:nth-child(3) { animation-delay: -2s; }
.rr-stat-card:nth-child(4) { animation-delay: -3s; }
@keyframes statPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(42,252,152,0); }
    50%       { box-shadow: 0 0 0 6px rgba(42,252,152,0.06); }
}

/* Eyebrow animated underline */
.rr-eyebrow {
    position: relative;
    display: inline-block;
}
.rr-eyebrow::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0;
    width: 0; height: 2px;
    background: var(--rr-green);
    animation: eyebrowLine 3s ease-in-out infinite;
    will-change: width;
}
@keyframes eyebrowLine {
    0%, 100% { width: 0; }
    50%       { width: 100%; }
}

/* Scroll hint bounce arrow */
.rr-hero-scroll-hint {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    color: rgba(255,255,255,0.4);
    font-size: 24px;
    animation: bounceDown 2s ease-in-out infinite;
    will-change: transform;
    cursor: pointer;
    line-height: 1;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
@keyframes bounceDown {
    0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.5; }
    50%       { transform: translateX(-50%) translateY(8px); opacity: 1; }
}

/* CTA button shimmer */
.rr-btn--primary {
    position: relative;
    overflow: hidden;
}
.rr-btn--primary::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 60%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: btnShimmer 3s ease-in-out infinite;
    will-change: left;
}
@keyframes btnShimmer {
    0%        { left: -100%; }
    60%, 100% { left: 160%; }
}

/* Trust bar scroll */
.rr-trust-bar:hover .rr-trust-track { animation-play-state: paused; }

/* Process step ring pulse */
.rr-step-number {
    animation: ringPulse 3s ease-in-out infinite;
    will-change: box-shadow;
}
.rr-process-step:nth-child(2) .rr-step-number { animation-delay: -0.75s; }
.rr-process-step:nth-child(3) .rr-step-number { animation-delay: -1.5s; }
.rr-process-step:nth-child(4) .rr-step-number { animation-delay: -2.25s; }
@keyframes ringPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(42,252,152,0); }
    50%       { box-shadow: 0 0 0 8px rgba(42,252,152,0.1); }
}

/* FAQ accordion */
.rr-faq-item.open .rr-faq-icon {
    background: var(--rr-green);
    transform: rotate(45deg);
    transition: all 0.3s ease;
}

/* Footer social lift */
.rr-footer-social:hover {
    transform: translateY(-3px);
    transition: transform 0.2s ease;
}

/* Global reduce-motion */
@media (prefers-reduced-motion: reduce) {
    .rr-phero-col, .rr-hero-col, .rr-hero-fullbg,
    .rr-trust-track, .rr-stat-card, .rr-step-number,
    .rr-hero-scroll-hint, .rr-eyebrow::after,
    .rr-btn--primary::after, .rr-why::after {
        animation: none !important;
    }
}

/* ─── SERVICES DECORATIVE SHAPES ────────────────────────────── */
.rr-services {
    position: relative;
    overflow: hidden;
}
.rr-services-shape {
    position: absolute;
    pointer-events: none;
    z-index: 0;
}
.rr-services-shape--tl {
    top: -40px;
    left: -40px;
    width: 220px;
    height: 220px;
    opacity: 0.055;
}
.rr-services-shape--br {
    bottom: -30px;
    left: 50%;
    width: 180px;
    height: 180px;
    opacity: 0.04;
    transform: translateX(-50%);
}
.rr-services-shape--rm {
    right: -50px;
    top: 50%;
    width: 260px;
    height: 260px;
    opacity: 0.045;
    transform: translateY(-50%);
}
.rr-services .rr-container { position: relative; z-index: 1; }

/* ─── PARTNERS SECTION ───────────────────────────────────────── */
.rr-partners {
    background: var(--rr-grey-bg);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}
.rr-partners-header {
    text-align: center;
    margin-bottom: 60px;
}
.rr-partners-header .rr-section-sub {
    margin: 0 auto;
}
.rr-partners-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.rr-partner-item {
    background: var(--rr-white);
    border: 1px solid var(--rr-border);
    border-radius: 14px;
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all var(--transition);
    cursor: default;
    min-height: 110px;
}
.rr-partner-item:hover {
    box-shadow: 0 8px 30px rgba(6,31,107,0.1);
    border-color: transparent;
    transform: translateY(-3px);
}
.rr-partner-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}
.rr-partner-logo svg,
.rr-partner-logo img {
    height: 36px;
    width: auto;
    max-width: 120px;
    filter: grayscale(1) contrast(0.6) brightness(1.1);
    opacity: 0.55;
    transition: filter var(--transition), opacity var(--transition);
}
.rr-partner-item:hover .rr-partner-logo svg,
.rr-partner-item:hover .rr-partner-logo img {
    filter: none;
    opacity: 1;
}
/* SVG color passthrough on hover via class */
.rr-partner-logo svg.colorize { fill: currentColor; }

@media (max-width: 1024px) {
    .rr-partners-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .rr-partners-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ─── WHY US — CENTERED ─────────────────────────────────────── */
.rr-why-centered {
    text-align: center;
}
.rr-why-centered .rr-why-grid {
    width: 100%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}
.rr-why-centered .rr-section-sub {
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}
.rr-why-centered .rr-why-cta {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}
.rr-why-centered.no-image .rr-why-left {
    width: 100%;
    max-width: 100%;
}

/* ─── CTA BANNER — CENTERED ─────────────────────────────────── */
.rr-cta-banner-inner.centered {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}
.rr-cta-banner-inner.centered .rr-cta-banner-actions {
    justify-content: center;
}


.rr-cases {
    background: var(--rr-grey-bg);
    padding: 120px 0;
}
.rr-cases-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin-top: 60px;
}
.rr-case-card {
    background: var(--rr-white);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--rr-border);
    transition: all var(--transition);
}
a.rr-case-card {
    text-decoration: none;
    color: inherit;
    display: block;
}
a.rr-case-card:hover {
    box-shadow: 0 20px 60px rgba(6,31,107,0.12);
    transform: translateY(-4px);
}

.rr-case-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}
.rr-case-body { padding: 32px; }
.rr-case-tag {
    display: inline-block;
    background: rgba(42,252,152,0.1);
    color: var(--rr-navy);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 14px;
}
.rr-case-title {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    color: var(--rr-navy);
    margin-bottom: 10px;
}
.rr-case-excerpt {
    font-size: 14px;
    color: var(--rr-grey-text);
    line-height: 1.7;
    margin-bottom: 24px;
}
.rr-case-result {
    display: flex;
    align-items: center;
    gap: 24px;
    border-top: 1px solid var(--rr-border);
    padding-top: 20px;
}
.rr-case-stat-val {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 700;
    color: var(--rr-green);
}
.rr-case-stat-label {
    font-size: 12px;
    color: var(--rr-grey-text);
}

/* ─── FAQ SECTION ────────────────────────────────────────────── */
.rr-faq { background: var(--rr-white); padding: 120px 0; }
.rr-faq-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: flex-start;
}
.rr-faq-list { display: flex; flex-direction: column; gap: 16px; }
.rr-faq-item {
    border: 1px solid var(--rr-border);
    border-radius: var(--radius);
    overflow: hidden;
}
.rr-faq-question {
    width: 100%;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 700;
    color: var(--rr-navy);
    text-align: left;
    gap: 16px;
}
.rr-faq-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--rr-grey-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
    transition: all var(--transition);
    color: var(--rr-navy);
}
.rr-faq-item.open .rr-faq-icon {
    background: var(--rr-green);
    transform: rotate(45deg);
}
.rr-faq-answer {
    display: none;
    padding: 0 24px 20px;
    font-size: 15px;
    color: var(--rr-grey-text);
    line-height: 1.7;
}
.rr-faq-item.open .rr-faq-answer { display: block; }

/* ─── SCROLL ANIMATIONS ──────────────────────────────────────── */
.rr-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.rr-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
.rr-reveal-delay-1 { transition-delay: 0.1s; }
.rr-reveal-delay-2 { transition-delay: 0.2s; }
.rr-reveal-delay-3 { transition-delay: 0.3s; }
.rr-reveal-delay-4 { transition-delay: 0.4s; }

/* ─── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .rr-container { padding: 0 24px; }
    .rr-hero-content { grid-template-columns: 1fr; gap: 60px; padding-top: 120px; }
    .rr-hero-right { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
    .rr-hero-stats { grid-template-columns: repeat(4, 1fr); }
    .rr-services-grid { grid-template-columns: repeat(2, 1fr); }
    .rr-why-inner { grid-template-columns: 1fr; }
    .rr-process-steps { grid-template-columns: repeat(2, 1fr); gap: 40px; }
    .rr-process-steps::before { display: none; }
    .rr-testimonials-grid { grid-template-columns: repeat(2, 1fr); }
    .rr-cta-banner-inner { grid-template-columns: 1fr; gap: 40px; }
    .rr-contact-inner { grid-template-columns: 1fr; }
    .rr-footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
    .rr-faq-inner { grid-template-columns: 1fr; }
    .rr-cases-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .rr-section { padding: 80px 0; }
    .rr-header { padding: 0 24px; }
    .rr-nav { display: none; }
    .rr-hamburger { display: flex; }
    .rr-hero-content { padding: 0 24px; padding-top: 100px; }
    .rr-hero-stats { grid-template-columns: 1fr 1fr; }
    .rr-hero-right { grid-template-columns: 1fr; }
    .rr-services-grid { grid-template-columns: 1fr; }
    .rr-process-steps { grid-template-columns: 1fr; }
    .rr-testimonials-grid { grid-template-columns: 1fr; }
    .rr-footer-grid { grid-template-columns: 1fr; gap: 36px; }
    .rr-footer-bottom { flex-direction: column; text-align: center; }
    .rr-form-row { grid-template-columns: 1fr; }
    .rr-contact-form-wrap { padding: 32px 24px; }
    .rr-mobile-nav { padding: 32px 24px; }
}

/* ═══════════════════════════════════════════════════════════
   COMPREHENSIVE MOBILE RESPONSIVE — All pages, all sections
   Breakpoints: 1024px (tablet), 768px (mobile), 480px (small)
   Desktop styles untouched — mobile only below.
   ═══════════════════════════════════════════════════════════ */

/* ─── GLOBAL ─────────────────────────────────────────────── */
@media (max-width: 768px) {
    .rr-container { padding: 0 20px; }
    .rr-section { padding: 60px 0; }
    .rr-section-title { font-size: clamp(26px, 7vw, 36px); }
    .rr-section-sub { font-size: 15px; max-width: 100%; }
    .rr-btn { padding: 14px 24px; font-size: 14px; width: 100%; justify-content: center; }
    .rr-eyebrow { font-size: 11px; letter-spacing: 2px; }
}

/* ─── HEADER ─────────────────────────────────────────────── */
@media (max-width: 768px) {
    .rr-header { padding: 0 20px; }
    .rr-header-inner { height: 64px; }
    .rr-logo-text { font-size: 18px; }
    .rr-nav { display: none; }
    .rr-hamburger { display: flex; }
    .rr-mobile-nav { top: 64px; padding: 24px 20px; gap: 20px; }
    .rr-mobile-nav a { font-size: 16px; }
    .rr-mobile-nav .rr-btn { margin-top: 8px; }
}

/* ─── HOME HERO ──────────────────────────────────────────── */
@media (max-width: 768px) {
    .rr-hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 100px 20px 60px;
    }
    .rr-hero-headline { font-size: clamp(32px, 8vw, 44px); margin-bottom: 16px; }
    .rr-hero-sub { font-size: 16px; margin-bottom: 32px; }
    .rr-hero-ctas { flex-direction: column; gap: 12px; }
    .rr-hero-ctas .rr-btn { width: 100%; justify-content: center; }
    .rr-hero-right { grid-template-columns: 1fr; gap: 12px; }
    .rr-hero-stats { grid-template-columns: 1fr 1fr; gap: 12px; }
    .rr-stat-card { padding: 20px 16px; }
    .rr-stat-number { font-size: 32px; }
    .rr-stat-label { font-size: 12px; }
    .rr-hero-badge { padding: 14px 16px; gap: 12px; }
    .rr-hero-badge-text { font-size: 13px; }
    .rr-hero-badge-text strong { font-size: 14px; }
    .rr-hero-scroll-hint { display: none; }
}

/* ─── TRUST BAR ──────────────────────────────────────────── */
@media (max-width: 768px) {
    .rr-trust-label { display: none; }
    .rr-trust-bar { padding: 16px 0; }
    .rr-trust-item { font-size: 13px; }
}

/* ─── SERVICES SECTION ───────────────────────────────────── */
@media (max-width: 768px) {
    .rr-services { padding: 60px 0; }
    .rr-services-grid { grid-template-columns: 1fr; gap: 20px; }
    .rr-service-card { padding: 28px 24px; }
    .rr-services-shape { display: none; }
    .rr-services-header { margin-bottom: 40px; }
}
@media (max-width: 480px) {
    .rr-service-card { padding: 24px 20px; }
    .rr-service-title { font-size: 18px; }
}

/* ─── PARTNERS SECTION ───────────────────────────────────── */
@media (max-width: 768px) {
    .rr-partners { padding: 60px 0; }
    .rr-partners-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .rr-partner-item { padding: 20px 16px; min-height: 90px; }
    .rr-partners-header { margin-bottom: 40px; }
}
@media (max-width: 480px) {
    .rr-partners-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}

/* ─── WHY US ─────────────────────────────────────────────── */
@media (max-width: 768px) {
    .rr-why { padding: 60px 0; }
    .rr-why-inner { grid-template-columns: 1fr; gap: 40px; }
    .rr-why-grid { grid-template-columns: 1fr; gap: 16px; margin-top: 32px; }
    .rr-why-item { padding: 20px 18px; }
    .rr-why-title { font-size: 15px; }
    .rr-why-body { font-size: 13px; }
    .rr-why-image img { height: 280px; }
    .rr-why-centered .rr-why-cta { flex-direction: column; align-items: stretch; }
    .rr-why-centered .rr-why-cta .rr-btn { width: 100%; }
}

/* ─── PROCESS SECTION ────────────────────────────────────── */
@media (max-width: 768px) {
    .rr-process { padding: 60px 0; }
    .rr-process-steps { grid-template-columns: 1fr; gap: 32px; }
    .rr-process-steps::before { display: none; }
    .rr-process-header { margin-bottom: 40px; }
    .rr-step-number { width: 60px; height: 60px; font-size: 20px; }
    .rr-step-title { font-size: 16px; }
}

/* ─── TESTIMONIALS ───────────────────────────────────────── */
@media (max-width: 768px) {
    .rr-testimonials { padding: 60px 0; }
    .rr-testimonials-grid { grid-template-columns: 1fr; gap: 20px; }
    .rr-testimonials-header { margin-bottom: 40px; }
    .rr-testimonial-card { padding: 28px 24px; }
    .rr-testimonial-quote { font-size: 15px; }
}

/* ─── CTA BANNER ─────────────────────────────────────────── */
@media (max-width: 768px) {
    .rr-cta-banner { padding: 60px 0; }
    .rr-cta-banner-inner { text-align: center; }
    .rr-cta-banner-title { font-size: clamp(24px, 6vw, 36px); }
    .rr-cta-banner-sub { font-size: 15px; margin-bottom: 28px; }
    .rr-cta-banner-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    .rr-cta-banner-actions .rr-btn { width: 100%; justify-content: center; }
}

/* ─── CONTACT SECTION ────────────────────────────────────── */
@media (max-width: 768px) {
    .rr-contact { padding: 60px 0; }
    .rr-contact-inner { grid-template-columns: 1fr; gap: 40px; }
    .rr-contact-info { grid-template-columns: 1fr; gap: 20px; }
    .rr-contact-item:last-child { grid-column: 1; }
    .rr-contact-form-wrap { padding: 28px 20px; }
    .rr-form-row { grid-template-columns: 1fr; gap: 0; }
    .rr-form-title { font-size: 22px; }
}

/* ─── FOOTER ─────────────────────────────────────────────── */
@media (max-width: 768px) {
    .rr-footer { padding: 48px 0 0; }
    .rr-footer-grid { grid-template-columns: 1fr; gap: 32px; padding-bottom: 40px; }
    .rr-footer-tagline { max-width: 100%; }
    .rr-footer-bottom { flex-direction: column; text-align: center; gap: 12px; }
    .rr-footer-legal { flex-wrap: wrap; justify-content: center; gap: 16px; }
}

/* ─── PAGE HERO (inner pages) ────────────────────────────── */
@media (max-width: 768px) {
    .rr-page-hero { height: 100svh; min-height: 100svh; }
    .rr-page-hero-title { font-size: clamp(28px, 7vw, 42px); padding: 0 4px; }
    .rr-page-hero-sub { font-size: 15px; padding: 0 8px; }
    .rr-page-hero::after { height: 50px; }
    .rr-page-hero + * { margin-top: 30px; }
    .rr-phero-stats { flex-direction: column; gap: 16px; margin-top: 32px; }
    .rr-phero-stat { padding: 0; }
    .rr-phero-stat:not(:last-child)::after { display: none; }
    .rr-phero-stat-number { font-size: 36px; }
}

/* ─── CASE STUDIES PAGE ──────────────────────────────────── */
@media (max-width: 768px) {
    .rr-cases { padding: 40px 0 60px; }
    .rr-cases-grid { grid-template-columns: 1fr; gap: 20px; margin-top: 32px; }
    .rr-case-img { height: 180px; }
    .rr-case-body { padding: 24px 20px; }
    .rr-case-title { font-size: 18px; }
    .rr-case-result { flex-wrap: wrap; gap: 16px; }
    .rr-case-stat-val { font-size: 22px; }

    /* Featured case study — stack on mobile */
    .rr-cases ~ section [style*="grid-template-columns:1fr 1fr"],
    section [style*="grid-template-columns:1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }
}

/* ─── SINGLE CASE STUDY PAGE ─────────────────────────────── */
@media (max-width: 768px) {
    /* Story + sidebar stack */
    section .rr-container > div[style*="grid-template-columns:2fr 1fr"] {
        display: block !important;
    }
    /* Sidebar becomes normal flow block */
    section .rr-container > div[style*="grid-template-columns:2fr 1fr"] > div:last-child {
        position: static !important;
        margin-top: 40px;
    }
    /* Stats bar */
    section[style*="padding:60px"] .rr-container > div[style*="grid-template-columns:repeat(3"] {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
}

/* ─── ABOUT US PAGE ──────────────────────────────────────── */
@media (max-width: 768px) {
    /* Story section 2-col */
    section .rr-container > div[style*="grid-template-columns:1fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 32px !important;
    }
    /* Story image */
    section .rr-container img[style*="height:460px"] {
        height: 260px !important;
    }
    /* Values 4-col */
    section > .rr-container > div[style*="grid-template-columns:repeat(4,1fr)"] {
        grid-template-columns: 1fr 1fr !important;
        gap: 16px !important;
    }
    /* Team 3-col */
    section > .rr-container > div[style*="grid-template-columns:repeat(3,1fr)"] {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }
    /* Stats bar 4-col */
    .rr-hero-stats[style*="grid-template-columns:repeat(4,1fr)"] {
        grid-template-columns: 1fr 1fr !important;
    }
}

/* ─── FAQ SECTION ────────────────────────────────────────── */
@media (max-width: 768px) {
    .rr-faq { padding: 60px 0; }
    .rr-faq-inner { grid-template-columns: 1fr; gap: 32px; }
    .rr-faq-question { font-size: 15px; padding: 16px 18px; }
    .rr-faq-answer { padding: 0 18px 16px; font-size: 14px; }
}

/* ─── SERVICES ARCHIVE PAGE ──────────────────────────────── */
@media (max-width: 768px) {
    .rr-services-grid { grid-template-columns: 1fr; }
}

/* ─── SINGLE SERVICE PAGE ────────────────────────────────── */
@media (max-width: 768px) {
    /* Anchor nav sticky bar */
    .rr-service-anchor-nav { overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; }
    .rr-service-anchor-nav a { font-size: 13px; padding: 10px 14px; }
    /* Overview 2-col */
    .rr-service-overview .rr-container > div,
    section .rr-container > div[style*="display:grid"][style*="1fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 32px !important;
    }
    /* Deliverables grid */
    .rr-deliverables-grid,
    section .rr-container > div[style*="repeat(3"] {
        grid-template-columns: 1fr 1fr !important;
        gap: 16px !important;
    }
}
@media (max-width: 480px) {
    .rr-deliverables-grid,
    section .rr-container > div[style*="repeat(3"] {
        grid-template-columns: 1fr !important;
    }
}

/* ─── PRIVACY POLICY & TERMS ─────────────────────────────── */
@media (max-width: 768px) {
    .rr-container[style*="max-width:860px"] { padding: 0 20px; }
    section[style*="background:var(--rr-white)"] .rr-container h2[style] {
        font-size: 20px !important;
        margin-top: 32px !important;
    }
    section[style*="background:var(--rr-white)"] .rr-container p,
    section[style*="background:var(--rr-white)"] .rr-container li {
        font-size: 15px !important;
    }
    div[style*="padding:32px"][style*="border-radius:12px"] {
        padding: 20px !important;
    }
}

/* ─── FEATURED CASE STUDY CARD ───────────────────────────── */
@media (max-width: 768px) {
    /* The featured full-width navy card */
    div[style*="background:var(--rr-navy)"][style*="border-radius:24px"] {
        grid-template-columns: 1fr !important;
        display: flex !important;
        flex-direction: column !important;
    }
    div[style*="background:var(--rr-navy)"][style*="border-radius:24px"] > div:first-child {
        min-height: 240px !important;
        padding: 40px 24px !important;
    }
    div[style*="background:var(--rr-navy)"][style*="border-radius:24px"] > div:last-child {
        padding: 32px 24px !important;
    }
}

/* ─── TESTIMONIALS STRIP (case studies page) ─────────────── */
@media (max-width: 768px) {
    section[style*="background:var(--rr-navy)"] > .rr-container > div[style*="grid-template-columns:repeat(3"] {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
}

/* ─── SMALL PHONES (480px and below) ────────────────────── */
@media (max-width: 480px) {
    .rr-container { padding: 0 16px; }
    .rr-section { padding: 48px 0; }
    .rr-header-inner { height: 60px; }
    .rr-mobile-nav { top: 60px; }
    .rr-logo-text { font-size: 16px; }
    .rr-hero-headline { font-size: 28px; }
    .rr-hero-stats { grid-template-columns: 1fr 1fr; }
    .rr-stat-number { font-size: 28px; }
    .rr-section-title { font-size: 24px; }
    .rr-partners-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .rr-partner-item { padding: 16px 12px; min-height: 80px; }
    .rr-footer-socials { gap: 8px; }
    .rr-footer-legal { gap: 12px; }
    .rr-case-body { padding: 20px 16px; }
    .rr-contact-form-wrap { padding: 24px 16px; }
    .rr-why-item { padding: 18px 14px; }
    .rr-service-card { padding: 22px 18px; }
    .rr-testimonial-card { padding: 24px 18px; }
    .rr-btn { padding: 13px 20px; font-size: 14px; }

    /* About page values: 2-col on small */
    section > .rr-container > div[style*="grid-template-columns:repeat(4,1fr)"] {
        grid-template-columns: 1fr !important;
    }
}


/* ─── BLOG POST CONTENT STYLES ───────────────────────────── */
.rr-post-content h2 {
    font-family: var(--font-heading);
    font-size: clamp(22px, 2.5vw, 30px);
    font-weight: 700;
    color: var(--rr-navy);
    margin: 48px 0 16px;
    line-height: 1.25;
}
.rr-post-content h3 {
    font-family: var(--font-heading);
    font-size: clamp(18px, 2vw, 24px);
    font-weight: 700;
    color: var(--rr-navy);
    margin: 36px 0 12px;
}
.rr-post-content h4 {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    color: var(--rr-navy);
    margin: 28px 0 10px;
}
.rr-post-content p {
    margin-bottom: 20px;
    font-size: 17px;
    line-height: 1.85;
    color: var(--rr-dark);
}
.rr-post-content ul, .rr-post-content ol {
    margin: 20px 0 24px 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.rr-post-content ul li { list-style: disc; }
.rr-post-content ol li { list-style: decimal; }
.rr-post-content li { font-size: 16px; line-height: 1.7; color: var(--rr-dark); }
.rr-post-content blockquote {
    border-left: 4px solid var(--rr-green);
    padding: 20px 28px;
    margin: 32px 0;
    background: var(--rr-grey-bg);
    border-radius: 0 12px 12px 0;
    font-family: var(--font-heading);
    font-size: 18px;
    font-style: italic;
    color: var(--rr-navy);
    line-height: 1.7;
}
.rr-post-content a {
    color: var(--rr-navy);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: var(--rr-green);
    text-underline-offset: 3px;
}
.rr-post-content a:hover { color: var(--rr-green); }
.rr-post-content img {
    border-radius: 12px;
    margin: 28px 0;
    max-width: 100%;
    height: auto;
}
.rr-post-content strong { color: var(--rr-navy); font-weight: 700; }
.rr-post-content hr { border: none; border-top: 1px solid var(--rr-border); margin: 40px 0; }
.rr-post-content .wp-block-image { margin: 28px 0; }
.rr-post-content .wp-block-quote { border-left: 4px solid var(--rr-green); padding: 20px 28px; background: var(--rr-grey-bg); border-radius: 0 12px 12px 0; margin: 32px 0; }
.rr-post-content .wp-block-code, .rr-post-content code {
    background: var(--rr-grey-bg);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 14px;
    color: var(--rr-navy);
}

/* ─── BLOG RESPONSIVE ────────────────────────────────────── */
@media (max-width: 1024px) {
    article.rr-post-content + aside { display: none; }
}
@media (max-width: 768px) {
    .rr-post-content p { font-size: 16px; }
    .rr-post-content h2 { font-size: 22px; margin: 36px 0 12px; }
    .rr-post-content h3 { font-size: 18px; }
}
