/* =====================================================================
   STRATA METRIX — MAIN STYLESHEET
   Design System: Inspired by Research-Grade Intelligence Platforms
   Typography: Plus Jakarta Sans
   ===================================================================== */

:root {
    /* Reference Pastel & High Contrast Tokens (ResearchRabbit Direction) */
    --sr-text-primary: #111111;
    --sr-text-secondary: #343A40;
    --sr-text-muted: #5B6570;
    --sr-white: #FFFFFF;

    --sr-pastel-lavender: #E8EAF8;
    --sr-pastel-blue: #DDF2FA;
    --sr-pastel-cyan: #D9F5F3;
    --sr-pastel-mint: #E2F5E5;

    --sr-border-subtle: #DDE3E8;
    --sr-border-strong: #CBD5E1;

    --sr-btn-primary-bg: #111111;
    --sr-btn-primary-text: #FFFFFF;

    --sr-hero-gradient: linear-gradient(135deg, #E8EAF8 0%, #DDF2FA 35%, #D9F5F3 70%, #E2F5E5 100%);
    --sr-inner-hero-gradient: linear-gradient(135deg, #F1F3FB 0%, #EBF6FC 50%, #EDF9F1 100%);

    --sr-body-bg: #FFFFFF;
    --sr-section-alt-bg: #F8FAFC;
    --sr-card-bg: #FFFFFF;

    --sr-primary: #111111;
    --sr-primary-accent: #0f4c81;
    --sr-primary-hover: #222222;

    --sr-accent-cyan: #0284c7;
    --sr-accent-teal: #0d9488;
    --sr-accent-emerald: #059669;
    --sr-accent-indigo: #4f46e5;

    --sr-radius-sm: 8px;
    --sr-radius-md: 12px;
    --sr-radius-lg: 16px;
    --sr-radius-xl: 20px;

    --sr-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --sr-shadow-md: 0 4px 18px -2px rgba(17, 24, 39, 0.06);
    --sr-shadow-lg: 0 14px 34px -4px rgba(17, 24, 39, 0.08);
    --sr-shadow-card: 0 10px 30px rgba(0, 0, 0, 0.05);

    --sr-font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    --sr-transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);

    /* Standardized Typography Tokens */
    --sr-h1-size: clamp(2.25rem, 3.8vw, 3.25rem);       /* 36px - 52px desktop, 32px-36px mobile */
    --sr-h2-size: clamp(1.75rem, 2.6vw, 2.35rem);       /* 28px - 38px desktop, 26px-30px mobile */
    --sr-h3-size: clamp(1.35rem, 1.8vw, 1.65rem);       /* 22px - 26px desktop, 20px-22px mobile */
    --sr-h4-size: clamp(1.15rem, 1.3vw, 1.35rem);       /* 18px - 22px */
    --sr-body-size: 1.0625rem;                          /* 17px */
    --sr-small-size: 0.875rem;                          /* 14px */
    --sr-btn-size: 0.9375rem;                           /* 15px */
}

/* Global Reset & Box Sizing */
html {
    scroll-behavior: smooth;
    box-sizing: border-box;
}

*, *::before, *::after {
    box-sizing: inherit;
}

body {
    font-family: var(--sr-font-family);
    font-size: var(--sr-body-size);
    color: var(--sr-text-secondary);
    background-color: var(--sr-body-bg);
    overflow-x: hidden;
    line-height: 1.68;
    -webkit-font-smoothing: antialiased;
}

/* Standardized Typography Hierarchy */
h1, .h1 {
    font-family: var(--sr-font-family);
    font-size: var(--sr-h1-size);
    font-weight: 800;
    line-height: 1.18;
    letter-spacing: -0.025em;
    color: var(--sr-text-primary);
    margin-top: 0;
    margin-bottom: 1rem;
}

h2, .h2 {
    font-family: var(--sr-font-family);
    font-size: var(--sr-h2-size);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.025em;
    color: var(--sr-text-primary);
    margin-top: 0;
    margin-bottom: 0.75rem;
}

h3, .h3 {
    font-family: var(--sr-font-family);
    font-size: var(--sr-h3-size);
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.02em;
    color: var(--sr-text-primary);
    margin-top: 0;
    margin-bottom: 0.5rem;
}

h4, .h4 {
    font-family: var(--sr-font-family);
    font-size: var(--sr-h4-size);
    font-weight: 600;
    line-height: 1.35;
    color: var(--sr-text-primary);
    margin-top: 0;
    margin-bottom: 0.4rem;
}

h5, .h5, h6, .h6 {
    font-family: var(--sr-font-family);
    font-weight: 600;
    color: var(--sr-text-primary);
}

p {
    font-size: var(--sr-body-size);
    line-height: 1.68;
    margin-bottom: 1.25rem;
}

.small, small {
    font-size: var(--sr-small-size);
}

.text-gradient-cyan {
    color: #0f4c81;
}

.text-gradient-blue {
    color: var(--sr-text-primary);
}

/* Badges & Pills */
.sr-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.85rem;
    font-size: 0.8125rem;
    font-weight: 600;
    border-radius: 9999px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.sr-badge-primary {
    background: rgba(15, 76, 129, 0.08);
    color: #0f4c81;
    border: 1px solid rgba(15, 76, 129, 0.2);
}

.sr-badge-dark {
    background: rgba(17, 17, 17, 0.06);
    color: var(--sr-text-primary);
    border: 1px solid rgba(17, 17, 17, 0.12);
}

.sr-badge-success {
    background: rgba(16, 185, 129, 0.12);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.25);
}

