/* =========================================
   RMI GLOBAL - COMPLETE STYLESHEET
   ========================================= */

/* --- 1. CSS Variables (Brand Guidelines) --- */
:root {
    --color-navy: #0b1c3a;
    --color-navy-dark: #071226;
    --color-copper: #c86b28;
    --color-copper-hover: #a8561d;
    --color-white: #ffffff;
    --color-off-white: #f8f9fa;
    --color-text-dark: #333333;
    --color-text-light: #e0e0e0;
    
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    --transition-speed: 0.3s;
}

/* --- 2. Global Reset & Typography --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--color-text-dark);
    line-height: 1.6;
    background-color: var(--color-off-white);
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.mt-2 { margin-top: 2rem; }
.text-center { text-align: center; }

/* --- 3. Navigation & Hamburger Menu --- */
.main-nav {
    background-color: var(--color-white);
    padding: 20px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 9999;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-family: var(--font-heading);
    color: var(--color-navy);
    font-size: 1.5rem;
    letter-spacing: 1px;
}

.logo span {
    color: var(--color-copper);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 300;
    margin-left: 5px;
}

.nav-links {
    display: flex;
    align-items: center;
}

.nav-links a {
    color: var(--color-navy);
    margin-left: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-links a:hover {
    color: var(--color-copper);
}

.hamburger {
    display: none;
}

/* Bulletproof Mobile Nav Logic */
@media (max-width: 900px) {
    .hamburger {
        display: block;
        font-size: 1.8rem;
        cursor: pointer;
        color: var(--color-navy);
        z-index: 1001;
    }
    
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--color-white);
        flex-direction: column;
        align-items: center;
        max-height: 0;
        overflow: hidden;
        padding: 0;
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
        transition: max-height 0.4s ease-in-out, padding 0.4s ease-in-out;
        z-index: 1000;
    }

    .nav-links.active {
        max-height: 400px;
        padding: 20px 0;
    }

    .nav-links a {
        margin: 15px 0;
        display: block;
    }
}

/* --- 4. Buttons --- */
.btn {
    display: inline-block;
    padding: 12px 28px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 2px;
    cursor: pointer;
}

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

.btn-primary:hover {
    background-color: var(--color-copper-hover);
    color: var(--color-white);
}

.btn-secondary {
    background-color: var(--color-white);
    color: var(--color-navy);
    border: 1px solid var(--color-white);
}

.btn-secondary:hover {
    background-color: rgba(255,255,255,0.9);
}

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

.btn-outline:hover {
    background-color: var(--color-navy);
    color: var(--color-white);
}

/* --- 5. Hero Section --- */
.hero {
    background-color: var(--color-navy);
    color: var(--color-white);
    padding: 120px 0;
    text-align: center;
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--color-text-light);
    max-width: 700px;
    margin: 0 auto 40px auto;
}

.hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
}

@media (max-width: 768px) {
    .hero-title { font-size: 2.5rem; }
    .hero-actions { flex-direction: column; align-items: center; }
}

/* --- 6. Sections & Grid Layout --- */
.section {
    padding: 100px 0;
}

.bg-white { background-color: var(--color-white); }
.bg-navy { background-color: var(--color-navy); color: var(--color-white); }
.bg-off-white { background-color: var(--color-off-white); }

.section-header {
    text-align: left;
    margin-bottom: 60px;
    max-width: 600px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--color-navy);
}

.section-header.dark-mode h2 {
    color: var(--color-white);
}

.copper-line {
    width: 60px;
    height: 3px;
    background-color: var(--color-copper);
    margin-bottom: 20px;
}

.grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

/* --- 7. Cards --- */
.card {
    background: var(--color-white);
    padding: 40px;
    border-top: 4px solid transparent;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    border-top: 4px solid var(--color-copper);
}

