/*
Theme Name: RSustain Global - The Cartographer
Theme URI: https://rsustain.com
Description: Restrained, cartographic, strategic. RSustain maps the sustainability terrain for global enterprises.
Version: 2.0.0
Author: RSustain
Author URI: https://rsustain.com
Text Domain: rsustain-global
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: Proprietary
*/

/* ============================================
   1. DESIGN TOKENS
   ============================================ */

:root {
    /* Colors */
    --color-obsidian: #0D0F12;
    --color-chalk: #F5F3EF;
    --color-white: #FFFFFF;
    --color-teal: #00897B;
    --color-teal-hover: #00796B;
    --color-teal-light: rgba(0, 137, 123, 0.08);
    --color-gold: #C9A84C;
    --color-gold-hover: #B8972F;
    --color-slate: #4A5568;
    --color-muted: #6B7280;
    --color-mist: #E8E6E1;
    --color-warm-grey: #F9F8F6;

    /* Typography */
    --font-heading: 'Instrument Serif', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    /* Font Sizes */
    --text-hero: clamp(38px, 5vw, 64px);
    --text-section: clamp(28px, 3.5vw, 42px);
    --text-card-title: clamp(20px, 2vw, 24px);
    --text-body: 16px;
    --text-small: 14px;
    --text-xs: 12px;
    --text-eyebrow: 11px;

    /* Spacing */
    --section-pad: 100px;
    --section-pad-mobile: 60px;
    --container-max: 1200px;
    --container-narrow: 800px;
    --gap-lg: 48px;
    --gap-md: 32px;
    --gap-sm: 24px;
    --gap-xs: 16px;

    /* Borders & Radius */
    --border: 1px solid var(--color-mist);
    --radius-sm: 4px;
    --radius-md: 6px;
    --radius-lg: 8px;

    /* Transitions */
    --transition-fast: 200ms ease;
    --transition-base: 300ms ease;
    --transition-slow: 500ms ease;

    /* Nav */
    --nav-height: 72px;
}


/* ============================================
   2. RESET & BASE
   ============================================ */

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

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: var(--text-body);
    line-height: 1.7;
    color: var(--color-obsidian);
    background-color: var(--color-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

ul, ol {
    list-style: none;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
}

input, textarea, select {
    font-family: inherit;
    font-size: inherit;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 400;
    line-height: 1.2;
    color: var(--color-obsidian);
}


/* ============================================
   3. LAYOUT
   ============================================ */

.rsg-container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--gap-sm);
}

.rsg-container--narrow {
    max-width: var(--container-narrow);
}

.rsg-section {
    padding: var(--section-pad) 0;
}

.rsg-section--white {
    background-color: var(--color-white);
}

.rsg-section--warm {
    background-color: var(--color-warm-grey);
}

.rsg-section--chalk {
    background-color: var(--color-chalk);
}

.rsg-section--obsidian {
    background-color: var(--color-obsidian);
    color: var(--color-white);
}

.rsg-section--obsidian h2,
.rsg-section--obsidian h3,
.rsg-section--obsidian h4 {
    color: var(--color-white);
}


/* ============================================
   4. TYPOGRAPHY
   ============================================ */

.rsg-eyebrow {
    font-family: var(--font-body);
    font-size: var(--text-eyebrow);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-teal);
    margin-bottom: var(--gap-xs);
    display: block;
}

.rsg-section--obsidian .rsg-eyebrow {
    color: var(--color-gold);
}

h1 { font-size: var(--text-hero); }
h2 { font-size: var(--text-section); }
h3 { font-size: var(--text-card-title); }

.rsg-body-text {
    color: var(--color-slate);
    max-width: 640px;
}

.rsg-mono {
    font-family: var(--font-mono);
    font-weight: 500;
}

.rsg-text-muted {
    color: var(--color-muted);
    font-size: var(--text-small);
}


/* ============================================
   5. NAVIGATION
   ============================================ */

.rsg-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--nav-height);
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.92);
    transition: background var(--transition-base), box-shadow var(--transition-base);
}

.rsg-nav--scrolled {
    background: rgba(255, 255, 255, 0.96);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 var(--color-mist);
}

.rsg-nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--gap-sm);
}

.rsg-nav__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 22px;
    color: var(--color-obsidian);
    flex-shrink: 0;
}

.rsg-nav__logo img {
    height: 40px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
}

.rsg-nav__logo-mark {
    height: 36px;
    width: 36px;
    object-fit: contain;
    border-radius: 4px;
}

.rsg-nav__logo-text {
    font-family: var(--font-heading);
    font-size: 22px;
    color: var(--color-obsidian);
}

.rsg-nav__logo-tag {
    font-family: var(--font-body);
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-muted);
    display: block;
    margin-top: -2px;
}

.rsg-nav__menu {
    display: flex;
    align-items: center;
    gap: var(--gap-md);
}

.rsg-nav__menu a {
    font-size: var(--text-small);
    font-weight: 450;
    color: var(--color-slate);
    transition: color var(--transition-fast);
    position: relative;
    white-space: nowrap;
}

.rsg-nav__menu a:hover,
.rsg-nav__menu a.current-menu-item > a,
.rsg-nav__menu a[aria-current="page"] {
    color: var(--color-obsidian);
}

.rsg-nav__menu a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--color-teal);
    transition: width var(--transition-base);
}

.rsg-nav__menu a:hover::after {
    width: 100%;
}

.rsg-nav__cta {
    margin-left: 8px;
}

/* Mobile menu toggle */
.rsg-nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 4px;
    cursor: pointer;
}

.rsg-nav__toggle span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--color-obsidian);
    transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.rsg-nav__toggle.active span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
}

.rsg-nav__toggle.active span:nth-child(2) {
    opacity: 0;
}

.rsg-nav__toggle.active span:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
}

