/* ═══════════════════════════════════════════════════════════════════
   RM Group Strategies LLC — Custom Styles
   Shared animations, brand tokens, and custom CSS
   ═══════════════════════════════════════════════════════════════════ */

/* ── Brand Tokens ──────────────────────────────────────────────── */
:root {
    --brand-black: #0F172A;
    --brand-navy: #0B1727;
    --brand-gold: #C5A059;
    --brand-gold-accent: #D4AF37;
    --brand-white: #FFFFFF;
    --brand-dark-gray: #1E293B;
    --brand-slate-light: #F8FAFC;
    --brand-slate-border: #E2E8F0;
    --brand-gold-rgb: 197, 160, 89;
}

/* ── Base Resets ───────────────────────────────────────────────── */
html, body {
    overflow-x: hidden;
    max-width: 100vw;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--brand-slate-light);
    color: #1E293B;
}

/* ── Shield / Monogram ─────────────────────────────────────────── */
@keyframes shimmer {
    0%   { background-position: -200% center; }
    100% { background-position: 200% center; }
}

.shield-shimmer {
    background: linear-gradient(
        110deg,
        #D4AF37 0%, #D4AF37 35%,
        #FFD700 50%,
        #D4AF37 65%, #D4AF37 100%
    );
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 4s ease-in-out infinite;
}