.card h3 {
    color: var(--color-navy);
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.dark-card {
    background: var(--color-navy-dark);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.dark-card h3 { color: var(--color-white); }
.dark-card p { color: var(--color-text-light); }

/* --- 8. Product Detail Tabbed UI --- */
.product-hero {
    background: linear-gradient(135deg, var(--color-navy-dark) 0%, var(--color-navy) 100%);
    padding: 100px 0 60px;
    color: var(--color-white);
    text-align: center;
}

.tabs-container {
    max-width: 1000px;
    margin: -40px auto 60px;
    background: var(--color-white);
    border-radius: 4px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    position: relative;
    z-index: 10;
}

.tabs-header {
    display: flex;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    overflow-x: auto;
}

.tab-btn {
    flex: 1;
    padding: 20px;
    background: none;
    border: none;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-navy);
    cursor: pointer;
    position: relative;
    transition: color 0.3s;
}

.tab-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--color-copper);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.tab-btn.active { color: var(--color-copper); }
.tab-btn.active::after { transform: scaleX(1); }

.tab-content-area {
    padding: 60px 40px;
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-content-area.active { display: block; }

.split-feature {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.feature-text h3 {
    color: var(--color-navy);
    font-size: 2rem;
    margin-bottom: 20px;
}

.feature-list {
    list-style: none;
    margin-top: 20px;
}

.feature-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 15px;
}

.feature-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--color-copper);
    font-weight: bold;
}

.feature-image-placeholder {
    width: 100%;
    height: 350px;
    background: var(--color-off-white);
    border: 1px solid #eaeaea;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-light);
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
}

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

@media (max-width: 768px) {
    .split-feature { grid-template-columns: 1fr; }
    .tabs-header { flex-direction: column; }
}

/* --- 9. 4-Column Enterprise Footer --- */
.main-footer {
    background-color: var(--color-navy-dark);
    color: var(--color-white);
    padding: 80px 0 40px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    text-align: left;
    margin-bottom: 40px;
}

.footer-col h3 {
    color: var(--color-white);
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.footer-col h3 span {
    color: var(--color-copper);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 300;
}

.footer-col h4 {
    color: var(--color-white);
    font-size: 1.1rem;
    margin-bottom: 20px;
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-col a, .footer-col p {
    color: rgba(255,255,255,0.6);
    display: block;
    margin-bottom: 12px;
    font-size: 0.9rem;
}

.footer-col a:hover {
    color: var(--color-copper);
    transform: translateX(5px);
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* --- 10. Hero Carousel --- */
.hero-carousel {
    position: relative;
    height: 80vh;
    min-height: 600px;
    overflow: hidden;
    background-color: var(--color-navy);
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    display: flex;
    align-items: center;
    z-index: 1;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 2;
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(11,28,58,0.9) 0%, rgba(11,28,58,0.6) 40%, rgba(11,28,58,0.1) 100%);
    z-index: -1;
}

.hero-carousel .hero-content {
    text-align: left;
    max-width: 800px;
    margin: 0;
    color: var(--color-white);
}

.carousel-nav {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 15px;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    border: none;
    cursor: pointer;
    transition: background 0.3s ease;
}

.carousel-dot.active {
    background: var(--color-copper);
    transform: scale(1.2);
}

/* --- 11. Client Logo Ticker (Infinite Scroll) --- */
.logo-slider {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    width: 100%;
}

.logo-slider::before,
.logo-slider::after {
    content: "";
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 2;
}
.logo-slider::before {
    left: 0;
    background: linear-gradient(to right, white 0%, rgba(255,255,255,0) 100%);
}
.logo-slider::after {
    right: 0;
    background: linear-gradient(to left, white 0%, rgba(255,255,255,0) 100%);
}

.logo-track {
    display: inline-block;
    animation: scrollLogos 30s linear infinite;
}

.logo-track:hover {
    animation-play-state: paused;
}

.logo-slide {
    display: inline-block;
    margin: 0 40px;
    vertical-align: middle;
}

.logo-slide img {
    height: 40px;
    width: auto;
    filter: grayscale(100%) opacity(0.6);
    transition: filter 0.3s ease;
}

.logo-slide img:hover {
    filter: grayscale(0%) opacity(1);
}

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