/* Trust bar */
.rsg-trust-bar {
    background: var(--color-chalk);
    border-bottom: 1px solid var(--color-mist);
    padding: 8px 0;
    margin-top: var(--nav-height);
}

.rsg-trust-bar__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--gap-lg);
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--gap-sm);
}

.rsg-trust-bar__item {
    font-family: var(--font-body);
    font-size: var(--text-eyebrow);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-muted);
    white-space: nowrap;
}

.rsg-trust-bar__item strong {
    font-family: var(--font-mono);
    font-weight: 600;
    color: var(--color-obsidian);
    font-size: 13px;
}


/* ============================================
   6. BUTTONS
   ============================================ */

.rsg-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-body);
    font-size: var(--text-small);
    font-weight: 500;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    cursor: pointer;
    white-space: nowrap;
    line-height: 1.4;
}

.rsg-btn--primary {
    background: var(--color-teal);
    color: var(--color-white);
    border: 1px solid var(--color-teal);
}

.rsg-btn--primary:hover {
    background: var(--color-teal-hover);
    border-color: var(--color-teal-hover);
}

.rsg-btn--outline {
    background: transparent;
    color: var(--color-teal);
    border: 1px solid var(--color-teal);
}

.rsg-btn--outline:hover {
    background: var(--color-teal-light);
}

.rsg-btn--ghost {
    background: transparent;
    color: var(--color-white);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.rsg-btn--ghost:hover {
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.05);
}

.rsg-btn--gold {
    background: var(--color-gold);
    color: var(--color-obsidian);
    border: 1px solid var(--color-gold);
    font-weight: 600;
}

.rsg-btn--gold:hover {
    background: var(--color-gold-hover);
    border-color: var(--color-gold-hover);
}

.rsg-btn--sm {
    font-size: var(--text-xs);
    padding: 8px 20px;
}

.rsg-btn--lg {
    font-size: var(--text-body);
    padding: 16px 36px;
}

.rsg-btn svg,
.rsg-btn .btn-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}


/* ============================================
   7. CARDS
   ============================================ */

.rsg-card {
    background: var(--color-chalk);
    border: 1px solid var(--color-mist);
    border-radius: var(--radius-md);
    padding: var(--gap-md);
    transition: border-color var(--transition-fast);
    position: relative;
}

.rsg-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    background: var(--color-teal);
    border-radius: var(--radius-md) 0 0 var(--radius-md);
    transition: width var(--transition-fast);
}

.rsg-card:hover::before {
    width: 3px;
}

.rsg-card:hover {
    border-color: #DDD9D2;
}

.rsg-card__title {
    font-family: var(--font-heading);
    font-size: var(--text-card-title);
    margin-bottom: 12px;
    line-height: 1.3;
}

.rsg-card__desc {
    color: var(--color-slate);
    font-size: var(--text-small);
    line-height: 1.65;
    margin-bottom: var(--gap-sm);
}

.rsg-card__link {
    font-size: var(--text-small);
    font-weight: 500;
    color: var(--color-teal);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap var(--transition-fast);
}

.rsg-card__link:hover {
    gap: 10px;
}

.rsg-card__link svg {
    width: 14px;
    height: 14px;
}

/* Card with icon */
.rsg-card__icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--gap-xs);
    color: var(--color-teal);
}

.rsg-card__icon svg {
    width: 28px;
    height: 28px;
    stroke-width: 1.5;
}


/* ============================================
   8. HERO
   ============================================ */

.rsg-hero {
    display: flex;
    min-height: calc(100vh - var(--nav-height));
    margin-top: var(--nav-height);
}

.rsg-hero__content {
    width: 60%;
    background: var(--color-obsidian);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 80px 80px 80px 0;
    position: relative;
    overflow: hidden;
}

.rsg-hero__content-inner {
    max-width: 620px;
    margin-left: auto;
    padding-left: var(--gap-sm);
    position: relative;
    z-index: 2;
}

/* Meridian SVG background */
.rsg-hero__meridian {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.04;
    z-index: 1;
}

.rsg-hero__meridian line,
.rsg-hero__meridian circle {
    stroke: var(--color-white);
    fill: none;
}

.rsg-hero__eyebrow {
    font-family: var(--font-body);
    font-size: var(--text-eyebrow);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-gold);
    margin-bottom: var(--gap-sm);
    display: block;
}

.rsg-hero__title {
    font-family: var(--font-heading);
    font-size: var(--text-hero);
    color: var(--color-white);
    line-height: 1.1;
    margin-bottom: var(--gap-sm);
}

.rsg-hero__subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.7;
    max-width: 480px;
    margin-bottom: var(--gap-md);
}

.rsg-hero__image {
    width: 40%;
    position: relative;
    overflow: hidden;
}

.rsg-hero__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.3) contrast(1.05);
}

.rsg-hero__image-placeholder {
    width: 100%;
    height: 100%;
    background: var(--color-chalk);
    display: flex;
    align-items: center;
    justify-content: center;
}

.rsg-hero__image-placeholder svg {
    width: 120px;
    height: 120px;
    opacity: 0.15;
    color: var(--color-obsidian);
}

/* Stat bar */
.rsg-stat-bar {
    background: var(--color-obsidian);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: var(--gap-md) 0;
}

.rsg-stat-bar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--gap-sm);
}

.rsg-stat-bar__item {
    text-align: center;
    flex: 1;
}

.rsg-stat-bar__item + .rsg-stat-bar__item {
    border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.rsg-stat-bar__number {
    font-family: var(--font-mono);
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 500;
    color: var(--color-white);
    display: block;
    line-height: 1.2;
}

.rsg-stat-bar__label {
    font-family: var(--font-body);
    font-size: var(--text-eyebrow);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 4px;
    display: block;
}

/* Service page hero (obsidian, text only) */
.rsg-hero--service {
    min-height: auto;
    display: block;
    margin-top: var(--nav-height);
}

.rsg-hero--service .rsg-hero__content {
    width: 100%;
    padding: 80px 0;
}

.rsg-hero--service .rsg-hero__content-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--gap-sm);
}

