/**
 * Ritedev Technologies — Design System v4
 * Electric Navy family. Flat colours only. No gradients.
 */

/* ─────────────── TOKENS ─────────────── */
:root {
    --navy:           #1034A6;   /* hero bg, footer bg, primary CTA bg */
    --navy-bright:    #1A4FD6;   /* hover states, ticker bg, footer bg */
    --navy-sky:       #2D6BE4;   /* card accents, icon colours, borders */
    --navy-electric:  #4D8EF0;   /* tags, badges, stat highlights */
    --cloud:          #E8F0FE;   /* light section backgrounds, card tints */
    --page-surface:   #F4F7FF;   /* overall page bg between sections */
    --card-bg:        #FFFFFF;   /* all content cards */
    --text-dark:      #1A1A2E;   /* headings and body on light backgrounds */
    --text-mid:       #4A4A6A;   /* captions, metadata, secondary copy */
    --hero-sub:       #B8C8F0;   /* subheadline and small text on dark navy */
    --footer-bg:      #050A1F;   /* Very dark navy for footer */
    --gold:           #F5B800;   /* section labels, hero underline, active nav, icon hover */

    --radius-btn:     50px;
    --radius-card:    16px;
    --radius-sm:      8px;

    --shadow-card:    0 2px 16px rgba(16, 52, 166, 0.08);
    --shadow-hover:   0 8px 32px rgba(16, 52, 166, 0.16);

    --font-display:   'Google Sans Flex', sans-serif;
    --font-body:      'Inter', sans-serif;
}

/* ─────────────── RESET ─────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    background: var(--page-surface);
    color: var(--text-dark);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    overflow-wrap: break-word;
    word-wrap: break-word;
}
img, video, iframe, canvas { max-width: 100%; height: auto; }

/* ─────────────── TYPOGRAPHY ─────────────── */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.1;
}

/* ─────────────── SECTION LABEL ─────────────── */
.section-label {
    font-family: 'Google Sans Flex', sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold);
    display: block;
    margin-bottom: 1.25rem;
}

/* ─────────────── NAV ─────────────── */
.site-nav {
    background: var(--navy);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 68px;
    display: flex;
    align-items: center;
}

.nav-inner {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 1180px;
    margin-inline: auto;
    padding-inline: 1.5rem;
    gap: 2rem;
}

.nav-logo {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
    flex-shrink: 0;
}
.nav-logo img { height: 28px; width: auto; }
.logo-white { filter: brightness(0) invert(1); }

.nav-links {
    display: flex;
    align-items: center;
    gap: 0;
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    padding: 0.45rem 1rem;
    border-radius: var(--radius-btn);
    transition: color 0.2s, background 0.2s;
    position: relative;
}

.nav-links a:hover { color: white; }

.nav-links a.active {
    color: white;
}

/* Gold active indicator dot */
.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--gold);
}

.nav-ctas { margin-left: auto; display: flex; align-items: center; gap: 0.75rem; }

/* ─────────────── BUTTONS ─────────────── */

/* Primary: light bg context */
.btn-primary-rd {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    background: var(--navy);
    color: white !important;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-btn);
    text-decoration: none !important;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}
.btn-primary-rd:hover { background: var(--navy-bright); }

/* Secondary: light bg context */
.btn-secondary-rd {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    background: transparent;
    color: var(--navy) !important;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    border: 2px solid var(--navy);
    border-radius: var(--radius-btn);
    text-decoration: none !important;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
}
.btn-secondary-rd:hover { background: var(--navy); color: white !important; }

/* On-dark: white button for dark navy backgrounds */
.btn-ondark-rd {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    background: white;
    color: var(--navy) !important;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-btn);
    text-decoration: none !important;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}
.btn-ondark-rd:hover { background: var(--cloud); }
 
/* Gold Button: DRAMATIC calling attention */
.btn-gold-rd {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px 48px;
    background: var(--gold);
    color: var(--navy) !important;
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    border-radius: var(--radius-btn);
    text-decoration: none !important;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    white-space: nowrap;
    box-shadow: 0 10px 30px rgba(245, 184, 0, 0.3);
    position: relative;
    overflow: hidden;
    animation: pulse-gold 2s infinite;
}

