/* =========================================================
   ROOVAA VISUAL SYSTEM
   ========================================================= */

:root {
    --roova-orange: #ff6a00;
    --roova-orange-dark: #e85d00;
    --roova-cream: #f4f6f7;
    --roova-ink: #f4f6f7;
    --roova-muted: #aab4b9;
    --galaxy-black: #050607;
    --seal-gray: #62717a;
    --seal-dark: #11181b;
}


/* =========================================================
   ROOVAA HOMEPAGE HERO SLIDESHOW
   ========================================================= */

.roova-hero-slide {
    position: absolute;
    inset: 0;

    opacity: 0;

    pointer-events: none;

    transition:
        opacity 900ms ease;
}


.roova-hero-slide.is-active {
    opacity: 1;
}


.roova-hero-slide img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    object-position: center;

    transform: scale(1.02);

    transition:
        transform 7s ease;
}


.roova-hero-slide.is-active img {
    transform: scale(1.07);
}


/*
A dark transparent layer stays above every image,
but below the headline.

This keeps white text readable even when the
background photograph is bright.
*/
.roova-hero-overlay {
    background:
        linear-gradient(
            180deg,
            rgba(5, 8, 15, 0.72) 0%,
            rgba(5, 8, 15, 0.78) 50%,
            rgba(5, 8, 15, 0.85) 100%
        );
}


/* ---------- GLASS ELEMENTS ---------- */

.roova-glass {
    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.20);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}


/* ---------- IMAGE CARDS ---------- */

.roova-image-card {
    position: relative;
    overflow: hidden;
}

.roova-image-card img {
    transition:
        transform 500ms ease,
        filter 500ms ease;
}

.roova-image-card:hover img {
    transform: scale(1.07);
}

.roova-image-card-overlay {
    position: absolute;
    inset: 0;

    pointer-events: none;

    background:
        linear-gradient(
            to top,
            rgba(10, 15, 25, 0.92) 0%,
            rgba(10, 15, 25, 0.72) 38%,
            rgba(10, 15, 25, 0.30) 75%,
            rgba(10, 15, 25, 0.16) 100%
        );
}


/* ---------- REVEAL ANIMATION ---------- */

.roova-reveal {
    opacity: 0;
    transform: translateY(24px);

    transition:
        opacity 650ms ease,
        transform 650ms ease;
}

.roova-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}


/* ---------- PREMIUM CARD ---------- */

.roova-premium-card {
    transition:
        transform 250ms ease,
        box-shadow 250ms ease,
        border-color 250ms ease;
}

.roova-premium-card:hover {
    transform: translateY(-6px);

    box-shadow:
        0 24px 60px rgba(17, 24, 39, 0.12);
}


/* ---------- HORIZONTAL VISUAL RAIL ---------- */

.roova-visual-rail {
    overflow-x: auto;

    scrollbar-width: none;

    scroll-snap-type: x mandatory;
}

.roova-visual-rail::-webkit-scrollbar {
    display: none;
}

.roova-visual-rail > * {
    scroll-snap-align: start;
}


/* Accessibility */

@media (prefers-reduced-motion: reduce) {

    .roova-hero-slide,
    .roova-hero-slide img,
    .roova-reveal,
    .roova-premium-card,
    .roova-image-card img {
        transition: none !important;
        animation: none !important;
    }
}

/* =========================================================
   ROOVAA PREMIUM COMPONENT SYSTEM
   ========================================================= */
:root {
    --rv-primary: #ff6a00;
    --rv-primary-hover: #e85d00;
    --rv-page: #050607;
    --rv-surface: #11181b;
    --rv-ink: #f4f6f7;
    --rv-muted: #aab4b9;
    --rv-border: #344149;
    --rv-radius: 20px;
    --rv-shadow: 0 10px 32px rgba(0, 0, 0, .24);
    --rv-shadow-hover: 0 20px 48px rgba(0, 0, 0, .38);
}