.rsg-hero--service .rsg-hero__title {
    max-width: 720px;
}


/* ============================================
   9. PRACTICES GRID
   ============================================ */

.rsg-practices__header {
    margin-bottom: var(--gap-lg);
}

.rsg-practices__header h2 {
    margin-bottom: 12px;
}

.rsg-practices__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--gap-sm);
}


/* ============================================
   10. PERSPECTIVES / MAGAZINE LAYOUT
   ============================================ */

.rsg-perspectives__header {
    margin-bottom: var(--gap-lg);
}

.rsg-perspectives__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--gap-sm);
}

.rsg-perspectives__feature {
    grid-row: span 2;
}

.rsg-perspectives__feature .rsg-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.rsg-perspectives__feature .rsg-card__image {
    height: 280px;
    overflow: hidden;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    margin: calc(var(--gap-md) * -1);
    margin-bottom: var(--gap-sm);
}

.rsg-perspectives__feature .rsg-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.4);
}

.rsg-perspectives__feature .rsg-card__title {
    font-size: clamp(22px, 2.5vw, 28px);
}

.rsg-perspectives__small .rsg-card {
    height: 100%;
}

.rsg-card__meta {
    font-size: var(--text-xs);
    color: var(--color-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
    font-family: var(--font-body);
}


/* ============================================
   11. ECOSYSTEM GRID
   ============================================ */

.rsg-ecosystem__header {
    text-align: center;
    margin-bottom: var(--gap-lg);
}

.rsg-ecosystem__header h2 {
    margin-bottom: 12px;
}

.rsg-ecosystem__header p {
    color: var(--color-slate);
    max-width: 560px;
    margin: 0 auto;
}

.rsg-ecosystem__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--gap-sm);
}

.rsg-ecosystem-card {
    background: var(--color-chalk);
    border: 1px solid var(--color-mist);
    border-radius: var(--radius-md);
    padding: var(--gap-sm);
    text-align: center;
    transition: border-color var(--transition-fast);
}

.rsg-ecosystem-card:hover {
    border-color: #DDD9D2;
}

.rsg-ecosystem-card__name {
    font-family: var(--font-heading);
    font-size: 18px;
    margin-bottom: 6px;
}

.rsg-ecosystem-card__type {
    font-size: var(--text-xs);
    color: var(--color-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 12px;
}

.rsg-ecosystem-card__desc {
    font-size: var(--text-small);
    color: var(--color-slate);
    line-height: 1.6;
}


/* ============================================
   12. PRE-FOOTER CTA
   ============================================ */

.rsg-prefooter {
    background: var(--color-obsidian);
    padding: var(--section-pad) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.rsg-prefooter__inner {
    position: relative;
    z-index: 2;
}

.rsg-prefooter h2 {
    font-family: var(--font-heading);
    font-size: var(--text-section);
    color: var(--color-white);
    margin-bottom: var(--gap-xs);
}

.rsg-prefooter p {
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: var(--gap-md);
    font-size: var(--text-body);
}


/* ============================================
   13. FOOTER
   ============================================ */

.rsg-footer {
    background: var(--color-obsidian);
    padding-top: 0;
    position: relative;
}

.rsg-footer__gold-line {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
}

.rsg-footer__main {
    padding: 64px 0 48px;
}

.rsg-footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: var(--gap-md);
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--gap-sm);
}

.rsg-footer__brand-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
}

.rsg-footer__logo-mark {
    height: 36px;
    width: 36px;
    object-fit: contain;
    border-radius: 4px;
    filter: brightness(0) invert(1);
}

.rsg-footer__brand-logo .rsg-footer__brand-name {
    font-family: var(--font-heading);
    font-size: 22px;
    color: var(--color-white);
}

.rsg-footer__brand p {
    color: rgba(255, 255, 255, 0.4);
    font-size: var(--text-small);
    line-height: 1.7;
    margin-top: 16px;
    max-width: 280px;
}

.rsg-footer__brand-name {
    font-family: var(--font-heading);
    font-size: 20px;
    color: var(--color-white);
}

.rsg-footer__social {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.rsg-footer__social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.5);
    transition: all var(--transition-fast);
}

.rsg-footer__social-link:hover {
    border-color: var(--color-teal);
    color: var(--color-teal);
    background: rgba(0, 137, 123, 0.08);
}

.rsg-footer__col h4 {
    font-family: var(--font-body);
    font-size: var(--text-eyebrow);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.35);
    font-weight: 500;
    margin-bottom: var(--gap-xs);
}

.rsg-footer__col ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rsg-footer__col a {
    font-size: var(--text-small);
    color: rgba(255, 255, 255, 0.55);
    transition: color var(--transition-fast);
}

.rsg-footer__col a:hover {
    color: var(--color-teal);
}

.rsg-footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: var(--gap-sm) 0;
}

.rsg-footer__bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--gap-sm);
}

.rsg-footer__copyright {
    font-size: var(--text-xs);
    color: rgba(255, 255, 255, 0.3);
}

.rsg-footer__legal {
    display: flex;
    gap: var(--gap-sm);
}

.rsg-footer__legal a {
    font-size: var(--text-xs);
    color: rgba(255, 255, 255, 0.3);
    transition: color var(--transition-fast);
}

.rsg-footer__legal a:hover {
    color: var(--color-teal);
}


/* ============================================
   14. SERVICE PAGE COMPONENTS
   ============================================ */

/* Problem / Stat split */
.rsg-problem {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--gap-lg);
    align-items: center;
}

.rsg-problem__narrative {
    color: var(--color-slate);
    line-height: 1.8;
}

.rsg-problem__narrative h3 {
    font-size: var(--text-section);
    color: var(--color-obsidian);
    margin-bottom: var(--gap-sm);
}