/* Custom Buttons (Clean, Outlined & Restrained) */
.btn-sr-primary {
    background: var(--sr-btn-primary-bg);
    color: var(--sr-btn-primary-text) !important;
    font-weight: 600;
    padding: 0.65rem 1.45rem;
    border-radius: var(--sr-radius-sm);
    border: 1px solid var(--sr-btn-primary-bg);
    box-shadow: 0 2px 8px rgba(17, 17, 17, 0.12);
    transition: var(--sr-transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-sr-primary:hover {
    background: #2b2b2b;
    border-color: #2b2b2b;
    color: #FFFFFF !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(17, 17, 17, 0.2);
}

.btn-sr-glow {
    background: var(--sr-btn-primary-bg);
    color: var(--sr-btn-primary-text) !important;
    font-weight: 600;
    padding: 0.75rem 1.65rem;
    border-radius: var(--sr-radius-sm);
    border: 1px solid var(--sr-btn-primary-bg);
    box-shadow: 0 4px 12px rgba(17, 17, 17, 0.12);
    transition: var(--sr-transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-sr-glow:hover {
    background: #2b2b2b;
    border-color: #2b2b2b;
    color: #FFFFFF !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(17, 17, 17, 0.18);
}

.btn-sr-ghost, .btn-sr-outline {
    background: #FFFFFF;
    color: var(--sr-text-primary) !important;
    font-weight: 600;
    padding: 0.7rem 1.55rem;
    border-radius: var(--sr-radius-sm);
    border: 1.5px solid var(--sr-border-strong);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: var(--sr-transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-sr-ghost:hover, .btn-sr-outline:hover {
    background: #F8FAFC;
    border-color: #111111;
    color: #111111 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

/* =====================================================================
   HEADER & NAVIGATION (Clean White Header, ResearchRabbit Direction)
   ===================================================================== */
.sr-header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--sr-border-subtle);
    transition: var(--sr-transition);
    z-index: 1040;
}

.sr-header.scrolled {
    box-shadow: 0 4px 20px rgba(17, 24, 39, 0.06);
}

/* =====================================================================
   OFFICIAL STRATA METRIX LOGO STYLES (Enlarged & Aspect-Ratio Preserved)
   SVG ViewBox 0 0 260 48 (~5.42:1 ratio)
   ===================================================================== */
.sr-brand-logo {
    height: 46px;
    width: auto;
    max-width: 250px;
    object-fit: contain;
    display: inline-block;
    vertical-align: middle;
    transition: var(--sr-transition);
}

.sr-footer-logo {
    height: 50px;
    width: auto;
    max-width: 270px;
    object-fit: contain;
    display: inline-block;
    vertical-align: middle;
    transition: var(--sr-transition);
}

.sr-admin-logo {
    height: 48px;
    width: auto;
    max-width: 260px;
    object-fit: contain;
    display: inline-block;
}

.sr-logo-title {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--sr-text-primary);
}

.sr-logo-title span {
    color: #4b5563;
    font-weight: 600;
}

.sr-logo-subtitle {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--sr-text-muted);
}

.nav-link {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--sr-text-primary) !important;
    padding: 0.5rem 0.85rem !important;
    border-radius: var(--sr-radius-sm);
    transition: var(--sr-transition);
}

.nav-link:hover, .nav-link:focus {
    color: #0f4c81 !important;
    background: rgba(17, 24, 39, 0.04);
}

.nav-link.active {
    font-weight: 700 !important;
    color: var(--sr-text-primary) !important;
}

.dropdown-menu {
    background: #FFFFFF;
    border: 1px solid var(--sr-border-subtle);
    border-radius: var(--sr-radius-md);
    box-shadow: var(--sr-shadow-lg);
    padding: 0.5rem;
    min-width: 250px;
    animation: fadeInDropdown 0.2s ease-out;
}

@keyframes fadeInDropdown {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.dropdown-item {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--sr-text-secondary);
    padding: 0.55rem 0.85rem;
    border-radius: var(--sr-radius-sm);
    transition: var(--sr-transition);
}

.dropdown-item:hover, .dropdown-item:focus {
    background: #F1F5F9;
    color: var(--sr-text-primary);
    transform: translateX(2px);
}

/* =====================================================================
   HERO SECTION (Pastel Gradient Background, ResearchRabbit Direction)
   ===================================================================== */
.sr-hero {
    position: relative;
    background: var(--sr-hero-gradient);
    color: var(--sr-text-primary);
    padding: 3.5rem 0 3rem;
    overflow: hidden;
    border-bottom: 1px solid var(--sr-border-subtle);
}

.sr-hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: auto;
    z-index: 1;
    opacity: 0.6;
}

.sr-hero-container {
    position: relative;
    z-index: 2;
}

.sr-hero-title {
    font-size: clamp(2.3rem, 4.5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.16;
    letter-spacing: -0.03em;
    color: var(--sr-text-primary);
    margin-bottom: 1.35rem;
}

.sr-hero-highlight {
    color: #0f4c81;
}

.sr-hero-intro {
    font-size: clamp(1.05rem, 1.4vw, 1.2rem);
    color: var(--sr-text-secondary);
    line-height: 1.68;
    margin-bottom: 2rem;
    max-width: 540px;
}

.sr-hero-pill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 2rem;
}

.sr-hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.4rem 0.85rem;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(8px);
    border: 1px solid var(--sr-border-subtle);
    border-radius: 9999px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--sr-text-primary);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