.rv-container { width: min(calc(100% - 32px), 1280px); margin-inline: auto; }
.rv-section { padding-block: clamp(40px, 6vw, 80px); }
.rv-panel, .rv-card { background: var(--rv-surface); border: 1px solid var(--rv-border); border-radius: var(--rv-radius); box-shadow: var(--rv-shadow); }
.rv-card { overflow: hidden; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.rv-card:hover { transform: translateY(-4px); box-shadow: var(--rv-shadow-hover); border-color: #ffc7b3; }
.rv-card:focus-within { border-color: var(--rv-primary); }
.rv-card-image { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.rv-card-content { padding: clamp(16px, 2vw, 24px); }
.rv-heading { color: var(--rv-ink); font-weight: 800; letter-spacing: -.025em; line-height: 1.18; }
.rv-muted { color: var(--rv-muted); line-height: 1.65; }

.rv-btn-primary, .rv-btn-secondary {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 44px; padding: 11px 20px; border-radius: 12px; font-weight: 700;
    text-decoration: none; transition: background-color .2s ease, transform .2s ease;
}
.rv-btn-primary { background: var(--rv-primary); color: white; border: 1px solid var(--rv-primary); }
.rv-btn-primary:hover { background: var(--rv-primary-hover); border-color: var(--rv-primary-hover); transform: translateY(-1px); }
.rv-btn-secondary { background: white; border: 1px solid #d1d5db; color: var(--rv-ink); }
.rv-btn-secondary:hover { background: #f9fafb; }

.rv-input, input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="file"]),
select, textarea {
    border-color: #cbd5e1;
}
.rv-input:focus, input:focus, select:focus, textarea:focus {
    outline: 2px solid rgba(255, 69, 0, .16);
    border-color: var(--rv-primary);
}
.rv-badge { display: inline-flex; align-items: center; gap: 5px; max-width: 100%; padding: 5px 10px; border-radius: 999px; font-size: .75rem; font-weight: 700; }
.rv-badge-orange { background: #fff3ec; color: #9a3412; }
.rv-badge-green { background: #ecfdf5; color: #166534; }
.rv-table-wrap { width: 100%; overflow-x: auto; border-radius: 16px; border: 1px solid var(--rv-border); }
.rv-empty-state { padding: clamp(24px, 5vw, 48px); text-align: center; background: white; border: 1px dashed #cbd5e1; border-radius: var(--rv-radius); }

@media (max-width: 640px) {
    .rv-container { width: min(calc(100% - 24px), 1280px); }
    .rv-card:hover { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    .rv-card, .rv-btn-primary, .rv-btn-secondary { transition: none !important; transform: none !important; }
}

/* =========================================================
   GALAXY BLACK / SEAL GRAY / SUNRISE ORANGE THEME
   ========================================================= */
body { background: #050607 !important; color: #f4f6f7 !important; }

nav.bg-white, footer.bg-white,
.bg-white { background-color: #11181b !important; }
.bg-gray-50, .bg-gray-100 { background-color: #151c20 !important; }
.bg-gray-200 { background-color: #263139 !important; }
.bg-gray-950 { background-color: #050607 !important; }

.text-gray-950, .text-gray-900, .text-gray-800,
.text-black { color: #f4f6f7 !important; }
.text-gray-700, .text-gray-600, .text-gray-500,
.text-slate-700, .text-slate-600, .text-slate-500 { color: #aab4b9 !important; }
.text-gray-400, .text-gray-300 { color: #c4ccd0 !important; }

.border-gray-100, .border-gray-200, .border-gray-300,
.border-roova-border, .border-slate-200 { border-color: #344149 !important; }

.rv-panel, .rv-card, .rv-empty-state, .rv-table-wrap,
.card, .bg-white\/95, .bg-white\/90 {
    background-color: #11181b !important;
    border-color: #344149 !important;
}

.rv-btn-secondary, .btn-outline {
    background-color: transparent !important;
    border-color: #ff6a00 !important;
    color: #ff8a3d !important;
}
.rv-btn-secondary:hover, .btn-outline:hover {
    background-color: #ff6a00 !important;
    color: #ffffff !important;
}
.btn-primary, .rv-btn-primary,
.bg-opportunity, .bg-spaces, .bg-roova-primary {
    background-color: #ff6a00 !important;
}
.btn-primary:hover, .rv-btn-primary:hover,
.hover\:bg-opportunity-dark:hover, .hover\:bg-spaces-dark:hover {
    background-color: #e85d00 !important;
}

input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="file"]),
select, textarea {
    background-color: #151c20 !important;
    border-color: #3b4951 !important;
    color: #f4f6f7 !important;
    color-scheme: dark;
}
input::placeholder, textarea::placeholder { color: #8f9da4 !important; }
input:focus, select:focus, textarea:focus { outline-color: rgba(255, 106, 0, .28) !important; }

nav { background-color: #0b1012 !important; }
footer { background-color: #0b1012 !important; }
nav a, footer a { transition: color .2s ease, border-color .2s ease, background-color .2s ease; }
nav .text-gray-600 { color: #aab4b9 !important; }

.rv-card:hover { border-color: #ff6a00 !important; }
.rv-badge-orange { background: #2a1b16 !important; color: #ff9a5c !important; }
.rv-badge-green { background: #153b30 !important; color: #7dd3b0 !important; }

.shadow-sm, .shadow, .shadow-lg, .shadow-xl, .shadow-2xl {
    box-shadow: 0 12px 36px rgba(0, 0, 0, .32) !important;
}

/* Keep the dark palette inside secondary and admin surfaces too. */
main, section { color: inherit; }
table { border-color: #344149 !important; }
th { background-color: #151c20 !important; color: #dce2e4 !important; }
td { border-color: #344149 !important; color: #c4ccd0 !important; }

/* Homepage review slide buttons retain their outlined appearance. */
.roova-hero-outline-button {
    background: transparent !important;
    border: 2px solid var(--roova-orange) !important;
    color: #ffffff !important;
    box-shadow: none !important;
}
.roova-hero-outline-button:hover {
    background: rgba(255, 106, 0, 0.14) !important;
    border-color: #ff8a3d !important;
    color: #ffffff !important;
}

/* Tailwind orange accents remain sunrise-orange, not red-orange. */
.text-roova-primary,  .text-opportunity, .text-spaces,
.hover\:text-roova-primary:hover, .hover\:text-opportunity:hover,
.hover\:text-spaces:hover { color: #ff6a00 !important; }