.rsg-problem__stat {
    text-align: center;
    padding: var(--gap-lg);
    background: var(--color-chalk);
    border: 1px solid var(--color-mist);
    border-radius: var(--radius-md);
}

.rsg-problem__stat-number {
    font-family: var(--font-mono);
    font-size: clamp(48px, 6vw, 80px);
    font-weight: 600;
    color: var(--color-teal);
    display: block;
    line-height: 1;
}

.rsg-problem__stat-label {
    font-family: var(--font-body);
    font-size: var(--text-small);
    color: var(--color-muted);
    margin-top: 12px;
    display: block;
}

/* Methodology stepper */
.rsg-stepper {
    display: flex;
    align-items: flex-start;
    gap: 0;
    position: relative;
    padding: var(--gap-md) 0;
}

.rsg-stepper::before {
    content: '';
    position: absolute;
    top: 52px;
    left: 40px;
    right: 40px;
    height: 2px;
    background: var(--color-teal);
    opacity: 0.2;
}

.rsg-step {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 1;
}

.rsg-step__circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--color-teal);
    background: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--gap-xs);
    font-family: var(--font-mono);
    font-size: var(--text-small);
    font-weight: 600;
    color: var(--color-teal);
}

.rsg-step__title {
    font-family: var(--font-heading);
    font-size: 18px;
    margin-bottom: 6px;
}

.rsg-step__desc {
    font-size: var(--text-small);
    color: var(--color-muted);
    max-width: 180px;
    margin: 0 auto;
    line-height: 1.5;
}

/* Case study cards */
.rsg-case-studies {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--gap-sm);
}

.rsg-case-card {
    background: var(--color-chalk);
    border: 1px solid var(--color-mist);
    border-left: 3px solid var(--color-teal);
    border-radius: var(--radius-md);
    padding: var(--gap-md);
}

.rsg-case-card__client {
    font-family: var(--font-body);
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-muted);
    margin-bottom: 8px;
}

.rsg-case-card__title {
    font-family: var(--font-heading);
    font-size: var(--text-card-title);
    margin-bottom: 12px;
}

.rsg-case-card__result {
    font-family: var(--font-mono);
    font-size: var(--text-small);
    color: var(--color-teal);
    font-weight: 500;
}


/* ============================================
   15. TOOLS HUB
   ============================================ */

.rsg-tools__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--gap-sm);
}

.rsg-tool-card {
    background: var(--color-chalk);
    border: 1px solid var(--color-mist);
    border-radius: var(--radius-md);
    padding: var(--gap-md);
    display: flex;
    flex-direction: column;
    transition: border-color var(--transition-fast);
    position: relative;
}

.rsg-tool-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    background: var(--color-teal);
    border-radius: var(--radius-md) 0 0 var(--radius-md);
    transition: width var(--transition-fast);
}

.rsg-tool-card:hover::before {
    width: 3px;
}

.rsg-tool-card:hover {
    border-color: #DDD9D2;
}

.rsg-tool-card__badge {
    font-family: var(--font-body);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 4px 10px;
    border-radius: 3px;
    display: inline-block;
    width: fit-content;
    margin-bottom: var(--gap-xs);
}

.rsg-tool-card__badge--free {
    background: var(--color-teal-light);
    color: var(--color-teal);
}

.rsg-tool-card__badge--premium {
    background: rgba(201, 168, 76, 0.1);
    color: var(--color-gold);
}

.rsg-tool-card__title {
    font-family: var(--font-heading);
    font-size: var(--text-card-title);
    margin-bottom: 8px;
}

.rsg-tool-card__desc {
    color: var(--color-slate);
    font-size: var(--text-small);
    line-height: 1.65;
    flex: 1;
    margin-bottom: var(--gap-sm);
}

.rsg-tool-card__cta {
    margin-top: auto;
}


/* ============================================
   16. CONTACT / FORM
   ============================================ */

.rsg-contact__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--gap-lg);
}

.rsg-form-group {
    margin-bottom: var(--gap-sm);
}

.rsg-form-group label {
    display: block;
    font-size: var(--text-small);
    font-weight: 500;
    color: var(--color-obsidian);
    margin-bottom: 6px;
}

.rsg-form-group input,
.rsg-form-group select,
.rsg-form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--color-mist);
    border-radius: var(--radius-sm);
    background: var(--color-white);
    color: var(--color-obsidian);
    font-size: var(--text-body);
    transition: border-color var(--transition-fast);
    line-height: 1.5;
}

.rsg-form-group input:focus,
.rsg-form-group select:focus,
.rsg-form-group textarea:focus {
    outline: none;
    border-color: var(--color-teal);
}

.rsg-form-group textarea {
    min-height: 140px;
    resize: vertical;
}

.rsg-contact__info {
    padding-top: 8px;
}

.rsg-contact__info h3 {
    font-size: var(--text-card-title);
    margin-bottom: var(--gap-sm);
}

.rsg-contact__info-item {
    display: flex;
    gap: 12px;
    margin-bottom: var(--gap-sm);
    align-items: flex-start;
}

.rsg-contact__info-icon {
    width: 20px;
    height: 20px;
    color: var(--color-teal);
    flex-shrink: 0;
    margin-top: 2px;
}

.rsg-contact__info-text {
    font-size: var(--text-small);
    color: var(--color-slate);
    line-height: 1.6;
}

.rsg-contact__info-text strong {
    color: var(--color-obsidian);
    display: block;
    font-size: var(--text-body);
    margin-bottom: 2px;
}


/* ============================================
   17. 404 PAGE
   ============================================ */

.rsg-404 {
    min-height: calc(100vh - var(--nav-height));
    margin-top: var(--nav-height);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--section-pad) var(--gap-sm);
}