/* Hero Right Visual Card (Large, Rounded Product Visual with Soft Shadows) */
.sr-hero-network-card, .sr-hero-visual-card {
    background: #FFFFFF;
    border: 1px solid var(--sr-border-subtle);
    border-radius: var(--sr-radius-lg);
    box-shadow: 0 20px 45px rgba(17, 24, 39, 0.08);
    padding: 1.25rem;
    position: relative;
    overflow: hidden;
    transition: var(--sr-transition);
}

.sr-hero-network-card:hover, .sr-hero-visual-card:hover {
    box-shadow: 0 25px 55px rgba(17, 24, 39, 0.12);
    transform: translateY(-2px);
}

.sr-hero-network-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

/* Live Network Node Graph (SVG/Interactive) */
.sr-network-graphic {
    width: 100%;
    height: 380px;
    display: block;
}

.sr-node-pulse {
    animation: nodePulse 3s infinite ease-in-out;
}

@keyframes nodePulse {
    0%, 100% { transform: scale(1); opacity: 0.85; }
    50% { transform: scale(1.15); opacity: 1; filter: drop-shadow(0 0 10px #0ea5e9); }
}

.sr-line-glow {
    stroke-dasharray: 6;
    animation: lineDash 20s linear infinite;
}

@keyframes lineDash {
    to { stroke-dashoffset: -100; }
}

/* =====================================================================
   INNER PAGE HERO & STANDARDIZED VISUAL SYSTEM
   ===================================================================== */
.sr-page-hero {
    background: var(--sr-inner-hero-gradient);
    border-bottom: 1px solid var(--sr-border-subtle);
    padding: 3.25rem 0 3rem;
    position: relative;
    overflow: hidden;
}

/* Public breadcrumbs removed per UI refinement */
.sr-breadcrumb, nav[aria-label="breadcrumb"] {
    display: none !important;
}

.sr-page-hero-title {
    font-size: var(--sr-h1-size);
    font-weight: 800;
    line-height: 1.18;
    letter-spacing: -0.03em;
    color: var(--sr-text-primary);
    margin-top: 0;
    margin-bottom: 1rem;
    text-align: left;
}

.sr-page-hero-intro {
    font-size: clamp(1.05rem, 1.3vw, 1.18rem);
    color: var(--sr-text-secondary);
    line-height: 1.68;
    margin-bottom: 0;
    max-width: 680px;
    text-align: left;
}

.sr-page-hero-visual {
    position: relative;
    width: 100%;
}

.sr-hero-img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    aspect-ratio: 16/10;
    border-radius: var(--sr-radius-md);
}

/* =====================================================================
   SECTION HEADERS & CONTAINERS
   ===================================================================== */
.sr-section {
    padding: 3.25rem 0;
    position: relative;
    background-color: var(--sr-body-bg);
}

.sr-section-alt {
    background-color: var(--sr-section-alt-bg);
    border-top: 1px solid var(--sr-border-subtle);
    border-bottom: 1px solid var(--sr-border-subtle);
}

.sr-section-dark {
    background-color: #0f172a;
    color: #ffffff;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 3.25rem 0;
}

.sr-section-header {
    margin-bottom: 2rem;
}

.sr-section-title {
    font-size: clamp(1.85rem, 3.2vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    color: var(--sr-text-primary);
    margin-top: 0.35rem;
    margin-bottom: 0.65rem;
}

.sr-section-subtitle {
    font-size: 1.05rem;
    color: var(--sr-text-muted);
    max-width: 680px;
    line-height: 1.65;
}

/* =====================================================================
   CARDS & GRIDS (Consistent, Elegant, Subtle Borders & Soft Shadows)
   ===================================================================== */
.sr-card {
    background: var(--sr-card-bg);
    border: 1px solid var(--sr-border-subtle);
    border-radius: var(--sr-radius-lg);
    padding: 1.85rem;
    box-shadow: var(--sr-shadow-sm);
    transition: var(--sr-transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.sr-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--sr-shadow-md);
    border-color: var(--sr-border-strong);
}

/* Lead Fieldwork Spotlight Card (CATI) */
.sr-spotlight-card {
    background: #FFFFFF;
    border: 1.5px solid var(--sr-border-subtle);
    border-radius: var(--sr-radius-xl);
    padding: 2.5rem;
    color: var(--sr-text-primary);
    box-shadow: var(--sr-shadow-card);
    position: relative;
    overflow: hidden;
    height: 100%;
}

.sr-spotlight-card .sr-card-title {
    color: var(--sr-text-primary);
    font-size: 1.65rem;
}

.sr-spotlight-card .sr-card-text {
    color: var(--sr-text-secondary);
}

.sr-spotlight-card .text-white-50 {
    color: var(--sr-text-secondary) !important;
}

/* Service Card Components */
.sr-icon-box {
    width: 52px;
    height: 52px;
    border-radius: var(--sr-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.35rem;
    transition: var(--sr-transition);
}

.sr-icon-box-primary {
    background: var(--sr-primary-light);
    color: var(--sr-primary);
}

.sr-icon-box-cyan {
    background: rgba(6, 182, 212, 0.12);
    color: #0891b2;
}

.sr-icon-box-emerald {
    background: rgba(16, 185, 129, 0.12);
    color: #059669;
}

.sr-icon-box-indigo {
    background: rgba(99, 102, 241, 0.12);
    color: #4f46e5;
}

.sr-card:hover .sr-icon-box {
    transform: scale(1.08);
}

.sr-card-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--sr-text-primary);
}

.sr-card-text {
    font-size: 0.9375rem;
    color: var(--sr-text-secondary);
    flex-grow: 1;
    margin-bottom: 1.35rem;
    line-height: 1.6;
}

.sr-card-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: #0f4c81;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: var(--sr-transition);
    margin-top: auto;
}