.shield {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.shield-lg  { width: 120px; height: 140px; }
.shield-sm  { width: 40px;  height: 46px;  }
.shield-md  { width: 60px;  height: 70px;  }

.shield-border {
    position: absolute;
    inset: -2px;
    background: linear-gradient(180deg, #D4AF37 0%, #8B7225 100%);
    clip-path: polygon(50% 0%, 100% 12%, 100% 70%, 50% 100%, 0% 70%, 0% 12%);
    z-index: 0;
}

.shield-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, #1E1E1E 0%, #0A0A0A 100%);
    clip-path: polygon(50% 0%, 100% 12%, 100% 70%, 50% 100%, 0% 70%, 0% 12%);
    z-index: 1;
}

.shield-text {
    position: relative;
    z-index: 2;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.shield-lg .shield-text { font-size: 2.25rem; }
.shield-sm .shield-text { font-size: 0.875rem; }
.shield-md .shield-text { font-size: 1.25rem; }

/* ── Gold Divider ──────────────────────────────────────────────── */
.gold-divider {
    width: 80px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #D4AF37, transparent);
}

.gold-divider-lg {
    width: 120px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #D4AF37, transparent);
}

/* ── Dot Separator ─────────────────────────────────────────────── */
.dot-separator {
    display: inline-block;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background-color: #D4AF37;
    vertical-align: middle;
    margin: 0 0.5rem;
}

/* ── Animations ────────────────────────────────────────────────── */
@keyframes fadeInUp {
    0%   { opacity: 0; transform: translateY(28px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes pulseGold {
    0%, 100% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0); }
    50%      { box-shadow: 0 0 16px 3px rgba(212, 175, 55, 0.2); }
}

@keyframes bounceDown {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(6px); }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

.animate-delay-100 { animation-delay: 0.1s; }
.animate-delay-200 { animation-delay: 0.2s; }
.animate-delay-300 { animation-delay: 0.3s; }
.animate-delay-400 { animation-delay: 0.4s; }
.animate-delay-500 { animation-delay: 0.5s; }
.animate-delay-600 { animation-delay: 0.6s; }
.animate-delay-700 { animation-delay: 0.7s; }

/* ── Scroll-triggered animations ───────────────────────────────── */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered children within a scroll-animated container */
.animate-on-scroll .stagger-child {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.animate-on-scroll.is-visible .stagger-child:nth-child(1) { transition-delay: 0.05s; opacity: 1; transform: translateY(0); }
.animate-on-scroll.is-visible .stagger-child:nth-child(2) { transition-delay: 0.10s; opacity: 1; transform: translateY(0); }
.animate-on-scroll.is-visible .stagger-child:nth-child(3) { transition-delay: 0.15s; opacity: 1; transform: translateY(0); }
.animate-on-scroll.is-visible .stagger-child:nth-child(4) { transition-delay: 0.20s; opacity: 1; transform: translateY(0); }
.animate-on-scroll.is-visible .stagger-child:nth-child(5) { transition-delay: 0.25s; opacity: 1; transform: translateY(0); }
.animate-on-scroll.is-visible .stagger-child:nth-child(6) { transition-delay: 0.30s; opacity: 1; transform: translateY(0); }
.animate-on-scroll.is-visible .stagger-child:nth-child(7) { transition-delay: 0.35s; opacity: 1; transform: translateY(0); }

/* ── Executive Card Styles (HCI Dark Tone Contrast) ────────────── */
.card-executive {
    background: #0B1727;
    color: #FFFFFF;
    border: 1px solid rgba(197, 160, 89, 0.35);
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.4), 0 0 15px rgba(197, 160, 89, 0.08);
    border-radius: 0.85rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-executive h3, 
.card-executive h4 {
    color: #FFFFFF !important;
}

.card-executive p {
    color: rgba(248, 250, 252, 0.82) !important;
}

.card-executive:hover {
    border-color: #C5A059;
    box-shadow: 0 16px 36px -4px rgba(0, 0, 0, 0.5), 0 0 25px rgba(197, 160, 89, 0.25);
    transform: translateY(-4px);
}

.card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    border-color: rgba(197, 160, 89, 0.4);
}

/* ── Contact Link Hover ────────────────────────────────────────── */
.contact-link {
    transition: color 0.3s ease, border-color 0.3s ease;
}

.contact-link:hover {
    color: #C5A059;
}

/* ── CTA Button Styles ─────────────────────────────────────────── */
.btn-gold {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    background: linear-gradient(135deg, #C5A059, #A68037);
    color: #FFFFFF;
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(197, 160, 89, 0.25);
}

.btn-gold:hover {
    background: linear-gradient(135deg, #D4AF37, #C5A059);
    box-shadow: 0 6px 20px rgba(197, 160, 89, 0.4);
    transform: translateY(-1px);
    color: #FFFFFF;
}

.btn-outline-gold {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    background: transparent;
    color: #B8860B;
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    border: 1px solid rgba(197, 160, 89, 0.6);
    border-radius: 0.375rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-outline-gold:hover {
    background: rgba(197, 160, 89, 0.08);
    border-color: #C5A059;
    color: #8B6508;
    transform: translateY(-1px);
}

.btn-outline-white {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    background: transparent;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 0.375rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-outline-white:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.6);
    color: #FFFFFF;
    transform: translateY(-1px);
}

/* ── Navigation ────────────────────────────────────────────────── */
.nav-link {
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    width: 0;
    height: 2px;
    background: #C5A059;
    transition: width 0.3s ease, left 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
    left: 0;
}

.nav-link:hover,
.nav-link.active {
    color: #C5A059;
}

/* Dropdown Menu Container */
.nav-dropdown {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    background: rgba(11, 23, 39, 0.98); /* Rich navy-black background */
    border: 1px solid rgba(197, 160, 89, 0.35); /* Subtle gold border */
    border-radius: 0.75rem;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.75), 0 0 20px rgba(197, 160, 89, 0.15);
}

.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

/* Dropdown Menu Items */
.dropdown-item {
    position: relative;
    color: #F8FAFC; /* Vibrant text */
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 3px solid transparent;
}

.dropdown-item:hover,
.dropdown-item.active {
    color: #D4AF37 !important; /* Gold text */
    background: linear-gradient(90deg, rgba(197, 160, 89, 0.18) 0%, rgba(197, 160, 89, 0.04) 100%); /* Gold background highlight */
    border-left-color: #C5A059; /* Left gold accent bar */
    padding-left: 1.35rem; /* Smooth left shift */
}

.dropdown-item-overview {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Mobile nav */
.mobile-nav {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.mobile-nav.is-open {
    max-height: 600px;
}

/* ── Section Heading ───────────────────────────────────────────── */
.section-heading {
    text-align: center;
    margin-bottom: 3rem;
}

.section-heading h2 {
    font-size: 1.875rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: #0F172A;
    margin-bottom: 1rem;
}

.section-heading.dark-section h2 {
    color: #FFFFFF;
}

.section-heading .gold-divider-lg {
    margin: 0 auto 1rem auto;
}

.section-heading p {
    color: #475569;
    max-width: 42rem;
    margin: 0 auto;
    line-height: 1.7;
}

.section-heading.dark-section p {
    color: rgba(255, 255, 255, 0.75);
}

/* ── Badge Pill ────────────────────────────────────────────────── */
.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-left: 3px solid #C5A059;
    border-radius: 0.375rem;
    font-size: 0.8125rem;
    color: #334155;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
    transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.badge-pill:hover {
    border-color: rgba(197, 160, 89, 0.5);
    background: #F8FAFC;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

/* ── Hero Overlay ──────────────────────────────────────────────── */
.hero-overlay {
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.85) 0%,
        rgba(0, 0, 0, 0.6) 40%,
        rgba(0, 0, 0, 0.7) 70%,
        rgba(0, 0, 0, 0.95) 100%
    );
}

/* ── Hero Background Crossfade Slideshow ───────────────────────── */
.hero-bg-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.6s ease-in-out;
    will-change: opacity;
}
.hero-bg-slide.active {
    opacity: 1;
}

/* ── Scroll Down Chevron ───────────────────────────────────────── */
.scroll-indicator {
    animation: bounceDown 2s ease-in-out infinite;
}

/* ── Gold Accent Link ──────────────────────────────────────────── */
.gold-link {
    color: #D4AF37;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.gold-link:hover {
    color: #FFD700;
}

.gold-link svg {
    transition: transform 0.3s ease;
}

.gold-link:hover svg {
    transform: translateX(4px);
}

/* ── Mobile Navigation Drawer ──────────────────────────────────── */
.mobile-nav {
    display: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    opacity: 0;
}

.mobile-nav.is-open {
    display: block;
    max-height: 600px;
    opacity: 1;
}

/* ── Animated Service Line Ticker & Gold Glow ──────────────────── */
@keyframes ticker-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes gold-text-pulse {
    0%, 100% {
        color: #D4AF37;
        text-shadow: 0 0 4px rgba(212, 175, 55, 0.2);
    }
    50% {
        color: #FFD700;
        text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    }
}

.service-ticker-wrapper {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0 auto 1.5rem auto;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.service-ticker-track {
    display: flex;
    flex-wrap: nowrap;
    white-space: nowrap;
    width: max-content;
    animation: ticker-scroll 22s linear infinite;
}

.service-ticker-wrapper:hover .service-ticker-track {
    animation-play-state: paused;
}

.service-ticker-item {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    white-space: nowrap;
    flex-shrink: 0;
    animation: gold-text-pulse 4s ease-in-out infinite;
    transition: color 0.3s ease, transform 0.3s ease;
}

.service-ticker-item:hover {
    color: #FFD700;
    transform: scale(1.05);
}

/* ── Premium Glassmorphism & Card Utilities ───────────────────── */
.glass-card {
    background: rgba(30, 30, 30, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
    background: rgba(30, 30, 30, 0.85);
    border-color: rgba(212, 175, 55, 0.4);
    transform: translateY(-3px);
    box-shadow: 0 12px 40px 0 rgba(212, 175, 55, 0.15);
}

.gradient-text-gold {
    background: linear-gradient(135deg, #FFFFFF 0%, #E2E8F0 40%, #D4AF37 80%, #FFD700 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gold-glow-border {
    position: relative;
    border: 1px solid rgba(212, 175, 55, 0.25);
    transition: all 0.3s ease;
}

.gold-glow-border:hover {
    border-color: rgba(212, 175, 55, 0.7);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.25);
}

.metric-pill {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(212, 175, 55, 0.25);
    transition: all 0.3s ease;
}

.metric-pill:hover {
    border-color: rgba(212, 175, 55, 0.6);
    background: rgba(212, 175, 55, 0.08);
}