.rsg-404__code {
    font-family: var(--font-mono);
    font-size: clamp(80px, 12vw, 160px);
    font-weight: 700;
    color: var(--color-mist);
    line-height: 1;
    margin-bottom: var(--gap-sm);
}

.rsg-404__title {
    font-size: var(--text-section);
    margin-bottom: var(--gap-xs);
}

.rsg-404__desc {
    color: var(--color-slate);
    margin-bottom: var(--gap-md);
    max-width: 440px;
    margin-left: auto;
    margin-right: auto;
}


/* ============================================
   18. CONTENT DEFAULTS (page.php / single.php)
   ============================================ */

.rsg-content {
    margin-top: var(--nav-height);
    padding: var(--section-pad) 0;
}

.rsg-content__inner {
    max-width: var(--container-narrow);
    margin: 0 auto;
    padding: 0 var(--gap-sm);
}

.rsg-content h1 {
    font-size: var(--text-section);
    margin-bottom: var(--gap-md);
}

.rsg-content h2 {
    font-size: var(--text-card-title);
    margin-top: var(--gap-lg);
    margin-bottom: var(--gap-xs);
}

.rsg-content h3 {
    font-size: 20px;
    margin-top: var(--gap-md);
    margin-bottom: 12px;
}

.rsg-content p {
    color: var(--color-slate);
    margin-bottom: var(--gap-xs);
}

.rsg-content a {
    color: var(--color-teal);
    border-bottom: 1px solid transparent;
    transition: border-color var(--transition-fast);
}

.rsg-content a:hover {
    border-bottom-color: var(--color-teal);
}

.rsg-content ul,
.rsg-content ol {
    margin-bottom: var(--gap-xs);
    padding-left: 24px;
    color: var(--color-slate);
}

.rsg-content ul {
    list-style: disc;
}

.rsg-content ol {
    list-style: decimal;
}

.rsg-content li {
    margin-bottom: 6px;
}

.rsg-content blockquote {
    border-left: 3px solid var(--color-teal);
    padding: var(--gap-xs) var(--gap-sm);
    background: var(--color-chalk);
    margin: var(--gap-md) 0;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.rsg-content blockquote p {
    color: var(--color-obsidian);
    font-style: italic;
}

.rsg-content img {
    border-radius: var(--radius-md);
    margin: var(--gap-md) 0;
}

.rsg-content table {
    width: 100%;
    border-collapse: collapse;
    margin: var(--gap-md) 0;
}

.rsg-content th,
.rsg-content td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--color-mist);
    font-size: var(--text-small);
}

.rsg-content th {
    font-weight: 600;
    color: var(--color-obsidian);
    background: var(--color-chalk);
}

.rsg-content td {
    color: var(--color-slate);
}

/* Post meta */
.rsg-post-meta {
    display: flex;
    align-items: center;
    gap: var(--gap-xs);
    font-size: var(--text-small);
    color: var(--color-muted);
    margin-bottom: var(--gap-md);
}

.rsg-post-meta__divider {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--color-mist);
}


/* ============================================
   19. ARCHIVE / SEARCH
   ============================================ */

.rsg-archive__header {
    margin-bottom: var(--gap-lg);
}

.rsg-archive__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--gap-sm);
}

.rsg-archive__pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: var(--gap-lg);
}

.rsg-archive__pagination a,
.rsg-archive__pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--color-mist);
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: var(--text-small);
    color: var(--color-slate);
    transition: all var(--transition-fast);
}

.rsg-archive__pagination a:hover {
    border-color: var(--color-teal);
    color: var(--color-teal);
}

.rsg-archive__pagination .current {
    background: var(--color-teal);
    border-color: var(--color-teal);
    color: var(--color-white);
}

/* Search form */
.rsg-search-form {
    display: flex;
    gap: 12px;
    margin-bottom: var(--gap-lg);
}

.rsg-search-form input[type="search"] {
    flex: 1;
    padding: 14px 20px;
    border: 1px solid var(--color-mist);
    border-radius: var(--radius-sm);
    font-size: var(--text-body);
    background: var(--color-white);
}

.rsg-search-form input[type="search"]:focus {
    outline: none;
    border-color: var(--color-teal);
}


/* ============================================
   20. FAQ ACCORDION
   ============================================ */

.rsg-faq__item {
    border-bottom: 1px solid var(--color-mist);
}

.rsg-faq__question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--gap-sm) 0;
    font-family: var(--font-heading);
    font-size: 18px;
    color: var(--color-obsidian);
    cursor: pointer;
    text-align: left;
    background: none;
    border: none;
}

.rsg-faq__icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--color-muted);
    transition: transform var(--transition-fast);
}

.rsg-faq__item.active .rsg-faq__icon {
    transform: rotate(45deg);
}

.rsg-faq__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-base);
}

.rsg-faq__answer-inner {
    padding-bottom: var(--gap-sm);
    color: var(--color-slate);
    font-size: var(--text-small);
    line-height: 1.7;
}


/* ============================================
   21. SCROLL REVEAL ANIMATIONS
   ============================================ */

.rsg-reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.rsg-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.rsg-reveal--delay-1 { transition-delay: 120ms; }
.rsg-reveal--delay-2 { transition-delay: 240ms; }
.rsg-reveal--delay-3 { transition-delay: 360ms; }
.rsg-reveal--delay-4 { transition-delay: 480ms; }
.rsg-reveal--delay-5 { transition-delay: 600ms; }
.rsg-reveal--delay-6 { transition-delay: 720ms; }
.rsg-reveal--delay-7 { transition-delay: 840ms; }
.rsg-reveal--delay-8 { transition-delay: 960ms; }

/* Reveal from left */
.rsg-reveal--left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.rsg-reveal--left.revealed {
    opacity: 1;
    transform: translateX(0);
}

/* Reveal from right */
.rsg-reveal--right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.rsg-reveal--right.revealed {
    opacity: 1;
    transform: translateX(0);
}