.sr-card-link:hover {
    color: var(--sr-text-primary);
    transform: translateX(4px);
}

/* =====================================================================
   INDUSTRIES GRID
   ===================================================================== */
.sr-industry-card {
    background: #ffffff;
    border: 1px solid var(--sr-border-subtle);
    border-radius: var(--sr-radius-md);
    padding: 1.5rem;
    height: 100%;
    transition: var(--sr-transition);
    display: flex;
    flex-direction: column;
}

.sr-industry-card:hover {
    border-color: var(--sr-border-strong);
    box-shadow: var(--sr-shadow-md);
    transform: translateY(-3px);
}

.sr-industry-icon {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
}

.sr-industry-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--sr-text-primary);
    margin-bottom: 0.45rem;
}

.sr-industry-topics {
    font-size: 0.825rem;
    color: #64748b;
    margin-bottom: 1rem;
    flex-grow: 1;
}

/* =====================================================================
   GLOBAL COVERAGE NETWORK SECTION
   ===================================================================== */
.sr-coverage-card {
    background: #ffffff;
    border: 1px solid var(--sr-border-subtle);
    border-radius: var(--sr-radius-lg);
    padding: 1.75rem;
    color: var(--sr-text-primary);
    transition: var(--sr-transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.sr-coverage-card:hover {
    background: #ffffff;
    border-color: var(--sr-primary);
    transform: translateY(-4px);
    box-shadow: 0 10px 25px -5px rgba(15, 76, 129, 0.08);
}

.sr-coverage-region {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--sr-text-primary);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* =====================================================================
   WHY STRATA METRIX (4 PILLARS)
   ===================================================================== */
.sr-pillar-card {
    background: #ffffff;
    border: 1px solid var(--sr-light-border);
    border-radius: var(--sr-radius-lg);
    padding: 2.25rem 1.85rem;
    transition: var(--sr-transition);
    height: 100%;
}

.sr-pillar-card:hover {
    border-color: #38bdf8;
    box-shadow: var(--sr-shadow-md);
    transform: translateY(-3px);
}

.sr-pillar-num {
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: #cbd5e1;
    line-height: 1;
    margin-bottom: 1rem;
    transition: var(--sr-transition);
}

.sr-pillar-card:hover .sr-pillar-num {
    color: var(--sr-accent-teal);
}

/* =====================================================================
   EDITORIAL INSIGHTS & BLOGS
   ===================================================================== */
.sr-article-card {
    background: #ffffff;
    border: 1px solid var(--sr-light-border);
    border-radius: var(--sr-radius-lg);
    padding: 1.75rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: var(--sr-transition);
}

.sr-article-card:hover {
    border-color: #93c5fd;
    box-shadow: var(--sr-shadow-md);
    transform: translateY(-3px);
}

.sr-article-type {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.sr-article-title {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 0.75rem;
    color: #0f172a;
}

.sr-article-excerpt {
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 1.25rem;
    flex-grow: 1;
}

/* =====================================================================
   CLOSING CTA STRIP (High-Contrast Solid Brand Accent)
   ===================================================================== */
.sr-cta-banner {
    background: linear-gradient(135deg, #111827 0%, #1f2937 100%);
    border-radius: var(--sr-radius-xl);
    padding: 3.25rem 2.5rem;
    color: #ffffff;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.sr-cta-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 150%;
    height: 150%;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.1) 0%, transparent 60%);
    pointer-events: none;
}

/* =====================================================================
   ACCESSIBILITY & REDUCED MOTION
   ===================================================================== */
:focus-visible {
    outline: 2.5px solid var(--sr-accent-teal);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* =====================================================================
   RESPONSIVE OVERFLOW SAFEGUARDS & SECTION SPACING
   ===================================================================== */
@media (max-width: 1199.98px) {
    .sr-brand-logo {
        height: 42px;
        max-width: 230px;
    }
}

@media (max-width: 991.98px) {
    .sr-brand-logo {
        height: 40px;
        max-width: 216px;
    }
    .sr-hero {
        padding: 3rem 0 2.5rem;
        text-align: center;
    }
    .sr-hero-pill-list {
        justify-content: center;
    }
    .sr-hero-actions {
        justify-content: center;
    }
    .sr-page-hero {
        padding: 2.25rem 0 2rem;
    }
    .sr-section {
        padding: 2.75rem 0;
    }
    .sr-section-header {
        margin-bottom: 1.75rem;
    }
    .sr-cta-banner {
        padding: 2.5rem 1.5rem;
        text-align: center;
    }
}

@media (max-width: 767.98px) {
    .sr-hero {
        padding: 2.75rem 0 2.25rem;
    }
    .sr-page-hero {
        padding: 2rem 0 1.75rem;
    }
    .sr-section {
        padding: 2.5rem 0;
    }
    .sr-section-header {
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 575.98px) {
    .sr-brand-logo {
        height: 36px;
        max-width: 195px;
    }
    .sr-footer-logo {
        height: 42px;
        max-width: 228px;
    }
    .sr-hero {
        padding: 2.5rem 0 2rem;
    }
    .sr-hero-title {
        font-size: 2.15rem;
    }
    .sr-page-hero {
        padding: 1.75rem 0 1.5rem;
    }
    .sr-section {
        padding: 2.25rem 0;
    }
    .sr-card {
        padding: 1.35rem;
    }
    .sr-spotlight-card {
        padding: 1.5rem;
    }
    .sr-hero-pill {
        font-size: 0.775rem;
        padding: 0.35rem 0.75rem;
    }
    .sr-cta-banner {
        padding: 2rem 1.25rem;
    }
}

/* =====================================================================
   INNER PAGE DESIGN SYSTEM & TEMPLATES (Light Pastel Hero & High Contrast)
   ===================================================================== */

/* Page Hero inner layout */

.sr-page-hero-title {
    font-size: clamp(2rem, 3.8vw, 3.15rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.03em;
    color: var(--sr-text-primary);
    margin-bottom: 1.25rem;
}

.sr-page-hero-intro {
    font-size: clamp(1rem, 1.6vw, 1.2rem);
    color: var(--sr-text-secondary);
    line-height: 1.7;
    margin-bottom: 0;
    max-width: 820px;
}

/* Breadcrumbs (Refined Light Pill) */
.sr-breadcrumb {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--sr-border-subtle);
    border-radius: 9999px;
    padding: 0.4rem 1.15rem;
    font-size: 0.8125rem;
    display: inline-flex;
    align-items: center;
    margin-bottom: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.sr-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    color: var(--sr-text-muted);
    content: "/";
    padding: 0 0.5rem;
}

.sr-breadcrumb a {
    color: #0f4c81;
    text-decoration: none;
    font-weight: 500;
    transition: var(--sr-transition);
}

.sr-breadcrumb a:hover {
    color: #111111;
    text-decoration: underline;
}

.sr-breadcrumb .active {
    color: var(--sr-text-secondary);
    font-weight: 600;
}

/* Sidebar Widgets */
.sr-sidebar-cta {
    background: #FFFFFF;
    border: 1.5px solid var(--sr-border-subtle);
    border-radius: var(--sr-radius-md);
    box-shadow: var(--sr-shadow-card);
    color: var(--sr-text-primary);
}

/* Process Timeline (How We Work) */
.sr-process-timeline {
    position: relative;
}

.sr-process-step {
    position: relative;
}

.sr-step-badge {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0f4c81 0%, #0284c7 100%);
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #ffffff;
    box-shadow: 0 4px 15px rgba(15, 76, 129, 0.35);
}

/* Hover Lift Effect */
.hover-lift {
    transition: var(--sr-transition);
}

.hover-lift:hover {
    transform: translateY(-3px);
    box-shadow: var(--sr-shadow-md);
}

.hover-primary:hover {
    color: var(--sr-primary) !important;
}

/* Form Styling & Focus Enhancements */
.form-control, .form-select {
    border-color: #cbd5e1;
    border-radius: var(--sr-radius-sm);
    padding: 0.65rem 0.95rem;
    font-size: 0.9375rem;
    transition: var(--sr-transition);
}

.form-control:focus, .form-select:focus {
    border-color: #0ea5e9;
    box-shadow: 0 0 0 3.5px rgba(14, 165, 233, 0.18);
    outline: none;
}

.form-check-input:checked {
    background-color: var(--sr-primary);
    border-color: var(--sr-primary);
}

.form-check-input:focus {
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.2);
}

/* FAQ Accordion Styling */
.sr-faq-accordion .accordion-button {
    font-size: 1.05rem;
    color: #0f172a;
    background-color: #ffffff;
    border-radius: var(--sr-radius-md) !important;
    transition: var(--sr-transition);
}

.sr-faq-accordion .accordion-button:not(.collapsed) {
    color: var(--sr-primary);
    background-color: rgba(14, 165, 233, 0.05);
    box-shadow: none;
}

.sr-faq-accordion .accordion-button:focus {
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.2);
    border-color: #0ea5e9;
}

.sr-faq-accordion .accordion-item {
    background-color: #ffffff;
    border-color: #e2e8f0;
}

/* Article Reader Styling */
.sr-article-body {
    border-radius: var(--sr-radius-lg);
}

.article-prose p {
    margin-bottom: 1.5rem;
}

.article-prose h2, .article-prose h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #0f172a;
}

/* =====================================================================
   PHASE 5 — VIDEO SHOWCASE, CHATBOT & ANIMATION STYLES
   ===================================================================== */

/* Brand Video Showcase */
.sr-video-section {
    background: radial-gradient(circle at 50% 30%, #111e3b 0%, #070d1e 80%);
    position: relative;
    overflow: hidden;
}

.sr-video-wrapper {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sr-video-wrapper:hover {
    box-shadow: 0 20px 40px -15px rgba(6, 182, 212, 0.3) !important;
}

.btn-play-pulse:hover {
    transform: scale(1.08);
}

/* Floating Chatbot Widget */
.sr-chatbot-widget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1050;
    font-family: inherit;
}

.sr-chatbot-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0284c7 0%, #06b6d4 100%);
    color: #ffffff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
}

.sr-chatbot-toggle:hover {
    transform: scale(1.08);
    box-shadow: 0 10px 25px rgba(6, 182, 212, 0.45) !important;
}

.sr-chatbot-badge-pulse {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 14px;
    height: 14px;
    background: #10b981;
    border: 2px solid #0b132b;
    border-radius: 50%;
    animation: srPulseGreen 2s infinite;
}

@keyframes srPulseGreen {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.sr-chatbot-panel {
    position: absolute;
    bottom: 75px;
    right: 0;
    width: 360px;
    max-width: calc(100vw - 32px);
    background: #0b132b;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
    animation: srSlideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes srSlideUp {
    from { opacity: 0; transform: translateY(12px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.sr-chat-bubble {
    line-height: 1.5;
    word-break: break-word;
}

.btn-sr-chip {
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: #38bdf8;
    border-radius: 9999px;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-sr-chip:hover {
    background: rgba(56, 189, 248, 0.25);
    border-color: #38bdf8;
    color: #ffffff;
    transform: translateY(-1px);
}

/* Typing Indicator Animation */
.dot-flashing {
    letter-spacing: 2px;
    animation: srDots 1.4s infinite;
}

@keyframes srDots {
    0%, 20% { opacity: 0; }
    40% { opacity: 0.5; }
    60%, 100% { opacity: 1; }
}

/* Scroll-triggered reveal animations */
.sr-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Prefers-reduced-motion Accessibility */
@media (prefers-reduced-motion: reduce) {
    .sr-reveal {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    .sr-chatbot-panel {
        animation: none !important;
    }
    .btn-play-pulse {
        animation: none !important;
    }
    .sr-chatbot-badge-pulse {
        animation: none !important;
    }
}