.btn-gold-rd:hover { 
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 20px 50px rgba(245, 184, 0, 0.5);
    background: #FFD700;
}

.btn-gold-rd:active {
    transform: scale(0.98);
}

@keyframes pulse-gold {
    0% { box-shadow: 0 0 0 0 rgba(245, 184, 0, 0.6); }
    70% { box-shadow: 0 0 0 20px rgba(245, 184, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(245, 184, 0, 0); }
}

/* ─────────────── CARDS ─────────────── */
.card-rd {
    background: var(--card-bg);
    border-radius: var(--radius-card);
    padding: 2rem;
    box-shadow: var(--shadow-card);
    border: 1px solid transparent;
    transition: box-shadow 0.25s, border-color 0.25s;
}

.card-rd:hover {
    box-shadow: var(--shadow-hover);
}

/* ─────────────── SERVICE ICON CARD ─────────────── */
.service-card {
    background: var(--card-bg);
    border-radius: var(--radius-card);
    padding: 2rem;
    box-shadow: var(--shadow-card);
    border: 1px solid transparent;
    transition: box-shadow 0.25s, border-color 0.25s;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-card:hover {
    box-shadow: var(--shadow-hover);
    border-color: var(--navy-sky);
}

.service-card .icon-wrap {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: var(--cloud);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: var(--navy-sky);
    margin-bottom: 1.25rem;
    transition: color 0.2s, background 0.2s;
    flex-shrink: 0;
}

.service-card:hover .icon-wrap {
    color: var(--gold);
    background: var(--cloud);
}

/* ─────────────── LAYOUT ─────────────── */
.container {
    max-width: 1180px;
    margin-inline: auto;
    padding-inline: 1.5rem;
}

section { padding: 96px 0; }

/* ─────────────── TICKER ─────────────── */
.ticker-outer {
    background: var(--navy-bright);
    overflow: hidden;
    padding: 16px 0;
}

.ticker-track {
    display: flex;
    gap: 60px;
    width: max-content;
    animation: ticker 30s linear infinite;
}

.ticker-item {
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    font-weight: 600;
    font-size: 0.85rem;
    color: white;
}

@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ─────────────── HERO ANIMATION ─────────────── */
.hero-line {
    display: block;
    opacity: 0;
    transform: translateY(24px);
    animation: heroFadeIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-line:nth-child(2) { animation-delay: 0.3s; }

@keyframes heroFadeIn {
    to { opacity: 1; transform: translateY(0); }
}

.hero-underline {
    position: relative;
    display: inline;
}

.hero-underline::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 100%;
    height: 4px;
    background: var(--gold);
    border-radius: 2px;
    animation: underlinePulse 0.8s ease 0.9s both;
}

@keyframes underlinePulse {
    0%   { opacity: 0; transform: scaleX(0); transform-origin: left; }
    60%  { opacity: 1; transform: scaleX(1.08); }
    100% { opacity: 1; transform: scaleX(1); }
}

/* ─────────────── HERO BG WITH OVERLAY ─────────────── */
.hero-animated-bg {
    background: linear-gradient(rgba(13, 27, 110, 0.7), rgba(5, 10, 31, 0.8)), url('../img/bg.jpg') no-repeat center center;
    background-size: cover;
    background-attachment: fixed;
}

/* ─────────────── SKELETON ─────────────── */
.skeleton-rd {
    background: #e8ecf5;
    background: linear-gradient(110deg, #e8ecf5 8%, #f0f4ff 18%, #e8ecf5 33%);
    border-radius: var(--radius-card);
    background-size: 200% 100%;
    animation: shimmer 1.5s linear infinite;
}

@keyframes shimmer { to { background-position-x: -200%; } }

/* ─────────────── TOAST ─────────────── */
#toast-container {
    position: fixed;
    top: 86px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toast-rd {
    padding: 14px 18px;
    border-radius: 10px;
    background: var(--navy);
    color: white;
    font-size: 0.88rem;
    font-weight: 500;
    box-shadow: 0 8px 24px rgba(16,52,166,0.22);
    display: flex;
    align-items: center;
    gap: 10px;
    animation: toastIn 0.35s ease;
    min-width: 240px;
}

.toast-rd.success { border-left: 4px solid #22c55e; }
.toast-rd.error   { border-left: 4px solid #ef4444; }
.toast-rd.info    { border-left: 4px solid var(--gold); }

@keyframes toastIn {
    from { opacity: 0; transform: translateX(32px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* ─────────────── INPUT ─────────────── */
.input-rd {
    width: 100%;
    padding: 13px 18px;
    border: 1.5px solid rgba(16,52,166,0.18);
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-dark);
    background: white;
    transition: border-color 0.2s;
    outline: none;
}

.input-rd:focus { border-color: var(--navy); }
.input-rd::placeholder { color: #9AA5B4; }
.input-rd.on-dark {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.2);
    color: white;
}
.input-rd.on-dark::placeholder { color: rgba(255,255,255,0.45); }

/* ─────────────── PROOF RESULT CARD ─────────────── */
.result-card {
    background: var(--card-bg);
    border-radius: var(--radius-card);
    padding: 1.75rem;
    box-shadow: var(--shadow-card);
    border-left: 4px solid var(--navy-sky);
}

/* ─────────────── PRICING CARD ─────────────── */
.pricing-card {
    background: var(--card-bg);
    border-radius: var(--radius-card);
    padding: 2rem;
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(16,52,166,0.08);
    transition: box-shadow 0.25s, transform 0.25s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
}

.pricing-card .price-num {
    font-family: var(--font-display);
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--navy);
    line-height: 1;
}

/* ─────────────── COMMUNITY LIST ─────────────── */
.community-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.community-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gold);
    flex-shrink: 0;
    margin-top: 8px;
}

/* ─────────────── FOOTER ─────────────── */
.site-footer {
    background: var(--footer-bg);
    color: rgba(255,255,255,0.65);
    padding: 72px 0 40px;
}

.site-footer h6 {
    color: white;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}

.site-footer a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-size: 0.9rem;
    line-height: 2.1;
    transition: color 0.2s;
}

.site-footer a:hover { color: white; }

/* ─────────────── MOBILE OFFCANVAS ─────────────── */
.mobile-nav-offcanvas .offcanvas-header { background: var(--navy); }
.mobile-nav-offcanvas .offcanvas-body   { background: var(--page-surface); }

/* ─────────────── RESPONSIVE ─────────────── */
@media (max-width: 992px) {
    section { padding: 64px 0; }
    .nav-links { display: none; }
}

@media (max-width: 576px) {
    h1 { font-size: clamp(2rem, 9vw, 3rem); }
    h2 { font-size: clamp(1.6rem, 7vw, 2.4rem); }
}
/* ─────────────── BADGES ─────────────── */
.badge {
    padding: 0.5em 1em !important;
    font-weight: 600 !important;
    letter-spacing: 0.02em;
}
.bg-cloud {
    background-color: var(--cloud) !important;
    color: var(--navy) !important;
}
.bg-navy {
    background-color: var(--navy) !important;
    color: white !important;
}
.bg-gold {
    background-color: var(--gold) !important;
    color: var(--navy) !important;
}
.bg-navy-sky {
    background-color: var(--navy-sky) !important;
    color: white !important;
}
/* ─────────────── PRICING SCROLL ─────────────── */
.pricing-scroll-container {
    overflow: hidden;
    padding: 20px 0;
    cursor: grab;
}
.pricing-track {
    display: flex;
    gap: 30px;
    width: max-content;
    animation: pricingScroll 60s linear infinite;
}
.pricing-track:hover {
    animation-play-state: paused;
}
@keyframes pricingScroll {
    from { transform: translateX(0); }
    to { transform: translateX(calc(-50% - 15px)); }
}