/* Scale reveal */
.rsg-reveal--scale {
    opacity: 0;
    transform: scale(0.92);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.rsg-reveal--scale.revealed {
    opacity: 1;
    transform: scale(1);
}

/* Hero text stagger animations */
.rsg-hero__word,
.rsg-hero__eyebrow,
.rsg-hero__subtitle,
.rsg-hero__cta-wrap {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.rsg-hero__word.rsg-anim-in,
.rsg-hero__eyebrow.rsg-anim-in,
.rsg-hero__subtitle.rsg-anim-in,
.rsg-hero__cta-wrap.rsg-anim-in {
    opacity: 1;
    transform: translateY(0);
}

/* Progress bar */
.rsg-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    background: var(--color-teal);
    z-index: 1001;
    width: 0;
    transition: width 0.05s linear;
}


/* ============================================
   21b. MARQUEE / TICKER ANIMATIONS
   ============================================ */

.rsg-marquee {
    overflow: hidden;
    padding: 24px 0;
    border-top: 1px solid var(--color-mist);
    border-bottom: 1px solid var(--color-mist);
    background: var(--color-chalk);
}

.rsg-marquee__track {
    display: flex;
    align-items: center;
    gap: 64px;
    animation: rsg-marquee 40s linear infinite;
    width: max-content;
}

.rsg-marquee__item {
    font-family: var(--font-body);
    font-size: var(--text-small);
    font-weight: 500;
    color: var(--color-muted);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 12px;
    letter-spacing: 0.02em;
}

.rsg-marquee__item strong {
    color: var(--color-obsidian);
    font-weight: 600;
}

.rsg-marquee__dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--color-mist);
    flex-shrink: 0;
}

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

/* Regulatory ticker */
.rsg-ticker {
    background: var(--color-obsidian);
    overflow: hidden;
    padding: 14px 0;
}

.rsg-ticker__track {
    display: flex;
    align-items: center;
    gap: 48px;
    animation: rsg-ticker 60s linear infinite;
    width: max-content;
}

.rsg-ticker__item {
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    font-family: var(--font-mono);
    font-size: 12px;
}

.rsg-ticker__framework {
    color: var(--color-gold);
    font-weight: 600;
    letter-spacing: 0.05em;
}

.rsg-ticker__detail {
    color: rgba(255, 255, 255, 0.4);
}

.rsg-ticker__divider {
    color: rgba(255, 255, 255, 0.12);
}

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


/* ============================================
   21c. VALUE PROPOSITION SECTION
   ============================================ */

.rsg-value__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--gap-md);
}

.rsg-value-card {
    text-align: center;
    padding: var(--gap-md) var(--gap-sm);
}

.rsg-value-card__number {
    font-family: var(--font-mono);
    font-size: 56px;
    font-weight: 700;
    color: var(--color-teal);
    line-height: 1;
    margin-bottom: 8px;
}

.rsg-value-card__label {
    font-family: var(--font-heading);
    font-size: 20px;
    margin-bottom: 12px;
}

.rsg-value-card__desc {
    font-size: var(--text-small);
    color: var(--color-slate);
    line-height: 1.7;
    max-width: 280px;
    margin: 0 auto;
}


/* ============================================
   21d. METHODOLOGY TIMELINE
   ============================================ */

.rsg-timeline {
    position: relative;
    padding-left: 48px;
}

.rsg-timeline::before {
    content: '';
    position: absolute;
    left: 18px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--color-teal), var(--color-gold));
}

.rsg-timeline__step {
    position: relative;
    padding-bottom: var(--gap-lg);
}

.rsg-timeline__step:last-child {
    padding-bottom: 0;
}

.rsg-timeline__marker {
    position: absolute;
    left: -48px;
    top: 2px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--color-white);
    border: 2px solid var(--color-teal);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 600;
    color: var(--color-teal);
    z-index: 1;
}

.rsg-timeline__title {
    font-family: var(--font-heading);
    font-size: 22px;
    margin-bottom: 8px;
}

.rsg-timeline__desc {
    font-size: var(--text-small);
    color: var(--color-slate);
    line-height: 1.7;
    max-width: 520px;
}


/* ============================================
   21e. GLOBAL PRESENCE MAP
   ============================================ */

.rsg-presence__layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--gap-lg);
    align-items: start;
}

.rsg-presence__regions {
    display: flex;
    flex-direction: column;
    gap: var(--gap-sm);
}

.rsg-region {
    padding: var(--gap-sm);
    border: 1px solid var(--color-mist);
    border-radius: var(--radius-md);
    background: var(--color-chalk);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.rsg-region:hover {
    border-color: var(--color-teal);
    box-shadow: 0 4px 16px rgba(0, 137, 123, 0.08);
}

.rsg-region__header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.rsg-region__flag {
    font-size: 24px;
    line-height: 1;
}

.rsg-region__name {
    font-family: var(--font-heading);
    font-size: 20px;
}

.rsg-region__entity {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--color-teal);
    font-weight: 500;
}

.rsg-region__desc {
    font-size: var(--text-small);
    color: var(--color-slate);
    line-height: 1.6;
}

.rsg-presence__map {
    position: relative;
    background: var(--color-chalk);
    border: 1px solid var(--color-mist);
    border-radius: var(--radius-md);
    padding: var(--gap-md);
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rsg-presence__map svg {
    width: 100%;
    max-width: 480px;
    height: auto;
}


/* ============================================
   21f. TESTIMONIALS
   ============================================ */

.rsg-testimonials__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--gap-sm);
}

.rsg-testimonial {
    background: var(--color-chalk);
    border: 1px solid var(--color-mist);
    border-radius: var(--radius-md);
    padding: var(--gap-md);
    position: relative;
}

.rsg-testimonial__quote {
    font-family: var(--font-heading);
    font-size: 18px;
    font-style: italic;
    line-height: 1.6;
    color: var(--color-obsidian);
    margin-bottom: var(--gap-sm);
}

.rsg-testimonial__quote::before {
    content: '\201C';
    font-size: 48px;
    color: var(--color-teal);
    opacity: 0.3;
    line-height: 0;
    display: block;
    margin-bottom: 8px;
}

.rsg-testimonial__author {
    font-size: var(--text-small);
    font-weight: 600;
    color: var(--color-obsidian);
}

.rsg-testimonial__role {
    font-size: var(--text-xs);
    color: var(--color-muted);
    margin-top: 2px;
}


/* ============================================
   21g. SPLIT CONTENT BLOCKS
   ============================================ */

.rsg-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--gap-lg);
    align-items: center;
}

.rsg-split--reverse {
    direction: rtl;
}

.rsg-split--reverse > * {
    direction: ltr;
}

.rsg-split__content h2 {
    margin-bottom: var(--gap-xs);
}

.rsg-split__content p {
    color: var(--color-slate);
    line-height: 1.8;
    margin-bottom: var(--gap-sm);
}

.rsg-split__visual {
    background: var(--color-chalk);
    border: 1px solid var(--color-mist);
    border-radius: var(--radius-md);
    padding: var(--gap-lg);
    position: relative;
    overflow: hidden;
}

.rsg-split__list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.rsg-split__list-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: var(--text-small);
    color: var(--color-slate);
    line-height: 1.6;
}

.rsg-split__list-item svg {
    width: 18px;
    height: 18px;
    color: var(--color-teal);
    flex-shrink: 0;
    margin-top: 2px;
}


/* ============================================
   21h. PLATFORM CARDS
   ============================================ */

.rsg-platforms__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--gap-sm);
}

.rsg-platform-card {
    background: var(--color-obsidian);
    border-radius: var(--radius-md);
    padding: var(--gap-md);
    position: relative;
    overflow: hidden;
    transition: transform var(--transition-fast);
}

.rsg-platform-card:hover {
    transform: translateY(-4px);
}

.rsg-platform-card__badge {
    font-family: var(--font-mono);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-gold);
    margin-bottom: 12px;
    display: block;
}

.rsg-platform-card__name {
    font-family: var(--font-heading);
    font-size: 24px;
    color: var(--color-white);
    margin-bottom: 8px;
}

.rsg-platform-card__desc {
    font-size: var(--text-small);
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.65;
    margin-bottom: var(--gap-sm);
}

.rsg-platform-card__link {
    font-size: var(--text-small);
    font-weight: 500;
    color: var(--color-teal);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap var(--transition-fast);
}

.rsg-platform-card__link:hover {
    gap: 10px;
}

.rsg-platform-card__glow {
    position: absolute;
    top: -60px;
    right: -60px;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 137, 123, 0.12), transparent 70%);
    pointer-events: none;
}


/* ============================================
   21i. FRAMEWORKS GRID
   ============================================ */

.rsg-frameworks__grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: var(--gap-xs);
}

.rsg-framework-badge {
    background: var(--color-chalk);
    border: 1px solid var(--color-mist);
    border-radius: var(--radius-md);
    padding: 16px 12px;
    text-align: center;
    transition: border-color var(--transition-fast), transform var(--transition-fast);
}

.rsg-framework-badge:hover {
    border-color: var(--color-teal);
    transform: translateY(-2px);
}

.rsg-framework-badge__name {
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 600;
    color: var(--color-obsidian);
    margin-bottom: 4px;
}

.rsg-framework-badge__full {
    font-size: 10px;
    color: var(--color-muted);
    line-height: 1.4;
}


/* ============================================
   21j. TAB COMPONENT
   ============================================ */

.rsg-tabs__nav {
    display: flex;
    gap: 4px;
    margin-bottom: var(--gap-md);
    border-bottom: 1px solid var(--color-mist);
    padding-bottom: 0;
}

.rsg-tabs__btn {
    font-family: var(--font-body);
    font-size: var(--text-small);
    font-weight: 500;
    color: var(--color-muted);
    padding: 12px 20px;
    border: none;
    background: none;
    cursor: pointer;
    position: relative;
    transition: color var(--transition-fast);
}

.rsg-tabs__btn::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--color-teal);
    transform: scaleX(0);
    transition: transform var(--transition-fast);
}

.rsg-tabs__btn.active {
    color: var(--color-obsidian);
}

.rsg-tabs__btn.active::after {
    transform: scaleX(1);
}

.rsg-tabs__panel {
    display: none;
}

.rsg-tabs__panel.active {
    display: block;
    animation: rsg-fadeIn 0.4s ease;
}

@keyframes rsg-fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}


/* ============================================
   22. UTILITIES
   ============================================ */

.rsg-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.rsg-text-center { text-align: center; }
.rsg-text-right { text-align: right; }

.rsg-mt-sm { margin-top: var(--gap-sm); }
.rsg-mt-md { margin-top: var(--gap-md); }
.rsg-mt-lg { margin-top: var(--gap-lg); }
.rsg-mb-sm { margin-bottom: var(--gap-sm); }
.rsg-mb-md { margin-bottom: var(--gap-md); }
.rsg-mb-lg { margin-bottom: var(--gap-lg); }

.rsg-flex { display: flex; }
.rsg-flex-center { display: flex; align-items: center; justify-content: center; }
.rsg-flex-between { display: flex; align-items: center; justify-content: space-between; }
.rsg-flex-gap-sm { gap: var(--gap-sm); }


/* ============================================
   23. RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
    .rsg-nav__menu {
        display: none;
        position: fixed;
        top: var(--nav-height);
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(255, 255, 255, 0.98);
        -webkit-backdrop-filter: blur(12px);
        backdrop-filter: blur(12px);
        flex-direction: column;
        align-items: flex-start;
        padding: var(--gap-md);
        gap: 0;
    }

    .rsg-nav__menu.active {
        display: flex;
    }

    .rsg-nav__menu a {
        font-size: var(--text-body);
        padding: 14px 0;
        width: 100%;
        border-bottom: 1px solid var(--color-mist);
    }

    .rsg-nav__menu a::after {
        display: none;
    }

    .rsg-nav__cta {
        margin-left: 0;
        margin-top: var(--gap-sm);
    }

    .rsg-nav__toggle {
        display: flex;
    }

    .rsg-hero {
        flex-direction: column;
        min-height: auto;
    }

    .rsg-hero__content {
        width: 100%;
        padding: 60px var(--gap-sm);
    }

    .rsg-hero__content-inner {
        max-width: 100%;
        margin: 0;
        padding: 0;
    }

    .rsg-hero__image {
        width: 100%;
        height: 300px;
    }

    .rsg-practices__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .rsg-perspectives__grid {
        grid-template-columns: 1fr;
    }

    .rsg-perspectives__feature {
        grid-row: span 1;
    }

    .rsg-ecosystem__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .rsg-tools__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .rsg-footer__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .rsg-footer__brand {
        grid-column: span 2;
    }

    .rsg-problem {
        grid-template-columns: 1fr;
    }

    .rsg-stepper {
        flex-direction: column;
        gap: var(--gap-sm);
    }

    .rsg-stepper::before {
        top: 0;
        bottom: 0;
        left: 19px;
        right: auto;
        width: 2px;
        height: auto;
    }

    .rsg-step {
        text-align: left;
        display: flex;
        align-items: flex-start;
        gap: var(--gap-xs);
    }

    .rsg-step__circle {
        margin: 0;
        flex-shrink: 0;
    }

    .rsg-step__desc {
        max-width: none;
    }

    .rsg-contact__grid {
        grid-template-columns: 1fr;
    }

    .rsg-case-studies {
        grid-template-columns: 1fr;
    }

    .rsg-archive__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .rsg-value__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .rsg-split,
    .rsg-split--reverse {
        grid-template-columns: 1fr;
        direction: ltr;
    }

    .rsg-presence__layout {
        grid-template-columns: 1fr;
    }

    .rsg-testimonials__grid {
        grid-template-columns: 1fr;
    }

    .rsg-platforms__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .rsg-frameworks__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --section-pad: var(--section-pad-mobile);
    }

    .rsg-trust-bar__inner {
        flex-wrap: wrap;
        gap: var(--gap-xs);
        justify-content: center;
    }

    .rsg-stat-bar__inner {
        flex-wrap: wrap;
    }

    .rsg-stat-bar__item {
        flex: 0 0 50%;
        padding: var(--gap-xs) 0;
    }

    .rsg-stat-bar__item + .rsg-stat-bar__item {
        border-left: none;
    }

    .rsg-stat-bar__item:nth-child(2n) {
        border-left: 1px solid rgba(255, 255, 255, 0.08);
    }

    .rsg-practices__grid {
        grid-template-columns: 1fr;
    }

    .rsg-ecosystem__grid {
        grid-template-columns: 1fr;
    }

    .rsg-tools__grid {
        grid-template-columns: 1fr;
    }

    .rsg-footer__grid {
        grid-template-columns: 1fr;
    }

    .rsg-footer__brand {
        grid-column: span 1;
    }

    .rsg-footer__bottom-inner {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .rsg-archive__grid {
        grid-template-columns: 1fr;
    }

    .rsg-search-form {
        flex-direction: column;
    }

    .rsg-value__grid {
        grid-template-columns: 1fr;
    }

    .rsg-platforms__grid {
        grid-template-columns: 1fr;
    }

    .rsg-frameworks__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .rsg-tabs__nav {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .rsg-hero__content {
        padding: 48px var(--gap-xs);
    }

    .rsg-hero__title {
        font-size: 32px;
    }

    .rsg-hero__subtitle {
        font-size: 16px;
    }

    .rsg-trust-bar__item {
        font-size: 10px;
    }

    .rsg-btn--lg {
        width: 100%;
        justify-content: center;
    }
}


/* ============================================
   24. WORDPRESS CLASSES
   ============================================ */

.alignleft {
    float: left;
    margin: 0 var(--gap-sm) var(--gap-sm) 0;
}

.alignright {
    float: right;
    margin: 0 0 var(--gap-sm) var(--gap-sm);
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: var(--gap-sm);
}

.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    font-size: var(--text-xs);
    color: var(--color-muted);
    margin-top: 6px;
    text-align: center;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--gap-xs);
    margin: var(--gap-md) 0;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.sticky .rsg-card {
    border-color: var(--color-teal);
}

/* WP Block Editor */
.wp-block-image {
    margin: var(--gap-md) 0;
}

.wp-block-quote {
    border-left: 3px solid var(--color-teal);
    padding: var(--gap-xs) var(--gap-sm);
    background: var(--color-chalk);
    margin: var(--gap-md) 0;
}

.wp-block-separator {
    border: none;
    border-top: 1px solid var(--color-mist);
    margin: var(--gap-lg) 0;
}

.wp-block-table table {
    width: 100%;
    border-collapse: collapse;
}

.wp-block-table td,
.wp-block-table th {
    padding: 12px 16px;
    border: 1px solid var(--color-mist);
}

/* Comment form overrides */
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--color-mist);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: var(--text-body);
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--color-teal);
}

.comment-form label {
    display: block;
    font-size: var(--text-small);
    font-weight: 500;
    margin-bottom: 4px;
}

.comment-form .form-submit input[type="submit"] {
    background: var(--color-teal);
    color: var(--color-white);
    border: none;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    font-weight: 500;
    cursor: pointer;
    transition: background var(--transition-fast);
}

.comment-form .form-submit input[type="submit"]:hover {
    background: var(--color-teal-hover);
}
